diff --git a/dist/index.cjs b/dist/index.cjs index 6ee896f..baf5d6a 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -1,81 +1,80 @@ -var o$e=Object.create;var lE=Object.defineProperty;var i$e=Object.getOwnPropertyDescriptor;var a$e=Object.getOwnPropertyNames;var c$e=Object.getPrototypeOf,l$e=Object.prototype.hasOwnProperty;var i=(t,e)=>lE(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Fr=(t,e)=>{for(var r in e)lE(t,r,{get:e[r],enumerable:!0})},XK=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of a$e(e))!l$e.call(t,s)&&s!==r&&lE(t,s,{get:()=>e[s],enumerable:!(n=i$e(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?o$e(c$e(t)):{},XK(e||!t||!t.__esModule?lE(r,"default",{value:t,enumerable:!0}):r,t)),ee=t=>XK(lE({},"__esModule",{value:!0}),t);var aX=w(Yf=>{"use strict";var s3t=require("net"),A$e=require("tls"),eF=require("http"),sX=require("https"),h$e=require("events"),o3t=require("assert"),g$e=require("util");Yf.httpOverHttp=y$e;Yf.httpsOverHttp=E$e;Yf.httpOverHttps=C$e;Yf.httpsOverHttps=I$e;function y$e(t){var e=new Cl(t);return e.request=eF.request,e}i(y$e,"httpOverHttp");function E$e(t){var e=new Cl(t);return e.request=eF.request,e.createSocket=oX,e.defaultPort=443,e}i(E$e,"httpsOverHttp");function C$e(t){var e=new Cl(t);return e.request=sX.request,e}i(C$e,"httpOverHttps");function I$e(t){var e=new Cl(t);return e.request=sX.request,e.createSocket=oX,e.defaultPort=443,e}i(I$e,"httpsOverHttps");function Cl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||eF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=iX(s,o,a),l=0,u=e.requests.length;l=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Cl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=tF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),xu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");function u(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){xu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.destroy();var A=new Error("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(f.length>0){xu("got illegal response body from proxy"),m.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}return xu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");function d(p){a.removeAllListeners(),xu(`tunneling socket could not be established, cause=%s -`,p.message,p.stack);var m=new Error("tunneling socket could not be established, cause="+p.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}i(d,"onError")},"createSocket");Cl.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function oX(t,e){var r=this;Cl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=tF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=A$e.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(oX,"createSecureSocket");function iX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(iX,"toOptions");function tF(t){for(var e=1,r=arguments.length;e{cX.exports=aX()});var qt=w((l3t,lX)=>{lX.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")}});var it=w((u3t,DX)=>{"use strict";var uX=Symbol.for("undici.error.UND_ERR"),Gt=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[uX]===!0}[uX]=!0},dX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),rF=class extends Gt{static{i(this,"ConnectTimeoutError")}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[dX]===!0}[dX]=!0},pX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),nF=class extends Gt{static{i(this,"HeadersTimeoutError")}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[pX]===!0}[pX]=!0},mX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sF=class extends Gt{static{i(this,"HeadersOverflowError")}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[mX]===!0}[mX]=!0},fX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),oF=class extends Gt{static{i(this,"BodyTimeoutError")}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[fX]===!0}[fX]=!0},AX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iF=class extends Gt{static{i(this,"ResponseStatusCodeError")}constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[AX]===!0}[AX]=!0},hX=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),aF=class extends Gt{static{i(this,"InvalidArgumentError")}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[hX]===!0}[hX]=!0},gX=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),cF=class extends Gt{static{i(this,"InvalidReturnValueError")}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[gX]===!0}[gX]=!0},yX=Symbol.for("undici.error.UND_ERR_ABORT"),ib=class extends Gt{static{i(this,"AbortError")}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[yX]===!0}[yX]=!0},EX=Symbol.for("undici.error.UND_ERR_ABORTED"),lF=class extends ib{static{i(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[EX]===!0}[EX]=!0},CX=Symbol.for("undici.error.UND_ERR_INFO"),uF=class extends Gt{static{i(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[CX]===!0}[CX]=!0},IX=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),dF=class extends Gt{static{i(this,"RequestContentLengthMismatchError")}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[IX]===!0}[IX]=!0},wX=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),pF=class extends Gt{static{i(this,"ResponseContentLengthMismatchError")}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[wX]===!0}[wX]=!0},SX=Symbol.for("undici.error.UND_ERR_DESTROYED"),mF=class extends Gt{static{i(this,"ClientDestroyedError")}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[SX]===!0}[SX]=!0},xX=Symbol.for("undici.error.UND_ERR_CLOSED"),fF=class extends Gt{static{i(this,"ClientClosedError")}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[xX]===!0}[xX]=!0},bX=Symbol.for("undici.error.UND_ERR_SOCKET"),AF=class extends Gt{static{i(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[bX]===!0}[bX]=!0},BX=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),hF=class extends Gt{static{i(this,"NotSupportedError")}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[BX]===!0}[BX]=!0},RX=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),gF=class extends Gt{static{i(this,"BalancedPoolMissingUpstreamError")}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[RX]===!0}[RX]=!0},NX=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),yF=class extends Error{static{i(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[NX]===!0}[NX]=!0},TX=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),EF=class extends Gt{static{i(this,"ResponseExceededMaxSizeError")}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[TX]===!0}[TX]=!0},vX=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),CF=class extends Gt{static{i(this,"RequestRetryError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[vX]===!0}[vX]=!0},PX=Symbol.for("undici.error.UND_ERR_RESPONSE"),IF=class extends Gt{static{i(this,"ResponseError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[PX]===!0}[PX]=!0},_X=Symbol.for("undici.error.UND_ERR_PRX_TLS"),wF=class extends Gt{static{i(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[_X]===!0}[_X]=!0},QX=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),SF=class extends Gt{static{i(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[QX]===!0}get[QX](){return!0}};DX.exports={AbortError:ib,HTTPParserError:yF,UndiciError:Gt,HeadersTimeoutError:nF,HeadersOverflowError:sF,BodyTimeoutError:oF,RequestContentLengthMismatchError:dF,ConnectTimeoutError:rF,ResponseStatusCodeError:iF,InvalidArgumentError:aF,InvalidReturnValueError:cF,RequestAbortedError:lF,ClientDestroyedError:mF,ClientClosedError:fF,InformationalError:uF,SocketError:AF,NotSupportedError:hF,ResponseContentLengthMismatchError:pF,BalancedPoolMissingUpstreamError:gF,ResponseExceededMaxSizeError:EF,RequestRetryError:CF,ResponseError:IF,SecureProxyConnectionError:wF,MessageSizeExceededError:SF}});var cb=w((p3t,kX)=>{"use strict";var ab={},xF=["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 t=0;t{"use strict";var{wellknownHeaderNames:LX,headerNameLowerCasedRecord:w$e}=cb(),bF=class t{static{i(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let s=0,o=this;for(;;){let a=e.charCodeAt(s);if(a>127)throw new TypeError("key must be ascii string");if(o.code===a)if(n===++s){o.value=r;break}else if(o.middle!==null)o=o.middle;else{o.middle=new t(e,r,s);break}else if(o.code=65&&(o|=32);s!==null;){if(o===s.code){if(r===++n)return s;s=s.middle;break}s=s.code{"use strict";var uE=require("node:assert"),{kDestroyed:qX,kBodyUsed:jf,kListeners:BF,kBody:UX}=qt(),{IncomingMessage:S$e}=require("node:http"),pb=require("node:stream"),x$e=require("node:net"),{Blob:b$e}=require("node:buffer"),B$e=require("node:util"),{stringify:R$e}=require("node:querystring"),{EventEmitter:N$e}=require("node:events"),{InvalidArgumentError:Kr}=it(),{headerNameLowerCasedRecord:T$e}=cb(),{tree:GX}=FX(),[v$e,P$e]=process.versions.node.split(".").map(t=>Number(t)),db=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[UX]=e,this[jf]=!1}async*[Symbol.asyncIterator](){uE(!this[jf],"disturbed"),this[jf]=!0,yield*this[UX]}};function _$e(t){return mb(t)?(WX(t)===0&&t.on("data",function(){uE(!1)}),typeof t.readableDidRead!="boolean"&&(t[jf]=!1,N$e.prototype.on.call(t,"data",function(){this[jf]=!0})),t):t&&typeof t.pipeTo=="function"?new db(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&VX(t)?new db(t):t}i(_$e,"wrapRequestBody");function Q$e(){}i(Q$e,"nop");function mb(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(mb,"isStream");function HX(t){if(t===null)return!1;if(t instanceof b$e)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}i(HX,"isBlobLike");function D$e(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=R$e(e);return r&&(t+="?"+r),t}i(D$e,"buildURL");function $X(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i($X,"isValidPort");function ub(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(ub,"isHttpOrHttpsPrefixed");function zX(t){if(typeof t=="string"){if(t=new URL(t),!ub(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new Kr("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&$X(t.port)===!1)throw new Kr("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new Kr("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new Kr("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new Kr("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new Kr("Invalid URL origin: the origin must be a string or null/undefined.");if(!ub(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!ub(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(zX,"parseURL");function k$e(t){if(t=zX(t),t.pathname!=="/"||t.search||t.hash)throw new Kr("invalid url");return t}i(k$e,"parseOrigin");function L$e(t){if(t[0]==="["){let r=t.indexOf("]");return uE(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(L$e,"getHostname");function O$e(t){if(!t)return null;uE(typeof t=="string");let e=L$e(t);return x$e.isIP(e)?"":e}i(O$e,"getServerName");function M$e(t){return JSON.parse(JSON.stringify(t))}i(M$e,"deepClone");function F$e(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(F$e,"isAsyncIterable");function VX(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(VX,"isIterable");function WX(t){if(t==null)return 0;if(mb(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(HX(t))return t.size!=null?t.size:null;if(jX(t))return t.byteLength}return null}i(WX,"bodyLength");function YX(t){return t&&!!(t.destroyed||t[qX]||pb.isDestroyed?.(t))}i(YX,"isDestroyed");function U$e(t,e){t==null||!mb(t)||YX(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===S$e&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[qX]=!0))}i(U$e,"destroy");var q$e=/timeout=(\d+)/;function G$e(t){let e=t.toString().match(q$e);return e?parseInt(e[1],10)*1e3:null}i(G$e,"parseKeepAliveTimeout");function JX(t){return typeof t=="string"?T$e[t]??t.toLowerCase():GX.lookup(t)??t.toString("latin1").toLowerCase()}i(JX,"headerNameToString");function H$e(t){return GX.lookup(t)??t.toString("latin1").toLowerCase()}i(H$e,"bufferToLowerCasedHeaderName");function $$e(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):o.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}i($$e,"parseHeaders");function z$e(t){let e=t.length,r=new Array(e),n=!1,s=-1,o,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let o=Buffer.isBuffer(s)?s:Buffer.from(s);o.byteLength&&r.enqueue(new Uint8Array(o))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}i(K$e,"ReadableStreamFrom");function X$e(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}i(X$e,"isFormDataLike");function Z$e(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}i(Z$e,"addAbortListener");var eze=typeof String.prototype.toWellFormed=="function",tze=typeof String.prototype.isWellFormed=="function";function KX(t){return eze?`${t}`.toWellFormed():B$e.toUSVString(t)}i(KX,"toUSVString");function rze(t){return tze?`${t}`.isWellFormed():KX(t)===`${t}`}i(rze,"isUSVString");function XX(t){switch(t){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!1;default:return t>=33&&t<=126}}i(XX,"isTokenCharCode");function nze(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var ft=require("node:diagnostics_channel"),TF=require("node:util"),fb=TF.debuglog("undici"),NF=TF.debuglog("fetch"),Sp=TF.debuglog("websocket"),r7=!1,uze={beforeConnect:ft.channel("undici:client:beforeConnect"),connected:ft.channel("undici:client:connected"),connectError:ft.channel("undici:client:connectError"),sendHeaders:ft.channel("undici:client:sendHeaders"),create:ft.channel("undici:request:create"),bodySent:ft.channel("undici:request:bodySent"),headers:ft.channel("undici:request:headers"),trailers:ft.channel("undici:request:trailers"),error:ft.channel("undici:request:error"),open:ft.channel("undici:websocket:open"),close:ft.channel("undici:websocket:close"),socketError:ft.channel("undici:websocket:socket_error"),ping:ft.channel("undici:websocket:ping"),pong:ft.channel("undici:websocket:pong")};if(fb.enabled||NF.enabled){let t=NF.enabled?NF:fb;ft.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ft.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ft.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s using %s%s errored - %s",`${o}${s?`:${s}`:""}`,n,r,a.message)}),ft.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)}),ft.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:s},response:{statusCode:o}}=e;t("received response to %s %s/%s - HTTP %d",r,s,n,o)}),ft.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("trailers received from %s %s/%s",r,s,n)}),ft.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:s},error:o}=e;t("request to %s %s/%s errored - %s",r,s,n,o.message)}),r7=!0}if(Sp.enabled){if(!r7){let t=fb.enabled?fb:Sp;ft.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ft.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ft.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s%s using %s%s errored - %s",o,s?`:${s}`:"",n,r,a.message)}),ft.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)})}ft.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Sp("connection opened %s%s",e,r?`:${r}`:"")}),ft.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Sp("closed connection to %s - %s %s",e.url,r,n)}),ft.channel("undici:websocket:socket_error").subscribe(t=>{Sp("connection errored - %s",t.message)}),ft.channel("undici:websocket:ping").subscribe(t=>{Sp("ping received")}),ft.channel("undici:websocket:pong").subscribe(t=>{Sp("pong received")})}n7.exports={channels:uze}});var a7=w((y3t,i7)=>{"use strict";var{InvalidArgumentError:It,NotSupportedError:dze}=it(),Ks=require("node:assert"),{isValidHTTPToken:o7,isValidHeaderValue:dE,isStream:pze,destroy:mze,isBuffer:fze,isFormDataLike:Aze,isIterable:hze,isBlobLike:gze,buildURL:yze,validateHandler:Eze,getServerName:Cze,normalizedMethodRecords:Ize}=Ve(),{channels:gn}=Kf(),{headerNameLowerCasedRecord:s7}=cb(),wze=/[^\u0021-\u00ff]/,Uo=Symbol("handler"),vF=class{static{i(this,"Request")}constructor(e,{path:r,method:n,body:s,headers:o,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:p,reset:m,throwOnError:f,expectContinue:A,servername:h},E){if(typeof r!="string")throw new It("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new It("path must be an absolute URL or start with a slash");if(wze.test(r))throw new It("invalid request path");if(typeof n!="string")throw new It("method must be a string");if(Ize[n]===void 0&&!o7(n))throw new It("invalid request method");if(u&&typeof u!="string")throw new It("upgrade must be a string");if(u&&!dE(u))throw new It("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new It("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new It("invalid bodyTimeout");if(m!=null&&typeof m!="boolean")throw new It("invalid reset");if(A!=null&&typeof A!="boolean")throw new It("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=p,this.throwOnError=f===!0,this.method=n,this.abort=null,s==null)this.body=null;else if(pze(s)){this.body=s;let y=this.body._readableState;(!y||!y.autoDestroy)&&(this.endHandler=i(function(){mze(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=I=>{this.abort?this.abort(I):this.error=I},this.body.on("error",this.errorHandler)}else if(fze(s))this.body=s.byteLength?s:null;else if(ArrayBuffer.isView(s))this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null;else if(s instanceof ArrayBuffer)this.body=s.byteLength?Buffer.from(s):null;else if(typeof s=="string")this.body=s.length?Buffer.from(s):null;else if(Aze(s)||hze(s)||gze(s))this.body=s;else throw new It("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=u||null,this.path=a?yze(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=m??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(o)){if(o.length%2!==0)throw new It("headers array must be even");for(let y=0;y{"use strict";var Sze=require("node:events"),hb=class extends Sze{static{i(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let s of r)if(s!=null){if(typeof s!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof s}`);if(n=s(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new PF(this,n)}},PF=class extends hb{static{i(this,"ComposedDispatcher")}#e=null;#t=null;constructor(e,r){super(),this.#e=e,this.#t=r}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};c7.exports=hb});var tA=w((w3t,u7)=>{"use strict";var xze=require("node:buffer"),bze=pE(),{ClientDestroyedError:_F,ClientClosedError:Bze,InvalidArgumentError:Xf}=it(),{kDestroy:Rze,kClose:Nze,kClosed:mE,kDestroyed:Zf,kDispatch:QF,kInterceptors:xp}=qt(),Il=Symbol("onDestroyed"),eA=Symbol("onClosed"),gb=Symbol("Intercepted Dispatch"),DF=Symbol("webSocketOptions"),l7=Symbol("eventSourceOptions"),kF=class extends bze{static{i(this,"DispatcherBase")}constructor(e){super(),this[Zf]=!1,this[Il]=null,this[mE]=!1,this[eA]=[],this[DF]=e?.webSocket??{},this[l7]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[DF].maxFragments??131072,maxPayloadSize:this[DF].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[l7].maxEventSize??xze.kStringMaxLength}}get destroyed(){return this[Zf]}get closed(){return this[mE]}get interceptors(){return this[xp]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[xp][r]!="function")throw new Xf("interceptor must be an function")}this[xp]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((o,a)=>o?s(o):n(a))});if(typeof e!="function")throw new Xf("invalid callback");if(this[Zf]){queueMicrotask(()=>e(new _F,null));return}if(this[mE]){this[eA]?this[eA].push(e):queueMicrotask(()=>e(null,null));return}this[mE]=!0,this[eA].push(e);let r=i(()=>{let n=this[eA];this[eA]=null;for(let s=0;sthis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,o)=>{this.destroy(e,(a,c)=>a?o(a):s(c))});if(typeof r!="function")throw new Xf("invalid callback");if(this[Zf]){this[Il]?this[Il].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new _F),this[Zf]=!0,this[Il]=this[Il]||[],this[Il].push(r);let n=i(()=>{let s=this[Il];this[Il]=null;for(let o=0;o{queueMicrotask(n)})}[gb](e,r){if(!this[xp]||this[xp].length===0)return this[gb]=this[QF],this[QF](e,r);let n=this[QF].bind(this);for(let s=this[xp].length-1;s>=0;s--)n=this[xp][s](n);return this[gb]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Xf("handler must be an object");try{if(!e||typeof e!="object")throw new Xf("opts must be an object.");if(this[Zf]||this[Il])throw new _F;if(this[mE])throw new Bze;return this[gb](e,r)}catch(n){if(typeof r.onError!="function")throw new Xf("invalid onError method");return r.onError(n),!1}}};u7.exports=kF});var GF=w((x3t,f7)=>{"use strict";var rA=0,LF=1e3,OF=(LF>>1)-1,wl,MF=Symbol("kFastTimer"),Sl=[],FF=-2,UF=-1,p7=0,d7=1;function qF(){rA+=OF;let t=0,e=Sl.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=UF,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===UF?(r._state=FF,--e!==0&&(Sl[t]=Sl[e])):++t}Sl.length=e,Sl.length!==0&&m7()}i(qF,"onTick");function m7(){wl?wl.refresh():(clearTimeout(wl),wl=setTimeout(qF,OF),wl.unref&&wl.unref())}i(m7,"refreshTimeout");var yb=class{static{i(this,"FastTimer")}[MF]=!0;_state=FF;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===FF&&Sl.push(this),(!wl||Sl.length===1)&&m7(),this._state=p7}clear(){this._state=UF,this._idleStart=-1}};f7.exports={setTimeout(t,e,r){return e<=LF?setTimeout(t,e,r):new yb(t,e,r)},clearTimeout(t){t[MF]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new yb(t,e,r)},clearFastTimeout(t){t.clear()},now(){return rA},tick(t=0){rA+=t-LF+1,qF(),qF()},reset(){rA=0,Sl.length=0,clearTimeout(wl),wl=null},kFastTimer:MF}});var fE=w((N3t,E7)=>{"use strict";var Tze=require("node:net"),A7=require("node:assert"),y7=Ve(),{InvalidArgumentError:vze,ConnectTimeoutError:Pze}=it(),Eb=GF();function h7(){}i(h7,"noop");var HF,$F;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?$F=class{static{i(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function _ze({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new vze("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new $F(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:m,servername:f,localAddress:A,httpSocket:h},E){let y;if(p==="https:"){HF||(HF=require("node:tls")),f=f||a.servername||y7.getServerName(d)||null;let x=f||u;A7(x);let b=s||c.get(x)||null;m=m||443,y=HF.connect({highWaterMark:16384,...a,servername:f,session:b,localAddress:A,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:h,port:m,host:u}),y.on("session",function(N){c.set(x,N)})}else A7(!h,"httpSocket can only be sent on TLS update"),m=m||80,y=Tze.connect({highWaterMark:64*1024,...a,localAddress:A,port:m,host:u});if(a.keepAlive==null||a.keepAlive){let x=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;y.setKeepAlive(!0,x)}let I=Qze(new WeakRef(y),{timeout:n,hostname:u,port:m});return y.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(I),E){let x=E;E=null,x(null,this)}}).on("error",function(x){if(queueMicrotask(I),E){let b=E;E=null,b(x)}}),y},"connect")}i(_ze,"buildConnector");var Qze=process.platform==="win32"?(t,e)=>{if(!e.timeout)return h7;let r=null,n=null,s=Eb.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>g7(t.deref(),e))})},e.timeout);return()=>{Eb.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return h7;let r=null,n=Eb.setFastTimeout(()=>{r=setImmediate(()=>{g7(t.deref(),e)})},e.timeout);return()=>{Eb.clearFastTimeout(n),clearImmediate(r)}};function g7(t,e){if(t==null)return;let r="Connect Timeout Error";Array.isArray(t.autoSelectFamilyAttemptedAddresses)?r+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`:r+=` (attempted address: ${e.hostname}:${e.port},`,r+=` timeout: ${e.timeout}ms)`,y7.destroy(t,new Pze(r))}i(g7,"onConnectTimeout");E7.exports=_ze});var C7=w(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});Cb.enumToMap=void 0;function Dze(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(Dze,"enumToMap");Cb.enumToMap=Dze});var I7=w(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.SPECIAL_HEADERS=k.HEADER_STATE=k.MINOR=k.MAJOR=k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS=k.TOKEN=k.STRICT_TOKEN=k.HEX=k.URL_CHAR=k.STRICT_URL_CHAR=k.USERINFO_CHARS=k.MARK=k.ALPHANUM=k.NUM=k.HEX_MAP=k.NUM_MAP=k.ALPHA=k.FINISH=k.H_METHOD_MAP=k.METHOD_MAP=k.METHODS_RTSP=k.METHODS_ICE=k.METHODS_HTTP=k.METHODS=k.LENIENT_FLAGS=k.FLAGS=k.TYPE=k.ERROR=void 0;var kze=C7(),Lze;(function(t){t[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER"})(Lze=k.ERROR||(k.ERROR={}));var Oze;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(Oze=k.TYPE||(k.TYPE={}));var Mze;(function(t){t[t.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",t[t.CHUNKED=8]="CHUNKED",t[t.UPGRADE=16]="UPGRADE",t[t.CONTENT_LENGTH=32]="CONTENT_LENGTH",t[t.SKIPBODY=64]="SKIPBODY",t[t.TRAILING=128]="TRAILING",t[t.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(Mze=k.FLAGS||(k.FLAGS={}));var Fze;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(Fze=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var fe;(function(t){t[t.DELETE=0]="DELETE",t[t.GET=1]="GET",t[t.HEAD=2]="HEAD",t[t.POST=3]="POST",t[t.PUT=4]="PUT",t[t.CONNECT=5]="CONNECT",t[t.OPTIONS=6]="OPTIONS",t[t.TRACE=7]="TRACE",t[t.COPY=8]="COPY",t[t.LOCK=9]="LOCK",t[t.MKCOL=10]="MKCOL",t[t.MOVE=11]="MOVE",t[t.PROPFIND=12]="PROPFIND",t[t.PROPPATCH=13]="PROPPATCH",t[t.SEARCH=14]="SEARCH",t[t.UNLOCK=15]="UNLOCK",t[t.BIND=16]="BIND",t[t.REBIND=17]="REBIND",t[t.UNBIND=18]="UNBIND",t[t.ACL=19]="ACL",t[t.REPORT=20]="REPORT",t[t.MKACTIVITY=21]="MKACTIVITY",t[t.CHECKOUT=22]="CHECKOUT",t[t.MERGE=23]="MERGE",t[t["M-SEARCH"]=24]="M-SEARCH",t[t.NOTIFY=25]="NOTIFY",t[t.SUBSCRIBE=26]="SUBSCRIBE",t[t.UNSUBSCRIBE=27]="UNSUBSCRIBE",t[t.PATCH=28]="PATCH",t[t.PURGE=29]="PURGE",t[t.MKCALENDAR=30]="MKCALENDAR",t[t.LINK=31]="LINK",t[t.UNLINK=32]="UNLINK",t[t.SOURCE=33]="SOURCE",t[t.PRI=34]="PRI",t[t.DESCRIBE=35]="DESCRIBE",t[t.ANNOUNCE=36]="ANNOUNCE",t[t.SETUP=37]="SETUP",t[t.PLAY=38]="PLAY",t[t.PAUSE=39]="PAUSE",t[t.TEARDOWN=40]="TEARDOWN",t[t.GET_PARAMETER=41]="GET_PARAMETER",t[t.SET_PARAMETER=42]="SET_PARAMETER",t[t.REDIRECT=43]="REDIRECT",t[t.RECORD=44]="RECORD",t[t.FLUSH=45]="FLUSH"})(fe=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[fe.DELETE,fe.GET,fe.HEAD,fe.POST,fe.PUT,fe.CONNECT,fe.OPTIONS,fe.TRACE,fe.COPY,fe.LOCK,fe.MKCOL,fe.MOVE,fe.PROPFIND,fe.PROPPATCH,fe.SEARCH,fe.UNLOCK,fe.BIND,fe.REBIND,fe.UNBIND,fe.ACL,fe.REPORT,fe.MKACTIVITY,fe.CHECKOUT,fe.MERGE,fe["M-SEARCH"],fe.NOTIFY,fe.SUBSCRIBE,fe.UNSUBSCRIBE,fe.PATCH,fe.PURGE,fe.MKCALENDAR,fe.LINK,fe.UNLINK,fe.PRI,fe.SOURCE];k.METHODS_ICE=[fe.SOURCE];k.METHODS_RTSP=[fe.OPTIONS,fe.DESCRIBE,fe.ANNOUNCE,fe.SETUP,fe.PLAY,fe.PAUSE,fe.TEARDOWN,fe.GET_PARAMETER,fe.SET_PARAMETER,fe.REDIRECT,fe.RECORD,fe.FLUSH,fe.GET,fe.POST];k.METHOD_MAP=kze.enumToMap(fe);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var Uze;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(Uze=k.FINISH||(k.FINISH={}));k.ALPHA=[];for(let t=65;t<=90;t++)k.ALPHA.push(String.fromCharCode(t)),k.ALPHA.push(String.fromCharCode(t+32));k.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};k.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};k.NUM=["0","1","2","3","4","5","6","7","8","9"];k.ALPHANUM=k.ALPHA.concat(k.NUM);k.MARK=["-","_",".","!","~","*","'","(",")"];k.USERINFO_CHARS=k.ALPHANUM.concat(k.MARK).concat(["%",";",":","&","=","+","$",","]);k.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(k.ALPHANUM);k.URL_CHAR=k.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)k.URL_CHAR.push(t);k.HEX=k.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);k.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(k.ALPHANUM);k.TOKEN=k.STRICT_TOKEN.concat([" "]);k.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&k.HEADER_CHARS.push(t);k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS.filter(t=>t!==44);k.MAJOR=k.NUM_MAP;k.MINOR=k.MAJOR;var nA;(function(t){t[t.GENERAL=0]="GENERAL",t[t.CONNECTION=1]="CONNECTION",t[t.CONTENT_LENGTH=2]="CONTENT_LENGTH",t[t.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",t[t.UPGRADE=4]="UPGRADE",t[t.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",t[t.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(nA=k.HEADER_STATE||(k.HEADER_STATE={}));k.SPECIAL_HEADERS={connection:nA.CONNECTION,"content-length":nA.CONTENT_LENGTH,"proxy-connection":nA.CONNECTION,"transfer-encoding":nA.TRANSFER_ENCODING,upgrade:nA.UPGRADE}});var zF=w((Q3t,w7)=>{"use strict";var{Buffer:qze}=require("node:buffer");w7.exports=qze.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXR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BogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBT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ACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgA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iEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiAC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9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AA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AQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var AE=w((k3t,_7)=>{"use strict";var b7=["GET","HEAD","POST"],Hze=new Set(b7),$ze=[101,204,205,304],B7=[301,302,303,307,308],zze=new Set(B7),R7=["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"],Vze=new Set(R7),N7=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Wze=new Set(N7),Yze=["follow","manual","error"],T7=["GET","HEAD","OPTIONS","TRACE"],Jze=new Set(T7),jze=["navigate","same-origin","no-cors","cors"],Kze=["omit","same-origin","include"],Xze=["default","no-store","reload","no-cache","force-cache","only-if-cached"],Zze=["content-encoding","content-language","content-location","content-type","content-length"],e3e=["half"],v7=["CONNECT","TRACE","TRACK"],t3e=new Set(v7),P7=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],r3e=new Set(P7);_7.exports={subresource:P7,forbiddenMethods:v7,requestBodyHeader:Zze,referrerPolicy:N7,requestRedirect:Yze,requestMode:jze,requestCredentials:Kze,requestCache:Xze,redirectStatus:B7,corsSafeListedMethods:b7,nullBodyStatus:$ze,safeMethods:T7,badPorts:R7,requestDuplex:e3e,subresourceSet:r3e,badPortsSet:Vze,redirectStatusSet:zze,corsSafeListedMethodsSet:Hze,safeMethodsSet:Jze,forbiddenMethodsSet:t3e,referrerPolicySet:Wze}});var WF=w((L3t,Q7)=>{"use strict";var VF=Symbol.for("undici.globalOrigin.1");function n3e(){return globalThis[VF]}i(n3e,"getGlobalOrigin");function s3e(t){if(t===void 0){Object.defineProperty(globalThis,VF,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new TypeError(`Only http & https urls are allowed, received ${e.protocol}`);Object.defineProperty(globalThis,VF,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(s3e,"setGlobalOrigin");Q7.exports={getGlobalOrigin:n3e,setGlobalOrigin:s3e}});var Cs=w((M3t,U7)=>{"use strict";var wb=require("node:assert"),o3e=new TextEncoder,hE=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,i3e=/[\u000A\u000D\u0009\u0020]/,a3e=/[\u0009\u000A\u000C\u000D\u0020]/g,c3e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function l3e(t){wb(t.protocol==="data:");let e=L7(t,!0);e=e.slice(5);let r={position:0},n=sA(",",e,r),s=n.length;if(n=A3e(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=O7(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=F7(a);if(a=d3e(l),a==="failure")return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let c=YF(n);return c==="failure"&&(c=YF("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(l3e,"dataURLProcessor");function L7(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,s=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?s.slice(0,-1):s}i(L7,"URLSerializer");function Sb(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(D7,"isHexCharByte");function k7(t){return t>=48&&t<=57?t-48:(t&223)-55}i(k7,"hexByteToNumber");function u3e(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;st.length)return"failure";e.position++;let n=sA(";",t,e);if(n=Ib(n,!1,!0),n.length===0||!hE.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positioni3e.test(u),t,e);let c=Sb(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=M7(t,e,!0),sA(";",t,e);else if(l=sA(";",t,e),l=Ib(l,!1,!0),l.length===0)continue;c.length!==0&&hE.test(c)&&(l.length===0||c3e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(YF,"parseMIMEType");function d3e(t){t=t.replace(a3e,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}i(d3e,"forgivingBase64");function M7(t,e,r){let n=e.position,s="";for(wb(t[e.position]==='"'),e.position++;s+=Sb(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let o=t[e.position];if(e.position++,o==="\\"){if(e.position>=t.length){s+="\\";break}s+=t[e.position],e.position++}else{wb(o==='"');break}}return r?s:t.slice(n,e.position)}i(M7,"collectAnHTTPQuotedString");function p3e(t){wb(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",hE.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(p3e,"serializeAMimeType");function m3e(t){return t===13||t===10||t===9||t===32}i(m3e,"isHTTPWhiteSpace");function Ib(t,e=!0,r=!0){return JF(t,e,r,m3e)}i(Ib,"removeHTTPWhitespace");function f3e(t){return t===13||t===10||t===9||t===12||t===32}i(f3e,"isASCIIWhitespace");function A3e(t,e=!0,r=!0){return JF(t,e,r,f3e)}i(A3e,"removeASCIIWhitespace");function JF(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s0&&n(t.charCodeAt(o));)o--;return s===0&&o===t.length-1?t:t.slice(s,o+1)}i(JF,"removeChars");function F7(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,s=65535;for(;ne&&(s=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=s));return r}i(F7,"isomorphicDecode");function h3e(t){switch(t.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"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}i(h3e,"minimizeSupportedMimeType");U7.exports={dataURLProcessor:l3e,URLSerializer:L7,collectASequenceOfCodePoints:Sb,collectASequenceOfCodePointsFast:sA,stringPercentDecode:O7,parseMIMEType:YF,collectAnHTTPQuotedString:M7,serializeAMimeType:p3e,removeChars:JF,removeHTTPWhitespace:Ib,minimizeSupportedMimeType:h3e,HTTP_TOKEN_CODEPOINTS:hE,isomorphicDecode:F7}});var yn=w((U3t,q7)=>{"use strict";var{types:va,inspect:g3e}=require("node:util"),{markAsUncloneable:y3e}=require("node:worker_threads"),{toUSVString:E3e}=Ve(),Q={};Q.converters={};Q.util={};Q.errors={};Q.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};Q.errors.conversionFailed=function(t){let e=t.types.length===1?"":" one of",r=`${t.argument} could not be converted to${e}: ${t.types.join(", ")}.`;return Q.errors.exception({header:t.prefix,message:r})};Q.errors.invalidArgument=function(t){return Q.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};Q.brandCheck=function(t,e,r){if(r?.strict!==!1){if(!(t instanceof e)){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}}else if(t?.[Symbol.toStringTag]!==e.prototype[Symbol.toStringTag]){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}};Q.argumentLengthCheck=function({length:t},e,r){if(t{});Q.util.ConvertToInt=function(t,e,r,n){let s,o;e===64?(s=Math.pow(2,53)-1,r==="unsigned"?o=0:o=Math.pow(-2,53)+1):r==="unsigned"?(o=0,s=Math.pow(2,e)-1):(o=Math.pow(-2,e)-1,s=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw Q.errors.exception({header:"Integer conversion",message:`Could not convert ${Q.util.Stringify(t)} to an integer.`});if(a=Q.util.IntegerPart(a),as)throw Q.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,o),s),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=Q.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Q.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Q.util.Stringify=function(t){switch(Q.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return g3e(t);case"String":return`"${t}"`;default:return`${t}`}};Q.sequenceConverter=function(t){return(e,r,n,s)=>{if(Q.util.Type(e)!=="Object")throw Q.errors.exception({header:r,message:`${n} (${Q.util.Stringify(e)}) is not iterable.`});let o=typeof s=="function"?s():e?.[Symbol.iterator]?.(),a=[],c=0;if(o===void 0||typeof o.next!="function")throw Q.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=o.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};Q.recordConverter=function(t,e){return(r,n,s)=>{if(Q.util.Type(r)!=="Object")throw Q.errors.exception({header:n,message:`${s} ("${Q.util.Type(r)}") is not an Object.`});let o={};if(!va.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,s),d=e(r[l],n,s);o[u]=d}return o}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,s),d=e(r[c],n,s);o[u]=d}return o}};Q.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw Q.errors.exception({header:r,message:`Expected ${n} ("${Q.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Q.dictionaryConverter=function(t){return(e,r,n)=>{let s=Q.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw Q.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:l,required:u,converter:d}=a;if(u===!0&&!Object.hasOwn(e,c))throw Q.errors.exception({header:r,message:`Missing required key "${c}".`});let p=e[c],m=Object.hasOwn(a,"defaultValue");if(m&&p!==null&&(p??=l()),u||m||p!==void 0){if(p=d(p,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(p))throw Q.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};Q.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Q.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Q.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Q.converters.ByteString=function(t,e,r){let n=Q.converters.DOMString(t,e,r);for(let s=0;s255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${s} has a value of ${n.charCodeAt(s)} which is greater than 255.`);return n};Q.converters.USVString=E3e;Q.converters.boolean=function(t){return!!t};Q.converters.any=function(t){return t};Q.converters["long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"signed",void 0,e,r)};Q.converters["unsigned long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};Q.converters["unsigned long"]=function(t,e,r){return Q.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};Q.converters["unsigned short"]=function(t,e,r,n){return Q.util.ConvertToInt(t,16,"unsigned",n,e,r)};Q.converters.ArrayBuffer=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!va.isAnyArrayBuffer(t))throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&va.isSharedArrayBuffer(t))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.TypedArray=function(t,e,r,n,s){if(Q.util.Type(t)!=="Object"||!va.isTypedArray(t)||t.constructor.name!==e.name)throw Q.errors.conversionFailed({prefix:r,argument:`${n} ("${Q.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&va.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.DataView=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!va.isDataView(t))throw Q.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&va.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.BufferSource=function(t,e,r,n){if(va.isAnyArrayBuffer(t))return Q.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(va.isTypedArray(t))return Q.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(va.isDataView(t))return Q.converters.DataView(t,e,r,{...n,allowShared:!1});throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["BufferSource"]})};Q.converters["sequence"]=Q.sequenceConverter(Q.converters.ByteString);Q.converters["sequence>"]=Q.sequenceConverter(Q.converters["sequence"]);Q.converters["record"]=Q.recordConverter(Q.converters.ByteString,Q.converters.ByteString);q7.exports={webidl:Q}});var Xs=w((q3t,tZ)=>{"use strict";var{Transform:C3e}=require("node:stream"),G7=require("node:zlib"),{redirectStatusSet:I3e,referrerPolicySet:w3e,badPortsSet:S3e}=AE(),{getGlobalOrigin:H7}=WF(),{collectASequenceOfCodePoints:bp,collectAnHTTPQuotedString:x3e,removeChars:b3e,parseMIMEType:B3e}=Cs(),{performance:R3e}=require("node:perf_hooks"),{isBlobLike:N3e,ReadableStreamFrom:T3e,isValidHTTPToken:$7,normalizedMethodRecordsBase:v3e}=Ve(),Bp=require("node:assert"),{isUint8Array:P3e}=require("node:util/types"),{webidl:gE}=yn(),z7=[],bb;try{bb=require("node:crypto");let t=["sha256","sha384","sha512"];z7=bb.getHashes().filter(e=>t.includes(e))}catch{}function V7(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(V7,"responseURL");function _3e(t,e){if(!I3e.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&Y7(r)&&(W7(r)||(r=Q3e(r)),r=new URL(r,V7(t))),r&&!r.hash&&(r.hash=e),r}i(_3e,"responseLocationURL");function W7(t){for(let e=0;e126||r<32)return!1}return!0}i(W7,"isValidEncodedURL");function Q3e(t){return Buffer.from(t,"binary").toString("utf8")}i(Q3e,"normalizeBinaryStringToUtf8");function EE(t){return t.urlList[t.urlList.length-1]}i(EE,"requestCurrentURL");function D3e(t){let e=EE(t);return Z7(e)&&S3e.has(e.port)?"blocked":"allowed"}i(D3e,"requestBadPort");function k3e(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(k3e,"isErrorLike");function L3e(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(L3e,"isValidReasonPhrase");var O3e=$7;function Y7(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` -`)||t.includes("\r")||t.includes("\0"))===!1}i(Y7,"isValidHeaderValue");function M3e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(w3e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(M3e,"setRequestReferrerPolicyOnRedirect");function F3e(){return"allowed"}i(F3e,"crossOriginResourcePolicyCheck");function U3e(){return"success"}i(U3e,"corsCheck");function q3e(){return"success"}i(q3e,"TAOCheck");function G3e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(G3e,"appendFetchMetadata");function H3e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&KF(t.origin)&&!KF(EE(t))&&(e=null);break;case"same-origin":Bb(t,EE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(H3e,"appendRequestOriginHeader");function oA(t,e){return t}i(oA,"coarsenTime");function $3e(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=Bb(t,n),a=yE(n)&&!yE(t.url);switch(e){case"origin":return s??jF(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=EE(t);return Bb(n,c)?n:yE(n)&&!yE(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(Y3e,"determineRequestsReferrer");function jF(t,e){return Bp(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(jF,"stripURLForReferrer");function yE(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(yE,"isURLPotentiallyTrustworthy");function J3e(t,e){if(bb===void 0)return!0;let r=j7(e);if(r==="no metadata"||r.length===0)return!0;let n=K3e(r),s=X3e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=bb.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Z3e(l,c))return!0}return!1}i(J3e,"bytesMatch");var j3e=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function j7(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j3e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();z7.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(j7,"parseMetadata");function K3e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=s}),resolve:t,reject:e}}i(tVe,"createDeferredPromise");function rVe(t){return t.controller.state==="aborted"}i(rVe,"isAborted");function nVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(nVe,"isCancelled");function sVe(t){return v3e[t.toLowerCase()]??t}i(sVe,"normalizeMethod");function oVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Bp(typeof e=="string"),e}i(oVe,"serializeJavascriptValueToJSONString");var iVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function K7(t,e,r=0,n=1){class s{static{i(this,"FastIterableIterator")}#e;#t;#r;constructor(a,c){this.#e=a,this.#t=c,this.#r=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#r,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#r=a+1;let p;switch(this.#t){case"key":p=u;break;case"value":p=d;break;case"key+value":p=[u,d];break}return{value:p,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,iVe),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(o,a){return new s(o,a)}}i(K7,"createIterator");function aVe(t,e,r,n=0,s=1){let o=K7(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return gE.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return gE.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return gE.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(gE.brandCheck(this,e),gE.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:p}of o(this,"key+value"))l.call(u,p,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}i(aVe,"iteratorMixin");async function cVe(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await X7(o))}catch(a){s(a)}}i(cVe,"fullyReadBody");function lVe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(lVe,"isReadableStreamLike");function uVe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}i(uVe,"readableStreamClose");var dVe=/[^\x00-\xFF]/;function xb(t){return Bp(!dVe.test(t)),t}i(xb,"isomorphicEncode");async function X7(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!P3e(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(X7,"readAllBytes");function pVe(t){Bp("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(pVe,"urlIsLocal");function KF(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}i(KF,"urlHasHttpsScheme");function Z7(t){Bp("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(Z7,"urlIsHttpHttpsScheme");function mVe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&bp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&bp(l=>l===" "||l===" ",r,n);let s=bp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&bp(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&bp(l=>l===" "||l===" ",r,n);let a=bp(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:o,rangeEndValue:c}}i(mVe,"simpleRangeHeaderValue");function fVe(t,e,r){let n="bytes ";return n+=xb(`${t}`),n+="-",n+=xb(`${e}`),n+="/",n+=xb(`${r}`),n}i(fVe,"buildContentRange");var XF=class extends C3e{static{i(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?G7.createInflate(this.#e):G7.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",s=>this.destroy(s))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function AVe(t){return new XF(t)}i(AVe,"createInflate");function hVe(t){let e=null,r=null,n=null,s=eZ("content-type",t);if(s===null)return"failure";for(let o of s){let a=B3e(o);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}i(hVe,"extractMimeType");function gVe(t){let e=t,r={position:0},n=[],s="";for(;r.positiono!=='"'&&o!==",",e,r),r.positiono===9||o===32),n.push(s),s=""}return n}i(gVe,"gettingDecodingSplitting");function eZ(t,e){let r=e.get(t,!0);return r===null?null:gVe(r)}i(eZ,"getDecodeSplit");var yVe=new TextDecoder;function EVe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),yVe.decode(t))}i(EVe,"utf8DecodeBytes");var ZF=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return H7()}get origin(){return this.baseUrl?.origin}policyContainer=J7()},eU=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new ZF},CVe=new eU;tZ.exports={isAborted:rVe,isCancelled:nVe,isValidEncodedURL:W7,createDeferredPromise:tVe,ReadableStreamFrom:T3e,tryUpgradeRequestToAPotentiallyTrustworthyURL:eVe,clampAndCoarsenConnectionTimingInfo:$3e,coarsenedSharedCurrentTime:z3e,determineRequestsReferrer:Y3e,makePolicyContainer:J7,clonePolicyContainer:W3e,appendFetchMetadata:G3e,appendRequestOriginHeader:H3e,TAOCheck:q3e,corsCheck:U3e,crossOriginResourcePolicyCheck:F3e,createOpaqueTimingInfo:V3e,setRequestReferrerPolicyOnRedirect:M3e,isValidHTTPToken:$7,requestBadPort:D3e,requestCurrentURL:EE,responseURL:V7,responseLocationURL:_3e,isBlobLike:N3e,isURLPotentiallyTrustworthy:yE,isValidReasonPhrase:L3e,sameOrigin:Bb,normalizeMethod:sVe,serializeJavascriptValueToJSONString:oVe,iteratorMixin:aVe,createIterator:K7,isValidHeaderName:O3e,isValidHeaderValue:Y7,isErrorLike:k3e,fullyReadBody:cVe,bytesMatch:J3e,isReadableStreamLike:lVe,readableStreamClose:uVe,isomorphicEncode:xb,urlIsLocal:pVe,urlHasHttpsScheme:KF,urlIsHttpHttpsScheme:Z7,readAllBytes:X7,simpleRangeHeaderValue:mVe,buildContentRange:fVe,parseMetadata:j7,createInflate:AVe,extractMimeType:hVe,getDecodeSplit:eZ,utf8DecodeBytes:EVe,environmentSettingsObject:CVe}});var bu=w((H3t,rZ)=>{"use strict";rZ.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var rU=w(($3t,nZ)=>{"use strict";var{Blob:IVe,File:wVe}=require("node:buffer"),{kState:xl}=bu(),{webidl:Pa}=yn(),tU=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[xl]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return Pa.brandCheck(this,t),this[xl].blobLike.stream(...e)}arrayBuffer(...e){return Pa.brandCheck(this,t),this[xl].blobLike.arrayBuffer(...e)}slice(...e){return Pa.brandCheck(this,t),this[xl].blobLike.slice(...e)}text(...e){return Pa.brandCheck(this,t),this[xl].blobLike.text(...e)}get size(){return Pa.brandCheck(this,t),this[xl].blobLike.size}get type(){return Pa.brandCheck(this,t),this[xl].blobLike.type}get name(){return Pa.brandCheck(this,t),this[xl].name}get lastModified(){return Pa.brandCheck(this,t),this[xl].lastModified}get[Symbol.toStringTag](){return"File"}};Pa.converters.Blob=Pa.interfaceConverter(IVe);function SVe(t){return t instanceof wVe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(SVe,"isFileLike");nZ.exports={FileLike:tU,isFileLike:SVe}});var IE=w((V3t,cZ)=>{"use strict";var{isBlobLike:Rb,iteratorMixin:xVe}=Xs(),{kState:jn}=bu(),{kEnumerableProperty:iA}=Ve(),{FileLike:sZ,isFileLike:bVe}=rU(),{webidl:Nt}=yn(),{File:aZ}=require("node:buffer"),oZ=require("node:util"),iZ=globalThis.File??aZ,CE=class t{static{i(this,"FormData")}constructor(e){if(Nt.util.markAsUncloneable(this),e!==void 0)throw Nt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[jn]=[]}append(e,r,n=void 0){Nt.brandCheck(this,t);let s="FormData.append";if(Nt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!Rb(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Nt.converters.USVString(e,s,"name"),r=Rb(r)?Nt.converters.Blob(r,s,"value",{strict:!1}):Nt.converters.USVString(r,s,"value"),n=arguments.length===3?Nt.converters.USVString(n,s,"filename"):void 0;let o=nU(e,r,n);this[jn].push(o)}delete(e){Nt.brandCheck(this,t);let r="FormData.delete";Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[jn]=this[jn].filter(n=>n.name!==e)}get(e){Nt.brandCheck(this,t);let r="FormData.get";Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name");let n=this[jn].findIndex(s=>s.name===e);return n===-1?null:this[jn][n].value}getAll(e){Nt.brandCheck(this,t);let r="FormData.getAll";return Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[jn].filter(n=>n.name===e).map(n=>n.value)}has(e){Nt.brandCheck(this,t);let r="FormData.has";return Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[jn].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Nt.brandCheck(this,t);let s="FormData.set";if(Nt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!Rb(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Nt.converters.USVString(e,s,"name"),r=Rb(r)?Nt.converters.Blob(r,s,"name",{strict:!1}):Nt.converters.USVString(r,s,"name"),n=arguments.length===3?Nt.converters.USVString(n,s,"name"):void 0;let o=nU(e,r,n),a=this[jn].findIndex(c=>c.name===e);a!==-1?this[jn]=[...this[jn].slice(0,a),o,...this[jn].slice(a+1).filter(c=>c.name!==e)]:this[jn].push(o)}[oZ.inspect.custom](e,r){let n=this[jn].reduce((o,a)=>(o[a.name]?Array.isArray(o[a.name])?o[a.name].push(a.value):o[a.name]=[o[a.name],a.value]:o[a.name]=a.value,o),{__proto__:null});r.depth??=e,r.colors??=!0;let s=oZ.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};xVe("FormData",CE,jn,"name","value");Object.defineProperties(CE.prototype,{append:iA,delete:iA,get:iA,getAll:iA,has:iA,set:iA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function nU(t,e,r){if(typeof e!="string"){if(bVe(e)||(e=e instanceof Blob?new iZ([e],"blob",{type:e.type}):new sZ(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof aZ?new iZ([e],r,n):new sZ(e,r,n)}}return{name:t,value:e}}i(nU,"makeEntry");cZ.exports={FormData:CE,makeEntry:nU}});var fZ=w((Y3t,mZ)=>{"use strict";var{isUSVString:lZ,bufferToLowerCasedHeaderName:BVe}=Ve(),{utf8DecodeBytes:RVe}=Xs(),{HTTP_TOKEN_CODEPOINTS:NVe,isomorphicDecode:uZ}=Cs(),{isFileLike:TVe}=rU(),{makeEntry:vVe}=IE(),Nb=require("node:assert"),{File:PVe}=require("node:buffer"),_Ve=globalThis.File??PVe,QVe=Buffer.from('form-data; name="'),dZ=Buffer.from("; filename"),DVe=Buffer.from("--"),kVe=Buffer.from(`--\r -`);function LVe(t){for(let e=0;e70)return!1;for(let r=0;r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(OVe,"validateBoundary");function MVe(t,e){Nb(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&Tb(t,DVe,o)||o.position===t.length-4&&Tb(t,kVe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=FVe(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let m;{let A=t.indexOf(n.subarray(2),o.position);if(A===-1)return"failure";m=t.subarray(o.position,A-4),o.position+=m.length,p==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let f;u!==null?(d??="text/plain",LVe(d)||(d=""),f=new _Ve([m],u,{type:d})):f=RVe(Buffer.from(m)),Nb(lZ(l)),Nb(typeof f=="string"&&lZ(f)||TVe(f)),s.push(vVe(l,f,u))}}i(MVe,"multipartFormDataParser");function FVe(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=aA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=sU(a,!0,!0,c=>c===9||c===32),!NVe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,aA(c=>c===32||c===9,t,e),BVe(a)){case"content-disposition":{if(r=n=null,!Tb(t,QVe,e)||(e.position+=17,r=pZ(t,e),r===null))return"failure";if(Tb(t,dZ,e)){let c=e.position+dZ.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=pZ(t,e),n===null))return"failure"}break}case"content-type":{let c=aA(l=>l!==10&&l!==13,t,e);c=sU(c,!1,!0,l=>l===9||l===32),s=uZ(c);break}case"content-transfer-encoding":{let c=aA(l=>l!==10&&l!==13,t,e);c=sU(c,!1,!0,l=>l===9||l===32),o=uZ(c);break}default:aA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(FVe,"parseMultipartFormDataHeaders");function pZ(t,e){Nb(t[e.position-1]===34);let r=aA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,` -`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(pZ,"parseMultipartFormDataName");function aA(t,e,r){let n=r.position;for(;n0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(sU,"removeChars");function Tb(t,e,r){if(t.length{"use strict";var wE=Ve(),{ReadableStreamFrom:UVe,isBlobLike:AZ,isReadableStreamLike:qVe,readableStreamClose:GVe,createDeferredPromise:HVe,fullyReadBody:$Ve,extractMimeType:zVe,utf8DecodeBytes:yZ}=Xs(),{FormData:hZ}=IE(),{kState:lA}=bu(),{webidl:VVe}=yn(),{Blob:WVe}=require("node:buffer"),oU=require("node:assert"),{isErrored:EZ,isDisturbed:YVe}=require("node:stream"),{isArrayBuffer:JVe}=require("node:util/types"),{serializeAMimeType:jVe}=Cs(),{multipartFormDataParser:KVe}=fZ(),iU;try{let t=require("node:crypto");iU=i(e=>t.randomInt(0,e),"random")}catch{iU=i(t=>Math.floor(Math.random(t)),"random")}var vb=new TextEncoder;function XVe(){}i(XVe,"noop");var CZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,IZ;CZ&&(IZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!YVe(e)&&!EZ(e)&&e.cancel("Response object has been garbage collected").catch(XVe)}));function wZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:AZ(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?vb.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>GVe(l))},start(){},type:"bytes"}),oU(qVe(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(JVe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(wE.isFormDataLike(t)){let l=`----formdata-undici-0${`${iU(1e11)}`.padStart(11,"0")}`,u=`--${l}\r +var bHe=Object.create;var mE=Object.defineProperty;var BHe=Object.getOwnPropertyDescriptor;var RHe=Object.getOwnPropertyNames;var NHe=Object.getPrototypeOf,THe=Object.prototype.hasOwnProperty;var i=(t,e)=>mE(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(var r in e)mE(t,r,{get:e[r],enumerable:!0})},iX=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of RHe(e))!THe.call(t,s)&&s!==r&&mE(t,s,{get:()=>e[s],enumerable:!(n=BHe(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?bHe(NHe(t)):{},iX(e||!t||!t.__esModule?mE(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>iX(mE({},"__esModule",{value:!0}),t);var AX=w(Zm=>{"use strict";var gVt=require("net"),kHe=require("tls"),aF=require("http"),pX=require("https"),LHe=require("events"),yVt=require("assert"),OHe=require("util");Zm.httpOverHttp=MHe;Zm.httpsOverHttp=FHe;Zm.httpOverHttps=UHe;Zm.httpsOverHttps=qHe;function MHe(t){var e=new wl(t);return e.request=aF.request,e}i(MHe,"httpOverHttp");function FHe(t){var e=new wl(t);return e.request=aF.request,e.createSocket=fX,e.defaultPort=443,e}i(FHe,"httpsOverHttp");function UHe(t){var e=new wl(t);return e.request=pX.request,e}i(UHe,"httpOverHttps");function qHe(t){var e=new wl(t);return e.request=pX.request,e.createSocket=fX,e.defaultPort=443,e}i(qHe,"httpsOverHttps");function wl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||aF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=mX(s,o,a),l=0,u=e.requests.length;l=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");wl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=cF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),bu("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");function u(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){bu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();var A=new Error("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(m.length>0){bu("got illegal response body from proxy"),f.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}return bu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),bu(`tunneling socket could not be established, cause=%s +`,p.message,p.stack);var f=new Error("tunneling socket could not be established, cause="+p.message);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s)}i(d,"onError")},"createSocket");wl.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function fX(t,e){var r=this;wl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=cF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=kHe.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(fX,"createSecureSocket");function mX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(mX,"toOptions");function cF(t){for(var e=1,r=arguments.length;e{hX.exports=AX()});var qt=w((wVt,gX)=>{gX.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")}});var it=w((SVt,GX)=>{"use strict";var yX=Symbol.for("undici.error.UND_ERR"),Gt=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[yX]===!0}[yX]=!0},EX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),lF=class extends Gt{static{i(this,"ConnectTimeoutError")}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[EX]===!0}[EX]=!0},CX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),uF=class extends Gt{static{i(this,"HeadersTimeoutError")}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[CX]===!0}[CX]=!0},IX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),dF=class extends Gt{static{i(this,"HeadersOverflowError")}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[IX]===!0}[IX]=!0},wX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),pF=class extends Gt{static{i(this,"BodyTimeoutError")}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[wX]===!0}[wX]=!0},SX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),fF=class extends Gt{static{i(this,"ResponseStatusCodeError")}constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[SX]===!0}[SX]=!0},xX=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),mF=class extends Gt{static{i(this,"InvalidArgumentError")}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[xX]===!0}[xX]=!0},bX=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),AF=class extends Gt{static{i(this,"InvalidReturnValueError")}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[bX]===!0}[bX]=!0},BX=Symbol.for("undici.error.UND_ERR_ABORT"),mb=class extends Gt{static{i(this,"AbortError")}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[BX]===!0}[BX]=!0},RX=Symbol.for("undici.error.UND_ERR_ABORTED"),hF=class extends mb{static{i(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[RX]===!0}[RX]=!0},NX=Symbol.for("undici.error.UND_ERR_INFO"),gF=class extends Gt{static{i(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[NX]===!0}[NX]=!0},TX=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),yF=class extends Gt{static{i(this,"RequestContentLengthMismatchError")}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[TX]===!0}[TX]=!0},PX=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),EF=class extends Gt{static{i(this,"ResponseContentLengthMismatchError")}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[PX]===!0}[PX]=!0},vX=Symbol.for("undici.error.UND_ERR_DESTROYED"),CF=class extends Gt{static{i(this,"ClientDestroyedError")}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[vX]===!0}[vX]=!0},_X=Symbol.for("undici.error.UND_ERR_CLOSED"),IF=class extends Gt{static{i(this,"ClientClosedError")}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[_X]===!0}[_X]=!0},QX=Symbol.for("undici.error.UND_ERR_SOCKET"),wF=class extends Gt{static{i(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[QX]===!0}[QX]=!0},DX=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),SF=class extends Gt{static{i(this,"NotSupportedError")}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[DX]===!0}[DX]=!0},kX=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),xF=class extends Gt{static{i(this,"BalancedPoolMissingUpstreamError")}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[kX]===!0}[kX]=!0},LX=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),bF=class extends Error{static{i(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[LX]===!0}[LX]=!0},OX=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),BF=class extends Gt{static{i(this,"ResponseExceededMaxSizeError")}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[OX]===!0}[OX]=!0},MX=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),RF=class extends Gt{static{i(this,"RequestRetryError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[MX]===!0}[MX]=!0},FX=Symbol.for("undici.error.UND_ERR_RESPONSE"),NF=class extends Gt{static{i(this,"ResponseError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[FX]===!0}[FX]=!0},UX=Symbol.for("undici.error.UND_ERR_PRX_TLS"),TF=class extends Gt{static{i(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[UX]===!0}[UX]=!0},qX=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),PF=class extends Gt{static{i(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[qX]===!0}get[qX](){return!0}};GX.exports={AbortError:mb,HTTPParserError:bF,UndiciError:Gt,HeadersTimeoutError:uF,HeadersOverflowError:dF,BodyTimeoutError:pF,RequestContentLengthMismatchError:yF,ConnectTimeoutError:lF,ResponseStatusCodeError:fF,InvalidArgumentError:mF,InvalidReturnValueError:AF,RequestAbortedError:hF,ClientDestroyedError:CF,ClientClosedError:IF,InformationalError:gF,SocketError:wF,NotSupportedError:SF,ResponseContentLengthMismatchError:EF,BalancedPoolMissingUpstreamError:xF,ResponseExceededMaxSizeError:BF,RequestRetryError:RF,ResponseError:NF,SecureProxyConnectionError:TF,MessageSizeExceededError:PF}});var hb=w((bVt,$X)=>{"use strict";var Ab={},vF=["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 t=0;t{"use strict";var{wellknownHeaderNames:HX,headerNameLowerCasedRecord:GHe}=hb(),_F=class t{static{i(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let s=0,o=this;for(;;){let a=e.charCodeAt(s);if(a>127)throw new TypeError("key must be ascii string");if(o.code===a)if(n===++s){o.value=r;break}else if(o.middle!==null)o=o.middle;else{o.middle=new t(e,r,s);break}else if(o.code=65&&(o|=32);s!==null;){if(o===s.code){if(r===++n)return s;s=s.middle;break}s=s.code{"use strict";var AE=require("node:assert"),{kDestroyed:JX,kBodyUsed:tA,kListeners:QF,kBody:YX}=qt(),{IncomingMessage:$He}=require("node:http"),Cb=require("node:stream"),HHe=require("node:net"),{Blob:zHe}=require("node:buffer"),VHe=require("node:util"),{stringify:WHe}=require("node:querystring"),{EventEmitter:YHe}=require("node:events"),{InvalidArgumentError:Kr}=it(),{headerNameLowerCasedRecord:JHe}=hb(),{tree:jX}=WX(),[jHe,KHe]=process.versions.node.split(".").map(t=>Number(t)),Eb=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[YX]=e,this[tA]=!1}async*[Symbol.asyncIterator](){AE(!this[tA],"disturbed"),this[tA]=!0,yield*this[YX]}};function XHe(t){return Ib(t)?(t7(t)===0&&t.on("data",function(){AE(!1)}),typeof t.readableDidRead!="boolean"&&(t[tA]=!1,YHe.prototype.on.call(t,"data",function(){this[tA]=!0})),t):t&&typeof t.pipeTo=="function"?new Eb(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&e7(t)?new Eb(t):t}i(XHe,"wrapRequestBody");function ZHe(){}i(ZHe,"nop");function Ib(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(Ib,"isStream");function KX(t){if(t===null)return!1;if(t instanceof zHe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}i(KX,"isBlobLike");function eze(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=WHe(e);return r&&(t+="?"+r),t}i(eze,"buildURL");function XX(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(XX,"isValidPort");function yb(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(yb,"isHttpOrHttpsPrefixed");function ZX(t){if(typeof t=="string"){if(t=new URL(t),!yb(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new Kr("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&XX(t.port)===!1)throw new Kr("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new Kr("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new Kr("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new Kr("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new Kr("Invalid URL origin: the origin must be a string or null/undefined.");if(!yb(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!yb(t.origin||t.protocol))throw new Kr("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(ZX,"parseURL");function tze(t){if(t=ZX(t),t.pathname!=="/"||t.search||t.hash)throw new Kr("invalid url");return t}i(tze,"parseOrigin");function rze(t){if(t[0]==="["){let r=t.indexOf("]");return AE(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(rze,"getHostname");function nze(t){if(!t)return null;AE(typeof t=="string");let e=rze(t);return HHe.isIP(e)?"":e}i(nze,"getServerName");function sze(t){return JSON.parse(JSON.stringify(t))}i(sze,"deepClone");function oze(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(oze,"isAsyncIterable");function e7(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(e7,"isIterable");function t7(t){if(t==null)return 0;if(Ib(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(KX(t))return t.size!=null?t.size:null;if(s7(t))return t.byteLength}return null}i(t7,"bodyLength");function r7(t){return t&&!!(t.destroyed||t[JX]||Cb.isDestroyed?.(t))}i(r7,"isDestroyed");function ize(t,e){t==null||!Ib(t)||r7(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===$He&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[JX]=!0))}i(ize,"destroy");var aze=/timeout=(\d+)/;function cze(t){let e=t.toString().match(aze);return e?parseInt(e[1],10)*1e3:null}i(cze,"parseKeepAliveTimeout");function n7(t){return typeof t=="string"?JHe[t]??t.toLowerCase():jX.lookup(t)??t.toString("latin1").toLowerCase()}i(n7,"headerNameToString");function lze(t){return jX.lookup(t)??t.toString("latin1").toLowerCase()}i(lze,"bufferToLowerCasedHeaderName");function uze(t,e){e===void 0&&(e={});for(let r=0;ra.toString("utf8")):o.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}i(uze,"parseHeaders");function dze(t){let e=t.length,r=new Array(e),n=!1,s=-1,o,a,c=0;for(let l=0;l{r.close(),r.byobRequest?.respond(0)});else{let o=Buffer.isBuffer(s)?s:Buffer.from(s);o.byteLength&&r.enqueue(new Uint8Array(o))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}i(gze,"ReadableStreamFrom");function yze(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}i(yze,"isFormDataLike");function Eze(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}i(Eze,"addAbortListener");var Cze=typeof String.prototype.toWellFormed=="function",Ize=typeof String.prototype.isWellFormed=="function";function o7(t){return Cze?`${t}`.toWellFormed():VHe.toUSVString(t)}i(o7,"toUSVString");function wze(t){return Ize?`${t}`.isWellFormed():o7(t)===`${t}`}i(wze,"isUSVString");function i7(t){switch(t){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!1;default:return t>=33&&t<=126}}i(i7,"isTokenCharCode");function Sze(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var ft=require("node:diagnostics_channel"),LF=require("node:util"),wb=LF.debuglog("undici"),kF=LF.debuglog("fetch"),Bp=LF.debuglog("websocket"),u7=!1,Pze={beforeConnect:ft.channel("undici:client:beforeConnect"),connected:ft.channel("undici:client:connected"),connectError:ft.channel("undici:client:connectError"),sendHeaders:ft.channel("undici:client:sendHeaders"),create:ft.channel("undici:request:create"),bodySent:ft.channel("undici:request:bodySent"),headers:ft.channel("undici:request:headers"),trailers:ft.channel("undici:request:trailers"),error:ft.channel("undici:request:error"),open:ft.channel("undici:websocket:open"),close:ft.channel("undici:websocket:close"),socketError:ft.channel("undici:websocket:socket_error"),ping:ft.channel("undici:websocket:ping"),pong:ft.channel("undici:websocket:pong")};if(wb.enabled||kF.enabled){let t=kF.enabled?kF:wb;ft.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ft.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ft.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s using %s%s errored - %s",`${o}${s?`:${s}`:""}`,n,r,a.message)}),ft.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)}),ft.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:s},response:{statusCode:o}}=e;t("received response to %s %s/%s - HTTP %d",r,s,n,o)}),ft.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("trailers received from %s %s/%s",r,s,n)}),ft.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:s},error:o}=e;t("request to %s %s/%s errored - %s",r,s,n,o.message)}),u7=!0}if(Bp.enabled){if(!u7){let t=wb.enabled?wb:Bp;ft.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ft.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ft.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s%s using %s%s errored - %s",o,s?`:${s}`:"",n,r,a.message)}),ft.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)})}ft.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Bp("connection opened %s%s",e,r?`:${r}`:"")}),ft.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Bp("closed connection to %s - %s %s",e.url,r,n)}),ft.channel("undici:websocket:socket_error").subscribe(t=>{Bp("connection errored - %s",t.message)}),ft.channel("undici:websocket:ping").subscribe(t=>{Bp("ping received")}),ft.channel("undici:websocket:pong").subscribe(t=>{Bp("pong received")})}d7.exports={channels:Pze}});var A7=w((vVt,m7)=>{"use strict";var{InvalidArgumentError:It,NotSupportedError:vze}=it(),Zs=require("node:assert"),{isValidHTTPToken:f7,isValidHeaderValue:hE,isStream:_ze,destroy:Qze,isBuffer:Dze,isFormDataLike:kze,isIterable:Lze,isBlobLike:Oze,buildURL:Mze,validateHandler:Fze,getServerName:Uze,normalizedMethodRecords:qze}=ze(),{channels:gn}=rA(),{headerNameLowerCasedRecord:p7}=hb(),Gze=/[^\u0021-\u00ff]/,Uo=Symbol("handler"),OF=class{static{i(this,"Request")}constructor(e,{path:r,method:n,body:s,headers:o,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:p,reset:f,throwOnError:m,expectContinue:A,servername:h},E){if(typeof r!="string")throw new It("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new It("path must be an absolute URL or start with a slash");if(Gze.test(r))throw new It("invalid request path");if(typeof n!="string")throw new It("method must be a string");if(qze[n]===void 0&&!f7(n))throw new It("invalid request method");if(u&&typeof u!="string")throw new It("upgrade must be a string");if(u&&!hE(u))throw new It("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new It("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new It("invalid bodyTimeout");if(f!=null&&typeof f!="boolean")throw new It("invalid reset");if(A!=null&&typeof A!="boolean")throw new It("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=p,this.throwOnError=m===!0,this.method=n,this.abort=null,s==null)this.body=null;else if(_ze(s)){this.body=s;let y=this.body._readableState;(!y||!y.autoDestroy)&&(this.endHandler=i(function(){Qze(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=I=>{this.abort?this.abort(I):this.error=I},this.body.on("error",this.errorHandler)}else if(Dze(s))this.body=s.byteLength?s:null;else if(ArrayBuffer.isView(s))this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null;else if(s instanceof ArrayBuffer)this.body=s.byteLength?Buffer.from(s):null;else if(typeof s=="string")this.body=s.length?Buffer.from(s):null;else if(kze(s)||Lze(s)||Oze(s))this.body=s;else throw new It("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=u||null,this.path=a?Mze(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=f??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(o)){if(o.length%2!==0)throw new It("headers array must be even");for(let y=0;y{"use strict";var $ze=require("node:events"),xb=class extends $ze{static{i(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let s of r)if(s!=null){if(typeof s!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof s}`);if(n=s(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new MF(this,n)}},MF=class extends xb{static{i(this,"ComposedDispatcher")}#e=null;#t=null;constructor(e,r){super(),this.#e=e,this.#t=r}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};h7.exports=xb});var iA=w((kVt,y7)=>{"use strict";var Hze=require("node:buffer"),zze=gE(),{ClientDestroyedError:FF,ClientClosedError:Vze,InvalidArgumentError:nA}=it(),{kDestroy:Wze,kClose:Yze,kClosed:yE,kDestroyed:sA,kDispatch:UF,kInterceptors:Rp}=qt(),Sl=Symbol("onDestroyed"),oA=Symbol("onClosed"),bb=Symbol("Intercepted Dispatch"),qF=Symbol("webSocketOptions"),g7=Symbol("eventSourceOptions"),GF=class extends zze{static{i(this,"DispatcherBase")}constructor(e){super(),this[sA]=!1,this[Sl]=null,this[yE]=!1,this[oA]=[],this[qF]=e?.webSocket??{},this[g7]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[qF].maxFragments??131072,maxPayloadSize:this[qF].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[g7].maxEventSize??Hze.kStringMaxLength}}get destroyed(){return this[sA]}get closed(){return this[yE]}get interceptors(){return this[Rp]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Rp][r]!="function")throw new nA("interceptor must be an function")}this[Rp]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((o,a)=>o?s(o):n(a))});if(typeof e!="function")throw new nA("invalid callback");if(this[sA]){queueMicrotask(()=>e(new FF,null));return}if(this[yE]){this[oA]?this[oA].push(e):queueMicrotask(()=>e(null,null));return}this[yE]=!0,this[oA].push(e);let r=i(()=>{let n=this[oA];this[oA]=null;for(let s=0;sthis.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,o)=>{this.destroy(e,(a,c)=>a?o(a):s(c))});if(typeof r!="function")throw new nA("invalid callback");if(this[sA]){this[Sl]?this[Sl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new FF),this[sA]=!0,this[Sl]=this[Sl]||[],this[Sl].push(r);let n=i(()=>{let s=this[Sl];this[Sl]=null;for(let o=0;o{queueMicrotask(n)})}[bb](e,r){if(!this[Rp]||this[Rp].length===0)return this[bb]=this[UF],this[UF](e,r);let n=this[UF].bind(this);for(let s=this[Rp].length-1;s>=0;s--)n=this[Rp][s](n);return this[bb]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new nA("handler must be an object");try{if(!e||typeof e!="object")throw new nA("opts must be an object.");if(this[sA]||this[Sl])throw new FF;if(this[yE])throw new Vze;return this[bb](e,r)}catch(n){if(typeof r.onError!="function")throw new nA("invalid onError method");return r.onError(n),!1}}};y7.exports=GF});var JF=w((OVt,w7)=>{"use strict";var aA=0,$F=1e3,HF=($F>>1)-1,xl,zF=Symbol("kFastTimer"),bl=[],VF=-2,WF=-1,C7=0,E7=1;function YF(){aA+=HF;let t=0,e=bl.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=WF,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===WF?(r._state=VF,--e!==0&&(bl[t]=bl[e])):++t}bl.length=e,bl.length!==0&&I7()}i(YF,"onTick");function I7(){xl?xl.refresh():(clearTimeout(xl),xl=setTimeout(YF,HF),xl.unref&&xl.unref())}i(I7,"refreshTimeout");var Bb=class{static{i(this,"FastTimer")}[zF]=!0;_state=VF;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===VF&&bl.push(this),(!xl||bl.length===1)&&I7(),this._state=C7}clear(){this._state=WF,this._idleStart=-1}};w7.exports={setTimeout(t,e,r){return e<=$F?setTimeout(t,e,r):new Bb(t,e,r)},clearTimeout(t){t[zF]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new Bb(t,e,r)},clearFastTimeout(t){t.clear()},now(){return aA},tick(t=0){aA+=t-$F+1,YF(),YF()},reset(){aA=0,bl.length=0,clearTimeout(xl),xl=null},kFastTimer:zF}});var EE=w((qVt,R7)=>{"use strict";var Jze=require("node:net"),S7=require("node:assert"),B7=ze(),{InvalidArgumentError:jze,ConnectTimeoutError:Kze}=it(),Rb=JF();function x7(){}i(x7,"noop");var jF,KF;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?KF=class{static{i(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function Xze({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new jze("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new KF(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:f,servername:m,localAddress:A,httpSocket:h},E){let y;if(p==="https:"){jF||(jF=require("node:tls")),m=m||a.servername||B7.getServerName(d)||null;let x=m||u;S7(x);let b=s||c.get(x)||null;f=f||443,y=jF.connect({highWaterMark:16384,...a,servername:m,session:b,localAddress:A,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:h,port:f,host:u}),y.on("session",function(N){c.set(x,N)})}else S7(!h,"httpSocket can only be sent on TLS update"),f=f||80,y=Jze.connect({highWaterMark:64*1024,...a,localAddress:A,port:f,host:u});if(a.keepAlive==null||a.keepAlive){let x=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;y.setKeepAlive(!0,x)}let I=Zze(new WeakRef(y),{timeout:n,hostname:u,port:f});return y.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(I),E){let x=E;E=null,x(null,this)}}).on("error",function(x){if(queueMicrotask(I),E){let b=E;E=null,b(x)}}),y},"connect")}i(Xze,"buildConnector");var Zze=process.platform==="win32"?(t,e)=>{if(!e.timeout)return x7;let r=null,n=null,s=Rb.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>b7(t.deref(),e))})},e.timeout);return()=>{Rb.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return x7;let r=null,n=Rb.setFastTimeout(()=>{r=setImmediate(()=>{b7(t.deref(),e)})},e.timeout);return()=>{Rb.clearFastTimeout(n),clearImmediate(r)}};function b7(t,e){if(t==null)return;let r="Connect Timeout Error";Array.isArray(t.autoSelectFamilyAttemptedAddresses)?r+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`:r+=` (attempted address: ${e.hostname}:${e.port},`,r+=` timeout: ${e.timeout}ms)`,B7.destroy(t,new Kze(r))}i(b7,"onConnectTimeout");R7.exports=Xze});var N7=w(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.enumToMap=void 0;function e3e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(e3e,"enumToMap");Nb.enumToMap=e3e});var T7=w(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.SPECIAL_HEADERS=k.HEADER_STATE=k.MINOR=k.MAJOR=k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS=k.TOKEN=k.STRICT_TOKEN=k.HEX=k.URL_CHAR=k.STRICT_URL_CHAR=k.USERINFO_CHARS=k.MARK=k.ALPHANUM=k.NUM=k.HEX_MAP=k.NUM_MAP=k.ALPHA=k.FINISH=k.H_METHOD_MAP=k.METHOD_MAP=k.METHODS_RTSP=k.METHODS_ICE=k.METHODS_HTTP=k.METHODS=k.LENIENT_FLAGS=k.FLAGS=k.TYPE=k.ERROR=void 0;var t3e=N7(),r3e;(function(t){t[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER"})(r3e=k.ERROR||(k.ERROR={}));var n3e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(n3e=k.TYPE||(k.TYPE={}));var s3e;(function(t){t[t.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",t[t.CHUNKED=8]="CHUNKED",t[t.UPGRADE=16]="UPGRADE",t[t.CONTENT_LENGTH=32]="CONTENT_LENGTH",t[t.SKIPBODY=64]="SKIPBODY",t[t.TRAILING=128]="TRAILING",t[t.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(s3e=k.FLAGS||(k.FLAGS={}));var o3e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(o3e=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var me;(function(t){t[t.DELETE=0]="DELETE",t[t.GET=1]="GET",t[t.HEAD=2]="HEAD",t[t.POST=3]="POST",t[t.PUT=4]="PUT",t[t.CONNECT=5]="CONNECT",t[t.OPTIONS=6]="OPTIONS",t[t.TRACE=7]="TRACE",t[t.COPY=8]="COPY",t[t.LOCK=9]="LOCK",t[t.MKCOL=10]="MKCOL",t[t.MOVE=11]="MOVE",t[t.PROPFIND=12]="PROPFIND",t[t.PROPPATCH=13]="PROPPATCH",t[t.SEARCH=14]="SEARCH",t[t.UNLOCK=15]="UNLOCK",t[t.BIND=16]="BIND",t[t.REBIND=17]="REBIND",t[t.UNBIND=18]="UNBIND",t[t.ACL=19]="ACL",t[t.REPORT=20]="REPORT",t[t.MKACTIVITY=21]="MKACTIVITY",t[t.CHECKOUT=22]="CHECKOUT",t[t.MERGE=23]="MERGE",t[t["M-SEARCH"]=24]="M-SEARCH",t[t.NOTIFY=25]="NOTIFY",t[t.SUBSCRIBE=26]="SUBSCRIBE",t[t.UNSUBSCRIBE=27]="UNSUBSCRIBE",t[t.PATCH=28]="PATCH",t[t.PURGE=29]="PURGE",t[t.MKCALENDAR=30]="MKCALENDAR",t[t.LINK=31]="LINK",t[t.UNLINK=32]="UNLINK",t[t.SOURCE=33]="SOURCE",t[t.PRI=34]="PRI",t[t.DESCRIBE=35]="DESCRIBE",t[t.ANNOUNCE=36]="ANNOUNCE",t[t.SETUP=37]="SETUP",t[t.PLAY=38]="PLAY",t[t.PAUSE=39]="PAUSE",t[t.TEARDOWN=40]="TEARDOWN",t[t.GET_PARAMETER=41]="GET_PARAMETER",t[t.SET_PARAMETER=42]="SET_PARAMETER",t[t.REDIRECT=43]="REDIRECT",t[t.RECORD=44]="RECORD",t[t.FLUSH=45]="FLUSH"})(me=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[me.DELETE,me.GET,me.HEAD,me.POST,me.PUT,me.CONNECT,me.OPTIONS,me.TRACE,me.COPY,me.LOCK,me.MKCOL,me.MOVE,me.PROPFIND,me.PROPPATCH,me.SEARCH,me.UNLOCK,me.BIND,me.REBIND,me.UNBIND,me.ACL,me.REPORT,me.MKACTIVITY,me.CHECKOUT,me.MERGE,me["M-SEARCH"],me.NOTIFY,me.SUBSCRIBE,me.UNSUBSCRIBE,me.PATCH,me.PURGE,me.MKCALENDAR,me.LINK,me.UNLINK,me.PRI,me.SOURCE];k.METHODS_ICE=[me.SOURCE];k.METHODS_RTSP=[me.OPTIONS,me.DESCRIBE,me.ANNOUNCE,me.SETUP,me.PLAY,me.PAUSE,me.TEARDOWN,me.GET_PARAMETER,me.SET_PARAMETER,me.REDIRECT,me.RECORD,me.FLUSH,me.GET,me.POST];k.METHOD_MAP=t3e.enumToMap(me);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var i3e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(i3e=k.FINISH||(k.FINISH={}));k.ALPHA=[];for(let t=65;t<=90;t++)k.ALPHA.push(String.fromCharCode(t)),k.ALPHA.push(String.fromCharCode(t+32));k.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};k.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};k.NUM=["0","1","2","3","4","5","6","7","8","9"];k.ALPHANUM=k.ALPHA.concat(k.NUM);k.MARK=["-","_",".","!","~","*","'","(",")"];k.USERINFO_CHARS=k.ALPHANUM.concat(k.MARK).concat(["%",";",":","&","=","+","$",","]);k.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(k.ALPHANUM);k.URL_CHAR=k.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)k.URL_CHAR.push(t);k.HEX=k.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);k.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(k.ALPHANUM);k.TOKEN=k.STRICT_TOKEN.concat([" "]);k.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&k.HEADER_CHARS.push(t);k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS.filter(t=>t!==44);k.MAJOR=k.NUM_MAP;k.MINOR=k.MAJOR;var cA;(function(t){t[t.GENERAL=0]="GENERAL",t[t.CONNECTION=1]="CONNECTION",t[t.CONTENT_LENGTH=2]="CONTENT_LENGTH",t[t.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",t[t.UPGRADE=4]="UPGRADE",t[t.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",t[t.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(cA=k.HEADER_STATE||(k.HEADER_STATE={}));k.SPECIAL_HEADERS={connection:cA.CONNECTION,"content-length":cA.CONTENT_LENGTH,"proxy-connection":cA.CONNECTION,"transfer-encoding":cA.TRANSFER_ENCODING,upgrade:cA.UPGRADE}});var XF=w((VVt,P7)=>{"use strict";var{Buffer:a3e}=require("node:buffer");P7.exports=a3e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjd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IgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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gtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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ANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCw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BowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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sgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAg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6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var CE=w((YVt,U7)=>{"use strict";var Q7=["GET","HEAD","POST"],l3e=new Set(Q7),u3e=[101,204,205,304],D7=[301,302,303,307,308],d3e=new Set(D7),k7=["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"],p3e=new Set(k7),L7=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],f3e=new Set(L7),m3e=["follow","manual","error"],O7=["GET","HEAD","OPTIONS","TRACE"],A3e=new Set(O7),h3e=["navigate","same-origin","no-cors","cors"],g3e=["omit","same-origin","include"],y3e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],E3e=["content-encoding","content-language","content-location","content-type","content-length"],C3e=["half"],M7=["CONNECT","TRACE","TRACK"],I3e=new Set(M7),F7=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],w3e=new Set(F7);U7.exports={subresource:F7,forbiddenMethods:M7,requestBodyHeader:E3e,referrerPolicy:L7,requestRedirect:m3e,requestMode:h3e,requestCredentials:g3e,requestCache:y3e,redirectStatus:D7,corsSafeListedMethods:Q7,nullBodyStatus:u3e,safeMethods:O7,badPorts:k7,requestDuplex:C3e,subresourceSet:w3e,badPortsSet:p3e,redirectStatusSet:d3e,corsSafeListedMethodsSet:l3e,safeMethodsSet:A3e,forbiddenMethodsSet:I3e,referrerPolicySet:f3e}});var eU=w((JVt,q7)=>{"use strict";var ZF=Symbol.for("undici.globalOrigin.1");function S3e(){return globalThis[ZF]}i(S3e,"getGlobalOrigin");function x3e(t){if(t===void 0){Object.defineProperty(globalThis,ZF,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new TypeError(`Only http & https urls are allowed, received ${e.protocol}`);Object.defineProperty(globalThis,ZF,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(x3e,"setGlobalOrigin");q7.exports={getGlobalOrigin:S3e,setGlobalOrigin:x3e}});var Is=w((KVt,Y7)=>{"use strict";var Pb=require("node:assert"),b3e=new TextEncoder,IE=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,B3e=/[\u000A\u000D\u0009\u0020]/,R3e=/[\u0009\u000A\u000C\u000D\u0020]/g,N3e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function T3e(t){Pb(t.protocol==="data:");let e=H7(t,!0);e=e.slice(5);let r={position:0},n=lA(",",e,r),s=n.length;if(n=k3e(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=z7(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=W7(a);if(a=v3e(l),a==="failure")return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let c=tU(n);return c==="failure"&&(c=tU("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(T3e,"dataURLProcessor");function H7(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,s=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?s.slice(0,-1):s}i(H7,"URLSerializer");function vb(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(G7,"isHexCharByte");function $7(t){return t>=48&&t<=57?t-48:(t&223)-55}i($7,"hexByteToNumber");function P3e(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;st.length)return"failure";e.position++;let n=lA(";",t,e);if(n=Tb(n,!1,!0),n.length===0||!IE.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positionB3e.test(u),t,e);let c=vb(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=V7(t,e,!0),lA(";",t,e);else if(l=lA(";",t,e),l=Tb(l,!1,!0),l.length===0)continue;c.length!==0&&IE.test(c)&&(l.length===0||N3e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(tU,"parseMIMEType");function v3e(t){t=t.replace(R3e,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}i(v3e,"forgivingBase64");function V7(t,e,r){let n=e.position,s="";for(Pb(t[e.position]==='"'),e.position++;s+=vb(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let o=t[e.position];if(e.position++,o==="\\"){if(e.position>=t.length){s+="\\";break}s+=t[e.position],e.position++}else{Pb(o==='"');break}}return r?s:t.slice(n,e.position)}i(V7,"collectAnHTTPQuotedString");function _3e(t){Pb(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",IE.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(_3e,"serializeAMimeType");function Q3e(t){return t===13||t===10||t===9||t===32}i(Q3e,"isHTTPWhiteSpace");function Tb(t,e=!0,r=!0){return rU(t,e,r,Q3e)}i(Tb,"removeHTTPWhitespace");function D3e(t){return t===13||t===10||t===9||t===12||t===32}i(D3e,"isASCIIWhitespace");function k3e(t,e=!0,r=!0){return rU(t,e,r,D3e)}i(k3e,"removeASCIIWhitespace");function rU(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s0&&n(t.charCodeAt(o));)o--;return s===0&&o===t.length-1?t:t.slice(s,o+1)}i(rU,"removeChars");function W7(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,s=65535;for(;ne&&(s=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=s));return r}i(W7,"isomorphicDecode");function L3e(t){switch(t.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"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}i(L3e,"minimizeSupportedMimeType");Y7.exports={dataURLProcessor:T3e,URLSerializer:H7,collectASequenceOfCodePoints:vb,collectASequenceOfCodePointsFast:lA,stringPercentDecode:z7,parseMIMEType:tU,collectAnHTTPQuotedString:V7,serializeAMimeType:_3e,removeChars:rU,removeHTTPWhitespace:Tb,minimizeSupportedMimeType:L3e,HTTP_TOKEN_CODEPOINTS:IE,isomorphicDecode:W7}});var yn=w((ZVt,J7)=>{"use strict";var{types:Pa,inspect:O3e}=require("node:util"),{markAsUncloneable:M3e}=require("node:worker_threads"),{toUSVString:F3e}=ze(),Q={};Q.converters={};Q.util={};Q.errors={};Q.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};Q.errors.conversionFailed=function(t){let e=t.types.length===1?"":" one of",r=`${t.argument} could not be converted to${e}: ${t.types.join(", ")}.`;return Q.errors.exception({header:t.prefix,message:r})};Q.errors.invalidArgument=function(t){return Q.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};Q.brandCheck=function(t,e,r){if(r?.strict!==!1){if(!(t instanceof e)){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}}else if(t?.[Symbol.toStringTag]!==e.prototype[Symbol.toStringTag]){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}};Q.argumentLengthCheck=function({length:t},e,r){if(t{});Q.util.ConvertToInt=function(t,e,r,n){let s,o;e===64?(s=Math.pow(2,53)-1,r==="unsigned"?o=0:o=Math.pow(-2,53)+1):r==="unsigned"?(o=0,s=Math.pow(2,e)-1):(o=Math.pow(-2,e)-1,s=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw Q.errors.exception({header:"Integer conversion",message:`Could not convert ${Q.util.Stringify(t)} to an integer.`});if(a=Q.util.IntegerPart(a),as)throw Q.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,o),s),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=Q.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Q.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Q.util.Stringify=function(t){switch(Q.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return O3e(t);case"String":return`"${t}"`;default:return`${t}`}};Q.sequenceConverter=function(t){return(e,r,n,s)=>{if(Q.util.Type(e)!=="Object")throw Q.errors.exception({header:r,message:`${n} (${Q.util.Stringify(e)}) is not iterable.`});let o=typeof s=="function"?s():e?.[Symbol.iterator]?.(),a=[],c=0;if(o===void 0||typeof o.next!="function")throw Q.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=o.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};Q.recordConverter=function(t,e){return(r,n,s)=>{if(Q.util.Type(r)!=="Object")throw Q.errors.exception({header:n,message:`${s} ("${Q.util.Type(r)}") is not an Object.`});let o={};if(!Pa.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,s),d=e(r[l],n,s);o[u]=d}return o}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,s),d=e(r[c],n,s);o[u]=d}return o}};Q.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw Q.errors.exception({header:r,message:`Expected ${n} ("${Q.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Q.dictionaryConverter=function(t){return(e,r,n)=>{let s=Q.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw Q.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:l,required:u,converter:d}=a;if(u===!0&&!Object.hasOwn(e,c))throw Q.errors.exception({header:r,message:`Missing required key "${c}".`});let p=e[c],f=Object.hasOwn(a,"defaultValue");if(f&&p!==null&&(p??=l()),u||f||p!==void 0){if(p=d(p,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(p))throw Q.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};Q.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Q.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Q.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Q.converters.ByteString=function(t,e,r){let n=Q.converters.DOMString(t,e,r);for(let s=0;s255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${s} has a value of ${n.charCodeAt(s)} which is greater than 255.`);return n};Q.converters.USVString=F3e;Q.converters.boolean=function(t){return!!t};Q.converters.any=function(t){return t};Q.converters["long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"signed",void 0,e,r)};Q.converters["unsigned long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};Q.converters["unsigned long"]=function(t,e,r){return Q.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};Q.converters["unsigned short"]=function(t,e,r,n){return Q.util.ConvertToInt(t,16,"unsigned",n,e,r)};Q.converters.ArrayBuffer=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!Pa.isAnyArrayBuffer(t))throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&Pa.isSharedArrayBuffer(t))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.TypedArray=function(t,e,r,n,s){if(Q.util.Type(t)!=="Object"||!Pa.isTypedArray(t)||t.constructor.name!==e.name)throw Q.errors.conversionFailed({prefix:r,argument:`${n} ("${Q.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&Pa.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.DataView=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!Pa.isDataView(t))throw Q.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&Pa.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.BufferSource=function(t,e,r,n){if(Pa.isAnyArrayBuffer(t))return Q.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(Pa.isTypedArray(t))return Q.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(Pa.isDataView(t))return Q.converters.DataView(t,e,r,{...n,allowShared:!1});throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["BufferSource"]})};Q.converters["sequence"]=Q.sequenceConverter(Q.converters.ByteString);Q.converters["sequence>"]=Q.sequenceConverter(Q.converters["sequence"]);Q.converters["record"]=Q.recordConverter(Q.converters.ByteString,Q.converters.ByteString);J7.exports={webidl:Q}});var eo=w((e4t,lZ)=>{"use strict";var{Transform:U3e}=require("node:stream"),j7=require("node:zlib"),{redirectStatusSet:q3e,referrerPolicySet:G3e,badPortsSet:$3e}=CE(),{getGlobalOrigin:K7}=eU(),{collectASequenceOfCodePoints:Np,collectAnHTTPQuotedString:H3e,removeChars:z3e,parseMIMEType:V3e}=Is(),{performance:W3e}=require("node:perf_hooks"),{isBlobLike:Y3e,ReadableStreamFrom:J3e,isValidHTTPToken:X7,normalizedMethodRecordsBase:j3e}=ze(),Tp=require("node:assert"),{isUint8Array:K3e}=require("node:util/types"),{webidl:wE}=yn(),Z7=[],Qb;try{Qb=require("node:crypto");let t=["sha256","sha384","sha512"];Z7=Qb.getHashes().filter(e=>t.includes(e))}catch{}function eZ(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(eZ,"responseURL");function X3e(t,e){if(!q3e.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&rZ(r)&&(tZ(r)||(r=Z3e(r)),r=new URL(r,eZ(t))),r&&!r.hash&&(r.hash=e),r}i(X3e,"responseLocationURL");function tZ(t){for(let e=0;e126||r<32)return!1}return!0}i(tZ,"isValidEncodedURL");function Z3e(t){return Buffer.from(t,"binary").toString("utf8")}i(Z3e,"normalizeBinaryStringToUtf8");function xE(t){return t.urlList[t.urlList.length-1]}i(xE,"requestCurrentURL");function eVe(t){let e=xE(t);return aZ(e)&&$3e.has(e.port)?"blocked":"allowed"}i(eVe,"requestBadPort");function tVe(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(tVe,"isErrorLike");function rVe(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(rVe,"isValidReasonPhrase");var nVe=X7;function rZ(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` +`)||t.includes("\r")||t.includes("\0"))===!1}i(rZ,"isValidHeaderValue");function sVe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(G3e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(sVe,"setRequestReferrerPolicyOnRedirect");function oVe(){return"allowed"}i(oVe,"crossOriginResourcePolicyCheck");function iVe(){return"success"}i(iVe,"corsCheck");function aVe(){return"success"}i(aVe,"TAOCheck");function cVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(cVe,"appendFetchMetadata");function lVe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&sU(t.origin)&&!sU(xE(t))&&(e=null);break;case"same-origin":Db(t,xE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(lVe,"appendRequestOriginHeader");function uA(t,e){return t}i(uA,"coarsenTime");function uVe(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=Db(t,n),a=SE(n)&&!SE(t.url);switch(e){case"origin":return s??nU(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=xE(t);return Db(n,c)?n:SE(n)&&!SE(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(mVe,"determineRequestsReferrer");function nU(t,e){return Tp(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(nU,"stripURLForReferrer");function SE(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(SE,"isURLPotentiallyTrustworthy");function AVe(t,e){if(Qb===void 0)return!0;let r=sZ(e);if(r==="no metadata"||r.length===0)return!0;let n=gVe(r),s=yVe(r,n);for(let o of s){let a=o.algo,c=o.hash,l=Qb.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),EVe(l,c))return!0}return!1}i(AVe,"bytesMatch");var hVe=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function sZ(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=hVe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();Z7.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(sZ,"parseMetadata");function gVe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r{t=n,e=s}),resolve:t,reject:e}}i(IVe,"createDeferredPromise");function wVe(t){return t.controller.state==="aborted"}i(wVe,"isAborted");function SVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(SVe,"isCancelled");function xVe(t){return j3e[t.toLowerCase()]??t}i(xVe,"normalizeMethod");function bVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Tp(typeof e=="string"),e}i(bVe,"serializeJavascriptValueToJSONString");var BVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oZ(t,e,r=0,n=1){class s{static{i(this,"FastIterableIterator")}#e;#t;#n;constructor(a,c){this.#e=a,this.#t=c,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#n,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#n=a+1;let p;switch(this.#t){case"key":p=u;break;case"value":p=d;break;case"key+value":p=[u,d];break}return{value:p,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,BVe),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(o,a){return new s(o,a)}}i(oZ,"createIterator");function RVe(t,e,r,n=0,s=1){let o=oZ(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return wE.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return wE.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return wE.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(wE.brandCheck(this,e),wE.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:p}of o(this,"key+value"))l.call(u,p,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}i(RVe,"iteratorMixin");async function NVe(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await iZ(o))}catch(a){s(a)}}i(NVe,"fullyReadBody");function TVe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(TVe,"isReadableStreamLike");function PVe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}i(PVe,"readableStreamClose");var vVe=/[^\x00-\xFF]/;function _b(t){return Tp(!vVe.test(t)),t}i(_b,"isomorphicEncode");async function iZ(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!K3e(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(iZ,"readAllBytes");function _Ve(t){Tp("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(_Ve,"urlIsLocal");function sU(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}i(sU,"urlHasHttpsScheme");function aZ(t){Tp("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(aZ,"urlIsHttpHttpsScheme");function QVe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Np(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Np(l=>l===" "||l===" ",r,n);let s=Np(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&Np(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Np(l=>l===" "||l===" ",r,n);let a=Np(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.positionc?"failure":{rangeStartValue:o,rangeEndValue:c}}i(QVe,"simpleRangeHeaderValue");function DVe(t,e,r){let n="bytes ";return n+=_b(`${t}`),n+="-",n+=_b(`${e}`),n+="/",n+=_b(`${r}`),n}i(DVe,"buildContentRange");var oU=class extends U3e{static{i(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?j7.createInflate(this.#e):j7.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",s=>this.destroy(s))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function kVe(t){return new oU(t)}i(kVe,"createInflate");function LVe(t){let e=null,r=null,n=null,s=cZ("content-type",t);if(s===null)return"failure";for(let o of s){let a=V3e(o);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}i(LVe,"extractMimeType");function OVe(t){let e=t,r={position:0},n=[],s="";for(;r.positiono!=='"'&&o!==",",e,r),r.positiono===9||o===32),n.push(s),s=""}return n}i(OVe,"gettingDecodingSplitting");function cZ(t,e){let r=e.get(t,!0);return r===null?null:OVe(r)}i(cZ,"getDecodeSplit");var MVe=new TextDecoder;function FVe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),MVe.decode(t))}i(FVe,"utf8DecodeBytes");var iU=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return K7()}get origin(){return this.baseUrl?.origin}policyContainer=nZ()},aU=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new iU},UVe=new aU;lZ.exports={isAborted:wVe,isCancelled:SVe,isValidEncodedURL:tZ,createDeferredPromise:IVe,ReadableStreamFrom:J3e,tryUpgradeRequestToAPotentiallyTrustworthyURL:CVe,clampAndCoarsenConnectionTimingInfo:uVe,coarsenedSharedCurrentTime:dVe,determineRequestsReferrer:mVe,makePolicyContainer:nZ,clonePolicyContainer:fVe,appendFetchMetadata:cVe,appendRequestOriginHeader:lVe,TAOCheck:aVe,corsCheck:iVe,crossOriginResourcePolicyCheck:oVe,createOpaqueTimingInfo:pVe,setRequestReferrerPolicyOnRedirect:sVe,isValidHTTPToken:X7,requestBadPort:eVe,requestCurrentURL:xE,responseURL:eZ,responseLocationURL:X3e,isBlobLike:Y3e,isURLPotentiallyTrustworthy:SE,isValidReasonPhrase:rVe,sameOrigin:Db,normalizeMethod:xVe,serializeJavascriptValueToJSONString:bVe,iteratorMixin:RVe,createIterator:oZ,isValidHeaderName:nVe,isValidHeaderValue:rZ,isErrorLike:tVe,fullyReadBody:NVe,bytesMatch:AVe,isReadableStreamLike:TVe,readableStreamClose:PVe,isomorphicEncode:_b,urlIsLocal:_Ve,urlHasHttpsScheme:sU,urlIsHttpHttpsScheme:aZ,readAllBytes:iZ,simpleRangeHeaderValue:QVe,buildContentRange:DVe,parseMetadata:sZ,createInflate:kVe,extractMimeType:LVe,getDecodeSplit:cZ,utf8DecodeBytes:FVe,environmentSettingsObject:UVe}});var Bu=w((r4t,uZ)=>{"use strict";uZ.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var lU=w((n4t,dZ)=>{"use strict";var{Blob:qVe,File:GVe}=require("node:buffer"),{kState:Bl}=Bu(),{webidl:va}=yn(),cU=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[Bl]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return va.brandCheck(this,t),this[Bl].blobLike.stream(...e)}arrayBuffer(...e){return va.brandCheck(this,t),this[Bl].blobLike.arrayBuffer(...e)}slice(...e){return va.brandCheck(this,t),this[Bl].blobLike.slice(...e)}text(...e){return va.brandCheck(this,t),this[Bl].blobLike.text(...e)}get size(){return va.brandCheck(this,t),this[Bl].blobLike.size}get type(){return va.brandCheck(this,t),this[Bl].blobLike.type}get name(){return va.brandCheck(this,t),this[Bl].name}get lastModified(){return va.brandCheck(this,t),this[Bl].lastModified}get[Symbol.toStringTag](){return"File"}};va.converters.Blob=va.interfaceConverter(qVe);function $Ve(t){return t instanceof GVe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i($Ve,"isFileLike");dZ.exports={FileLike:cU,isFileLike:$Ve}});var BE=w((o4t,hZ)=>{"use strict";var{isBlobLike:kb,iteratorMixin:HVe}=eo(),{kState:Kn}=Bu(),{kEnumerableProperty:dA}=ze(),{FileLike:pZ,isFileLike:zVe}=lU(),{webidl:Nt}=yn(),{File:AZ}=require("node:buffer"),fZ=require("node:util"),mZ=globalThis.File??AZ,bE=class t{static{i(this,"FormData")}constructor(e){if(Nt.util.markAsUncloneable(this),e!==void 0)throw Nt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Kn]=[]}append(e,r,n=void 0){Nt.brandCheck(this,t);let s="FormData.append";if(Nt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!kb(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Nt.converters.USVString(e,s,"name"),r=kb(r)?Nt.converters.Blob(r,s,"value",{strict:!1}):Nt.converters.USVString(r,s,"value"),n=arguments.length===3?Nt.converters.USVString(n,s,"filename"):void 0;let o=uU(e,r,n);this[Kn].push(o)}delete(e){Nt.brandCheck(this,t);let r="FormData.delete";Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[Kn]=this[Kn].filter(n=>n.name!==e)}get(e){Nt.brandCheck(this,t);let r="FormData.get";Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name");let n=this[Kn].findIndex(s=>s.name===e);return n===-1?null:this[Kn][n].value}getAll(e){Nt.brandCheck(this,t);let r="FormData.getAll";return Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[Kn].filter(n=>n.name===e).map(n=>n.value)}has(e){Nt.brandCheck(this,t);let r="FormData.has";return Nt.argumentLengthCheck(arguments,1,r),e=Nt.converters.USVString(e,r,"name"),this[Kn].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Nt.brandCheck(this,t);let s="FormData.set";if(Nt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!kb(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Nt.converters.USVString(e,s,"name"),r=kb(r)?Nt.converters.Blob(r,s,"name",{strict:!1}):Nt.converters.USVString(r,s,"name"),n=arguments.length===3?Nt.converters.USVString(n,s,"name"):void 0;let o=uU(e,r,n),a=this[Kn].findIndex(c=>c.name===e);a!==-1?this[Kn]=[...this[Kn].slice(0,a),o,...this[Kn].slice(a+1).filter(c=>c.name!==e)]:this[Kn].push(o)}[fZ.inspect.custom](e,r){let n=this[Kn].reduce((o,a)=>(o[a.name]?Array.isArray(o[a.name])?o[a.name].push(a.value):o[a.name]=[o[a.name],a.value]:o[a.name]=a.value,o),{__proto__:null});r.depth??=e,r.colors??=!0;let s=fZ.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};HVe("FormData",bE,Kn,"name","value");Object.defineProperties(bE.prototype,{append:dA,delete:dA,get:dA,getAll:dA,has:dA,set:dA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function uU(t,e,r){if(typeof e!="string"){if(zVe(e)||(e=e instanceof Blob?new mZ([e],"blob",{type:e.type}):new pZ(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof AZ?new mZ([e],r,n):new pZ(e,r,n)}}return{name:t,value:e}}i(uU,"makeEntry");hZ.exports={FormData:bE,makeEntry:uU}});var wZ=w((a4t,IZ)=>{"use strict";var{isUSVString:gZ,bufferToLowerCasedHeaderName:VVe}=ze(),{utf8DecodeBytes:WVe}=eo(),{HTTP_TOKEN_CODEPOINTS:YVe,isomorphicDecode:yZ}=Is(),{isFileLike:JVe}=lU(),{makeEntry:jVe}=BE(),Lb=require("node:assert"),{File:KVe}=require("node:buffer"),XVe=globalThis.File??KVe,ZVe=Buffer.from('form-data; name="'),EZ=Buffer.from("; filename"),e4e=Buffer.from("--"),t4e=Buffer.from(`--\r +`);function r4e(t){for(let e=0;e70)return!1;for(let r=0;r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(n4e,"validateBoundary");function s4e(t,e){Lb(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&Ob(t,e4e,o)||o.position===t.length-4&&Ob(t,t4e,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=o4e(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let f;{let A=t.indexOf(n.subarray(2),o.position);if(A===-1)return"failure";f=t.subarray(o.position,A-4),o.position+=f.length,p==="base64"&&(f=Buffer.from(f.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let m;u!==null?(d??="text/plain",r4e(d)||(d=""),m=new XVe([f],u,{type:d})):m=WVe(Buffer.from(f)),Lb(gZ(l)),Lb(typeof m=="string"&&gZ(m)||JVe(m)),s.push(jVe(l,m,u))}}i(s4e,"multipartFormDataParser");function o4e(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=pA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=dU(a,!0,!0,c=>c===9||c===32),!YVe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,pA(c=>c===32||c===9,t,e),VVe(a)){case"content-disposition":{if(r=n=null,!Ob(t,ZVe,e)||(e.position+=17,r=CZ(t,e),r===null))return"failure";if(Ob(t,EZ,e)){let c=e.position+EZ.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=CZ(t,e),n===null))return"failure"}break}case"content-type":{let c=pA(l=>l!==10&&l!==13,t,e);c=dU(c,!1,!0,l=>l===9||l===32),s=yZ(c);break}case"content-transfer-encoding":{let c=pA(l=>l!==10&&l!==13,t,e);c=dU(c,!1,!0,l=>l===9||l===32),o=yZ(c);break}default:pA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(o4e,"parseMultipartFormDataHeaders");function CZ(t,e){Lb(t[e.position-1]===34);let r=pA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,` +`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(CZ,"parseMultipartFormDataName");function pA(t,e,r){let n=r.position;for(;n0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(dU,"removeChars");function Ob(t,e,r){if(t.length{"use strict";var RE=ze(),{ReadableStreamFrom:i4e,isBlobLike:SZ,isReadableStreamLike:a4e,readableStreamClose:c4e,createDeferredPromise:l4e,fullyReadBody:u4e,extractMimeType:d4e,utf8DecodeBytes:BZ}=eo(),{FormData:xZ}=BE(),{kState:mA}=Bu(),{webidl:p4e}=yn(),{Blob:f4e}=require("node:buffer"),pU=require("node:assert"),{isErrored:RZ,isDisturbed:m4e}=require("node:stream"),{isArrayBuffer:A4e}=require("node:util/types"),{serializeAMimeType:h4e}=Is(),{multipartFormDataParser:g4e}=wZ(),fU;try{let t=require("node:crypto");fU=i(e=>t.randomInt(0,e),"random")}catch{fU=i(t=>Math.floor(Math.random(t)),"random")}var Mb=new TextEncoder;function y4e(){}i(y4e,"noop");var NZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,TZ;NZ&&(TZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!m4e(e)&&!RZ(e)&&e.cancel("Response object has been garbage collected").catch(y4e)}));function PZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:SZ(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?Mb.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>c4e(l))},start(){},type:"bytes"}),pU(a4e(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(A4e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RE.isFormDataLike(t)){let l=`----formdata-undici-0${`${fU(1e11)}`.padStart(11,"0")}`,u=`--${l}\r Content-Disposition: form-data`;let d=i(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(E=>E.replace(/\r?\n|\r/g,`\r -`),"normalizeLinefeeds"),m=[],f=new Uint8Array([13,10]);o=0;let A=!1;for(let[E,y]of t)if(typeof y=="string"){let I=vb.encode(u+`; name="${d(p(E))}"\r +`),"normalizeLinefeeds"),f=[],m=new Uint8Array([13,10]);o=0;let A=!1;for(let[E,y]of t)if(typeof y=="string"){let I=Mb.encode(u+`; name="${d(p(E))}"\r \r ${p(y)}\r -`);m.push(I),o+=I.byteLength}else{let I=vb.encode(`${u}; name="${d(p(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r +`);f.push(I),o+=I.byteLength}else{let I=Mb.encode(`${u}; name="${d(p(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r Content-Type: ${y.type||"application/octet-stream"}\r \r -`);m.push(I,y,f),typeof y.size=="number"?o+=I.byteLength+y.size+f.byteLength:A=!0}let h=vb.encode(`--${l}--\r -`);m.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let E of m)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(AZ(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(wE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:UVe(t)}if((typeof s=="string"||wE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!EZ(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(wZ,"extractBody");function ZVe(t,e=!1){return t instanceof ReadableStream&&(oU(!wE.isDisturbed(t),"The body has already been consumed."),oU(!t.locked,"The stream is locked.")),wZ(t,e)}i(ZVe,"safelyExtractBody");function e4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(e4e,"cloneBody");function t4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(t4e,"throwIfAborted");function r4e(t){return{blob(){return cA(this,r=>{let n=gZ(this);return n===null?n="":n&&(n=jVe(n)),new WVe([r],{type:n})},t)},arrayBuffer(){return cA(this,r=>new Uint8Array(r).buffer,t)},text(){return cA(this,yZ,t)},json(){return cA(this,s4e,t)},formData(){return cA(this,r=>{let n=gZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=KVe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new hZ;return o[lA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new hZ;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return cA(this,r=>new Uint8Array(r),t)}}}i(r4e,"bodyMixinMethods");function n4e(t){Object.assign(t.prototype,r4e(t))}i(n4e,"mixinBody");async function cA(t,e,r){if(VVe.brandCheck(t,r),SZ(t))throw new TypeError("Body is unusable: Body has already been read");t4e(t[lA]);let n=HVe(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[lA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await $Ve(t[lA].body,o,s),n.promise)}i(cA,"consumeBody");function SZ(t){let e=t[lA].body;return e!=null&&(e.stream.locked||wE.isDisturbed(e.stream))}i(SZ,"bodyUnusable");function s4e(t){return JSON.parse(yZ(t))}i(s4e,"parseJSONFromBytes");function gZ(t){let e=t[lA].headersList,r=zVe(e);return r==="failure"?null:r}i(gZ,"bodyMimeType");xZ.exports={extractBody:wZ,safelyExtractBody:ZVe,cloneBody:e4e,mixinBody:n4e,streamRegistry:IZ,hasFinalizationRegistry:CZ,bodyUnusable:SZ}});var UZ=w((X3t,FZ)=>{"use strict";var Ae=require("node:assert"),le=Ve(),{channels:bZ}=Kf(),aU=GF(),{RequestContentLengthMismatchError:Rp,ResponseContentLengthMismatchError:BZ,RequestAbortedError:DZ,InvalidArgumentError:o4e,HeadersTimeoutError:i4e,HeadersOverflowError:a4e,SocketError:dA,InformationalError:Np,BodyTimeoutError:c4e,HTTPParserError:l4e,ResponseExceededMaxSizeError:u4e}=it(),{kUrl:kZ,kReset:Is,kClient:Db,kParser:_t,kBlocking:bE,kRunning:Tr,kPending:LZ,kSize:RZ,kWriting:Bu,kQueue:_i,kNoRef:SE,kKeepAliveDefaultTimeout:d4e,kHostHeader:p4e,kPendingIdx:m4e,kRunningIdx:qo,kError:Kn,kPipelining:kb,kSocket:Tp,kKeepAliveTimeoutValue:Ob,kMaxHeadersSize:cU,kKeepAliveMaxTimeout:f4e,kKeepAliveTimeoutThreshold:A4e,kHeadersTimeout:h4e,kBodyTimeout:g4e,kStrictContentLength:dU,kMaxRequests:NZ,kCounter:y4e,kMaxResponseSize:E4e,kOnError:TZ,kResume:bl,kHTTPContext:OZ}=qt(),Zs=I7(),vZ=Buffer.alloc(0),Pb=Buffer[Symbol.species],_b=le.addListener,C4e=le.removeAllListeners,vp=Symbol("kIdleSocketValidation"),pA=Symbol("kIdleSocketValidationTimeout"),AU=Symbol("kSocketUsed"),lU;async function I4e(){let t=process.env.JEST_WORKER_ID?zF():void 0,e;try{e=await WebAssembly.compile(x7())}catch{e=await WebAssembly.compile(t||zF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{Ae(or.ptr===r);let o=n-Qa+_a.byteOffset;return or.onStatus(new Pb(_a.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(Ae(or.ptr===r),or.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{Ae(or.ptr===r);let o=n-Qa+_a.byteOffset;return or.onHeaderField(new Pb(_a.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{Ae(or.ptr===r);let o=n-Qa+_a.byteOffset;return or.onHeaderValue(new Pb(_a.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(Ae(or.ptr===r),or.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{Ae(or.ptr===r);let o=n-Qa+_a.byteOffset;return or.onBody(new Pb(_a.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(Ae(or.ptr===r),or.onMessageComplete()||0),"wasm_on_message_complete")}})}i(I4e,"lazyllhttp");var uU=null,pU=I4e();pU.catch();var or=null,_a=null,Qb=0,Qa=null,w4e=0,xE=1,mA=2|xE,Lb=4|xE,mU=8|w4e,fU=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){Ae(Number.isFinite(e[cU])&&e[cU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Zs.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[cU],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[E4e]}setTimeout(e,r){e!==this.timeoutValue||r&xE^this.timeoutType&xE?(this.timeout&&(aU.clearTimeout(this.timeout),this.timeout=null),e&&(r&xE?this.timeout=aU.setFastTimeout(PZ,e,new WeakRef(this)):(this.timeout=setTimeout(PZ,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=r}resume(){this.socket.destroyed||!this.paused||(Ae(this.ptr!=null),Ae(or==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===Lb),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||vZ),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(or==null),Ae(!this.paused);let{socket:r,llhttp:n}=this;e.length>Qb&&(Qa&&n.free(Qa),Qb=Math.ceil(e.length/4096)*4096,Qa=n.malloc(Qb)),new Uint8Array(n.memory.buffer,Qa,Qb).set(e);try{let s;try{_a=e,or=this,s=n.llhttp_execute(this.ptr,Qa,e.length)}catch(a){throw a}finally{or=null,_a=null}let o=n.llhttp_get_error_pos(this.ptr)-Qa;if(s!==Zs.ERROR.OK){let a=e.subarray(o);if(s===Zs.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===Zs.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){le.destroy(r,s)}}finish(){Ae(or===null),Ae(this.ptr!=null),Ae(!this.paused);let{llhttp:e}=this,r;try{or=this,r=e.llhttp_finish(this.ptr)}finally{or=null}return r===Zs.ERROR.OK?null:r===Zs.ERROR.PAUSED||r===Zs.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,vZ)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new BZ;let a=n.llhttp_get_error_reason(this.ptr),c="";if(a){let l=new Uint8Array(n.memory.buffer,a).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,a,l).toString()+")"}return new l4e(c,Zs.ERROR[e],r)}destroy(){Ae(this.ptr!=null),Ae(or==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&aU.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:r}=this;if(e.destroyed)return-1;if(r[Tr]===0)return le.destroy(e,new dA("bad response",le.getSocketInfo(e))),-1;let n=r[_i][r[qo]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let s=le.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&le.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&le.destroy(this.socket,new a4e)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;Ae(r),Ae(n[Tp]===s),Ae(!s.destroyed),Ae(!this.paused),Ae((o.length&1)===0);let l=n[_i][n[qo]];Ae(l),Ae(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[_t].destroy(),s[_t]=null,s[Db]=null,s[Kn]=null,C4e(s),n[Tp]=null,n[OZ]=null,n[_i][n[qo]++]=null,n.emit("disconnect",n[kZ],[n],new Np("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){le.errorRequest(n,l,u),le.destroy(s,u)}n[bl]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[Tr]===0)return le.destroy(o,new dA("bad response",le.getSocketInfo(o))),-1;let l=s[_i][s[qo]];if(!l)return-1;if(Ae(!this.upgrade),Ae(this.statusCode<200),e===100)return le.destroy(o,new dA("bad response",le.getSocketInfo(o))),-1;if(r&&!l.upgrade)return le.destroy(o,new dA("bad upgrade",le.getSocketInfo(o))),-1;if(Ae(this.timeoutType===mA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[Is]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[g4e];this.setTimeout(d,Lb)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return Ae(s[Tr]===1),this.upgrade=!0,2;if(r)return Ae(s[Tr]===1),this.upgrade=!0,2;if(Ae((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[kb]){let d=this.keepAlive?le.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[A4e],s[f4e]);p<=0?o[Is]=!0:s[Ob]=p}else s[Ob]=s[d4e]}else o[Is]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[bE]&&(o[bE]=!1,s[bl]()),u?Zs.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[_i][r[qo]];if(Ae(a),Ae(this.timeoutType===Lb),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),Ae(s>=200),o>-1&&this.bytesRead+e.length>o)return le.destroy(n,new u4e),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Zs.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:s,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(s)return;Ae(n>=100),Ae((this.headers.length&1)===0);let u=e[_i][e[qo]];if(Ae(u),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,!(n<200)){if(u.method!=="HEAD"&&a&&c!==parseInt(a,10))return le.destroy(r,new BZ),-1;if(u.onComplete(o),e[_i][e[qo]++]=null,r[AU]=!0,r[Bu])return Ae(e[Tr]===0),le.destroy(r,new Np("reset")),Zs.ERROR.PAUSED;if(l){if(r[Is]&&e[Tr]===0)return le.destroy(r,new Np("reset")),Zs.ERROR.PAUSED;e[kb]==null||e[kb]===1?setImmediate(()=>e[bl]()):e[bl]()}else return le.destroy(r,new Np("reset")),Zs.ERROR.PAUSED}}};function PZ(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===mA?(!e[Bu]||e.writableNeedDrain||n[Tr]>1)&&(Ae(!s,"cannot be paused while waiting for headers"),le.destroy(e,new i4e)):r===Lb?s||le.destroy(e,new c4e):r===mU&&(Ae(n[Tr]===0&&n[Ob]),le.destroy(e,new Np("socket idle timeout")))}i(PZ,"onParserTimeout");async function S4e(t,e){t[Tp]=e,uU||(uU=await pU,pU=null),e[SE]=!1,e[Bu]=!1,e[Is]=!1,e[bE]=!1,e[vp]=0,e[pA]=null,e[AU]=!1,e[_t]=new fU(t,e,uU),_b(e,"error",function(n){let s=this[_t];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[Kn]=o,this[Db][TZ](o));return}this[Kn]=n,this[Db][TZ](n)}),_b(e,"readable",function(){let n=this[_t];n&&n.readMore()}),_b(e,"end",function(){let n=this[_t];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&le.destroy(this,s);return}le.destroy(this,new dA("other side closed",le.getSocketInfo(this)))}),_b(e,"close",function(){let n=this[Db],s=this[_t];MZ(this),s&&(!this[Kn]&&s.statusCode&&!s.shouldKeepAlive&&(this[Kn]=s.finish()||this[Kn]),this[_t].destroy(),this[_t]=null);let o=this[Kn]||new dA("closed",le.getSocketInfo(this));if(n[Tp]=null,n[OZ]=null,n.destroyed){Ae(n[LZ]===0);let a=n[_i].splice(n[qo]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[_i][n[qo]];n[_i][n[qo]++]=null,le.errorRequest(n,a,o)}n[m4e]=n[qo],Ae(n[Tr]===0),n.emit("disconnect",n[kZ],[n],o),n[bl]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return R4e(t,...n)},resume(){b4e(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[Bu]||e[Is]||e[bE]||e[vp]===1||n&&(t[Tr]>0&&!n.idempotent||t[Tr]>0&&(n.upgrade||n.method==="CONNECT")||t[Tr]>0&&le.bodyLength(n.body)!==0&&(le.isStream(n.body)||le.isAsyncIterable(n.body)||le.isFormDataLike(n.body))))}}}i(S4e,"connectH1");function MZ(t){t[pA]&&(clearImmediate(t[pA]),t[pA]=null),t[vp]=0}i(MZ,"clearIdleSocketValidation");function x4e(t,e){e[vp]=1,e[pA]=setImmediate(()=>{e[pA]=null,e[vp]=2,t[Tp]===e&&!e.destroyed&&t[bl]()})}i(x4e,"scheduleIdleSocketValidation");function b4e(t){let e=t[Tp];if(e&&!e.destroyed){if(t[RZ]===0?!e[SE]&&e.unref&&(e.unref(),e[SE]=!0):e[SE]&&e.ref&&(e.ref(),e[SE]=!1),t[Tr]===0&&t[LZ]>0&&e[AU]){if(e[vp]===0)return x4e(t,e),e[_t].readMore(),e.destroyed,void 0;if(e[vp]===1)return e[_t].readMore(),e.destroyed,void 0}if(t[Tr]===0&&(e[_t].readMore(),e.destroyed))return;if(t[RZ]===0)e[_t].timeoutType!==mU&&e[_t].setTimeout(t[Ob],mU);else if(t[Tr]>0&&e[_t].statusCode<200&&e[_t].timeoutType!==mA){let r=t[_i][t[qo]],n=r.headersTimeout!=null?r.headersTimeout:t[h4e];e[_t].setTimeout(n,mA)}}}i(b4e,"resumeH1");function B4e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(B4e,"shouldSendContentLength");function R4e(t,e){let{method:r,path:n,host:s,upgrade:o,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,p=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(le.isFormDataLike(l)){lU||(lU=uA().extractBody);let[E,y]=lU(l);e.contentType==null&&u.push("content-type",y),l=E.stream,d=E.length}else if(le.isBlobLike(l)&&e.contentType==null){let E=l.type;if(E){let y=`${E}`;if(!le.isValidHeaderValue(y))return le.errorRequest(t,e,new o4e("invalid content-type header")),!1;u.push("content-type",y)}}l&&typeof l.read=="function"&&l.read(0);let m=le.bodyLength(l);if(d=m??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),B4e(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[dU])return le.errorRequest(t,e,new Rp),!1;process.emitWarning(new Rp)}let f=t[Tp];MZ(f);let A=i(E=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&le.destroy(f,new Np("aborted"));return}le.errorRequest(t,e,E||new DZ),le.destroy(l),le.destroy(f,new Np("aborted"))}},"abort");try{e.onConnect(A)}catch(E){le.errorRequest(t,e,E)}if(e.aborted)return!1;r==="HEAD"&&(f[Is]=!0),(o||r==="CONNECT")&&(f[Is]=!0),c!=null&&(f[Is]=c),t[NZ]&&f[y4e]++>=t[NZ]&&(f[Is]=!0),a&&(f[bE]=!0);let h=`${r} ${n} HTTP/1.1\r +`);f.push(I,y,m),typeof y.size=="number"?o+=I.byteLength+y.size+m.byteLength:A=!0}let h=Mb.encode(`--${l}--\r +`);f.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let E of f)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(SZ(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:i4e(t)}if((typeof s=="string"||RE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!RZ(r)){let f=new Uint8Array(d);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(PZ,"extractBody");function E4e(t,e=!1){return t instanceof ReadableStream&&(pU(!RE.isDisturbed(t),"The body has already been consumed."),pU(!t.locked,"The stream is locked.")),PZ(t,e)}i(E4e,"safelyExtractBody");function C4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(C4e,"cloneBody");function I4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(I4e,"throwIfAborted");function w4e(t){return{blob(){return fA(this,r=>{let n=bZ(this);return n===null?n="":n&&(n=h4e(n)),new f4e([r],{type:n})},t)},arrayBuffer(){return fA(this,r=>new Uint8Array(r).buffer,t)},text(){return fA(this,BZ,t)},json(){return fA(this,x4e,t)},formData(){return fA(this,r=>{let n=bZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=g4e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new xZ;return o[mA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new xZ;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return fA(this,r=>new Uint8Array(r),t)}}}i(w4e,"bodyMixinMethods");function S4e(t){Object.assign(t.prototype,w4e(t))}i(S4e,"mixinBody");async function fA(t,e,r){if(p4e.brandCheck(t,r),vZ(t))throw new TypeError("Body is unusable: Body has already been read");I4e(t[mA]);let n=l4e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[mA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await u4e(t[mA].body,o,s),n.promise)}i(fA,"consumeBody");function vZ(t){let e=t[mA].body;return e!=null&&(e.stream.locked||RE.isDisturbed(e.stream))}i(vZ,"bodyUnusable");function x4e(t){return JSON.parse(BZ(t))}i(x4e,"parseJSONFromBytes");function bZ(t){let e=t[mA].headersList,r=d4e(e);return r==="failure"?null:r}i(bZ,"bodyMimeType");_Z.exports={extractBody:PZ,safelyExtractBody:E4e,cloneBody:C4e,mixinBody:S4e,streamRegistry:TZ,hasFinalizationRegistry:NZ,bodyUnusable:vZ}});var YZ=w((d4t,WZ)=>{"use strict";var Ae=require("node:assert"),ce=ze(),{channels:QZ}=rA(),mU=JF(),{RequestContentLengthMismatchError:Pp,ResponseContentLengthMismatchError:DZ,RequestAbortedError:GZ,InvalidArgumentError:b4e,HeadersTimeoutError:B4e,HeadersOverflowError:R4e,SocketError:hA,InformationalError:vp,BodyTimeoutError:N4e,HTTPParserError:T4e,ResponseExceededMaxSizeError:P4e}=it(),{kUrl:$Z,kReset:ws,kClient:Gb,kParser:_t,kBlocking:PE,kRunning:Tr,kPending:HZ,kSize:kZ,kWriting:Ru,kQueue:Di,kNoRef:NE,kKeepAliveDefaultTimeout:v4e,kHostHeader:_4e,kPendingIdx:Q4e,kRunningIdx:qo,kError:Xn,kPipelining:$b,kSocket:_p,kKeepAliveTimeoutValue:zb,kMaxHeadersSize:AU,kKeepAliveMaxTimeout:D4e,kKeepAliveTimeoutThreshold:k4e,kHeadersTimeout:L4e,kBodyTimeout:O4e,kStrictContentLength:yU,kMaxRequests:LZ,kCounter:M4e,kMaxResponseSize:F4e,kOnError:OZ,kResume:Rl,kHTTPContext:zZ}=qt(),to=T7(),MZ=Buffer.alloc(0),Fb=Buffer[Symbol.species],Ub=ce.addListener,U4e=ce.removeAllListeners,Qp=Symbol("kIdleSocketValidation"),gA=Symbol("kIdleSocketValidationTimeout"),wU=Symbol("kSocketUsed"),hU;async function q4e(){let t=process.env.JEST_WORKER_ID?XF():void 0,e;try{e=await WebAssembly.compile(_7())}catch{e=await WebAssembly.compile(t||XF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{Ae(sr.ptr===r);let o=n-Qa+_a.byteOffset;return sr.onStatus(new Fb(_a.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(Ae(sr.ptr===r),sr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{Ae(sr.ptr===r);let o=n-Qa+_a.byteOffset;return sr.onHeaderField(new Fb(_a.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{Ae(sr.ptr===r);let o=n-Qa+_a.byteOffset;return sr.onHeaderValue(new Fb(_a.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(Ae(sr.ptr===r),sr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{Ae(sr.ptr===r);let o=n-Qa+_a.byteOffset;return sr.onBody(new Fb(_a.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(Ae(sr.ptr===r),sr.onMessageComplete()||0),"wasm_on_message_complete")}})}i(q4e,"lazyllhttp");var gU=null,EU=q4e();EU.catch();var sr=null,_a=null,qb=0,Qa=null,G4e=0,TE=1,yA=2|TE,Hb=4|TE,CU=8|G4e,IU=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){Ae(Number.isFinite(e[AU])&&e[AU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(to.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[AU],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[F4e]}setTimeout(e,r){e!==this.timeoutValue||r&TE^this.timeoutType&TE?(this.timeout&&(mU.clearTimeout(this.timeout),this.timeout=null),e&&(r&TE?this.timeout=mU.setFastTimeout(FZ,e,new WeakRef(this)):(this.timeout=setTimeout(FZ,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=r}resume(){this.socket.destroyed||!this.paused||(Ae(this.ptr!=null),Ae(sr==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===Hb),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||MZ),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(sr==null),Ae(!this.paused);let{socket:r,llhttp:n}=this;e.length>qb&&(Qa&&n.free(Qa),qb=Math.ceil(e.length/4096)*4096,Qa=n.malloc(qb)),new Uint8Array(n.memory.buffer,Qa,qb).set(e);try{let s;try{_a=e,sr=this,s=n.llhttp_execute(this.ptr,Qa,e.length)}catch(a){throw a}finally{sr=null,_a=null}let o=n.llhttp_get_error_pos(this.ptr)-Qa;if(s!==to.ERROR.OK){let a=e.subarray(o);if(s===to.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===to.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){ce.destroy(r,s)}}finish(){Ae(sr===null),Ae(this.ptr!=null),Ae(!this.paused);let{llhttp:e}=this,r;try{sr=this,r=e.llhttp_finish(this.ptr)}finally{sr=null}return r===to.ERROR.OK?null:r===to.ERROR.PAUSED||r===to.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,MZ)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new DZ;let a=n.llhttp_get_error_reason(this.ptr),c="";if(a){let l=new Uint8Array(n.memory.buffer,a).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,a,l).toString()+")"}return new T4e(c,to.ERROR[e],r)}destroy(){Ae(this.ptr!=null),Ae(sr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&mU.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:r}=this;if(e.destroyed)return-1;if(r[Tr]===0)return ce.destroy(e,new hA("bad response",ce.getSocketInfo(e))),-1;let n=r[Di][r[qo]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let s=ce.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&ce.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&ce.destroy(this.socket,new R4e)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;Ae(r),Ae(n[_p]===s),Ae(!s.destroyed),Ae(!this.paused),Ae((o.length&1)===0);let l=n[Di][n[qo]];Ae(l),Ae(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[_t].destroy(),s[_t]=null,s[Gb]=null,s[Xn]=null,U4e(s),n[_p]=null,n[zZ]=null,n[Di][n[qo]++]=null,n.emit("disconnect",n[$Z],[n],new vp("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){ce.errorRequest(n,l,u),ce.destroy(s,u)}n[Rl]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[Tr]===0)return ce.destroy(o,new hA("bad response",ce.getSocketInfo(o))),-1;let l=s[Di][s[qo]];if(!l)return-1;if(Ae(!this.upgrade),Ae(this.statusCode<200),e===100)return ce.destroy(o,new hA("bad response",ce.getSocketInfo(o))),-1;if(r&&!l.upgrade)return ce.destroy(o,new hA("bad upgrade",ce.getSocketInfo(o))),-1;if(Ae(this.timeoutType===yA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[ws]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[O4e];this.setTimeout(d,Hb)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return Ae(s[Tr]===1),this.upgrade=!0,2;if(r)return Ae(s[Tr]===1),this.upgrade=!0,2;if(Ae((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[$b]){let d=this.keepAlive?ce.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[k4e],s[D4e]);p<=0?o[ws]=!0:s[zb]=p}else s[zb]=s[v4e]}else o[ws]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[PE]&&(o[PE]=!1,s[Rl]()),u?to.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[Di][r[qo]];if(Ae(a),Ae(this.timeoutType===Hb),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),Ae(s>=200),o>-1&&this.bytesRead+e.length>o)return ce.destroy(n,new P4e),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return to.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:s,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(s)return;Ae(n>=100),Ae((this.headers.length&1)===0);let u=e[Di][e[qo]];if(Ae(u),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,!(n<200)){if(u.method!=="HEAD"&&a&&c!==parseInt(a,10))return ce.destroy(r,new DZ),-1;if(u.onComplete(o),e[Di][e[qo]++]=null,r[wU]=!0,r[Ru])return Ae(e[Tr]===0),ce.destroy(r,new vp("reset")),to.ERROR.PAUSED;if(l){if(r[ws]&&e[Tr]===0)return ce.destroy(r,new vp("reset")),to.ERROR.PAUSED;e[$b]==null||e[$b]===1?setImmediate(()=>e[Rl]()):e[Rl]()}else return ce.destroy(r,new vp("reset")),to.ERROR.PAUSED}}};function FZ(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===yA?(!e[Ru]||e.writableNeedDrain||n[Tr]>1)&&(Ae(!s,"cannot be paused while waiting for headers"),ce.destroy(e,new B4e)):r===Hb?s||ce.destroy(e,new N4e):r===CU&&(Ae(n[Tr]===0&&n[zb]),ce.destroy(e,new vp("socket idle timeout")))}i(FZ,"onParserTimeout");async function $4e(t,e){t[_p]=e,gU||(gU=await EU,EU=null),e[NE]=!1,e[Ru]=!1,e[ws]=!1,e[PE]=!1,e[Qp]=0,e[gA]=null,e[wU]=!1,e[_t]=new IU(t,e,gU),Ub(e,"error",function(n){let s=this[_t];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[Xn]=o,this[Gb][OZ](o));return}this[Xn]=n,this[Gb][OZ](n)}),Ub(e,"readable",function(){let n=this[_t];n&&n.readMore()}),Ub(e,"end",function(){let n=this[_t];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&ce.destroy(this,s);return}ce.destroy(this,new hA("other side closed",ce.getSocketInfo(this)))}),Ub(e,"close",function(){let n=this[Gb],s=this[_t];VZ(this),s&&(!this[Xn]&&s.statusCode&&!s.shouldKeepAlive&&(this[Xn]=s.finish()||this[Xn]),this[_t].destroy(),this[_t]=null);let o=this[Xn]||new hA("closed",ce.getSocketInfo(this));if(n[_p]=null,n[zZ]=null,n.destroyed){Ae(n[HZ]===0);let a=n[Di].splice(n[qo]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[Di][n[qo]];n[Di][n[qo]++]=null,ce.errorRequest(n,a,o)}n[Q4e]=n[qo],Ae(n[Tr]===0),n.emit("disconnect",n[$Z],[n],o),n[Rl]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return W4e(t,...n)},resume(){z4e(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[Ru]||e[ws]||e[PE]||e[Qp]===1||n&&(t[Tr]>0&&!n.idempotent||t[Tr]>0&&(n.upgrade||n.method==="CONNECT")||t[Tr]>0&&ce.bodyLength(n.body)!==0&&(ce.isStream(n.body)||ce.isAsyncIterable(n.body)||ce.isFormDataLike(n.body))))}}}i($4e,"connectH1");function VZ(t){t[gA]&&(clearImmediate(t[gA]),t[gA]=null),t[Qp]=0}i(VZ,"clearIdleSocketValidation");function H4e(t,e){e[Qp]=1,e[gA]=setImmediate(()=>{e[gA]=null,e[Qp]=2,t[_p]===e&&!e.destroyed&&t[Rl]()})}i(H4e,"scheduleIdleSocketValidation");function z4e(t){let e=t[_p];if(e&&!e.destroyed){if(t[kZ]===0?!e[NE]&&e.unref&&(e.unref(),e[NE]=!0):e[NE]&&e.ref&&(e.ref(),e[NE]=!1),t[Tr]===0&&t[HZ]>0&&e[wU]){if(e[Qp]===0)return H4e(t,e),e[_t].readMore(),e.destroyed,void 0;if(e[Qp]===1)return e[_t].readMore(),e.destroyed,void 0}if(t[Tr]===0&&(e[_t].readMore(),e.destroyed))return;if(t[kZ]===0)e[_t].timeoutType!==CU&&e[_t].setTimeout(t[zb],CU);else if(t[Tr]>0&&e[_t].statusCode<200&&e[_t].timeoutType!==yA){let r=t[Di][t[qo]],n=r.headersTimeout!=null?r.headersTimeout:t[L4e];e[_t].setTimeout(n,yA)}}}i(z4e,"resumeH1");function V4e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(V4e,"shouldSendContentLength");function W4e(t,e){let{method:r,path:n,host:s,upgrade:o,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,p=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(ce.isFormDataLike(l)){hU||(hU=AA().extractBody);let[E,y]=hU(l);e.contentType==null&&u.push("content-type",y),l=E.stream,d=E.length}else if(ce.isBlobLike(l)&&e.contentType==null){let E=l.type;if(E){let y=`${E}`;if(!ce.isValidHeaderValue(y))return ce.errorRequest(t,e,new b4e("invalid content-type header")),!1;u.push("content-type",y)}}l&&typeof l.read=="function"&&l.read(0);let f=ce.bodyLength(l);if(d=f??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),V4e(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[yU])return ce.errorRequest(t,e,new Pp),!1;process.emitWarning(new Pp)}let m=t[_p];VZ(m);let A=i(E=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&ce.destroy(m,new vp("aborted"));return}ce.errorRequest(t,e,E||new GZ),ce.destroy(l),ce.destroy(m,new vp("aborted"))}},"abort");try{e.onConnect(A)}catch(E){ce.errorRequest(t,e,E)}if(e.aborted)return!1;r==="HEAD"&&(m[ws]=!0),(o||r==="CONNECT")&&(m[ws]=!0),c!=null&&(m[ws]=c),t[LZ]&&m[M4e]++>=t[LZ]&&(m[ws]=!0),a&&(m[PE]=!0);let h=`${r} ${n} HTTP/1.1\r `;if(typeof s=="string"?h+=`host: ${s}\r -`:h+=t[p4e],o?h+=`connection: upgrade\r +`:h+=t[_4e],o?h+=`connection: upgrade\r upgrade: ${o}\r -`:t[kb]&&!f[Is]?h+=`connection: keep-alive\r +`:t[$b]&&!m[ws]?h+=`connection: keep-alive\r `:h+=`connection: close\r `,Array.isArray(u))for(let E=0;E{e.removeListener("error",f)}),!l){let A=new DZ;queueMicrotask(()=>f(A))}},"onClose"),f=i(function(A){if(!l){if(l=!0,Ae(s.destroyed||s[Bu]&&r[Tr]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?le.destroy(e,A):le.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(N4e,"writeStream");function _Z(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(Ae(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r +`}return QZ.sendHeaders.hasSubscribers&&QZ.sendHeaders.publish({request:e,headers:h,socket:m}),!l||f===0?UZ(A,null,t,e,m,d,h,p):ce.isBuffer(l)?UZ(A,l,t,e,m,d,h,p):ce.isBlobLike(l)?typeof l.stream=="function"?qZ(A,l.stream(),t,e,m,d,h,p):J4e(A,l,t,e,m,d,h,p):ce.isStream(l)?Y4e(A,l,t,e,m,d,h,p):ce.isIterable(l)?qZ(A,l,t,e,m,d,h,p):Ae(!1),!0}i(W4e,"writeH1");function Y4e(t,e,r,n,s,o,a,c){Ae(o!==0||r[Tr]===0,"stream body cannot be pipelined");let l=!1,u=new Vb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(h){ce.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let A=new GZ;queueMicrotask(()=>m(A))}},"onClose"),m=i(function(A){if(!l){if(l=!0,Ae(s.destroyed||s[Ru]&&r[Tr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?ce.destroy(e,A):ce.destroy(e)}},"onFinished");e.on("data",d).on("end",m).on("error",m).on("close",f),e.resume&&e.resume(),s.on("drain",p).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}i(Y4e,"writeStream");function UZ(t,e,r,n,s,o,a,c){try{e?ce.isBuffer(e)&&(Ae(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r \r -`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Is]=!0)):o===0?s.write(`${a}content-length: 0\r +`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[ws]=!0)):o===0?s.write(`${a}content-length: 0\r \r `,"latin1"):(Ae(o===null,"no body must not have content length"),s.write(`${a}\r -`,"latin1")),n.onRequestSent(),r[bl]()}catch(l){t(l)}}i(_Z,"writeBuffer");async function T4e(t,e,r,n,s,o,a,c){Ae(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Rp;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r +`,"latin1")),n.onRequestSent(),r[Rl]()}catch(l){t(l)}}i(UZ,"writeBuffer");async function J4e(t,e,r,n,s,o,a,c){Ae(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Pp;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r \r -`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Is]=!0),r[bl]()}catch(l){t(l)}}i(T4e,"writeBlob");async function QZ(t,e,r,n,s,o,a,c){Ae(o!==0||r[Tr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Ae(l===null),s[Kn]?f(s[Kn]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new Mb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Kn])throw s[Kn];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(QZ,"writeIterable");var Mb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Bu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Kn])throw r[Kn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[dU])throw new Rp;process.emitWarning(new Rp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Is]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r +`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[ws]=!0),r[Rl]()}catch(l){t(l)}}i(J4e,"writeBlob");async function qZ(t,e,r,n,s,o,a,c){Ae(o!==0||r[Tr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}i(u,"onDrain");let d=i(()=>new Promise((f,m)=>{Ae(l===null),s[Xn]?m(s[Xn]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new Vb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[Xn])throw s[Xn];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(qZ,"writeIterable");var Vb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Ru]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Xn])throw r[Xn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[yU])throw new Pp;process.emitWarning(new Pp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[ws]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r `,"latin1"):r.write(`${l}content-length: ${s}\r \r `,"latin1")),s===null&&r.write(`\r ${u.toString(16)}\r -`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[_t].timeout&&r[_t].timeoutType===mA&&r[_t].timeout.refresh&&r[_t].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[Bu]=!1,e[Kn])throw e[Kn];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r +`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[_t].timeout&&r[_t].timeoutType===yA&&r[_t].timeout.refresh&&r[_t].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[Ru]=!1,e[Xn])throw e[Xn];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r \r `,"latin1"):e.write(`${a}\r `,"latin1"):r===null&&e.write(`\r 0\r \r -`,"latin1"),r!==null&&s!==r){if(n[dU])throw new Rp;process.emitWarning(new Rp)}e[_t].timeout&&e[_t].timeoutType===mA&&e[_t].timeout.refresh&&e[_t].timeout.refresh(),n[bl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bu]=!1,e&&(Ae(n[Tr]<=1,"pipeline should only contain this request"),s(e))}};FZ.exports=S4e});var YZ=w((eVt,WZ)=>{"use strict";var ka=require("node:assert"),{errorMonitor:hU}=require("node:events"),{pipeline:v4e}=require("node:stream"),je=Ve(),{RequestContentLengthMismatchError:yU,RequestAbortedError:gU,SocketError:BE,InformationalError:Fb}=it(),{kUrl:Ub,kReset:Gb,kClient:fA,kRunning:Hb,kPending:P4e,kQueue:Pp,kPendingIdx:CU,kRunningIdx:Da,kError:Di,kSocket:Xr,kStrictContentLength:_4e,kOnError:IU,kMaxConcurrentStreams:zZ,kHTTP2Session:Qi,kResume:Nu,kSize:Q4e,kHTTPContext:D4e}=qt(),Ru=Symbol("open streams"),qZ,GZ=!1,qb;try{qb=require("node:http2")}catch{qb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:k4e,HTTP2_HEADER_METHOD:L4e,HTTP2_HEADER_PATH:O4e,HTTP2_HEADER_SCHEME:M4e,HTTP2_HEADER_CONTENT_LENGTH:F4e,HTTP2_HEADER_EXPECT:U4e,HTTP2_HEADER_STATUS:EU}}=qb;function VZ(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(VZ,"parseH2Headers");function q4e(t){let{[EU]:e,...r}=t;return VZ(r)}i(q4e,"parseH2ResponseHeaders");async function G4e(t,e){t[Xr]=e,GZ||(GZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=qb.connect(t[Ub],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[zZ]});r[Ru]=0,r[fA]=t,r[Xr]=e,je.addListener(r,"error",$4e),je.addListener(r,"frameError",z4e),je.addListener(r,"end",V4e),je.addListener(r,"goaway",W4e),je.addListener(r,"close",function(){let{[fA]:s}=this,{[Xr]:o}=s,a=this[Xr][Di]||this[Di]||new BE("closed",je.getSocketInfo(o));if(s[Qi]=null,s.destroyed){ka(s[P4e]===0);let c=s[Pp].splice(s[Da]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return J4e(t,...s)},resume(){H4e(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(G4e,"connectH2");function H4e(t){let e=t[Xr];e?.destroyed===!1&&(t[Q4e]===0&&t[zZ]===0?(e.unref(),t[Qi].unref()):(e.ref(),t[Qi].ref()))}i(H4e,"resumeH2");function $4e(t){this[Xr][Di]=t,this[fA][IU](t)}i($4e,"onHttp2SessionError");function z4e(t,e,r){if(r===0){let n=new Fb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Xr][Di]=n,this[fA][IU](n)}}i(z4e,"onHttp2FrameError");function V4e(){let t=new BE("other side closed",je.getSocketInfo(this[Xr]));this.destroy(t),je.destroy(this[Xr],t)}i(V4e,"onHttp2SessionEnd");function W4e(t){let e=this[Di]||new BE(`HTTP/2: "GOAWAY" frame received with code ${t}`,je.getSocketInfo(this)),r=this[fA];if(r[Xr]=null,r[D4e]=null,this[Qi]!=null&&(this[Qi].destroy(e),this[Qi]=null),je.destroy(this[Xr],e),r[Da]{if(!e.aborted){if(e.completed){n==="CONNECT"&&m!=null&&je.destroy(m,b||new gU);return}b=b||new gU,je.errorRequest(t,e,b),m!=null&&je.destroy(m,b),je.destroy(d,b),t[Pp][t[Da]++]=null,t[Nu]()}},"abort");try{e.onConnect(h)}catch(b){je.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),m=r.request(p,{endStream:!1,signal:l});let b=!1,N=i(G=>{b=!0,m.off(hU,P),e.onUpgradeResponse(Number(G[EU]),G,q4e)},"onResponse"),P=i(G=>{b=!0,m.off("response",N),e.onUpgradeError(G)},"onUpgradeError"),_=i(()=>{try{e.onUpgrade(null,null,m)}catch(G){m.off("response",N),h(G);return}e.aborted||(m.off("error",h),m.once(hU,P),t[Pp][t[Da]++]=null)},"onReady");return m.once("response",N),m.once("error",h),++r[Ru],_(),m.once("close",()=>{!b&&e.completed&&(m.off("response",N),m.off(hU,P),e.onUpgradeError(new Fb(`HTTP/2: "stream error" received - code ${m.rstCode}`))),r[Ru]-=1,r[Ru]===0&&r.unref()}),!0}p[O4e]=s,p[M4e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=je.bodyLength(d);if(je.isFormDataLike(d)){qZ??=uA().extractBody;let[b,N]=qZ(d);p["content-type"]=N,d=b.stream,y=b.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),Y4e(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[_4e])return je.errorRequest(t,e,new yU),!1;process.emitWarning(new yU)}y!=null&&(ka(d,"no body must not have content length"),p[F4e]=`${y}`),r.ref();let I=n==="GET"||n==="HEAD"||d===null;return c?(p[U4e]="100-continue",m=r.request(p,{endStream:I,signal:l}),m.once("continue",x)):(m=r.request(p,{endStream:I,signal:l}),x()),++r[Ru],m.once("response",b=>{let{[EU]:N,...P}=b;if(e.onResponseStarted(),e.aborted){let _=new gU;je.errorRequest(t,e,_),je.destroy(m,_);return}e.onHeaders(Number(N),VZ(P),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",_=>{e.onData(_)===!1&&m.pause()})}),m.once("end",()=>{(m.state?.state==null||m.state.state<6)&&e.onComplete([]),r[Ru]===0&&r.unref(),h(new Fb("HTTP/2: stream half-closed (remote)")),t[Pp][t[Da]++]=null,t[CU]=t[Da],t[Nu]()}),m.once("close",()=>{r[Ru]-=1,r[Ru]===0&&r.unref()}),m.once("error",function(b){h(b)}),m.once("frameError",(b,N)=>{h(new Fb(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function x(){!d||y===0?HZ(h,m,null,t,e,t[Xr],y,E):je.isBuffer(d)?HZ(h,m,d,t,e,t[Xr],y,E):je.isBlobLike(d)?typeof d.stream=="function"?$Z(h,m,d.stream(),t,e,t[Xr],y,E):K4e(h,m,d,t,e,t[Xr],y,E):je.isStream(d)?j4e(h,t[Xr],E,m,d,t,e,y):je.isIterable(d)?$Z(h,m,d,t,e,t[Xr],y,E):ka(!1)}i(x,"writeBodyH2")}i(J4e,"writeH2");function HZ(t,e,r,n,s,o,a,c){try{r!=null&&je.isBuffer(r)&&(ka(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[Gb]=!0),s.onRequestSent(),n[Nu]()}catch(l){t(l)}}i(HZ,"writeBuffer");function j4e(t,e,r,n,s,o,a,c){ka(c!==0||o[Hb]===0,"stream body cannot be pipelined");let l=v4e(s,n,d=>{d?(je.destroy(l,d),t(d)):(je.removeAllListeners(l),a.onRequestSent(),r||(e[Gb]=!0),o[Nu]())});je.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(j4e,"writeStream");async function K4e(t,e,r,n,s,o,a,c){ka(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new yU;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[Gb]=!0),n[Nu]()}catch(l){t(l)}}i(K4e,"writeBlob");async function $Z(t,e,r,n,s,o,a,c){ka(a!==0||n[Hb]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}i(u,"onDrain");let d=i(()=>new Promise((p,m)=>{ka(l===null),o[Di]?m(o[Di]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[Di])throw o[Di];let m=e.write(p);s.onBodySent(p),m||await d()}e.end(),s.onRequestSent(),c||(o[Gb]=!0),n[Nu]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i($Z,"writeIterable");WZ.exports=G4e});var zb=w((rVt,KZ)=>{"use strict";var La=Ve(),{kBodyUsed:RE}=qt(),SU=require("node:assert"),{InvalidArgumentError:X4e}=it(),Z4e=require("node:events"),eWe=[300,301,302,303,307,308],JZ=Symbol("body"),$b=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[JZ]=e,this[RE]=!1}async*[Symbol.asyncIterator](){SU(!this[RE],"disturbed"),this[RE]=!0,yield*this[JZ]}},wU=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new X4e("maxRedirections must be a positive number");La.validateHandler(s,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=s,this.history=[],this.redirectionLimitReached=!1,La.isStream(this.opts.body)?(La.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){SU(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[RE]=!1,Z4e.prototype.on.call(this.opts.body,"data",function(){this[RE]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new $b(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&La.isIterable(this.opts.body)&&(this.opts.body=new $b(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,s){if(this.location=this.history.length>=this.maxRedirections||La.isDisturbed(this.opts.body)?null:tWe(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,s);let{origin:o,pathname:a,search:c}=La.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=rWe(this.opts.headers,e===303,this.opts.origin!==o),this.opts.path=l,this.opts.origin=o,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function tWe(t,e){if(eWe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var nWe=zb();function sWe({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new nWe(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(sWe,"createRedirectInterceptor");XZ.exports=sWe});var gA=w((iVt,cee)=>{"use strict";var Bl=require("node:assert"),see=require("node:net"),oWe=require("node:http"),_p=Ve(),{channels:AA}=Kf(),iWe=a7(),aWe=tA(),{InvalidArgumentError:gr,InformationalError:cWe,ClientDestroyedError:lWe}=it(),uWe=fE(),{kUrl:Oa,kServerName:Tu,kClient:dWe,kBusy:xU,kConnect:pWe,kResuming:Qp,kRunning:_E,kPending:QE,kSize:PE,kQueue:ki,kConnected:mWe,kConnecting:hA,kNeedDrain:Pu,kKeepAliveDefaultTimeout:ZZ,kHostHeader:fWe,kPendingIdx:Li,kRunningIdx:Rl,kError:AWe,kPipelining:Wb,kKeepAliveTimeoutValue:hWe,kMaxHeadersSize:gWe,kKeepAliveMaxTimeout:yWe,kKeepAliveTimeoutThreshold:EWe,kHeadersTimeout:CWe,kBodyTimeout:IWe,kStrictContentLength:wWe,kConnector:NE,kMaxRedirections:SWe,kMaxRequests:bU,kCounter:xWe,kClose:bWe,kDestroy:BWe,kDispatch:RWe,kInterceptors:eee,kLocalAddress:TE,kMaxResponseSize:NWe,kOnError:TWe,kHTTPContext:yr,kMaxConcurrentStreams:vWe,kResume:vE}=qt(),PWe=UZ(),_We=YZ(),tee=!1,vu=Symbol("kClosedResolve"),ree=i(()=>{},"noop");function oee(t){return t[Wb]??t[yr]?.defaultPipelining??1}i(oee,"getPipelining");var BU=class extends aWe{static{i(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:s,socketTimeout:o,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:p,maxKeepAliveTimeout:m,keepAliveMaxTimeout:f,keepAliveTimeoutThreshold:A,socketPath:h,pipelining:E,tls:y,strictContentLength:I,maxCachedSessions:x,maxRedirections:b,connect:N,maxRequestsPerClient:P,localAddress:_,maxResponseSize:G,autoSelectFamily:ae,autoSelectFamilyAttemptTimeout:Ce,maxConcurrentStreams:_e,allowH2:ie,webSocket:De,eventSource:D}={}){if(super({webSocket:De,eventSource:D}),d!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(m!==void 0)throw new gr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new gr("invalid maxHeaderSize");if(h!=null&&typeof h!="string")throw new gr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new gr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new gr("invalid keepAliveTimeout");if(f!=null&&(!Number.isFinite(f)||f<=0))throw new gr("invalid keepAliveMaxTimeout");if(A!=null&&!Number.isFinite(A))throw new gr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new gr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new gr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new gr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new gr("maxRedirections must be a positive number");if(P!=null&&(!Number.isInteger(P)||P<0))throw new gr("maxRequestsPerClient must be a positive number");if(_!=null&&(typeof _!="string"||see.isIP(_)===0))throw new gr("localAddress must be valid string IP address");if(G!=null&&(!Number.isInteger(G)||G<-1))throw new gr("maxResponseSize must be a positive number");if(Ce!=null&&(!Number.isInteger(Ce)||Ce<-1))throw new gr("autoSelectFamilyAttemptTimeout must be a positive number");if(ie!=null&&typeof ie!="boolean")throw new gr("allowH2 must be a valid boolean value");if(_e!=null&&(typeof _e!="number"||_e<1))throw new gr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=uWe({...y,maxCachedSessions:x,allowH2:ie,socketPath:h,timeout:c,...ae?{autoSelectFamily:ae,autoSelectFamilyAttemptTimeout:Ce}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[eee]=r.Client,tee||(tee=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[eee]=[QWe({maxRedirections:b})],this[Oa]=_p.parseOrigin(e),this[NE]=N,this[Wb]=E??1,this[gWe]=n||oWe.maxHeaderSize,this[ZZ]=p??4e3,this[yWe]=f??6e5,this[EWe]=A??2e3,this[hWe]=this[ZZ],this[Tu]=null,this[TE]=_??null,this[Qp]=0,this[Pu]=0,this[fWe]=`host: ${this[Oa].hostname}${this[Oa].port?`:${this[Oa].port}`:""}\r -`,this[IWe]=l??3e5,this[CWe]=s??3e5,this[wWe]=I??!0,this[SWe]=b,this[bU]=P,this[vu]=null,this[NWe]=G>-1?G:-1,this[vWe]=_e??100,this[yr]=null,this[ki]=[],this[Rl]=0,this[Li]=0,this[vE]=ze=>RU(this,ze),this[TWe]=ze=>iee(this,ze)}get pipelining(){return this[Wb]}set pipelining(e){this[Wb]=e,this[vE](!0)}get[QE](){return this[ki].length-this[Li]}get[_E](){return this[Li]-this[Rl]}get[PE](){return this[ki].length-this[Rl]}get[mWe](){return!!this[yr]&&!this[hA]&&!this[yr].destroyed}get[xU](){return!!(this[yr]?.busy(null)||this[PE]>=(oee(this)||1)||this[QE]>0)}[pWe](e){aee(this),this.once("connect",e)}[RWe](e,r){let n=e.origin||this[Oa].origin,s=new iWe(n,e,r);return this[ki].push(s),this[Qp]||(_p.bodyLength(s.body)==null&&_p.isIterable(s.body)?(this[Qp]=1,queueMicrotask(()=>RU(this))):this[vE](!0)),this[Qp]&&this[Pu]!==2&&this[xU]&&(this[Pu]=2),this[Pu]<2}async[bWe](){return new Promise(e=>{this[PE]?this[vu]=e:e(null)})}async[BWe](e){return new Promise(r=>{let n=this[ki].splice(this[Li]);for(let o=0;o{this[vu]&&(this[vu](),this[vu]=null),r(null)},"callback");this[yr]?(this[yr].destroy(e,s),this[yr]=null):queueMicrotask(s),this[vE]()})}},QWe=Vb();function iee(t,e){if(t[_E]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Bl(t[Li]===t[Rl]);let r=t[ki].splice(t[Rl]);for(let n=0;n{t[NE]({host:e,hostname:r,protocol:n,port:s,servername:t[Tu],localAddress:t[TE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){_p.destroy(o.on("error",ree),new lWe);return}Bl(o);try{t[yr]=o.alpnProtocol==="h2"?await _We(t,o):await PWe(t,o)}catch(a){throw o.destroy().on("error",ree),a}t[hA]=!1,o[xWe]=0,o[bU]=t[bU],o[dWe]=t,o[AWe]=null,AA.connected.hasSubscribers&&AA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yr]?.version,servername:t[Tu],localAddress:t[TE]},connector:t[NE],socket:o}),t.emit("connect",t[Oa],[t])}catch(o){if(t.destroyed)return;if(t[hA]=!1,AA.connectError.hasSubscribers&&AA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yr]?.version,servername:t[Tu],localAddress:t[TE]},connector:t[NE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Bl(t[_E]===0);t[QE]>0&&t[ki][t[Li]].servername===t[Tu];){let a=t[ki][t[Li]++];_p.errorRequest(t,a,o)}else iee(t,o);t.emit("connectionError",t[Oa],[t],o)}t[vE]()}i(aee,"connect");function nee(t){t[Pu]=0,t.emit("drain",t[Oa],[t])}i(nee,"emitDrain");function RU(t,e){t[Qp]!==2&&(t[Qp]=2,DWe(t,e),t[Qp]=0,t[Rl]>256&&(t[ki].splice(0,t[Rl]),t[Li]-=t[Rl],t[Rl]=0))}i(RU,"resume");function DWe(t,e){for(;;){if(t.destroyed){Bl(t[QE]===0);return}if(t[vu]&&!t[PE]){t[vu](),t[vu]=null;return}if(t[yr]&&t[yr].resume(),t[xU])t[Pu]=2;else if(t[Pu]===2){e?(t[Pu]=1,queueMicrotask(()=>nee(t))):nee(t);continue}if(t[QE]===0||t[_E]>=(oee(t)||1))return;let r=t[ki][t[Li]];if(t[Oa].protocol==="https:"&&t[Tu]!==r.servername){if(t[_E]>0)return;t[Tu]=r.servername,t[yr]?.destroy(new cWe("servername changed"),()=>{t[yr]=null,RU(t)})}if(t[hA])return;if(!t[yr]){aee(t);return}if(t[yr].destroyed||t[yr].busy(r))return;!r.aborted&&t[yr].write(r)?t[Li]++:t[ki].splice(t[Li],1)}}i(DWe,"_resume");cee.exports=BU});var NU=w((lVt,lee)=>{"use strict";var Yb=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};lee.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new Yb}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Yb),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var dee=w((dVt,uee)=>{var{kFree:kWe,kConnected:LWe,kPending:OWe,kQueued:MWe,kRunning:FWe,kSize:UWe}=qt(),Dp=Symbol("pool"),TU=class{static{i(this,"PoolStats")}constructor(e){this[Dp]=e}get connected(){return this[Dp][LWe]}get free(){return this[Dp][kWe]}get pending(){return this[Dp][OWe]}get queued(){return this[Dp][MWe]}get running(){return this[Dp][FWe]}get size(){return this[Dp][UWe]}};uee.exports=TU});var kU=w((mVt,Iee)=>{"use strict";var qWe=tA(),GWe=NU(),{kConnected:vU,kSize:pee,kRunning:mee,kPending:fee,kQueued:DE,kBusy:HWe,kFree:$We,kUrl:zWe,kClose:VWe,kDestroy:WWe,kDispatch:YWe}=qt(),JWe=dee(),ws=Symbol("clients"),Xn=Symbol("needDrain"),kE=Symbol("queue"),PU=Symbol("closed resolve"),_U=Symbol("onDrain"),Aee=Symbol("onConnect"),hee=Symbol("onDisconnect"),gee=Symbol("onConnectionError"),QU=Symbol("get dispatcher"),Eee=Symbol("add client"),Cee=Symbol("remove client"),yee=Symbol("stats"),DU=class extends qWe{static{i(this,"PoolBase")}constructor(e){super(e),this[kE]=new GWe,this[ws]=[],this[DE]=0;let r=this;this[_U]=i(function(s,o){let a=r[kE],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[DE]--,c=!this.dispatch(l.opts,l.handler)}this[Xn]=c,!this[Xn]&&r[Xn]&&(r[Xn]=!1,r.emit("drain",s,[r,...o])),r[PU]&&a.isEmpty()&&Promise.all(r[ws].map(l=>l.close())).then(r[PU])},"onDrain"),this[Aee]=(n,s)=>{r.emit("connect",n,[r,...s])},this[hee]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[gee]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[yee]=new JWe(this)}get[HWe](){return this[Xn]}get[vU](){return this[ws].filter(e=>e[vU]).length}get[$We](){return this[ws].filter(e=>e[vU]&&!e[Xn]).length}get[fee](){let e=this[DE];for(let{[fee]:r}of this[ws])e+=r;return e}get[mee](){let e=0;for(let{[mee]:r}of this[ws])e+=r;return e}get[pee](){let e=this[DE];for(let{[pee]:r}of this[ws])e+=r;return e}get stats(){return this[yee]}async[VWe](){this[kE].isEmpty()?await Promise.all(this[ws].map(e=>e.close())):await new Promise(e=>{this[PU]=e})}async[WWe](e){for(;;){let r=this[kE].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[ws].map(r=>r.destroy(e)))}[YWe](e,r){let n=this[QU]();return n?n.dispatch(e,r)||(n[Xn]=!0,this[Xn]=!this[QU]()):(this[Xn]=!0,this[kE].push({opts:e,handler:r}),this[DE]++),!this[Xn]}[Eee](e){return e.on("drain",this[_U]).on("connect",this[Aee]).on("disconnect",this[hee]).on("connectionError",this[gee]),this[ws].push(e),this[Xn]&&queueMicrotask(()=>{this[Xn]&&this[_U](e[zWe],[this,e])}),this}[Cee](e){e.close(()=>{let r=this[ws].indexOf(e);r!==-1&&this[ws].splice(r,1)}),this[Xn]=this[ws].some(r=>!r[Xn]&&r.closed!==!0&&r.destroyed!==!0)}};Iee.exports={PoolBase:DU,kClients:ws,kNeedDrain:Xn,kAddClient:Eee,kRemoveClient:Cee,kGetDispatcher:QU}});var yA=w((AVt,bee)=>{"use strict";var{PoolBase:jWe,kClients:Jb,kNeedDrain:KWe,kAddClient:XWe,kGetDispatcher:ZWe}=kU(),eYe=gA(),{InvalidArgumentError:LU}=it(),wee=Ve(),{kUrl:See,kInterceptors:tYe}=qt(),rYe=fE(),OU=Symbol("options"),MU=Symbol("connections"),xee=Symbol("factory");function nYe(t,e){return new eYe(t,e)}i(nYe,"defaultFactory");var FU=class extends jWe{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=nYe,connect:s,connectTimeout:o,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:p,...m}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new LU("invalid connections");if(typeof n!="function")throw new LU("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new LU("connect must be a function or an object");typeof s!="function"&&(s=rYe({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(m),this[tYe]=m.interceptors?.Pool&&Array.isArray(m.interceptors.Pool)?m.interceptors.Pool:[],this[MU]=r||null,this[See]=wee.parseOrigin(e),this[OU]={...wee.deepClone(m),connect:s,allowH2:p},this[OU].interceptors=m.interceptors?{...m.interceptors}:void 0,this[xee]=n,this.on("connectionError",(f,A,h)=>{for(let E of A){let y=this[Jb].indexOf(E);y!==-1&&this[Jb].splice(y,1)}})}[ZWe](){for(let e of this[Jb])if(!e[KWe])return e;if(!this[MU]||this[Jb].length{"use strict";var{BalancedPoolMissingUpstreamError:sYe,InvalidArgumentError:oYe}=it(),{PoolBase:iYe,kClients:Dn,kNeedDrain:LE,kAddClient:aYe,kRemoveClient:cYe,kGetDispatcher:lYe}=kU(),uYe=yA(),{kUrl:UU,kInterceptors:dYe}=qt(),{parseOrigin:Bee}=Ve(),Ree=Symbol("factory"),jb=Symbol("options"),Nee=Symbol("kGreatestCommonDivisor"),kp=Symbol("kCurrentWeight"),Lp=Symbol("kIndex"),Go=Symbol("kWeight"),Kb=Symbol("kMaxWeightPerServer"),Xb=Symbol("kErrorPenalty");function pYe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(pYe,"getGreatestCommonDivisor");function mYe(t,e){return new uYe(t,e)}i(mYe,"defaultFactory");var qU=class extends iYe{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=mYe,...n}={}){if(super(),this[jb]=n,this[Lp]=-1,this[kp]=0,this[Kb]=this[jb].maxWeightPerServer||100,this[Xb]=this[jb].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new oYe("factory must be a function.");this[dYe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[Ree]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=Bee(e).origin;if(this[Dn].find(s=>s[UU].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[Ree](r,Object.assign({},this[jb]));this[aYe](n),n.on("connect",()=>{n[Go]=Math.min(this[Kb],n[Go]+this[Xb])}),n.on("connectionError",()=>{n[Go]=Math.max(1,n[Go]-this[Xb]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[Go]=Math.max(1,n[Go]-this[Xb]),this._updateBalancedPoolStats())});for(let s of this[Dn])s[Go]=this[Kb];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[UU].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[cYe](n),this}get upstreams(){return this[Dn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[UU].origin)}[lYe](){if(this[Dn].length===0)throw new sYe;if(!this[Dn].find(o=>!o[LE]&&o.closed!==!0&&o.destroyed!==!0)||this[Dn].map(o=>o[LE]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Dn].findIndex(o=>!o[LE]);for(;n++this[Dn][s][Go]&&!o[LE]&&(s=this[Lp]),this[Lp]===0&&(this[kp]=this[kp]-this[Nee],this[kp]<=0&&(this[kp]=this[Kb])),o[Go]>=this[kp]&&!o[LE])return o}return this[kp]=this[Dn][s][Go],this[Lp]=s,this[Dn][s]}};Tee.exports=qU});var EA=w((EVt,Oee)=>{"use strict";var{InvalidArgumentError:Zb}=it(),{kClients:_u,kRunning:Pee,kClose:fYe,kDestroy:AYe,kDispatch:hYe,kInterceptors:gYe}=qt(),yYe=tA(),EYe=yA(),CYe=gA(),IYe=Ve(),wYe=Vb(),_ee=Symbol("onConnect"),Qee=Symbol("onDisconnect"),Dee=Symbol("onConnectionError"),SYe=Symbol("maxRedirections"),kee=Symbol("onDrain"),Lee=Symbol("factory"),GU=Symbol("options");function xYe(t,e){return e&&e.connections===1?new CYe(t,e):new EYe(t,e)}i(xYe,"defaultFactory");var HU=class extends yYe{static{i(this,"Agent")}constructor({factory:e=xYe,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new Zb("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new Zb("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new Zb("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[gYe]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[wYe({maxRedirections:r})],this[GU]={...IYe.deepClone(o),connect:n,tls:s},this[GU].interceptors=o.interceptors?{...o.interceptors}:void 0,this[SYe]=r,this[Lee]=e,this[_u]=new Map,this[kee]=(a,c)=>{this.emit("drain",a,[this,...c])},this[_ee]=(a,c)=>{this.emit("connect",a,[this,...c])},this[Qee]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[Dee]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[Pee](){let e=0;for(let r of this[_u].values())e+=r[Pee];return e}[hYe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new Zb("opts.origin must be a non-empty string or URL.");let s=this[_u].get(n);return s||(s=this[Lee](e.origin,this[GU]).on("drain",this[kee]).on("connect",this[_ee]).on("disconnect",this[Qee]).on("connectionError",this[Dee]),this[_u].set(n,s)),s.dispatch(e,r)}async[fYe](){let e=[];for(let r of this[_u].values())e.push(r.close());this[_u].clear(),await Promise.all(e)}async[AYe](e){let r=[];for(let n of this[_u].values())r.push(n.destroy(e));this[_u].clear(),await Promise.all(r)}};Oee.exports=HU});var YU=w((IVt,Yee)=>{"use strict";var{kProxy:$U,kClose:Hee,kDestroy:$ee,kDispatch:Mee,kInterceptors:bYe}=qt(),{URL:Op}=require("node:url"),BYe=EA(),zee=yA(),Vee=tA(),{InvalidArgumentError:CA,RequestAbortedError:RYe,SecureProxyConnectionError:NYe}=it(),Fee=fE(),Wee=gA(),e0=Symbol("proxy agent"),t0=Symbol("proxy client"),Qu=Symbol("proxy headers"),zU=Symbol("request tls settings"),Uee=Symbol("proxy tls settings"),qee=Symbol("connect endpoint function"),Gee=Symbol("tunnel proxy");function TYe(t){return t==="https:"?443:80}i(TYe,"defaultProtocolPort");function vYe(t,e){return new zee(t,e)}i(vYe,"defaultFactory");var PYe=i(()=>{},"noop");function _Ye(t,e){return e.connections===1?new Wee(t,e):new zee(t,e)}i(_Ye,"defaultAgentFactory");var VU=class extends Vee{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new CA("Proxy URL is mandatory");this[Qu]=r,s?this.#e=s(e,{connect:n}):this.#e=new Wee(e,{connect:n})}[Mee](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new CA("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:s,path:o="/",headers:a={}}=e;if(e.path=s+o,!("host"in a)&&!("Host"in a)){let{host:c}=new Op(s);a.host=c}return e.headers={...this[Qu],...a},this.#e[Mee](e,r)}async[Hee](){return this.#e.close()}async[$ee](e){return this.#e.destroy(e)}},WU=class extends Vee{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Op)&&!e.uri)throw new CA("Proxy uri is mandatory");let{clientFactory:r=vYe}=e;if(typeof r!="function")throw new CA("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,s=this.#e(e),{href:o,origin:a,port:c,protocol:l,username:u,password:d,hostname:p}=s;if(this[$U]={uri:o,protocol:l},this[bYe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[zU]=e.requestTls,this[Uee]=e.proxyTls,this[Qu]=e.headers||{},this[Gee]=n,e.auth&&e.token)throw new CA("opts.auth cannot be used in combination with opts.token");e.auth?this[Qu]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[Qu]["proxy-authorization"]=e.token:u&&d&&(this[Qu]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let m=Fee({...e.proxyTls});this[qee]=Fee({...e.requestTls});let f=e.factory||_Ye,A=i((h,E)=>{let{protocol:y}=new Op(h);return!this[Gee]&&y==="http:"&&this[$U].protocol==="http:"?new VU(this[$U].uri,{headers:this[Qu],connect:m,factory:f}):f(h,E)},"factory");this[t0]=r(s,{connect:m}),this[e0]=new BYe({...e,factory:A,connect:i(async(h,E)=>{let y=h.host;h.port||(y+=`:${TYe(h.protocol)}`);try{let{socket:I,statusCode:x}=await this[t0].connect({origin:a,port:c,path:y,signal:h.signal,headers:{...this[Qu],host:h.host},servername:this[Uee]?.servername||p});if(x!==200&&(I.on("error",PYe).destroy(),E(new RYe(`Proxy response (${x}) !== 200 when HTTP Tunneling`))),h.protocol!=="https:"){E(null,I);return}let b;this[zU]?b=this[zU].servername:b=h.servername,this[qee]({...h,servername:b,httpSocket:I},E)}catch(I){I.code==="ERR_TLS_CERT_ALTNAME_INVALID"?E(new NYe(I)):E(I)}},"connect")})}dispatch(e,r){let n=QYe(e.headers);if(DYe(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Op(e.origin);n.host=s}return this[e0].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Op(e):e instanceof Op?e:new Op(e.uri)}async[Hee](){await this[e0].close(),await this[t0].close()}async[$ee](){await this[e0].destroy(),await this[t0].destroy()}};function QYe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new CA("Proxy-Authorization should be sent in ProxyAgent constructor")}i(DYe,"throwIfProxyAuthIsSent");Yee.exports=WU});var ete=w((SVt,Zee)=>{"use strict";var kYe=tA(),{kClose:LYe,kDestroy:OYe,kClosed:Jee,kDestroyed:jee,kDispatch:MYe,kNoProxyAgent:OE,kHttpProxyAgent:Du,kHttpsProxyAgent:Mp}=qt(),Kee=YU(),FYe=EA(),UYe={"http:":80,"https:":443},Xee=!1,JU=class extends kYe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#r=null;constructor(e={}){super(),this.#r=e,Xee||(Xee=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:s,...o}=e;this[OE]=new FYe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[Du]=new Kee({...o,uri:a}):this[Du]=this[OE];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[Mp]=new Kee({...o,uri:c}):this[Mp]=this[Du],this.#n()}[MYe](e,r){let n=new URL(e.origin);return this.#s(n).dispatch(e,r)}async[LYe](){await this[OE].close(),this[Du][Jee]||await this[Du].close(),this[Mp][Jee]||await this[Mp].close()}async[OYe](e){await this[OE].destroy(e),this[Du][jee]||await this[Du].destroy(e),this[Mp][jee]||await this[Mp].destroy(e)}#s(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||UYe[r]||0,this.#o(n,s)?r==="https:"?this[Mp]:this[Du]:this[OE]}#o(e,r){if(this.#i&&this.#n(),this.#t.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var ME=require("node:assert"),{kRetryHandlerDefaultRetry:tte}=qt(),{RequestRetryError:Fp}=it(),{isDisturbed:rte,parseHeaders:qYe,parseRangeHeader:nte,wrapRequestBody:GYe}=Ve();function HYe(t){let e=Date.now();return new Date(t).getTime()-e}i(HYe,"calculateRetryAfterHeader");function ste(t,e,r,n){let s=t["content-length"];if(s==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let o=Number(s),a=e.end-e.start+1;return!Number.isFinite(o)||o!==a?new Fp("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(ste,"validatePartialResponseContentLength");var jU=class t{static{i(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...s}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:m,statusCodes:f}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...s,body:GYe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[tte],retryAfter:m??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:f??[500,502,503,504,429],errorCodes:p??["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.headersSent=!1,this.handler.onConnect(A=>{this.aborted=!0,this.abort?this.abort(A):this.reason=A})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,ME(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?r:null}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[tte](e,{state:r,opts:n},s){let{statusCode:o,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:p,maxTimeout:m,timeoutFactor:f,statusCodes:A,errorCodes:h,methods:E}=u,{counter:y}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!h.includes(a)){s(e);return}if(Array.isArray(E)&&!E.includes(l)){s(e);return}if(o!=null&&Array.isArray(A)&&!A.includes(o)){s(e);return}if(y>d){s(e);return}let I=c?.["retry-after"];I&&(I=Number(I),I=Number.isNaN(I)?HYe(I):I*1e3);let x=I>0?Math.min(I,m):Math.min(p*f**(y-1),m);setTimeout(()=>s(null),x)}onHeaders(e,r,n,s){let o=qYe(r);if(this.retryCount+=1,e>=300)return!this.headersSent&&this.retryOpts.statusCodes.includes(e)===!1?(this.headersSent=!0,this.checkpointResponseEnd(o,n),this.handler.onHeaders(e,r,n,s)):(this.abort(new Fp("Request failed",e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new Fp("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=nte(o["content-range"]);if(!c)return this.abort(new Fp("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new Fp("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=ste(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;return this.start!==u||this.end!=null&&this.end!==p?(this.abort(new Fp("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=nte(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=ste(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;ME(u!=null&&Number.isFinite(u),"content-range mismatch"),ME(p!=null&&Number.isFinite(p),"invalid content-length"),this.start=u,this.end=p}if(this.end==null){let c=o["content-length"];this.end=c!=null?Number(c)-1:null}return ME(Number.isFinite(this.start)),ME(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.headersSent=!0,this.etag=o.etag!=null?o.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,s)}let a=new Fp("Request failed",e,{headers:o,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||rte(this.opts.body)||this.headersSent&&this.resume==null)return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},r.bind(this));function r(n){if(n!=null||this.aborted||rte(this.opts.body))return this.handler.onError(n);if(this.start!==0){let s={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(s["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...s}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(s){this.handler.onError(s)}}i(r,"onRetry")}};ote.exports=jU});var ate=w((RVt,ite)=>{"use strict";var $Ye=pE(),zYe=r0(),KU=class extends $Ye{static{i(this,"RetryAgent")}#e=null;#t=null;constructor(e,r={}){super(r),this.#e=e,this.#t=r}dispatch(e,r){let n=new zYe({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};ite.exports=KU});var n1=w((TVt,hte)=>{"use strict";var pte=require("node:assert"),{Readable:VYe}=require("node:stream"),{RequestAbortedError:mte,NotSupportedError:WYe,InvalidArgumentError:YYe,AbortError:XU}=it(),fte=Ve(),{ReadableStreamFrom:JYe}=Ve(),eo=Symbol("kConsume"),FE=Symbol("kReading"),ku=Symbol("kBody"),cte=Symbol("kAbort"),Ate=Symbol("kContentType"),lte=Symbol("kContentLength"),jYe=i(()=>{},"noop"),ZU=class extends VYe{static{i(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:s,highWaterMark:o=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:o}),this._readableState.dataEmitted=!1,this[cte]=r,this[eo]=null,this[ku]=null,this[Ate]=n,this[lte]=s,this[FE]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new mte),e&&this[cte](),super.destroy(e)}_destroy(e,r){this[FE]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[FE]=!0),super.on(e,...r)}addListener(e,...r){return this.on(e,...r)}off(e,...r){let n=super.off(e,...r);return(e==="data"||e==="readable")&&(this[FE]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[eo]&&e!==null?(t1(this[eo],e),this[FE]?super.push(e):!0):super.push(e)}async text(){return UE(this,"text")}async json(){return UE(this,"json")}async blob(){return UE(this,"blob")}async bytes(){return UE(this,"bytes")}async arrayBuffer(){return UE(this,"arrayBuffer")}async formData(){throw new WYe}get bodyUsed(){return fte.isDisturbed(this)}get body(){return this[ku]||(this[ku]=JYe(this),this[eo]&&(this[ku].getReader(),pte(this[ku].locked))),this[ku]}async dump(e){let r=Number.isFinite(e?.limit)?e.limit:131072,n=e?.signal;if(n!=null&&(typeof n!="object"||!("aborted"in n)))throw new YYe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[lte]>r&&this.destroy(new XU);let a=i(()=>{this.destroy(n.reason??new XU)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new XU):s(null)}).on("error",jYe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function KYe(t){return t[ku]&&t[ku].locked===!0||t[eo]}i(KYe,"isLocked");function XYe(t){return fte.isDisturbed(t)||KYe(t)}i(XYe,"isUnusable");async function UE(t,e){return pte(!t[eo]),new Promise((r,n)=>{if(XYe(t)){let s=t._readableState;s.destroyed&&s.closeEmitted===!1?t.on("error",o=>{n(o)}).on("close",()=>{n(new TypeError("unusable"))}):n(s.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[eo]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){r1(this[eo],s)}).on("close",function(){this[eo].body!==null&&r1(this[eo],new mte)}),ZYe(t[eo])})})}i(UE,"consume");function ZYe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}i(e1,"chunksDecode");function ute(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let s=0;s{var e8e=require("node:assert"),{ResponseStatusCodeError:gte}=it(),{chunksDecode:yte}=n1(),t8e=128*1024;async function r8e({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){e8e(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>t8e){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new gte(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{Ete(r)?d=JSON.parse(yte(a,c)):Cte(r)&&(d=yte(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new gte(l,n,o,d)))}i(r8e,"getResolveErrorBodyCallback");var Ete=i(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),Cte=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Ite.exports={getResolveErrorBodyCallback:r8e,isContentTypeApplicationJson:Ete,isContentTypeText:Cte}});var xte=w((QVt,o1)=>{"use strict";var n8e=require("node:assert"),{Readable:s8e}=n1(),{InvalidArgumentError:IA,RequestAbortedError:wte}=it(),to=Ve(),{getResolveErrorBodyCallback:o8e}=s1(),{AsyncResource:i8e}=require("node:async_hooks"),n0=class extends i8e{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new IA("invalid opts");let{signal:n,method:s,opaque:o,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new IA("invalid callback");if(d&&(typeof d!="number"||d<0))throw new IA("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new IA("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new IA("invalid method");if(c&&typeof c!="function")throw new IA("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw to.isStream(a)&&to.destroy(a.on("error",to.nop),p),p}this.method=s,this.responseHeaders=l||null,this.opaque=o||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,to.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new wte:this.removeAbortListener=to.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new wte,this.res?to.destroy(this.res.on("error",to.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&(this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}))}onConnect(e,r){if(this.reason){e(this.reason);return}n8e(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{callback:o,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,p=u==="raw"?to.parseRawHeaders(r):to.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=u==="raw"?to.parseHeaders(r):p,f=m["content-type"],A=m["content-length"],h=new s8e({resume:n,abort:c,contentType:f,contentLength:this.method!=="HEAD"&&A?Number(A):null,highWaterMark:d});this.removeAbortListener&&h.on("close",this.removeAbortListener),this.callback=null,this.res=h,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(o8e,null,{callback:o,body:h,contentType:f,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:h,context:l}))}onData(e){return this.res.push(e)}onComplete(e){to.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:s,opaque:o}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:o})})),r&&(this.res=null,queueMicrotask(()=>{to.destroy(r,e)})),s&&(this.body=null,to.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function Ste(t,e){if(e===void 0)return new Promise((r,n)=>{Ste.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new n0(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Ste,"request");o1.exports=Ste;o1.exports.RequestHandler=n0});var qE=w((kVt,Rte)=>{var{addAbortListener:a8e}=Ve(),{RequestAbortedError:c8e}=it(),wA=Symbol("kListener"),Ma=Symbol("kSignal");function bte(t){t.abort?t.abort(t[Ma]?.reason):t.reason=t[Ma]?.reason??new c8e,Bte(t)}i(bte,"abort");function l8e(t,e){if(t.reason=null,t[Ma]=null,t[wA]=null,!!e){if(e.aborted){bte(t);return}t[Ma]=e,t[wA]=()=>{bte(t)},a8e(t[Ma],t[wA])}}i(l8e,"addSignal");function Bte(t){t[Ma]&&("removeEventListener"in t[Ma]?t[Ma].removeEventListener("abort",t[wA]):t[Ma].removeListener("abort",t[wA]),t[Ma]=null,t[wA]=null)}i(Bte,"removeSignal");Rte.exports={addSignal:l8e,removeSignal:Bte}});var Pte=w((OVt,vte)=>{"use strict";var u8e=require("node:assert"),{finished:d8e,PassThrough:p8e}=require("node:stream"),{InvalidArgumentError:SA,InvalidReturnValueError:m8e}=it(),Oi=Ve(),{getResolveErrorBodyCallback:f8e}=s1(),{AsyncResource:A8e}=require("node:async_hooks"),{addSignal:h8e,removeSignal:Nte}=qE(),i1=class extends A8e{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new SA("invalid opts");let{signal:s,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new SA("invalid callback");if(typeof r!="function")throw new SA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new SA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new SA("invalid method");if(l&&typeof l!="function")throw new SA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw Oi.isStream(c)&&Oi.destroy(c.on("error",Oi.nop),p),p}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,Oi.isStream(c)&&c.on("error",p=>{this.onError(p)}),h8e(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}u8e(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{factory:o,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?Oi.parseRawHeaders(r):Oi.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let p;if(this.throwOnError&&e>=400){let A=(u==="raw"?Oi.parseHeaders(r):d)["content-type"];p=new p8e,this.callback=null,this.runInAsyncScope(f8e,null,{callback:l,body:p,contentType:A,statusCode:e,statusMessage:s,headers:d})}else{if(o===null)return;if(p=this.runInAsyncScope(o,null,{statusCode:e,headers:d,opaque:a,context:c}),!p||typeof p.write!="function"||typeof p.end!="function"||typeof p.on!="function")throw new m8e("expected Writable");d8e(p,{readable:!1},f=>{let{callback:A,res:h,opaque:E,trailers:y,abort:I}=this;this.res=null,(f||!h.readable)&&Oi.destroy(h,f),this.callback=null,this.runInAsyncScope(A,null,f||null,{opaque:E,trailers:y}),f&&I()})}return p.on("drain",n),this.res=p,(p.writableNeedDrain!==void 0?p.writableNeedDrain:p._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;Nte(this),r&&(this.trailers=Oi.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Nte(this),this.factory=null,r?(this.res=null,Oi.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,Oi.destroy(o,e))}};function Tte(t,e,r){if(r===void 0)return new Promise((n,s)=>{Tte.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new i1(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Tte,"stream");vte.exports=Tte});var kte=w((FVt,Dte)=>{"use strict";var{Readable:Qte,Duplex:g8e,PassThrough:y8e}=require("node:stream"),{InvalidArgumentError:GE,InvalidReturnValueError:E8e,RequestAbortedError:a1}=it(),Ho=Ve(),{AsyncResource:C8e}=require("node:async_hooks"),{addSignal:I8e,removeSignal:w8e}=qE(),_te=require("node:assert"),xA=Symbol("resume"),c1=class extends Qte{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[xA]=null}_read(){let{[xA]:e}=this;e&&(this[xA]=null,e())}_destroy(e,r){this._read(),r(e)}},l1=class extends Qte{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[xA]=e}_read(){this[xA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new a1),r(e)}},u1=class extends C8e{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new GE("invalid opts");if(typeof r!="function")throw new GE("invalid handler");let{signal:n,method:s,opaque:o,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new GE("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new GE("invalid method");if(a&&typeof a!="function")throw new GE("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new c1().on("error",Ho.nop),this.ret=new g8e({readableObjectMode:e.objectMode,autoDestroy:!0,read:i(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:i((l,u,d)=>{let{req:p}=this;p.push(l,u)||p._readableState.destroyed?d():p[xA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:m,ret:f,abort:A}=this;!l&&!f._readableState.endEmitted&&(l=new a1),A&&l&&A(),Ho.destroy(d,l),Ho.destroy(p,l),Ho.destroy(m,l),w8e(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,I8e(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}_te(!s,"pipeline cannot be retried"),_te(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:s,handler:o,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?Ho.parseRawHeaders(r):Ho.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new l1(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?Ho.parseRawHeaders(r):Ho.parseHeaders(r);c=this.runInAsyncScope(o,null,{statusCode:e,headers:l,opaque:s,body:this.res,context:a})}catch(l){throw this.res.on("error",Ho.nop),l}if(!c||typeof c.on!="function")throw new E8e("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;Ho.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||Ho.destroy(l,new a1)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,Ho.destroy(r,e)}};function S8e(t,e){try{let r=new u1(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new y8e().destroy(r)}}i(S8e,"pipeline");Dte.exports=S8e});var qte=w((qVt,Ute)=>{"use strict";var{InvalidArgumentError:d1,SocketError:x8e}=it(),{AsyncResource:b8e}=require("node:async_hooks"),Lte=Ve(),{addSignal:B8e,removeSignal:Ote}=qE(),Mte=require("node:assert"),p1=class extends b8e{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new d1("invalid opts");if(typeof r!="function")throw new d1("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new d1("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=s||null,this.callback=r,this.abort=null,this.context=null,B8e(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Mte(this.callback),this.abort=e,this.context=null}onHeaders(){throw new x8e("bad upgrade",null)}onUpgrade(e,r,n){Mte(e===101);let{callback:s,opaque:o,context:a}=this;Ote(this),this.callback=null;let c=this.responseHeaders==="raw"?Lte.parseRawHeaders(r):Lte.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Ote(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Fte(t,e){if(e===void 0)return new Promise((r,n)=>{Fte.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new p1(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Fte,"upgrade");Ute.exports=Fte});var Vte=w((HVt,zte)=>{"use strict";var R8e=require("node:assert"),{AsyncResource:N8e}=require("node:async_hooks"),{InvalidArgumentError:m1,SocketError:T8e}=it(),Gte=Ve(),{addSignal:v8e,removeSignal:Hte}=qE(),f1=class extends N8e{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new m1("invalid opts");if(typeof r!="function")throw new m1("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new m1("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,v8e(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}R8e(this.callback),this.abort=e,this.context=r}onHeaders(){throw new T8e("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;Hte(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?Gte.parseRawHeaders(r):Gte.parseHeaders(r)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Hte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function $te(t,e){if(e===void 0)return new Promise((r,n)=>{$te.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new f1(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i($te,"connect");zte.exports=$te});var Wte=w((zVt,bA)=>{"use strict";bA.exports.request=xte();bA.exports.stream=Pte();bA.exports.pipeline=kte();bA.exports.upgrade=qte();bA.exports.connect=Vte()});var h1=w((VVt,Jte)=>{"use strict";var{UndiciError:P8e}=it(),Yte=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),A1=class t extends P8e{static{i(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),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[Yte]===!0}[Yte]=!0};Jte.exports={MockNotMatchedError:A1}});var BA=w((YVt,jte)=>{"use strict";jte.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")}});var HE=w((JVt,are)=>{"use strict";var{MockNotMatchedError:Up}=h1(),{kDispatches:s0,kMockAgent:_8e,kOriginalDispatch:Q8e,kOrigin:D8e,kGetNetConnect:k8e}=BA(),{buildURL:L8e}=Ve(),{STATUS_CODES:O8e}=require("node:http"),{types:{isPromise:M8e}}=require("node:util");function Nl(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(Nl,"matchValue");function Xte(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(Xte,"lowerCaseEntries");function Zte(t,e){if(Array.isArray(t)){for(let r=0;r"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let s=Zte(e,r);if(!Nl(n,s))return!1}return!0}i(ere,"matchHeaders");function Kte(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}i(Kte,"safeUrl");function F8e(t,{path:e,method:r,body:n,headers:s}){let o=Nl(t.path,e),a=Nl(t.method,r),c=typeof t.body<"u"?Nl(t.body,n):!0,l=ere(t,s);return o&&a&&c&&l}i(F8e,"matchKey");function tre(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(tre,"getResponseData");function rre(t,e){let r=e.query?L8e(e.path,e.query):e.path,n=typeof r=="string"?Kte(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>Nl(Kte(o),n));if(s.length===0)throw new Up(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>Nl(o,e.method)),s.length===0)throw new Up(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?Nl(o,e.body):!0),s.length===0)throw new Up(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>ere(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new Up(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(rre,"getMockDispatch");function U8e(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},s=typeof r=="function"?{callback:r}:{...r},o={...n,...e,pending:!0,data:{error:null,...s}};return t.push(o),o}i(U8e,"addMockDispatch");function g1(t,e){let r=t.findIndex(n=>n.consumed?F8e(n,e):!1);r!==-1&&t.splice(r,1)}i(g1,"deleteMockDispatch");function nre(t){let{path:e,method:r,body:n,headers:s,query:o}=t;return{path:e,method:r,body:n,headers:s,query:o}}i(nre,"buildKey");function y1(t){let e=Object.keys(t),r=[];for(let n=0;n=m,n.pending=p0?setTimeout(()=>{f(this[s0])},u):f(this[s0]);function f(h,E=o){let y=Array.isArray(t.headers)?E1(t.headers):t.headers,I=typeof E=="function"?E({...t,headers:y}):E;if(M8e(I)){I.then(P=>f(h,P));return}let x=tre(I),b=y1(a),N=y1(c);e.onConnect?.(P=>e.onError(P),null),e.onHeaders?.(s,b,A,sre(s)),e.onData?.(Buffer.from(x)),e.onComplete?.(N),g1(h,r)}i(f,"handleReply");function A(){}return i(A,"resume"),!0}i(ore,"mockDispatch");function G8e(){let t=this[_8e],e=this[D8e],r=this[Q8e];return i(function(s,o){if(t.isMockActive)try{ore.call(this,s,o)}catch(a){if(a instanceof Up){let c=t[k8e]();if(c===!1)throw new Up(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(ire(c,e))r.call(this,s,o);else throw new Up(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,s,o)},"dispatch")}i(G8e,"buildMockDispatch");function ire(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Nl(n,r.host)))}i(ire,"checkNetConnect");function H8e(t){if(t){let{agent:e,...r}=t;return r}}i(H8e,"buildMockOptions");are.exports={getResponseData:tre,getMockDispatch:rre,addMockDispatch:U8e,deleteMockDispatch:g1,buildKey:nre,generateKeyValues:y1,matchValue:Nl,getResponse:q8e,getStatusText:sre,mockDispatch:ore,buildMockDispatch:G8e,checkNetConnect:ire,buildMockOptions:H8e,getHeaderByName:Zte,buildHeadersFromArray:E1}});var B1=w((KVt,b1)=>{"use strict";var{getResponseData:$8e,buildKey:z8e,addMockDispatch:C1}=HE(),{kDispatches:o0,kDispatchKey:i0,kDefaultHeaders:I1,kDefaultTrailers:w1,kContentLength:S1,kMockDispatch:a0}=BA(),{InvalidArgumentError:Fa}=it(),{buildURL:V8e}=Ve(),RA=class{static{i(this,"MockScope")}constructor(e){this[a0]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Fa("waitInMs must be a valid integer > 0");return this[a0].delay=e,this}persist(){return this[a0].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Fa("repeatTimes must be a valid integer > 0");return this[a0].times=e,this}},x1=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new Fa("opts must be an object");if(typeof e.path>"u")throw new Fa("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=V8e(e.path,e.query);else{let n=new URL(e.path,"data://");e.path=n.pathname+n.search}typeof e.method=="string"&&(e.method=e.method.toUpperCase()),this[i0]=z8e(e),this[o0]=r,this[I1]={},this[w1]={},this[S1]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=$8e(r),o=this[S1]?{"content-length":s.length}:{},a={...this[I1],...o,...n.headers},c={...this[w1],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new Fa("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new Fa("responseOptions must be an object")}reply(e){if(typeof e=="function"){let o=i(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new Fa("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=C1(this[o0],this[i0],o);return new RA(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),s=C1(this[o0],this[i0],n);return new RA(s)}replyWithError(e){if(typeof e>"u")throw new Fa("error must be defined");let r=C1(this[o0],this[i0],{error:e});return new RA(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new Fa("headers must be defined");return this[I1]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new Fa("trailers must be defined");return this[w1]=e,this}replyContentLength(){return this[S1]=!0,this}};b1.exports.MockInterceptor=x1;b1.exports.MockScope=RA});var T1=w((ZVt,fre)=>{"use strict";var{promisify:W8e}=require("node:util"),Y8e=gA(),{buildMockDispatch:J8e}=HE(),{kDispatches:cre,kMockAgent:lre,kClose:ure,kOriginalClose:dre,kOrigin:pre,kOriginalDispatch:j8e,kConnected:R1}=BA(),{MockInterceptor:K8e}=B1(),mre=qt(),{InvalidArgumentError:X8e}=it(),N1=class extends Y8e{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new X8e("Argument opts.agent must implement Agent");this[lre]=r.agent,this[pre]=e,this[cre]=[],this[R1]=1,this[j8e]=this.dispatch,this[dre]=this.close.bind(this),this.dispatch=J8e.call(this),this.close=this[ure]}get[mre.kConnected](){return this[R1]}intercept(e){return new K8e(e,this[cre])}async[ure](){await W8e(this[dre])(),this[R1]=0,this[lre][mre.kClients].delete(this[pre])}};fre.exports=N1});var _1=w((t4t,Ire)=>{"use strict";var{promisify:Z8e}=require("node:util"),eJe=yA(),{buildMockDispatch:tJe}=HE(),{kDispatches:Are,kMockAgent:hre,kClose:gre,kOriginalClose:yre,kOrigin:Ere,kOriginalDispatch:rJe,kConnected:v1}=BA(),{MockInterceptor:nJe}=B1(),Cre=qt(),{InvalidArgumentError:sJe}=it(),P1=class extends eJe{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new sJe("Argument opts.agent must implement Agent");this[hre]=r.agent,this[Ere]=e,this[Are]=[],this[v1]=1,this[rJe]=this.dispatch,this[yre]=this.close.bind(this),this.dispatch=tJe.call(this),this.close=this[gre]}get[Cre.kConnected](){return this[v1]}intercept(e){return new nJe(e,this[Are])}async[gre](){await Z8e(this[yre])(),this[v1]=0,this[hre][Cre.kClients].delete(this[Ere])}};Ire.exports=P1});var Sre=w((s4t,wre)=>{"use strict";var oJe={pronoun:"it",is:"is",was:"was",this:"this"},iJe={pronoun:"they",is:"are",was:"were",this:"these"};wre.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?oJe:iJe,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var bre=w((a4t,xre)=>{"use strict";var{Transform:aJe}=require("node:stream"),{Console:cJe}=require("node:console"),lJe=process.versions.icu?"\u2705":"Y ",uJe=process.versions.icu?"\u274C":"N ";xre.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new aJe({transform(r,n,s){s(null,r)}}),this.logger=new cJe({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:s,data:{statusCode:o},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:s,"Status code":o,Persistent:a?lJe:uJe,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Tre=w((l4t,Nre)=>{"use strict";var{kClients:qp}=qt(),dJe=EA(),{kAgent:Q1,kMockAgentSet:c0,kMockAgentGet:Bre,kDispatches:D1,kIsMockActive:l0,kNetConnect:Gp,kGetNetConnect:pJe,kOptions:u0,kFactory:d0}=BA(),mJe=T1(),fJe=_1(),{matchValue:AJe,buildMockOptions:hJe}=HE(),{InvalidArgumentError:Rre,UndiciError:gJe}=it(),yJe=pE(),EJe=Sre(),CJe=bre(),k1=class extends yJe{static{i(this,"MockAgent")}constructor(e){if(super(e),this[Gp]=!0,this[l0]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new Rre("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new dJe(e);this[Q1]=r,this[qp]=r[qp],this[u0]=hJe(e)}get(e){let r=this[Bre](e);return r||(r=this[d0](e),this[c0](e,r)),r}dispatch(e,r){return this.get(e.origin),this[Q1].dispatch(e,r)}async close(){await this[Q1].close(),this[qp].clear()}deactivate(){this[l0]=!1}activate(){this[l0]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Gp])?this[Gp].push(e):this[Gp]=[e];else if(typeof e>"u")this[Gp]=!0;else throw new Rre("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Gp]=!1}get isMockActive(){return this[l0]}[c0](e,r){this[qp].set(e,r)}[d0](e){let r=Object.assign({agent:this},this[u0]);return this[u0]&&this[u0].connections===1?new mJe(e,r):new fJe(e,r)}[Bre](e){let r=this[qp].get(e);if(r)return r;if(typeof e!="string"){let n=this[d0]("http://localhost:9999");return this[c0](e,n),n}for(let[n,s]of Array.from(this[qp]))if(s&&typeof n!="string"&&AJe(n,e)){let o=this[d0](e);return this[c0](e,o),o[D1]=s[D1],o}}[pJe](){return this[Gp]}pendingInterceptors(){let e=this[qp];return Array.from(e.entries()).flatMap(([r,n])=>n[D1].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new CJe}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new EJe("interceptor","interceptors").pluralize(r.length);throw new gJe(` +`,"latin1"),r!==null&&s!==r){if(n[yU])throw new Pp;process.emitWarning(new Pp)}e[_t].timeout&&e[_t].timeoutType===yA&&e[_t].timeout.refresh&&e[_t].timeout.refresh(),n[Rl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ru]=!1,e&&(Ae(n[Tr]<=1,"pipeline should only contain this request"),s(e))}};WZ.exports=$4e});var ree=w((f4t,tee)=>{"use strict";var ka=require("node:assert"),{errorMonitor:SU}=require("node:events"),{pipeline:j4e}=require("node:stream"),Je=ze(),{RequestContentLengthMismatchError:bU,RequestAbortedError:xU,SocketError:vE,InformationalError:Wb}=it(),{kUrl:Yb,kReset:jb,kClient:EA,kRunning:Kb,kPending:K4e,kQueue:Dp,kPendingIdx:RU,kRunningIdx:Da,kError:Li,kSocket:Xr,kStrictContentLength:X4e,kOnError:NU,kMaxConcurrentStreams:ZZ,kHTTP2Session:ki,kResume:Tu,kSize:Z4e,kHTTPContext:eWe}=qt(),Nu=Symbol("open streams"),JZ,jZ=!1,Jb;try{Jb=require("node:http2")}catch{Jb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tWe,HTTP2_HEADER_METHOD:rWe,HTTP2_HEADER_PATH:nWe,HTTP2_HEADER_SCHEME:sWe,HTTP2_HEADER_CONTENT_LENGTH:oWe,HTTP2_HEADER_EXPECT:iWe,HTTP2_HEADER_STATUS:BU}}=Jb;function eee(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(eee,"parseH2Headers");function aWe(t){let{[BU]:e,...r}=t;return eee(r)}i(aWe,"parseH2ResponseHeaders");async function cWe(t,e){t[Xr]=e,jZ||(jZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Jb.connect(t[Yb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[ZZ]});r[Nu]=0,r[EA]=t,r[Xr]=e,Je.addListener(r,"error",uWe),Je.addListener(r,"frameError",dWe),Je.addListener(r,"end",pWe),Je.addListener(r,"goaway",fWe),Je.addListener(r,"close",function(){let{[EA]:s}=this,{[Xr]:o}=s,a=this[Xr][Li]||this[Li]||new vE("closed",Je.getSocketInfo(o));if(s[ki]=null,s.destroyed){ka(s[K4e]===0);let c=s[Dp].splice(s[Da]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return AWe(t,...s)},resume(){lWe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(cWe,"connectH2");function lWe(t){let e=t[Xr];e?.destroyed===!1&&(t[Z4e]===0&&t[ZZ]===0?(e.unref(),t[ki].unref()):(e.ref(),t[ki].ref()))}i(lWe,"resumeH2");function uWe(t){this[Xr][Li]=t,this[EA][NU](t)}i(uWe,"onHttp2SessionError");function dWe(t,e,r){if(r===0){let n=new Wb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Xr][Li]=n,this[EA][NU](n)}}i(dWe,"onHttp2FrameError");function pWe(){let t=new vE("other side closed",Je.getSocketInfo(this[Xr]));this.destroy(t),Je.destroy(this[Xr],t)}i(pWe,"onHttp2SessionEnd");function fWe(t){let e=this[Li]||new vE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Je.getSocketInfo(this)),r=this[EA];if(r[Xr]=null,r[eWe]=null,this[ki]!=null&&(this[ki].destroy(e),this[ki]=null),Je.destroy(this[Xr],e),r[Da]{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&Je.destroy(f,b||new xU);return}b=b||new xU,Je.errorRequest(t,e,b),f!=null&&Je.destroy(f,b),Je.destroy(d,b),t[Dp][t[Da]++]=null,t[Tu]()}},"abort");try{e.onConnect(h)}catch(b){Je.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),f=r.request(p,{endStream:!1,signal:l});let b=!1,N=i(J=>{b=!0,f.off(SU,v),e.onUpgradeResponse(Number(J[BU]),J,aWe)},"onResponse"),v=i(J=>{b=!0,f.off("response",N),e.onUpgradeError(J)},"onUpgradeError"),_=i(()=>{try{e.onUpgrade(null,null,f)}catch(J){f.off("response",N),h(J);return}e.aborted||(f.off("error",h),f.once(SU,v),t[Dp][t[Da]++]=null)},"onReady");return f.once("response",N),f.once("error",h),++r[Nu],_(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(SU,v),e.onUpgradeError(new Wb(`HTTP/2: "stream error" received - code ${f.rstCode}`))),r[Nu]-=1,r[Nu]===0&&r.unref()}),!0}p[nWe]=s,p[sWe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=Je.bodyLength(d);if(Je.isFormDataLike(d)){JZ??=AA().extractBody;let[b,N]=JZ(d);p["content-type"]=N,d=b.stream,y=b.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),mWe(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[X4e])return Je.errorRequest(t,e,new bU),!1;process.emitWarning(new bU)}y!=null&&(ka(d,"no body must not have content length"),p[oWe]=`${y}`),r.ref();let I=n==="GET"||n==="HEAD"||d===null;return c?(p[iWe]="100-continue",f=r.request(p,{endStream:I,signal:l}),f.once("continue",x)):(f=r.request(p,{endStream:I,signal:l}),x()),++r[Nu],f.once("response",b=>{let{[BU]:N,...v}=b;if(e.onResponseStarted(),e.aborted){let _=new xU;Je.errorRequest(t,e,_),Je.destroy(f,_);return}e.onHeaders(Number(N),eee(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",_=>{e.onData(_)===!1&&f.pause()})}),f.once("end",()=>{(f.state?.state==null||f.state.state<6)&&e.onComplete([]),r[Nu]===0&&r.unref(),h(new Wb("HTTP/2: stream half-closed (remote)")),t[Dp][t[Da]++]=null,t[RU]=t[Da],t[Tu]()}),f.once("close",()=>{r[Nu]-=1,r[Nu]===0&&r.unref()}),f.once("error",function(b){h(b)}),f.once("frameError",(b,N)=>{h(new Wb(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function x(){!d||y===0?KZ(h,f,null,t,e,t[Xr],y,E):Je.isBuffer(d)?KZ(h,f,d,t,e,t[Xr],y,E):Je.isBlobLike(d)?typeof d.stream=="function"?XZ(h,f,d.stream(),t,e,t[Xr],y,E):gWe(h,f,d,t,e,t[Xr],y,E):Je.isStream(d)?hWe(h,t[Xr],E,f,d,t,e,y):Je.isIterable(d)?XZ(h,f,d,t,e,t[Xr],y,E):ka(!1)}i(x,"writeBodyH2")}i(AWe,"writeH2");function KZ(t,e,r,n,s,o,a,c){try{r!=null&&Je.isBuffer(r)&&(ka(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[jb]=!0),s.onRequestSent(),n[Tu]()}catch(l){t(l)}}i(KZ,"writeBuffer");function hWe(t,e,r,n,s,o,a,c){ka(c!==0||o[Kb]===0,"stream body cannot be pipelined");let l=j4e(s,n,d=>{d?(Je.destroy(l,d),t(d)):(Je.removeAllListeners(l),a.onRequestSent(),r||(e[jb]=!0),o[Tu]())});Je.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(hWe,"writeStream");async function gWe(t,e,r,n,s,o,a,c){ka(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new bU;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[jb]=!0),n[Tu]()}catch(l){t(l)}}i(gWe,"writeBlob");async function XZ(t,e,r,n,s,o,a,c){ka(a!==0||n[Kb]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}i(u,"onDrain");let d=i(()=>new Promise((p,f)=>{ka(l===null),o[Li]?f(o[Li]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[Li])throw o[Li];let f=e.write(p);s.onBodySent(p),f||await d()}e.end(),s.onRequestSent(),c||(o[jb]=!0),n[Tu]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(XZ,"writeIterable");tee.exports=cWe});var Zb=w((A4t,oee)=>{"use strict";var La=ze(),{kBodyUsed:_E}=qt(),PU=require("node:assert"),{InvalidArgumentError:yWe}=it(),EWe=require("node:events"),CWe=[300,301,302,303,307,308],nee=Symbol("body"),Xb=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[nee]=e,this[_E]=!1}async*[Symbol.asyncIterator](){PU(!this[_E],"disturbed"),this[_E]=!0,yield*this[nee]}},TU=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new yWe("maxRedirections must be a positive number");La.validateHandler(s,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=s,this.history=[],this.redirectionLimitReached=!1,La.isStream(this.opts.body)?(La.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){PU(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[_E]=!1,EWe.prototype.on.call(this.opts.body,"data",function(){this[_E]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new Xb(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&La.isIterable(this.opts.body)&&(this.opts.body=new Xb(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,s){if(this.location=this.history.length>=this.maxRedirections||La.isDisturbed(this.opts.body)?null:IWe(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,s);let{origin:o,pathname:a,search:c}=La.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=wWe(this.opts.headers,e===303,this.opts.origin!==o),this.opts.path=l,this.opts.origin=o,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function IWe(t,e){if(CWe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var SWe=Zb();function xWe({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new SWe(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(xWe,"createRedirectInterceptor");iee.exports=xWe});var wA=w((E4t,hee)=>{"use strict";var Nl=require("node:assert"),pee=require("node:net"),bWe=require("node:http"),kp=ze(),{channels:CA}=rA(),BWe=A7(),RWe=iA(),{InvalidArgumentError:gr,InformationalError:NWe,ClientDestroyedError:TWe}=it(),PWe=EE(),{kUrl:Oa,kServerName:Pu,kClient:vWe,kBusy:vU,kConnect:_We,kResuming:Lp,kRunning:OE,kPending:ME,kSize:LE,kQueue:Oi,kConnected:QWe,kConnecting:IA,kNeedDrain:_u,kKeepAliveDefaultTimeout:aee,kHostHeader:DWe,kPendingIdx:Mi,kRunningIdx:Tl,kError:kWe,kPipelining:t0,kKeepAliveTimeoutValue:LWe,kMaxHeadersSize:OWe,kKeepAliveMaxTimeout:MWe,kKeepAliveTimeoutThreshold:FWe,kHeadersTimeout:UWe,kBodyTimeout:qWe,kStrictContentLength:GWe,kConnector:QE,kMaxRedirections:$We,kMaxRequests:_U,kCounter:HWe,kClose:zWe,kDestroy:VWe,kDispatch:WWe,kInterceptors:cee,kLocalAddress:DE,kMaxResponseSize:YWe,kOnError:JWe,kHTTPContext:yr,kMaxConcurrentStreams:jWe,kResume:kE}=qt(),KWe=YZ(),XWe=ree(),lee=!1,vu=Symbol("kClosedResolve"),uee=i(()=>{},"noop");function fee(t){return t[t0]??t[yr]?.defaultPipelining??1}i(fee,"getPipelining");var QU=class extends RWe{static{i(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:s,socketTimeout:o,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:p,maxKeepAliveTimeout:f,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:A,socketPath:h,pipelining:E,tls:y,strictContentLength:I,maxCachedSessions:x,maxRedirections:b,connect:N,maxRequestsPerClient:v,localAddress:_,maxResponseSize:J,autoSelectFamily:ve,autoSelectFamilyAttemptTimeout:Qe,maxConcurrentStreams:Fe,allowH2:fe,webSocket:He,eventSource:D}={}){if(super({webSocket:He,eventSource:D}),d!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(f!==void 0)throw new gr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new gr("invalid maxHeaderSize");if(h!=null&&typeof h!="string")throw new gr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new gr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new gr("invalid keepAliveTimeout");if(m!=null&&(!Number.isFinite(m)||m<=0))throw new gr("invalid keepAliveMaxTimeout");if(A!=null&&!Number.isFinite(A))throw new gr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new gr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new gr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new gr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new gr("maxRedirections must be a positive number");if(v!=null&&(!Number.isInteger(v)||v<0))throw new gr("maxRequestsPerClient must be a positive number");if(_!=null&&(typeof _!="string"||pee.isIP(_)===0))throw new gr("localAddress must be valid string IP address");if(J!=null&&(!Number.isInteger(J)||J<-1))throw new gr("maxResponseSize must be a positive number");if(Qe!=null&&(!Number.isInteger(Qe)||Qe<-1))throw new gr("autoSelectFamilyAttemptTimeout must be a positive number");if(fe!=null&&typeof fe!="boolean")throw new gr("allowH2 must be a valid boolean value");if(Fe!=null&&(typeof Fe!="number"||Fe<1))throw new gr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=PWe({...y,maxCachedSessions:x,allowH2:fe,socketPath:h,timeout:c,...ve?{autoSelectFamily:ve,autoSelectFamilyAttemptTimeout:Qe}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[cee]=r.Client,lee||(lee=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[cee]=[ZWe({maxRedirections:b})],this[Oa]=kp.parseOrigin(e),this[QE]=N,this[t0]=E??1,this[OWe]=n||bWe.maxHeaderSize,this[aee]=p??4e3,this[MWe]=m??6e5,this[FWe]=A??2e3,this[LWe]=this[aee],this[Pu]=null,this[DE]=_??null,this[Lp]=0,this[_u]=0,this[DWe]=`host: ${this[Oa].hostname}${this[Oa].port?`:${this[Oa].port}`:""}\r +`,this[qWe]=l??3e5,this[UWe]=s??3e5,this[GWe]=I??!0,this[$We]=b,this[_U]=v,this[vu]=null,this[YWe]=J>-1?J:-1,this[jWe]=Fe??100,this[yr]=null,this[Oi]=[],this[Tl]=0,this[Mi]=0,this[kE]=et=>DU(this,et),this[JWe]=et=>mee(this,et)}get pipelining(){return this[t0]}set pipelining(e){this[t0]=e,this[kE](!0)}get[ME](){return this[Oi].length-this[Mi]}get[OE](){return this[Mi]-this[Tl]}get[LE](){return this[Oi].length-this[Tl]}get[QWe](){return!!this[yr]&&!this[IA]&&!this[yr].destroyed}get[vU](){return!!(this[yr]?.busy(null)||this[LE]>=(fee(this)||1)||this[ME]>0)}[_We](e){Aee(this),this.once("connect",e)}[WWe](e,r){let n=e.origin||this[Oa].origin,s=new BWe(n,e,r);return this[Oi].push(s),this[Lp]||(kp.bodyLength(s.body)==null&&kp.isIterable(s.body)?(this[Lp]=1,queueMicrotask(()=>DU(this))):this[kE](!0)),this[Lp]&&this[_u]!==2&&this[vU]&&(this[_u]=2),this[_u]<2}async[zWe](){return new Promise(e=>{this[LE]?this[vu]=e:e(null)})}async[VWe](e){return new Promise(r=>{let n=this[Oi].splice(this[Mi]);for(let o=0;o{this[vu]&&(this[vu](),this[vu]=null),r(null)},"callback");this[yr]?(this[yr].destroy(e,s),this[yr]=null):queueMicrotask(s),this[kE]()})}},ZWe=e0();function mee(t,e){if(t[OE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Nl(t[Mi]===t[Tl]);let r=t[Oi].splice(t[Tl]);for(let n=0;n{t[QE]({host:e,hostname:r,protocol:n,port:s,servername:t[Pu],localAddress:t[DE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){kp.destroy(o.on("error",uee),new TWe);return}Nl(o);try{t[yr]=o.alpnProtocol==="h2"?await XWe(t,o):await KWe(t,o)}catch(a){throw o.destroy().on("error",uee),a}t[IA]=!1,o[HWe]=0,o[_U]=t[_U],o[vWe]=t,o[kWe]=null,CA.connected.hasSubscribers&&CA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yr]?.version,servername:t[Pu],localAddress:t[DE]},connector:t[QE],socket:o}),t.emit("connect",t[Oa],[t])}catch(o){if(t.destroyed)return;if(t[IA]=!1,CA.connectError.hasSubscribers&&CA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[yr]?.version,servername:t[Pu],localAddress:t[DE]},connector:t[QE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Nl(t[OE]===0);t[ME]>0&&t[Oi][t[Mi]].servername===t[Pu];){let a=t[Oi][t[Mi]++];kp.errorRequest(t,a,o)}else mee(t,o);t.emit("connectionError",t[Oa],[t],o)}t[kE]()}i(Aee,"connect");function dee(t){t[_u]=0,t.emit("drain",t[Oa],[t])}i(dee,"emitDrain");function DU(t,e){t[Lp]!==2&&(t[Lp]=2,eYe(t,e),t[Lp]=0,t[Tl]>256&&(t[Oi].splice(0,t[Tl]),t[Mi]-=t[Tl],t[Tl]=0))}i(DU,"resume");function eYe(t,e){for(;;){if(t.destroyed){Nl(t[ME]===0);return}if(t[vu]&&!t[LE]){t[vu](),t[vu]=null;return}if(t[yr]&&t[yr].resume(),t[vU])t[_u]=2;else if(t[_u]===2){e?(t[_u]=1,queueMicrotask(()=>dee(t))):dee(t);continue}if(t[ME]===0||t[OE]>=(fee(t)||1))return;let r=t[Oi][t[Mi]];if(t[Oa].protocol==="https:"&&t[Pu]!==r.servername){if(t[OE]>0)return;t[Pu]=r.servername,t[yr]?.destroy(new NWe("servername changed"),()=>{t[yr]=null,DU(t)})}if(t[IA])return;if(!t[yr]){Aee(t);return}if(t[yr].destroyed||t[yr].busy(r))return;!r.aborted&&t[yr].write(r)?t[Mi]++:t[Oi].splice(t[Mi],1)}}i(eYe,"_resume");hee.exports=QU});var kU=w((w4t,gee)=>{"use strict";var r0=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};gee.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new r0}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new r0),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Eee=w((x4t,yee)=>{var{kFree:tYe,kConnected:rYe,kPending:nYe,kQueued:sYe,kRunning:oYe,kSize:iYe}=qt(),Op=Symbol("pool"),LU=class{static{i(this,"PoolStats")}constructor(e){this[Op]=e}get connected(){return this[Op][rYe]}get free(){return this[Op][tYe]}get pending(){return this[Op][nYe]}get queued(){return this[Op][sYe]}get running(){return this[Op][oYe]}get size(){return this[Op][iYe]}};yee.exports=LU});var GU=w((B4t,Tee)=>{"use strict";var aYe=iA(),cYe=kU(),{kConnected:OU,kSize:Cee,kRunning:Iee,kPending:wee,kQueued:FE,kBusy:lYe,kFree:uYe,kUrl:dYe,kClose:pYe,kDestroy:fYe,kDispatch:mYe}=qt(),AYe=Eee(),Ss=Symbol("clients"),Zn=Symbol("needDrain"),UE=Symbol("queue"),MU=Symbol("closed resolve"),FU=Symbol("onDrain"),See=Symbol("onConnect"),xee=Symbol("onDisconnect"),bee=Symbol("onConnectionError"),UU=Symbol("get dispatcher"),Ree=Symbol("add client"),Nee=Symbol("remove client"),Bee=Symbol("stats"),qU=class extends aYe{static{i(this,"PoolBase")}constructor(e){super(e),this[UE]=new cYe,this[Ss]=[],this[FE]=0;let r=this;this[FU]=i(function(s,o){let a=r[UE],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[FE]--,c=!this.dispatch(l.opts,l.handler)}this[Zn]=c,!this[Zn]&&r[Zn]&&(r[Zn]=!1,r.emit("drain",s,[r,...o])),r[MU]&&a.isEmpty()&&Promise.all(r[Ss].map(l=>l.close())).then(r[MU])},"onDrain"),this[See]=(n,s)=>{r.emit("connect",n,[r,...s])},this[xee]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[bee]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[Bee]=new AYe(this)}get[lYe](){return this[Zn]}get[OU](){return this[Ss].filter(e=>e[OU]).length}get[uYe](){return this[Ss].filter(e=>e[OU]&&!e[Zn]).length}get[wee](){let e=this[FE];for(let{[wee]:r}of this[Ss])e+=r;return e}get[Iee](){let e=0;for(let{[Iee]:r}of this[Ss])e+=r;return e}get[Cee](){let e=this[FE];for(let{[Cee]:r}of this[Ss])e+=r;return e}get stats(){return this[Bee]}async[pYe](){this[UE].isEmpty()?await Promise.all(this[Ss].map(e=>e.close())):await new Promise(e=>{this[MU]=e})}async[fYe](e){for(;;){let r=this[UE].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Ss].map(r=>r.destroy(e)))}[mYe](e,r){let n=this[UU]();return n?n.dispatch(e,r)||(n[Zn]=!0,this[Zn]=!this[UU]()):(this[Zn]=!0,this[UE].push({opts:e,handler:r}),this[FE]++),!this[Zn]}[Ree](e){return e.on("drain",this[FU]).on("connect",this[See]).on("disconnect",this[xee]).on("connectionError",this[bee]),this[Ss].push(e),this[Zn]&&queueMicrotask(()=>{this[Zn]&&this[FU](e[dYe],[this,e])}),this}[Nee](e){e.close(()=>{let r=this[Ss].indexOf(e);r!==-1&&this[Ss].splice(r,1)}),this[Zn]=this[Ss].some(r=>!r[Zn]&&r.closed!==!0&&r.destroyed!==!0)}};Tee.exports={PoolBase:qU,kClients:Ss,kNeedDrain:Zn,kAddClient:Ree,kRemoveClient:Nee,kGetDispatcher:UU}});var SA=w((N4t,Qee)=>{"use strict";var{PoolBase:hYe,kClients:n0,kNeedDrain:gYe,kAddClient:yYe,kGetDispatcher:EYe}=GU(),CYe=wA(),{InvalidArgumentError:$U}=it(),Pee=ze(),{kUrl:vee,kInterceptors:IYe}=qt(),wYe=EE(),HU=Symbol("options"),zU=Symbol("connections"),_ee=Symbol("factory");function SYe(t,e){return new CYe(t,e)}i(SYe,"defaultFactory");var VU=class extends hYe{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=SYe,connect:s,connectTimeout:o,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:p,...f}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new $U("invalid connections");if(typeof n!="function")throw new $U("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new $U("connect must be a function or an object");typeof s!="function"&&(s=wYe({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(f),this[IYe]=f.interceptors?.Pool&&Array.isArray(f.interceptors.Pool)?f.interceptors.Pool:[],this[zU]=r||null,this[vee]=Pee.parseOrigin(e),this[HU]={...Pee.deepClone(f),connect:s,allowH2:p},this[HU].interceptors=f.interceptors?{...f.interceptors}:void 0,this[_ee]=n,this.on("connectionError",(m,A,h)=>{for(let E of A){let y=this[n0].indexOf(E);y!==-1&&this[n0].splice(y,1)}})}[EYe](){for(let e of this[n0])if(!e[gYe])return e;if(!this[zU]||this[n0].length{"use strict";var{BalancedPoolMissingUpstreamError:xYe,InvalidArgumentError:bYe}=it(),{PoolBase:BYe,kClients:Dn,kNeedDrain:qE,kAddClient:RYe,kRemoveClient:NYe,kGetDispatcher:TYe}=GU(),PYe=SA(),{kUrl:WU,kInterceptors:vYe}=qt(),{parseOrigin:Dee}=ze(),kee=Symbol("factory"),s0=Symbol("options"),Lee=Symbol("kGreatestCommonDivisor"),Mp=Symbol("kCurrentWeight"),Fp=Symbol("kIndex"),Go=Symbol("kWeight"),o0=Symbol("kMaxWeightPerServer"),i0=Symbol("kErrorPenalty");function _Ye(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(_Ye,"getGreatestCommonDivisor");function QYe(t,e){return new PYe(t,e)}i(QYe,"defaultFactory");var YU=class extends BYe{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=QYe,...n}={}){if(super(),this[s0]=n,this[Fp]=-1,this[Mp]=0,this[o0]=this[s0].maxWeightPerServer||100,this[i0]=this[s0].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new bYe("factory must be a function.");this[vYe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[kee]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=Dee(e).origin;if(this[Dn].find(s=>s[WU].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[kee](r,Object.assign({},this[s0]));this[RYe](n),n.on("connect",()=>{n[Go]=Math.min(this[o0],n[Go]+this[i0])}),n.on("connectionError",()=>{n[Go]=Math.max(1,n[Go]-this[i0]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[Go]=Math.max(1,n[Go]-this[i0]),this._updateBalancedPoolStats())});for(let s of this[Dn])s[Go]=this[o0];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[WU].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[NYe](n),this}get upstreams(){return this[Dn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[WU].origin)}[TYe](){if(this[Dn].length===0)throw new xYe;if(!this[Dn].find(o=>!o[qE]&&o.closed!==!0&&o.destroyed!==!0)||this[Dn].map(o=>o[qE]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Dn].findIndex(o=>!o[qE]);for(;n++this[Dn][s][Go]&&!o[qE]&&(s=this[Fp]),this[Fp]===0&&(this[Mp]=this[Mp]-this[Lee],this[Mp]<=0&&(this[Mp]=this[o0])),o[Go]>=this[Mp]&&!o[qE])return o}return this[Mp]=this[Dn][s][Go],this[Fp]=s,this[Dn][s]}};Oee.exports=YU});var xA=w((_4t,zee)=>{"use strict";var{InvalidArgumentError:a0}=it(),{kClients:Qu,kRunning:Fee,kClose:DYe,kDestroy:kYe,kDispatch:LYe,kInterceptors:OYe}=qt(),MYe=iA(),FYe=SA(),UYe=wA(),qYe=ze(),GYe=e0(),Uee=Symbol("onConnect"),qee=Symbol("onDisconnect"),Gee=Symbol("onConnectionError"),$Ye=Symbol("maxRedirections"),$ee=Symbol("onDrain"),Hee=Symbol("factory"),JU=Symbol("options");function HYe(t,e){return e&&e.connections===1?new UYe(t,e):new FYe(t,e)}i(HYe,"defaultFactory");var jU=class extends MYe{static{i(this,"Agent")}constructor({factory:e=HYe,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new a0("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new a0("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new a0("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[OYe]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[GYe({maxRedirections:r})],this[JU]={...qYe.deepClone(o),connect:n,tls:s},this[JU].interceptors=o.interceptors?{...o.interceptors}:void 0,this[$Ye]=r,this[Hee]=e,this[Qu]=new Map,this[$ee]=(a,c)=>{this.emit("drain",a,[this,...c])},this[Uee]=(a,c)=>{this.emit("connect",a,[this,...c])},this[qee]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[Gee]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[Fee](){let e=0;for(let r of this[Qu].values())e+=r[Fee];return e}[LYe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new a0("opts.origin must be a non-empty string or URL.");let s=this[Qu].get(n);return s||(s=this[Hee](e.origin,this[JU]).on("drain",this[$ee]).on("connect",this[Uee]).on("disconnect",this[qee]).on("connectionError",this[Gee]),this[Qu].set(n,s)),s.dispatch(e,r)}async[DYe](){let e=[];for(let r of this[Qu].values())e.push(r.close());this[Qu].clear(),await Promise.all(e)}async[kYe](e){let r=[];for(let n of this[Qu].values())r.push(n.destroy(e));this[Qu].clear(),await Promise.all(r)}};zee.exports=jU});var t1=w((D4t,rte)=>{"use strict";var{kProxy:KU,kClose:Kee,kDestroy:Xee,kDispatch:Vee,kInterceptors:zYe}=qt(),{URL:Up}=require("node:url"),VYe=xA(),Zee=SA(),ete=iA(),{InvalidArgumentError:bA,RequestAbortedError:WYe,SecureProxyConnectionError:YYe}=it(),Wee=EE(),tte=wA(),c0=Symbol("proxy agent"),l0=Symbol("proxy client"),Du=Symbol("proxy headers"),XU=Symbol("request tls settings"),Yee=Symbol("proxy tls settings"),Jee=Symbol("connect endpoint function"),jee=Symbol("tunnel proxy");function JYe(t){return t==="https:"?443:80}i(JYe,"defaultProtocolPort");function jYe(t,e){return new Zee(t,e)}i(jYe,"defaultFactory");var KYe=i(()=>{},"noop");function XYe(t,e){return e.connections===1?new tte(t,e):new Zee(t,e)}i(XYe,"defaultAgentFactory");var ZU=class extends ete{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new bA("Proxy URL is mandatory");this[Du]=r,s?this.#e=s(e,{connect:n}):this.#e=new tte(e,{connect:n})}[Vee](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new bA("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:s,path:o="/",headers:a={}}=e;if(e.path=s+o,!("host"in a)&&!("Host"in a)){let{host:c}=new Up(s);a.host=c}return e.headers={...this[Du],...a},this.#e[Vee](e,r)}async[Kee](){return this.#e.close()}async[Xee](e){return this.#e.destroy(e)}},e1=class extends ete{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Up)&&!e.uri)throw new bA("Proxy uri is mandatory");let{clientFactory:r=jYe}=e;if(typeof r!="function")throw new bA("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,s=this.#e(e),{href:o,origin:a,port:c,protocol:l,username:u,password:d,hostname:p}=s;if(this[KU]={uri:o,protocol:l},this[zYe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[XU]=e.requestTls,this[Yee]=e.proxyTls,this[Du]=e.headers||{},this[jee]=n,e.auth&&e.token)throw new bA("opts.auth cannot be used in combination with opts.token");e.auth?this[Du]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[Du]["proxy-authorization"]=e.token:u&&d&&(this[Du]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let f=Wee({...e.proxyTls});this[Jee]=Wee({...e.requestTls});let m=e.factory||XYe,A=i((h,E)=>{let{protocol:y}=new Up(h);return!this[jee]&&y==="http:"&&this[KU].protocol==="http:"?new ZU(this[KU].uri,{headers:this[Du],connect:f,factory:m}):m(h,E)},"factory");this[l0]=r(s,{connect:f}),this[c0]=new VYe({...e,factory:A,connect:i(async(h,E)=>{let y=h.host;h.port||(y+=`:${JYe(h.protocol)}`);try{let{socket:I,statusCode:x}=await this[l0].connect({origin:a,port:c,path:y,signal:h.signal,headers:{...this[Du],host:h.host},servername:this[Yee]?.servername||p});if(x!==200&&(I.on("error",KYe).destroy(),E(new WYe(`Proxy response (${x}) !== 200 when HTTP Tunneling`))),h.protocol!=="https:"){E(null,I);return}let b;this[XU]?b=this[XU].servername:b=h.servername,this[Jee]({...h,servername:b,httpSocket:I},E)}catch(I){I.code==="ERR_TLS_CERT_ALTNAME_INVALID"?E(new YYe(I)):E(I)}},"connect")})}dispatch(e,r){let n=ZYe(e.headers);if(e8e(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Up(e.origin);n.host=s}return this[c0].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Up(e):e instanceof Up?e:new Up(e.uri)}async[Kee](){await this[c0].close(),await this[l0].close()}async[Xee](){await this[c0].destroy(),await this[l0].destroy()}};function ZYe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new bA("Proxy-Authorization should be sent in ProxyAgent constructor")}i(e8e,"throwIfProxyAuthIsSent");rte.exports=e1});var cte=w((L4t,ate)=>{"use strict";var t8e=iA(),{kClose:r8e,kDestroy:n8e,kClosed:nte,kDestroyed:ste,kDispatch:s8e,kNoProxyAgent:GE,kHttpProxyAgent:ku,kHttpsProxyAgent:qp}=qt(),ote=t1(),o8e=xA(),i8e={"http:":80,"https:":443},ite=!1,r1=class extends t8e{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,ite||(ite=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:s,...o}=e;this[GE]=new o8e(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[ku]=new ote({...o,uri:a}):this[ku]=this[GE];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[qp]=new ote({...o,uri:c}):this[qp]=this[ku],this.#o()}[s8e](e,r){let n=new URL(e.origin);return this.#r(n).dispatch(e,r)}async[r8e](){await this[GE].close(),this[ku][nte]||await this[ku].close(),this[qp][nte]||await this[qp].close()}async[n8e](e){await this[GE].destroy(e),this[ku][ste]||await this[ku].destroy(e),this[qp][ste]||await this[qp].destroy(e)}#r(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||i8e[r]||0,this.#s(n,s)?r==="https:"?this[qp]:this[ku]:this[GE]}#s(e,r){if(this.#i&&this.#o(),this.#t.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n{"use strict";var $E=require("node:assert"),{kRetryHandlerDefaultRetry:lte}=qt(),{RequestRetryError:Gp}=it(),{isDisturbed:ute,parseHeaders:a8e,parseRangeHeader:dte,wrapRequestBody:c8e}=ze();function l8e(t){let e=Date.now();return new Date(t).getTime()-e}i(l8e,"calculateRetryAfterHeader");function pte(t,e,r,n){let s=t["content-length"];if(s==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let o=Number(s),a=e.end-e.start+1;return!Number.isFinite(o)||o!==a?new Gp("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(pte,"validatePartialResponseContentLength");var n1=class t{static{i(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...s}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:f,statusCodes:m}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...s,body:c8e(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[lte],retryAfter:f??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:m??[500,502,503,504,429],errorCodes:p??["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.headersSent=!1,this.handler.onConnect(A=>{this.aborted=!0,this.abort?this.abort(A):this.reason=A})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,$E(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?r:null}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[lte](e,{state:r,opts:n},s){let{statusCode:o,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:p,maxTimeout:f,timeoutFactor:m,statusCodes:A,errorCodes:h,methods:E}=u,{counter:y}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!h.includes(a)){s(e);return}if(Array.isArray(E)&&!E.includes(l)){s(e);return}if(o!=null&&Array.isArray(A)&&!A.includes(o)){s(e);return}if(y>d){s(e);return}let I=c?.["retry-after"];I&&(I=Number(I),I=Number.isNaN(I)?l8e(I):I*1e3);let x=I>0?Math.min(I,f):Math.min(p*m**(y-1),f);setTimeout(()=>s(null),x)}onHeaders(e,r,n,s){let o=a8e(r);if(this.retryCount+=1,e>=300)return!this.headersSent&&this.retryOpts.statusCodes.includes(e)===!1?(this.headersSent=!0,this.checkpointResponseEnd(o,n),this.handler.onHeaders(e,r,n,s)):(this.abort(new Gp("Request failed",e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new Gp("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=dte(o["content-range"]);if(!c)return this.abort(new Gp("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new Gp("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=pte(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;return this.start!==u||this.end!=null&&this.end!==p?(this.abort(new Gp("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=dte(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=pte(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;$E(u!=null&&Number.isFinite(u),"content-range mismatch"),$E(p!=null&&Number.isFinite(p),"invalid content-length"),this.start=u,this.end=p}if(this.end==null){let c=o["content-length"];this.end=c!=null?Number(c)-1:null}return $E(Number.isFinite(this.start)),$E(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.headersSent=!0,this.etag=o.etag!=null?o.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,s)}let a=new Gp("Request failed",e,{headers:o,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||ute(this.opts.body)||this.headersSent&&this.resume==null)return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},r.bind(this));function r(n){if(n!=null||this.aborted||ute(this.opts.body))return this.handler.onError(n);if(this.start!==0){let s={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(s["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...s}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(s){this.handler.onError(s)}}i(r,"onRetry")}};fte.exports=n1});var Ate=w((U4t,mte)=>{"use strict";var u8e=gE(),d8e=u0(),s1=class extends u8e{static{i(this,"RetryAgent")}#e=null;#t=null;constructor(e,r={}){super(r),this.#e=e,this.#t=r}dispatch(e,r){let n=new d8e({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};mte.exports=s1});var u1=w((G4t,xte)=>{"use strict";var Cte=require("node:assert"),{Readable:p8e}=require("node:stream"),{RequestAbortedError:Ite,NotSupportedError:f8e,InvalidArgumentError:m8e,AbortError:o1}=it(),wte=ze(),{ReadableStreamFrom:A8e}=ze(),ro=Symbol("kConsume"),HE=Symbol("kReading"),Lu=Symbol("kBody"),hte=Symbol("kAbort"),Ste=Symbol("kContentType"),gte=Symbol("kContentLength"),h8e=i(()=>{},"noop"),i1=class extends p8e{static{i(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:s,highWaterMark:o=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:o}),this._readableState.dataEmitted=!1,this[hte]=r,this[ro]=null,this[Lu]=null,this[Ste]=n,this[gte]=s,this[HE]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new Ite),e&&this[hte](),super.destroy(e)}_destroy(e,r){this[HE]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[HE]=!0),super.on(e,...r)}addListener(e,...r){return this.on(e,...r)}off(e,...r){let n=super.off(e,...r);return(e==="data"||e==="readable")&&(this[HE]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[ro]&&e!==null?(c1(this[ro],e),this[HE]?super.push(e):!0):super.push(e)}async text(){return zE(this,"text")}async json(){return zE(this,"json")}async blob(){return zE(this,"blob")}async bytes(){return zE(this,"bytes")}async arrayBuffer(){return zE(this,"arrayBuffer")}async formData(){throw new f8e}get bodyUsed(){return wte.isDisturbed(this)}get body(){return this[Lu]||(this[Lu]=A8e(this),this[ro]&&(this[Lu].getReader(),Cte(this[Lu].locked))),this[Lu]}async dump(e){let r=Number.isFinite(e?.limit)?e.limit:131072,n=e?.signal;if(n!=null&&(typeof n!="object"||!("aborted"in n)))throw new m8e("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[gte]>r&&this.destroy(new o1);let a=i(()=>{this.destroy(n.reason??new o1)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new o1):s(null)}).on("error",h8e).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function g8e(t){return t[Lu]&&t[Lu].locked===!0||t[ro]}i(g8e,"isLocked");function y8e(t){return wte.isDisturbed(t)||g8e(t)}i(y8e,"isUnusable");async function zE(t,e){return Cte(!t[ro]),new Promise((r,n)=>{if(y8e(t)){let s=t._readableState;s.destroyed&&s.closeEmitted===!1?t.on("error",o=>{n(o)}).on("close",()=>{n(new TypeError("unusable"))}):n(s.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[ro]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){l1(this[ro],s)}).on("close",function(){this[ro].body!==null&&l1(this[ro],new Ite)}),E8e(t[ro])})})}i(zE,"consume");function E8e(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let s=r;s2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}i(a1,"chunksDecode");function yte(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let s=0;s{var C8e=require("node:assert"),{ResponseStatusCodeError:bte}=it(),{chunksDecode:Bte}=u1(),I8e=128*1024;async function w8e({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){C8e(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>I8e){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new bte(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{Rte(r)?d=JSON.parse(Bte(a,c)):Nte(r)&&(d=Bte(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new bte(l,n,o,d)))}i(w8e,"getResolveErrorBodyCallback");var Rte=i(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),Nte=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Tte.exports={getResolveErrorBodyCallback:w8e,isContentTypeApplicationJson:Rte,isContentTypeText:Nte}});var _te=w((V4t,p1)=>{"use strict";var S8e=require("node:assert"),{Readable:x8e}=u1(),{InvalidArgumentError:BA,RequestAbortedError:Pte}=it(),no=ze(),{getResolveErrorBodyCallback:b8e}=d1(),{AsyncResource:B8e}=require("node:async_hooks"),d0=class extends B8e{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new BA("invalid opts");let{signal:n,method:s,opaque:o,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new BA("invalid callback");if(d&&(typeof d!="number"||d<0))throw new BA("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new BA("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new BA("invalid method");if(c&&typeof c!="function")throw new BA("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw no.isStream(a)&&no.destroy(a.on("error",no.nop),p),p}this.method=s,this.responseHeaders=l||null,this.opaque=o||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,no.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new Pte:this.removeAbortListener=no.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new Pte,this.res?no.destroy(this.res.on("error",no.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&(this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}))}onConnect(e,r){if(this.reason){e(this.reason);return}S8e(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{callback:o,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,p=u==="raw"?no.parseRawHeaders(r):no.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let f=u==="raw"?no.parseHeaders(r):p,m=f["content-type"],A=f["content-length"],h=new x8e({resume:n,abort:c,contentType:m,contentLength:this.method!=="HEAD"&&A?Number(A):null,highWaterMark:d});this.removeAbortListener&&h.on("close",this.removeAbortListener),this.callback=null,this.res=h,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(b8e,null,{callback:o,body:h,contentType:m,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:h,context:l}))}onData(e){return this.res.push(e)}onComplete(e){no.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:s,opaque:o}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:o})})),r&&(this.res=null,queueMicrotask(()=>{no.destroy(r,e)})),s&&(this.body=null,no.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function vte(t,e){if(e===void 0)return new Promise((r,n)=>{vte.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new d0(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(vte,"request");p1.exports=vte;p1.exports.RequestHandler=d0});var VE=w((Y4t,kte)=>{var{addAbortListener:R8e}=ze(),{RequestAbortedError:N8e}=it(),RA=Symbol("kListener"),Ma=Symbol("kSignal");function Qte(t){t.abort?t.abort(t[Ma]?.reason):t.reason=t[Ma]?.reason??new N8e,Dte(t)}i(Qte,"abort");function T8e(t,e){if(t.reason=null,t[Ma]=null,t[RA]=null,!!e){if(e.aborted){Qte(t);return}t[Ma]=e,t[RA]=()=>{Qte(t)},R8e(t[Ma],t[RA])}}i(T8e,"addSignal");function Dte(t){t[Ma]&&("removeEventListener"in t[Ma]?t[Ma].removeEventListener("abort",t[RA]):t[Ma].removeListener("abort",t[RA]),t[Ma]=null,t[RA]=null)}i(Dte,"removeSignal");kte.exports={addSignal:T8e,removeSignal:Dte}});var Fte=w((j4t,Mte)=>{"use strict";var P8e=require("node:assert"),{finished:v8e,PassThrough:_8e}=require("node:stream"),{InvalidArgumentError:NA,InvalidReturnValueError:Q8e}=it(),Fi=ze(),{getResolveErrorBodyCallback:D8e}=d1(),{AsyncResource:k8e}=require("node:async_hooks"),{addSignal:L8e,removeSignal:Lte}=VE(),f1=class extends k8e{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new NA("invalid opts");let{signal:s,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new NA("invalid callback");if(typeof r!="function")throw new NA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new NA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new NA("invalid method");if(l&&typeof l!="function")throw new NA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw Fi.isStream(c)&&Fi.destroy(c.on("error",Fi.nop),p),p}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,Fi.isStream(c)&&c.on("error",p=>{this.onError(p)}),L8e(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}P8e(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{factory:o,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?Fi.parseRawHeaders(r):Fi.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let p;if(this.throwOnError&&e>=400){let A=(u==="raw"?Fi.parseHeaders(r):d)["content-type"];p=new _8e,this.callback=null,this.runInAsyncScope(D8e,null,{callback:l,body:p,contentType:A,statusCode:e,statusMessage:s,headers:d})}else{if(o===null)return;if(p=this.runInAsyncScope(o,null,{statusCode:e,headers:d,opaque:a,context:c}),!p||typeof p.write!="function"||typeof p.end!="function"||typeof p.on!="function")throw new Q8e("expected Writable");v8e(p,{readable:!1},m=>{let{callback:A,res:h,opaque:E,trailers:y,abort:I}=this;this.res=null,(m||!h.readable)&&Fi.destroy(h,m),this.callback=null,this.runInAsyncScope(A,null,m||null,{opaque:E,trailers:y}),m&&I()})}return p.on("drain",n),this.res=p,(p.writableNeedDrain!==void 0?p.writableNeedDrain:p._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;Lte(this),r&&(this.trailers=Fi.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Lte(this),this.factory=null,r?(this.res=null,Fi.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,Fi.destroy(o,e))}};function Ote(t,e,r){if(r===void 0)return new Promise((n,s)=>{Ote.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new f1(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Ote,"stream");Mte.exports=Ote});var $te=w((X4t,Gte)=>{"use strict";var{Readable:qte,Duplex:O8e,PassThrough:M8e}=require("node:stream"),{InvalidArgumentError:WE,InvalidReturnValueError:F8e,RequestAbortedError:m1}=it(),$o=ze(),{AsyncResource:U8e}=require("node:async_hooks"),{addSignal:q8e,removeSignal:G8e}=VE(),Ute=require("node:assert"),TA=Symbol("resume"),A1=class extends qte{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[TA]=null}_read(){let{[TA]:e}=this;e&&(this[TA]=null,e())}_destroy(e,r){this._read(),r(e)}},h1=class extends qte{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[TA]=e}_read(){this[TA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new m1),r(e)}},g1=class extends U8e{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new WE("invalid opts");if(typeof r!="function")throw new WE("invalid handler");let{signal:n,method:s,opaque:o,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new WE("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new WE("invalid method");if(a&&typeof a!="function")throw new WE("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new A1().on("error",$o.nop),this.ret=new O8e({readableObjectMode:e.objectMode,autoDestroy:!0,read:i(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:i((l,u,d)=>{let{req:p}=this;p.push(l,u)||p._readableState.destroyed?d():p[TA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:f,ret:m,abort:A}=this;!l&&!m._readableState.endEmitted&&(l=new m1),A&&l&&A(),$o.destroy(d,l),$o.destroy(p,l),$o.destroy(f,l),G8e(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,q8e(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}Ute(!s,"pipeline cannot be retried"),Ute(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:s,handler:o,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?$o.parseRawHeaders(r):$o.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new h1(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?$o.parseRawHeaders(r):$o.parseHeaders(r);c=this.runInAsyncScope(o,null,{statusCode:e,headers:l,opaque:s,body:this.res,context:a})}catch(l){throw this.res.on("error",$o.nop),l}if(!c||typeof c.on!="function")throw new F8e("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;$o.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||$o.destroy(l,new m1)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,$o.destroy(r,e)}};function $8e(t,e){try{let r=new g1(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new M8e().destroy(r)}}i($8e,"pipeline");Gte.exports=$8e});var Jte=w((eWt,Yte)=>{"use strict";var{InvalidArgumentError:y1,SocketError:H8e}=it(),{AsyncResource:z8e}=require("node:async_hooks"),Hte=ze(),{addSignal:V8e,removeSignal:zte}=VE(),Vte=require("node:assert"),E1=class extends z8e{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new y1("invalid opts");if(typeof r!="function")throw new y1("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new y1("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=s||null,this.callback=r,this.abort=null,this.context=null,V8e(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Vte(this.callback),this.abort=e,this.context=null}onHeaders(){throw new H8e("bad upgrade",null)}onUpgrade(e,r,n){Vte(e===101);let{callback:s,opaque:o,context:a}=this;zte(this),this.callback=null;let c=this.responseHeaders==="raw"?Hte.parseRawHeaders(r):Hte.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;zte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Wte(t,e){if(e===void 0)return new Promise((r,n)=>{Wte.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new E1(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Wte,"upgrade");Yte.exports=Wte});var ere=w((rWt,Zte)=>{"use strict";var W8e=require("node:assert"),{AsyncResource:Y8e}=require("node:async_hooks"),{InvalidArgumentError:C1,SocketError:J8e}=it(),jte=ze(),{addSignal:j8e,removeSignal:Kte}=VE(),I1=class extends Y8e{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new C1("invalid opts");if(typeof r!="function")throw new C1("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new C1("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,j8e(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}W8e(this.callback),this.abort=e,this.context=r}onHeaders(){throw new J8e("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;Kte(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?jte.parseRawHeaders(r):jte.parseHeaders(r)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Kte(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Xte(t,e){if(e===void 0)return new Promise((r,n)=>{Xte.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new I1(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Xte,"connect");Zte.exports=Xte});var tre=w((sWt,PA)=>{"use strict";PA.exports.request=_te();PA.exports.stream=Fte();PA.exports.pipeline=$te();PA.exports.upgrade=Jte();PA.exports.connect=ere()});var S1=w((oWt,nre)=>{"use strict";var{UndiciError:K8e}=it(),rre=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),w1=class t extends K8e{static{i(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),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[rre]===!0}[rre]=!0};nre.exports={MockNotMatchedError:w1}});var vA=w((aWt,sre)=>{"use strict";sre.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")}});var YE=w((cWt,Are)=>{"use strict";var{MockNotMatchedError:$p}=S1(),{kDispatches:p0,kMockAgent:X8e,kOriginalDispatch:Z8e,kOrigin:eJe,kGetNetConnect:tJe}=vA(),{buildURL:rJe}=ze(),{STATUS_CODES:nJe}=require("node:http"),{types:{isPromise:sJe}}=require("node:util");function Pl(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(Pl,"matchValue");function ire(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(ire,"lowerCaseEntries");function are(t,e){if(Array.isArray(t)){for(let r=0;r"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let s=are(e,r);if(!Pl(n,s))return!1}return!0}i(cre,"matchHeaders");function ore(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}i(ore,"safeUrl");function oJe(t,{path:e,method:r,body:n,headers:s}){let o=Pl(t.path,e),a=Pl(t.method,r),c=typeof t.body<"u"?Pl(t.body,n):!0,l=cre(t,s);return o&&a&&c&&l}i(oJe,"matchKey");function lre(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(lre,"getResponseData");function ure(t,e){let r=e.query?rJe(e.path,e.query):e.path,n=typeof r=="string"?ore(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>Pl(ore(o),n));if(s.length===0)throw new $p(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>Pl(o,e.method)),s.length===0)throw new $p(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?Pl(o,e.body):!0),s.length===0)throw new $p(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>cre(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new $p(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(ure,"getMockDispatch");function iJe(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},s=typeof r=="function"?{callback:r}:{...r},o={...n,...e,pending:!0,data:{error:null,...s}};return t.push(o),o}i(iJe,"addMockDispatch");function x1(t,e){let r=t.findIndex(n=>n.consumed?oJe(n,e):!1);r!==-1&&t.splice(r,1)}i(x1,"deleteMockDispatch");function dre(t){let{path:e,method:r,body:n,headers:s,query:o}=t;return{path:e,method:r,body:n,headers:s,query:o}}i(dre,"buildKey");function b1(t){let e=Object.keys(t),r=[];for(let n=0;n=f,n.pending=p0?setTimeout(()=>{m(this[p0])},u):m(this[p0]);function m(h,E=o){let y=Array.isArray(t.headers)?B1(t.headers):t.headers,I=typeof E=="function"?E({...t,headers:y}):E;if(sJe(I)){I.then(v=>m(h,v));return}let x=lre(I),b=b1(a),N=b1(c);e.onConnect?.(v=>e.onError(v),null),e.onHeaders?.(s,b,A,pre(s)),e.onData?.(Buffer.from(x)),e.onComplete?.(N),x1(h,r)}i(m,"handleReply");function A(){}return i(A,"resume"),!0}i(fre,"mockDispatch");function cJe(){let t=this[X8e],e=this[eJe],r=this[Z8e];return i(function(s,o){if(t.isMockActive)try{fre.call(this,s,o)}catch(a){if(a instanceof $p){let c=t[tJe]();if(c===!1)throw new $p(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(mre(c,e))r.call(this,s,o);else throw new $p(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,s,o)},"dispatch")}i(cJe,"buildMockDispatch");function mre(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Pl(n,r.host)))}i(mre,"checkNetConnect");function lJe(t){if(t){let{agent:e,...r}=t;return r}}i(lJe,"buildMockOptions");Are.exports={getResponseData:lre,getMockDispatch:ure,addMockDispatch:iJe,deleteMockDispatch:x1,buildKey:dre,generateKeyValues:b1,matchValue:Pl,getResponse:aJe,getStatusText:pre,mockDispatch:fre,buildMockDispatch:cJe,checkNetConnect:mre,buildMockOptions:lJe,getHeaderByName:are,buildHeadersFromArray:B1}});var Q1=w((uWt,_1)=>{"use strict";var{getResponseData:uJe,buildKey:dJe,addMockDispatch:R1}=YE(),{kDispatches:f0,kDispatchKey:m0,kDefaultHeaders:N1,kDefaultTrailers:T1,kContentLength:P1,kMockDispatch:A0}=vA(),{InvalidArgumentError:Fa}=it(),{buildURL:pJe}=ze(),_A=class{static{i(this,"MockScope")}constructor(e){this[A0]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Fa("waitInMs must be a valid integer > 0");return this[A0].delay=e,this}persist(){return this[A0].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Fa("repeatTimes must be a valid integer > 0");return this[A0].times=e,this}},v1=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new Fa("opts must be an object");if(typeof e.path>"u")throw new Fa("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=pJe(e.path,e.query);else{let n=new URL(e.path,"data://");e.path=n.pathname+n.search}typeof e.method=="string"&&(e.method=e.method.toUpperCase()),this[m0]=dJe(e),this[f0]=r,this[N1]={},this[T1]={},this[P1]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=uJe(r),o=this[P1]?{"content-length":s.length}:{},a={...this[N1],...o,...n.headers},c={...this[T1],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new Fa("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new Fa("responseOptions must be an object")}reply(e){if(typeof e=="function"){let o=i(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new Fa("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=R1(this[f0],this[m0],o);return new _A(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),s=R1(this[f0],this[m0],n);return new _A(s)}replyWithError(e){if(typeof e>"u")throw new Fa("error must be defined");let r=R1(this[f0],this[m0],{error:e});return new _A(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new Fa("headers must be defined");return this[N1]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new Fa("trailers must be defined");return this[T1]=e,this}replyContentLength(){return this[P1]=!0,this}};_1.exports.MockInterceptor=v1;_1.exports.MockScope=_A});var L1=w((pWt,wre)=>{"use strict";var{promisify:fJe}=require("node:util"),mJe=wA(),{buildMockDispatch:AJe}=YE(),{kDispatches:hre,kMockAgent:gre,kClose:yre,kOriginalClose:Ere,kOrigin:Cre,kOriginalDispatch:hJe,kConnected:D1}=vA(),{MockInterceptor:gJe}=Q1(),Ire=qt(),{InvalidArgumentError:yJe}=it(),k1=class extends mJe{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new yJe("Argument opts.agent must implement Agent");this[gre]=r.agent,this[Cre]=e,this[hre]=[],this[D1]=1,this[hJe]=this.dispatch,this[Ere]=this.close.bind(this),this.dispatch=AJe.call(this),this.close=this[yre]}get[Ire.kConnected](){return this[D1]}intercept(e){return new gJe(e,this[hre])}async[yre](){await fJe(this[Ere])(),this[D1]=0,this[gre][Ire.kClients].delete(this[Cre])}};wre.exports=k1});var F1=w((mWt,Tre)=>{"use strict";var{promisify:EJe}=require("node:util"),CJe=SA(),{buildMockDispatch:IJe}=YE(),{kDispatches:Sre,kMockAgent:xre,kClose:bre,kOriginalClose:Bre,kOrigin:Rre,kOriginalDispatch:wJe,kConnected:O1}=vA(),{MockInterceptor:SJe}=Q1(),Nre=qt(),{InvalidArgumentError:xJe}=it(),M1=class extends CJe{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new xJe("Argument opts.agent must implement Agent");this[xre]=r.agent,this[Rre]=e,this[Sre]=[],this[O1]=1,this[wJe]=this.dispatch,this[Bre]=this.close.bind(this),this.dispatch=IJe.call(this),this.close=this[bre]}get[Nre.kConnected](){return this[O1]}intercept(e){return new SJe(e,this[Sre])}async[bre](){await EJe(this[Bre])(),this[O1]=0,this[xre][Nre.kClients].delete(this[Rre])}};Tre.exports=M1});var vre=w((gWt,Pre)=>{"use strict";var bJe={pronoun:"it",is:"is",was:"was",this:"this"},BJe={pronoun:"they",is:"are",was:"were",this:"these"};Pre.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?bJe:BJe,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var Qre=w((CWt,_re)=>{"use strict";var{Transform:RJe}=require("node:stream"),{Console:NJe}=require("node:console"),TJe=process.versions.icu?"\u2705":"Y ",PJe=process.versions.icu?"\u274C":"N ";_re.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new RJe({transform(r,n,s){s(null,r)}}),this.logger=new NJe({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:s,data:{statusCode:o},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:s,"Status code":o,Persistent:a?TJe:PJe,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Ore=w((wWt,Lre)=>{"use strict";var{kClients:Hp}=qt(),vJe=xA(),{kAgent:U1,kMockAgentSet:h0,kMockAgentGet:Dre,kDispatches:q1,kIsMockActive:g0,kNetConnect:zp,kGetNetConnect:_Je,kOptions:y0,kFactory:E0}=vA(),QJe=L1(),DJe=F1(),{matchValue:kJe,buildMockOptions:LJe}=YE(),{InvalidArgumentError:kre,UndiciError:OJe}=it(),MJe=gE(),FJe=vre(),UJe=Qre(),G1=class extends MJe{static{i(this,"MockAgent")}constructor(e){if(super(e),this[zp]=!0,this[g0]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new kre("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new vJe(e);this[U1]=r,this[Hp]=r[Hp],this[y0]=LJe(e)}get(e){let r=this[Dre](e);return r||(r=this[E0](e),this[h0](e,r)),r}dispatch(e,r){return this.get(e.origin),this[U1].dispatch(e,r)}async close(){await this[U1].close(),this[Hp].clear()}deactivate(){this[g0]=!1}activate(){this[g0]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[zp])?this[zp].push(e):this[zp]=[e];else if(typeof e>"u")this[zp]=!0;else throw new kre("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[zp]=!1}get isMockActive(){return this[g0]}[h0](e,r){this[Hp].set(e,r)}[E0](e){let r=Object.assign({agent:this},this[y0]);return this[y0]&&this[y0].connections===1?new QJe(e,r):new DJe(e,r)}[Dre](e){let r=this[Hp].get(e);if(r)return r;if(typeof e!="string"){let n=this[E0]("http://localhost:9999");return this[h0](e,n),n}for(let[n,s]of Array.from(this[Hp]))if(s&&typeof n!="string"&&kJe(n,e)){let o=this[E0](e);return this[h0](e,o),o[q1]=s[q1],o}}[_Je](){return this[zp]}pendingInterceptors(){let e=this[Hp];return Array.from(e.entries()).flatMap(([r,n])=>n[q1].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new UJe}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new FJe("interceptor","interceptors").pluralize(r.length);throw new OJe(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(r)} -`.trim())}};Nre.exports=k1});var $E=w((d4t,Qre)=>{"use strict";var vre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:IJe}=it(),wJe=EA();_re()===void 0&&Pre(new wJe);function Pre(t){if(!t||typeof t.dispatch!="function")throw new IJe("Argument agent must implement Agent");Object.defineProperty(globalThis,vre,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Pre,"setGlobalDispatcher");function _re(){return globalThis[vre]}i(_re,"getGlobalDispatcher");Qre.exports={setGlobalDispatcher:Pre,getGlobalDispatcher:_re}});var p0=w((f4t,Dre)=>{"use strict";Dre.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Lre=w((h4t,kre)=>{"use strict";var SJe=zb();kre.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new SJe(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Mre=w((y4t,Ore)=>{"use strict";var xJe=r0();Ore.exports=t=>e=>i(function(n,s){return e(n,new xJe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Ure=w((C4t,Fre)=>{"use strict";var bJe=Ve(),{InvalidArgumentError:BJe,RequestAbortedError:RJe}=it(),NJe=p0(),L1=class extends NJe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#s=!1;#o=0;#n=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new BJe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#s=!0,this.#n=e}onHeaders(e,r,n,s){let a=bJe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new RJe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#i.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#r=!0,this.#s?this.#i.onError(this.#n):this.#i.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#s){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function TJe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new L1({maxSize:o},s);return e(n,a)},"Intercept")}i(TJe,"createDumpInterceptor");Fre.exports=TJe});var Hre=w((w4t,Gre)=>{"use strict";var{isIP:vJe}=require("node:net"),{lookup:PJe}=require("node:dns"),_Je=p0(),{InvalidArgumentError:NA,InformationalError:QJe}=it(),qre=Math.pow(2,31)-1,O1=class{static{i(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#o}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new QJe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,o.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,o.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#s(e,r,n){PJe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===qre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===qre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new M1(this,e,r)}},M1=class extends _Je{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null;#s=null;#o=null;constructor(e,{origin:r,handler:n,dispatch:s},o){super(n),this.#o=r,this.#s=n,this.#t={...o},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#o,this.#t,(r,n)=>{if(r)return this.#s.onError(r);let s={...this.#t,origin:n};this.#r(s,this)});return}this.#s.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#o);default:this.#s.onError(e);break}}};Gre.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new NA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new NA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new NA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new NA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new NA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new NA("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},s=new O1(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return vJe(u.hostname)!==0?o(c,l):(s.runLookup(u,c,(d,p)=>{if(d)return l.onError(d);let m=null;m={...c,servername:u.hostname,origin:p,headers:{host:u.hostname,...c.headers}},o(m,s.getHandler({origin:u,dispatch:o,handler:l},c))}),!0)},"dnsInterceptor")}});var Hp=w((x4t,jre)=>{"use strict";var{kConstruct:DJe}=qt(),{kEnumerableProperty:TA}=Ve(),{iteratorMixin:kJe,isValidHeaderName:zE,isValidHeaderValue:zre}=Xs(),{webidl:rt}=yn(),F1=require("node:assert"),m0=require("node:util"),vr=Symbol("headers map"),ro=Symbol("headers map sorted");function $re(t){return t===10||t===13||t===9||t===32}i($re,"isHTTPWhiteSpaceCharCode");function Vre(t){let e=0,r=t.length;for(;r>e&&$re(t.charCodeAt(r-1));)--r;for(;r>e&&$re(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(Vre,"headerValueNormalize");function Wre(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i(Wre,"fill");function U1(t,e,r){if(r=Vre(r),zE(e)){if(!zre(r))throw rt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw rt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Jre(t)==="immutable")throw new TypeError("immutable");return q1(t).append(e,r,!1)}i(U1,"appendHeader");function Yre(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(o!==u){for(a=o;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:s,1:{value:o}}of this[vr])r[n++]=[s,o],F1(o!==null);return r.sort(Yre)}}},Mi=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){rt.util.markAsUncloneable(this),e!==DJe&&(this.#t=new f0,this.#e="none",e!==void 0&&(e=rt.converters.HeadersInit(e,"Headers contructor","init"),Wre(this,e)))}append(e,r){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=rt.converters.ByteString(e,n,"name"),r=rt.converters.ByteString(r,n,"value"),U1(this,e,r)}delete(e){if(rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.delete"),e=rt.converters.ByteString(e,"Headers.delete","name"),!zE(e))throw rt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.contains(e,!1)&&this.#t.delete(e,!1)}get(e){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=rt.converters.ByteString(e,r,"name"),!zE(e))throw rt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=rt.converters.ByteString(e,r,"name"),!zE(e))throw rt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=rt.converters.ByteString(e,n,"name"),r=rt.converters.ByteString(r,n,"value"),r=Vre(r),zE(e)){if(!zre(r))throw rt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw rt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){rt.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[ro](){if(this.#t[ro])return this.#t[ro];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[ro]=r;for(let s=0;s>"](t,e,r,n.bind(t)):rt.converters["record"](t,e,r)}throw rt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};jre.exports={fill:Wre,compareHeaderName:Yre,Headers:Mi,HeadersList:f0,getHeadersGuard:Jre,setHeadersGuard:LJe,setHeadersList:OJe,getHeadersList:q1}});var WE=w((B4t,cne)=>{"use strict";var{Headers:rne,HeadersList:Kre,fill:MJe,getHeadersGuard:FJe,setHeadersGuard:nne,setHeadersList:sne}=Hp(),{extractBody:Xre,cloneBody:UJe,mixinBody:qJe,hasFinalizationRegistry:one,streamRegistry:ine,bodyUnusable:GJe}=uA(),G1=Ve(),Zre=require("node:util"),{kEnumerableProperty:no}=G1,{isValidReasonPhrase:HJe,isCancelled:$Je,isAborted:zJe,isBlobLike:VJe,serializeJavascriptValueToJSONString:WJe,isErrorLike:YJe,isomorphicEncode:JJe,environmentSettingsObject:jJe}=Xs(),{redirectStatusSet:KJe,nullBodyStatus:XJe}=AE(),{kState:Ht,kHeaders:Tl}=bu(),{webidl:Ge}=yn(),{FormData:ZJe}=IE(),{URLSerializer:ene}=Cs(),{kConstruct:h0}=qt(),H1=require("node:assert"),{types:eje}=require("node:util"),tje=new TextEncoder("utf-8"),$p=class t{static{i(this,"Response")}static error(){return VE(g0(),"immutable")}static json(e,r={}){Ge.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=Ge.converters.ResponseInit(r));let n=tje.encode(WJe(e)),s=Xre(n),o=VE(vA({}),"response");return tne(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){Ge.argumentLengthCheck(arguments,1,"Response.redirect"),e=Ge.converters.USVString(e),r=Ge.converters["unsigned short"](r);let n;try{n=new URL(e,jJe.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!KJe.has(r))throw new RangeError(`Invalid status code ${r}`);let s=VE(vA({}),"immutable");s[Ht].status=r;let o=JJe(ene(n));return s[Ht].headersList.append("location",o,!0),s}constructor(e=null,r={}){if(Ge.util.markAsUncloneable(this),e===h0)return;e!==null&&(e=Ge.converters.BodyInit(e)),r=Ge.converters.ResponseInit(r),this[Ht]=vA({}),this[Tl]=new rne(h0),nne(this[Tl],"response"),sne(this[Tl],this[Ht].headersList);let n=null;if(e!=null){let[s,o]=Xre(e);n={body:s,type:o}}tne(this,r,n)}get type(){return Ge.brandCheck(this,t),this[Ht].type}get url(){Ge.brandCheck(this,t);let e=this[Ht].urlList,r=e[e.length-1]??null;return r===null?"":ene(r,!0)}get redirected(){return Ge.brandCheck(this,t),this[Ht].urlList.length>1}get status(){return Ge.brandCheck(this,t),this[Ht].status}get ok(){return Ge.brandCheck(this,t),this[Ht].status>=200&&this[Ht].status<=299}get statusText(){return Ge.brandCheck(this,t),this[Ht].statusText}get headers(){return Ge.brandCheck(this,t),this[Tl]}get body(){return Ge.brandCheck(this,t),this[Ht].body?this[Ht].body.stream:null}get bodyUsed(){return Ge.brandCheck(this,t),!!this[Ht].body&&G1.isDisturbed(this[Ht].body.stream)}clone(){if(Ge.brandCheck(this,t),GJe(this))throw Ge.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=$1(this[Ht]);return one&&this[Ht].body?.stream&&ine.register(this,new WeakRef(this[Ht].body.stream)),VE(e,FJe(this[Tl]))}[Zre.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let 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 ${Zre.formatWithOptions(r,n)}`}};qJe($p);Object.defineProperties($p.prototype,{type:no,url:no,status:no,ok:no,redirected:no,statusText:no,headers:no,clone:no,body:no,bodyUsed:no,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties($p,{json:no,redirect:no,error:no});function $1(t){if(t.internalResponse)return ane($1(t.internalResponse),t.type);let e=vA({...t,body:null});return t.body!=null&&(e.body=UJe(e,t.body)),e}i($1,"cloneResponse");function vA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Kre(t?.headersList):new Kre,urlList:t?.urlList?[...t.urlList]:[]}}i(vA,"makeResponse");function g0(t){let e=YJe(t);return vA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(g0,"makeNetworkError");function rje(t){return t.type==="error"&&t.status===0}i(rje,"isNetworkError");function A0(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,s){return H1(!(n in e)),r[n]=s,!0}})}i(A0,"makeFilteredResponse");function ane(t,e){if(e==="basic")return A0(t,{type:"basic",headersList:t.headersList});if(e==="cors")return A0(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return A0(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return A0(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});H1(!1)}i(ane,"filterResponse");function nje(t,e=null){return H1($Je(t)),zJe(t)?g0(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):g0(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(nje,"makeAppropriateNetworkError");function tne(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!HJe(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[Ht].status=e.status),"statusText"in e&&e.statusText!=null&&(t[Ht].statusText=e.statusText),"headers"in e&&e.headers!=null&&MJe(t[Tl],e.headers),r){if(XJe.includes(t.status))throw Ge.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[Ht].body=r.body,r.type!=null&&!t[Ht].headersList.contains("content-type",!0)&&t[Ht].headersList.append("content-type",r.type,!0)}}i(tne,"initializeResponse");function VE(t,e){let r=new $p(h0);return r[Ht]=t,r[Tl]=new rne(h0),sne(r[Tl],t.headersList),nne(r[Tl],e),one&&t.body?.stream&&ine.register(r,new WeakRef(t.body.stream)),r}i(VE,"fromInnerResponse");Ge.converters.ReadableStream=Ge.interfaceConverter(ReadableStream);Ge.converters.FormData=Ge.interfaceConverter(ZJe);Ge.converters.URLSearchParams=Ge.interfaceConverter(URLSearchParams);Ge.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?Ge.converters.USVString(t,e,r):VJe(t)?Ge.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||eje.isArrayBuffer(t)?Ge.converters.BufferSource(t,e,r):G1.isFormDataLike(t)?Ge.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?Ge.converters.URLSearchParams(t,e,r):Ge.converters.DOMString(t,e,r)};Ge.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?Ge.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:Ge.converters.XMLHttpRequestBodyInit(t,e,r)};Ge.converters.ResponseInit=Ge.dictionaryConverter([{key:"status",converter:Ge.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:Ge.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:Ge.converters.HeadersInit}]);cne.exports={isNetworkError:rje,makeNetworkError:g0,makeResponse:vA,makeAppropriateNetworkError:nje,filterResponse:ane,Response:$p,cloneResponse:$1,fromInnerResponse:VE}});var pne=w((N4t,dne)=>{"use strict";var{kConnected:lne,kSize:une}=qt(),z1=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[lne]===0&&this.value[une]===0?void 0:this.value}},V1=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[lne]===0&&e[une]===0&&this.finalizer(r)})}unregister(e){}};dne.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:z1,FinalizationRegistry:V1}):{WeakRef,FinalizationRegistry}}});var PA=w((v4t,Rne)=>{"use strict";var{extractBody:sje,mixinBody:oje,cloneBody:ije,bodyUnusable:mne}=uA(),{Headers:wne,fill:aje,HeadersList:I0,setHeadersGuard:Y1,getHeadersGuard:cje,setHeadersList:Sne,getHeadersList:fne}=Hp(),{FinalizationRegistry:lje}=pne()(),E0=Ve(),Ane=require("node:util"),{isValidHTTPToken:uje,sameOrigin:hne,environmentSettingsObject:y0}=Xs(),{forbiddenMethodsSet:dje,corsSafeListedMethodsSet:pje,referrerPolicy:mje,requestRedirect:fje,requestMode:Aje,requestCredentials:hje,requestCache:gje,requestDuplex:yje}=AE(),{kEnumerableProperty:Pr,normalizedMethodRecordsBase:Eje,normalizedMethodRecords:Cje}=E0,{kHeaders:so,kSignal:C0,kState:Qt,kDispatcher:W1}=bu(),{webidl:Ee}=yn(),{URLSerializer:Ije}=Cs(),{kConstruct:w0}=qt(),wje=require("node:assert"),{getMaxListeners:gne,setMaxListeners:yne,getEventListeners:Sje,defaultMaxListeners:Ene}=require("node:events"),xje=Symbol("abortController"),xne=new lje(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),S0=new WeakMap;function Cne(t){return e;function e(){let r=t.deref();if(r!==void 0){xne.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=S0.get(r.signal);if(n!==void 0){if(n.size!==0){for(let s of n){let o=s.deref();o!==void 0&&o.abort(this.reason)}n.clear()}S0.delete(r.signal)}}}}i(Cne,"buildAbort");var Ine=!1,Lu=class t{static{i(this,"Request")}constructor(e,r={}){if(Ee.util.markAsUncloneable(this),e===w0)return;let n="Request constructor";Ee.argumentLengthCheck(arguments,1,n),e=Ee.converters.RequestInfo(e,n,"input"),r=Ee.converters.RequestInit(r,n,"init");let s=null,o=null,a=y0.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[W1]=r.dispatcher;let y;try{y=new URL(e,a)}catch(I){throw new TypeError("Failed to parse URL from "+e,{cause:I})}if(y.username||y.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=x0({urlList:[y]}),o="cors"}else this[W1]=r.dispatcher||e[W1],wje(e instanceof t),s=e[Qt],c=e[C0];let l=y0.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&hne(s.window,l)&&(u=s.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),s=x0({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:y0.settingsObject,window:u,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let d=Object.keys(r).length!==0;if(d&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),r.referrer!==void 0){let y=r.referrer;if(y==="")s.referrer="no-referrer";else{let I;try{I=new URL(y,a)}catch(x){throw new TypeError(`Referrer "${y}" is not a valid URL.`,{cause:x})}I.protocol==="about:"&&I.hostname==="client"||l&&!hne(I,y0.settingsObject.baseUrl)?s.referrer="client":s.referrer=I}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw Ee.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(p!=null&&(s.mode=p),r.credentials!==void 0&&(s.credentials=r.credentials),r.cache!==void 0&&(s.cache=r.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(s.redirect=r.redirect),r.integrity!=null&&(s.integrity=String(r.integrity)),r.keepalive!==void 0&&(s.keepalive=!!r.keepalive),r.method!==void 0){let y=r.method,I=Cje[y];if(I!==void 0)s.method=I;else{if(!uje(y))throw new TypeError(`'${y}' is not a valid HTTP method.`);let x=y.toUpperCase();if(dje.has(x))throw new TypeError(`'${y}' HTTP method is unsupported.`);y=Eje[x]??y,s.method=y}!Ine&&s.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"}),Ine=!0)}r.signal!==void 0&&(c=r.signal),this[Qt]=s;let m=new AbortController;if(this[C0]=m.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)m.abort(c.reason);else{this[xje]=m;let y=new WeakRef(m),I=Cne(y);try{(typeof gne=="function"&&gne(c)===Ene||Sje(c,"abort").length>=Ene)&&yne(1500,c)}catch{}E0.addAbortListener(c,I),xne.register(m,{signal:c,abort:I},I)}}if(this[so]=new wne(w0),Sne(this[so],s.headersList),Y1(this[so],"request"),p==="no-cors"){if(!pje.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);Y1(this[so],"request-no-cors")}if(d){let y=fne(this[so]),I=r.headers!==void 0?r.headers:new I0(y);if(y.clear(),I instanceof I0){for(let{name:x,value:b}of I.rawValues())y.append(x,b,!1);y.cookies=I.cookies}else aje(this[so],I)}let f=e instanceof t?e[Qt].body:null;if((r.body!=null||f!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let A=null;if(r.body!=null){let[y,I]=sje(r.body,s.keepalive);A=y,I&&!fne(this[so]).contains("content-type",!0)&&this[so].append("content-type",I)}let h=A??f;if(h!=null&&h.source==null){if(A!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let E=h;if(A==null&&f!=null){if(mne(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let y=new TransformStream;f.stream.pipeThrough(y),E={source:f.source,length:f.length,stream:y.readable}}this[Qt].body=E}get method(){return Ee.brandCheck(this,t),this[Qt].method}get url(){return Ee.brandCheck(this,t),Ije(this[Qt].url)}get headers(){return Ee.brandCheck(this,t),this[so]}get destination(){return Ee.brandCheck(this,t),this[Qt].destination}get referrer(){return Ee.brandCheck(this,t),this[Qt].referrer==="no-referrer"?"":this[Qt].referrer==="client"?"about:client":this[Qt].referrer.toString()}get referrerPolicy(){return Ee.brandCheck(this,t),this[Qt].referrerPolicy}get mode(){return Ee.brandCheck(this,t),this[Qt].mode}get credentials(){return this[Qt].credentials}get cache(){return Ee.brandCheck(this,t),this[Qt].cache}get redirect(){return Ee.brandCheck(this,t),this[Qt].redirect}get integrity(){return Ee.brandCheck(this,t),this[Qt].integrity}get keepalive(){return Ee.brandCheck(this,t),this[Qt].keepalive}get isReloadNavigation(){return Ee.brandCheck(this,t),this[Qt].reloadNavigation}get isHistoryNavigation(){return Ee.brandCheck(this,t),this[Qt].historyNavigation}get signal(){return Ee.brandCheck(this,t),this[C0]}get body(){return Ee.brandCheck(this,t),this[Qt].body?this[Qt].body.stream:null}get bodyUsed(){return Ee.brandCheck(this,t),!!this[Qt].body&&E0.isDisturbed(this[Qt].body.stream)}get duplex(){return Ee.brandCheck(this,t),"half"}clone(){if(Ee.brandCheck(this,t),mne(this))throw new TypeError("unusable");let e=bne(this[Qt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=S0.get(this.signal);n===void 0&&(n=new Set,S0.set(this.signal,n));let s=new WeakRef(r);n.add(s),E0.addAbortListener(r.signal,Cne(s))}return Bne(e,r.signal,cje(this[so]))}[Ane.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let 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 ${Ane.formatWithOptions(r,n)}`}};oje(Lu);function x0(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??!1,unsafeRequest:t.unsafeRequest??!1,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??!1,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??!1,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??!1,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??!1,historyNavigation:t.historyNavigation??!1,userActivation:t.userActivation??!1,taintedOrigin:t.taintedOrigin??!1,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??!1,done:t.done??!1,timingAllowFailed:t.timingAllowFailed??!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new I0(t.headersList):new I0}}i(x0,"makeRequest");function bne(t){let e=x0({...t,body:null});return t.body!=null&&(e.body=ije(e,t.body)),e}i(bne,"cloneRequest");function Bne(t,e,r){let n=new Lu(w0);return n[Qt]=t,n[C0]=e,n[so]=new wne(w0),Sne(n[so],t.headersList),Y1(n[so],r),n}i(Bne,"fromInnerRequest");Object.defineProperties(Lu.prototype,{method:Pr,url:Pr,headers:Pr,redirect:Pr,clone:Pr,signal:Pr,duplex:Pr,destination:Pr,body:Pr,bodyUsed:Pr,isHistoryNavigation:Pr,isReloadNavigation:Pr,keepalive:Pr,integrity:Pr,cache:Pr,credentials:Pr,attribute:Pr,referrerPolicy:Pr,referrer:Pr,mode:Pr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Ee.converters.Request=Ee.interfaceConverter(Lu);Ee.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Ee.converters.USVString(t,e,r):t instanceof Lu?Ee.converters.Request(t,e,r):Ee.converters.USVString(t,e,r)};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:mje},{key:"mode",converter:Ee.converters.DOMString,allowedValues:Aje},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:hje},{key:"cache",converter:Ee.converters.DOMString,allowedValues:gje},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:fje},{key:"integrity",converter:Ee.converters.DOMString},{key:"keepalive",converter:Ee.converters.boolean},{key:"signal",converter:Ee.nullableConverter(t=>Ee.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Ee.converters.any},{key:"duplex",converter:Ee.converters.DOMString,allowedValues:yje},{key:"dispatcher",converter:Ee.converters.any}]);Rne.exports={Request:Lu,makeRequest:x0,fromInnerRequest:Bne,cloneRequest:bne}});var JE=w((_4t,Gne)=>{"use strict";var{makeNetworkError:ht,makeAppropriateNetworkError:b0,filterResponse:J1,makeResponse:B0,fromInnerResponse:bje}=WE(),{HeadersList:Nne}=Hp(),{Request:Bje,cloneRequest:Rje}=PA(),Ou=require("node:zlib"),{bytesMatch:Nje,makePolicyContainer:Tje,clonePolicyContainer:vje,requestBadPort:Pje,TAOCheck:_je,appendRequestOriginHeader:Qje,responseLocationURL:Dje,requestCurrentURL:Ua,setRequestReferrerPolicyOnRedirect:kje,tryUpgradeRequestToAPotentiallyTrustworthyURL:Lje,createOpaqueTimingInfo:e2,appendFetchMetadata:Oje,corsCheck:Mje,crossOriginResourcePolicyCheck:Fje,determineRequestsReferrer:Uje,coarsenedSharedCurrentTime:YE,createDeferredPromise:qje,isBlobLike:Gje,sameOrigin:Z1,isCancelled:zp,isAborted:Tne,isErrorLike:Hje,fullyReadBody:$je,readableStreamClose:zje,isomorphicEncode:R0,urlIsLocal:Vje,urlIsHttpHttpsScheme:t2,urlHasHttpsScheme:Wje,clampAndCoarsenConnectionTimingInfo:Yje,simpleRangeHeaderValue:Jje,buildContentRange:jje,createInflate:Kje,extractMimeType:Xje}=Xs(),{kState:Qne,kDispatcher:Zje}=bu(),Vp=require("node:assert"),{safelyExtractBody:r2,extractBody:vne}=uA(),{redirectStatusSet:Dne,nullBodyStatus:kne,safeMethodsSet:e5e,requestBodyHeader:t5e,subresourceSet:r5e}=AE(),n5e=require("node:events"),{Readable:s5e,pipeline:o5e,finished:i5e}=require("node:stream"),{addAbortListener:a5e,isErrored:c5e,isReadable:N0,bufferToLowerCasedHeaderName:Pne}=Ve(),{dataURLProcessor:l5e,serializeAMimeType:u5e,minimizeSupportedMimeType:d5e}=Cs(),{getGlobalDispatcher:p5e}=$E(),{webidl:m5e}=yn(),{STATUS_CODES:f5e}=require("node:http"),A5e=["GET","HEAD"],h5e=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",j1,T0=class extends n5e{static{i(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function g5e(t){Lne(t,"fetch")}i(g5e,"handleFetchDone");function y5e(t,e=void 0){m5e.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=qje(),n;try{n=new Bje(t,e)}catch(d){return r.reject(d),r.promise}let s=n[Qne];if(n.signal.aborted)return K1(r,s,null,n.signal.reason),r.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let a=null,c=!1,l=null;return a5e(n.signal,()=>{c=!0,Vp(l!=null),l.abort(n.signal.reason);let d=a?.deref();K1(r,s,d,n.signal.reason)}),l=Mne({request:s,processResponseEndOfBody:g5e,processResponse:i(d=>{if(!c){if(d.aborted){K1(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(bje(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[Zje]}),r.promise}i(y5e,"fetch");function Lne(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;t2(r)&&n!==null&&(t.timingAllowPassed||(n=e2({startTime:n.startTime}),s=""),n.endTime=YE(),t.timingInfo=n,One(n,r.href,e,globalThis,s))}i(Lne,"finalizeAndReportTiming");var One=performance.markResourceTiming;function K1(t,e,r,n){if(t&&t.reject(n),e.body!=null&&N0(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[Qne];s.body!=null&&N0(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(K1,"abortFetch");function Mne({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=p5e()}){Vp(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=YE(u),p=e2({startTime:d}),m={controller:new T0(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return Vp(!t.body||t.body.stream),t.window==="client"&&(t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=vje(t.client.policyContainer):t.policyContainer=Tje()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,r5e.has(t.destination),Fne(m).catch(f=>{m.controller.terminate(f)}),m.controller}i(Mne,"fetching");async function Fne(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!Vje(Ua(r))&&(n=ht("local URLs only")),Lje(r),Pje(r)==="blocked"&&(n=ht("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=Uje(r)),n===null&&(n=await(async()=>{let o=Ua(r);return Z1(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await _ne(t)):r.mode==="same-origin"?ht('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?ht('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await _ne(t)):t2(Ua(r))?(r.responseTainting="cors",await Une(t)):ht("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=J1(n,"basic"):r.responseTainting==="cors"?n=J1(n,"cors"):r.responseTainting==="opaque"?n=J1(n,"opaque"):Vp(!1));let s=n.status===0?n:n.internalResponse;if(s.urlList.length===0&&s.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&s.status===206&&s.rangeRequested&&!r.headers.contains("range",!0)&&(n=s=ht()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||kne.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>X1(t,ht(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!Nje(c,r.integrity)){o("integrity mismatch");return}n.body=r2(c)[0],X1(t,n)},"processBody");await $je(n.body,a,o)}else X1(t,n)}i(Fne,"mainFetch");function _ne(t){if(zp(t)&&t.request.redirectCount===0)return Promise.resolve(b0(t));let{request:e}=t,{protocol:r}=Ua(e);switch(r){case"about:":return Promise.resolve(ht("about scheme is not supported"));case"blob:":{j1||(j1=require("node:buffer").resolveObjectURL);let n=Ua(e);if(n.search.length!==0)return Promise.resolve(ht("NetworkError when attempting to fetch resource."));let s=j1(n.toString());if(e.method!=="GET"||!Gje(s))return Promise.resolve(ht("invalid method"));let o=B0(),a=s.size,c=R0(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=Jje(u,!0);if(d==="failure")return Promise.resolve(ht("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:m}=d;if(p===null)p=a-m,m=p+m-1;else{if(p>=a)return Promise.resolve(ht("Range start is greater than the blob's size."));(m===null||m>=a)&&(m=a-1)}let f=s.slice(p,m,l),A=vne(f);o.body=A[0];let h=R0(`${f.size}`),E=jje(p,m,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",h,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",E,!0)}else{let u=vne(s);o.statusText="OK",o.body=u[0],o.headersList.set("content-length",c,!0),o.headersList.set("content-type",l,!0)}return Promise.resolve(o)}case"data:":{let n=Ua(e),s=l5e(n);if(s==="failure")return Promise.resolve(ht("failed to fetch the data URL"));let o=u5e(s.mimeType);return Promise.resolve(B0({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:r2(s.body)[0]}))}case"file:":return Promise.resolve(ht("not implemented... yet..."));case"http:":case"https:":return Une(t).catch(n=>ht(n));default:return Promise.resolve(ht("unknown scheme"))}}i(_ne,"schemeFetch");function E5e(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(E5e,"finalizeResponse");function X1(t,e){let r=t.timingInfo,n=i(()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=e2(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=Xje(e.headersList);d!=="failure"&&(l.contentType=d5e(d))}t.request.initiatorType!=null&&One(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=i(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let s=e.type==="error"?e:e.internalResponse??e;s.body==null?n():i5e(s.body.stream,()=>{n()})}i(X1,"fetchFinale");async function Une(t){let e=t.request,r=null,n=null,s=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await qne(t),e.responseTainting==="cors"&&Mje(e,r)==="failure")return ht("cors failure");_je(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&Fje(e.origin,e.client,e.destination,n)==="blocked"?ht("blocked"):(Dne.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=ht("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await C5e(t,r):Vp(!1)),r.timingInfo=s,r)}i(Une,"httpFetch");function C5e(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=Dje(n,Ua(r).hash),s==null)return e}catch(a){return Promise.resolve(ht(a))}if(!t2(s))return Promise.resolve(ht("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(ht("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!Z1(r,s))return Promise.resolve(ht('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(ht('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(ht());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!A5e.includes(r.method)){r.method="GET",r.body=null;for(let a of t5e)r.headersList.delete(a)}Z1(Ua(r),s)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(Vp(r.body.source!=null),r.body=r2(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=YE(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),kje(r,n),Fne(t,!0)}i(C5e,"httpRedirectFetch");async function qne(t,e=!1,r=!1){let n=t.request,s=null,o=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(s=t,o=n):(o=Rje(n),s={...t},s.request=o);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=o.body?o.body.length:null,p=null;if(o.body==null&&["POST","PUT"].includes(o.method)&&(p="0"),d!=null&&(p=R0(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",R0(o.referrer.href),!0),Qje(o),Oje(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",h5e),o.cache==="default"&&(o.headersList.contains("if-modified-since",!0)||o.headersList.contains("if-none-match",!0)||o.headersList.contains("if-unmodified-since",!0)||o.headersList.contains("if-match",!0)||o.headersList.contains("if-range",!0))&&(o.cache="no-store"),o.cache==="no-cache"&&!o.preventNoCacheCacheControlHeaderModification&&!o.headersList.contains("cache-control",!0)&&o.headersList.append("cache-control","max-age=0",!0),(o.cache==="no-store"||o.cache==="reload")&&(o.headersList.contains("pragma",!0)||o.headersList.append("pragma","no-cache",!0),o.headersList.contains("cache-control",!0)||o.headersList.append("cache-control","no-cache",!0)),o.headersList.contains("range",!0)&&o.headersList.append("accept-encoding","identity",!0),o.headersList.contains("accept-encoding",!0)||(Wje(Ua(o))?o.headersList.append("accept-encoding","br, gzip, deflate",!0):o.headersList.append("accept-encoding","gzip, deflate",!0)),o.headersList.delete("host",!0),c==null&&(o.cache="no-store"),o.cache!=="no-store"&&o.cache,a==null){if(o.cache==="only-if-cached")return ht("only if cached");let m=await I5e(s,u,r);!e5e.has(o.method)&&m.status>=200&&m.status<=399,l&&m.status,a==null&&(a=m)}if(a.urlList=[...o.urlList],o.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?ht():zp(t)?b0(t):ht("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(zp(t))return b0(t);t.controller.connection.destroy(),a=await qne(t,e,!0)}return a}i(qne,"httpNetworkOrCacheFetch");async function I5e(t,e=!1,r=!1){Vp(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(A,h=!0){this.destroyed||(this.destroyed=!0,h&&this.abort?.(A??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,s=null,o=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let A=i(async function*(y){zp(t)||(yield y,t.processRequestBodyChunkLength?.(y.byteLength))},"processBodyChunk"),h=i(()=>{zp(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),E=i(y=>{zp(t)||(y.name==="AbortError"?t.controller.abort():t.controller.terminate(y))},"processBodyError");l=(async function*(){try{for await(let y of n.body.stream)yield*A(y);h()}catch(y){E(y)}})()}try{let{body:A,status:h,statusText:E,headersList:y,socket:I}=await f({body:l});if(I)s=B0({status:h,statusText:E,headersList:y,socket:I});else{let x=A[Symbol.asyncIterator]();t.controller.next=()=>x.next(),s=B0({status:h,statusText:E,headersList:y})}}catch(A){return A.name==="AbortError"?(t.controller.connection.destroy(),b0(t,A)):ht(A)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(A=>{zp(t)||t.controller.abort(A)},"cancelAlgorithm"),p=new ReadableStream({async start(A){t.controller.controller=A},async pull(A){await u(A)},async cancel(A){await d(A)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.resume||t.controller.on("terminated",m),t.controller.resume=async()=>{for(;;){let A,h;try{let{done:y,value:I}=await t.controller.next();if(Tne(t))break;A=y?void 0:I}catch(y){t.controller.ended&&!o.encodedBodySize?A=void 0:(A=y,h=!0)}if(A===void 0){zje(t.controller.controller),E5e(t,s);return}if(o.decodedBodySize+=A?.byteLength??0,h){t.controller.terminate(A);return}let E=new Uint8Array(A);if(E.byteLength&&t.controller.controller.enqueue(E),c5e(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function m(A){Tne(t)?(s.aborted=!0,N0(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):N0(p)&&t.controller.controller.error(new TypeError("terminated",{cause:Hje(A)?A:void 0})),t.controller.connection.destroy()}return i(m,"onAborted"),s;function f({body:A}){let h=Ua(n),E=t.controller.dispatcher;return new Promise((y,I)=>E.dispatch({path:h.pathname+h.search,origin:h.origin,method:n.method,body:E.isMockActive?n.body&&(n.body.source||n.body.stream):A,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(x){let{connection:b}=t.controller;o.finalConnectionTimingInfo=Yje(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),b.destroyed?x(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",x),this.abort=b.abort=x),o.finalNetworkRequestStartTime=YE(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=YE(t.crossOriginIsolatedCapability)},onHeaders(x,b,N,P){if(x<200)return;let _="",G=new Nne;for(let ie=0;ieD)return this.abort(new Error(`too many content-encodings in response: ${De.length}, maximum allowed is ${D}`)),!0;for(let ze=De.length-1;ze>=0;--ze){let Z=De[ze].trim();if(Z==="x-gzip"||Z==="gzip")ae.push(Ou.createGunzip({flush:Ou.constants.Z_SYNC_FLUSH,finishFlush:Ou.constants.Z_SYNC_FLUSH}));else if(Z==="deflate")ae.push(Kje({flush:Ou.constants.Z_SYNC_FLUSH,finishFlush:Ou.constants.Z_SYNC_FLUSH}));else if(Z==="br")ae.push(Ou.createBrotliDecompress({flush:Ou.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ou.constants.BROTLI_OPERATION_FLUSH}));else{ae.length=0;break}}}this.body=new s5e({read:N});let _e=this.onError.bind(this);return y({status:x,statusText:P,headersList:G,body:ae.length?o5e(this.body,...ae,ie=>{ie&&this.onError(ie)}).on("error",_e):this.body.on("error",_e)}),!0},onData(x){if(t.controller.dump)return;let b=x;return o.encodedBodySize+=b.byteLength,this.body.push(b)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.ended=!0,this.body.push(null)},onError(x){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(x),t.controller.terminate(x),I(x)},onUpgrade(x,b,N){if(x!==101)return;let P=new Nne;for(let _=0;_{"use strict";Hne.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")}});var zne=w((k4t,$ne)=>{"use strict";var{webidl:oo}=yn(),v0=Symbol("ProgressEvent state"),s2=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=oo.converters.DOMString(e,"ProgressEvent constructor","type"),r=oo.converters.ProgressEventInit(r??{}),super(e,r),this[v0]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return oo.brandCheck(this,t),this[v0].lengthComputable}get loaded(){return oo.brandCheck(this,t),this[v0].loaded}get total(){return oo.brandCheck(this,t),this[v0].total}};oo.converters.ProgressEventInit=oo.dictionaryConverter([{key:"lengthComputable",converter:oo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:oo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:oo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:oo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:oo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:oo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);$ne.exports={ProgressEvent:s2}});var Wne=w((O4t,Vne)=>{"use strict";function w5e(t){if(!t)return"failure";switch(t.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"}}i(w5e,"getEncoding");Vne.exports={getEncoding:w5e}});var tse=w((F4t,ese)=>{"use strict";var{kState:_A,kError:o2,kResult:Yne,kAborted:jE,kLastProgressEventFired:i2}=n2(),{ProgressEvent:S5e}=zne(),{getEncoding:Jne}=Wne(),{serializeAMimeType:x5e,parseMIMEType:jne}=Cs(),{types:b5e}=require("node:util"),{StringDecoder:Kne}=require("string_decoder"),{btoa:Xne}=require("node:buffer"),B5e={enumerable:!0,writable:!1,configurable:!1};function R5e(t,e,r,n){if(t[_A]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[_A]="loading",t[Yne]=null,t[o2]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[jE];)try{let{done:u,value:d}=await c;if(l&&!t[jE]&&queueMicrotask(()=>{Mu("loadstart",t)}),l=!1,!u&&b5e.isUint8Array(d))a.push(d),(t[i2]===void 0||Date.now()-t[i2]>=50)&&!t[jE]&&(t[i2]=Date.now(),queueMicrotask(()=>{Mu("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[_A]="done";try{let p=N5e(a,r,e.type,n);if(t[jE])return;t[Yne]=p,Mu("load",t)}catch(p){t[o2]=p,Mu("error",t)}t[_A]!=="loading"&&Mu("loadend",t)});break}}catch(u){if(t[jE])return;queueMicrotask(()=>{t[_A]="done",t[o2]=u,Mu("error",t),t[_A]!=="loading"&&Mu("loadend",t)});break}})()}i(R5e,"readOperation");function Mu(t,e){let r=new S5e(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(Mu,"fireAProgressEvent");function N5e(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=jne(r||"application/octet-stream");o!=="failure"&&(s+=x5e(o)),s+=";base64,";let a=new Kne("latin1");for(let c of t)s+=Xne(a.write(c));return s+=Xne(a.end()),s}case"Text":{let s="failure";if(n&&(s=Jne(n)),s==="failure"&&r){let o=jne(r);o!=="failure"&&(s=Jne(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),T5e(t,s)}case"ArrayBuffer":return Zne(t).buffer;case"BinaryString":{let s="",o=new Kne("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(N5e,"packageData");function T5e(t,e){let r=Zne(t),n=v5e(r),s=0;n!==null&&(e=n,s=n==="UTF-8"?3:2);let o=r.slice(s);return new TextDecoder(e).decode(o)}i(T5e,"decode");function v5e(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}i(v5e,"BOMSniffing");function Zne(t){let e=t.reduce((n,s)=>n+s.byteLength,0),r=0;return t.reduce((n,s)=>(n.set(s,r),r+=s.byteLength,n),new Uint8Array(e))}i(Zne,"combineByteSequences");ese.exports={staticPropertyDescriptors:B5e,readOperation:R5e,fireAProgressEvent:Mu}});var ose=w((q4t,sse)=>{"use strict";var{staticPropertyDescriptors:QA,readOperation:P0,fireAProgressEvent:rse}=tse(),{kState:Wp,kError:nse,kResult:_0,kEvents:lt,kAborted:P5e}=n2(),{webidl:wt}=yn(),{kEnumerableProperty:Ss}=Ve(),Fi=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[Wp]="empty",this[_0]=null,this[nse]=null,this[lt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=wt.converters.Blob(e,{strict:!1}),P0(this,e,"ArrayBuffer")}readAsBinaryString(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=wt.converters.Blob(e,{strict:!1}),P0(this,e,"BinaryString")}readAsText(e,r=void 0){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=wt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=wt.converters.DOMString(r,"FileReader.readAsText","encoding")),P0(this,e,"Text",r)}readAsDataURL(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=wt.converters.Blob(e,{strict:!1}),P0(this,e,"DataURL")}abort(){if(this[Wp]==="empty"||this[Wp]==="done"){this[_0]=null;return}this[Wp]==="loading"&&(this[Wp]="done",this[_0]=null),this[P5e]=!0,rse("abort",this),this[Wp]!=="loading"&&rse("loadend",this)}get readyState(){switch(wt.brandCheck(this,t),this[Wp]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return wt.brandCheck(this,t),this[_0]}get error(){return wt.brandCheck(this,t),this[nse]}get onloadend(){return wt.brandCheck(this,t),this[lt].loadend}set onloadend(e){wt.brandCheck(this,t),this[lt].loadend&&this.removeEventListener("loadend",this[lt].loadend),typeof e=="function"?(this[lt].loadend=e,this.addEventListener("loadend",e)):this[lt].loadend=null}get onerror(){return wt.brandCheck(this,t),this[lt].error}set onerror(e){wt.brandCheck(this,t),this[lt].error&&this.removeEventListener("error",this[lt].error),typeof e=="function"?(this[lt].error=e,this.addEventListener("error",e)):this[lt].error=null}get onloadstart(){return wt.brandCheck(this,t),this[lt].loadstart}set onloadstart(e){wt.brandCheck(this,t),this[lt].loadstart&&this.removeEventListener("loadstart",this[lt].loadstart),typeof e=="function"?(this[lt].loadstart=e,this.addEventListener("loadstart",e)):this[lt].loadstart=null}get onprogress(){return wt.brandCheck(this,t),this[lt].progress}set onprogress(e){wt.brandCheck(this,t),this[lt].progress&&this.removeEventListener("progress",this[lt].progress),typeof e=="function"?(this[lt].progress=e,this.addEventListener("progress",e)):this[lt].progress=null}get onload(){return wt.brandCheck(this,t),this[lt].load}set onload(e){wt.brandCheck(this,t),this[lt].load&&this.removeEventListener("load",this[lt].load),typeof e=="function"?(this[lt].load=e,this.addEventListener("load",e)):this[lt].load=null}get onabort(){return wt.brandCheck(this,t),this[lt].abort}set onabort(e){wt.brandCheck(this,t),this[lt].abort&&this.removeEventListener("abort",this[lt].abort),typeof e=="function"?(this[lt].abort=e,this.addEventListener("abort",e)):this[lt].abort=null}};Fi.EMPTY=Fi.prototype.EMPTY=0;Fi.LOADING=Fi.prototype.LOADING=1;Fi.DONE=Fi.prototype.DONE=2;Object.defineProperties(Fi.prototype,{EMPTY:QA,LOADING:QA,DONE:QA,readAsArrayBuffer:Ss,readAsBinaryString:Ss,readAsText:Ss,readAsDataURL:Ss,abort:Ss,readyState:Ss,result:Ss,error:Ss,onloadstart:Ss,onprogress:Ss,onload:Ss,onabort:Ss,onerror:Ss,onloadend:Ss,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Fi,{EMPTY:QA,LOADING:QA,DONE:QA});sse.exports={FileReader:Fi}});var Q0=w((H4t,ise)=>{"use strict";ise.exports={kConstruct:qt().kConstruct}});var lse=w(($4t,cse)=>{"use strict";var _5e=require("node:assert"),{URLSerializer:ase}=Cs(),{isValidHeaderName:Q5e}=Xs();function D5e(t,e,r=!1){let n=ase(t,r),s=ase(e,r);return n===s}i(D5e,"urlEquals");function k5e(t){_5e(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),Q5e(r)&&e.push(r);return e}i(k5e,"getFieldValues");cse.exports={urlEquals:D5e,getFieldValues:k5e}});var pse=w((V4t,dse)=>{"use strict";var{kConstruct:L5e}=Q0(),{urlEquals:O5e,getFieldValues:a2}=lse(),{kEnumerableProperty:Yp,isDisturbed:M5e}=Ve(),{webidl:ue}=yn(),{Response:F5e,cloneResponse:U5e,fromInnerResponse:q5e}=WE(),{Request:vl,fromInnerRequest:G5e}=PA(),{kState:Ui}=bu(),{fetching:H5e}=JE(),{urlIsHttpHttpsScheme:D0,createDeferredPromise:DA,readAllBytes:$5e}=Xs(),c2=require("node:assert"),k0=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==L5e&&ue.illegalConstructor(),ue.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){ue.brandCheck(this,t);let n="Cache.match";ue.argumentLengthCheck(arguments,1,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.CacheQueryOptions(r,n,"options");let s=this.#o(e,r,1);if(s.length!==0)return s[0]}async matchAll(e=void 0,r={}){ue.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=ue.converters.RequestInfo(e,n,"request")),r=ue.converters.CacheQueryOptions(r,n,"options"),this.#o(e,r)}async add(e){ue.brandCheck(this,t);let r="Cache.add";ue.argumentLengthCheck(arguments,1,r),e=ue.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){ue.brandCheck(this,t);let r="Cache.addAll";ue.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let m of e){if(m===void 0)throw ue.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(m=ue.converters.RequestInfo(m),typeof m=="string")continue;let f=m[Ui];if(!D0(f.url)||f.method!=="GET")throw ue.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let m of e){let f=new vl(m)[Ui];if(!D0(f.url))throw ue.errors.exception({header:r,message:"Expected http/s scheme."});f.initiator="fetch",f.destination="subresource",s.push(f);let A=DA();o.push(H5e({request:f,processResponse(h){if(h.type==="error"||h.status===206||h.status<200||h.status>299)A.reject(ue.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(h.headersList.contains("vary")){let E=a2(h.headersList.get("vary"));for(let y of E)if(y==="*"){A.reject(ue.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let I of o)I.abort();return}}},processResponseEndOfBody(h){if(h.aborted){A.reject(new DOMException("aborted","AbortError"));return}A.resolve(h)}})),n.push(A.promise)}let c=await Promise.all(n),l=[],u=0;for(let m of c){let f={type:"put",request:s[u],response:m};l.push(f),u++}let d=DA(),p=null;try{this.#t(l)}catch(m){p=m}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(e,r){ue.brandCheck(this,t);let n="Cache.put";ue.argumentLengthCheck(arguments,2,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.Response(r,n,"response");let s=null;if(e instanceof vl?s=e[Ui]:s=new vl(e)[Ui],!D0(s.url)||s.method!=="GET")throw ue.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[Ui];if(o.status===206)throw ue.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let f=a2(o.headersList.get("vary"));for(let A of f)if(A==="*")throw ue.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(M5e(o.body.stream)||o.body.stream.locked))throw ue.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=U5e(o),c=DA();if(o.body!=null){let A=o.body.stream.getReader();$5e(A).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:s,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let p=DA(),m=null;try{this.#t(l)}catch(f){m=f}return queueMicrotask(()=>{m===null?p.resolve():p.reject(m)}),p.promise}async delete(e,r={}){ue.brandCheck(this,t);let n="Cache.delete";ue.argumentLengthCheck(arguments,1,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof vl){if(s=e[Ui],s.method!=="GET"&&!r.ignoreMethod)return!1}else c2(typeof e=="string"),s=new vl(e)[Ui];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=DA(),l=null,u;try{u=this.#t(o)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){ue.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=ue.converters.RequestInfo(e,n,"request")),r=ue.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof vl){if(s=e[Ui],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new vl(e)[Ui]);let o=DA(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#r(s,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=G5e(l,new AbortController().signal,"immutable");c.push(u)}o.resolve(Object.freeze(c))}),o.promise}#t(e){let r=this.#e,n=[...r],s=[],o=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#r(a.request,a.options,s).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#r(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);c2(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!D0(l.url))throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#r(a.request);for(let u of c){let d=r.indexOf(u);c2(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),s.push([a.request,a.response])}o.push([a.request,a.response])}return o}catch(a){throw this.#e.length=0,this.#e=n,a}}#r(e,r,n){let s=[],o=n??this.#e;for(let a of o){let[c,l]=a;this.#s(e,c,l,r)&&s.push(a)}return s}#s(e,r,n=null,s){let o=new URL(e.url),a=new URL(r.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!O5e(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=a2(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#o(e,r,n=1/0){let s=null;if(e!==void 0)if(e instanceof vl){if(s=e[Ui],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new vl(e)[Ui]);let o=[];if(e===void 0)for(let c of this.#e)o.push(c[1]);else{let c=this.#r(s,r);for(let l of c)o.push(l[1])}let a=[];for(let c of o){let l=q5e(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(k0.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Yp,matchAll:Yp,add:Yp,addAll:Yp,put:Yp,delete:Yp,keys:Yp});var use=[{key:"ignoreSearch",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];ue.converters.CacheQueryOptions=ue.dictionaryConverter(use);ue.converters.MultiCacheQueryOptions=ue.dictionaryConverter([...use,{key:"cacheName",converter:ue.converters.DOMString}]);ue.converters.Response=ue.interfaceConverter(F5e);ue.converters["sequence"]=ue.sequenceConverter(ue.converters.RequestInfo);dse.exports={Cache:k0}});var fse=w((Y4t,mse)=>{"use strict";var{kConstruct:KE}=Q0(),{Cache:L0}=pse(),{webidl:kn}=yn(),{kEnumerableProperty:XE}=Ve(),O0=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==KE&&kn.illegalConstructor(),kn.util.markAsUncloneable(this)}async match(e,r={}){if(kn.brandCheck(this,t),kn.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=kn.converters.RequestInfo(e),r=kn.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new L0(KE,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new L0(KE,n).match(e,r);if(o!==void 0)return o}}async has(e){kn.brandCheck(this,t);let r="CacheStorage.has";return kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){kn.brandCheck(this,t);let r="CacheStorage.open";if(kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new L0(KE,s)}let n=[];return this.#e.set(e,n),new L0(KE,n)}async delete(e){kn.brandCheck(this,t);let r="CacheStorage.delete";return kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return kn.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(O0.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:XE,has:XE,open:XE,delete:XE,keys:XE});mse.exports={CacheStorage:O0}});var hse=w((j4t,Ase)=>{"use strict";Ase.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var d2=w((K4t,Cse)=>{"use strict";function z5e(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(z5e,"isCTLExcludingHtab");function l2(t){for(let e=0;e126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}i(l2,"validateCookieName");function u2(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}i(u2,"validateCookieValue");function yse(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}i(yse,"validateCookiePath");function gse(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(gse,"isLetterOrDigit");function V5e(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}i(V5e,"validateCookieDomain");var W5e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Y5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],M0=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function Ese(t){return typeof t=="number"&&(t=new Date(t)),`${W5e[t.getUTCDay()]}, ${M0[t.getUTCDate()]} ${Y5e[t.getUTCMonth()]} ${t.getUTCFullYear()} ${M0[t.getUTCHours()]}:${M0[t.getUTCMinutes()]}:${M0[t.getUTCSeconds()]} GMT`}i(Ese,"toIMFDate");function J5e(t){if(t<0)throw new Error("Invalid cookie max-age")}i(J5e,"validateCookieMaxAge");function j5e(t){if(t.name.length===0)return null;l2(t.name),u2(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(J5e(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(V5e(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(yse(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Ese(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...s]=r.split("="),o=n.trim(),a=s.join("=");l2(o),u2(a),e.push(`${o}=${a}`)}return e.join("; ")}i(j5e,"stringify");Cse.exports={isCTLExcludingHtab:z5e,validateCookieName:l2,validateCookiePath:yse,validateCookieValue:u2,toIMFDate:Ese,stringify:j5e}});var wse=w((Z4t,Ise)=>{"use strict";var{maxNameValuePairSize:K5e,maxAttributeValueSize:X5e}=hse(),{isCTLExcludingHtab:Z5e}=d2(),{collectASequenceOfCodePointsFast:F0}=Cs(),e6e=require("node:assert");function t6e(t){if(Z5e(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=F0(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=F0("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>K5e?null:{name:n,value:s,...kA(r)}}i(t6e,"parseSetCookie");function kA(t,e={}){if(t.length===0)return e;e6e(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=F0(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=F0("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>X5e)return kA(t,e);let o=n.toLowerCase();if(o==="expires"){let a=new Date(s);e.expires=a}else if(o==="max-age"){let a=s.charCodeAt(0);if((a<48||a>57)&&s[0]!=="-"||!/^\d+$/.test(s))return kA(t,e);let c=Number(s);e.maxAge=c}else if(o==="domain"){let a=s;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(o==="path"){let a="";s.length===0||s[0]!=="/"?a="/":a=s,e.path=a}else if(o==="secure")e.secure=!0;else if(o==="httponly")e.httpOnly=!0;else if(o==="samesite"){let a=s.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${s}`);return kA(t,e)}i(kA,"parseUnparsedAttributes");Ise.exports={parseSetCookie:t6e,parseUnparsedAttributes:kA}});var bse=w((tWt,xse)=>{"use strict";var{parseSetCookie:r6e}=wse(),{stringify:n6e}=d2(),{webidl:et}=yn(),{Headers:U0}=Hp();function s6e(t){et.argumentLengthCheck(arguments,1,"getCookies"),et.brandCheck(t,U0,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[s,...o]=n.split("=");r[s.trim()]=o.join("=")}return r}i(s6e,"getCookies");function o6e(t,e,r){et.brandCheck(t,U0,{strict:!1});let n="deleteCookie";et.argumentLengthCheck(arguments,2,n),e=et.converters.DOMString(e,n,"name"),r=et.converters.DeleteCookieAttributes(r),Sse(t,{name:e,value:"",expires:new Date(0),...r})}i(o6e,"deleteCookie");function i6e(t){et.argumentLengthCheck(arguments,1,"getSetCookies"),et.brandCheck(t,U0,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>r6e(r)):[]}i(i6e,"getSetCookies");function Sse(t,e){et.argumentLengthCheck(arguments,2,"setCookie"),et.brandCheck(t,U0,{strict:!1}),e=et.converters.Cookie(e);let r=n6e(e);r&&t.append("Set-Cookie",r)}i(Sse,"setCookie");et.converters.DeleteCookieAttributes=et.dictionaryConverter([{converter:et.nullableConverter(et.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);et.converters.Cookie=et.dictionaryConverter([{converter:et.converters.DOMString,key:"name"},{converter:et.converters.DOMString,key:"value"},{converter:et.nullableConverter(t=>typeof t=="number"?et.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:et.nullableConverter(et.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:et.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:et.sequenceConverter(et.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);xse.exports={getCookies:s6e,deleteCookie:o6e,getSetCookies:i6e,setCookie:Sse}});var OA=w((nWt,Rse)=>{"use strict";var{webidl:ce}=yn(),{kEnumerableProperty:xs}=Ve(),{kConstruct:Bse}=qt(),{MessagePort:a6e}=require("node:worker_threads"),LA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===Bse){super(arguments[1],arguments[2]),ce.util.markAsUncloneable(this);return}let n="MessageEvent constructor";ce.argumentLengthCheck(arguments,1,n),e=ce.converters.DOMString(e,n,"type"),r=ce.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,ce.util.markAsUncloneable(this)}get data(){return ce.brandCheck(this,t),this.#e.data}get origin(){return ce.brandCheck(this,t),this.#e.origin}get lastEventId(){return ce.brandCheck(this,t),this.#e.lastEventId}get source(){return ce.brandCheck(this,t),this.#e.source}get ports(){return ce.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,s=null,o="",a="",c=null,l=[]){return ce.brandCheck(this,t),ce.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:s,origin:o,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(Bse,e,r);return n.#e=r,n.#e.data??=null,n.#e.origin??="",n.#e.lastEventId??="",n.#e.source??=null,n.#e.ports??=[],n}},{createFastMessageEvent:c6e}=LA;delete LA.createFastMessageEvent;var q0=class t extends Event{static{i(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";ce.argumentLengthCheck(arguments,1,n),e=ce.converters.DOMString(e,n,"type"),r=ce.converters.CloseEventInit(r),super(e,r),this.#e=r,ce.util.markAsUncloneable(this)}get wasClean(){return ce.brandCheck(this,t),this.#e.wasClean}get code(){return ce.brandCheck(this,t),this.#e.code}get reason(){return ce.brandCheck(this,t),this.#e.reason}},G0=class t extends Event{static{i(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";ce.argumentLengthCheck(arguments,1,n),super(e,r),ce.util.markAsUncloneable(this),e=ce.converters.DOMString(e,n,"type"),r=ce.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return ce.brandCheck(this,t),this.#e.message}get filename(){return ce.brandCheck(this,t),this.#e.filename}get lineno(){return ce.brandCheck(this,t),this.#e.lineno}get colno(){return ce.brandCheck(this,t),this.#e.colno}get error(){return ce.brandCheck(this,t),this.#e.error}};Object.defineProperties(LA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:xs,origin:xs,lastEventId:xs,source:xs,ports:xs,initMessageEvent:xs});Object.defineProperties(q0.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:xs,code:xs,wasClean:xs});Object.defineProperties(G0.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:xs,filename:xs,lineno:xs,colno:xs,error:xs});ce.converters.MessagePort=ce.interfaceConverter(a6e);ce.converters["sequence"]=ce.sequenceConverter(ce.converters.MessagePort);var p2=[{key:"bubbles",converter:ce.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:ce.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:ce.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];ce.converters.MessageEventInit=ce.dictionaryConverter([...p2,{key:"data",converter:ce.converters.any,defaultValue:i(()=>null,"defaultValue")},{key:"origin",converter:ce.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lastEventId",converter:ce.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"source",converter:ce.nullableConverter(ce.converters.MessagePort),defaultValue:i(()=>null,"defaultValue")},{key:"ports",converter:ce.converters["sequence"],defaultValue:i(()=>new Array(0),"defaultValue")}]);ce.converters.CloseEventInit=ce.dictionaryConverter([...p2,{key:"wasClean",converter:ce.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"code",converter:ce.converters["unsigned short"],defaultValue:i(()=>0,"defaultValue")},{key:"reason",converter:ce.converters.USVString,defaultValue:i(()=>"","defaultValue")}]);ce.converters.ErrorEventInit=ce.dictionaryConverter([...p2,{key:"message",converter:ce.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"filename",converter:ce.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lineno",converter:ce.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"colno",converter:ce.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"error",converter:ce.converters.any}]);Rse.exports={MessageEvent:LA,CloseEvent:q0,ErrorEvent:G0,createFastMessageEvent:c6e}});var Jp=w((oWt,Nse)=>{"use strict";var l6e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",u6e={enumerable:!0,writable:!1,configurable:!1},d6e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},p6e={NOT_SENT:0,PROCESSING:1,SENT:2},m6e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},f6e=2**16-1,A6e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},h6e=Buffer.allocUnsafe(0),g6e={string:1,typedArray:2,arrayBuffer:3,blob:4};Nse.exports={uid:l6e,sentCloseFrameState:p6e,staticPropertyDescriptors:u6e,states:d6e,opcodes:m6e,maxUnsigned16Bit:f6e,parserStates:A6e,emptyBuffer:h6e,sendHints:g6e}});var ZE=w((iWt,Tse)=>{"use strict";Tse.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")}});var rC=w((aWt,Mse)=>{"use strict";var{kReadyState:eC,kController:y6e,kResponse:E6e,kBinaryType:C6e,kWebSocketURL:I6e}=ZE(),{states:tC,opcodes:Fu}=Jp(),{ErrorEvent:w6e,createFastMessageEvent:S6e}=OA(),{isUtf8:x6e}=require("node:buffer"),{collectASequenceOfCodePointsFast:b6e,removeHTTPWhitespace:vse}=Cs();function B6e(t){return t[eC]===tC.CONNECTING}i(B6e,"isConnecting");function R6e(t){return t[eC]===tC.OPEN}i(R6e,"isEstablished");function N6e(t){return t[eC]===tC.CLOSING}i(N6e,"isClosing");function T6e(t){return t[eC]===tC.CLOSED}i(T6e,"isClosed");function m2(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(m2,"fireEvent");function v6e(t,e,r){if(t[eC]!==tC.OPEN)return;let n;if(e===Fu.TEXT)try{n=Ose(r)}catch{_se(t,"Received invalid UTF-8 in text frame.");return}else e===Fu.BINARY&&(t[C6e]==="blob"?n=new Blob([r]):n=P6e(r));m2("message",t,S6e,{origin:t[I6e].origin,data:n})}i(v6e,"websocketMessageReceived");function P6e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(P6e,"toArrayBuffer");function _6e(t){if(t.length===0)return!1;for(let e=0;e126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}i(_6e,"isValidSubprotocol");function Q6e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(Q6e,"isValidStatusCode");function _se(t,e){let{[y6e]:r,[E6e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&m2("error",t,(s,o)=>new w6e(s,o),{error:new Error(e),message:e})}i(_se,"failWebsocketConnection");function Qse(t){return t===Fu.CLOSE||t===Fu.PING||t===Fu.PONG}i(Qse,"isControlFrame");function Dse(t){return t===Fu.CONTINUATION}i(Dse,"isContinuationFrame");function kse(t){return t===Fu.TEXT||t===Fu.BINARY}i(kse,"isTextBinaryFrame");function D6e(t){return kse(t)||Dse(t)||Qse(t)}i(D6e,"isValidOpcode");function k6e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}i(L6e,"isValidClientWindowBits");var Lse=typeof process.versions.icu=="string",Pse=Lse?new TextDecoder("utf-8",{fatal:!0}):void 0,Ose=Lse?Pse.decode.bind(Pse):function(t){if(x6e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Mse.exports={isConnecting:B6e,isEstablished:R6e,isClosing:N6e,isClosed:T6e,fireEvent:m2,isValidSubprotocol:_6e,isValidStatusCode:Q6e,failWebsocketConnection:_se,websocketMessageReceived:v6e,utf8Decode:Ose,isControlFrame:Qse,isContinuationFrame:Dse,isTextBinaryFrame:kse,isValidOpcode:D6e,parseExtensions:k6e,isValidClientWindowBits:L6e}});var $0=w((lWt,Fse)=>{"use strict";var{maxUnsigned16Bit:O6e}=Jp(),H0=16386,f2,nC=null,MA=H0;try{f2=require("node:crypto")}catch{f2={randomFillSync:i(function(e,r,n){for(let s=0;sO6e?(a+=8,o=127):s>125&&(a+=2,o=126);let c=Buffer.allocUnsafe(s+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=o,o===126?c.writeUInt16BE(s,2):o===127&&(c[2]=c[3]=0,c.writeUIntBE(s,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:F6e,states:sC,sentCloseFrameState:z0,emptyBuffer:U6e,opcodes:q6e}=Jp(),{kReadyState:oC,kSentClose:V0,kByteParser:qse,kReceivedClose:Use,kResponse:Gse}=ZE(),{fireEvent:G6e,failWebsocketConnection:Uu,isClosing:H6e,isClosed:$6e,isEstablished:z6e,parseExtensions:V6e}=rC(),{channels:FA}=Kf(),{CloseEvent:W6e}=OA(),{makeRequest:Y6e}=PA(),{fetching:J6e}=JE(),{Headers:j6e,getHeadersList:K6e}=Hp(),{getDecodeSplit:X6e}=Xs(),{WebsocketFrameSend:Z6e}=$0(),h2;try{h2=require("node:crypto")}catch{}function e9e(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=Y6e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=K6e(new j6e(o.headers));c.headersList=p}let l=h2.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let p of e)c.headersList.append("sec-websocket-protocol",p);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),J6e({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){Uu(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){Uu(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Uu(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Uu(n,'Server did not set Connection header to "upgrade".');return}let m=p.headersList.get("Sec-WebSocket-Accept"),f=h2.createHash("sha1").update(l+F6e).digest("base64");if(m!==f){Uu(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let A=p.headersList.get("Sec-WebSocket-Extensions"),h;if(A!==null&&(h=V6e(A),!h.has("permessage-deflate"))){Uu(n,"Sec-WebSocket-Extensions header does not match.");return}let E=p.headersList.get("Sec-WebSocket-Protocol");if(E!==null){let y=X6e("sec-websocket-protocol",c.headersList);if(y===null||!y.includes(E)){Uu(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",Hse),p.socket.on("close",$se),p.socket.on("error",zse),FA.open.hasSubscribers&&FA.open.publish({address:p.socket.address(),protocol:E,extensions:A}),s(p,h)}})}i(e9e,"establishWebSocketConnection");function t9e(t,e,r,n){if(!(H6e(t)||$6e(t)))if(!z6e(t))Uu(t,"Connection was closed before it was established."),t[oC]=sC.CLOSING;else if(t[V0]===z0.NOT_SENT){t[V0]=z0.PROCESSING;let s=new Z6e;e!==void 0&&r===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(s.frameData=Buffer.allocUnsafe(2+n),s.frameData.writeUInt16BE(e,0),s.frameData.write(r,2,"utf-8")):s.frameData=U6e,t[Gse].socket.write(s.createFrame(q6e.CLOSE)),t[V0]=z0.SENT,t[oC]=sC.CLOSING}else t[oC]=sC.CLOSING}i(t9e,"closeWebSocketConnection");function Hse(t){this.ws[qse].write(t)||this.pause()}i(Hse,"onSocketData");function $se(){let{ws:t}=this,{[Gse]:e}=t;e.socket.off("data",Hse),e.socket.off("close",$se),e.socket.off("error",zse);let r=t[V0]===z0.SENT&&t[Use],n=1005,s="",o=t[qse].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Use]||(n=1006),t[oC]=sC.CLOSED,G6e("close",t,(a,c)=>new W6e(a,c),{wasClean:r,code:n,reason:s}),FA.close.hasSubscribers&&FA.close.publish({websocket:t,code:n,reason:s})}i($se,"onSocketClose");function zse(t){let{ws:e}=this;e[oC]=sC.CLOSING,FA.socketError.hasSubscribers&&FA.socketError.publish(t),this.destroy()}i(zse,"onSocketError");Vse.exports={establishWebSocketConnection:e9e,closeWebSocketConnection:t9e}});var Yse=w((mWt,Wse)=>{"use strict";var{createInflateRaw:r9e,Z_DEFAULT_WINDOWBITS:n9e}=require("node:zlib"),{isValidClientWindowBits:s9e}=rC(),{MessageSizeExceededError:o9e}=it(),i9e=Buffer.from([0,0,255,255]),W0=Symbol("kBuffer"),iC=Symbol("kLength"),y2=class{static{i(this,"PerMessageDeflate")}#e;#t={};#r=0;constructor(e,r){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits"),this.#r=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let s=n9e;if(this.#t.serverMaxWindowBits){if(!s9e(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=r9e({windowBits:s})}catch(o){n(o);return}this.#e[W0]=[],this.#e[iC]=0,this.#e.on("data",o=>{if(this.#e[iC]+=o.length,this.#r>0&&this.#e[iC]>this.#r){n(new o9e),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[W0].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(i9e),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[W0],this.#e[iC]);this.#e[W0].length=0,this.#e[iC]=0,n(null,s)})}};Wse.exports={PerMessageDeflate:y2}});var noe=w((AWt,roe)=>{"use strict";var{Writable:a9e}=require("node:stream"),c9e=require("node:assert"),{parserStates:bs,opcodes:UA,states:l9e,emptyBuffer:Jse,sentCloseFrameState:jse}=Jp(),{kReadyState:u9e,kSentClose:Kse,kResponse:E2,kReceivedClose:Xse}=ZE(),{channels:Y0}=Kf(),{isValidStatusCode:d9e,isValidOpcode:p9e,failWebsocketConnection:io,websocketMessageReceived:Zse,utf8Decode:m9e,isControlFrame:C2,isTextBinaryFrame:I2,isContinuationFrame:f9e}=rC(),{WebsocketFrameSend:eoe}=$0(),{closeWebSocketConnection:toe}=g2(),{PerMessageDeflate:A9e}=Yse(),{MessageSizeExceededError:w2}=it();function aC(t,e,r){toe(t,e,r,Buffer.byteLength(r)),io(t,r)}i(aC,"failWebsocketConnectionWithCode");var S2=class extends a9e{static{i(this,"ByteParser")}#e=[];#t=0;#r=0;#s=!1;#o=bs.INFO;#n={};#i=[];#a;#l;#c;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#l=n.maxFragments??0,this.#c=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new A9e(r,n))}_write(e,r,n){this.#e.push(e),this.#r+=e.length,this.#s=!0,this.run(n)}#u(){return this.#c>0&&!C2(this.#n.opcode)&&this.#n.payloadLength+this.#t>this.#c?(aC(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#s;)if(this.#o===bs.INFO){if(this.#r<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,s=r[0]&15,o=(r[1]&128)===128,a=!n&&s!==UA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!p9e(s))return io(this.ws,"Invalid opcode received"),e();if(o)return io(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){io(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){io(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!I2(s)){io(this.ws,"Invalid frame type was fragmented.");return}if(I2(s)&&this.#i.length>0){io(this.ws,"Expected continuation frame");return}if(this.#n.fragmented&&a){io(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C2(s)){io(this.ws,"Control frame either too large or fragmented");return}if(f9e(s)&&this.#i.length===0&&!this.#n.compressed){io(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#n.payloadLength=c,this.#o=bs.READ_DATA,!this.#u())return}else c===126?this.#o=bs.PAYLOADLENGTH_16:c===127&&(this.#o=bs.PAYLOADLENGTH_64);I2(s)&&(this.#n.binaryType=s,this.#n.compressed=l!==0),this.#n.opcode=s,this.#n.masked=o,this.#n.fin=n,this.#n.fragmented=a}else if(this.#o===bs.PAYLOADLENGTH_16){if(this.#r<2)return e();let r=this.consume(2);if(this.#n.payloadLength=r.readUInt16BE(0),this.#o=bs.READ_DATA,!this.#u())return}else if(this.#o===bs.PAYLOADLENGTH_64){if(this.#r<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),s=r.readUInt32BE(4);if(n!==0||s>2**31-1){io(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#n.payloadLength=s,this.#o=bs.READ_DATA,!this.#u())return}else if(this.#o===bs.READ_DATA){if(this.#r{this.destroyed||(this.#s=!0,this.run(e))});return}}else if(this.#n.compressed){this.#a.get("permessage-deflate").decompress(r,this.#n.fin,(n,s)=>{if(n){let o=n instanceof w2?1009:1007;aC(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){aC(this.ws,1009,new w2().message);return}if(!this.#n.fin){this.#o=bs.INFO,this.#s=!0,this.run(e);return}Zse(this.ws,this.#n.binaryType,this.consumeFragments()),this.#s=!0,this.#o=bs.INFO,this.run(e)}}),this.#s=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){aC(this.ws,1009,new w2().message);return}!this.#n.fragmented&&this.#n.fin&&Zse(this.ws,this.#n.binaryType,this.consumeFragments()),this.#o=bs.INFO}}}consume(e){if(e>this.#r)throw new Error("Called consume() before buffers satiated.");if(e===0)return Jse;if(this.#e[0].length===e)return this.#r-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let s=this.#e[0],{length:o}=s;if(o+n===e){r.set(this.#e.shift(),n);break}else if(o+n>e){r.set(s.subarray(0,e-n),n),this.#e[0]=s.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=s.length}return this.#r-=e,r}writeFragments(e){return this.#l>0&&this.#i.length===this.#l?(aC(this.ws,1008,"Too many message fragments"),!1):(this.#t+=e.length,this.#i.push(e),!0)}consumeFragments(){let e=this.#i;if(e.length===1)return this.#t=0,e.shift();let r=Buffer.concat(e,this.#t);return this.#i=[],this.#t=0,r}parseCloseBody(e){c9e(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!d9e(r))return{code:1002,reason:"Invalid status code",error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=m9e(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#n;if(r===UA.CLOSE){if(n===1)return io(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#n.closeInfo=this.parseCloseBody(e),this.#n.closeInfo.error){let{code:s,reason:o}=this.#n.closeInfo;return toe(this.ws,s,o,o.length),io(this.ws,o),!1}if(this.ws[Kse]!==jse.SENT){let s=Jse;this.#n.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#n.closeInfo.code,0));let o=new eoe(s);this.ws[E2].socket.write(o.createFrame(UA.CLOSE),a=>{a||(this.ws[Kse]=jse.SENT)})}return this.ws[u9e]=l9e.CLOSING,this.ws[Xse]=!0,!1}else if(r===UA.PING){if(!this.ws[Xse]){let s=new eoe(e);this.ws[E2].socket.write(s.createFrame(UA.PONG)),Y0.ping.hasSubscribers&&Y0.ping.publish({payload:e})}}else r===UA.PONG&&Y0.pong.hasSubscribers&&Y0.pong.publish({payload:e});return!0}get closingInfo(){return this.#n.closeInfo}};roe.exports={ByteParser:S2}});var coe=w((gWt,aoe)=>{"use strict";var{WebsocketFrameSend:h9e}=$0(),{opcodes:soe,sendHints:qA}=Jp(),g9e=NU(),ooe=Buffer[Symbol.species],x2=class{static{i(this,"SendQueue")}#e=new g9e;#t=!1;#r;constructor(e){this.#r=e}add(e,r,n){if(n!==qA.blob){let o=ioe(e,n);if(!this.#t)this.#r.write(o,r);else{let a={promise:null,callback:r,frame:o};this.#e.push(a)}return}let s={promise:e.arrayBuffer().then(o=>{s.promise=null,s.frame=ioe(o,n)}),callback:r,frame:null};this.#e.push(s),this.#t||this.#s()}async#s(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#r.write(r.frame,r.callback),r.callback=r.frame=null}this.#t=!1}};function ioe(t,e){return new h9e(y9e(t,e)).createFrame(e===qA.string?soe.TEXT:soe.BINARY)}i(ioe,"createFrame");function y9e(t,e){switch(e){case qA.string:return Buffer.from(t);case qA.arrayBuffer:case qA.blob:return new ooe(t);case qA.typedArray:return new ooe(t.buffer,t.byteOffset,t.byteLength)}}i(y9e,"toBuffer");aoe.exports={SendQueue:x2}});var yoe=w((EWt,goe)=>{"use strict";var{webidl:Ne}=yn(),{URLSerializer:E9e}=Cs(),{environmentSettingsObject:loe}=Xs(),{staticPropertyDescriptors:qu,states:cC,sentCloseFrameState:C9e,sendHints:J0}=Jp(),{kWebSocketURL:uoe,kReadyState:b2,kController:doe,kBinaryType:j0,kResponse:poe,kSentClose:I9e,kByteParser:w9e}=ZE(),{isConnecting:S9e,isEstablished:x9e,isClosing:b9e,isValidSubprotocol:B9e,fireEvent:moe}=rC(),{establishWebSocketConnection:R9e,closeWebSocketConnection:foe}=g2(),{ByteParser:N9e}=noe(),{kEnumerableProperty:$o,isBlobLike:Aoe}=Ve(),{getGlobalDispatcher:T9e}=$E(),{types:hoe}=require("node:util"),{ErrorEvent:v9e,CloseEvent:P9e}=OA(),{SendQueue:_9e}=coe(),ao=class t extends EventTarget{static{i(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#t=0;#r="";#s="";#o;constructor(e,r=[]){super(),Ne.util.markAsUncloneable(this);let n="WebSocket constructor";Ne.argumentLengthCheck(arguments,1,n);let s=Ne.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Ne.converters.USVString(e,n,"url"),r=s.protocols;let o=loe.settingsObject.baseUrl,a;try{a=new URL(e,o)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>B9e(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[uoe]=new URL(a.href);let c=loe.settingsObject;this[doe]=R9e(a,r,c,this,(l,u)=>this.#n(l,u),s),this[b2]=t.CONNECTING,this[I9e]=C9e.NOT_SENT,this[j0]="blob"}close(e=void 0,r=void 0){Ne.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Ne.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Ne.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(r!==void 0&&(s=Buffer.byteLength(r),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");foe(this,e,r,s)}send(e){Ne.brandCheck(this,t);let r="WebSocket.send";if(Ne.argumentLengthCheck(arguments,1,r),e=Ne.converters.WebSocketSendData(e,r,"data"),S9e(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!x9e(this)||b9e(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#o.add(e,()=>{this.#t-=n},J0.string)}else hoe.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},J0.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},J0.typedArray)):Aoe(e)&&(this.#t+=e.size,this.#o.add(e,()=>{this.#t-=e.size},J0.blob))}get readyState(){return Ne.brandCheck(this,t),this[b2]}get bufferedAmount(){return Ne.brandCheck(this,t),this.#t}get url(){return Ne.brandCheck(this,t),E9e(this[uoe])}get extensions(){return Ne.brandCheck(this,t),this.#s}get protocol(){return Ne.brandCheck(this,t),this.#r}get onopen(){return Ne.brandCheck(this,t),this.#e.open}set onopen(e){Ne.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return Ne.brandCheck(this,t),this.#e.error}set onerror(e){Ne.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return Ne.brandCheck(this,t),this.#e.close}set onclose(e){Ne.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return Ne.brandCheck(this,t),this.#e.message}set onmessage(e){Ne.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return Ne.brandCheck(this,t),this[j0]}set binaryType(e){Ne.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[j0]="blob":this[j0]=e}#n(e,r){this[poe]=e;let n=this[doe]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new N9e(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",Q9e),a.on("error",D9e.bind(this)),e.socket.ws=this,this[w9e]=a,this.#o=new _9e(e.socket),this[b2]=cC.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#s=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#r=l),moe("open",this)}};ao.CONNECTING=ao.prototype.CONNECTING=cC.CONNECTING;ao.OPEN=ao.prototype.OPEN=cC.OPEN;ao.CLOSING=ao.prototype.CLOSING=cC.CLOSING;ao.CLOSED=ao.prototype.CLOSED=cC.CLOSED;Object.defineProperties(ao.prototype,{CONNECTING:qu,OPEN:qu,CLOSING:qu,CLOSED:qu,url:$o,readyState:$o,bufferedAmount:$o,onopen:$o,onerror:$o,onclose:$o,close:$o,onmessage:$o,binaryType:$o,send:$o,extensions:$o,protocol:$o,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(ao,{CONNECTING:qu,OPEN:qu,CLOSING:qu,CLOSED:qu});Ne.converters["sequence"]=Ne.sequenceConverter(Ne.converters.DOMString);Ne.converters["DOMString or sequence"]=function(t,e,r){return Ne.util.Type(t)==="Object"&&Symbol.iterator in t?Ne.converters["sequence"](t):Ne.converters.DOMString(t,e,r)};Ne.converters.WebSocketInit=Ne.dictionaryConverter([{key:"protocols",converter:Ne.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Ne.converters.any,defaultValue:i(()=>T9e(),"defaultValue")},{key:"headers",converter:Ne.nullableConverter(Ne.converters.HeadersInit)}]);Ne.converters["DOMString or sequence or WebSocketInit"]=function(t){return Ne.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Ne.converters.WebSocketInit(t):{protocols:Ne.converters["DOMString or sequence"](t)}};Ne.converters.WebSocketSendData=function(t){if(Ne.util.Type(t)==="Object"){if(Aoe(t))return Ne.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||hoe.isArrayBuffer(t))return Ne.converters.BufferSource(t)}return Ne.converters.USVString(t)};function Q9e(){this.ws[poe].socket.resume()}i(Q9e,"onParserDrain");function D9e(t){let e,r;t instanceof P9e?(e=t.reason,r=t.code):e=t.message,moe("error",this,()=>new v9e("error",{error:t,message:e})),foe(this,r)}i(D9e,"onParserError");goe.exports={WebSocket:ao}});var B2=w((IWt,Eoe)=>{"use strict";function k9e(t){return t.indexOf("\0")===-1}i(k9e,"isValidLastEventId");function L9e(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(L9e,"isASCIINumber");function O9e(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(O9e,"delay");Eoe.exports={isValidLastEventId:k9e,isASCIINumber:L9e,delay:O9e}});var Ioe=w((SWt,Coe)=>{"use strict";var M9e=require("node:buffer"),{Transform:F9e}=require("node:stream"),{isASCIINumber:U9e,isValidLastEventId:q9e}=B2(),GA=[239,187,191],K0=10,lC=13,G9e=58,H9e=32,$9e=M9e.kStringMaxLength,z9e=Buffer.from("data"),V9e=Buffer.from("event"),W9e=Buffer.from("id"),Y9e=Buffer.from("retry"),J9e=1024,j9e=131072,K9e=128;function X9e(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}i(X9e,"isASCIINumberBytes");function Z9e(t,e){for(let r=e;r0?Math.min(j9e,Math.max(J9e,Math.floor(this.maxEventSize/K9e))):0;this.maxDataLines=r,this.maxBufferedChunks=r,e.push&&(this.push=e.push)}_transform(e,r,n){if(e.length===0){n();return}if(this.maxEventSize>0&&this.chunks.length>=this.maxBufferedChunks&&e[0]!==K0&&e[0]!==lC){n(Z0());return}if(this.chunks.push(e),this.checkBOM&&this.handleBOM()){n();return}for(;this.hasCurrentByte();){let s=this.currentByte();if(this.eventEndCheck){if(this.crlfCheck){if(s===K0){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===K0||s===lC){s===lC&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===K0||s===lC){s===lC&&(this.crlfCheck=!0);try{this.parseLine(this.readLine(),this.event)}catch(o){n(o);return}this.consumeCurrentByte(),this.eventEndCheck=!0;continue}if(this.maxEventSize>0&&++this.lineLength>this.maxEventSize+7){n(Z0());return}this.advanceCursor()}n()}_destroy(e,r){this.chunks.length=0,this.clearEvent(),super._destroy(e,r)}parseLine(e,r){if(e.length===0)return;let n=e.indexOf(G9e);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===H9e&&++o),X0(e,s,z9e)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw Z0();let a=e.length-o,c=this.eventFieldSizes.data+(r.data===void 0?0:1)+a;this.setEventFieldSize("data",c);let l=e.toString("utf8",o);r.data===void 0?r.data=l:r.data+=` -${l}`,this.dataLineCount++;return}if(X0(e,s,Y9e)){X9e(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(X0(e,s,W9e)){Z9e(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}X0(e,s,V9e)&&o0&&n>this.maxEventSize)throw Z0();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&U9e(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&q9e(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],o=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:s.length,c=s.subarray(o,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r0&&this.lineChunkIndex{"use strict";var{pipeline:eKe}=require("node:stream"),{fetching:tKe}=JE(),{makeRequest:rKe}=PA(),{webidl:Pl}=yn(),{EventSourceStream:nKe}=Ioe(),{parseMIMEType:sKe}=Cs(),{createFastMessageEvent:oKe}=OA(),{isNetworkError:woe}=WE(),{delay:iKe}=B2(),{kEnumerableProperty:jp}=Ve(),{environmentSettingsObject:Soe}=Xs(),{getGlobalDispatcher:aKe}=$E(),xoe=!1,boe=3e3,uC=0,Boe=1,dC=2,cKe="anonymous",lKe="use-credentials",HA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#s=uC;#o=null;#n=null;#i;#a;constructor(e,r={}){super(),Pl.util.markAsUncloneable(this);let n="EventSource constructor";Pl.argumentLengthCheck(arguments,1,n),xoe||(xoe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Pl.converters.USVString(e,n,"url"),r=Pl.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:boe};let s=Soe,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=cKe;r.withCredentials&&(a=lKe,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Soe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=rKe(c),this.#l()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#s===dC)return;this.#s=uC;let e={request:this.#o,dispatcher:this.#i},r=i(n=>{woe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(woe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),o=s!==null?sKe(s):"failure",a=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#s=Boe,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new nKe({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(oKe(l.type,l.options))},"push")});eKe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=tKe(e)}async#c(){this.#s!==dC&&(this.#s=uC,this.dispatchEvent(new Event("error")),await iKe(this.#a.reconnectionTime),this.#s===uC&&(this.#a.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){Pl.brandCheck(this,t),this.#s!==dC&&(this.#s=dC,this.#n.abort(),this.#o=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Roe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:uC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Boe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:dC,writable:!1}};Object.defineProperties(HA,Roe);Object.defineProperties(HA.prototype,Roe);Object.defineProperties(HA.prototype,{close:jp,onerror:jp,onmessage:jp,onopen:jp,readyState:jp,url:jp,withCredentials:jp});Pl.converters.EventSourceInitDict=Pl.dictionaryConverter([{key:"withCredentials",converter:Pl.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:Pl.converters.any,defaultValue:i(()=>aKe(),"defaultValue")}]);Noe.exports={EventSource:HA,defaultReconnectionTime:boe}});var Kp=w((RWt,Ie)=>{"use strict";var uKe=gA(),voe=pE(),dKe=yA(),pKe=vee(),mKe=EA(),fKe=YU(),AKe=ete(),hKe=ate(),Poe=it(),tB=Ve(),{InvalidArgumentError:eB}=Poe,$A=Wte(),gKe=fE(),yKe=T1(),EKe=Tre(),CKe=_1(),IKe=h1(),wKe=r0(),{getGlobalDispatcher:_oe,setGlobalDispatcher:SKe}=$E(),xKe=p0(),bKe=zb(),BKe=Vb();Object.assign(voe.prototype,$A);Ie.exports.Dispatcher=voe;Ie.exports.Client=uKe;Ie.exports.Pool=dKe;Ie.exports.BalancedPool=pKe;Ie.exports.Agent=mKe;Ie.exports.ProxyAgent=fKe;Ie.exports.EnvHttpProxyAgent=AKe;Ie.exports.RetryAgent=hKe;Ie.exports.RetryHandler=wKe;Ie.exports.DecoratorHandler=xKe;Ie.exports.RedirectHandler=bKe;Ie.exports.createRedirectInterceptor=BKe;Ie.exports.interceptors={redirect:Lre(),retry:Mre(),dump:Ure(),dns:Hre()};Ie.exports.buildConnector=gKe;Ie.exports.errors=Poe;Ie.exports.util={parseHeaders:tB.parseHeaders,headerNameToString:tB.headerNameToString};function pC(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new eB("invalid url");if(r!=null&&typeof r!="object")throw new eB("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new eB("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(tB.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=tB.parseURL(e);let{agent:s,dispatcher:o=_oe()}=r;if(s)throw new eB("unsupported opts.agent. Did you mean opts.client?");return t.call(o,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}i(pC,"makeDispatcher");Ie.exports.setGlobalDispatcher=SKe;Ie.exports.getGlobalDispatcher=_oe;var RKe=JE().fetch;Ie.exports.fetch=i(async function(e,r=void 0){try{return await RKe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Ie.exports.Headers=Hp().Headers;Ie.exports.Response=WE().Response;Ie.exports.Request=PA().Request;Ie.exports.FormData=IE().FormData;Ie.exports.File=globalThis.File??require("node:buffer").File;Ie.exports.FileReader=ose().FileReader;var{setGlobalOrigin:NKe,getGlobalOrigin:TKe}=WF();Ie.exports.setGlobalOrigin=NKe;Ie.exports.getGlobalOrigin=TKe;var{CacheStorage:vKe}=fse(),{kConstruct:PKe}=Q0();Ie.exports.caches=new vKe(PKe);var{deleteCookie:_Ke,getCookies:QKe,getSetCookies:DKe,setCookie:kKe}=bse();Ie.exports.deleteCookie=_Ke;Ie.exports.getCookies=QKe;Ie.exports.getSetCookies=DKe;Ie.exports.setCookie=kKe;var{parseMIMEType:LKe,serializeAMimeType:OKe}=Cs();Ie.exports.parseMIMEType=LKe;Ie.exports.serializeAMimeType=OKe;var{CloseEvent:MKe,ErrorEvent:FKe,MessageEvent:UKe}=OA();Ie.exports.WebSocket=yoe().WebSocket;Ie.exports.CloseEvent=MKe;Ie.exports.ErrorEvent=FKe;Ie.exports.MessageEvent=UKe;Ie.exports.request=pC($A.request);Ie.exports.stream=pC($A.stream);Ie.exports.pipeline=pC($A.pipeline);Ie.exports.connect=pC($A.connect);Ie.exports.upgrade=pC($A.upgrade);Ie.exports.MockClient=yKe;Ie.exports.MockPool=CKe;Ie.exports.MockAgent=EKe;Ie.exports.mockErrors=IKe;var{EventSource:qKe}=Toe();Ie.exports.EventSource=qKe});var SC=w((a8t,Aie)=>{"use strict";var AXe="2.0.0",hXe=Number.MAX_SAFE_INTEGER||9007199254740991,gXe=16,yXe=250,EXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Aie.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:gXe,MAX_SAFE_BUILD_LENGTH:yXe,MAX_SAFE_INTEGER:hXe,RELEASE_TYPES:EXe,SEMVER_SPEC_VERSION:AXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xC=w((c8t,hie)=>{"use strict";var CXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};hie.exports=CXe});var YA=w((Ha,gie)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Y2,MAX_SAFE_BUILD_LENGTH:IXe,MAX_LENGTH:wXe}=SC(),SXe=xC();Ha=gie.exports={};var xXe=Ha.re=[],bXe=Ha.safeRe=[],$=Ha.src=[],BXe=Ha.safeSrc=[],z=Ha.t={},RXe=0,J2="[a-zA-Z0-9-]",NXe=[["\\s",1],["\\d",wXe],[J2,IXe]],TXe=i(t=>{for(let[e,r]of NXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=i((t,e,r)=>{let n=TXe(e),s=RXe++;SXe(t,s,e),z[t]=s,$[s]=e,BXe[s]=n,xXe[s]=new RegExp(e,r?"g":void 0),bXe[s]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${J2}*`);Le("MAINVERSION",`(${$[z.NUMERICIDENTIFIER]})\\.(${$[z.NUMERICIDENTIFIER]})\\.(${$[z.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${$[z.NUMERICIDENTIFIERLOOSE]})\\.(${$[z.NUMERICIDENTIFIERLOOSE]})\\.(${$[z.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${$[z.NONNUMERICIDENTIFIER]}|${$[z.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${$[z.NONNUMERICIDENTIFIER]}|${$[z.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${$[z.PRERELEASEIDENTIFIER]}(?:\\.${$[z.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${$[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[z.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${J2}+`);Le("BUILD",`(?:\\+(${$[z.BUILDIDENTIFIER]}(?:\\.${$[z.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${$[z.MAINVERSION]}${$[z.PRERELEASE]}?${$[z.BUILD]}?`);Le("FULL",`^${$[z.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${$[z.MAINVERSIONLOOSE]}${$[z.PRERELEASELOOSE]}?${$[z.BUILD]}?`);Le("LOOSE",`^${$[z.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${$[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${$[z.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${$[z.XRANGEIDENTIFIER]})(?:\\.(${$[z.XRANGEIDENTIFIER]})(?:\\.(${$[z.XRANGEIDENTIFIER]})(?:${$[z.PRERELEASE]})?${$[z.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${$[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[z.XRANGEIDENTIFIERLOOSE]})(?:${$[z.PRERELEASELOOSE]})?${$[z.BUILD]}?)?)?`);Le("XRANGE",`^${$[z.GTLT]}\\s*${$[z.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${$[z.GTLT]}\\s*${$[z.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Y2}})(?:\\.(\\d{1,${Y2}}))?(?:\\.(\\d{1,${Y2}}))?`);Le("COERCE",`${$[z.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",$[z.COERCEPLAIN]+`(?:${$[z.PRERELEASE]})?(?:${$[z.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",$[z.COERCE],!0);Le("COERCERTLFULL",$[z.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${$[z.LONETILDE]}\\s+`,!0);Ha.tildeTrimReplace="$1~";Le("TILDE",`^${$[z.LONETILDE]}${$[z.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${$[z.LONETILDE]}${$[z.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${$[z.LONECARET]}\\s+`,!0);Ha.caretTrimReplace="$1^";Le("CARET",`^${$[z.LONECARET]}${$[z.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${$[z.LONECARET]}${$[z.XRANGEPLAINLOOSE]}$`);Le("COMPARATORLOOSE",`^${$[z.GTLT]}\\s*(${$[z.LOOSEPLAIN]})$|^$`);Le("COMPARATOR",`^${$[z.GTLT]}\\s*(${$[z.FULLPLAIN]})$|^$`);Le("COMPARATORTRIM",`(\\s*)${$[z.GTLT]}\\s*(${$[z.LOOSEPLAIN]}|${$[z.XRANGEPLAIN]})`,!0);Ha.comparatorTrimReplace="$1$2$3";Le("HYPHENRANGE",`^\\s*(${$[z.XRANGEPLAIN]})\\s+-\\s+(${$[z.XRANGEPLAIN]})\\s*$`);Le("HYPHENRANGELOOSE",`^\\s*(${$[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[z.XRANGEPLAINLOOSE]})\\s*$`);Le("STAR","(<|>)?=?\\s*\\*");Le("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Le("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var uB=w((u8t,yie)=>{"use strict";var vXe=Object.freeze({loose:!0}),PXe=Object.freeze({}),_Xe=i(t=>t?typeof t!="object"?vXe:t:PXe,"parseOptions");yie.exports=_Xe});var j2=w((p8t,Iie)=>{"use strict";var Eie=/^[0-9]+$/,Cie=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tCie(e,t),"rcompareIdentifiers");Iie.exports={compareIdentifiers:Cie,rcompareIdentifiers:QXe}});var On=w((f8t,Sie)=>{"use strict";var dB=xC(),{MAX_LENGTH:wie,MAX_SAFE_INTEGER:pB}=SC(),{safeRe:mB,t:fB}=YA(),DXe=uB(),{compareIdentifiers:K2}=j2(),X2=class t{static{i(this,"SemVer")}constructor(e,r){if(r=DXe(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>wie)throw new TypeError(`version is longer than ${wie} characters`);dB("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?mB[fB.LOOSE]:mB[fB.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>pB||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pB||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pB||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(dB("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return K2(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(dB("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return K2(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?mB[fB.PRERELEASELOOSE]:mB[fB.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),K2(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Sie.exports=X2});var nm=w((h8t,bie)=>{"use strict";var xie=On(),kXe=i((t,e,r=!1)=>{if(t instanceof xie)return t;try{return new xie(t,e)}catch(n){if(!r)return null;throw n}},"parse");bie.exports=kXe});var Rie=w((y8t,Bie)=>{"use strict";var LXe=nm(),OXe=i((t,e)=>{let r=LXe(t,e);return r?r.version:null},"valid");Bie.exports=OXe});var Tie=w((C8t,Nie)=>{"use strict";var MXe=nm(),FXe=i((t,e)=>{let r=MXe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Nie.exports=FXe});var _ie=w((w8t,Pie)=>{"use strict";var vie=On(),UXe=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new vie(t instanceof vie?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Pie.exports=UXe});var kie=w((x8t,Die)=>{"use strict";var Qie=nm(),qXe=i((t,e)=>{let r=Qie(t,null,!0),n=Qie(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Die.exports=qXe});var Oie=w((B8t,Lie)=>{"use strict";var GXe=On(),HXe=i((t,e)=>new GXe(t,e).major,"major");Lie.exports=HXe});var Fie=w((N8t,Mie)=>{"use strict";var $Xe=On(),zXe=i((t,e)=>new $Xe(t,e).minor,"minor");Mie.exports=zXe});var qie=w((v8t,Uie)=>{"use strict";var VXe=On(),WXe=i((t,e)=>new VXe(t,e).patch,"patch");Uie.exports=WXe});var Hie=w((_8t,Gie)=>{"use strict";var YXe=nm(),JXe=i((t,e)=>{let r=YXe(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Gie.exports=JXe});var Vo=w((D8t,zie)=>{"use strict";var $ie=On(),jXe=i((t,e,r)=>new $ie(t,r).compare(new $ie(e,r)),"compare");zie.exports=jXe});var Wie=w((L8t,Vie)=>{"use strict";var KXe=Vo(),XXe=i((t,e,r)=>KXe(e,t,r),"rcompare");Vie.exports=XXe});var Jie=w((M8t,Yie)=>{"use strict";var ZXe=Vo(),e7e=i((t,e)=>ZXe(t,e,!0),"compareLoose");Yie.exports=e7e});var AB=w((U8t,Kie)=>{"use strict";var jie=On(),t7e=i((t,e,r)=>{let n=new jie(t,r),s=new jie(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Kie.exports=t7e});var Zie=w((G8t,Xie)=>{"use strict";var r7e=AB(),n7e=i((t,e)=>t.sort((r,n)=>r7e(r,n,e)),"sort");Xie.exports=n7e});var tae=w(($8t,eae)=>{"use strict";var s7e=AB(),o7e=i((t,e)=>t.sort((r,n)=>s7e(n,r,e)),"rsort");eae.exports=o7e});var bC=w((V8t,rae)=>{"use strict";var i7e=Vo(),a7e=i((t,e,r)=>i7e(t,e,r)>0,"gt");rae.exports=a7e});var hB=w((Y8t,nae)=>{"use strict";var c7e=Vo(),l7e=i((t,e,r)=>c7e(t,e,r)<0,"lt");nae.exports=l7e});var Z2=w((j8t,sae)=>{"use strict";var u7e=Vo(),d7e=i((t,e,r)=>u7e(t,e,r)===0,"eq");sae.exports=d7e});var eq=w((X8t,oae)=>{"use strict";var p7e=Vo(),m7e=i((t,e,r)=>p7e(t,e,r)!==0,"neq");oae.exports=m7e});var gB=w((eJt,iae)=>{"use strict";var f7e=Vo(),A7e=i((t,e,r)=>f7e(t,e,r)>=0,"gte");iae.exports=A7e});var yB=w((rJt,aae)=>{"use strict";var h7e=Vo(),g7e=i((t,e,r)=>h7e(t,e,r)<=0,"lte");aae.exports=g7e});var tq=w((sJt,cae)=>{"use strict";var y7e=Z2(),E7e=eq(),C7e=bC(),I7e=gB(),w7e=hB(),S7e=yB(),x7e=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return y7e(t,r,n);case"!=":return E7e(t,r,n);case">":return C7e(t,r,n);case">=":return I7e(t,r,n);case"<":return w7e(t,r,n);case"<=":return S7e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");cae.exports=x7e});var uae=w((iJt,lae)=>{"use strict";var b7e=On(),B7e=nm(),{safeRe:EB,t:CB}=YA(),R7e=i((t,e)=>{if(t instanceof b7e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?EB[CB.COERCEFULL]:EB[CB.COERCE]);else{let l=e.includePrerelease?EB[CB.COERCERTLFULL]:EB[CB.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return B7e(`${n}.${s}.${o}${a}${c}`,e)},"coerce");lae.exports=R7e});var pae=w((cJt,dae)=>{"use strict";var rq=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};dae.exports=rq});var Wo=w((uJt,hae)=>{"use strict";var N7e=/\s+/g,nq=class t{static{i(this,"Range")}constructor(e,r){if(r=v7e(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof sq)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(N7e," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!fae(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&O7e(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&k7e)|(this.options.loose&&L7e))+":"+e,s=mae.get(n);if(s)return s;let o=this.options.loose,a=o?ts[Mn.HYPHENRANGELOOSE]:ts[Mn.HYPHENRANGE];e=e.replace(a,W7e(this.options.includePrerelease)),Dt("hyphen replace",e),e=e.replace(ts[Mn.COMPARATORTRIM],_7e),Dt("comparator trim",e),e=e.replace(ts[Mn.TILDETRIM],Q7e),Dt("tilde trim",e),e=e.replace(ts[Mn.CARETTRIM],D7e),Dt("caret trim",e);let c=e.split(" ").map(p=>M7e(p,this.options)).join(" ").split(/\s+/).map(p=>V7e(p,this.options));o&&(c=c.filter(p=>(Dt("loose invalid filter",p,this.options),!!p.match(ts[Mn.COMPARATORLOOSE])))),Dt("range list",c);let l=new Map,u=c.map(p=>new sq(p,this.options));for(let p of u){if(fae(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return mae.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Aae(n,r)&&e.set.some(s=>Aae(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new P7e(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),O7e=i(t=>t.value==="","isAny"),Aae=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),M7e=i((t,e)=>(t=t.replace(ts[Mn.BUILD],""),Dt("comp",t,e),t=q7e(t,e),Dt("caret",t),t=F7e(t,e),Dt("tildes",t),t=H7e(t,e),Dt("xrange",t),t=z7e(t,e),Dt("stars",t),t),"parseComparator"),rs=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),F7e=i((t,e)=>t.trim().split(/\s+/).map(r=>U7e(r,e)).join(" "),"replaceTildes"),U7e=i((t,e)=>{let r=e.loose?ts[Mn.TILDELOOSE]:ts[Mn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Dt("tilde",t,n,s,o,a,c);let l;return rs(s)?l="":rs(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:rs(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Dt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Dt("tilde return",l),l})},"replaceTilde"),q7e=i((t,e)=>t.trim().split(/\s+/).map(r=>G7e(r,e)).join(" "),"replaceCarets"),G7e=i((t,e)=>{Dt("caret",t,e);let r=e.loose?ts[Mn.CARETLOOSE]:ts[Mn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Dt("caret",t,s,o,a,c,l);let u;return rs(o)?u="":rs(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:rs(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Dt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Dt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Dt("caret return",u),u})},"replaceCaret"),H7e=i((t,e)=>(Dt("replaceXRanges",t,e),t.split(/\s+/).map(r=>$7e(r,e)).join(" ")),"replaceXRanges"),$7e=i((t,e)=>{t=t.trim();let r=e.loose?ts[Mn.XRANGELOOSE]:ts[Mn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Dt("xRange",t,n,s,o,a,c,l);let u=rs(o),d=u||rs(a),p=d||rs(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Dt("xRange return",n),n})},"replaceXRange"),z7e=i((t,e)=>(Dt("replaceStars",t,e),t.trim().replace(ts[Mn.STAR],"")),"replaceStars"),V7e=i((t,e)=>(Dt("replaceGTE0",t,e),t.trim().replace(ts[e.includePrerelease?Mn.GTE0PRE:Mn.GTE0],"")),"replaceGTE0"),W7e=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(rs(n)?r="":rs(s)?r=`>=${n}.0.0${t?"-0":""}`:rs(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,rs(u)?l="":rs(d)?l=`<${+u+1}.0.0-0`:rs(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Y7e=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var BC=w((pJt,wae)=>{"use strict";var RC=Symbol("SemVer ANY"),aq=class t{static{i(this,"Comparator")}static get ANY(){return RC}constructor(e,r){if(r=gae(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),iq("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===RC?this.value="":this.value=this.operator+this.semver.version,iq("comp",this)}parse(e){let r=this.options.loose?yae[Eae.COMPARATORLOOSE]:yae[Eae.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Cae(n[2],this.options.loose):this.semver=RC}toString(){return this.value}test(e){if(iq("Comparator.test",e,this.options.loose),this.semver===RC||e===RC)return!0;if(typeof e=="string")try{e=new Cae(e,this.options)}catch{return!1}return oq(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Iae(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Iae(this.value,r).test(e.semver):(r=gae(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||oq(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||oq(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};wae.exports=aq;var gae=uB(),{safeRe:yae,t:Eae}=YA(),oq=tq(),iq=xC(),Cae=On(),Iae=Wo()});var NC=w((fJt,Sae)=>{"use strict";var J7e=Wo(),j7e=i((t,e,r)=>{try{e=new J7e(e,r)}catch{return!1}return e.test(t)},"satisfies");Sae.exports=j7e});var bae=w((hJt,xae)=>{"use strict";var K7e=Wo(),X7e=i((t,e)=>new K7e(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");xae.exports=X7e});var Rae=w((yJt,Bae)=>{"use strict";var Z7e=On(),eZe=Wo(),tZe=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new eZe(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Z7e(n,r))}),n},"maxSatisfying");Bae.exports=tZe});var Tae=w((CJt,Nae)=>{"use strict";var rZe=On(),nZe=Wo(),sZe=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new nZe(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new rZe(n,r))}),n},"minSatisfying");Nae.exports=sZe});var _ae=w((wJt,Pae)=>{"use strict";var cq=On(),oZe=Wo(),vae=bC(),iZe=i((t,e)=>{t=new oZe(t,e);let r=new cq("0.0.0");if(t.test(r)||(r=new cq("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new cq(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||vae(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||vae(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Pae.exports=iZe});var Dae=w((xJt,Qae)=>{"use strict";var aZe=Wo(),cZe=i((t,e)=>{try{return new aZe(t,e).range||"*"}catch{return null}},"validRange");Qae.exports=cZe});var IB=w((BJt,Mae)=>{"use strict";var lZe=On(),Oae=BC(),{ANY:uZe}=Oae,dZe=Wo(),pZe=NC(),kae=bC(),Lae=hB(),mZe=yB(),fZe=gB(),AZe=i((t,e,r,n)=>{t=new lZe(t,n),e=new dZe(e,n);let s,o,a,c,l;switch(r){case">":s=kae,o=mZe,a=Lae,c=">",l=">=";break;case"<":s=Lae,o=fZe,a=kae,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pZe(t,e,n))return!1;for(let u=0;u{f.semver===uZe&&(f=new Oae(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");Mae.exports=AZe});var Uae=w((NJt,Fae)=>{"use strict";var hZe=IB(),gZe=i((t,e,r)=>hZe(t,e,">",r),"gtr");Fae.exports=gZe});var Gae=w((vJt,qae)=>{"use strict";var yZe=IB(),EZe=i((t,e,r)=>yZe(t,e,"<",r),"ltr");qae.exports=EZe});var zae=w((_Jt,$ae)=>{"use strict";var Hae=Wo(),CZe=i((t,e,r)=>(t=new Hae(t,r),e=new Hae(e,r),t.intersects(e,r)),"intersects");$ae.exports=CZe});var Wae=w((DJt,Vae)=>{"use strict";var IZe=NC(),wZe=Vo();Vae.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>wZe(d,p,r));for(let d of a)IZe(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Yae=Wo(),uq=BC(),{ANY:lq}=uq,TC=NC(),dq=Vo(),SZe=i((t,e,r={})=>{if(t===e)return!0;t=new Yae(t,r),e=new Yae(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=bZe(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),xZe=[new uq(">=0.0.0-0")],Jae=[new uq(">=0.0.0")],bZe=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===lq){if(e.length===1&&e[0].semver===lq)return!0;r.includePrerelease?t=xZe:t=Jae}if(e.length===1&&e[0].semver===lq){if(r.includePrerelease)return!0;e=Jae}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=jae(s,f,r):f.operator==="<"||f.operator==="<="?o=Kae(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=dq(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!TC(f,String(s),r)||o&&!TC(f,String(o),r))return null;for(let A of e)if(!TC(f,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=jae(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!TC(s.semver,String(f),r))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=Kae(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!TC(o.semver,String(f),r))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),jae=i((t,e,r)=>{if(!t)return e;let n=dq(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Kae=i((t,e,r)=>{if(!t)return e;let n=dq(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Xae.exports=SZe});var mq=w((OJt,rce)=>{"use strict";var pq=YA(),ece=SC(),BZe=On(),tce=j2(),RZe=nm(),NZe=Rie(),TZe=Tie(),vZe=_ie(),PZe=kie(),_Ze=Oie(),QZe=Fie(),DZe=qie(),kZe=Hie(),LZe=Vo(),OZe=Wie(),MZe=Jie(),FZe=AB(),UZe=Zie(),qZe=tae(),GZe=bC(),HZe=hB(),$Ze=Z2(),zZe=eq(),VZe=gB(),WZe=yB(),YZe=tq(),JZe=uae(),jZe=BC(),KZe=Wo(),XZe=NC(),ZZe=bae(),eet=Rae(),tet=Tae(),ret=_ae(),net=Dae(),set=IB(),oet=Uae(),iet=Gae(),aet=zae(),cet=Wae(),uet=Zae();rce.exports={parse:RZe,valid:NZe,clean:TZe,inc:vZe,diff:PZe,major:_Ze,minor:QZe,patch:DZe,prerelease:kZe,compare:LZe,rcompare:OZe,compareLoose:MZe,compareBuild:FZe,sort:UZe,rsort:qZe,gt:GZe,lt:HZe,eq:$Ze,neq:zZe,gte:VZe,lte:WZe,cmp:YZe,coerce:JZe,Comparator:jZe,Range:KZe,satisfies:XZe,toComparators:ZZe,maxSatisfying:eet,minSatisfying:tet,minVersion:ret,validRange:net,outside:set,gtr:oet,ltr:iet,intersects:aet,simplifyRange:cet,subset:uet,SemVer:BZe,re:pq.re,src:pq.src,tokens:pq.t,SEMVER_SPEC_VERSION:ece.SEMVER_SPEC_VERSION,RELEASE_TYPES:ece.RELEASE_TYPES,compareIdentifiers:tce.compareIdentifiers,rcompareIdentifiers:tce.rcompareIdentifiers}});var Ece=w((Xjt,yce)=>{yce.exports=function(t,e){for(var r=[],n=0;n{"use strict";Sce.exports=Ice;function Ice(t,e,r){t instanceof RegExp&&(t=Cce(t,r)),e instanceof RegExp&&(e=Cce(e,r));var n=wce(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}i(Ice,"balanced");function Cce(t,e){var r=e.match(t);return r?r[0]:null}i(Cce,"maybeMatch");Ice.range=wce;function wce(t,e,r){var n,s,o,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],o=r.length;d>=0&&!c;)d==l?(n.push(d),l=r.indexOf(t,d+1)):n.length==1?c=[n.pop(),u]:(s=n.pop(),s=0?l:u;n.length&&(c=[o,a])}return c}i(wce,"range")});var _ce=w((t5t,Pce)=>{var vet=Ece(),bce=xce();Pce.exports=Qet;var Bce="\0SLASH"+Math.random()+"\0",Rce="\0OPEN"+Math.random()+"\0",xq="\0CLOSE"+Math.random()+"\0",Nce="\0COMMA"+Math.random()+"\0",Tce="\0PERIOD"+Math.random()+"\0";function Sq(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}i(Sq,"numeric");function Pet(t){return t.split("\\\\").join(Bce).split("\\{").join(Rce).split("\\}").join(xq).split("\\,").join(Nce).split("\\.").join(Tce)}i(Pet,"escapeBraces");function _et(t){return t.split(Bce).join("\\").split(Rce).join("{").split(xq).join("}").split(Nce).join(",").split(Tce).join(".")}i(_et,"unescapeBraces");function vce(t){if(!t)return[""];var e=[],r=bce("{","}",t);if(!r)return t.split(",");var n=r.pre,s=r.body,o=r.post,a=n.split(",");a[a.length-1]+="{"+s+"}";var c=vce(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(vce,"parseCommaParts");function Qet(t,e){if(!t)return[];e=e||{};var r=e.max==null?1/0:e.max;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),DC(Pet(t),r,!0).map(_et)}i(Qet,"expandTop");function Det(t){return"{"+t+"}"}i(Det,"embrace");function ket(t){return/^-?0\d/.test(t)}i(ket,"isPadded");function Let(t,e){return t<=e}i(Let,"lte");function Oet(t,e){return t>=e}i(Oet,"gte");function DC(t,e,r){for(var n=[];;){var s=bce("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),c=o||a,l=s.body.indexOf(",")>=0;if(!c&&!l){if(s.post.match(/,(?!,).*\}/)){t=s.pre+"{"+s.body+xq+s.post,r=!0;continue}return[t]}var u;if(c)u=s.body.split(/\.\./);else if(u=vce(s.body),u.length===1&&(u=DC(u[0],e,!1).map(Det),u.length===1)){var p=s.post.length?DC(s.post,e,!1):[""];return p.map(function(ie){return s.pre+u[0]+ie})}var d=s.pre,p=s.post.length?DC(s.post,e,!1):[""],m;if(c){var f=Sq(u[0]),A=Sq(u[1]),h=Math.max(u[0].length,u[1].length),E=u.length==3?Math.max(Math.abs(Sq(u[2])),1):1,y=Let,I=A0){var _=new Array(P+1).join("0");b<0?N="-"+_+N.slice(1):N=_+N}}m.push(N)}}else m=vet(u,function(_e){return DC(_e,e,!1)});for(var G=0;G{Oce.exports=lo;lo.Minimatch=Qr;var kC=(function(){try{return require("path")}catch{}})()||{sep:"/"};lo.sep=kC.sep;var sm=lo.GLOBSTAR=Qr.GLOBSTAR={},Met=_ce(),Qce={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},bq="[^/]",Bq=bq+"*?",Fet="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Uet="(?:(?!(?:\\/|^)\\.).)*?",Dce=qet("().*{}+?[]^$\\!");function qet(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}i(qet,"charSet");var kce=/\/+/;lo.filter=Get;function Get(t,e){return e=e||{},function(r,n,s){return lo(r,t,e)}}i(Get,"filter");function Yu(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(n){r[n]=t[n]}),Object.keys(e).forEach(function(n){r[n]=e[n]}),r}i(Yu,"ext");lo.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return lo;var e=lo,r=i(function(s,o,a){return e(s,o,Yu(t,a))},"minimatch");return r.Minimatch=i(function(s,o){return new e.Minimatch(s,Yu(t,o))},"Minimatch"),r.Minimatch.defaults=i(function(s){return e.defaults(Yu(t,s)).Minimatch},"defaults"),r.filter=i(function(s,o){return e.filter(s,Yu(t,o))},"filter"),r.defaults=i(function(s){return e.defaults(Yu(t,s))},"defaults"),r.makeRe=i(function(s,o){return e.makeRe(s,Yu(t,o))},"makeRe"),r.braceExpand=i(function(s,o){return e.braceExpand(s,Yu(t,o))},"braceExpand"),r.match=function(n,s,o){return e.match(n,s,Yu(t,o))},r};Qr.defaults=function(t){return lo.defaults(t).Minimatch};function lo(t,e,r){return RB(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new Qr(e,r).match(t)}i(lo,"minimatch");function Qr(t,e){if(!(this instanceof Qr))return new Qr(t,e);RB(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&kC.sep!=="/"&&(t=t.split(kC.sep).join("/")),this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion!==void 0?e.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}i(Qr,"Minimatch");Qr.prototype.debug=function(){};Qr.prototype.make=Het;function Het(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=i(function(){console.error.apply(console,arguments)},"debug")),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(kce)}),this.debug(this.pattern,r),r=r.map(function(n,s,o){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}i(Het,"make");Qr.prototype.parseNegate=$et;function $et(){var t=this.pattern,e=!1,r=this.options,n=0;if(!r.nonegate){for(var s=0,o=t.length;s"u"?this.pattern:t,RB(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Met(t)}i(Lce,"braceExpand");var zet=1024*64,RB=i(function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>zet)throw new TypeError("pattern is too long")},"assertValidPattern");Qr.prototype.parse=Vet;var BB={};function Vet(t,e){RB(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return sm;if(t==="")return"";var n="",s=!!r.nocase,o=!1,a=[],c=[],l,u=!1,d=-1,p=-1,m=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function A(){if(l){switch(l){case"*":n+=Bq,s=!0;break;case"?":n+=bq,s=!0;break;default:n+="\\"+l;break}f.debug("clearStateChar %j %j",l,n),l=!1}}i(A,"clearStateChar");for(var h=0,E=t.length,y;h-1;G--){var ae=c[G],Ce=n.slice(0,ae.reStart),_e=n.slice(ae.reStart,ae.reEnd-8),ie=n.slice(ae.reEnd-8,ae.reEnd),De=n.slice(ae.reEnd);ie+=De;var D=Ce.split("(").length-1,ze=De;for(h=0;h"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;kC.sep!=="/"&&(e=e.split(kC.sep).join("/")),e=e.split(kce),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var o,a;for(a=e.length-1;a>=0&&(o=e[a],!o);a--);for(a=0;a=0;o--)if(e[o]===sm){c=o;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var p=t.slice(n,n+l.length);if(!this._matchOne(p,l,r,0,0))return!1;n+=l.length}var m=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))m=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;m=d.length+1}}if(!u.length){var A=!!m;for(o=n;o{"use strict";var ntt="2.0.0",stt=Number.MAX_SAFE_INTEGER||9007199254740991,ott=16,itt=250,att=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Gce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ott,MAX_SAFE_BUILD_LENGTH:itt,MAX_SAFE_INTEGER:stt,RELEASE_TYPES:att,SEMVER_SPEC_VERSION:ntt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var MC=w((B5t,Hce)=>{"use strict";var ctt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Hce.exports=ctt});var eh=w((za,$ce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Nq,MAX_SAFE_BUILD_LENGTH:ltt,MAX_LENGTH:utt}=ZA(),dtt=MC();za=$ce.exports={};var ptt=za.re=[],mtt=za.safeRe=[],V=za.src=[],ftt=za.safeSrc=[],W=za.t={},Att=0,Tq="[a-zA-Z0-9-]",htt=[["\\s",1],["\\d",utt],[Tq,ltt]],gtt=i(t=>{for(let[e,r]of htt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Oe=i((t,e,r)=>{let n=gtt(e),s=Att++;dtt(t,s,e),W[t]=s,V[s]=e,ftt[s]=n,ptt[s]=new RegExp(e,r?"g":void 0),mtt[s]=new RegExp(n,r?"g":void 0)},"createToken");Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Tq}*`);Oe("MAINVERSION",`(${V[W.NUMERICIDENTIFIER]})\\.(${V[W.NUMERICIDENTIFIER]})\\.(${V[W.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${V[W.NUMERICIDENTIFIERLOOSE]})\\.(${V[W.NUMERICIDENTIFIERLOOSE]})\\.(${V[W.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${V[W.NONNUMERICIDENTIFIER]}|${V[W.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${V[W.NONNUMERICIDENTIFIER]}|${V[W.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${V[W.PRERELEASEIDENTIFIER]}(?:\\.${V[W.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${V[W.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[W.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${Tq}+`);Oe("BUILD",`(?:\\+(${V[W.BUILDIDENTIFIER]}(?:\\.${V[W.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${V[W.MAINVERSION]}${V[W.PRERELEASE]}?${V[W.BUILD]}?`);Oe("FULL",`^${V[W.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${V[W.MAINVERSIONLOOSE]}${V[W.PRERELEASELOOSE]}?${V[W.BUILD]}?`);Oe("LOOSE",`^${V[W.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${V[W.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${V[W.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${V[W.XRANGEIDENTIFIER]})(?:\\.(${V[W.XRANGEIDENTIFIER]})(?:\\.(${V[W.XRANGEIDENTIFIER]})(?:${V[W.PRERELEASE]})?${V[W.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${V[W.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[W.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[W.XRANGEIDENTIFIERLOOSE]})(?:${V[W.PRERELEASELOOSE]})?${V[W.BUILD]}?)?)?`);Oe("XRANGE",`^${V[W.GTLT]}\\s*${V[W.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${V[W.GTLT]}\\s*${V[W.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Nq}})(?:\\.(\\d{1,${Nq}}))?(?:\\.(\\d{1,${Nq}}))?`);Oe("COERCE",`${V[W.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",V[W.COERCEPLAIN]+`(?:${V[W.PRERELEASE]})?(?:${V[W.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",V[W.COERCE],!0);Oe("COERCERTLFULL",V[W.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${V[W.LONETILDE]}\\s+`,!0);za.tildeTrimReplace="$1~";Oe("TILDE",`^${V[W.LONETILDE]}${V[W.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${V[W.LONETILDE]}${V[W.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${V[W.LONECARET]}\\s+`,!0);za.caretTrimReplace="$1^";Oe("CARET",`^${V[W.LONECARET]}${V[W.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${V[W.LONECARET]}${V[W.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${V[W.GTLT]}\\s*(${V[W.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${V[W.GTLT]}\\s*(${V[W.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${V[W.GTLT]}\\s*(${V[W.LOOSEPLAIN]}|${V[W.XRANGEPLAIN]})`,!0);za.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${V[W.XRANGEPLAIN]})\\s+-\\s+(${V[W.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${V[W.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[W.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var vB=w((N5t,zce)=>{"use strict";var ytt=Object.freeze({loose:!0}),Ett=Object.freeze({}),Ctt=i(t=>t?typeof t!="object"?ytt:t:Ett,"parseOptions");zce.exports=Ctt});var vq=w((v5t,Yce)=>{"use strict";var Vce=/^[0-9]+$/,Wce=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tWce(e,t),"rcompareIdentifiers");Yce.exports={compareIdentifiers:Wce,rcompareIdentifiers:Itt}});var En=w((_5t,jce)=>{"use strict";var PB=MC(),{MAX_LENGTH:Jce,MAX_SAFE_INTEGER:_B}=ZA(),{safeRe:QB,t:DB}=eh(),wtt=vB(),{compareIdentifiers:Pq}=vq(),_q=class t{static{i(this,"SemVer")}constructor(e,r){if(r=wtt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Jce)throw new TypeError(`version is longer than ${Jce} characters`);PB("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?QB[DB.LOOSE]:QB[DB.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_B||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_B||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_B||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<_B)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(PB("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.majore.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(PB("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pq(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(PB("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Pq(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?QB[DB.PRERELEASELOOSE]:QB[DB.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),Pq(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};jce.exports=_q});var Ku=w((D5t,Xce)=>{"use strict";var Kce=En(),Stt=i((t,e,r=!1)=>{if(t instanceof Kce)return t;try{return new Kce(t,e)}catch(n){if(!r)return null;throw n}},"parse");Xce.exports=Stt});var ele=w((L5t,Zce)=>{"use strict";var xtt=Ku(),btt=i((t,e)=>{let r=xtt(t,e);return r?r.version:null},"valid");Zce.exports=btt});var rle=w((M5t,tle)=>{"use strict";var Btt=Ku(),Rtt=i((t,e)=>{let r=Btt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");tle.exports=Rtt});var ole=w((U5t,sle)=>{"use strict";var nle=En(),Ntt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new nle(t instanceof nle?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");sle.exports=Ntt});var cle=w((G5t,ale)=>{"use strict";var ile=Ku(),Ttt=i((t,e)=>{let r=ile(t,null,!0),n=ile(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");ale.exports=Ttt});var ule=w(($5t,lle)=>{"use strict";var vtt=En(),Ptt=i((t,e)=>new vtt(t,e).major,"major");lle.exports=Ptt});var ple=w((V5t,dle)=>{"use strict";var _tt=En(),Qtt=i((t,e)=>new _tt(t,e).minor,"minor");dle.exports=Qtt});var fle=w((Y5t,mle)=>{"use strict";var Dtt=En(),ktt=i((t,e)=>new Dtt(t,e).patch,"patch");mle.exports=ktt});var hle=w((j5t,Ale)=>{"use strict";var Ltt=Ku(),Ott=i((t,e)=>{let r=Ltt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Ale.exports=Ott});var jo=w((X5t,yle)=>{"use strict";var gle=En(),Mtt=i((t,e,r)=>new gle(t,r).compare(new gle(e,r)),"compare");yle.exports=Mtt});var Cle=w((e6t,Ele)=>{"use strict";var Ftt=jo(),Utt=i((t,e,r)=>Ftt(e,t,r),"rcompare");Ele.exports=Utt});var wle=w((r6t,Ile)=>{"use strict";var qtt=jo(),Gtt=i((t,e)=>qtt(t,e,!0),"compareLoose");Ile.exports=Gtt});var kB=w((s6t,xle)=>{"use strict";var Sle=En(),Htt=i((t,e,r)=>{let n=new Sle(t,r),s=new Sle(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");xle.exports=Htt});var Ble=w((i6t,ble)=>{"use strict";var $tt=kB(),ztt=i((t,e)=>t.sort((r,n)=>$tt(r,n,e)),"sort");ble.exports=ztt});var Nle=w((c6t,Rle)=>{"use strict";var Vtt=kB(),Wtt=i((t,e)=>t.sort((r,n)=>Vtt(n,r,e)),"rsort");Rle.exports=Wtt});var FC=w((u6t,Tle)=>{"use strict";var Ytt=jo(),Jtt=i((t,e,r)=>Ytt(t,e,r)>0,"gt");Tle.exports=Jtt});var LB=w((p6t,vle)=>{"use strict";var jtt=jo(),Ktt=i((t,e,r)=>jtt(t,e,r)<0,"lt");vle.exports=Ktt});var Qq=w((f6t,Ple)=>{"use strict";var Xtt=jo(),Ztt=i((t,e,r)=>Xtt(t,e,r)===0,"eq");Ple.exports=Ztt});var Dq=w((h6t,_le)=>{"use strict";var ert=jo(),trt=i((t,e,r)=>ert(t,e,r)!==0,"neq");_le.exports=trt});var OB=w((y6t,Qle)=>{"use strict";var rrt=jo(),nrt=i((t,e,r)=>rrt(t,e,r)>=0,"gte");Qle.exports=nrt});var MB=w((C6t,Dle)=>{"use strict";var srt=jo(),ort=i((t,e,r)=>srt(t,e,r)<=0,"lte");Dle.exports=ort});var kq=w((w6t,kle)=>{"use strict";var irt=Qq(),art=Dq(),crt=FC(),lrt=OB(),urt=LB(),drt=MB(),prt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return irt(t,r,n);case"!=":return art(t,r,n);case">":return crt(t,r,n);case">=":return lrt(t,r,n);case"<":return urt(t,r,n);case"<=":return drt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");kle.exports=prt});var Ole=w((x6t,Lle)=>{"use strict";var mrt=En(),frt=Ku(),{safeRe:FB,t:UB}=eh(),Art=i((t,e)=>{if(t instanceof mrt)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?FB[UB.COERCEFULL]:FB[UB.COERCE]);else{let l=e.includePrerelease?FB[UB.COERCERTLFULL]:FB[UB.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return frt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Lle.exports=Art});var Fle=w((B6t,Mle)=>{"use strict";var hrt=Ku(),grt=ZA(),yrt=En(),Ert=i((t,e,r)=>{if(!grt.RELEASE_TYPES.includes(e))return null;let n=Crt(t,r);return n&&Irt(n,e)},"truncate"),Crt=i((t,e)=>{let r=t instanceof yrt?t.version:t;return hrt(r,e)},"cloneInputVersion"),Irt=i((t,e)=>{if(wrt(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),wrt=i(t=>t.startsWith("pre"),"isPrerelease");Mle.exports=Ert});var qle=w((N6t,Ule)=>{"use strict";var Lq=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Ule.exports=Lq});var Ko=w((v6t,zle)=>{"use strict";var Srt=/\s+/g,Oq=class t{static{i(this,"Range")}constructor(e,r){if(r=brt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Mq)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Srt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Hle(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Drt(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(Qrt,"");let n=((this.options.includePrerelease&&Prt)|(this.options.loose&&_rt))+":"+e,s=Gle.get(n);if(s)return s;let o=this.options.loose,a=o?ns[Cn.HYPHENRANGELOOSE]:ns[Cn.HYPHENRANGE];e=e.replace(a,$rt(this.options.includePrerelease)),kt("hyphen replace",e),e=e.replace(ns[Cn.COMPARATORTRIM],Nrt),kt("comparator trim",e),e=e.replace(ns[Cn.TILDETRIM],Trt),kt("tilde trim",e),e=e.replace(ns[Cn.CARETTRIM],vrt),kt("caret trim",e);let c=e.split(" ").map(p=>krt(p,this.options)).join(" ").split(/\s+/).map(p=>Hrt(p,this.options));o&&(c=c.filter(p=>(kt("loose invalid filter",p,this.options),!!p.match(ns[Cn.COMPARATORLOOSE])))),kt("range list",c);let l=new Map,u=c.map(p=>new Mq(p,this.options));for(let p of u){if(Hle(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Gle.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>$le(n,r)&&e.set.some(s=>$le(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Brt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Drt=i(t=>t.value==="","isAny"),$le=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),krt=i((t,e)=>(t=t.replace(ns[Cn.BUILD],""),kt("comp",t,e),t=Mrt(t,e),kt("caret",t),t=Lrt(t,e),kt("tildes",t),t=Urt(t,e),kt("xrange",t),t=Grt(t,e),kt("stars",t),t),"parseComparator"),ss=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Lrt=i((t,e)=>t.trim().split(/\s+/).map(r=>Ort(r,e)).join(" "),"replaceTildes"),Ort=i((t,e)=>{let r=e.loose?ns[Cn.TILDELOOSE]:ns[Cn.TILDE];return t.replace(r,(n,s,o,a,c)=>{kt("tilde",t,n,s,o,a,c);let l;return ss(s)?l="":ss(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ss(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(kt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,kt("tilde return",l),l})},"replaceTilde"),Mrt=i((t,e)=>t.trim().split(/\s+/).map(r=>Frt(r,e)).join(" "),"replaceCarets"),Frt=i((t,e)=>{kt("caret",t,e);let r=e.loose?ns[Cn.CARETLOOSE]:ns[Cn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{kt("caret",t,s,o,a,c,l);let u;return ss(o)?u="":ss(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ss(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(kt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(kt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),kt("caret return",u),u})},"replaceCaret"),Urt=i((t,e)=>(kt("replaceXRanges",t,e),t.split(/\s+/).map(r=>qrt(r,e)).join(" ")),"replaceXRanges"),qrt=i((t,e)=>{t=t.trim();let r=e.loose?ns[Cn.XRANGELOOSE]:ns[Cn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{kt("xRange",t,n,s,o,a,c,l);let u=ss(o),d=u||ss(a),p=d||ss(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),kt("xRange return",n),n})},"replaceXRange"),Grt=i((t,e)=>(kt("replaceStars",t,e),t.trim().replace(ns[Cn.STAR],"")),"replaceStars"),Hrt=i((t,e)=>(kt("replaceGTE0",t,e),t.trim().replace(ns[e.includePrerelease?Cn.GTE0PRE:Cn.GTE0],"")),"replaceGTE0"),$rt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(ss(n)?r="":ss(s)?r=`>=${n}.0.0${t?"-0":""}`:ss(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ss(u)?l="":ss(d)?l=`<${+u+1}.0.0-0`:ss(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),zrt=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var UC=w((_6t,Kle)=>{"use strict";var qC=Symbol("SemVer ANY"),qq=class t{static{i(this,"Comparator")}static get ANY(){return qC}constructor(e,r){if(r=Vle(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Uq("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===qC?this.value="":this.value=this.operator+this.semver.version,Uq("comp",this)}parse(e){let r=this.options.loose?Wle[Yle.COMPARATORLOOSE]:Wle[Yle.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Jle(n[2],this.options.loose):this.semver=qC}toString(){return this.value}test(e){if(Uq("Comparator.test",e,this.options.loose),this.semver===qC||e===qC)return!0;if(typeof e=="string")try{e=new Jle(e,this.options)}catch{return!1}return Fq(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new jle(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new jle(this.value,r).test(e.semver):(r=Vle(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Fq(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Fq(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Kle.exports=qq;var Vle=vB(),{safeRe:Wle,t:Yle}=eh(),Fq=kq(),Uq=MC(),Jle=En(),jle=Ko()});var GC=w((D6t,Xle)=>{"use strict";var Vrt=Ko(),Wrt=i((t,e,r)=>{try{e=new Vrt(e,r)}catch{return!1}return e.test(t)},"satisfies");Xle.exports=Wrt});var eue=w((L6t,Zle)=>{"use strict";var Yrt=Ko(),Jrt=i((t,e)=>new Yrt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Zle.exports=Jrt});var rue=w((M6t,tue)=>{"use strict";var jrt=En(),Krt=Ko(),Xrt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Krt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new jrt(n,r))}),n},"maxSatisfying");tue.exports=Xrt});var sue=w((U6t,nue)=>{"use strict";var Zrt=En(),ent=Ko(),tnt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new ent(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Zrt(n,r))}),n},"minSatisfying");nue.exports=tnt});var aue=w((G6t,iue)=>{"use strict";var Gq=En(),rnt=Ko(),oue=FC(),nnt=i((t,e)=>{t=new rnt(t,e);let r=new Gq("0.0.0");if(t.test(r)||(r=new Gq("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new Gq(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||oue(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||oue(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");iue.exports=nnt});var lue=w(($6t,cue)=>{"use strict";var snt=Ko(),ont=i((t,e)=>{try{return new snt(t,e).range||"*"}catch{return null}},"validRange");cue.exports=ont});var qB=w((V6t,mue)=>{"use strict";var int=En(),pue=UC(),{ANY:ant}=pue,cnt=Ko(),lnt=GC(),uue=FC(),due=LB(),unt=MB(),dnt=OB(),pnt=i((t,e,r,n)=>{t=new int(t,n),e=new cnt(e,n);let s,o,a,c,l;switch(r){case">":s=uue,o=unt,a=due,c=">",l=">=";break;case"<":s=due,o=dnt,a=uue,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lnt(t,e,n))return!1;for(let u=0;u{f.semver===ant&&(f=new pue(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");mue.exports=pnt});var Aue=w((Y6t,fue)=>{"use strict";var mnt=qB(),fnt=i((t,e,r)=>mnt(t,e,">",r),"gtr");fue.exports=fnt});var gue=w((j6t,hue)=>{"use strict";var Ant=qB(),hnt=i((t,e,r)=>Ant(t,e,"<",r),"ltr");hue.exports=hnt});var Cue=w((X6t,Eue)=>{"use strict";var yue=Ko(),gnt=i((t,e,r)=>(t=new yue(t,r),e=new yue(e,r),t.intersects(e,r)),"intersects");Eue.exports=gnt});var wue=w((e9t,Iue)=>{"use strict";var ynt=GC(),Ent=jo();Iue.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Ent(d,p,r));for(let d of a)ynt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Sue=Ko(),zq=UC(),{ANY:Hq}=zq,$q=GC(),Vq=jo(),Cnt=i((t,e,r={})=>{if(t===e)return!0;t=new Sue(t,r),e=new Sue(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=wnt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),Int=[new zq(">=0.0.0-0")],xue=[new zq(">=0.0.0")],wnt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Hq){if(e.length===1&&e[0].semver===Hq)return!0;r.includePrerelease?t=Int:t=xue}if(e.length===1&&e[0].semver===Hq){if(r.includePrerelease)return!0;e=xue}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=bue(s,f,r):f.operator==="<"||f.operator==="<="?o=Bue(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Vq(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!$q(f,String(s),r)||o&&!$q(f,String(o),r))return null;for(let A of e)if(!$q(f,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=bue(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=Bue(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),bue=i((t,e,r)=>{if(!t)return e;let n=Vq(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Bue=i((t,e,r)=>{if(!t)return e;let n=Vq(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Rue.exports=Cnt});var _ue=w((n9t,Pue)=>{"use strict";var Wq=eh(),Tue=ZA(),Snt=En(),vue=vq(),xnt=Ku(),bnt=ele(),Bnt=rle(),Rnt=ole(),Nnt=cle(),Tnt=ule(),vnt=ple(),Pnt=fle(),_nt=hle(),Qnt=jo(),Dnt=Cle(),knt=wle(),Lnt=kB(),Ont=Ble(),Mnt=Nle(),Fnt=FC(),Unt=LB(),qnt=Qq(),Gnt=Dq(),Hnt=OB(),$nt=MB(),znt=kq(),Vnt=Ole(),Wnt=Fle(),Ynt=UC(),Jnt=Ko(),jnt=GC(),Knt=eue(),Xnt=rue(),Znt=sue(),est=aue(),tst=lue(),rst=qB(),nst=Aue(),sst=gue(),ost=Cue(),ist=wue(),ast=Nue();Pue.exports={parse:xnt,valid:bnt,clean:Bnt,inc:Rnt,diff:Nnt,major:Tnt,minor:vnt,patch:Pnt,prerelease:_nt,compare:Qnt,rcompare:Dnt,compareLoose:knt,compareBuild:Lnt,sort:Ont,rsort:Mnt,gt:Fnt,lt:Unt,eq:qnt,neq:Gnt,gte:Hnt,lte:$nt,cmp:znt,coerce:Vnt,truncate:Wnt,Comparator:Ynt,Range:Jnt,satisfies:jnt,toComparators:Knt,maxSatisfying:Xnt,minSatisfying:Znt,minVersion:est,validRange:tst,outside:rst,gtr:nst,ltr:sst,intersects:ost,simplifyRange:ist,subset:ast,SemVer:Snt,re:Wq.re,src:Wq.src,tokens:Wq.t,SEMVER_SPEC_VERSION:Tue.SEMVER_SPEC_VERSION,RELEASE_TYPES:Tue.RELEASE_TYPES,compareIdentifiers:vue.compareIdentifiers,rcompareIdentifiers:vue.rcompareIdentifiers}});var Ide=w((aXt,Cde)=>{var ah=1e3,ch=ah*60,lh=ch*60,mm=lh*24,Hst=mm*7,$st=mm*365.25;Cde.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return zst(t);if(r==="number"&&isFinite(t))return e.long?Wst(t):Vst(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zst(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*$st;case"weeks":case"week":case"w":return r*Hst;case"days":case"day":case"d":return r*mm;case"hours":case"hour":case"hrs":case"hr":case"h":return r*lh;case"minutes":case"minute":case"mins":case"min":case"m":return r*ch;case"seconds":case"second":case"secs":case"sec":case"s":return r*ah;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(zst,"parse");function Vst(t){var e=Math.abs(t);return e>=mm?Math.round(t/mm)+"d":e>=lh?Math.round(t/lh)+"h":e>=ch?Math.round(t/ch)+"m":e>=ah?Math.round(t/ah)+"s":t+"ms"}i(Vst,"fmtShort");function Wst(t){var e=Math.abs(t);return e>=mm?mR(t,e,mm,"day"):e>=lh?mR(t,e,lh,"hour"):e>=ch?mR(t,e,ch,"minute"):e>=ah?mR(t,e,ah,"second"):t+" ms"}i(Wst,"fmtLong");function mR(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(mR,"plural")});var yG=w((lXt,wde)=>{function Yst(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=Ide(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let m=0;m{if(P==="%%")return"%";b++;let G=r.formatters[_];if(typeof G=="function"){let ae=E[b];P=G.call(y,ae),E.splice(b,1),b--}return P}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return i(h,"debug"),h.namespace=d,h.useColors=r.useColors(),h.color=r.selectColor(d),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:i(()=>m!==null?m:(f!==r.namespaces&&(f=r.namespaces,A=r.enabled(d)),A),"get"),set:i(E=>{m=E},"set")}),typeof r.init=="function"&&r.init(h),h}i(r,"createDebug");function n(d,p){let m=r(this.namespace+(typeof p>"u"?":":p)+d);return m.log=this.log,m}i(n,"extend");function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,m=(typeof d=="string"?d:"").split(/[\s,]+/),f=m.length;for(p=0;p"-"+p)].join(",");return r.enable(""),d}i(o,"disable");function a(d){if(d[d.length-1]==="*")return!0;let p,m;for(p=0,m=r.skips.length;p{fo.formatArgs=jst;fo.save=Kst;fo.load=Xst;fo.useColors=Jst;fo.storage=Zst();fo.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();fo.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 Jst(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(Jst,"useColors");function jst(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+fR.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}i(jst,"formatArgs");fo.log=console.debug||console.log||(()=>{});function Kst(t){try{t?fo.storage.setItem("debug",t):fo.storage.removeItem("debug")}catch{}}i(Kst,"save");function Xst(){let t;try{t=fo.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(Xst,"load");function Zst(){try{return localStorage}catch{}}i(Zst,"localstorage");fR.exports=yG()(fo);var{formatters:eot}=fR.exports;eot.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var bde=w((pXt,xde)=>{"use strict";xde.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var tot=require("os"),Bde=require("tty"),Zo=bde(),{env:Zr}=process,ed;Zo("no-color")||Zo("no-colors")||Zo("color=false")||Zo("color=never")?ed=0:(Zo("color")||Zo("colors")||Zo("color=true")||Zo("color=always"))&&(ed=1);"FORCE_COLOR"in Zr&&(Zr.FORCE_COLOR==="true"?ed=1:Zr.FORCE_COLOR==="false"?ed=0:ed=Zr.FORCE_COLOR.length===0?1:Math.min(parseInt(Zr.FORCE_COLOR,10),3));function EG(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(EG,"translateLevel");function CG(t,e){if(ed===0)return 0;if(Zo("color=16m")||Zo("color=full")||Zo("color=truecolor"))return 3;if(Zo("color=256"))return 2;if(t&&!e&&ed===void 0)return 0;let r=ed||0;if(Zr.TERM==="dumb")return r;if(process.platform==="win32"){let n=tot.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Zr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Zr)||Zr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Zr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Zr.TEAMCITY_VERSION)?1:0;if(Zr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Zr){let n=parseInt((Zr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Zr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Zr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Zr.TERM)||"COLORTERM"in Zr?1:r}i(CG,"supportsColor");function rot(t){let e=CG(t,t&&t.isTTY);return EG(e)}i(rot,"getSupportLevel");Rde.exports={supportsColor:rot,stdout:EG(CG(!0,Bde.isatty(1))),stderr:EG(CG(!0,Bde.isatty(2)))}});var vde=w((In,hR)=>{var not=require("tty"),AR=require("util");In.init=uot;In.log=aot;In.formatArgs=oot;In.save=cot;In.load=lot;In.useColors=sot;In.destroy=AR.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");In.colors=[6,2,3,4,5,1];try{let t=Nde();t&&(t.stderr||t).level>=2&&(In.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{}In.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function sot(){return"colors"in In.inspectOpts?!!In.inspectOpts.colors:not.isatty(process.stderr.fd)}i(sot,"useColors");function oot(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(` +`.trim())}};Lre.exports=G1});var JE=w((xWt,qre)=>{"use strict";var Mre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:qJe}=it(),GJe=xA();Ure()===void 0&&Fre(new GJe);function Fre(t){if(!t||typeof t.dispatch!="function")throw new qJe("Argument agent must implement Agent");Object.defineProperty(globalThis,Mre,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Fre,"setGlobalDispatcher");function Ure(){return globalThis[Mre]}i(Ure,"getGlobalDispatcher");qre.exports={setGlobalDispatcher:Fre,getGlobalDispatcher:Ure}});var C0=w((RWt,Gre)=>{"use strict";Gre.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Hre=w((TWt,$re)=>{"use strict";var $Je=Zb();$re.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new $Je(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Vre=w((vWt,zre)=>{"use strict";var HJe=u0();zre.exports=t=>e=>i(function(n,s){return e(n,new HJe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Yre=w((QWt,Wre)=>{"use strict";var zJe=ze(),{InvalidArgumentError:VJe,RequestAbortedError:WJe}=it(),YJe=C0(),$1=class extends YJe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#o=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new VJe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#o=e}onHeaders(e,r,n,s){let a=zJe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new WJe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#o??e,this.#i.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#i.onError(this.#o):this.#i.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function JJe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new $1({maxSize:o},s);return e(n,a)},"Intercept")}i(JJe,"createDumpInterceptor");Wre.exports=JJe});var Kre=w((kWt,jre)=>{"use strict";var{isIP:jJe}=require("node:net"),{lookup:KJe}=require("node:dns"),XJe=C0(),{InvalidArgumentError:QA,InformationalError:ZJe}=it(),Jre=Math.pow(2,31)-1,H1=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new ZJe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,o.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,o.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){KJe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Jre?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===Jre?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new z1(this,e,r)}},z1=class extends XJe{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},o){super(n),this.#s=r,this.#r=n,this.#t={...o},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)return this.#r.onError(r);let s={...this.#t,origin:n};this.#n(s,this)});return}this.#r.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#s);default:this.#r.onError(e);break}}};jre.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new QA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new QA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new QA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new QA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new QA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new QA("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},s=new H1(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return jJe(u.hostname)!==0?o(c,l):(s.runLookup(u,c,(d,p)=>{if(d)return l.onError(d);let f=null;f={...c,servername:u.hostname,origin:p,headers:{host:u.hostname,...c.headers}},o(f,s.getHandler({origin:u,dispatch:o,handler:l},c))}),!0)},"dnsInterceptor")}});var Vp=w((OWt,sne)=>{"use strict";var{kConstruct:eje}=qt(),{kEnumerableProperty:DA}=ze(),{iteratorMixin:tje,isValidHeaderName:jE,isValidHeaderValue:Zre}=eo(),{webidl:rt}=yn(),V1=require("node:assert"),I0=require("node:util"),Pr=Symbol("headers map"),so=Symbol("headers map sorted");function Xre(t){return t===10||t===13||t===9||t===32}i(Xre,"isHTTPWhiteSpaceCharCode");function ene(t){let e=0,r=t.length;for(;r>e&&Xre(t.charCodeAt(r-1));)--r;for(;r>e&&Xre(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(ene,"headerValueNormalize");function tne(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i(tne,"fill");function W1(t,e,r){if(r=ene(r),jE(e)){if(!Zre(r))throw rt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw rt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(nne(t)==="immutable")throw new TypeError("immutable");return Y1(t).append(e,r,!1)}i(W1,"appendHeader");function rne(t,e){return t[0]>1),r[u][0]<=d[0]?l=u+1:c=u;if(o!==u){for(a=o;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:s,1:{value:o}}of this[Pr])r[n++]=[s,o],V1(o!==null);return r.sort(rne)}}},Ui=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){rt.util.markAsUncloneable(this),e!==eje&&(this.#t=new w0,this.#e="none",e!==void 0&&(e=rt.converters.HeadersInit(e,"Headers contructor","init"),tne(this,e)))}append(e,r){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=rt.converters.ByteString(e,n,"name"),r=rt.converters.ByteString(r,n,"value"),W1(this,e,r)}delete(e){if(rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.delete"),e=rt.converters.ByteString(e,"Headers.delete","name"),!jE(e))throw rt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.contains(e,!1)&&this.#t.delete(e,!1)}get(e){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=rt.converters.ByteString(e,r,"name"),!jE(e))throw rt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=rt.converters.ByteString(e,r,"name"),!jE(e))throw rt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){rt.brandCheck(this,t),rt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=rt.converters.ByteString(e,n,"name"),r=rt.converters.ByteString(r,n,"value"),r=ene(r),jE(e)){if(!Zre(r))throw rt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw rt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){rt.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[so](){if(this.#t[so])return this.#t[so];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[so]=r;for(let s=0;s>"](t,e,r,n.bind(t)):rt.converters["record"](t,e,r)}throw rt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};sne.exports={fill:tne,compareHeaderName:rne,Headers:Ui,HeadersList:w0,getHeadersGuard:nne,setHeadersGuard:rje,setHeadersList:nje,getHeadersList:Y1}});var XE=w((FWt,hne)=>{"use strict";var{Headers:une,HeadersList:one,fill:sje,getHeadersGuard:oje,setHeadersGuard:dne,setHeadersList:pne}=Vp(),{extractBody:ine,cloneBody:ije,mixinBody:aje,hasFinalizationRegistry:fne,streamRegistry:mne,bodyUnusable:cje}=AA(),J1=ze(),ane=require("node:util"),{kEnumerableProperty:oo}=J1,{isValidReasonPhrase:lje,isCancelled:uje,isAborted:dje,isBlobLike:pje,serializeJavascriptValueToJSONString:fje,isErrorLike:mje,isomorphicEncode:Aje,environmentSettingsObject:hje}=eo(),{redirectStatusSet:gje,nullBodyStatus:yje}=CE(),{kState:$t,kHeaders:vl}=Bu(),{webidl:qe}=yn(),{FormData:Eje}=BE(),{URLSerializer:cne}=Is(),{kConstruct:x0}=qt(),j1=require("node:assert"),{types:Cje}=require("node:util"),Ije=new TextEncoder("utf-8"),Wp=class t{static{i(this,"Response")}static error(){return KE(b0(),"immutable")}static json(e,r={}){qe.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=qe.converters.ResponseInit(r));let n=Ije.encode(fje(e)),s=ine(n),o=KE(kA({}),"response");return lne(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){qe.argumentLengthCheck(arguments,1,"Response.redirect"),e=qe.converters.USVString(e),r=qe.converters["unsigned short"](r);let n;try{n=new URL(e,hje.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!gje.has(r))throw new RangeError(`Invalid status code ${r}`);let s=KE(kA({}),"immutable");s[$t].status=r;let o=Aje(cne(n));return s[$t].headersList.append("location",o,!0),s}constructor(e=null,r={}){if(qe.util.markAsUncloneable(this),e===x0)return;e!==null&&(e=qe.converters.BodyInit(e)),r=qe.converters.ResponseInit(r),this[$t]=kA({}),this[vl]=new une(x0),dne(this[vl],"response"),pne(this[vl],this[$t].headersList);let n=null;if(e!=null){let[s,o]=ine(e);n={body:s,type:o}}lne(this,r,n)}get type(){return qe.brandCheck(this,t),this[$t].type}get url(){qe.brandCheck(this,t);let e=this[$t].urlList,r=e[e.length-1]??null;return r===null?"":cne(r,!0)}get redirected(){return qe.brandCheck(this,t),this[$t].urlList.length>1}get status(){return qe.brandCheck(this,t),this[$t].status}get ok(){return qe.brandCheck(this,t),this[$t].status>=200&&this[$t].status<=299}get statusText(){return qe.brandCheck(this,t),this[$t].statusText}get headers(){return qe.brandCheck(this,t),this[vl]}get body(){return qe.brandCheck(this,t),this[$t].body?this[$t].body.stream:null}get bodyUsed(){return qe.brandCheck(this,t),!!this[$t].body&&J1.isDisturbed(this[$t].body.stream)}clone(){if(qe.brandCheck(this,t),cje(this))throw qe.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=K1(this[$t]);return fne&&this[$t].body?.stream&&mne.register(this,new WeakRef(this[$t].body.stream)),KE(e,oje(this[vl]))}[ane.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let 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 ${ane.formatWithOptions(r,n)}`}};aje(Wp);Object.defineProperties(Wp.prototype,{type:oo,url:oo,status:oo,ok:oo,redirected:oo,statusText:oo,headers:oo,clone:oo,body:oo,bodyUsed:oo,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Wp,{json:oo,redirect:oo,error:oo});function K1(t){if(t.internalResponse)return Ane(K1(t.internalResponse),t.type);let e=kA({...t,body:null});return t.body!=null&&(e.body=ije(e,t.body)),e}i(K1,"cloneResponse");function kA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new one(t?.headersList):new one,urlList:t?.urlList?[...t.urlList]:[]}}i(kA,"makeResponse");function b0(t){let e=mje(t);return kA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(b0,"makeNetworkError");function wje(t){return t.type==="error"&&t.status===0}i(wje,"isNetworkError");function S0(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,s){return j1(!(n in e)),r[n]=s,!0}})}i(S0,"makeFilteredResponse");function Ane(t,e){if(e==="basic")return S0(t,{type:"basic",headersList:t.headersList});if(e==="cors")return S0(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return S0(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return S0(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});j1(!1)}i(Ane,"filterResponse");function Sje(t,e=null){return j1(uje(t)),dje(t)?b0(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):b0(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(Sje,"makeAppropriateNetworkError");function lne(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!lje(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[$t].status=e.status),"statusText"in e&&e.statusText!=null&&(t[$t].statusText=e.statusText),"headers"in e&&e.headers!=null&&sje(t[vl],e.headers),r){if(yje.includes(t.status))throw qe.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[$t].body=r.body,r.type!=null&&!t[$t].headersList.contains("content-type",!0)&&t[$t].headersList.append("content-type",r.type,!0)}}i(lne,"initializeResponse");function KE(t,e){let r=new Wp(x0);return r[$t]=t,r[vl]=new une(x0),pne(r[vl],t.headersList),dne(r[vl],e),fne&&t.body?.stream&&mne.register(r,new WeakRef(t.body.stream)),r}i(KE,"fromInnerResponse");qe.converters.ReadableStream=qe.interfaceConverter(ReadableStream);qe.converters.FormData=qe.interfaceConverter(Eje);qe.converters.URLSearchParams=qe.interfaceConverter(URLSearchParams);qe.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?qe.converters.USVString(t,e,r):pje(t)?qe.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Cje.isArrayBuffer(t)?qe.converters.BufferSource(t,e,r):J1.isFormDataLike(t)?qe.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?qe.converters.URLSearchParams(t,e,r):qe.converters.DOMString(t,e,r)};qe.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?qe.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:qe.converters.XMLHttpRequestBodyInit(t,e,r)};qe.converters.ResponseInit=qe.dictionaryConverter([{key:"status",converter:qe.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:qe.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:qe.converters.HeadersInit}]);hne.exports={isNetworkError:wje,makeNetworkError:b0,makeResponse:kA,makeAppropriateNetworkError:Sje,filterResponse:Ane,Response:Wp,cloneResponse:K1,fromInnerResponse:KE}});var Cne=w((qWt,Ene)=>{"use strict";var{kConnected:gne,kSize:yne}=qt(),X1=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[gne]===0&&this.value[yne]===0?void 0:this.value}},Z1=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[gne]===0&&e[yne]===0&&this.finalizer(r)})}unregister(e){}};Ene.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:X1,FinalizationRegistry:Z1}):{WeakRef,FinalizationRegistry}}});var LA=w(($Wt,kne)=>{"use strict";var{extractBody:xje,mixinBody:bje,cloneBody:Bje,bodyUnusable:Ine}=AA(),{Headers:Pne,fill:Rje,HeadersList:T0,setHeadersGuard:t2,getHeadersGuard:Nje,setHeadersList:vne,getHeadersList:wne}=Vp(),{FinalizationRegistry:Tje}=Cne()(),R0=ze(),Sne=require("node:util"),{isValidHTTPToken:Pje,sameOrigin:xne,environmentSettingsObject:B0}=eo(),{forbiddenMethodsSet:vje,corsSafeListedMethodsSet:_je,referrerPolicy:Qje,requestRedirect:Dje,requestMode:kje,requestCredentials:Lje,requestCache:Oje,requestDuplex:Mje}=CE(),{kEnumerableProperty:vr,normalizedMethodRecordsBase:Fje,normalizedMethodRecords:Uje}=R0,{kHeaders:io,kSignal:N0,kState:Qt,kDispatcher:e2}=Bu(),{webidl:ye}=yn(),{URLSerializer:qje}=Is(),{kConstruct:P0}=qt(),Gje=require("node:assert"),{getMaxListeners:bne,setMaxListeners:Bne,getEventListeners:$je,defaultMaxListeners:Rne}=require("node:events"),Hje=Symbol("abortController"),_ne=new Tje(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),v0=new WeakMap;function Nne(t){return e;function e(){let r=t.deref();if(r!==void 0){_ne.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=v0.get(r.signal);if(n!==void 0){if(n.size!==0){for(let s of n){let o=s.deref();o!==void 0&&o.abort(this.reason)}n.clear()}v0.delete(r.signal)}}}}i(Nne,"buildAbort");var Tne=!1,Ou=class t{static{i(this,"Request")}constructor(e,r={}){if(ye.util.markAsUncloneable(this),e===P0)return;let n="Request constructor";ye.argumentLengthCheck(arguments,1,n),e=ye.converters.RequestInfo(e,n,"input"),r=ye.converters.RequestInit(r,n,"init");let s=null,o=null,a=B0.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[e2]=r.dispatcher;let y;try{y=new URL(e,a)}catch(I){throw new TypeError("Failed to parse URL from "+e,{cause:I})}if(y.username||y.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=_0({urlList:[y]}),o="cors"}else this[e2]=r.dispatcher||e[e2],Gje(e instanceof t),s=e[Qt],c=e[N0];let l=B0.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&xne(s.window,l)&&(u=s.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),s=_0({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:B0.settingsObject,window:u,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let d=Object.keys(r).length!==0;if(d&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),r.referrer!==void 0){let y=r.referrer;if(y==="")s.referrer="no-referrer";else{let I;try{I=new URL(y,a)}catch(x){throw new TypeError(`Referrer "${y}" is not a valid URL.`,{cause:x})}I.protocol==="about:"&&I.hostname==="client"||l&&!xne(I,B0.settingsObject.baseUrl)?s.referrer="client":s.referrer=I}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw ye.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(p!=null&&(s.mode=p),r.credentials!==void 0&&(s.credentials=r.credentials),r.cache!==void 0&&(s.cache=r.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(s.redirect=r.redirect),r.integrity!=null&&(s.integrity=String(r.integrity)),r.keepalive!==void 0&&(s.keepalive=!!r.keepalive),r.method!==void 0){let y=r.method,I=Uje[y];if(I!==void 0)s.method=I;else{if(!Pje(y))throw new TypeError(`'${y}' is not a valid HTTP method.`);let x=y.toUpperCase();if(vje.has(x))throw new TypeError(`'${y}' HTTP method is unsupported.`);y=Fje[x]??y,s.method=y}!Tne&&s.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"}),Tne=!0)}r.signal!==void 0&&(c=r.signal),this[Qt]=s;let f=new AbortController;if(this[N0]=f.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)f.abort(c.reason);else{this[Hje]=f;let y=new WeakRef(f),I=Nne(y);try{(typeof bne=="function"&&bne(c)===Rne||$je(c,"abort").length>=Rne)&&Bne(1500,c)}catch{}R0.addAbortListener(c,I),_ne.register(f,{signal:c,abort:I},I)}}if(this[io]=new Pne(P0),vne(this[io],s.headersList),t2(this[io],"request"),p==="no-cors"){if(!_je.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);t2(this[io],"request-no-cors")}if(d){let y=wne(this[io]),I=r.headers!==void 0?r.headers:new T0(y);if(y.clear(),I instanceof T0){for(let{name:x,value:b}of I.rawValues())y.append(x,b,!1);y.cookies=I.cookies}else Rje(this[io],I)}let m=e instanceof t?e[Qt].body:null;if((r.body!=null||m!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let A=null;if(r.body!=null){let[y,I]=xje(r.body,s.keepalive);A=y,I&&!wne(this[io]).contains("content-type",!0)&&this[io].append("content-type",I)}let h=A??m;if(h!=null&&h.source==null){if(A!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let E=h;if(A==null&&m!=null){if(Ine(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let y=new TransformStream;m.stream.pipeThrough(y),E={source:m.source,length:m.length,stream:y.readable}}this[Qt].body=E}get method(){return ye.brandCheck(this,t),this[Qt].method}get url(){return ye.brandCheck(this,t),qje(this[Qt].url)}get headers(){return ye.brandCheck(this,t),this[io]}get destination(){return ye.brandCheck(this,t),this[Qt].destination}get referrer(){return ye.brandCheck(this,t),this[Qt].referrer==="no-referrer"?"":this[Qt].referrer==="client"?"about:client":this[Qt].referrer.toString()}get referrerPolicy(){return ye.brandCheck(this,t),this[Qt].referrerPolicy}get mode(){return ye.brandCheck(this,t),this[Qt].mode}get credentials(){return this[Qt].credentials}get cache(){return ye.brandCheck(this,t),this[Qt].cache}get redirect(){return ye.brandCheck(this,t),this[Qt].redirect}get integrity(){return ye.brandCheck(this,t),this[Qt].integrity}get keepalive(){return ye.brandCheck(this,t),this[Qt].keepalive}get isReloadNavigation(){return ye.brandCheck(this,t),this[Qt].reloadNavigation}get isHistoryNavigation(){return ye.brandCheck(this,t),this[Qt].historyNavigation}get signal(){return ye.brandCheck(this,t),this[N0]}get body(){return ye.brandCheck(this,t),this[Qt].body?this[Qt].body.stream:null}get bodyUsed(){return ye.brandCheck(this,t),!!this[Qt].body&&R0.isDisturbed(this[Qt].body.stream)}get duplex(){return ye.brandCheck(this,t),"half"}clone(){if(ye.brandCheck(this,t),Ine(this))throw new TypeError("unusable");let e=Qne(this[Qt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=v0.get(this.signal);n===void 0&&(n=new Set,v0.set(this.signal,n));let s=new WeakRef(r);n.add(s),R0.addAbortListener(r.signal,Nne(s))}return Dne(e,r.signal,Nje(this[io]))}[Sne.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let 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 ${Sne.formatWithOptions(r,n)}`}};bje(Ou);function _0(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??!1,unsafeRequest:t.unsafeRequest??!1,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??!1,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??!1,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??!1,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??!1,historyNavigation:t.historyNavigation??!1,userActivation:t.userActivation??!1,taintedOrigin:t.taintedOrigin??!1,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??!1,done:t.done??!1,timingAllowFailed:t.timingAllowFailed??!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new T0(t.headersList):new T0}}i(_0,"makeRequest");function Qne(t){let e=_0({...t,body:null});return t.body!=null&&(e.body=Bje(e,t.body)),e}i(Qne,"cloneRequest");function Dne(t,e,r){let n=new Ou(P0);return n[Qt]=t,n[N0]=e,n[io]=new Pne(P0),vne(n[io],t.headersList),t2(n[io],r),n}i(Dne,"fromInnerRequest");Object.defineProperties(Ou.prototype,{method:vr,url:vr,headers:vr,redirect:vr,clone:vr,signal:vr,duplex:vr,destination:vr,body:vr,bodyUsed:vr,isHistoryNavigation:vr,isReloadNavigation:vr,keepalive:vr,integrity:vr,cache:vr,credentials:vr,attribute:vr,referrerPolicy:vr,referrer:vr,mode:vr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});ye.converters.Request=ye.interfaceConverter(Ou);ye.converters.RequestInfo=function(t,e,r){return typeof t=="string"?ye.converters.USVString(t,e,r):t instanceof Ou?ye.converters.Request(t,e,r):ye.converters.USVString(t,e,r)};ye.converters.AbortSignal=ye.interfaceConverter(AbortSignal);ye.converters.RequestInit=ye.dictionaryConverter([{key:"method",converter:ye.converters.ByteString},{key:"headers",converter:ye.converters.HeadersInit},{key:"body",converter:ye.nullableConverter(ye.converters.BodyInit)},{key:"referrer",converter:ye.converters.USVString},{key:"referrerPolicy",converter:ye.converters.DOMString,allowedValues:Qje},{key:"mode",converter:ye.converters.DOMString,allowedValues:kje},{key:"credentials",converter:ye.converters.DOMString,allowedValues:Lje},{key:"cache",converter:ye.converters.DOMString,allowedValues:Oje},{key:"redirect",converter:ye.converters.DOMString,allowedValues:Dje},{key:"integrity",converter:ye.converters.DOMString},{key:"keepalive",converter:ye.converters.boolean},{key:"signal",converter:ye.nullableConverter(t=>ye.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:ye.converters.any},{key:"duplex",converter:ye.converters.DOMString,allowedValues:Mje},{key:"dispatcher",converter:ye.converters.any}]);kne.exports={Request:Ou,makeRequest:_0,fromInnerRequest:Dne,cloneRequest:Qne}});var eC=w((zWt,jne)=>{"use strict";var{makeNetworkError:At,makeAppropriateNetworkError:Q0,filterResponse:r2,makeResponse:D0,fromInnerResponse:zje}=XE(),{HeadersList:Lne}=Vp(),{Request:Vje,cloneRequest:Wje}=LA(),Mu=require("node:zlib"),{bytesMatch:Yje,makePolicyContainer:Jje,clonePolicyContainer:jje,requestBadPort:Kje,TAOCheck:Xje,appendRequestOriginHeader:Zje,responseLocationURL:e5e,requestCurrentURL:Ua,setRequestReferrerPolicyOnRedirect:t5e,tryUpgradeRequestToAPotentiallyTrustworthyURL:r5e,createOpaqueTimingInfo:a2,appendFetchMetadata:n5e,corsCheck:s5e,crossOriginResourcePolicyCheck:o5e,determineRequestsReferrer:i5e,coarsenedSharedCurrentTime:ZE,createDeferredPromise:a5e,isBlobLike:c5e,sameOrigin:i2,isCancelled:Yp,isAborted:One,isErrorLike:l5e,fullyReadBody:u5e,readableStreamClose:d5e,isomorphicEncode:k0,urlIsLocal:p5e,urlIsHttpHttpsScheme:c2,urlHasHttpsScheme:f5e,clampAndCoarsenConnectionTimingInfo:m5e,simpleRangeHeaderValue:A5e,buildContentRange:h5e,createInflate:g5e,extractMimeType:y5e}=eo(),{kState:qne,kDispatcher:E5e}=Bu(),Jp=require("node:assert"),{safelyExtractBody:l2,extractBody:Mne}=AA(),{redirectStatusSet:Gne,nullBodyStatus:$ne,safeMethodsSet:C5e,requestBodyHeader:I5e,subresourceSet:w5e}=CE(),S5e=require("node:events"),{Readable:x5e,pipeline:b5e,finished:B5e}=require("node:stream"),{addAbortListener:R5e,isErrored:N5e,isReadable:L0,bufferToLowerCasedHeaderName:Fne}=ze(),{dataURLProcessor:T5e,serializeAMimeType:P5e,minimizeSupportedMimeType:v5e}=Is(),{getGlobalDispatcher:_5e}=JE(),{webidl:Q5e}=yn(),{STATUS_CODES:D5e}=require("node:http"),k5e=["GET","HEAD"],L5e=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",n2,O0=class extends S5e{static{i(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function O5e(t){Hne(t,"fetch")}i(O5e,"handleFetchDone");function M5e(t,e=void 0){Q5e.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=a5e(),n;try{n=new Vje(t,e)}catch(d){return r.reject(d),r.promise}let s=n[qne];if(n.signal.aborted)return s2(r,s,null,n.signal.reason),r.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let a=null,c=!1,l=null;return R5e(n.signal,()=>{c=!0,Jp(l!=null),l.abort(n.signal.reason);let d=a?.deref();s2(r,s,d,n.signal.reason)}),l=Vne({request:s,processResponseEndOfBody:O5e,processResponse:i(d=>{if(!c){if(d.aborted){s2(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(zje(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[E5e]}),r.promise}i(M5e,"fetch");function Hne(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;c2(r)&&n!==null&&(t.timingAllowPassed||(n=a2({startTime:n.startTime}),s=""),n.endTime=ZE(),t.timingInfo=n,zne(n,r.href,e,globalThis,s))}i(Hne,"finalizeAndReportTiming");var zne=performance.markResourceTiming;function s2(t,e,r,n){if(t&&t.reject(n),e.body!=null&&L0(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[qne];s.body!=null&&L0(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(s2,"abortFetch");function Vne({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=_5e()}){Jp(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=ZE(u),p=a2({startTime:d}),f={controller:new O0(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return Jp(!t.body||t.body.stream),t.window==="client"&&(t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=jje(t.client.policyContainer):t.policyContainer=Jje()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,w5e.has(t.destination),Wne(f).catch(m=>{f.controller.terminate(m)}),f.controller}i(Vne,"fetching");async function Wne(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!p5e(Ua(r))&&(n=At("local URLs only")),r5e(r),Kje(r)==="blocked"&&(n=At("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=i5e(r)),n===null&&(n=await(async()=>{let o=Ua(r);return i2(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await Une(t)):r.mode==="same-origin"?At('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?At('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await Une(t)):c2(Ua(r))?(r.responseTainting="cors",await Yne(t)):At("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=r2(n,"basic"):r.responseTainting==="cors"?n=r2(n,"cors"):r.responseTainting==="opaque"?n=r2(n,"opaque"):Jp(!1));let s=n.status===0?n:n.internalResponse;if(s.urlList.length===0&&s.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&s.status===206&&s.rangeRequested&&!r.headers.contains("range",!0)&&(n=s=At()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||$ne.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>o2(t,At(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!Yje(c,r.integrity)){o("integrity mismatch");return}n.body=l2(c)[0],o2(t,n)},"processBody");await u5e(n.body,a,o)}else o2(t,n)}i(Wne,"mainFetch");function Une(t){if(Yp(t)&&t.request.redirectCount===0)return Promise.resolve(Q0(t));let{request:e}=t,{protocol:r}=Ua(e);switch(r){case"about:":return Promise.resolve(At("about scheme is not supported"));case"blob:":{n2||(n2=require("node:buffer").resolveObjectURL);let n=Ua(e);if(n.search.length!==0)return Promise.resolve(At("NetworkError when attempting to fetch resource."));let s=n2(n.toString());if(e.method!=="GET"||!c5e(s))return Promise.resolve(At("invalid method"));let o=D0(),a=s.size,c=k0(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=A5e(u,!0);if(d==="failure")return Promise.resolve(At("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:f}=d;if(p===null)p=a-f,f=p+f-1;else{if(p>=a)return Promise.resolve(At("Range start is greater than the blob's size."));(f===null||f>=a)&&(f=a-1)}let m=s.slice(p,f,l),A=Mne(m);o.body=A[0];let h=k0(`${m.size}`),E=h5e(p,f,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",h,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",E,!0)}else{let u=Mne(s);o.statusText="OK",o.body=u[0],o.headersList.set("content-length",c,!0),o.headersList.set("content-type",l,!0)}return Promise.resolve(o)}case"data:":{let n=Ua(e),s=T5e(n);if(s==="failure")return Promise.resolve(At("failed to fetch the data URL"));let o=P5e(s.mimeType);return Promise.resolve(D0({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:l2(s.body)[0]}))}case"file:":return Promise.resolve(At("not implemented... yet..."));case"http:":case"https:":return Yne(t).catch(n=>At(n));default:return Promise.resolve(At("unknown scheme"))}}i(Une,"schemeFetch");function F5e(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(F5e,"finalizeResponse");function o2(t,e){let r=t.timingInfo,n=i(()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=a2(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=y5e(e.headersList);d!=="failure"&&(l.contentType=v5e(d))}t.request.initiatorType!=null&&zne(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=i(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let s=e.type==="error"?e:e.internalResponse??e;s.body==null?n():B5e(s.body.stream,()=>{n()})}i(o2,"fetchFinale");async function Yne(t){let e=t.request,r=null,n=null,s=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await Jne(t),e.responseTainting==="cors"&&s5e(e,r)==="failure")return At("cors failure");Xje(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&o5e(e.origin,e.client,e.destination,n)==="blocked"?At("blocked"):(Gne.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=At("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await U5e(t,r):Jp(!1)),r.timingInfo=s,r)}i(Yne,"httpFetch");function U5e(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=e5e(n,Ua(r).hash),s==null)return e}catch(a){return Promise.resolve(At(a))}if(!c2(s))return Promise.resolve(At("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(At("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!i2(r,s))return Promise.resolve(At('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(At('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(At());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!k5e.includes(r.method)){r.method="GET",r.body=null;for(let a of I5e)r.headersList.delete(a)}i2(Ua(r),s)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(Jp(r.body.source!=null),r.body=l2(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=ZE(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),t5e(r,n),Wne(t,!0)}i(U5e,"httpRedirectFetch");async function Jne(t,e=!1,r=!1){let n=t.request,s=null,o=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(s=t,o=n):(o=Wje(n),s={...t},s.request=o);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=o.body?o.body.length:null,p=null;if(o.body==null&&["POST","PUT"].includes(o.method)&&(p="0"),d!=null&&(p=k0(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",k0(o.referrer.href),!0),Zje(o),n5e(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",L5e),o.cache==="default"&&(o.headersList.contains("if-modified-since",!0)||o.headersList.contains("if-none-match",!0)||o.headersList.contains("if-unmodified-since",!0)||o.headersList.contains("if-match",!0)||o.headersList.contains("if-range",!0))&&(o.cache="no-store"),o.cache==="no-cache"&&!o.preventNoCacheCacheControlHeaderModification&&!o.headersList.contains("cache-control",!0)&&o.headersList.append("cache-control","max-age=0",!0),(o.cache==="no-store"||o.cache==="reload")&&(o.headersList.contains("pragma",!0)||o.headersList.append("pragma","no-cache",!0),o.headersList.contains("cache-control",!0)||o.headersList.append("cache-control","no-cache",!0)),o.headersList.contains("range",!0)&&o.headersList.append("accept-encoding","identity",!0),o.headersList.contains("accept-encoding",!0)||(f5e(Ua(o))?o.headersList.append("accept-encoding","br, gzip, deflate",!0):o.headersList.append("accept-encoding","gzip, deflate",!0)),o.headersList.delete("host",!0),c==null&&(o.cache="no-store"),o.cache!=="no-store"&&o.cache,a==null){if(o.cache==="only-if-cached")return At("only if cached");let f=await q5e(s,u,r);!C5e.has(o.method)&&f.status>=200&&f.status<=399,l&&f.status,a==null&&(a=f)}if(a.urlList=[...o.urlList],o.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?At():Yp(t)?Q0(t):At("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Yp(t))return Q0(t);t.controller.connection.destroy(),a=await Jne(t,e,!0)}return a}i(Jne,"httpNetworkOrCacheFetch");async function q5e(t,e=!1,r=!1){Jp(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(A,h=!0){this.destroyed||(this.destroyed=!0,h&&this.abort?.(A??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,s=null,o=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let A=i(async function*(y){Yp(t)||(yield y,t.processRequestBodyChunkLength?.(y.byteLength))},"processBodyChunk"),h=i(()=>{Yp(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),E=i(y=>{Yp(t)||(y.name==="AbortError"?t.controller.abort():t.controller.terminate(y))},"processBodyError");l=(async function*(){try{for await(let y of n.body.stream)yield*A(y);h()}catch(y){E(y)}})()}try{let{body:A,status:h,statusText:E,headersList:y,socket:I}=await m({body:l});if(I)s=D0({status:h,statusText:E,headersList:y,socket:I});else{let x=A[Symbol.asyncIterator]();t.controller.next=()=>x.next(),s=D0({status:h,statusText:E,headersList:y})}}catch(A){return A.name==="AbortError"?(t.controller.connection.destroy(),Q0(t,A)):At(A)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(A=>{Yp(t)||t.controller.abort(A)},"cancelAlgorithm"),p=new ReadableStream({async start(A){t.controller.controller=A},async pull(A){await u(A)},async cancel(A){await d(A)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.resume||t.controller.on("terminated",f),t.controller.resume=async()=>{for(;;){let A,h;try{let{done:y,value:I}=await t.controller.next();if(One(t))break;A=y?void 0:I}catch(y){t.controller.ended&&!o.encodedBodySize?A=void 0:(A=y,h=!0)}if(A===void 0){d5e(t.controller.controller),F5e(t,s);return}if(o.decodedBodySize+=A?.byteLength??0,h){t.controller.terminate(A);return}let E=new Uint8Array(A);if(E.byteLength&&t.controller.controller.enqueue(E),N5e(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function f(A){One(t)?(s.aborted=!0,L0(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):L0(p)&&t.controller.controller.error(new TypeError("terminated",{cause:l5e(A)?A:void 0})),t.controller.connection.destroy()}return i(f,"onAborted"),s;function m({body:A}){let h=Ua(n),E=t.controller.dispatcher;return new Promise((y,I)=>E.dispatch({path:h.pathname+h.search,origin:h.origin,method:n.method,body:E.isMockActive?n.body&&(n.body.source||n.body.stream):A,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(x){let{connection:b}=t.controller;o.finalConnectionTimingInfo=m5e(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),b.destroyed?x(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",x),this.abort=b.abort=x),o.finalNetworkRequestStartTime=ZE(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=ZE(t.crossOriginIsolatedCapability)},onHeaders(x,b,N,v){if(x<200)return;let _="",J=new Lne;for(let fe=0;feD)return this.abort(new Error(`too many content-encodings in response: ${He.length}, maximum allowed is ${D}`)),!0;for(let et=He.length-1;et>=0;--et){let re=He[et].trim();if(re==="x-gzip"||re==="gzip")ve.push(Mu.createGunzip({flush:Mu.constants.Z_SYNC_FLUSH,finishFlush:Mu.constants.Z_SYNC_FLUSH}));else if(re==="deflate")ve.push(g5e({flush:Mu.constants.Z_SYNC_FLUSH,finishFlush:Mu.constants.Z_SYNC_FLUSH}));else if(re==="br")ve.push(Mu.createBrotliDecompress({flush:Mu.constants.BROTLI_OPERATION_FLUSH,finishFlush:Mu.constants.BROTLI_OPERATION_FLUSH}));else{ve.length=0;break}}}this.body=new x5e({read:N});let Fe=this.onError.bind(this);return y({status:x,statusText:v,headersList:J,body:ve.length?b5e(this.body,...ve,fe=>{fe&&this.onError(fe)}).on("error",Fe):this.body.on("error",Fe)}),!0},onData(x){if(t.controller.dump)return;let b=x;return o.encodedBodySize+=b.byteLength,this.body.push(b)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.ended=!0,this.body.push(null)},onError(x){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(x),t.controller.terminate(x),I(x)},onUpgrade(x,b,N){if(x!==101)return;let v=new Lne;for(let _=0;_{"use strict";Kne.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")}});var Zne=w((YWt,Xne)=>{"use strict";var{webidl:ao}=yn(),M0=Symbol("ProgressEvent state"),d2=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=ao.converters.DOMString(e,"ProgressEvent constructor","type"),r=ao.converters.ProgressEventInit(r??{}),super(e,r),this[M0]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return ao.brandCheck(this,t),this[M0].lengthComputable}get loaded(){return ao.brandCheck(this,t),this[M0].loaded}get total(){return ao.brandCheck(this,t),this[M0].total}};ao.converters.ProgressEventInit=ao.dictionaryConverter([{key:"lengthComputable",converter:ao.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:ao.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:ao.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:ao.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:ao.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:ao.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);Xne.exports={ProgressEvent:d2}});var tse=w((jWt,ese)=>{"use strict";function G5e(t){if(!t)return"failure";switch(t.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"}}i(G5e,"getEncoding");ese.exports={getEncoding:G5e}});var lse=w((XWt,cse)=>{"use strict";var{kState:OA,kError:p2,kResult:rse,kAborted:tC,kLastProgressEventFired:f2}=u2(),{ProgressEvent:$5e}=Zne(),{getEncoding:nse}=tse(),{serializeAMimeType:H5e,parseMIMEType:sse}=Is(),{types:z5e}=require("node:util"),{StringDecoder:ose}=require("string_decoder"),{btoa:ise}=require("node:buffer"),V5e={enumerable:!0,writable:!1,configurable:!1};function W5e(t,e,r,n){if(t[OA]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[OA]="loading",t[rse]=null,t[p2]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[tC];)try{let{done:u,value:d}=await c;if(l&&!t[tC]&&queueMicrotask(()=>{Fu("loadstart",t)}),l=!1,!u&&z5e.isUint8Array(d))a.push(d),(t[f2]===void 0||Date.now()-t[f2]>=50)&&!t[tC]&&(t[f2]=Date.now(),queueMicrotask(()=>{Fu("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[OA]="done";try{let p=Y5e(a,r,e.type,n);if(t[tC])return;t[rse]=p,Fu("load",t)}catch(p){t[p2]=p,Fu("error",t)}t[OA]!=="loading"&&Fu("loadend",t)});break}}catch(u){if(t[tC])return;queueMicrotask(()=>{t[OA]="done",t[p2]=u,Fu("error",t),t[OA]!=="loading"&&Fu("loadend",t)});break}})()}i(W5e,"readOperation");function Fu(t,e){let r=new $5e(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(Fu,"fireAProgressEvent");function Y5e(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=sse(r||"application/octet-stream");o!=="failure"&&(s+=H5e(o)),s+=";base64,";let a=new ose("latin1");for(let c of t)s+=ise(a.write(c));return s+=ise(a.end()),s}case"Text":{let s="failure";if(n&&(s=nse(n)),s==="failure"&&r){let o=sse(r);o!=="failure"&&(s=nse(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),J5e(t,s)}case"ArrayBuffer":return ase(t).buffer;case"BinaryString":{let s="",o=new ose("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(Y5e,"packageData");function J5e(t,e){let r=ase(t),n=j5e(r),s=0;n!==null&&(e=n,s=n==="UTF-8"?3:2);let o=r.slice(s);return new TextDecoder(e).decode(o)}i(J5e,"decode");function j5e(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}i(j5e,"BOMSniffing");function ase(t){let e=t.reduce((n,s)=>n+s.byteLength,0),r=0;return t.reduce((n,s)=>(n.set(s,r),r+=s.byteLength,n),new Uint8Array(e))}i(ase,"combineByteSequences");cse.exports={staticPropertyDescriptors:V5e,readOperation:W5e,fireAProgressEvent:Fu}});var fse=w((eYt,pse)=>{"use strict";var{staticPropertyDescriptors:MA,readOperation:F0,fireAProgressEvent:use}=lse(),{kState:jp,kError:dse,kResult:U0,kEvents:lt,kAborted:K5e}=u2(),{webidl:wt}=yn(),{kEnumerableProperty:xs}=ze(),qi=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[jp]="empty",this[U0]=null,this[dse]=null,this[lt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=wt.converters.Blob(e,{strict:!1}),F0(this,e,"ArrayBuffer")}readAsBinaryString(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=wt.converters.Blob(e,{strict:!1}),F0(this,e,"BinaryString")}readAsText(e,r=void 0){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=wt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=wt.converters.DOMString(r,"FileReader.readAsText","encoding")),F0(this,e,"Text",r)}readAsDataURL(e){wt.brandCheck(this,t),wt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=wt.converters.Blob(e,{strict:!1}),F0(this,e,"DataURL")}abort(){if(this[jp]==="empty"||this[jp]==="done"){this[U0]=null;return}this[jp]==="loading"&&(this[jp]="done",this[U0]=null),this[K5e]=!0,use("abort",this),this[jp]!=="loading"&&use("loadend",this)}get readyState(){switch(wt.brandCheck(this,t),this[jp]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return wt.brandCheck(this,t),this[U0]}get error(){return wt.brandCheck(this,t),this[dse]}get onloadend(){return wt.brandCheck(this,t),this[lt].loadend}set onloadend(e){wt.brandCheck(this,t),this[lt].loadend&&this.removeEventListener("loadend",this[lt].loadend),typeof e=="function"?(this[lt].loadend=e,this.addEventListener("loadend",e)):this[lt].loadend=null}get onerror(){return wt.brandCheck(this,t),this[lt].error}set onerror(e){wt.brandCheck(this,t),this[lt].error&&this.removeEventListener("error",this[lt].error),typeof e=="function"?(this[lt].error=e,this.addEventListener("error",e)):this[lt].error=null}get onloadstart(){return wt.brandCheck(this,t),this[lt].loadstart}set onloadstart(e){wt.brandCheck(this,t),this[lt].loadstart&&this.removeEventListener("loadstart",this[lt].loadstart),typeof e=="function"?(this[lt].loadstart=e,this.addEventListener("loadstart",e)):this[lt].loadstart=null}get onprogress(){return wt.brandCheck(this,t),this[lt].progress}set onprogress(e){wt.brandCheck(this,t),this[lt].progress&&this.removeEventListener("progress",this[lt].progress),typeof e=="function"?(this[lt].progress=e,this.addEventListener("progress",e)):this[lt].progress=null}get onload(){return wt.brandCheck(this,t),this[lt].load}set onload(e){wt.brandCheck(this,t),this[lt].load&&this.removeEventListener("load",this[lt].load),typeof e=="function"?(this[lt].load=e,this.addEventListener("load",e)):this[lt].load=null}get onabort(){return wt.brandCheck(this,t),this[lt].abort}set onabort(e){wt.brandCheck(this,t),this[lt].abort&&this.removeEventListener("abort",this[lt].abort),typeof e=="function"?(this[lt].abort=e,this.addEventListener("abort",e)):this[lt].abort=null}};qi.EMPTY=qi.prototype.EMPTY=0;qi.LOADING=qi.prototype.LOADING=1;qi.DONE=qi.prototype.DONE=2;Object.defineProperties(qi.prototype,{EMPTY:MA,LOADING:MA,DONE:MA,readAsArrayBuffer:xs,readAsBinaryString:xs,readAsText:xs,readAsDataURL:xs,abort:xs,readyState:xs,result:xs,error:xs,onloadstart:xs,onprogress:xs,onload:xs,onabort:xs,onerror:xs,onloadend:xs,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(qi,{EMPTY:MA,LOADING:MA,DONE:MA});pse.exports={FileReader:qi}});var q0=w((rYt,mse)=>{"use strict";mse.exports={kConstruct:qt().kConstruct}});var gse=w((nYt,hse)=>{"use strict";var X5e=require("node:assert"),{URLSerializer:Ase}=Is(),{isValidHeaderName:Z5e}=eo();function e6e(t,e,r=!1){let n=Ase(t,r),s=Ase(e,r);return n===s}i(e6e,"urlEquals");function t6e(t){X5e(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),Z5e(r)&&e.push(r);return e}i(t6e,"getFieldValues");hse.exports={urlEquals:e6e,getFieldValues:t6e}});var Cse=w((oYt,Ese)=>{"use strict";var{kConstruct:r6e}=q0(),{urlEquals:n6e,getFieldValues:m2}=gse(),{kEnumerableProperty:Kp,isDisturbed:s6e}=ze(),{webidl:le}=yn(),{Response:o6e,cloneResponse:i6e,fromInnerResponse:a6e}=XE(),{Request:_l,fromInnerRequest:c6e}=LA(),{kState:Gi}=Bu(),{fetching:l6e}=eC(),{urlIsHttpHttpsScheme:G0,createDeferredPromise:FA,readAllBytes:u6e}=eo(),A2=require("node:assert"),$0=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==r6e&&le.illegalConstructor(),le.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){le.brandCheck(this,t);let n="Cache.match";le.argumentLengthCheck(arguments,1,n),e=le.converters.RequestInfo(e,n,"request"),r=le.converters.CacheQueryOptions(r,n,"options");let s=this.#s(e,r,1);if(s.length!==0)return s[0]}async matchAll(e=void 0,r={}){le.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=le.converters.RequestInfo(e,n,"request")),r=le.converters.CacheQueryOptions(r,n,"options"),this.#s(e,r)}async add(e){le.brandCheck(this,t);let r="Cache.add";le.argumentLengthCheck(arguments,1,r),e=le.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){le.brandCheck(this,t);let r="Cache.addAll";le.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let f of e){if(f===void 0)throw le.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(f=le.converters.RequestInfo(f),typeof f=="string")continue;let m=f[Gi];if(!G0(m.url)||m.method!=="GET")throw le.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let f of e){let m=new _l(f)[Gi];if(!G0(m.url))throw le.errors.exception({header:r,message:"Expected http/s scheme."});m.initiator="fetch",m.destination="subresource",s.push(m);let A=FA();o.push(l6e({request:m,processResponse(h){if(h.type==="error"||h.status===206||h.status<200||h.status>299)A.reject(le.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(h.headersList.contains("vary")){let E=m2(h.headersList.get("vary"));for(let y of E)if(y==="*"){A.reject(le.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let I of o)I.abort();return}}},processResponseEndOfBody(h){if(h.aborted){A.reject(new DOMException("aborted","AbortError"));return}A.resolve(h)}})),n.push(A.promise)}let c=await Promise.all(n),l=[],u=0;for(let f of c){let m={type:"put",request:s[u],response:f};l.push(m),u++}let d=FA(),p=null;try{this.#t(l)}catch(f){p=f}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(e,r){le.brandCheck(this,t);let n="Cache.put";le.argumentLengthCheck(arguments,2,n),e=le.converters.RequestInfo(e,n,"request"),r=le.converters.Response(r,n,"response");let s=null;if(e instanceof _l?s=e[Gi]:s=new _l(e)[Gi],!G0(s.url)||s.method!=="GET")throw le.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[Gi];if(o.status===206)throw le.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let m=m2(o.headersList.get("vary"));for(let A of m)if(A==="*")throw le.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(s6e(o.body.stream)||o.body.stream.locked))throw le.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=i6e(o),c=FA();if(o.body!=null){let A=o.body.stream.getReader();u6e(A).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:s,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let p=FA(),f=null;try{this.#t(l)}catch(m){f=m}return queueMicrotask(()=>{f===null?p.resolve():p.reject(f)}),p.promise}async delete(e,r={}){le.brandCheck(this,t);let n="Cache.delete";le.argumentLengthCheck(arguments,1,n),e=le.converters.RequestInfo(e,n,"request"),r=le.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof _l){if(s=e[Gi],s.method!=="GET"&&!r.ignoreMethod)return!1}else A2(typeof e=="string"),s=new _l(e)[Gi];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=FA(),l=null,u;try{u=this.#t(o)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){le.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=le.converters.RequestInfo(e,n,"request")),r=le.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof _l){if(s=e[Gi],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new _l(e)[Gi]);let o=FA(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#n(s,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=c6e(l,new AbortController().signal,"immutable");c.push(u)}o.resolve(Object.freeze(c))}),o.promise}#t(e){let r=this.#e,n=[...r],s=[],o=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw le.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#n(a.request,a.options,s).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#n(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);A2(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!G0(l.url))throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#n(a.request);for(let u of c){let d=r.indexOf(u);A2(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),s.push([a.request,a.response])}o.push([a.request,a.response])}return o}catch(a){throw this.#e.length=0,this.#e=n,a}}#n(e,r,n){let s=[],o=n??this.#e;for(let a of o){let[c,l]=a;this.#r(e,c,l,r)&&s.push(a)}return s}#r(e,r,n=null,s){let o=new URL(e.url),a=new URL(r.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!n6e(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=m2(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#s(e,r,n=1/0){let s=null;if(e!==void 0)if(e instanceof _l){if(s=e[Gi],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new _l(e)[Gi]);let o=[];if(e===void 0)for(let c of this.#e)o.push(c[1]);else{let c=this.#n(s,r);for(let l of c)o.push(l[1])}let a=[];for(let c of o){let l=a6e(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties($0.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Kp,matchAll:Kp,add:Kp,addAll:Kp,put:Kp,delete:Kp,keys:Kp});var yse=[{key:"ignoreSearch",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];le.converters.CacheQueryOptions=le.dictionaryConverter(yse);le.converters.MultiCacheQueryOptions=le.dictionaryConverter([...yse,{key:"cacheName",converter:le.converters.DOMString}]);le.converters.Response=le.interfaceConverter(o6e);le.converters["sequence"]=le.sequenceConverter(le.converters.RequestInfo);Ese.exports={Cache:$0}});var wse=w((aYt,Ise)=>{"use strict";var{kConstruct:rC}=q0(),{Cache:H0}=Cse(),{webidl:kn}=yn(),{kEnumerableProperty:nC}=ze(),z0=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==rC&&kn.illegalConstructor(),kn.util.markAsUncloneable(this)}async match(e,r={}){if(kn.brandCheck(this,t),kn.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=kn.converters.RequestInfo(e),r=kn.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new H0(rC,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new H0(rC,n).match(e,r);if(o!==void 0)return o}}async has(e){kn.brandCheck(this,t);let r="CacheStorage.has";return kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){kn.brandCheck(this,t);let r="CacheStorage.open";if(kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new H0(rC,s)}let n=[];return this.#e.set(e,n),new H0(rC,n)}async delete(e){kn.brandCheck(this,t);let r="CacheStorage.delete";return kn.argumentLengthCheck(arguments,1,r),e=kn.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return kn.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(z0.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:nC,has:nC,open:nC,delete:nC,keys:nC});Ise.exports={CacheStorage:z0}});var xse=w((lYt,Sse)=>{"use strict";Sse.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var y2=w((uYt,Nse)=>{"use strict";function d6e(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(d6e,"isCTLExcludingHtab");function h2(t){for(let e=0;e126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}i(h2,"validateCookieName");function g2(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}i(g2,"validateCookieValue");function Bse(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}i(Bse,"validateCookiePath");function bse(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(bse,"isLetterOrDigit");function p6e(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}i(p6e,"validateCookieDomain");var f6e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],m6e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],V0=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function Rse(t){return typeof t=="number"&&(t=new Date(t)),`${f6e[t.getUTCDay()]}, ${V0[t.getUTCDate()]} ${m6e[t.getUTCMonth()]} ${t.getUTCFullYear()} ${V0[t.getUTCHours()]}:${V0[t.getUTCMinutes()]}:${V0[t.getUTCSeconds()]} GMT`}i(Rse,"toIMFDate");function A6e(t){if(t<0)throw new Error("Invalid cookie max-age")}i(A6e,"validateCookieMaxAge");function h6e(t){if(t.name.length===0)return null;h2(t.name),g2(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(A6e(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(p6e(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(Bse(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Rse(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...s]=r.split("="),o=n.trim(),a=s.join("=");h2(o),g2(a),e.push(`${o}=${a}`)}return e.join("; ")}i(h6e,"stringify");Nse.exports={isCTLExcludingHtab:d6e,validateCookieName:h2,validateCookiePath:Bse,validateCookieValue:g2,toIMFDate:Rse,stringify:h6e}});var Pse=w((pYt,Tse)=>{"use strict";var{maxNameValuePairSize:g6e,maxAttributeValueSize:y6e}=xse(),{isCTLExcludingHtab:E6e}=y2(),{collectASequenceOfCodePointsFast:W0}=Is(),C6e=require("node:assert");function I6e(t){if(E6e(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=W0(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=W0("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>g6e?null:{name:n,value:s,...UA(r)}}i(I6e,"parseSetCookie");function UA(t,e={}){if(t.length===0)return e;C6e(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=W0(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=W0("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>y6e)return UA(t,e);let o=n.toLowerCase();if(o==="expires"){let a=new Date(s);e.expires=a}else if(o==="max-age"){let a=s.charCodeAt(0);if((a<48||a>57)&&s[0]!=="-"||!/^\d+$/.test(s))return UA(t,e);let c=Number(s);e.maxAge=c}else if(o==="domain"){let a=s;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(o==="path"){let a="";s.length===0||s[0]!=="/"?a="/":a=s,e.path=a}else if(o==="secure")e.secure=!0;else if(o==="httponly")e.httpOnly=!0;else if(o==="samesite"){let a=s.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${s}`);return UA(t,e)}i(UA,"parseUnparsedAttributes");Tse.exports={parseSetCookie:I6e,parseUnparsedAttributes:UA}});var Qse=w((mYt,_se)=>{"use strict";var{parseSetCookie:w6e}=Pse(),{stringify:S6e}=y2(),{webidl:Ze}=yn(),{Headers:Y0}=Vp();function x6e(t){Ze.argumentLengthCheck(arguments,1,"getCookies"),Ze.brandCheck(t,Y0,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[s,...o]=n.split("=");r[s.trim()]=o.join("=")}return r}i(x6e,"getCookies");function b6e(t,e,r){Ze.brandCheck(t,Y0,{strict:!1});let n="deleteCookie";Ze.argumentLengthCheck(arguments,2,n),e=Ze.converters.DOMString(e,n,"name"),r=Ze.converters.DeleteCookieAttributes(r),vse(t,{name:e,value:"",expires:new Date(0),...r})}i(b6e,"deleteCookie");function B6e(t){Ze.argumentLengthCheck(arguments,1,"getSetCookies"),Ze.brandCheck(t,Y0,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>w6e(r)):[]}i(B6e,"getSetCookies");function vse(t,e){Ze.argumentLengthCheck(arguments,2,"setCookie"),Ze.brandCheck(t,Y0,{strict:!1}),e=Ze.converters.Cookie(e);let r=S6e(e);r&&t.append("Set-Cookie",r)}i(vse,"setCookie");Ze.converters.DeleteCookieAttributes=Ze.dictionaryConverter([{converter:Ze.nullableConverter(Ze.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);Ze.converters.Cookie=Ze.dictionaryConverter([{converter:Ze.converters.DOMString,key:"name"},{converter:Ze.converters.DOMString,key:"value"},{converter:Ze.nullableConverter(t=>typeof t=="number"?Ze.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.nullableConverter(Ze.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:Ze.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:Ze.sequenceConverter(Ze.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);_se.exports={getCookies:x6e,deleteCookie:b6e,getSetCookies:B6e,setCookie:vse}});var GA=w((hYt,kse)=>{"use strict";var{webidl:ie}=yn(),{kEnumerableProperty:bs}=ze(),{kConstruct:Dse}=qt(),{MessagePort:R6e}=require("node:worker_threads"),qA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===Dse){super(arguments[1],arguments[2]),ie.util.markAsUncloneable(this);return}let n="MessageEvent constructor";ie.argumentLengthCheck(arguments,1,n),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,ie.util.markAsUncloneable(this)}get data(){return ie.brandCheck(this,t),this.#e.data}get origin(){return ie.brandCheck(this,t),this.#e.origin}get lastEventId(){return ie.brandCheck(this,t),this.#e.lastEventId}get source(){return ie.brandCheck(this,t),this.#e.source}get ports(){return ie.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,s=null,o="",a="",c=null,l=[]){return ie.brandCheck(this,t),ie.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:s,origin:o,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(Dse,e,r);return n.#e=r,n.#e.data??=null,n.#e.origin??="",n.#e.lastEventId??="",n.#e.source??=null,n.#e.ports??=[],n}},{createFastMessageEvent:N6e}=qA;delete qA.createFastMessageEvent;var J0=class t extends Event{static{i(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";ie.argumentLengthCheck(arguments,1,n),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.CloseEventInit(r),super(e,r),this.#e=r,ie.util.markAsUncloneable(this)}get wasClean(){return ie.brandCheck(this,t),this.#e.wasClean}get code(){return ie.brandCheck(this,t),this.#e.code}get reason(){return ie.brandCheck(this,t),this.#e.reason}},j0=class t extends Event{static{i(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";ie.argumentLengthCheck(arguments,1,n),super(e,r),ie.util.markAsUncloneable(this),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return ie.brandCheck(this,t),this.#e.message}get filename(){return ie.brandCheck(this,t),this.#e.filename}get lineno(){return ie.brandCheck(this,t),this.#e.lineno}get colno(){return ie.brandCheck(this,t),this.#e.colno}get error(){return ie.brandCheck(this,t),this.#e.error}};Object.defineProperties(qA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:bs,origin:bs,lastEventId:bs,source:bs,ports:bs,initMessageEvent:bs});Object.defineProperties(J0.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:bs,code:bs,wasClean:bs});Object.defineProperties(j0.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:bs,filename:bs,lineno:bs,colno:bs,error:bs});ie.converters.MessagePort=ie.interfaceConverter(R6e);ie.converters["sequence"]=ie.sequenceConverter(ie.converters.MessagePort);var E2=[{key:"bubbles",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];ie.converters.MessageEventInit=ie.dictionaryConverter([...E2,{key:"data",converter:ie.converters.any,defaultValue:i(()=>null,"defaultValue")},{key:"origin",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lastEventId",converter:ie.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"source",converter:ie.nullableConverter(ie.converters.MessagePort),defaultValue:i(()=>null,"defaultValue")},{key:"ports",converter:ie.converters["sequence"],defaultValue:i(()=>new Array(0),"defaultValue")}]);ie.converters.CloseEventInit=ie.dictionaryConverter([...E2,{key:"wasClean",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"code",converter:ie.converters["unsigned short"],defaultValue:i(()=>0,"defaultValue")},{key:"reason",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")}]);ie.converters.ErrorEventInit=ie.dictionaryConverter([...E2,{key:"message",converter:ie.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"filename",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lineno",converter:ie.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"colno",converter:ie.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"error",converter:ie.converters.any}]);kse.exports={MessageEvent:qA,CloseEvent:J0,ErrorEvent:j0,createFastMessageEvent:N6e}});var Xp=w((yYt,Lse)=>{"use strict";var T6e="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",P6e={enumerable:!0,writable:!1,configurable:!1},v6e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},_6e={NOT_SENT:0,PROCESSING:1,SENT:2},Q6e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},D6e=2**16-1,k6e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},L6e=Buffer.allocUnsafe(0),O6e={string:1,typedArray:2,arrayBuffer:3,blob:4};Lse.exports={uid:T6e,sentCloseFrameState:_6e,staticPropertyDescriptors:P6e,states:v6e,opcodes:Q6e,maxUnsigned16Bit:D6e,parserStates:k6e,emptyBuffer:L6e,sendHints:O6e}});var sC=w((EYt,Ose)=>{"use strict";Ose.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")}});var aC=w((CYt,Vse)=>{"use strict";var{kReadyState:oC,kController:M6e,kResponse:F6e,kBinaryType:U6e,kWebSocketURL:q6e}=sC(),{states:iC,opcodes:Uu}=Xp(),{ErrorEvent:G6e,createFastMessageEvent:$6e}=GA(),{isUtf8:H6e}=require("node:buffer"),{collectASequenceOfCodePointsFast:z6e,removeHTTPWhitespace:Mse}=Is();function V6e(t){return t[oC]===iC.CONNECTING}i(V6e,"isConnecting");function W6e(t){return t[oC]===iC.OPEN}i(W6e,"isEstablished");function Y6e(t){return t[oC]===iC.CLOSING}i(Y6e,"isClosing");function J6e(t){return t[oC]===iC.CLOSED}i(J6e,"isClosed");function C2(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(C2,"fireEvent");function j6e(t,e,r){if(t[oC]!==iC.OPEN)return;let n;if(e===Uu.TEXT)try{n=zse(r)}catch{Use(t,"Received invalid UTF-8 in text frame.");return}else e===Uu.BINARY&&(t[U6e]==="blob"?n=new Blob([r]):n=K6e(r));C2("message",t,$6e,{origin:t[q6e].origin,data:n})}i(j6e,"websocketMessageReceived");function K6e(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(K6e,"toArrayBuffer");function X6e(t){if(t.length===0)return!1;for(let e=0;e126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}i(X6e,"isValidSubprotocol");function Z6e(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(Z6e,"isValidStatusCode");function Use(t,e){let{[M6e]:r,[F6e]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&C2("error",t,(s,o)=>new G6e(s,o),{error:new Error(e),message:e})}i(Use,"failWebsocketConnection");function qse(t){return t===Uu.CLOSE||t===Uu.PING||t===Uu.PONG}i(qse,"isControlFrame");function Gse(t){return t===Uu.CONTINUATION}i(Gse,"isContinuationFrame");function $se(t){return t===Uu.TEXT||t===Uu.BINARY}i($se,"isTextBinaryFrame");function e9e(t){return $se(t)||Gse(t)||qse(t)}i(e9e,"isValidOpcode");function t9e(t){let e={position:0},r=new Map;for(;e.position57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}i(r9e,"isValidClientWindowBits");var Hse=typeof process.versions.icu=="string",Fse=Hse?new TextDecoder("utf-8",{fatal:!0}):void 0,zse=Hse?Fse.decode.bind(Fse):function(t){if(H6e(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Vse.exports={isConnecting:V6e,isEstablished:W6e,isClosing:Y6e,isClosed:J6e,fireEvent:C2,isValidSubprotocol:X6e,isValidStatusCode:Z6e,failWebsocketConnection:Use,websocketMessageReceived:j6e,utf8Decode:zse,isControlFrame:qse,isContinuationFrame:Gse,isTextBinaryFrame:$se,isValidOpcode:e9e,parseExtensions:t9e,isValidClientWindowBits:r9e}});var X0=w((wYt,Wse)=>{"use strict";var{maxUnsigned16Bit:n9e}=Xp(),K0=16386,I2,cC=null,$A=K0;try{I2=require("node:crypto")}catch{I2={randomFillSync:i(function(e,r,n){for(let s=0;sn9e?(a+=8,o=127):s>125&&(a+=2,o=126);let c=Buffer.allocUnsafe(s+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=o,o===126?c.writeUInt16BE(s,2):o===127&&(c[2]=c[3]=0,c.writeUIntBE(s,4,6)),c[1]|=128;for(let l=0;l{"use strict";var{uid:o9e,states:lC,sentCloseFrameState:Z0,emptyBuffer:i9e,opcodes:a9e}=Xp(),{kReadyState:uC,kSentClose:eB,kByteParser:Jse,kReceivedClose:Yse,kResponse:jse}=sC(),{fireEvent:c9e,failWebsocketConnection:qu,isClosing:l9e,isClosed:u9e,isEstablished:d9e,parseExtensions:p9e}=aC(),{channels:HA}=rA(),{CloseEvent:f9e}=GA(),{makeRequest:m9e}=LA(),{fetching:A9e}=eC(),{Headers:h9e,getHeadersList:g9e}=Vp(),{getDecodeSplit:y9e}=eo(),{WebsocketFrameSend:E9e}=X0(),S2;try{S2=require("node:crypto")}catch{}function C9e(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=m9e({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=g9e(new h9e(o.headers));c.headersList=p}let l=S2.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let p of e)c.headersList.append("sec-websocket-protocol",p);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),A9e({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){qu(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){qu(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){qu(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){qu(n,'Server did not set Connection header to "upgrade".');return}let f=p.headersList.get("Sec-WebSocket-Accept"),m=S2.createHash("sha1").update(l+o9e).digest("base64");if(f!==m){qu(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let A=p.headersList.get("Sec-WebSocket-Extensions"),h;if(A!==null&&(h=p9e(A),!h.has("permessage-deflate"))){qu(n,"Sec-WebSocket-Extensions header does not match.");return}let E=p.headersList.get("Sec-WebSocket-Protocol");if(E!==null){let y=y9e("sec-websocket-protocol",c.headersList);if(y===null||!y.includes(E)){qu(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",Kse),p.socket.on("close",Xse),p.socket.on("error",Zse),HA.open.hasSubscribers&&HA.open.publish({address:p.socket.address(),protocol:E,extensions:A}),s(p,h)}})}i(C9e,"establishWebSocketConnection");function I9e(t,e,r,n){if(!(l9e(t)||u9e(t)))if(!d9e(t))qu(t,"Connection was closed before it was established."),t[uC]=lC.CLOSING;else if(t[eB]===Z0.NOT_SENT){t[eB]=Z0.PROCESSING;let s=new E9e;e!==void 0&&r===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(s.frameData=Buffer.allocUnsafe(2+n),s.frameData.writeUInt16BE(e,0),s.frameData.write(r,2,"utf-8")):s.frameData=i9e,t[jse].socket.write(s.createFrame(a9e.CLOSE)),t[eB]=Z0.SENT,t[uC]=lC.CLOSING}else t[uC]=lC.CLOSING}i(I9e,"closeWebSocketConnection");function Kse(t){this.ws[Jse].write(t)||this.pause()}i(Kse,"onSocketData");function Xse(){let{ws:t}=this,{[jse]:e}=t;e.socket.off("data",Kse),e.socket.off("close",Xse),e.socket.off("error",Zse);let r=t[eB]===Z0.SENT&&t[Yse],n=1005,s="",o=t[Jse].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Yse]||(n=1006),t[uC]=lC.CLOSED,c9e("close",t,(a,c)=>new f9e(a,c),{wasClean:r,code:n,reason:s}),HA.close.hasSubscribers&&HA.close.publish({websocket:t,code:n,reason:s})}i(Xse,"onSocketClose");function Zse(t){let{ws:e}=this;e[uC]=lC.CLOSING,HA.socketError.hasSubscribers&&HA.socketError.publish(t),this.destroy()}i(Zse,"onSocketError");eoe.exports={establishWebSocketConnection:C9e,closeWebSocketConnection:I9e}});var roe=w((BYt,toe)=>{"use strict";var{createInflateRaw:w9e,Z_DEFAULT_WINDOWBITS:S9e}=require("node:zlib"),{isValidClientWindowBits:x9e}=aC(),{MessageSizeExceededError:b9e}=it(),B9e=Buffer.from([0,0,255,255]),tB=Symbol("kBuffer"),dC=Symbol("kLength"),b2=class{static{i(this,"PerMessageDeflate")}#e;#t={};#n=0;constructor(e,r){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits"),this.#n=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let s=S9e;if(this.#t.serverMaxWindowBits){if(!x9e(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=w9e({windowBits:s})}catch(o){n(o);return}this.#e[tB]=[],this.#e[dC]=0,this.#e.on("data",o=>{if(this.#e[dC]+=o.length,this.#n>0&&this.#e[dC]>this.#n){n(new b9e),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[tB].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(B9e),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[tB],this.#e[dC]);this.#e[tB].length=0,this.#e[dC]=0,n(null,s)})}};toe.exports={PerMessageDeflate:b2}});var doe=w((NYt,uoe)=>{"use strict";var{Writable:R9e}=require("node:stream"),N9e=require("node:assert"),{parserStates:Bs,opcodes:zA,states:T9e,emptyBuffer:noe,sentCloseFrameState:soe}=Xp(),{kReadyState:P9e,kSentClose:ooe,kResponse:B2,kReceivedClose:ioe}=sC(),{channels:rB}=rA(),{isValidStatusCode:v9e,isValidOpcode:_9e,failWebsocketConnection:co,websocketMessageReceived:aoe,utf8Decode:Q9e,isControlFrame:R2,isTextBinaryFrame:N2,isContinuationFrame:D9e}=aC(),{WebsocketFrameSend:coe}=X0(),{closeWebSocketConnection:loe}=x2(),{PerMessageDeflate:k9e}=roe(),{MessageSizeExceededError:T2}=it();function pC(t,e,r){loe(t,e,r,Buffer.byteLength(r)),co(t,r)}i(pC,"failWebsocketConnectionWithCode");var P2=class extends R9e{static{i(this,"ByteParser")}#e=[];#t=0;#n=0;#r=!1;#s=Bs.INFO;#o={};#i=[];#a;#l;#c;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#l=n.maxFragments??0,this.#c=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new k9e(r,n))}_write(e,r,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#u(){return this.#c>0&&!R2(this.#o.opcode)&&this.#o.payloadLength+this.#t>this.#c?(pC(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#r;)if(this.#s===Bs.INFO){if(this.#n<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,s=r[0]&15,o=(r[1]&128)===128,a=!n&&s!==zA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!_9e(s))return co(this.ws,"Invalid opcode received"),e();if(o)return co(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){co(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){co(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!N2(s)){co(this.ws,"Invalid frame type was fragmented.");return}if(N2(s)&&this.#i.length>0){co(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&a){co(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&R2(s)){co(this.ws,"Control frame either too large or fragmented");return}if(D9e(s)&&this.#i.length===0&&!this.#o.compressed){co(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#o.payloadLength=c,this.#s=Bs.READ_DATA,!this.#u())return}else c===126?this.#s=Bs.PAYLOADLENGTH_16:c===127&&(this.#s=Bs.PAYLOADLENGTH_64);N2(s)&&(this.#o.binaryType=s,this.#o.compressed=l!==0),this.#o.opcode=s,this.#o.masked=o,this.#o.fin=n,this.#o.fragmented=a}else if(this.#s===Bs.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#o.payloadLength=r.readUInt16BE(0),this.#s=Bs.READ_DATA,!this.#u())return}else if(this.#s===Bs.PAYLOADLENGTH_64){if(this.#n<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),s=r.readUInt32BE(4);if(n!==0||s>2**31-1){co(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#o.payloadLength=s,this.#s=Bs.READ_DATA,!this.#u())return}else if(this.#s===Bs.READ_DATA){if(this.#n{this.destroyed||(this.#r=!0,this.run(e))});return}}else if(this.#o.compressed){this.#a.get("permessage-deflate").decompress(r,this.#o.fin,(n,s)=>{if(n){let o=n instanceof T2?1009:1007;pC(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){pC(this.ws,1009,new T2().message);return}if(!this.#o.fin){this.#s=Bs.INFO,this.#r=!0,this.run(e);return}aoe(this.ws,this.#o.binaryType,this.consumeFragments()),this.#r=!0,this.#s=Bs.INFO,this.run(e)}}),this.#r=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){pC(this.ws,1009,new T2().message);return}!this.#o.fragmented&&this.#o.fin&&aoe(this.ws,this.#o.binaryType,this.consumeFragments()),this.#s=Bs.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return noe;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let s=this.#e[0],{length:o}=s;if(o+n===e){r.set(this.#e.shift(),n);break}else if(o+n>e){r.set(s.subarray(0,e-n),n),this.#e[0]=s.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=s.length}return this.#n-=e,r}writeFragments(e){return this.#l>0&&this.#i.length===this.#l?(pC(this.ws,1008,"Too many message fragments"),!1):(this.#t+=e.length,this.#i.push(e),!0)}consumeFragments(){let e=this.#i;if(e.length===1)return this.#t=0,e.shift();let r=Buffer.concat(e,this.#t);return this.#i=[],this.#t=0,r}parseCloseBody(e){N9e(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!v9e(r))return{code:1002,reason:"Invalid status code",error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=Q9e(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#o;if(r===zA.CLOSE){if(n===1)return co(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#o.closeInfo=this.parseCloseBody(e),this.#o.closeInfo.error){let{code:s,reason:o}=this.#o.closeInfo;return loe(this.ws,s,o,o.length),co(this.ws,o),!1}if(this.ws[ooe]!==soe.SENT){let s=noe;this.#o.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#o.closeInfo.code,0));let o=new coe(s);this.ws[B2].socket.write(o.createFrame(zA.CLOSE),a=>{a||(this.ws[ooe]=soe.SENT)})}return this.ws[P9e]=T9e.CLOSING,this.ws[ioe]=!0,!1}else if(r===zA.PING){if(!this.ws[ioe]){let s=new coe(e);this.ws[B2].socket.write(s.createFrame(zA.PONG)),rB.ping.hasSubscribers&&rB.ping.publish({payload:e})}}else r===zA.PONG&&rB.pong.hasSubscribers&&rB.pong.publish({payload:e});return!0}get closingInfo(){return this.#o.closeInfo}};uoe.exports={ByteParser:P2}});var hoe=w((PYt,Aoe)=>{"use strict";var{WebsocketFrameSend:L9e}=X0(),{opcodes:poe,sendHints:VA}=Xp(),O9e=kU(),foe=Buffer[Symbol.species],v2=class{static{i(this,"SendQueue")}#e=new O9e;#t=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==VA.blob){let o=moe(e,n);if(!this.#t)this.#n.write(o,r);else{let a={promise:null,callback:r,frame:o};this.#e.push(a)}return}let s={promise:e.arrayBuffer().then(o=>{s.promise=null,s.frame=moe(o,n)}),callback:r,frame:null};this.#e.push(s),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#n.write(r.frame,r.callback),r.callback=r.frame=null}this.#t=!1}};function moe(t,e){return new L9e(M9e(t,e)).createFrame(e===VA.string?poe.TEXT:poe.BINARY)}i(moe,"createFrame");function M9e(t,e){switch(e){case VA.string:return Buffer.from(t);case VA.arrayBuffer:case VA.blob:return new foe(t);case VA.typedArray:return new foe(t.buffer,t.byteOffset,t.byteLength)}}i(M9e,"toBuffer");Aoe.exports={SendQueue:v2}});var Boe=w((_Yt,boe)=>{"use strict";var{webidl:Be}=yn(),{URLSerializer:F9e}=Is(),{environmentSettingsObject:goe}=eo(),{staticPropertyDescriptors:Gu,states:fC,sentCloseFrameState:U9e,sendHints:nB}=Xp(),{kWebSocketURL:yoe,kReadyState:_2,kController:Eoe,kBinaryType:sB,kResponse:Coe,kSentClose:q9e,kByteParser:G9e}=sC(),{isConnecting:$9e,isEstablished:H9e,isClosing:z9e,isValidSubprotocol:V9e,fireEvent:Ioe}=aC(),{establishWebSocketConnection:W9e,closeWebSocketConnection:woe}=x2(),{ByteParser:Y9e}=doe(),{kEnumerableProperty:Ho,isBlobLike:Soe}=ze(),{getGlobalDispatcher:J9e}=JE(),{types:xoe}=require("node:util"),{ErrorEvent:j9e,CloseEvent:K9e}=GA(),{SendQueue:X9e}=hoe(),lo=class t extends EventTarget{static{i(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#t=0;#n="";#r="";#s;constructor(e,r=[]){super(),Be.util.markAsUncloneable(this);let n="WebSocket constructor";Be.argumentLengthCheck(arguments,1,n);let s=Be.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Be.converters.USVString(e,n,"url"),r=s.protocols;let o=goe.settingsObject.baseUrl,a;try{a=new URL(e,o)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>V9e(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[yoe]=new URL(a.href);let c=goe.settingsObject;this[Eoe]=W9e(a,r,c,this,(l,u)=>this.#o(l,u),s),this[_2]=t.CONNECTING,this[q9e]=U9e.NOT_SENT,this[sB]="blob"}close(e=void 0,r=void 0){Be.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Be.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Be.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(r!==void 0&&(s=Buffer.byteLength(r),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");woe(this,e,r,s)}send(e){Be.brandCheck(this,t);let r="WebSocket.send";if(Be.argumentLengthCheck(arguments,1,r),e=Be.converters.WebSocketSendData(e,r,"data"),$9e(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!H9e(this)||z9e(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},nB.string)}else xoe.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},nB.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},nB.typedArray)):Soe(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},nB.blob))}get readyState(){return Be.brandCheck(this,t),this[_2]}get bufferedAmount(){return Be.brandCheck(this,t),this.#t}get url(){return Be.brandCheck(this,t),F9e(this[yoe])}get extensions(){return Be.brandCheck(this,t),this.#r}get protocol(){return Be.brandCheck(this,t),this.#n}get onopen(){return Be.brandCheck(this,t),this.#e.open}set onopen(e){Be.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return Be.brandCheck(this,t),this.#e.error}set onerror(e){Be.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return Be.brandCheck(this,t),this.#e.close}set onclose(e){Be.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return Be.brandCheck(this,t),this.#e.message}set onmessage(e){Be.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return Be.brandCheck(this,t),this[sB]}set binaryType(e){Be.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[sB]="blob":this[sB]=e}#o(e,r){this[Coe]=e;let n=this[Eoe]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new Y9e(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",Z9e),a.on("error",eKe.bind(this)),e.socket.ws=this,this[G9e]=a,this.#s=new X9e(e.socket),this[_2]=fC.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#r=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#n=l),Ioe("open",this)}};lo.CONNECTING=lo.prototype.CONNECTING=fC.CONNECTING;lo.OPEN=lo.prototype.OPEN=fC.OPEN;lo.CLOSING=lo.prototype.CLOSING=fC.CLOSING;lo.CLOSED=lo.prototype.CLOSED=fC.CLOSED;Object.defineProperties(lo.prototype,{CONNECTING:Gu,OPEN:Gu,CLOSING:Gu,CLOSED:Gu,url:Ho,readyState:Ho,bufferedAmount:Ho,onopen:Ho,onerror:Ho,onclose:Ho,close:Ho,onmessage:Ho,binaryType:Ho,send:Ho,extensions:Ho,protocol:Ho,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(lo,{CONNECTING:Gu,OPEN:Gu,CLOSING:Gu,CLOSED:Gu});Be.converters["sequence"]=Be.sequenceConverter(Be.converters.DOMString);Be.converters["DOMString or sequence"]=function(t,e,r){return Be.util.Type(t)==="Object"&&Symbol.iterator in t?Be.converters["sequence"](t):Be.converters.DOMString(t,e,r)};Be.converters.WebSocketInit=Be.dictionaryConverter([{key:"protocols",converter:Be.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Be.converters.any,defaultValue:i(()=>J9e(),"defaultValue")},{key:"headers",converter:Be.nullableConverter(Be.converters.HeadersInit)}]);Be.converters["DOMString or sequence or WebSocketInit"]=function(t){return Be.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Be.converters.WebSocketInit(t):{protocols:Be.converters["DOMString or sequence"](t)}};Be.converters.WebSocketSendData=function(t){if(Be.util.Type(t)==="Object"){if(Soe(t))return Be.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||xoe.isArrayBuffer(t))return Be.converters.BufferSource(t)}return Be.converters.USVString(t)};function Z9e(){this.ws[Coe].socket.resume()}i(Z9e,"onParserDrain");function eKe(t){let e,r;t instanceof K9e?(e=t.reason,r=t.code):e=t.message,Ioe("error",this,()=>new j9e("error",{error:t,message:e})),woe(this,r)}i(eKe,"onParserError");boe.exports={WebSocket:lo}});var Q2=w((DYt,Roe)=>{"use strict";function tKe(t){return t.indexOf("\0")===-1}i(tKe,"isValidLastEventId");function rKe(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(rKe,"isASCIINumber");function nKe(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(nKe,"delay");Roe.exports={isValidLastEventId:tKe,isASCIINumber:rKe,delay:nKe}});var Toe=w((LYt,Noe)=>{"use strict";var sKe=require("node:buffer"),{Transform:oKe}=require("node:stream"),{isASCIINumber:iKe,isValidLastEventId:aKe}=Q2(),WA=[239,187,191],oB=10,mC=13,cKe=58,lKe=32,uKe=sKe.kStringMaxLength,dKe=Buffer.from("data"),pKe=Buffer.from("event"),fKe=Buffer.from("id"),mKe=Buffer.from("retry"),AKe=1024,hKe=131072,gKe=128;function yKe(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}i(yKe,"isASCIINumberBytes");function EKe(t,e){for(let r=e;r0?Math.min(hKe,Math.max(AKe,Math.floor(this.maxEventSize/gKe))):0;this.maxDataLines=r,this.maxBufferedChunks=r,e.push&&(this.push=e.push)}_transform(e,r,n){if(e.length===0){n();return}if(this.maxEventSize>0&&this.chunks.length>=this.maxBufferedChunks&&e[0]!==oB&&e[0]!==mC){n(aB());return}if(this.chunks.push(e),this.checkBOM&&this.handleBOM()){n();return}for(;this.hasCurrentByte();){let s=this.currentByte();if(this.eventEndCheck){if(this.crlfCheck){if(s===oB){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===oB||s===mC){s===mC&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===oB||s===mC){s===mC&&(this.crlfCheck=!0);try{this.parseLine(this.readLine(),this.event)}catch(o){n(o);return}this.consumeCurrentByte(),this.eventEndCheck=!0;continue}if(this.maxEventSize>0&&++this.lineLength>this.maxEventSize+7){n(aB());return}this.advanceCursor()}n()}_destroy(e,r){this.chunks.length=0,this.clearEvent(),super._destroy(e,r)}parseLine(e,r){if(e.length===0)return;let n=e.indexOf(cKe);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===lKe&&++o),iB(e,s,dKe)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw aB();let a=e.length-o,c=this.eventFieldSizes.data+(r.data===void 0?0:1)+a;this.setEventFieldSize("data",c);let l=e.toString("utf8",o);r.data===void 0?r.data=l:r.data+=` +${l}`,this.dataLineCount++;return}if(iB(e,s,mKe)){yKe(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(iB(e,s,fKe)){EKe(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}iB(e,s,pKe)&&o0&&n>this.maxEventSize)throw aB();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&iKe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&aKe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],o=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:s.length,c=s.subarray(o,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r0&&this.lineChunkIndex{"use strict";var{pipeline:CKe}=require("node:stream"),{fetching:IKe}=eC(),{makeRequest:wKe}=LA(),{webidl:Ql}=yn(),{EventSourceStream:SKe}=Toe(),{parseMIMEType:xKe}=Is(),{createFastMessageEvent:bKe}=GA(),{isNetworkError:Poe}=XE(),{delay:BKe}=Q2(),{kEnumerableProperty:Zp}=ze(),{environmentSettingsObject:voe}=eo(),{getGlobalDispatcher:RKe}=JE(),_oe=!1,Qoe=3e3,AC=0,Doe=1,hC=2,NKe="anonymous",TKe="use-credentials",YA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=AC;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),Ql.util.markAsUncloneable(this);let n="EventSource constructor";Ql.argumentLengthCheck(arguments,1,n),_oe||(_oe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ql.converters.USVString(e,n,"url"),r=Ql.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Qoe};let s=voe,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=NKe;r.withCredentials&&(a=TKe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=voe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=wKe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===hC)return;this.#r=AC;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{Poe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Poe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),o=s!==null?xKe(s):"failure",a=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Doe,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new SKe({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(bKe(l.type,l.options))},"push")});CKe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=IKe(e)}async#c(){this.#r!==hC&&(this.#r=AC,this.dispatchEvent(new Event("error")),await BKe(this.#a.reconnectionTime),this.#r===AC&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){Ql.brandCheck(this,t),this.#r!==hC&&(this.#r=hC,this.#o.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},koe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:AC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Doe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hC,writable:!1}};Object.defineProperties(YA,koe);Object.defineProperties(YA.prototype,koe);Object.defineProperties(YA.prototype,{close:Zp,onerror:Zp,onmessage:Zp,onopen:Zp,readyState:Zp,url:Zp,withCredentials:Zp});Ql.converters.EventSourceInitDict=Ql.dictionaryConverter([{key:"withCredentials",converter:Ql.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ql.converters.any,defaultValue:i(()=>RKe(),"defaultValue")}]);Loe.exports={EventSource:YA,defaultReconnectionTime:Qoe}});var ef=w((UYt,Ee)=>{"use strict";var PKe=wA(),Moe=gE(),vKe=SA(),_Ke=Mee(),QKe=xA(),DKe=t1(),kKe=cte(),LKe=Ate(),Foe=it(),lB=ze(),{InvalidArgumentError:cB}=Foe,JA=tre(),OKe=EE(),MKe=L1(),FKe=Ore(),UKe=F1(),qKe=S1(),GKe=u0(),{getGlobalDispatcher:Uoe,setGlobalDispatcher:$Ke}=JE(),HKe=C0(),zKe=Zb(),VKe=e0();Object.assign(Moe.prototype,JA);Ee.exports.Dispatcher=Moe;Ee.exports.Client=PKe;Ee.exports.Pool=vKe;Ee.exports.BalancedPool=_Ke;Ee.exports.Agent=QKe;Ee.exports.ProxyAgent=DKe;Ee.exports.EnvHttpProxyAgent=kKe;Ee.exports.RetryAgent=LKe;Ee.exports.RetryHandler=GKe;Ee.exports.DecoratorHandler=HKe;Ee.exports.RedirectHandler=zKe;Ee.exports.createRedirectInterceptor=VKe;Ee.exports.interceptors={redirect:Hre(),retry:Vre(),dump:Yre(),dns:Kre()};Ee.exports.buildConnector=OKe;Ee.exports.errors=Foe;Ee.exports.util={parseHeaders:lB.parseHeaders,headerNameToString:lB.headerNameToString};function gC(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new cB("invalid url");if(r!=null&&typeof r!="object")throw new cB("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new cB("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(lB.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=lB.parseURL(e);let{agent:s,dispatcher:o=Uoe()}=r;if(s)throw new cB("unsupported opts.agent. Did you mean opts.client?");return t.call(o,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}i(gC,"makeDispatcher");Ee.exports.setGlobalDispatcher=$Ke;Ee.exports.getGlobalDispatcher=Uoe;var WKe=eC().fetch;Ee.exports.fetch=i(async function(e,r=void 0){try{return await WKe(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Ee.exports.Headers=Vp().Headers;Ee.exports.Response=XE().Response;Ee.exports.Request=LA().Request;Ee.exports.FormData=BE().FormData;Ee.exports.File=globalThis.File??require("node:buffer").File;Ee.exports.FileReader=fse().FileReader;var{setGlobalOrigin:YKe,getGlobalOrigin:JKe}=eU();Ee.exports.setGlobalOrigin=YKe;Ee.exports.getGlobalOrigin=JKe;var{CacheStorage:jKe}=wse(),{kConstruct:KKe}=q0();Ee.exports.caches=new jKe(KKe);var{deleteCookie:XKe,getCookies:ZKe,getSetCookies:eXe,setCookie:tXe}=Qse();Ee.exports.deleteCookie=XKe;Ee.exports.getCookies=ZKe;Ee.exports.getSetCookies=eXe;Ee.exports.setCookie=tXe;var{parseMIMEType:rXe,serializeAMimeType:nXe}=Is();Ee.exports.parseMIMEType=rXe;Ee.exports.serializeAMimeType=nXe;var{CloseEvent:sXe,ErrorEvent:oXe,MessageEvent:iXe}=GA();Ee.exports.WebSocket=Boe().WebSocket;Ee.exports.CloseEvent=sXe;Ee.exports.ErrorEvent=oXe;Ee.exports.MessageEvent=iXe;Ee.exports.request=gC(JA.request);Ee.exports.stream=gC(JA.stream);Ee.exports.pipeline=gC(JA.pipeline);Ee.exports.connect=gC(JA.connect);Ee.exports.upgrade=gC(JA.upgrade);Ee.exports.MockClient=MKe;Ee.exports.MockPool=UKe;Ee.exports.MockAgent=FKe;Ee.exports.mockErrors=qKe;var{EventSource:aXe}=Ooe();Ee.exports.EventSource=aXe});var TC=w((CJt,Sie)=>{"use strict";var kXe="2.0.0",LXe=Number.MAX_SAFE_INTEGER||9007199254740991,OXe=16,MXe=250,FXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Sie.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:OXe,MAX_SAFE_BUILD_LENGTH:MXe,MAX_SAFE_INTEGER:LXe,RELEASE_TYPES:FXe,SEMVER_SPEC_VERSION:kXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var PC=w((IJt,xie)=>{"use strict";var UXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};xie.exports=UXe});var ZA=w(($a,bie)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:eq,MAX_SAFE_BUILD_LENGTH:qXe,MAX_LENGTH:GXe}=TC(),$Xe=PC();$a=bie.exports={};var HXe=$a.re=[],zXe=$a.safeRe=[],$=$a.src=[],VXe=$a.safeSrc=[],H=$a.t={},WXe=0,tq="[a-zA-Z0-9-]",YXe=[["\\s",1],["\\d",GXe],[tq,qXe]],JXe=i(t=>{for(let[e,r]of YXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),De=i((t,e,r)=>{let n=JXe(e),s=WXe++;$Xe(t,s,e),H[t]=s,$[s]=e,VXe[s]=n,HXe[s]=new RegExp(e,r?"g":void 0),zXe[s]=new RegExp(n,r?"g":void 0)},"createToken");De("NUMERICIDENTIFIER","0|[1-9]\\d*");De("NUMERICIDENTIFIERLOOSE","\\d+");De("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${tq}*`);De("MAINVERSION",`(${$[H.NUMERICIDENTIFIER]})\\.(${$[H.NUMERICIDENTIFIER]})\\.(${$[H.NUMERICIDENTIFIER]})`);De("MAINVERSIONLOOSE",`(${$[H.NUMERICIDENTIFIERLOOSE]})\\.(${$[H.NUMERICIDENTIFIERLOOSE]})\\.(${$[H.NUMERICIDENTIFIERLOOSE]})`);De("PRERELEASEIDENTIFIER",`(?:${$[H.NONNUMERICIDENTIFIER]}|${$[H.NUMERICIDENTIFIER]})`);De("PRERELEASEIDENTIFIERLOOSE",`(?:${$[H.NONNUMERICIDENTIFIER]}|${$[H.NUMERICIDENTIFIERLOOSE]})`);De("PRERELEASE",`(?:-(${$[H.PRERELEASEIDENTIFIER]}(?:\\.${$[H.PRERELEASEIDENTIFIER]})*))`);De("PRERELEASELOOSE",`(?:-?(${$[H.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[H.PRERELEASEIDENTIFIERLOOSE]})*))`);De("BUILDIDENTIFIER",`${tq}+`);De("BUILD",`(?:\\+(${$[H.BUILDIDENTIFIER]}(?:\\.${$[H.BUILDIDENTIFIER]})*))`);De("FULLPLAIN",`v?${$[H.MAINVERSION]}${$[H.PRERELEASE]}?${$[H.BUILD]}?`);De("FULL",`^${$[H.FULLPLAIN]}$`);De("LOOSEPLAIN",`[v=\\s]*${$[H.MAINVERSIONLOOSE]}${$[H.PRERELEASELOOSE]}?${$[H.BUILD]}?`);De("LOOSE",`^${$[H.LOOSEPLAIN]}$`);De("GTLT","((?:<|>)?=?)");De("XRANGEIDENTIFIERLOOSE",`${$[H.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);De("XRANGEIDENTIFIER",`${$[H.NUMERICIDENTIFIER]}|x|X|\\*`);De("XRANGEPLAIN",`[v=\\s]*(${$[H.XRANGEIDENTIFIER]})(?:\\.(${$[H.XRANGEIDENTIFIER]})(?:\\.(${$[H.XRANGEIDENTIFIER]})(?:${$[H.PRERELEASE]})?${$[H.BUILD]}?)?)?`);De("XRANGEPLAINLOOSE",`[v=\\s]*(${$[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[H.XRANGEIDENTIFIERLOOSE]})(?:${$[H.PRERELEASELOOSE]})?${$[H.BUILD]}?)?)?`);De("XRANGE",`^${$[H.GTLT]}\\s*${$[H.XRANGEPLAIN]}$`);De("XRANGELOOSE",`^${$[H.GTLT]}\\s*${$[H.XRANGEPLAINLOOSE]}$`);De("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eq}})(?:\\.(\\d{1,${eq}}))?(?:\\.(\\d{1,${eq}}))?`);De("COERCE",`${$[H.COERCEPLAIN]}(?:$|[^\\d])`);De("COERCEFULL",$[H.COERCEPLAIN]+`(?:${$[H.PRERELEASE]})?(?:${$[H.BUILD]})?(?:$|[^\\d])`);De("COERCERTL",$[H.COERCE],!0);De("COERCERTLFULL",$[H.COERCEFULL],!0);De("LONETILDE","(?:~>?)");De("TILDETRIM",`(\\s*)${$[H.LONETILDE]}\\s+`,!0);$a.tildeTrimReplace="$1~";De("TILDE",`^${$[H.LONETILDE]}${$[H.XRANGEPLAIN]}$`);De("TILDELOOSE",`^${$[H.LONETILDE]}${$[H.XRANGEPLAINLOOSE]}$`);De("LONECARET","(?:\\^)");De("CARETTRIM",`(\\s*)${$[H.LONECARET]}\\s+`,!0);$a.caretTrimReplace="$1^";De("CARET",`^${$[H.LONECARET]}${$[H.XRANGEPLAIN]}$`);De("CARETLOOSE",`^${$[H.LONECARET]}${$[H.XRANGEPLAINLOOSE]}$`);De("COMPARATORLOOSE",`^${$[H.GTLT]}\\s*(${$[H.LOOSEPLAIN]})$|^$`);De("COMPARATOR",`^${$[H.GTLT]}\\s*(${$[H.FULLPLAIN]})$|^$`);De("COMPARATORTRIM",`(\\s*)${$[H.GTLT]}\\s*(${$[H.LOOSEPLAIN]}|${$[H.XRANGEPLAIN]})`,!0);$a.comparatorTrimReplace="$1$2$3";De("HYPHENRANGE",`^\\s*(${$[H.XRANGEPLAIN]})\\s+-\\s+(${$[H.XRANGEPLAIN]})\\s*$`);De("HYPHENRANGELOOSE",`^\\s*(${$[H.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[H.XRANGEPLAINLOOSE]})\\s*$`);De("STAR","(<|>)?=?\\s*\\*");De("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");De("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var yB=w((SJt,Bie)=>{"use strict";var jXe=Object.freeze({loose:!0}),KXe=Object.freeze({}),XXe=i(t=>t?typeof t!="object"?jXe:t:KXe,"parseOptions");Bie.exports=XXe});var rq=w((bJt,Tie)=>{"use strict";var Rie=/^[0-9]+$/,Nie=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tNie(e,t),"rcompareIdentifiers");Tie.exports={compareIdentifiers:Nie,rcompareIdentifiers:ZXe}});var On=w((RJt,vie)=>{"use strict";var EB=PC(),{MAX_LENGTH:Pie,MAX_SAFE_INTEGER:CB}=TC(),{safeRe:IB,t:wB}=ZA(),e7e=yB(),{compareIdentifiers:nq}=rq(),sq=class t{static{i(this,"SemVer")}constructor(e,r){if(r=e7e(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Pie)throw new TypeError(`version is longer than ${Pie} characters`);EB("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?IB[wB.LOOSE]:IB[wB.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>CB||this.major<0)throw new TypeError("Invalid major version");if(this.minor>CB||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>CB||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(EB("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return nq(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(EB("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return nq(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?IB[wB.PRERELEASELOOSE]:IB[wB.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),nq(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};vie.exports=sq});var af=w((TJt,Qie)=>{"use strict";var _ie=On(),t7e=i((t,e,r=!1)=>{if(t instanceof _ie)return t;try{return new _ie(t,e)}catch(n){if(!r)return null;throw n}},"parse");Qie.exports=t7e});var kie=w((vJt,Die)=>{"use strict";var r7e=af(),n7e=i((t,e)=>{let r=r7e(t,e);return r?r.version:null},"valid");Die.exports=n7e});var Oie=w((QJt,Lie)=>{"use strict";var s7e=af(),o7e=i((t,e)=>{let r=s7e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Lie.exports=o7e});var Uie=w((kJt,Fie)=>{"use strict";var Mie=On(),i7e=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Mie(t instanceof Mie?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Fie.exports=i7e});var $ie=w((OJt,Gie)=>{"use strict";var qie=af(),a7e=i((t,e)=>{let r=qie(t,null,!0),n=qie(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Gie.exports=a7e});var zie=w((FJt,Hie)=>{"use strict";var c7e=On(),l7e=i((t,e)=>new c7e(t,e).major,"major");Hie.exports=l7e});var Wie=w((qJt,Vie)=>{"use strict";var u7e=On(),d7e=i((t,e)=>new u7e(t,e).minor,"minor");Vie.exports=d7e});var Jie=w(($Jt,Yie)=>{"use strict";var p7e=On(),f7e=i((t,e)=>new p7e(t,e).patch,"patch");Yie.exports=f7e});var Kie=w((zJt,jie)=>{"use strict";var m7e=af(),A7e=i((t,e)=>{let r=m7e(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");jie.exports=A7e});var Vo=w((WJt,Zie)=>{"use strict";var Xie=On(),h7e=i((t,e,r)=>new Xie(t,r).compare(new Xie(e,r)),"compare");Zie.exports=h7e});var tae=w((JJt,eae)=>{"use strict";var g7e=Vo(),y7e=i((t,e,r)=>g7e(e,t,r),"rcompare");eae.exports=y7e});var nae=w((KJt,rae)=>{"use strict";var E7e=Vo(),C7e=i((t,e)=>E7e(t,e,!0),"compareLoose");rae.exports=C7e});var SB=w((ZJt,oae)=>{"use strict";var sae=On(),I7e=i((t,e,r)=>{let n=new sae(t,r),s=new sae(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");oae.exports=I7e});var aae=w((tjt,iae)=>{"use strict";var w7e=SB(),S7e=i((t,e)=>t.sort((r,n)=>w7e(r,n,e)),"sort");iae.exports=S7e});var lae=w((njt,cae)=>{"use strict";var x7e=SB(),b7e=i((t,e)=>t.sort((r,n)=>x7e(n,r,e)),"rsort");cae.exports=b7e});var vC=w((ojt,uae)=>{"use strict";var B7e=Vo(),R7e=i((t,e,r)=>B7e(t,e,r)>0,"gt");uae.exports=R7e});var xB=w((ajt,dae)=>{"use strict";var N7e=Vo(),T7e=i((t,e,r)=>N7e(t,e,r)<0,"lt");dae.exports=T7e});var oq=w((ljt,pae)=>{"use strict";var P7e=Vo(),v7e=i((t,e,r)=>P7e(t,e,r)===0,"eq");pae.exports=v7e});var iq=w((djt,fae)=>{"use strict";var _7e=Vo(),Q7e=i((t,e,r)=>_7e(t,e,r)!==0,"neq");fae.exports=Q7e});var bB=w((fjt,mae)=>{"use strict";var D7e=Vo(),k7e=i((t,e,r)=>D7e(t,e,r)>=0,"gte");mae.exports=k7e});var BB=w((Ajt,Aae)=>{"use strict";var L7e=Vo(),O7e=i((t,e,r)=>L7e(t,e,r)<=0,"lte");Aae.exports=O7e});var aq=w((gjt,hae)=>{"use strict";var M7e=oq(),F7e=iq(),U7e=vC(),q7e=bB(),G7e=xB(),$7e=BB(),H7e=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return M7e(t,r,n);case"!=":return F7e(t,r,n);case">":return U7e(t,r,n);case">=":return q7e(t,r,n);case"<":return G7e(t,r,n);case"<=":return $7e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");hae.exports=H7e});var yae=w((Ejt,gae)=>{"use strict";var z7e=On(),V7e=af(),{safeRe:RB,t:NB}=ZA(),W7e=i((t,e)=>{if(t instanceof z7e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?RB[NB.COERCEFULL]:RB[NB.COERCE]);else{let l=e.includePrerelease?RB[NB.COERCERTLFULL]:RB[NB.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return V7e(`${n}.${s}.${o}${a}${c}`,e)},"coerce");gae.exports=W7e});var Cae=w((Ijt,Eae)=>{"use strict";var cq=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Eae.exports=cq});var Wo=w((Sjt,xae)=>{"use strict";var Y7e=/\s+/g,lq=class t{static{i(this,"Range")}constructor(e,r){if(r=j7e(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof uq)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Y7e," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!wae(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&nZe(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&tZe)|(this.options.loose&&rZe))+":"+e,s=Iae.get(n);if(s)return s;let o=this.options.loose,a=o?rs[Mn.HYPHENRANGELOOSE]:rs[Mn.HYPHENRANGE];e=e.replace(a,fZe(this.options.includePrerelease)),Dt("hyphen replace",e),e=e.replace(rs[Mn.COMPARATORTRIM],X7e),Dt("comparator trim",e),e=e.replace(rs[Mn.TILDETRIM],Z7e),Dt("tilde trim",e),e=e.replace(rs[Mn.CARETTRIM],eZe),Dt("caret trim",e);let c=e.split(" ").map(p=>sZe(p,this.options)).join(" ").split(/\s+/).map(p=>pZe(p,this.options));o&&(c=c.filter(p=>(Dt("loose invalid filter",p,this.options),!!p.match(rs[Mn.COMPARATORLOOSE])))),Dt("range list",c);let l=new Map,u=c.map(p=>new uq(p,this.options));for(let p of u){if(wae(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Iae.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Sae(n,r)&&e.set.some(s=>Sae(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new K7e(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),nZe=i(t=>t.value==="","isAny"),Sae=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),sZe=i((t,e)=>(t=t.replace(rs[Mn.BUILD],""),Dt("comp",t,e),t=aZe(t,e),Dt("caret",t),t=oZe(t,e),Dt("tildes",t),t=lZe(t,e),Dt("xrange",t),t=dZe(t,e),Dt("stars",t),t),"parseComparator"),ns=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),oZe=i((t,e)=>t.trim().split(/\s+/).map(r=>iZe(r,e)).join(" "),"replaceTildes"),iZe=i((t,e)=>{let r=e.loose?rs[Mn.TILDELOOSE]:rs[Mn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Dt("tilde",t,n,s,o,a,c);let l;return ns(s)?l="":ns(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ns(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Dt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Dt("tilde return",l),l})},"replaceTilde"),aZe=i((t,e)=>t.trim().split(/\s+/).map(r=>cZe(r,e)).join(" "),"replaceCarets"),cZe=i((t,e)=>{Dt("caret",t,e);let r=e.loose?rs[Mn.CARETLOOSE]:rs[Mn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Dt("caret",t,s,o,a,c,l);let u;return ns(o)?u="":ns(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ns(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Dt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Dt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Dt("caret return",u),u})},"replaceCaret"),lZe=i((t,e)=>(Dt("replaceXRanges",t,e),t.split(/\s+/).map(r=>uZe(r,e)).join(" ")),"replaceXRanges"),uZe=i((t,e)=>{t=t.trim();let r=e.loose?rs[Mn.XRANGELOOSE]:rs[Mn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Dt("xRange",t,n,s,o,a,c,l);let u=ns(o),d=u||ns(a),p=d||ns(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Dt("xRange return",n),n})},"replaceXRange"),dZe=i((t,e)=>(Dt("replaceStars",t,e),t.trim().replace(rs[Mn.STAR],"")),"replaceStars"),pZe=i((t,e)=>(Dt("replaceGTE0",t,e),t.trim().replace(rs[e.includePrerelease?Mn.GTE0PRE:Mn.GTE0],"")),"replaceGTE0"),fZe=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(ns(n)?r="":ns(s)?r=`>=${n}.0.0${t?"-0":""}`:ns(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ns(u)?l="":ns(d)?l=`<${+u+1}.0.0-0`:ns(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),mZe=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var _C=w((bjt,Pae)=>{"use strict";var QC=Symbol("SemVer ANY"),fq=class t{static{i(this,"Comparator")}static get ANY(){return QC}constructor(e,r){if(r=bae(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),pq("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===QC?this.value="":this.value=this.operator+this.semver.version,pq("comp",this)}parse(e){let r=this.options.loose?Bae[Rae.COMPARATORLOOSE]:Bae[Rae.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Nae(n[2],this.options.loose):this.semver=QC}toString(){return this.value}test(e){if(pq("Comparator.test",e,this.options.loose),this.semver===QC||e===QC)return!0;if(typeof e=="string")try{e=new Nae(e,this.options)}catch{return!1}return dq(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Tae(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Tae(this.value,r).test(e.semver):(r=bae(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||dq(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||dq(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Pae.exports=fq;var bae=yB(),{safeRe:Bae,t:Rae}=ZA(),dq=aq(),pq=PC(),Nae=On(),Tae=Wo()});var DC=w((Rjt,vae)=>{"use strict";var AZe=Wo(),hZe=i((t,e,r)=>{try{e=new AZe(e,r)}catch{return!1}return e.test(t)},"satisfies");vae.exports=hZe});var Qae=w((Tjt,_ae)=>{"use strict";var gZe=Wo(),yZe=i((t,e)=>new gZe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");_ae.exports=yZe});var kae=w((vjt,Dae)=>{"use strict";var EZe=On(),CZe=Wo(),IZe=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new CZe(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new EZe(n,r))}),n},"maxSatisfying");Dae.exports=IZe});var Oae=w((Qjt,Lae)=>{"use strict";var wZe=On(),SZe=Wo(),xZe=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new SZe(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new wZe(n,r))}),n},"minSatisfying");Lae.exports=xZe});var Uae=w((kjt,Fae)=>{"use strict";var mq=On(),bZe=Wo(),Mae=vC(),BZe=i((t,e)=>{t=new bZe(t,e);let r=new mq("0.0.0");if(t.test(r)||(r=new mq("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new mq(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Mae(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Mae(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Fae.exports=BZe});var Gae=w((Ojt,qae)=>{"use strict";var RZe=Wo(),NZe=i((t,e)=>{try{return new RZe(t,e).range||"*"}catch{return null}},"validRange");qae.exports=NZe});var TB=w((Fjt,Vae)=>{"use strict";var TZe=On(),zae=_C(),{ANY:PZe}=zae,vZe=Wo(),_Ze=DC(),$ae=vC(),Hae=xB(),QZe=BB(),DZe=bB(),kZe=i((t,e,r,n)=>{t=new TZe(t,n),e=new vZe(e,n);let s,o,a,c,l;switch(r){case">":s=$ae,o=QZe,a=Hae,c=">",l=">=";break;case"<":s=Hae,o=DZe,a=$ae,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_Ze(t,e,n))return!1;for(let u=0;u{m.semver===PZe&&(m=new zae(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");Vae.exports=kZe});var Yae=w((qjt,Wae)=>{"use strict";var LZe=TB(),OZe=i((t,e,r)=>LZe(t,e,">",r),"gtr");Wae.exports=OZe});var jae=w(($jt,Jae)=>{"use strict";var MZe=TB(),FZe=i((t,e,r)=>MZe(t,e,"<",r),"ltr");Jae.exports=FZe});var Zae=w((zjt,Xae)=>{"use strict";var Kae=Wo(),UZe=i((t,e,r)=>(t=new Kae(t,r),e=new Kae(e,r),t.intersects(e,r)),"intersects");Xae.exports=UZe});var tce=w((Wjt,ece)=>{"use strict";var qZe=DC(),GZe=Vo();ece.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>GZe(d,p,r));for(let d of a)qZe(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var rce=Wo(),hq=_C(),{ANY:Aq}=hq,kC=DC(),gq=Vo(),$Ze=i((t,e,r={})=>{if(t===e)return!0;t=new rce(t,r),e=new rce(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=zZe(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),HZe=[new hq(">=0.0.0-0")],nce=[new hq(">=0.0.0")],zZe=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Aq){if(e.length===1&&e[0].semver===Aq)return!0;r.includePrerelease?t=HZe:t=nce}if(e.length===1&&e[0].semver===Aq){if(r.includePrerelease)return!0;e=nce}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=sce(s,m,r):m.operator==="<"||m.operator==="<="?o=oce(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=gq(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!kC(m,String(s),r)||o&&!kC(m,String(o),r))return null;for(let A of e)if(!kC(m,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=sce(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!kC(s.semver,String(m),r))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=oce(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!kC(o.semver,String(m),r))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),sce=i((t,e,r)=>{if(!t)return e;let n=gq(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),oce=i((t,e,r)=>{if(!t)return e;let n=gq(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");ice.exports=$Ze});var Eq=w((jjt,uce)=>{"use strict";var yq=ZA(),cce=TC(),VZe=On(),lce=rq(),WZe=af(),YZe=kie(),JZe=Oie(),jZe=Uie(),KZe=$ie(),XZe=zie(),ZZe=Wie(),eet=Jie(),tet=Kie(),ret=Vo(),net=tae(),set=nae(),oet=SB(),iet=aae(),aet=lae(),cet=vC(),uet=xB(),det=oq(),pet=iq(),fet=bB(),met=BB(),Aet=aq(),het=yae(),get=_C(),yet=Wo(),Eet=DC(),Cet=Qae(),Iet=kae(),wet=Oae(),xet=Uae(),bet=Gae(),Bet=TB(),Ret=Yae(),Net=jae(),Tet=Zae(),Pet=tce(),vet=ace();uce.exports={parse:WZe,valid:YZe,clean:JZe,inc:jZe,diff:KZe,major:XZe,minor:ZZe,patch:eet,prerelease:tet,compare:ret,rcompare:net,compareLoose:set,compareBuild:oet,sort:iet,rsort:aet,gt:cet,lt:uet,eq:det,neq:pet,gte:fet,lte:met,cmp:Aet,coerce:het,Comparator:get,Range:yet,satisfies:Eet,toComparators:Cet,maxSatisfying:Iet,minSatisfying:wet,minVersion:xet,validRange:bet,outside:Bet,gtr:Ret,ltr:Net,intersects:Tet,simplifyRange:Pet,subset:vet,SemVer:VZe,re:yq.re,src:yq.src,tokens:yq.t,SEMVER_SPEC_VERSION:cce.SEMVER_SPEC_VERSION,RELEASE_TYPES:cce.RELEASE_TYPES,compareIdentifiers:lce.compareIdentifiers,rcompareIdentifiers:lce.rcompareIdentifiers}});var sh=w((a9t,Wce)=>{"use strict";var urt="2.0.0",drt=Number.MAX_SAFE_INTEGER||9007199254740991,prt=16,frt=250,mrt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:prt,MAX_SAFE_BUILD_LENGTH:frt,MAX_SAFE_INTEGER:drt,RELEASE_TYPES:mrt,SEMVER_SPEC_VERSION:urt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var zC=w((c9t,Yce)=>{"use strict";var Art=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Yce.exports=Art});var oh=w((za,Jce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Oq,MAX_SAFE_BUILD_LENGTH:hrt,MAX_LENGTH:grt}=sh(),yrt=zC();za=Jce.exports={};var Ert=za.re=[],Crt=za.safeRe=[],z=za.src=[],Irt=za.safeSrc=[],V=za.t={},wrt=0,Mq="[a-zA-Z0-9-]",Srt=[["\\s",1],["\\d",grt],[Mq,hrt]],xrt=i(t=>{for(let[e,r]of Srt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ke=i((t,e,r)=>{let n=xrt(e),s=wrt++;yrt(t,s,e),V[t]=s,z[s]=e,Irt[s]=n,Ert[s]=new RegExp(e,r?"g":void 0),Crt[s]=new RegExp(n,r?"g":void 0)},"createToken");ke("NUMERICIDENTIFIER","0|[1-9]\\d*");ke("NUMERICIDENTIFIERLOOSE","\\d+");ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Mq}*`);ke("MAINVERSION",`(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})`);ke("MAINVERSIONLOOSE",`(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASEIDENTIFIER",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIER]})`);ke("PRERELEASEIDENTIFIERLOOSE",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASE",`(?:-(${z[V.PRERELEASEIDENTIFIER]}(?:\\.${z[V.PRERELEASEIDENTIFIER]})*))`);ke("PRERELEASELOOSE",`(?:-?(${z[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[V.PRERELEASEIDENTIFIERLOOSE]})*))`);ke("BUILDIDENTIFIER",`${Mq}+`);ke("BUILD",`(?:\\+(${z[V.BUILDIDENTIFIER]}(?:\\.${z[V.BUILDIDENTIFIER]})*))`);ke("FULLPLAIN",`v?${z[V.MAINVERSION]}${z[V.PRERELEASE]}?${z[V.BUILD]}?`);ke("FULL",`^${z[V.FULLPLAIN]}$`);ke("LOOSEPLAIN",`[v=\\s]*${z[V.MAINVERSIONLOOSE]}${z[V.PRERELEASELOOSE]}?${z[V.BUILD]}?`);ke("LOOSE",`^${z[V.LOOSEPLAIN]}$`);ke("GTLT","((?:<|>)?=?)");ke("XRANGEIDENTIFIERLOOSE",`${z[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ke("XRANGEIDENTIFIER",`${z[V.NUMERICIDENTIFIER]}|x|X|\\*`);ke("XRANGEPLAIN",`[v=\\s]*(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:${z[V.PRERELEASE]})?${z[V.BUILD]}?)?)?`);ke("XRANGEPLAINLOOSE",`[v=\\s]*(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:${z[V.PRERELEASELOOSE]})?${z[V.BUILD]}?)?)?`);ke("XRANGE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAIN]}$`);ke("XRANGELOOSE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAINLOOSE]}$`);ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Oq}})(?:\\.(\\d{1,${Oq}}))?(?:\\.(\\d{1,${Oq}}))?`);ke("COERCE",`${z[V.COERCEPLAIN]}(?:$|[^\\d])`);ke("COERCEFULL",z[V.COERCEPLAIN]+`(?:${z[V.PRERELEASE]})?(?:${z[V.BUILD]})?(?:$|[^\\d])`);ke("COERCERTL",z[V.COERCE],!0);ke("COERCERTLFULL",z[V.COERCEFULL],!0);ke("LONETILDE","(?:~>?)");ke("TILDETRIM",`(\\s*)${z[V.LONETILDE]}\\s+`,!0);za.tildeTrimReplace="$1~";ke("TILDE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAIN]}$`);ke("TILDELOOSE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAINLOOSE]}$`);ke("LONECARET","(?:\\^)");ke("CARETTRIM",`(\\s*)${z[V.LONECARET]}\\s+`,!0);za.caretTrimReplace="$1^";ke("CARET",`^${z[V.LONECARET]}${z[V.XRANGEPLAIN]}$`);ke("CARETLOOSE",`^${z[V.LONECARET]}${z[V.XRANGEPLAINLOOSE]}$`);ke("COMPARATORLOOSE",`^${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]})$|^$`);ke("COMPARATOR",`^${z[V.GTLT]}\\s*(${z[V.FULLPLAIN]})$|^$`);ke("COMPARATORTRIM",`(\\s*)${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]}|${z[V.XRANGEPLAIN]})`,!0);za.comparatorTrimReplace="$1$2$3";ke("HYPHENRANGE",`^\\s*(${z[V.XRANGEPLAIN]})\\s+-\\s+(${z[V.XRANGEPLAIN]})\\s*$`);ke("HYPHENRANGELOOSE",`^\\s*(${z[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[V.XRANGEPLAINLOOSE]})\\s*$`);ke("STAR","(<|>)?=?\\s*\\*");ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var OB=w((u9t,jce)=>{"use strict";var brt=Object.freeze({loose:!0}),Brt=Object.freeze({}),Rrt=i(t=>t?typeof t!="object"?brt:t:Brt,"parseOptions");jce.exports=Rrt});var Fq=w((p9t,Zce)=>{"use strict";var Kce=/^[0-9]+$/,Xce=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tXce(e,t),"rcompareIdentifiers");Zce.exports={compareIdentifiers:Xce,rcompareIdentifiers:Nrt}});var En=w((m9t,tle)=>{"use strict";var MB=zC(),{MAX_LENGTH:ele,MAX_SAFE_INTEGER:FB}=sh(),{safeRe:UB,t:qB}=oh(),Trt=OB(),{compareIdentifiers:Uq}=Fq(),Prt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nele)throw new TypeError(`version is longer than ${ele} characters`);MB("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?UB[qB.LOOSE]:UB[qB.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>FB||this.major<0)throw new TypeError("Invalid major version");if(this.minor>FB||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>FB||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(MB("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Uq(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(MB("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Uq(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?UB[qB.PRERELEASELOOSE]:UB[qB.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];if(n===!1&&(o=[r]),Prt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};tle.exports=qq});var Zu=w((h9t,nle)=>{"use strict";var rle=En(),vrt=i((t,e,r=!1)=>{if(t instanceof rle)return t;try{return new rle(t,e)}catch(n){if(!r)return null;throw n}},"parse");nle.exports=vrt});var ole=w((y9t,sle)=>{"use strict";var _rt=Zu(),Qrt=i((t,e)=>{let r=_rt(t,e);return r?r.version:null},"valid");sle.exports=Qrt});var ale=w((C9t,ile)=>{"use strict";var Drt=Zu(),krt=i((t,e)=>{let r=Drt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");ile.exports=krt});var ule=w((w9t,lle)=>{"use strict";var cle=En(),Lrt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new cle(t instanceof cle?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");lle.exports=Lrt});var fle=w((x9t,ple)=>{"use strict";var dle=Zu(),Ort=i((t,e)=>{let r=dle(t,null,!0),n=dle(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");ple.exports=Ort});var Ale=w((B9t,mle)=>{"use strict";var Mrt=En(),Frt=i((t,e)=>new Mrt(t,e).major,"major");mle.exports=Frt});var gle=w((N9t,hle)=>{"use strict";var Urt=En(),qrt=i((t,e)=>new Urt(t,e).minor,"minor");hle.exports=qrt});var Ele=w((P9t,yle)=>{"use strict";var Grt=En(),$rt=i((t,e)=>new Grt(t,e).patch,"patch");yle.exports=$rt});var Ile=w((_9t,Cle)=>{"use strict";var Hrt=Zu(),zrt=i((t,e)=>{let r=Hrt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Cle.exports=zrt});var Ko=w((D9t,Sle)=>{"use strict";var wle=En(),Vrt=i((t,e,r)=>new wle(t,r).compare(new wle(e,r)),"compare");Sle.exports=Vrt});var ble=w((L9t,xle)=>{"use strict";var Wrt=Ko(),Yrt=i((t,e,r)=>Wrt(e,t,r),"rcompare");xle.exports=Yrt});var Rle=w((M9t,Ble)=>{"use strict";var Jrt=Ko(),jrt=i((t,e)=>Jrt(t,e,!0),"compareLoose");Ble.exports=jrt});var GB=w((U9t,Tle)=>{"use strict";var Nle=En(),Krt=i((t,e,r)=>{let n=new Nle(t,r),s=new Nle(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Tle.exports=Krt});var vle=w((G9t,Ple)=>{"use strict";var Xrt=GB(),Zrt=i((t,e)=>t.sort((r,n)=>Xrt(r,n,e)),"sort");Ple.exports=Zrt});var Qle=w((H9t,_le)=>{"use strict";var ent=GB(),tnt=i((t,e)=>t.sort((r,n)=>ent(n,r,e)),"rsort");_le.exports=tnt});var VC=w((V9t,Dle)=>{"use strict";var rnt=Ko(),nnt=i((t,e,r)=>rnt(t,e,r)>0,"gt");Dle.exports=nnt});var $B=w((Y9t,kle)=>{"use strict";var snt=Ko(),ont=i((t,e,r)=>snt(t,e,r)<0,"lt");kle.exports=ont});var Gq=w((j9t,Lle)=>{"use strict";var int=Ko(),ant=i((t,e,r)=>int(t,e,r)===0,"eq");Lle.exports=ant});var $q=w((X9t,Ole)=>{"use strict";var cnt=Ko(),lnt=i((t,e,r)=>cnt(t,e,r)!==0,"neq");Ole.exports=lnt});var HB=w((eKt,Mle)=>{"use strict";var unt=Ko(),dnt=i((t,e,r)=>unt(t,e,r)>=0,"gte");Mle.exports=dnt});var zB=w((rKt,Fle)=>{"use strict";var pnt=Ko(),fnt=i((t,e,r)=>pnt(t,e,r)<=0,"lte");Fle.exports=fnt});var Hq=w((sKt,Ule)=>{"use strict";var mnt=Gq(),Ant=$q(),hnt=VC(),gnt=HB(),ynt=$B(),Ent=zB(),Cnt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return mnt(t,r,n);case"!=":return Ant(t,r,n);case">":return hnt(t,r,n);case">=":return gnt(t,r,n);case"<":return ynt(t,r,n);case"<=":return Ent(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Ule.exports=Cnt});var Gle=w((iKt,qle)=>{"use strict";var Int=En(),wnt=Zu(),{safeRe:VB,t:WB}=oh(),Snt=i((t,e)=>{if(t instanceof Int)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?VB[WB.COERCEFULL]:VB[WB.COERCE]);else{let l=e.includePrerelease?VB[WB.COERCERTLFULL]:VB[WB.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return wnt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");qle.exports=Snt});var Hle=w((cKt,$le)=>{"use strict";var xnt=Zu(),bnt=sh(),Bnt=En(),Rnt=i((t,e,r)=>{if(!bnt.RELEASE_TYPES.includes(e))return null;let n=Nnt(t,r);return n&&Tnt(n,e)},"truncate"),Nnt=i((t,e)=>{let r=t instanceof Bnt?t.version:t;return xnt(r,e)},"cloneInputVersion"),Tnt=i((t,e)=>{if(Pnt(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),Pnt=i(t=>t.startsWith("pre"),"isPrerelease");$le.exports=Rnt});var Vle=w((uKt,zle)=>{"use strict";var zq=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};zle.exports=zq});var Xo=w((pKt,jle)=>{"use strict";var vnt=/\s+/g,Vq=class t{static{i(this,"Range")}constructor(e,r){if(r=Qnt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof Wq)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(vnt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Yle(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Gnt(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(qnt,"");let n=((this.options.includePrerelease&&Fnt)|(this.options.loose&&Unt))+":"+e,s=Wle.get(n);if(s)return s;let o=this.options.loose,a=o?os[Cn.HYPHENRANGELOOSE]:os[Cn.HYPHENRANGE];e=e.replace(a,Znt(this.options.includePrerelease)),kt("hyphen replace",e),e=e.replace(os[Cn.COMPARATORTRIM],Lnt),kt("comparator trim",e),e=e.replace(os[Cn.TILDETRIM],Ont),kt("tilde trim",e),e=e.replace(os[Cn.CARETTRIM],Mnt),kt("caret trim",e);let c=e.split(" ").map(p=>$nt(p,this.options)).join(" ").split(/\s+/).map(p=>Xnt(p,this.options));o&&(c=c.filter(p=>(kt("loose invalid filter",p,this.options),!!p.match(os[Cn.COMPARATORLOOSE])))),kt("range list",c);let l=new Map,u=c.map(p=>new Wq(p,this.options));for(let p of u){if(Yle(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Wle.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Jle(n,r)&&e.set.some(s=>Jle(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Dnt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Gnt=i(t=>t.value==="","isAny"),Jle=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),$nt=i((t,e)=>(t=t.replace(os[Cn.BUILD],""),kt("comp",t,e),t=Wnt(t,e),kt("caret",t),t=znt(t,e),kt("tildes",t),t=Jnt(t,e),kt("xrange",t),t=Knt(t,e),kt("stars",t),t),"parseComparator"),Fr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Hnt=i((t,e,r)=>Fr(t)&&!Fr(e)||Fr(e)&&r&&!Fr(r),"invalidXRangeOrder"),znt=i((t,e)=>t.trim().split(/\s+/).map(r=>Vnt(r,e)).join(" "),"replaceTildes"),Vnt=i((t,e)=>{let r=e.loose?os[Cn.TILDELOOSE]:os[Cn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{kt("tilde",t,s,o,a,c,l);let u;return Fr(o)?u="":Fr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Fr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(kt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,kt("tilde return",u),u})},"replaceTilde"),Wnt=i((t,e)=>t.trim().split(/\s+/).map(r=>Ynt(r,e)).join(" "),"replaceCarets"),Ynt=i((t,e)=>{kt("caret",t,e);let r=e.loose?os[Cn.CARETLOOSE]:os[Cn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{kt("caret",t,s,o,a,c,l);let u;return Fr(o)?u="":Fr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Fr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(kt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(kt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),kt("caret return",u),u})},"replaceCaret"),Jnt=i((t,e)=>(kt("replaceXRanges",t,e),t.split(/\s+/).map(r=>jnt(r,e)).join(" ")),"replaceXRanges"),jnt=i((t,e)=>{t=t.trim();let r=e.loose?os[Cn.XRANGELOOSE]:os[Cn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(kt("xRange",t,n,s,o,a,c,l),Hnt(o,a,c))return t;let u=Fr(o),d=u||Fr(a),p=d||Fr(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),kt("xRange return",n),n})},"replaceXRange"),Knt=i((t,e)=>(kt("replaceStars",t,e),t.trim().replace(os[Cn.STAR],"")),"replaceStars"),Xnt=i((t,e)=>(kt("replaceGTE0",t,e),t.trim().replace(os[e.includePrerelease?Cn.GTE0PRE:Cn.GTE0],"")),"replaceGTE0"),Znt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Fr(n)?r="":Fr(s)?r=`>=${n}.0.0${t?"-0":""}`:Fr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Fr(u)?l="":Fr(d)?l=`<${+u+1}.0.0-0`:Fr(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),est=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var WC=w((mKt,rue)=>{"use strict";var YC=Symbol("SemVer ANY"),jq=class t{static{i(this,"Comparator")}static get ANY(){return YC}constructor(e,r){if(r=Kle(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Jq("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===YC?this.value="":this.value=this.operator+this.semver.version,Jq("comp",this)}parse(e){let r=this.options.loose?Xle[Zle.COMPARATORLOOSE]:Xle[Zle.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new eue(n[2],this.options.loose):this.semver=YC}toString(){return this.value}test(e){if(Jq("Comparator.test",e,this.options.loose),this.semver===YC||e===YC)return!0;if(typeof e=="string")try{e=new eue(e,this.options)}catch{return!1}return Yq(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new tue(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new tue(this.value,r).test(e.semver):(r=Kle(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Yq(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Yq(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};rue.exports=jq;var Kle=OB(),{safeRe:Xle,t:Zle}=oh(),Yq=Hq(),Jq=zC(),eue=En(),tue=Xo()});var JC=w((hKt,nue)=>{"use strict";var tst=Xo(),rst=i((t,e,r)=>{try{e=new tst(e,r)}catch{return!1}return e.test(t)},"satisfies");nue.exports=rst});var oue=w((yKt,sue)=>{"use strict";var nst=Xo(),sst=i((t,e)=>new nst(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");sue.exports=sst});var aue=w((CKt,iue)=>{"use strict";var ost=En(),ist=Xo(),ast=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new ist(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new ost(n,r))}),n},"maxSatisfying");iue.exports=ast});var lue=w((wKt,cue)=>{"use strict";var cst=En(),lst=Xo(),ust=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new lst(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new cst(n,r))}),n},"minSatisfying");cue.exports=ust});var pue=w((xKt,due)=>{"use strict";var Kq=En(),dst=Xo(),uue=VC(),pst=i((t,e)=>{t=new dst(t,e);let r=new Kq("0.0.0");if(t.test(r)||(r=new Kq("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new Kq(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||uue(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||uue(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");due.exports=pst});var mue=w((BKt,fue)=>{"use strict";var fst=Xo(),mst=i((t,e)=>{try{return new fst(t,e).range||"*"}catch{return null}},"validRange");fue.exports=mst});var YB=w((NKt,yue)=>{"use strict";var Ast=En(),gue=WC(),{ANY:hst}=gue,gst=Xo(),yst=JC(),Aue=VC(),hue=$B(),Est=zB(),Cst=HB(),Ist=i((t,e,r,n)=>{t=new Ast(t,n),e=new gst(e,n);let s,o,a,c,l;switch(r){case">":s=Aue,o=Est,a=hue,c=">",l=">=";break;case"<":s=hue,o=Cst,a=Aue,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yst(t,e,n))return!1;for(let u=0;u{m.semver===hst&&(m=new gue(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");yue.exports=Ist});var Cue=w((PKt,Eue)=>{"use strict";var wst=YB(),Sst=i((t,e,r)=>wst(t,e,">",r),"gtr");Eue.exports=Sst});var wue=w((_Kt,Iue)=>{"use strict";var xst=YB(),bst=i((t,e,r)=>xst(t,e,"<",r),"ltr");Iue.exports=bst});var bue=w((DKt,xue)=>{"use strict";var Sue=Xo(),Bst=i((t,e,r)=>(t=new Sue(t,r),e=new Sue(e,r),t.intersects(e,r)),"intersects");xue.exports=Bst});var Rue=w((LKt,Bue)=>{"use strict";var Rst=JC(),Nst=Ko();Bue.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Nst(d,p,r));for(let d of a)Rst(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var Nue=Xo(),eG=WC(),{ANY:Xq}=eG,Zq=JC(),tG=Ko(),Tst=i((t,e,r={})=>{if(t===e)return!0;t=new Nue(t,r),e=new Nue(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=vst(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),Pst=[new eG(">=0.0.0-0")],Tue=[new eG(">=0.0.0")],vst=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Xq){if(e.length===1&&e[0].semver===Xq)return!0;r.includePrerelease?t=Pst:t=Tue}if(e.length===1&&e[0].semver===Xq){if(r.includePrerelease)return!0;e=Tue}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=Pue(s,m,r):m.operator==="<"||m.operator==="<="?o=vue(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=tG(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!Zq(m,String(s),r)||o&&!Zq(m,String(o),r))return null;for(let A of e)if(!Zq(m,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=Pue(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!m.test(s.semver))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=vue(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!m.test(o.semver))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),Pue=i((t,e,r)=>{if(!t)return e;let n=tG(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),vue=i((t,e,r)=>{if(!t)return e;let n=tG(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");_ue.exports=Tst});var Oue=w((FKt,Lue)=>{"use strict";var rG=oh(),Due=sh(),_st=En(),kue=Fq(),Qst=Zu(),Dst=ole(),kst=ale(),Lst=ule(),Ost=fle(),Mst=Ale(),Fst=gle(),Ust=Ele(),qst=Ile(),Gst=Ko(),$st=ble(),Hst=Rle(),zst=GB(),Vst=vle(),Wst=Qle(),Yst=VC(),Jst=$B(),jst=Gq(),Kst=$q(),Xst=HB(),Zst=zB(),eot=Hq(),tot=Gle(),rot=Hle(),not=WC(),sot=Xo(),oot=JC(),iot=oue(),aot=aue(),cot=lue(),lot=pue(),uot=mue(),dot=YB(),pot=Cue(),fot=wue(),mot=bue(),Aot=Rue(),hot=Que();Lue.exports={parse:Qst,valid:Dst,clean:kst,inc:Lst,diff:Ost,major:Mst,minor:Fst,patch:Ust,prerelease:qst,compare:Gst,rcompare:$st,compareLoose:Hst,compareBuild:zst,sort:Vst,rsort:Wst,gt:Yst,lt:Jst,eq:jst,neq:Kst,gte:Xst,lte:Zst,cmp:eot,coerce:tot,truncate:rot,Comparator:not,Range:sot,satisfies:oot,toComparators:iot,maxSatisfying:aot,minSatisfying:cot,minVersion:lot,validRange:uot,outside:dot,gtr:pot,ltr:fot,intersects:mot,simplifyRange:Aot,subset:hot,SemVer:_st,re:rG.re,src:rG.src,tokens:rG.t,SEMVER_SPEC_VERSION:Due.SEMVER_SPEC_VERSION,RELEASE_TYPES:Due.RELEASE_TYPES,compareIdentifiers:kue.compareIdentifiers,rcompareIdentifiers:kue.rcompareIdentifiers}});var Bde=w(($7t,bde)=>{var ph=1e3,fh=ph*60,mh=fh*60,yf=mh*24,Xot=yf*7,Zot=yf*365.25;bde.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return eit(t);if(r==="number"&&isFinite(t))return e.long?rit(t):tit(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function eit(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Zot;case"weeks":case"week":case"w":return r*Xot;case"days":case"day":case"d":return r*yf;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mh;case"minutes":case"minute":case"mins":case"min":case"m":return r*fh;case"seconds":case"second":case"secs":case"sec":case"s":return r*ph;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(eit,"parse");function tit(t){var e=Math.abs(t);return e>=yf?Math.round(t/yf)+"d":e>=mh?Math.round(t/mh)+"h":e>=fh?Math.round(t/fh)+"m":e>=ph?Math.round(t/ph)+"s":t+"ms"}i(tit,"fmtShort");function rit(t){var e=Math.abs(t);return e>=yf?CR(t,e,yf,"day"):e>=mh?CR(t,e,mh,"hour"):e>=fh?CR(t,e,fh,"minute"):e>=ph?CR(t,e,ph,"second"):t+" ms"}i(rit,"fmtLong");function CR(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(CR,"plural")});var RG=w((z7t,Rde)=>{function nit(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=Bde(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let f=0;f{if(v==="%%")return"%";b++;let J=r.formatters[_];if(typeof J=="function"){let ve=E[b];v=J.call(y,ve),E.splice(b,1),b--}return v}),r.formatArgs.call(y,E),(y.log||r.log).apply(y,E)}return i(h,"debug"),h.namespace=d,h.useColors=r.useColors(),h.color=r.selectColor(d),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,A=r.enabled(d)),A),"get"),set:i(E=>{f=E},"set")}),typeof r.init=="function"&&r.init(h),h}i(r,"createDebug");function n(d,p){let f=r(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}i(n,"extend");function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,f=(typeof d=="string"?d:"").split(/[\s,]+/),m=f.length;for(p=0;p"-"+p)].join(",");return r.enable(""),d}i(o,"disable");function a(d){if(d[d.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p{Ao.formatArgs=oit;Ao.save=iit;Ao.load=ait;Ao.useColors=sit;Ao.storage=cit();Ao.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ao.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 sit(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(sit,"useColors");function oit(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+IR.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}i(oit,"formatArgs");Ao.log=console.debug||console.log||(()=>{});function iit(t){try{t?Ao.storage.setItem("debug",t):Ao.storage.removeItem("debug")}catch{}}i(iit,"save");function ait(){let t;try{t=Ao.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(ait,"load");function cit(){try{return localStorage}catch{}}i(cit,"localstorage");IR.exports=RG()(Ao);var{formatters:lit}=IR.exports;lit.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Pde=w((Y7t,Tde)=>{"use strict";Tde.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var uit=require("os"),vde=require("tty"),ei=Pde(),{env:Zr}=process,rd;ei("no-color")||ei("no-colors")||ei("color=false")||ei("color=never")?rd=0:(ei("color")||ei("colors")||ei("color=true")||ei("color=always"))&&(rd=1);"FORCE_COLOR"in Zr&&(Zr.FORCE_COLOR==="true"?rd=1:Zr.FORCE_COLOR==="false"?rd=0:rd=Zr.FORCE_COLOR.length===0?1:Math.min(parseInt(Zr.FORCE_COLOR,10),3));function NG(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(NG,"translateLevel");function TG(t,e){if(rd===0)return 0;if(ei("color=16m")||ei("color=full")||ei("color=truecolor"))return 3;if(ei("color=256"))return 2;if(t&&!e&&rd===void 0)return 0;let r=rd||0;if(Zr.TERM==="dumb")return r;if(process.platform==="win32"){let n=uit.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Zr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Zr)||Zr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Zr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Zr.TEAMCITY_VERSION)?1:0;if(Zr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Zr){let n=parseInt((Zr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Zr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Zr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Zr.TERM)||"COLORTERM"in Zr?1:r}i(TG,"supportsColor");function dit(t){let e=TG(t,t&&t.isTTY);return NG(e)}i(dit,"getSupportLevel");_de.exports={supportsColor:dit,stdout:NG(TG(!0,vde.isatty(1))),stderr:NG(TG(!0,vde.isatty(2)))}});var kde=w((In,SR)=>{var pit=require("tty"),wR=require("util");In.init=Eit;In.log=hit;In.formatArgs=mit;In.save=git;In.load=yit;In.useColors=fit;In.destroy=wR.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");In.colors=[6,2,3,4,5,1];try{let t=Qde();t&&(t.stderr||t).level>=2&&(In.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{}In.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function fit(){return"colors"in In.inspectOpts?!!In.inspectOpts.colors:pit.isatty(process.stderr.fd)}i(fit,"useColors");function mit(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(` `).join(` -`+o),t.push(s+"m+"+hR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=iot()+e+" "+t[0]}i(oot,"formatArgs");function iot(){return In.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(iot,"getDate");function aot(...t){return process.stderr.write(AR.format(...t)+` -`)}i(aot,"log");function cot(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(cot,"save");function lot(){return process.env.DEBUG}i(lot,"load");function uot(t){t.inspectOpts={};let e=Object.keys(In.inspectOpts);for(let r=0;re.trim()).join(" ")};Tde.O=function(t){return this.inspectOpts.colors=this.useColors,AR.inspect(t,this.inspectOpts)}});var fm=w((hXt,IG)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?IG.exports=Sde():IG.exports=vde()});var Qde=w(Ts=>{"use strict";var dot=Ts&&Ts.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pot=Ts&&Ts.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pde=Ts&&Ts.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dot(e,t,r);return pot(e,t),e};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.req=Ts.json=Ts.toBuffer=void 0;var mot=Pde(require("http")),fot=Pde(require("https"));async function _de(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(_de,"toBuffer");Ts.toBuffer=_de;async function Aot(t){let r=(await _de(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Aot,"json");Ts.json=Aot;function hot(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?fot:mot).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(hot,"req");Ts.req=hot});var Ode=w(Ao=>{"use strict";var kde=Ao&&Ao.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),got=Ao&&Ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=Ao&&Ao.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kde(e,t,r);return got(e,t),e},yot=Ao&&Ao.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kde(e,t,r)};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.Agent=void 0;var Eot=Lde(require("net")),Dde=Lde(require("http")),Cot=require("https");yot(Qde(),Ao);var Ja=Symbol("AgentBaseInternalState"),wG=class extends Dde.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ja]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Eot.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Cot.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof Dde.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ja].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Ja].currentSocket;if(this[Ja].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ja].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ja]&&(this[Ja].defaultPort=e)}get protocol(){return this[Ja].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ja]&&(this[Ja].protocol=e)}};Ao.Agent=wG});var Mde=w(uh=>{"use strict";var Iot=uh&&uh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uh,"__esModule",{value:!0});uh.parseProxyResponse=void 0;var wot=Iot(fm()),gR=(0,wot.default)("https-proxy-agent:parse-proxy-response");function Sot(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),gR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),gR("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r +`+o),t.push(s+"m+"+SR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ait()+e+" "+t[0]}i(mit,"formatArgs");function Ait(){return In.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Ait,"getDate");function hit(...t){return process.stderr.write(wR.format(...t)+` +`)}i(hit,"log");function git(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(git,"save");function yit(){return process.env.DEBUG}i(yit,"load");function Eit(t){t.inspectOpts={};let e=Object.keys(In.inspectOpts);for(let r=0;re.trim()).join(" ")};Dde.O=function(t){return this.inspectOpts.colors=this.useColors,wR.inspect(t,this.inspectOpts)}});var Ef=w((X7t,PG)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?PG.exports=Nde():PG.exports=kde()});var Mde=w(vs=>{"use strict";var Cit=vs&&vs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Iit=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lde=vs&&vs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Cit(e,t,r);return Iit(e,t),e};Object.defineProperty(vs,"__esModule",{value:!0});vs.req=vs.json=vs.toBuffer=void 0;var wit=Lde(require("http")),Sit=Lde(require("https"));async function Ode(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Ode,"toBuffer");vs.toBuffer=Ode;async function xit(t){let r=(await Ode(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(xit,"json");vs.json=xit;function bit(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Sit:wit).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(bit,"req");vs.req=bit});var Gde=w(ho=>{"use strict";var Ude=ho&&ho.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bit=ho&&ho.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qde=ho&&ho.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ude(e,t,r);return Bit(e,t),e},Rit=ho&&ho.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ude(e,t,r)};Object.defineProperty(ho,"__esModule",{value:!0});ho.Agent=void 0;var Nit=qde(require("net")),Fde=qde(require("http")),Tit=require("https");Rit(Mde(),ho);var Ja=Symbol("AgentBaseInternalState"),vG=class extends Fde.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ja]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Nit.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Tit.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),c instanceof Fde.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ja].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Ja].currentSocket;if(this[Ja].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ja].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ja]&&(this[Ja].defaultPort=e)}get protocol(){return this[Ja].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ja]&&(this[Ja].protocol=e)}};ho.Agent=vG});var $de=w(Ah=>{"use strict";var Pit=Ah&&Ah.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ah,"__esModule",{value:!0});Ah.parseProxyResponse=void 0;var vit=Pit(Ef()),xR=(0,vit.default)("https-proxy-agent:parse-proxy-response");function _it(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),xR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),xR("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r \r -`);if(m===-1){gR("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r -`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],y=h.slice(2).join(" "),I={};for(let x of f){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,P]:Array.isArray(_)?_.push(P):I[N]=P}gR("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:E,statusText:y,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Sot,"parseProxyResponse");uh.parseProxyResponse=Sot});var $de=w(ei=>{"use strict";var xot=ei&&ei.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bot=ei&&ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gde=ei&&ei.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xot(e,t,r);return bot(e,t),e},Hde=ei&&ei.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ei,"__esModule",{value:!0});ei.HttpsProxyAgent=void 0;var yR=Gde(require("net")),Fde=Gde(require("tls")),Bot=Hde(require("assert")),Rot=Hde(fm()),Not=Ode(),Tot=require("url"),vot=Mde(),ZC=(0,Rot.default)("https-proxy-agent"),Ude=i(t=>t.servername===void 0&&t.host&&!yR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),ER=class extends Not.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Tot.URL(e):e,this.proxyHeaders=r?.headers??{},ZC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?qde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(ZC("Creating `tls.Socket`: %o",this.connectOpts),s=Fde.connect(Ude(this.connectOpts))):(ZC("Creating `net.Socket`: %o",this.connectOpts),s=yR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=yR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r -`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r -`;let l=(0,vot.parseProxyResponse)(s);s.write(`${c}\r -`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Pot),r.secureEndpoint?(ZC("Upgrading socket connection to TLS"),Fde.connect({...qde(Ude(r),"host","path","port"),socket:s})):s;s.destroy();let p=new yR.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{ZC("Replaying proxy buffer for failed request"),(0,Bot.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};ER.protocols=["http","https"];ei.HttpsProxyAgent=ER;function Pot(t){t.resume()}i(Pot,"resume");function qde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(qde,"omit")});var Wde=w(vs=>{"use strict";var _ot=vs&&vs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Qot=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zde=vs&&vs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_ot(e,t,r);return Qot(e,t),e};Object.defineProperty(vs,"__esModule",{value:!0});vs.req=vs.json=vs.toBuffer=void 0;var Dot=zde(require("http")),kot=zde(require("https"));async function Vde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Vde,"toBuffer");vs.toBuffer=Vde;async function Lot(t){let r=(await Vde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Lot,"json");vs.json=Lot;function Oot(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?kot:Dot).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(Oot,"req");vs.req=Oot});var jde=w(ho=>{"use strict";var Jde=ho&&ho.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mot=ho&&ho.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fot=ho&&ho.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Jde(e,t,r);return Mot(e,t),e},Uot=ho&&ho.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Jde(e,t,r)};Object.defineProperty(ho,"__esModule",{value:!0});ho.Agent=void 0;var Yde=Fot(require("http"));Uot(Wde(),ho);var ja=Symbol("AgentBaseInternalState"),SG=class extends Yde.Agent{static{i(this,"Agent")}constructor(e){super(e),this[ja]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof Yde.Agent)return o.addRequest(e,s);this[ja].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[ja].currentSocket;if(this[ja].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ja].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ja]&&(this[ja].defaultPort=e)}get protocol(){return this[ja].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ja]&&(this[ja].protocol=e)}};ho.Agent=SG});var Zde=w(ti=>{"use strict";var qot=ti&&ti.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Got=ti&&ti.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xde=ti&&ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qot(e,t,r);return Got(e,t),e},Hot=ti&&ti.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ti,"__esModule",{value:!0});ti.HttpProxyAgent=void 0;var $ot=Xde(require("net")),zot=Xde(require("tls")),Vot=Hot(fm()),Wot=require("events"),Yot=jde(),Kde=require("url"),dh=(0,Vot.default)("http-proxy-agent"),CR=class extends Yot.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Kde.URL(e):e,this.proxyHeaders=r?.headers??{},dh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Jot(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new Kde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;dh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dh("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`);if(f===-1){xR("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r +`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],y=h.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,v]:Array.isArray(_)?_.push(v):I[N]=v}xR("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:E,statusText:y,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(_it,"parseProxyResponse");Ah.parseProxyResponse=_it});var Jde=w(ti=>{"use strict";var Qit=ti&&ti.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Dit=ti&&ti.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=ti&&ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Qit(e,t,r);return Dit(e,t),e},Yde=ti&&ti.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ti,"__esModule",{value:!0});ti.HttpsProxyAgent=void 0;var bR=Wde(require("net")),Hde=Wde(require("tls")),kit=Yde(require("assert")),Lit=Yde(Ef()),Oit=Gde(),Mit=require("url"),Fit=$de(),oI=(0,Lit.default)("https-proxy-agent"),zde=i(t=>t.servername===void 0&&t.host&&!bR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),BR=class extends Oit.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Mit.URL(e):e,this.proxyHeaders=r?.headers??{},oI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Vde(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(oI("Creating `tls.Socket`: %o",this.connectOpts),s=Hde.connect(zde(this.connectOpts))):(oI("Creating `net.Socket`: %o",this.connectOpts),s=bR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=bR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r +`;let l=(0,Fit.parseProxyResponse)(s);s.write(`${c}\r +`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Uit),r.secureEndpoint?(oI("Upgrading socket connection to TLS"),Hde.connect({...Vde(zde(r),"host","path","port"),socket:s})):s;s.destroy();let p=new bR.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{oI("Replaying proxy buffer for failed request"),(0,kit.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};BR.protocols=["http","https"];ti.HttpsProxyAgent=BR;function Uit(t){t.resume()}i(Uit,"resume");function Vde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Vde,"omit")});var Xde=w(_s=>{"use strict";var qit=_s&&_s.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Git=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jde=_s&&_s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&qit(e,t,r);return Git(e,t),e};Object.defineProperty(_s,"__esModule",{value:!0});_s.req=_s.json=_s.toBuffer=void 0;var $it=jde(require("http")),Hit=jde(require("https"));async function Kde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Kde,"toBuffer");_s.toBuffer=Kde;async function zit(t){let r=(await Kde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(zit,"json");_s.json=zit;function Vit(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Hit:$it).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(Vit,"req");_s.req=Vit});var tpe=w(go=>{"use strict";var epe=go&&go.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wit=go&&go.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yit=go&&go.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&epe(e,t,r);return Wit(e,t),e},Jit=go&&go.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&epe(e,t,r)};Object.defineProperty(go,"__esModule",{value:!0});go.Agent=void 0;var Zde=Yit(require("http"));Jit(Xde(),go);var ja=Symbol("AgentBaseInternalState"),_G=class extends Zde.Agent{static{i(this,"Agent")}constructor(e){super(e),this[ja]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof Zde.Agent)return o.addRequest(e,s);this[ja].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[ja].currentSocket;if(this[ja].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ja].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ja]&&(this[ja].defaultPort=e)}get protocol(){return this[ja].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ja]&&(this[ja].protocol=e)}};go.Agent=_G});var spe=w(ri=>{"use strict";var jit=ri&&ri.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Kit=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),npe=ri&&ri.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jit(e,t,r);return Kit(e,t),e},Xit=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ri,"__esModule",{value:!0});ri.HttpProxyAgent=void 0;var Zit=npe(require("net")),eat=npe(require("tls")),tat=Xit(Ef()),rat=require("events"),nat=tpe(),rpe=require("url"),hh=(0,tat.default)("http-proxy-agent"),RR=class extends nat.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new rpe.URL(e):e,this.proxyHeaders=r?.headers??{},hh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?sat(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new rpe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;hh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hh("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(s),dh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(dh("Creating `tls.Socket`: %o",this.connectOpts),o=zot.connect(this.connectOpts)):(dh("Creating `net.Socket`: %o",this.connectOpts),o=$ot.connect(this.connectOpts)),await(0,Wot.once)(o,"connect"),o}};CR.protocols=["http","https"];ti.HttpProxyAgent=CR;function Jot(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Jot,"omit")});var Ipe=w(DR=>{"use strict";Object.defineProperty(DR,"__esModule",{value:!0});DR.state=void 0;DR.state={instrumenterImplementation:void 0}});var Mpe=w(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.state=void 0;FR.state={operationRequestMap:new WeakMap}});var hAe=w(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var Adt=require("os"),hdt=require("util");function gdt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(gdt,"_interopDefaultLegacy");var ydt=gdt(hdt);function Edt(t,...e){process.stderr.write(`${ydt.default.format(t,...e)}${Adt.EOL}`)}i(Edt,"log");var iAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,cAe,tV=[],rV=[],sT=[];iAe&&nV(iAe);var lAe=Object.assign(t=>uAe(t),{enable:nV,enabled:sV,disable:Cdt,log:Edt});function nV(t){cAe=t,tV=[],rV=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?rV.push(new RegExp(`^${n.substr(1)}$`)):tV.push(new RegExp(`^${n}$`));for(let n of sT)n.enabled=sV(n.namespace)}i(nV,"enable");function sV(t){if(t.endsWith("*"))return!0;for(let e of rV)if(e.test(t))return!1;for(let e of tV)if(e.test(t))return!0;return!1}i(sV,"enabled");function Cdt(){let t=cAe||"";return nV(""),t}i(Cdt,"disable");function uAe(t){let e=Object.assign(r,{enabled:sV(t),destroy:Idt,log:lAe.log,namespace:t,extend:wdt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),sT.push(e),e}i(uAe,"createDebugger");function Idt(){let t=sT.indexOf(this);return t>=0?(sT.splice(t,1),!0):!1}i(Idt,"destroy");function wdt(t){let e=uAe(`${this.namespace}:${t}`);return e.log=this.log,e}i(wdt,"extend");var UI=lAe,dAe=new Set,rT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,oT,iT=UI("azure");iT.log=(...t)=>{UI.log(...t)};var oV=["verbose","info","warning","error"];rT&&(AAe(rT)?pAe(rT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${rT}'; logging is not enabled. Acceptable values: ${oV.join(", ")}.`));function pAe(t){if(t&&!AAe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${oV.join(",")}`);oT=t;let e=[];for(let r of dAe)fAe(r)&&e.push(r.namespace);UI.enable(e.join(","))}i(pAe,"setLogLevel");function Sdt(){return oT}i(Sdt,"getLogLevel");var aAe={verbose:400,info:300,warning:200,error:100};function xdt(t){let e=iT.extend(t);return mAe(iT,e),{error:nT(e,"error"),warning:nT(e,"warning"),info:nT(e,"info"),verbose:nT(e,"verbose")}}i(xdt,"createClientLogger");function mAe(t,e){e.log=(...r)=>{t.log(...r)}}i(mAe,"patchLogMethod");function nT(t,e){let r=Object.assign(t.extend(e),{level:e});if(mAe(t,r),fAe(r)){let n=UI.disable();UI.enable(n+","+r.namespace)}return dAe.add(r),r}i(nT,"createLogger");function fAe(t){return!!(oT&&aAe[t.level]<=aAe[oT])}i(fAe,"shouldEnable");function AAe(t){return oV.includes(t)}i(AAe,"isAzureLogLevel");Th.AzureLogger=iT;Th.createClientLogger=xdt;Th.getLogLevel=Sdt;Th.setLogLevel=pAe});var cV=w(GI=>{"use strict";Object.defineProperty(GI,"__esModule",{value:!0});var vh=new WeakMap,aT=new WeakMap,qI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,vh.set(this,[]),aT.set(this,!1)}get aborted(){if(!aT.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return aT.get(this)}static get none(){return new t}addEventListener(e,r){if(!vh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");vh.get(this).push(r)}removeEventListener(e,r){if(!vh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=vh.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 gAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=vh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),aT.set(t,!0)}i(gAe,"abortSignal");var iV=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},aV=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new qI,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){gAe(this._signal)}static timeout(e){let r=new qI,n=setTimeout(gAe,e,r);return typeof n.unref=="function"&&n.unref(),r}};GI.AbortController=aV;GI.AbortError=iV;GI.AbortSignal=qI});var wAe=w(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var bdt=cV(),pV=require("crypto"),lV,Bdt=typeof process<"u"&&!!process.version&&!!(!((lV=process.versions)===null||lV===void 0)&&lV.node);function yAe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new bdt.AbortError(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(yAe,"createAbortablePromise");var Rdt="The delay was aborted.";function Ndt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return yAe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Rdt})}i(Ndt,"delay");function Tdt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(Tdt,"getRandomIntegerInclusive");function EAe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(EAe,"isObject");function CAe(t){if(EAe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(CAe,"isError");function vdt(t){if(CAe(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(vdt,"getErrorMessage");async function Pdt(t,e,r){let n=Buffer.from(t,"base64");return pV.createHmac("sha256",n).update(e).digest(r)}i(Pdt,"computeSha256Hmac");async function _dt(t,e){return pV.createHash("sha256").update(t).digest(e)}i(_dt,"computeSha256Hash");function mV(t){return typeof t<"u"&&t!==null}i(mV,"isDefined");function Qdt(t,e){if(!mV(t)||typeof t!="object")return!1;for(let r of e)if(!IAe(t,r))return!1;return!0}i(Qdt,"isObjectWithProperties");function IAe(t,e){return mV(t)&&typeof t=="object"&&e in t}i(IAe,"objectHasProperty");function Ddt(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}i(Ddt,"generateUUID");var uV,dV=typeof((uV=globalThis?.crypto)===null||uV===void 0?void 0:uV.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):pV.randomUUID;dV||(dV=Ddt);function kdt(){return dV()}i(kdt,"randomUUID");us.computeSha256Hash=_dt;us.computeSha256Hmac=Pdt;us.createAbortablePromise=yAe;us.delay=Ndt;us.getErrorMessage=vdt;us.getRandomIntegerInclusive=Tdt;us.isDefined=mV;us.isError=CAe;us.isNode=Bdt;us.isObject=EAe;us.isObjectWithProperties=Qdt;us.objectHasProperty=IAe;us.randomUUID=kdt});var HAe=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Ldt=hAe(),SAe=cV(),Odt=wAe(),_m=Ldt.createClientLogger("core-lro"),bAe=2e3,BAe=["succeeded","canceled","failed"];function RAe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(RAe,"deserializeState");function xAe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(xAe,"setStateError");function Mdt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(Mdt,"appendReadableErrorMessage");function Fdt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=Mdt(e,n.message);return{code:r,message:e}}i(Fdt,"simplifyError");function NAe(t){let{state:e,stateProxy:r,status:n,isDone:s,processResult:o,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:m,message:f}=Fdt(u);d=`. ${m}. ${f}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),_m.warning(p);break}case"canceled":{r.setCanceled(e);break}}(s?.(c,e)||s===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,Udt({response:c,state:e,processResult:o}))}i(NAe,"processOperationStatus");function Udt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(Udt,"buildResult");async function TAe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:o,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&o?.(c,!1);let p={metadata:u,operationLocation:c,resourceLocation:l};_m.verbose("LRO: Operation description:",p);let m=r.initState(p),f=s({response:d,state:m,operationLocation:c});return NAe({state:m,status:f,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),m}i(TAe,"initOperation");async function qdt(t){let{poll:e,state:r,stateProxy:n,operationLocation:s,getOperationStatus:o,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(s,l).catch(xAe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(_m.verbose(`LRO: Status: +`)+4,e.outputData[0].data=e._header+n.substring(s),hh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(hh("Creating `tls.Socket`: %o",this.connectOpts),o=eat.connect(this.connectOpts)):(hh("Creating `net.Socket`: %o",this.connectOpts),o=Zit.connect(this.connectOpts)),await(0,rat.once)(o,"connect"),o}};RR.protocols=["http","https"];ri.HttpProxyAgent=RR;function sat(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(sat,"omit")});var Bpe=w(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.state=void 0;qR.state={instrumenterImplementation:void 0}});var $pe=w(VR=>{"use strict";Object.defineProperty(VR,"__esModule",{value:!0});VR.state=void 0;VR.state={operationRequestMap:new WeakMap}});var IAe=w(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var xpt=require("os"),bpt=require("util");function Bpt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Bpt,"_interopDefaultLegacy");var Rpt=Bpt(bpt);function Npt(t,...e){process.stderr.write(`${Rpt.default.format(t,...e)}${xpt.EOL}`)}i(Npt,"log");var dAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fAe,uV=[],dV=[],dT=[];dAe&&pV(dAe);var mAe=Object.assign(t=>AAe(t),{enable:pV,enabled:fV,disable:Tpt,log:Npt});function pV(t){fAe=t,uV=[],dV=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?dV.push(new RegExp(`^${n.substr(1)}$`)):uV.push(new RegExp(`^${n}$`));for(let n of dT)n.enabled=fV(n.namespace)}i(pV,"enable");function fV(t){if(t.endsWith("*"))return!0;for(let e of dV)if(e.test(t))return!1;for(let e of uV)if(e.test(t))return!0;return!1}i(fV,"enabled");function Tpt(){let t=fAe||"";return pV(""),t}i(Tpt,"disable");function AAe(t){let e=Object.assign(r,{enabled:fV(t),destroy:Ppt,log:mAe.log,namespace:t,extend:vpt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),dT.push(e),e}i(AAe,"createDebugger");function Ppt(){let t=dT.indexOf(this);return t>=0?(dT.splice(t,1),!0):!1}i(Ppt,"destroy");function vpt(t){let e=AAe(`${this.namespace}:${t}`);return e.log=this.log,e}i(vpt,"extend");var VI=mAe,hAe=new Set,lT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,pT,fT=VI("azure");fT.log=(...t)=>{VI.log(...t)};var mV=["verbose","info","warning","error"];lT&&(CAe(lT)?gAe(lT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lT}'; logging is not enabled. Acceptable values: ${mV.join(", ")}.`));function gAe(t){if(t&&!CAe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${mV.join(",")}`);pT=t;let e=[];for(let r of hAe)EAe(r)&&e.push(r.namespace);VI.enable(e.join(","))}i(gAe,"setLogLevel");function _pt(){return pT}i(_pt,"getLogLevel");var pAe={verbose:400,info:300,warning:200,error:100};function Qpt(t){let e=fT.extend(t);return yAe(fT,e),{error:uT(e,"error"),warning:uT(e,"warning"),info:uT(e,"info"),verbose:uT(e,"verbose")}}i(Qpt,"createClientLogger");function yAe(t,e){e.log=(...r)=>{t.log(...r)}}i(yAe,"patchLogMethod");function uT(t,e){let r=Object.assign(t.extend(e),{level:e});if(yAe(t,r),EAe(r)){let n=VI.disable();VI.enable(n+","+r.namespace)}return hAe.add(r),r}i(uT,"createLogger");function EAe(t){return!!(pT&&pAe[t.level]<=pAe[pT])}i(EAe,"shouldEnable");function CAe(t){return mV.includes(t)}i(CAe,"isAzureLogLevel");Dh.AzureLogger=fT;Dh.createClientLogger=Qpt;Dh.getLogLevel=_pt;Dh.setLogLevel=gAe});var gV=w(YI=>{"use strict";Object.defineProperty(YI,"__esModule",{value:!0});var kh=new WeakMap,mT=new WeakMap,WI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,kh.set(this,[]),mT.set(this,!1)}get aborted(){if(!mT.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return mT.get(this)}static get none(){return new t}addEventListener(e,r){if(!kh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");kh.get(this).push(r)}removeEventListener(e,r){if(!kh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=kh.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 wAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=kh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),mT.set(t,!0)}i(wAe,"abortSignal");var AV=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},hV=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new WI,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){wAe(this._signal)}static timeout(e){let r=new WI,n=setTimeout(wAe,e,r);return typeof n.unref=="function"&&n.unref(),r}};YI.AbortController=hV;YI.AbortError=AV;YI.AbortSignal=WI});var RAe=w(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Dpt=gV(),IV=require("crypto"),yV,kpt=typeof process<"u"&&!!process.version&&!!(!((yV=process.versions)===null||yV===void 0)&&yV.node);function SAe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new Dpt.AbortError(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(SAe,"createAbortablePromise");var Lpt="The delay was aborted.";function Opt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return SAe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Lpt})}i(Opt,"delay");function Mpt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(Mpt,"getRandomIntegerInclusive");function xAe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(xAe,"isObject");function bAe(t){if(xAe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(bAe,"isError");function Fpt(t){if(bAe(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(Fpt,"getErrorMessage");async function Upt(t,e,r){let n=Buffer.from(t,"base64");return IV.createHmac("sha256",n).update(e).digest(r)}i(Upt,"computeSha256Hmac");async function qpt(t,e){return IV.createHash("sha256").update(t).digest(e)}i(qpt,"computeSha256Hash");function wV(t){return typeof t<"u"&&t!==null}i(wV,"isDefined");function Gpt(t,e){if(!wV(t)||typeof t!="object")return!1;for(let r of e)if(!BAe(t,r))return!1;return!0}i(Gpt,"isObjectWithProperties");function BAe(t,e){return wV(t)&&typeof t=="object"&&e in t}i(BAe,"objectHasProperty");function $pt(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}i($pt,"generateUUID");var EV,CV=typeof((EV=globalThis?.crypto)===null||EV===void 0?void 0:EV.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):IV.randomUUID;CV||(CV=$pt);function Hpt(){return CV()}i(Hpt,"randomUUID");ds.computeSha256Hash=qpt;ds.computeSha256Hmac=Upt;ds.createAbortablePromise=SAe;ds.delay=Opt;ds.getErrorMessage=Fpt;ds.getRandomIntegerInclusive=Mpt;ds.isDefined=wV;ds.isError=bAe;ds.isNode=kpt;ds.isObject=xAe;ds.isObjectWithProperties=Gpt;ds.objectHasProperty=BAe;ds.randomUUID=Hpt});var YAe=w(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var zpt=IAe(),NAe=gV(),Vpt=RAe(),Of=zpt.createClientLogger("core-lro"),PAe=2e3,vAe=["succeeded","canceled","failed"];function _Ae(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(_Ae,"deserializeState");function TAe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(TAe,"setStateError");function Wpt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(Wpt,"appendReadableErrorMessage");function Ypt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=Wpt(e,n.message);return{code:r,message:e}}i(Ypt,"simplifyError");function QAe(t){let{state:e,stateProxy:r,status:n,isDone:s,processResult:o,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:f,message:m}=Ypt(u);d=`. ${f}. ${m}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),Of.warning(p);break}case"canceled":{r.setCanceled(e);break}}(s?.(c,e)||s===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,Jpt({response:c,state:e,processResult:o}))}i(QAe,"processOperationStatus");function Jpt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(Jpt,"buildResult");async function DAe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:o,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&o?.(c,!1);let p={metadata:u,operationLocation:c,resourceLocation:l};Of.verbose("LRO: Operation description:",p);let f=r.initState(p),m=s({response:d,state:f,operationLocation:c});return QAe({state:f,status:m,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),f}i(DAe,"initOperation");async function jpt(t){let{poll:e,state:r,stateProxy:n,operationLocation:s,getOperationStatus:o,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(s,l).catch(TAe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(Of.verbose(`LRO: Status: Polling from: ${r.config.operationLocation} Operation status: ${d} - Polling status: ${BAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(xAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(qdt,"pollOperationHelper");async function vAe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:A,isDone:h,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:I,status:x}=await qdt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(NAe({status:x,response:I,state:r,stateProxy:n,isDone:h,processResult:p,getError:m,setErrorAsResult:E}),!BAe.includes(x)){let b=d?.(I);b&&A(b);let N=c?.(I,r);if(N!==void 0){let P=y!==N;r.config.operationLocation=N,u?.(N,P)}else u?.(y,!1)}f?.(r,I)}}i(vAe,"pollOperation");function PAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(PAe,"getOperationLocationPollingUrl");function _Ae(t){return t.headers.location}i(_Ae,"getLocationHeader");function QAe(t){return t.headers["operation-location"]}i(QAe,"getOperationLocationHeader");function DAe(t){return t.headers["azure-asyncoperation"]}i(DAe,"getAzureAsyncOperationHeader");function Gdt(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(Gdt,"findResourceLocation");function kAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=QAe(e),a=DAe(e),c=PAe({operationLocation:o,azureAsyncOperation:a}),l=_Ae(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Gdt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(kAe,"inferLroMode");function LAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return hV(r);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:return _m.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(LAe,"transformStatus");function Hdt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return LAe({status:r,statusCode:t.statusCode})}i(Hdt,"getStatus");function $dt(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return LAe({status:o,statusCode:t.statusCode})}i($dt,"getProvisioningState");function hV(t){return t===202?"running":t<300?"succeeded":"failed"}i(hV,"toOperationStatus");function OAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?zdt(new Date(e)):r*1e3}}i(OAe,"parseRetryAfter");function MAe(t){let e=t.flatResponse.error;if(!e){_m.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){_m.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(MAe,"getErrorFromResponse");function zdt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=kAe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:FAe,setErrorAsResult:o})}i(Vdt,"initHttpOperation");function UAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return PAe({operationLocation:QAe(t),azureAsyncOperation:DAe(t)});case"ResourceLocation":return _Ae(t);default:return}}i(UAe,"getOperationLocation");function gV({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return Hdt(t);case"ResourceLocation":return hV(t.statusCode);case"Body":return $dt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(gV,"getOperationStatus");function qAe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(qAe,"getResourceLocation");function GAe(t){return t.name==="RestError"}i(GAe,"isOperationError");async function Wdt(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return vAe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:MAe,updateState:o,getPollingInterval:OAe,getOperationLocation:UAe,getOperationStatus:gV,isOperationError:GAe,getResourceLocation:qAe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(Wdt,"pollHttpOperation");var Ydt=i(()=>({initState:i(t=>({status:"running",config:t}),"initState"),setCanceled:i(t=>t.status="canceled","setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.status="running","setRunning"),setSucceeded:i(t=>t.status="succeeded","setSucceeded"),setFailed:i(t=>t.status="failed","setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>t.status==="canceled","isCanceled"),isFailed:i(t=>t.status==="failed","isFailed"),isRunning:i(t=>t.status==="running","isRunning"),isSucceeded:i(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function Jdt(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:o,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},p)=>{let{processResult:m,updateState:f,withOperationLocation:A,intervalInMs:h=bAe,restoreFrom:E}=p||{},y=Ydt(),I=A?(()=>{let _e=!1;return(ie,De)=>{De?A(ie):_e||A(ie),_e=!0}})():void 0,x=E?RAe(E):await TAe({init:u,stateProxy:y,processResult:m,getOperationStatus:r,withOperationLocation:I,setErrorAsResult:!l}),b,N=new SAe.AbortController,P=new Map,_=i(async()=>P.forEach(_e=>_e(x)),"handleProgressEvents"),G="Operation was canceled",ae=h,Ce={getOperationState:i(()=>x,"getOperationState"),getResult:i(()=>x.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(x.status),"isDone"),isStopped:i(()=>b===void 0,"isStopped"),stopPolling:i(()=>{N.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:x}),"toString"),onProgress:i(_e=>{let ie=Symbol();return P.set(ie,_e),()=>P.delete(ie)},"onProgress"),pollUntilDone:i(_e=>b??(b=(async()=>{let{abortSignal:ie}=_e||{},{signal:De}=ie?new SAe.AbortController([ie,N.signal]):N;if(!Ce.isDone())for(await Ce.poll({abortSignal:De});!Ce.isDone();)await Odt.delay(ae,{abortSignal:De}),await Ce.poll({abortSignal:De});if(l)return Ce.getResult();switch(x.status){case"succeeded":return Ce.getResult();case"canceled":throw new Error(G);case"failed":throw x.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{b=void 0})),"pollUntilDone"),async poll(_e){if(l){if(Ce.isDone())return}else switch(x.status){case"succeeded":return;case"canceled":throw new Error(G);case"failed":throw x.error}if(await vAe({poll:d,state:x,stateProxy:y,getOperationLocation:e,isOperationError:s,withOperationLocation:I,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:m,getError:c,updateState:f,options:_e,setDelay:i(ie=>{ae=ie},"setDelay"),setErrorAsResult:!l}),await _(),!l)switch(x.status){case"canceled":throw new Error(G);case"failed":throw x.error}}};return Ce}}i(Jdt,"buildCreatePoller");async function jdt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return Jdt({getStatusFromInitialResponse:FAe,getStatusFromPollResponse:gV,isOperationError:GAe,getOperationLocation:UAe,getResourceLocation:qAe,getPollingInterval:OAe,getError:MAe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=kAe({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:o,updateState:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u})}i(jdt,"createHttpPoller");var Kdt=i(()=>({initState:i(t=>({config:t,isStarted:!0}),"initState"),setCanceled:i(t=>t.isCancelled=!0,"setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.isStarted=!0,"setRunning"),setSucceeded:i(t=>t.isCompleted=!0,"setSucceeded"),setFailed:i(()=>{},"setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>!!t.isCancelled,"isCanceled"),isFailed:i(t=>!!t.error,"isFailed"),isRunning:i(t=>!!t.isStarted,"isRunning"),isSucceeded:i(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),fV=class{static{i(this,"GenericPollOperation")}constructor(e,r,n,s,o,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=s,this.processResult=o,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=Kdt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await Vdt({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let s=this.updateState,o=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await Wdt({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:s?(a,{rawResponse:c})=>s(a,c):void 0,isDone:o?({flatResponse:a},c)=>o(a,c):void 0,options:e,setDelay:i(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return _m.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},cT=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},lT=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},uT=class{static{i(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=i(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new lT("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(r=>r!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new cT("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(){return this.operation.state.result}toString(){return this.operation.toString()}},AV=class extends uT{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=bAe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?RAe(s):{},p=new fV(d,e,!o,c,l,u,a);super(p),this.resolveOnUnsuccessful=o,this.config={intervalInMs:n},p.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};Qm.LroEngine=AV;Qm.Poller=uT;Qm.PollerCancelledError=lT;Qm.PollerStoppedError=cT;Qm.createHttpPoller=jdt});var dhe=w((Nhr,ypt)=>{ypt.exports={name:"@actions/cache",version:"6.2.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.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var mhe=w((Thr,phe)=>{var Ept=dhe();phe.exports={version:Ept.version}});var ST=w(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.isJsonObject=kh.typeofJsonValue=void 0;function Rpt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(Rpt,"typeofJsonValue");kh.typeofJsonValue=Rpt;function Npt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(Npt,"isJsonObject");kh.isJsonObject=Npt});var bT=w(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.base64encode=Lh.base64decode=void 0;var jl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),xT=[];for(let t=0;t>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(Tpt,"base64decode");Lh.base64decode=Tpt;function vpt(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=jl[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=jl[s|n>>6],e+=jl[n&63],r=0;break}return r&&(e+=jl[s],e+="=",r==1&&(e+="=")),e}i(vpt,"base64encode");Lh.base64encode=vpt});var Ehe=w(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.utf8read=void 0;var NV=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Ppt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(NV(n)),s=0);return r.length?(s&&r.push(NV(n.slice(0,s))),r.join("")):NV(n.slice(0,s))}i(Ppt,"utf8read");BT.utf8read=Ppt});var jI=w(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.WireType=wc.mergeBinaryOptions=wc.UnknownFieldHandler=void 0;var _pt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(_pt=wc.UnknownFieldHandler||(wc.UnknownFieldHandler={}));function Qpt(t,e){return Object.assign(Object.assign({},t),e)}i(Qpt,"mergeBinaryOptions");wc.mergeBinaryOptions=Qpt;var Dpt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Dpt=wc.WireType||(wc.WireType={}))});var NT=w(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.varint32read=Os.varint32write=Os.int64toString=Os.int64fromString=Os.varint64write=Os.varint64read=void 0;function kpt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<>>o,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(Lpt,"varint64write");Os.varint64write=Lpt;var RT=65536*65536;function Opt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=RT&&(s=s+(n/RT|0),n=n%RT)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(Opt,"int64fromString");Os.int64fromString=Opt;function Mpt(t,e){if(e>>>0<=2097151)return""+(RT*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let m=d?String(d):"";return p?"0000000".slice(m.length)+m:m}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(Mpt,"int64toString");Os.int64toString=Mpt;function Fpt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(Fpt,"varint32write");Os.varint32write=Fpt;function Upt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}i(Upt,"varint32read");Os.varint32read=Upt});var md=w(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.PbLong=pd.PbULong=pd.detectBi=void 0;var KI=NT(),Rt;function Che(){let t=new DataView(new ArrayBuffer(8));Rt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}i(Che,"detectBi");pd.detectBi=Che;Che();function Ihe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(Ihe,"assertBi");var whe=/^-?[0-9]+$/,vT=4294967296,TT=2147483648,PT=class{static{i(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*vT+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},XI=class t extends PT{static{i(this,"PbULong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(eRt.UMAX)throw new Error("ulong too large");return Rt.V.setBigUint64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!whe.test(e))throw new Error("string is no integer");let[r,n,s]=KI.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,s);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 t(e,e/vT)}throw new Error("unknown value "+typeof e)}toString(){return Rt?this.toBigInt().toString():KI.int64toString(this.lo,this.hi)}toBigInt(){return Ihe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigUint64(0,!0)}};pd.PbULong=XI;XI.ZERO=new XI(0,0);var ZI=class t extends PT{static{i(this,"PbLong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(eRt.MAX)throw new Error("signed long too large");return Rt.V.setBigInt64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!whe.test(e))throw new Error("string is no integer");let[r,n,s]=KI.int64fromString(e);if(r){if(s>TT||s==TT&&n!=0)throw new Error("signed long too small")}else if(s>=TT)throw new Error("signed long too large");let o=new t(n,s);return r?o.negate():o;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/vT):new t(-e,-e/vT).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&TT)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Rt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+KI.int64toString(e.lo,e.hi)}return KI.int64toString(this.lo,this.hi)}toBigInt(){return Ihe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigInt64(0,!0)}};pd.PbLong=ZI;ZI.ZERO=new ZI(0,0)});var TV=w(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.BinaryReader=Mh.binaryReadOptions=void 0;var Oh=jI(),ew=md(),She=NT(),xhe={readUnknownField:!0,readerFactory:i(t=>new _T(t),"readerFactory")};function qpt(t){return t?Object.assign(Object.assign({},xhe),t):xhe}i(qpt,"binaryReadOptions");Mh.binaryReadOptions=qpt;var _T=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=She.varint64read,this.uint32=She.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=r??new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),r=e>>>3,n=e&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(e){let r=this.pos;switch(e){case Oh.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Oh.WireType.Bit64:this.pos+=4;case Oh.WireType.Bit32:this.pos+=4;break;case Oh.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Oh.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==Oh.WireType.EndGroup;)this.skip(s);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,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 ew.PbLong(...this.varint64())}uint64(){return new ew.PbULong(...this.varint64())}sint64(){let[e,r]=this.varint64(),n=-(e&1);return e=(e>>>1|(r&1)<<31)^n,r=r>>>1^n,new ew.PbLong(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new ew.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new ew.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.textDecoder.decode(this.bytes())}};Mh.BinaryReader=_T});var Fh=w(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.assertFloat32=ci.assertUInt32=ci.assertInt32=ci.assertNever=ci.assert=void 0;function Gpt(t,e){if(!t)throw new Error(e)}i(Gpt,"assert");ci.assert=Gpt;function Hpt(t,e){throw new Error(e??"Unexpected object: "+t)}i(Hpt,"assertNever");ci.assertNever=Hpt;var $pt=34028234663852886e22,zpt=-34028234663852886e22,Vpt=4294967295,Wpt=2147483647,Ypt=-2147483648;function Jpt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>Wpt||tVpt||t<0)throw new Error("invalid uint 32: "+t)}i(jpt,"assertUInt32");ci.assertUInt32=jpt;function Kpt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>$pt||t{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.BinaryWriter=qh.binaryWriteOptions=void 0;var tw=md(),rw=NT(),Uh=Fh(),bhe={writeUnknownFields:!0,writerFactory:i(()=>new QT,"writerFactory")};function Xpt(t){return t?Object.assign(Object.assign({},bhe),t):bhe}i(Xpt,"binaryWriteOptions");qh.binaryWriteOptions=Xpt;var QT=class{static{i(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let s=0;s>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Uh.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Uh.assertInt32(e),rw.varint32write(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.textEncoder.encode(e);return this.uint32(r.byteLength),this.raw(r)}float(e){Uh.assertFloat32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){Uh.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Uh.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Uh.assertInt32(e),e=(e<<1^e>>31)>>>0,rw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=tw.PbLong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=tw.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=tw.PbLong.from(e);return rw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=tw.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return rw.varint64write(s,o,this.buf),this}uint64(e){let r=tw.PbULong.from(e);return rw.varint64write(r.lo,r.hi,this.buf),this}};qh.BinaryWriter=QT});var PV=w(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.mergeJsonOptions=fd.jsonWriteOptions=fd.jsonReadOptions=void 0;var Bhe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},Rhe={ignoreUnknownFields:!1};function Zpt(t){return t?Object.assign(Object.assign({},Rhe),t):Rhe}i(Zpt,"jsonReadOptions");fd.jsonReadOptions=Zpt;function emt(t){return t?Object.assign(Object.assign({},Bhe),t):Bhe}i(emt,"jsonWriteOptions");fd.jsonWriteOptions=emt;function tmt(t,e){var r,n;let s=Object.assign(Object.assign({},t),e);return s.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],s}i(tmt,"mergeJsonOptions");fd.mergeJsonOptions=tmt});var nw=w(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.MESSAGE_TYPE=void 0;DT.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var _V=w(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.lowerCamelCase=void 0;function rmt(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.readMessageOption=$r.readFieldOption=$r.readFieldOptions=$r.normalizeFieldInfo=$r.RepeatType=$r.LongType=$r.ScalarType=void 0;var Nhe=_V(),nmt;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(nmt=$r.ScalarType||($r.ScalarType={}));var smt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(smt=$r.LongType||($r.LongType={}));var The;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(The=$r.RepeatType||($r.RepeatType={}));function omt(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:Nhe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:Nhe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:The.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(omt,"normalizeFieldInfo");$r.normalizeFieldInfo=omt;function imt(t,e,r,n){var s;let o=(s=t.fields.find((a,c)=>a.localName==e||c==e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(imt,"readFieldOptions");$r.readFieldOptions=imt;function amt(t,e,r,n){var s;let o=(s=t.fields.find((c,l)=>c.localName==e||l==e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(amt,"readFieldOption");$r.readFieldOption=amt;function cmt(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(cmt,"readMessageOption");$r.readMessageOption=cmt});var QV=w(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.getSelectedOneofValue=Ms.clearOneofValue=Ms.setUnknownOneofValue=Ms.setOneofValue=Ms.getOneofValue=Ms.isOneofGroup=void 0;function lmt(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}i(lmt,"isOneofGroup");Ms.isOneofGroup=lmt;function umt(t,e){return t[e]}i(umt,"getOneofValue");Ms.getOneofValue=umt;function dmt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(dmt,"setOneofValue");Ms.setOneofValue=dmt;function pmt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(pmt,"setUnknownOneofValue");Ms.setUnknownOneofValue=pmt;function mmt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(mmt,"clearOneofValue");Ms.clearOneofValue=mmt;function fmt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(fmt,"getSelectedOneofValue");Ms.getSelectedOneofValue=fmt});var kV=w(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.ReflectionTypeCheck=void 0;var ur=Ki(),Amt=QV(),DV=class{static{i(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let s of this.fields)if(s.oneof)n.includes(s.oneof)||(n.push(s.oneof),e.push(s.oneof),r.push(s.oneof));else switch(r.push(s.localName),s.kind){case"scalar":case"enum":(!s.opt||s.repeat)&&e.push(s.localName);break;case"message":s.repeat&&e.push(s.localName);break;case"map":e.push(s.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let s=Object.keys(e),o=this.data;if(s.length!s.includes(a))||!n&&s.some(a=>!o.known.includes(a)))return!1;if(r<1)return!0;for(let a of o.oneofs){let c=e[a];if(!Amt.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,s){let o=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:o?this.scalars(e,r.T,s,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:o?this.scalars(e,ur.ScalarType.INT32,s):this.scalar(e,ur.ScalarType.INT32);case"message":return e===void 0?!0:o?this.messages(e,r.T(),n,s):this.message(e,r.T(),n,s);case"map":if(typeof e!="object"||e===null)return!1;if(s<2)return!0;if(!this.mapKeys(e,r.K,s))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,s,r.V.L);case"enum":return this.scalars(Object.values(e),ur.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),r.V.T(),n,s)}break}return!0}message(e,r,n,s){return n?r.isAssignable(e,s):r.is(e,s)}messages(e,r,n,s){if(!Array.isArray(e))return!1;if(s<2)return!0;if(n){for(let o=0;oparseInt(o)),r,n);case ur.ScalarType.BOOL:return this.scalars(s.slice(0,n).map(o=>o=="true"?!0:o=="false"?!1:o),r,n);default:return this.scalars(s,r,n,ur.LongType.STRING)}}};LT.ReflectionTypeCheck=DV});var MT=w(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});OT.reflectionLongConvert=void 0;var vhe=Ki();function hmt(t,e){switch(e){case vhe.LongType.BIGINT:return t.toBigInt();case vhe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(hmt,"reflectionLongConvert");OT.reflectionLongConvert=hmt});var OV=w(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.ReflectionJsonReader=void 0;var Phe=ST(),gmt=bT(),zr=Ki(),FT=md(),km=Fh(),UT=MT(),LV=class{static{i(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let s=Phe.typeofJsonValue(n);throw(s=="number"||s=="boolean")&&(s=n.toString()),new Error(`Cannot parse JSON ${s} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let s=[];for(let[o,a]of Object.entries(e)){let c=this.fMap[o];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(s.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(Phe.isJsonObject(a),c.name,a);let d=u[l];for(let[p,m]of Object.entries(a)){this.assert(m!==null,c.name+" map value",null);let f;switch(c.V.kind){case"message":f=c.V.T().internalJsonRead(m,n);break;case"enum":if(f=this.enum(c.V.T(),m,c.name,n.ignoreUnknownFields),f===!1)continue;break;case"scalar":f=this.scalar(m,c.V.T,c.V.L,c.name);break}this.assert(f!==void 0,c.name+" map value",m);let A=p;c.K==zr.ScalarType.BOOL&&(A=A=="true"?!0:A=="false"?!1:A),A=this.scalar(A,c.K,zr.LongType.STRING,c.name).toString(),d[A]=f}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let p of a){this.assert(p!==null,c.name,null);let m;switch(c.kind){case"message":m=c.T().internalJsonRead(p,n);break;case"enum":if(m=this.enum(c.T(),p,c.name,n.ignoreUnknownFields),m===!1)continue;break;case"scalar":m=this.scalar(p,c.T,c.L,c.name);break}this.assert(m!==void 0,c.name,a),d.push(m)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,s){if(e[0]=="google.protobuf.NullValue"&&km.assert(r===null||r==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),r===null)return 0;switch(typeof r){case"number":return km.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let o=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(o=r.substring(e[2].length));let a=e[1][o];return typeof a>"u"&&s?!1:(km.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}km.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,s){let o;try{switch(r){case zr.ScalarType.DOUBLE:case zr.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===""){o="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){o="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){o="not a number";break}if(!Number.isFinite(a)){o="too large or small";break}return r==zr.ScalarType.FLOAT&&km.assertFloat32(a),a;case zr.ScalarType.INT32:case zr.ScalarType.FIXED32:case zr.ScalarType.SFIXED32:case zr.ScalarType.SINT32:case zr.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?o="empty string":typeof e=="string"&&(e.trim().length!==e.length?o="extra whitespace":c=Number(e)),c===void 0)break;return r==zr.ScalarType.UINT32?km.assertUInt32(c):km.assertInt32(c),c;case zr.ScalarType.INT64:case zr.ScalarType.SFIXED64:case zr.ScalarType.SINT64:if(e===null)return UT.reflectionLongConvert(FT.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return UT.reflectionLongConvert(FT.PbLong.from(e),n);case zr.ScalarType.FIXED64:case zr.ScalarType.UINT64:if(e===null)return UT.reflectionLongConvert(FT.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return UT.reflectionLongConvert(FT.PbULong.from(e),n);case zr.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case zr.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){o="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case zr.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return gmt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};qT.ReflectionJsonReader=LV});var FV=w(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.ReflectionJsonWriter=void 0;var ymt=bT(),_he=md(),ds=Ki(),Vt=Fh(),MV=class{static{i(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},s=e;for(let o of this.fields){if(!o.oneof){let u=this.field(o,s[o.localName],r);u!==void 0&&(n[r.useProtoFieldName?o.name:o.jsonName]=u);continue}let a=s[o.oneof];if(a.oneofKind!==o.localName)continue;let c=o.kind=="scalar"||o.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(o,a[o.localName],c);Vt.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){Vt.assert(typeof r=="object"&&r!==null);let o={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);Vt.assert(d!==void 0),o[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);Vt.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Vt.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Vt.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){Vt.assert(Array.isArray(r));let o=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(s=o)}else switch(e.kind){case"scalar":s=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":s=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":s=this.message(e.T(),r,e.name,n);break}return s}enum(e,r,n,s,o,a){if(e[0]=="google.protobuf.NullValue")return!o&&!s?void 0:null;if(r===void 0){Vt.assert(s);return}if(!(r===0&&!o&&!s))return Vt.assert(typeof r=="number"),Vt.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,s){return r===void 0?s.emitDefaultValues?null:void 0:e.internalJsonWrite(r,s)}scalar(e,r,n,s,o){if(r===void 0){Vt.assert(s);return}let a=o||s;switch(e){case ds.ScalarType.INT32:case ds.ScalarType.SFIXED32:case ds.ScalarType.SINT32:return r===0?a?0:void 0:(Vt.assertInt32(r),r);case ds.ScalarType.FIXED32:case ds.ScalarType.UINT32:return r===0?a?0:void 0:(Vt.assertUInt32(r),r);case ds.ScalarType.FLOAT:Vt.assertFloat32(r);case ds.ScalarType.DOUBLE:return r===0?a?0:void 0:(Vt.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case ds.ScalarType.STRING:return r===""?a?"":void 0:(Vt.assert(typeof r=="string"),r);case ds.ScalarType.BOOL:return r===!1?a?!1:void 0:(Vt.assert(typeof r=="boolean"),r);case ds.ScalarType.UINT64:case ds.ScalarType.FIXED64:Vt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=_he.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case ds.ScalarType.INT64:case ds.ScalarType.SFIXED64:case ds.ScalarType.SINT64:Vt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=_he.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case ds.ScalarType.BYTES:return Vt.assert(r instanceof Uint8Array),r.byteLength?ymt.base64encode(r):a?"":void 0}}};GT.ReflectionJsonWriter=MV});var $T=w(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.reflectionScalarDefault=void 0;var Xi=Ki(),Qhe=MT(),Dhe=md();function Emt(t,e=Xi.LongType.STRING){switch(t){case Xi.ScalarType.BOOL:return!1;case Xi.ScalarType.UINT64:case Xi.ScalarType.FIXED64:return Qhe.reflectionLongConvert(Dhe.PbULong.ZERO,e);case Xi.ScalarType.INT64:case Xi.ScalarType.SFIXED64:case Xi.ScalarType.SINT64:return Qhe.reflectionLongConvert(Dhe.PbLong.ZERO,e);case Xi.ScalarType.DOUBLE:case Xi.ScalarType.FLOAT:return 0;case Xi.ScalarType.BYTES:return new Uint8Array(0);case Xi.ScalarType.STRING:return"";default:return 0}}i(Emt,"reflectionScalarDefault");HT.reflectionScalarDefault=Emt});var qV=w(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});zT.ReflectionBinaryReader=void 0;var khe=jI(),xr=Ki(),sw=MT(),Lhe=$T(),UV=class{static{i(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,s){this.prepare();let o=s===void 0?e.len:e.pos+s;for(;e.pos{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});VT.ReflectionBinaryWriter=void 0;var wo=jI(),Tt=Ki(),Gh=Fh(),ow=md(),GV=class{static{i(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let o of this.fields){let a,c,l=o.repeat,u=o.localName;if(o.oneof){let d=e[o.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(o.kind){case"scalar":case"enum":let d=o.kind=="enum"?Tt.ScalarType.INT32:o.T;if(l)if(Gh.assert(Array.isArray(a)),l==Tt.RepeatType.PACKED)this.packed(r,d,o.no,a);else for(let p of a)this.scalar(r,d,o.no,p,!0);else a===void 0?Gh.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){Gh.assert(Array.isArray(a));for(let p of a)this.message(r,n,o.T(),o.no,p)}else this.message(r,n,o.T(),o.no,a);break;case"map":Gh.assert(typeof a=="object"&&a!==null);for(let[p,m]of Object.entries(a))this.mapEntry(r,n,o,p,m);break}}let s=n.writeUnknownFields;s!==!1&&(s===!0?wo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,wo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case Tt.ScalarType.INT32:case Tt.ScalarType.FIXED32:case Tt.ScalarType.UINT32:case Tt.ScalarType.SFIXED32:case Tt.ScalarType.SINT32:a=Number.parseInt(s);break;case Tt.ScalarType.BOOL:Gh.assert(s=="true"||s=="false"),a=s=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,o,!0);break;case"enum":this.scalar(e,Tt.ScalarType.INT32,2,o,!0);break;case"message":this.message(e,r,n.V.T(),2,o);break}e.join()}message(e,r,n,s,o){o!==void 0&&(n.internalBinaryWrite(o,e.tag(s,wo.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,s,o){let[a,c,l]=this.scalarInfo(r,s);(!l||o)&&(e.tag(n,a),e[c](s))}packed(e,r,n,s){if(!s.length)return;Gh.assert(r!==Tt.ScalarType.BYTES&&r!==Tt.ScalarType.STRING),e.tag(n,wo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(WT,"__esModule",{value:!0});WT.reflectionCreate=void 0;var Cmt=$T(),Imt=nw();function wmt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Imt.MESSAGE_TYPE,{value:t});for(let r of t.fields){let n=r.localName;if(!r.opt)if(r.oneof)e[r.oneof]={oneofKind:void 0};else if(r.repeat)e[n]=[];else switch(r.kind){case"scalar":e[n]=Cmt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(wmt,"reflectionCreate");WT.reflectionCreate=wmt});var zV=w(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.reflectionMergePartial=void 0;function Smt(t,e,r){let n,s=r,o;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=s[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],o=e[a.oneof],o.oneofKind=l.oneofKind,n==null){delete o[c];continue}}else if(n=s[c],o=e,n==null)continue;switch(a.repeat&&(o[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.reflectionEquals=void 0;var VV=Ki();function xmt(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let s=n.localName,o=n.oneof?e[n.oneof][s]:e[s],a=n.oneof?r[n.oneof][s]:r[s];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?VV.ScalarType.INT32:n.T;if(!(n.repeat?Ohe(c,o,a):Fhe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?Mhe(n.V.T(),JT(o),JT(a)):Ohe(n.V.kind=="enum"?VV.ScalarType.INT32:n.V.T,JT(o),JT(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?Mhe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(xmt,"reflectionEquals");jT.reflectionEquals=xmt;var JT=Object.values;function Fhe(t,e,r){if(e===r)return!0;if(t!==VV.ScalarType.BYTES)return!1;let n=e,s=r;if(n.length!==s.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});KT.MessageType=void 0;var bmt=nw(),Bmt=Ki(),Rmt=kV(),Nmt=OV(),Tmt=FV(),vmt=qV(),Pmt=HV(),_mt=$V(),YV=zV(),Qmt=ST(),Uhe=PV(),Dmt=WV(),kmt=vV(),Lmt=TV(),qhe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),Omt=qhe[bmt.MESSAGE_TYPE]={},JV=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Bmt.normalizeFieldInfo),this.options=n??{},Omt.value=this,this.messagePrototype=Object.create(null,qhe),this.refTypeCheck=new Rmt.ReflectionTypeCheck(this),this.refJsonReader=new Nmt.ReflectionJsonReader(this),this.refJsonWriter=new Tmt.ReflectionJsonWriter(this),this.refBinReader=new vmt.ReflectionBinaryReader(this),this.refBinWriter=new Pmt.ReflectionBinaryWriter(this)}create(e){let r=_mt.reflectionCreate(this);return e!==void 0&&YV.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return YV.reflectionMergePartial(this,r,e),r}equals(e,r){return Dmt.reflectionEquals(this,e,r)}is(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!1)}isAssignable(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!0)}mergePartial(e,r){YV.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=Lmt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,Uhe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,Uhe.jsonWriteOptions(r))}toJsonString(e,r){var n;let s=this.toJson(e,r);return JSON.stringify(s,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=kmt.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let s=n??this.create();return this.refJsonReader.read(e,s,r),s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Qmt.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,s){let o=s??this.create();return this.refBinReader.read(e,o,n,r),o}};KT.MessageType=JV});var Hhe=w(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.containsMessageType=void 0;var Mmt=nw();function Fmt(t){return t[Mmt.MESSAGE_TYPE]!=null}i(Fmt,"containsMessageType");XT.containsMessageType=Fmt});var zhe=w(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.listEnumNumbers=Sc.listEnumNames=Sc.listEnumValues=Sc.isEnumObject=void 0;function $he(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}i($he,"isEnumObject");Sc.isEnumObject=$he;function jV(t){if(!$he(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}i(jV,"listEnumValues");Sc.listEnumValues=jV;function Umt(t){return jV(t).map(e=>e.name)}i(Umt,"listEnumNames");Sc.listEnumNames=Umt;function qmt(t){return jV(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(qmt,"listEnumNumbers");Sc.listEnumNumbers=qmt});var br=w(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});var Vhe=ST();Object.defineProperty(me,"typeofJsonValue",{enumerable:!0,get:i(function(){return Vhe.typeofJsonValue},"get")});Object.defineProperty(me,"isJsonObject",{enumerable:!0,get:i(function(){return Vhe.isJsonObject},"get")});var Whe=bT();Object.defineProperty(me,"base64decode",{enumerable:!0,get:i(function(){return Whe.base64decode},"get")});Object.defineProperty(me,"base64encode",{enumerable:!0,get:i(function(){return Whe.base64encode},"get")});var Gmt=Ehe();Object.defineProperty(me,"utf8read",{enumerable:!0,get:i(function(){return Gmt.utf8read},"get")});var KV=jI();Object.defineProperty(me,"WireType",{enumerable:!0,get:i(function(){return KV.WireType},"get")});Object.defineProperty(me,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return KV.mergeBinaryOptions},"get")});Object.defineProperty(me,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return KV.UnknownFieldHandler},"get")});var Yhe=TV();Object.defineProperty(me,"BinaryReader",{enumerable:!0,get:i(function(){return Yhe.BinaryReader},"get")});Object.defineProperty(me,"binaryReadOptions",{enumerable:!0,get:i(function(){return Yhe.binaryReadOptions},"get")});var Jhe=vV();Object.defineProperty(me,"BinaryWriter",{enumerable:!0,get:i(function(){return Jhe.BinaryWriter},"get")});Object.defineProperty(me,"binaryWriteOptions",{enumerable:!0,get:i(function(){return Jhe.binaryWriteOptions},"get")});var jhe=md();Object.defineProperty(me,"PbLong",{enumerable:!0,get:i(function(){return jhe.PbLong},"get")});Object.defineProperty(me,"PbULong",{enumerable:!0,get:i(function(){return jhe.PbULong},"get")});var XV=PV();Object.defineProperty(me,"jsonReadOptions",{enumerable:!0,get:i(function(){return XV.jsonReadOptions},"get")});Object.defineProperty(me,"jsonWriteOptions",{enumerable:!0,get:i(function(){return XV.jsonWriteOptions},"get")});Object.defineProperty(me,"mergeJsonOptions",{enumerable:!0,get:i(function(){return XV.mergeJsonOptions},"get")});var Hmt=nw();Object.defineProperty(me,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return Hmt.MESSAGE_TYPE},"get")});var $mt=Ghe();Object.defineProperty(me,"MessageType",{enumerable:!0,get:i(function(){return $mt.MessageType},"get")});var Lm=Ki();Object.defineProperty(me,"ScalarType",{enumerable:!0,get:i(function(){return Lm.ScalarType},"get")});Object.defineProperty(me,"LongType",{enumerable:!0,get:i(function(){return Lm.LongType},"get")});Object.defineProperty(me,"RepeatType",{enumerable:!0,get:i(function(){return Lm.RepeatType},"get")});Object.defineProperty(me,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Lm.normalizeFieldInfo},"get")});Object.defineProperty(me,"readFieldOptions",{enumerable:!0,get:i(function(){return Lm.readFieldOptions},"get")});Object.defineProperty(me,"readFieldOption",{enumerable:!0,get:i(function(){return Lm.readFieldOption},"get")});Object.defineProperty(me,"readMessageOption",{enumerable:!0,get:i(function(){return Lm.readMessageOption},"get")});var zmt=kV();Object.defineProperty(me,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return zmt.ReflectionTypeCheck},"get")});var Vmt=$V();Object.defineProperty(me,"reflectionCreate",{enumerable:!0,get:i(function(){return Vmt.reflectionCreate},"get")});var Wmt=$T();Object.defineProperty(me,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return Wmt.reflectionScalarDefault},"get")});var Ymt=zV();Object.defineProperty(me,"reflectionMergePartial",{enumerable:!0,get:i(function(){return Ymt.reflectionMergePartial},"get")});var Jmt=WV();Object.defineProperty(me,"reflectionEquals",{enumerable:!0,get:i(function(){return Jmt.reflectionEquals},"get")});var jmt=qV();Object.defineProperty(me,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return jmt.ReflectionBinaryReader},"get")});var Kmt=HV();Object.defineProperty(me,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return Kmt.ReflectionBinaryWriter},"get")});var Xmt=OV();Object.defineProperty(me,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return Xmt.ReflectionJsonReader},"get")});var Zmt=FV();Object.defineProperty(me,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return Zmt.ReflectionJsonWriter},"get")});var eft=Hhe();Object.defineProperty(me,"containsMessageType",{enumerable:!0,get:i(function(){return eft.containsMessageType},"get")});var iw=QV();Object.defineProperty(me,"isOneofGroup",{enumerable:!0,get:i(function(){return iw.isOneofGroup},"get")});Object.defineProperty(me,"setOneofValue",{enumerable:!0,get:i(function(){return iw.setOneofValue},"get")});Object.defineProperty(me,"getOneofValue",{enumerable:!0,get:i(function(){return iw.getOneofValue},"get")});Object.defineProperty(me,"clearOneofValue",{enumerable:!0,get:i(function(){return iw.clearOneofValue},"get")});Object.defineProperty(me,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return iw.getSelectedOneofValue},"get")});var ZT=zhe();Object.defineProperty(me,"listEnumValues",{enumerable:!0,get:i(function(){return ZT.listEnumValues},"get")});Object.defineProperty(me,"listEnumNames",{enumerable:!0,get:i(function(){return ZT.listEnumNames},"get")});Object.defineProperty(me,"listEnumNumbers",{enumerable:!0,get:i(function(){return ZT.listEnumNumbers},"get")});Object.defineProperty(me,"isEnumObject",{enumerable:!0,get:i(function(){return ZT.isEnumObject},"get")});var tft=_V();Object.defineProperty(me,"lowerCamelCase",{enumerable:!0,get:i(function(){return tft.lowerCamelCase},"get")});var aw=Fh();Object.defineProperty(me,"assert",{enumerable:!0,get:i(function(){return aw.assert},"get")});Object.defineProperty(me,"assertNever",{enumerable:!0,get:i(function(){return aw.assertNever},"get")});Object.defineProperty(me,"assertInt32",{enumerable:!0,get:i(function(){return aw.assertInt32},"get")});Object.defineProperty(me,"assertUInt32",{enumerable:!0,get:i(function(){return aw.assertUInt32},"get")});Object.defineProperty(me,"assertFloat32",{enumerable:!0,get:i(function(){return aw.assertFloat32},"get")})});var ZV=w(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.readServiceOption=xc.readMethodOption=xc.readMethodOptions=xc.normalizeMethodInfo=void 0;var rft=br();function nft(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:rft.lowerCamelCase(o.name),o.serverStreaming=!!o.serverStreaming,o.clientStreaming=!!o.clientStreaming,o.options=(n=o.options)!==null&&n!==void 0?n:{},o.idempotency=(s=o.idempotency)!==null&&s!==void 0?s:void 0,o}i(nft,"normalizeMethodInfo");xc.normalizeMethodInfo=nft;function sft(t,e,r,n){var s;let o=(s=t.methods.find((a,c)=>a.localName===e||c===e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(sft,"readMethodOptions");xc.readMethodOptions=sft;function oft(t,e,r,n){var s;let o=(s=t.methods.find((c,l)=>c.localName===e||l===e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(oft,"readMethodOption");xc.readMethodOption=oft;function ift(t,e,r){let n=t.options;if(!n)return;let s=n[e];return s===void 0?s:r?r.fromJson(s):s}i(ift,"readServiceOption");xc.readServiceOption=ift});var Khe=w(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.ServiceType=void 0;var aft=ZV(),e4=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>aft.normalizeMethodInfo(s,this)),this.options=n??{}}};ev.ServiceType=e4});var r4=w(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});tv.RpcError=void 0;var t4=class extends Error{static{i(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,s]of r)e.push(` ${n}: ${s}`)}return e.join(` -`)}};tv.RpcError=t4});var n4=w(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.mergeRpcOptions=void 0;var Xhe=br();function cft(t,e){if(!e)return t;let r={};rv(t,r),rv(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Xhe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Xhe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},rv(t.meta,r.meta),rv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(cft,"mergeRpcOptions");nv.mergeRpcOptions=cft;function rv(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(rv,"copy")});var o4=w(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.Deferred=Om.DeferredState=void 0;var bc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(bc=Om.DeferredState||(Om.DeferredState={}));var s4=class{static{i(this,"Deferred")}constructor(e=!0){this._state=bc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==bc.PENDING)throw new Error(`cannot resolve ${bc[this.state].toLowerCase()}`);this._resolve(e),this._state=bc.RESOLVED}reject(e){if(this.state!==bc.PENDING)throw new Error(`cannot reject ${bc[this.state].toLowerCase()}`);this._reject(e),this._state=bc.REJECTED}resolvePending(e){this._state===bc.PENDING&&this.resolve(e)}rejectPending(e){this._state===bc.PENDING&&this.reject(e)}};Om.Deferred=s4});var a4=w(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.RpcOutputStreamController=void 0;var Zhe=o4(),Mm=br(),i4=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,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,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Mm.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Mm.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Mm.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Mm.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{let e=this._itState;Mm.assert(e,"bad state"),Mm.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Zhe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Mm.assert(n.state==Zhe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};sv.RpcOutputStreamController=i4});var l4=w(Hh=>{"use strict";var lft=Hh&&Hh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.UnaryCall=void 0;var c4=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return lft(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Hh.UnaryCall=c4});var d4=w($h=>{"use strict";var uft=$h&&$h.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty($h,"__esModule",{value:!0});$h.ServerStreamingCall=void 0;var u4=class{static{i(this,"ServerStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return uft(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:r,trailers:n}})}};$h.ServerStreamingCall=u4});var m4=w(zh=>{"use strict";var dft=zh&&zh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(zh,"__esModule",{value:!0});zh.ClientStreamingCall=void 0;var p4=class{static{i(this,"ClientStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return dft(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:s}})}};zh.ClientStreamingCall=p4});var A4=w(Vh=>{"use strict";var pft=Vh&&Vh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vh,"__esModule",{value:!0});Vh.DuplexStreamingCall=void 0;var f4=class{static{i(this,"DuplexStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return pft(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:r,trailers:n}})}};Vh.DuplexStreamingCall=f4});var tge=w(Jh=>{"use strict";var mft=Jh&&Jh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.TestTransport=void 0;var li=r4(),ov=br(),ege=a4(),fft=n4(),Aft=l4(),hft=d4(),gft=m4(),yft=A4(),Yh=class t{static{i(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof Wh?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof Wh?this.lastInput.completed:typeof this.lastInput=="object"}promiseHeaders(){var e;let r=(e=this.data.headers)!==null&&e!==void 0?e:t.defaultHeaders;return r instanceof li.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof li.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(ov.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),ov.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return mft(this,void 0,void 0,function*(){let s=[];if(this.data.response===void 0)s.push(e.O.create());else if(Array.isArray(this.data.response))for(let o of this.data.response)ov.assert(e.O.is(o)),s.push(o);else this.data.response instanceof li.RpcError||(ov.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield sn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof li.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield sn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof li.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof li.RpcError){r.notifyError(this.data.trailers);return}r.notifyComplete()})}promiseStatus(){var e;let r=(e=this.data.status)!==null&&e!==void 0?e:t.defaultStatus;return r instanceof li.RpcError?Promise.reject(r):Promise.resolve(r)}promiseTrailers(){var e;let r=(e=this.data.trailers)!==null&&e!==void 0?e:t.defaultTrailers;return r instanceof li.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return fft.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(sn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(sn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(sn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(sn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Aft.UnaryCall(e,o,r,a,c,l,u)}serverStreaming(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(sn(this.headerDelay,n.abort)),c=new ege.RpcOutputStreamController,l=a.then(sn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(sn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new hft.ServerStreamingCall(e,o,r,a,c,u,d)}clientStreaming(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(sn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(sn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(sn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(sn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new Wh(this.data,r.abort),new gft.ClientStreamingCall(e,s,this.lastInput,o,a,c,l)}duplex(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(sn(this.headerDelay,r.abort)),a=new ege.RpcOutputStreamController,c=o.then(sn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(sn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new Wh(this.data,r.abort),new yft.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};Jh.TestTransport=Yh;Yh.defaultHeaders={responseHeader:"test"};Yh.defaultStatus={code:"OK",detail:"all good"};Yh.defaultTrailers={responseTrailer:"test"};function sn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new li.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new li.RpcError("user cancel","CANCELLED"))})}})}i(sn,"delay");var Wh=class{static{i(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof li.RpcError)return Promise.reject(this.data.inputMessage);let r=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(sn(r,this.abort))}complete(){if(this.data.inputComplete instanceof li.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(sn(e,this.abort))}}});var rge=w(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.stackDuplexStreamingInterceptors=ui.stackClientStreamingInterceptors=ui.stackServerStreamingInterceptors=ui.stackUnaryInterceptors=ui.stackIntercept=void 0;var Eft=br();function cw(t,e,r,n,s){var o,a,c,l;if(t=="unary"){let u=i((d,p,m)=>e.unary(d,p,m),"tail");for(let d of((o=n.interceptors)!==null&&o!==void 0?o:[]).filter(p=>p.interceptUnary).reverse()){let p=u;u=i((m,f,A)=>d.interceptUnary(p,m,f,A),"tail")}return u(r,s,n)}if(t=="serverStreaming"){let u=i((d,p,m)=>e.serverStreaming(d,p,m),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(p=>p.interceptServerStreaming).reverse()){let p=u;u=i((m,f,A)=>d.interceptServerStreaming(p,m,f,A),"tail")}return u(r,s,n)}if(t=="clientStreaming"){let u=i((d,p)=>e.clientStreaming(d,p),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(p=>p.interceptClientStreaming).reverse()){let p=u;u=i((m,f)=>d.interceptClientStreaming(p,m,f),"tail")}return u(r,n)}if(t=="duplex"){let u=i((d,p)=>e.duplex(d,p),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(p=>p.interceptDuplex).reverse()){let p=u;u=i((m,f)=>d.interceptDuplex(p,m,f),"tail")}return u(r,n)}Eft.assertNever(t)}i(cw,"stackIntercept");ui.stackIntercept=cw;function Cft(t,e,r,n){return cw("unary",t,e,n,r)}i(Cft,"stackUnaryInterceptors");ui.stackUnaryInterceptors=Cft;function Ift(t,e,r,n){return cw("serverStreaming",t,e,n,r)}i(Ift,"stackServerStreamingInterceptors");ui.stackServerStreamingInterceptors=Ift;function wft(t,e,r){return cw("clientStreaming",t,e,r)}i(wft,"stackClientStreamingInterceptors");ui.stackClientStreamingInterceptors=wft;function Sft(t,e,r){return cw("duplex",t,e,r)}i(Sft,"stackDuplexStreamingInterceptors");ui.stackDuplexStreamingInterceptors=Sft});var nge=w(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.ServerCallContextController=void 0;var h4=class{static{i(this,"ServerCallContextController")}constructor(e,r,n,s,o={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=s,this.status=o}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};iv.ServerCallContextController=h4});var oge=w(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var xft=Khe();Object.defineProperty(dr,"ServiceType",{enumerable:!0,get:i(function(){return xft.ServiceType},"get")});var g4=ZV();Object.defineProperty(dr,"readMethodOptions",{enumerable:!0,get:i(function(){return g4.readMethodOptions},"get")});Object.defineProperty(dr,"readMethodOption",{enumerable:!0,get:i(function(){return g4.readMethodOption},"get")});Object.defineProperty(dr,"readServiceOption",{enumerable:!0,get:i(function(){return g4.readServiceOption},"get")});var bft=r4();Object.defineProperty(dr,"RpcError",{enumerable:!0,get:i(function(){return bft.RpcError},"get")});var Bft=n4();Object.defineProperty(dr,"mergeRpcOptions",{enumerable:!0,get:i(function(){return Bft.mergeRpcOptions},"get")});var Rft=a4();Object.defineProperty(dr,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return Rft.RpcOutputStreamController},"get")});var Nft=tge();Object.defineProperty(dr,"TestTransport",{enumerable:!0,get:i(function(){return Nft.TestTransport},"get")});var sge=o4();Object.defineProperty(dr,"Deferred",{enumerable:!0,get:i(function(){return sge.Deferred},"get")});Object.defineProperty(dr,"DeferredState",{enumerable:!0,get:i(function(){return sge.DeferredState},"get")});var Tft=A4();Object.defineProperty(dr,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return Tft.DuplexStreamingCall},"get")});var vft=m4();Object.defineProperty(dr,"ClientStreamingCall",{enumerable:!0,get:i(function(){return vft.ClientStreamingCall},"get")});var Pft=d4();Object.defineProperty(dr,"ServerStreamingCall",{enumerable:!0,get:i(function(){return Pft.ServerStreamingCall},"get")});var _ft=l4();Object.defineProperty(dr,"UnaryCall",{enumerable:!0,get:i(function(){return _ft.UnaryCall},"get")});var lw=rge();Object.defineProperty(dr,"stackIntercept",{enumerable:!0,get:i(function(){return lw.stackIntercept},"get")});Object.defineProperty(dr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return lw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(dr,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return lw.stackClientStreamingInterceptors},"get")});Object.defineProperty(dr,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return lw.stackServerStreamingInterceptors},"get")});Object.defineProperty(dr,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return lw.stackUnaryInterceptors},"get")});var Qft=nge();Object.defineProperty(dr,"ServerCallContextController",{enumerable:!0,get:i(function(){return Qft.ServerCallContextController},"get")})});var ag=w((vEr,dye)=>{"use strict";var agt="2.0.0",cgt=Number.MAX_SAFE_INTEGER||9007199254740991,lgt=16,ugt=250,dgt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dye.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lgt,MAX_SAFE_BUILD_LENGTH:ugt,MAX_SAFE_INTEGER:cgt,RELEASE_TYPES:dgt,SEMVER_SPEC_VERSION:agt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mw=w((PEr,pye)=>{"use strict";var pgt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pye.exports=pgt});var cg=w((Rc,mye)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:mW,MAX_SAFE_BUILD_LENGTH:mgt,MAX_LENGTH:fgt}=ag(),Agt=mw();Rc=mye.exports={};var hgt=Rc.re=[],ggt=Rc.safeRe=[],Y=Rc.src=[],ygt=Rc.safeSrc=[],J=Rc.t={},Egt=0,fW="[a-zA-Z0-9-]",Cgt=[["\\s",1],["\\d",fgt],[fW,mgt]],Igt=i(t=>{for(let[e,r]of Cgt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ue=i((t,e,r)=>{let n=Igt(e),s=Egt++;Agt(t,s,e),J[t]=s,Y[s]=e,ygt[s]=n,hgt[s]=new RegExp(e,r?"g":void 0),ggt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ue("NUMERICIDENTIFIER","0|[1-9]\\d*");Ue("NUMERICIDENTIFIERLOOSE","\\d+");Ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${fW}*`);Ue("MAINVERSION",`(${Y[J.NUMERICIDENTIFIER]})\\.(${Y[J.NUMERICIDENTIFIER]})\\.(${Y[J.NUMERICIDENTIFIER]})`);Ue("MAINVERSIONLOOSE",`(${Y[J.NUMERICIDENTIFIERLOOSE]})\\.(${Y[J.NUMERICIDENTIFIERLOOSE]})\\.(${Y[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASEIDENTIFIER",`(?:${Y[J.NONNUMERICIDENTIFIER]}|${Y[J.NUMERICIDENTIFIER]})`);Ue("PRERELEASEIDENTIFIERLOOSE",`(?:${Y[J.NONNUMERICIDENTIFIER]}|${Y[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASE",`(?:-(${Y[J.PRERELEASEIDENTIFIER]}(?:\\.${Y[J.PRERELEASEIDENTIFIER]})*))`);Ue("PRERELEASELOOSE",`(?:-?(${Y[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Y[J.PRERELEASEIDENTIFIERLOOSE]})*))`);Ue("BUILDIDENTIFIER",`${fW}+`);Ue("BUILD",`(?:\\+(${Y[J.BUILDIDENTIFIER]}(?:\\.${Y[J.BUILDIDENTIFIER]})*))`);Ue("FULLPLAIN",`v?${Y[J.MAINVERSION]}${Y[J.PRERELEASE]}?${Y[J.BUILD]}?`);Ue("FULL",`^${Y[J.FULLPLAIN]}$`);Ue("LOOSEPLAIN",`[v=\\s]*${Y[J.MAINVERSIONLOOSE]}${Y[J.PRERELEASELOOSE]}?${Y[J.BUILD]}?`);Ue("LOOSE",`^${Y[J.LOOSEPLAIN]}$`);Ue("GTLT","((?:<|>)?=?)");Ue("XRANGEIDENTIFIERLOOSE",`${Y[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ue("XRANGEIDENTIFIER",`${Y[J.NUMERICIDENTIFIER]}|x|X|\\*`);Ue("XRANGEPLAIN",`[v=\\s]*(${Y[J.XRANGEIDENTIFIER]})(?:\\.(${Y[J.XRANGEIDENTIFIER]})(?:\\.(${Y[J.XRANGEIDENTIFIER]})(?:${Y[J.PRERELEASE]})?${Y[J.BUILD]}?)?)?`);Ue("XRANGEPLAINLOOSE",`[v=\\s]*(${Y[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Y[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Y[J.XRANGEIDENTIFIERLOOSE]})(?:${Y[J.PRERELEASELOOSE]})?${Y[J.BUILD]}?)?)?`);Ue("XRANGE",`^${Y[J.GTLT]}\\s*${Y[J.XRANGEPLAIN]}$`);Ue("XRANGELOOSE",`^${Y[J.GTLT]}\\s*${Y[J.XRANGEPLAINLOOSE]}$`);Ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${mW}})(?:\\.(\\d{1,${mW}}))?(?:\\.(\\d{1,${mW}}))?`);Ue("COERCE",`${Y[J.COERCEPLAIN]}(?:$|[^\\d])`);Ue("COERCEFULL",Y[J.COERCEPLAIN]+`(?:${Y[J.PRERELEASE]})?(?:${Y[J.BUILD]})?(?:$|[^\\d])`);Ue("COERCERTL",Y[J.COERCE],!0);Ue("COERCERTLFULL",Y[J.COERCEFULL],!0);Ue("LONETILDE","(?:~>?)");Ue("TILDETRIM",`(\\s*)${Y[J.LONETILDE]}\\s+`,!0);Rc.tildeTrimReplace="$1~";Ue("TILDE",`^${Y[J.LONETILDE]}${Y[J.XRANGEPLAIN]}$`);Ue("TILDELOOSE",`^${Y[J.LONETILDE]}${Y[J.XRANGEPLAINLOOSE]}$`);Ue("LONECARET","(?:\\^)");Ue("CARETTRIM",`(\\s*)${Y[J.LONECARET]}\\s+`,!0);Rc.caretTrimReplace="$1^";Ue("CARET",`^${Y[J.LONECARET]}${Y[J.XRANGEPLAIN]}$`);Ue("CARETLOOSE",`^${Y[J.LONECARET]}${Y[J.XRANGEPLAINLOOSE]}$`);Ue("COMPARATORLOOSE",`^${Y[J.GTLT]}\\s*(${Y[J.LOOSEPLAIN]})$|^$`);Ue("COMPARATOR",`^${Y[J.GTLT]}\\s*(${Y[J.FULLPLAIN]})$|^$`);Ue("COMPARATORTRIM",`(\\s*)${Y[J.GTLT]}\\s*(${Y[J.LOOSEPLAIN]}|${Y[J.XRANGEPLAIN]})`,!0);Rc.comparatorTrimReplace="$1$2$3";Ue("HYPHENRANGE",`^\\s*(${Y[J.XRANGEPLAIN]})\\s+-\\s+(${Y[J.XRANGEPLAIN]})\\s*$`);Ue("HYPHENRANGELOOSE",`^\\s*(${Y[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${Y[J.XRANGEPLAINLOOSE]})\\s*$`);Ue("STAR","(<|>)?=?\\s*\\*");Ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Sv=w((QEr,fye)=>{"use strict";var wgt=Object.freeze({loose:!0}),Sgt=Object.freeze({}),xgt=i(t=>t?typeof t!="object"?wgt:t:Sgt,"parseOptions");fye.exports=xgt});var AW=w((kEr,gye)=>{"use strict";var Aye=/^[0-9]+$/,hye=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:thye(e,t),"rcompareIdentifiers");gye.exports={compareIdentifiers:hye,rcompareIdentifiers:bgt}});var Sn=w((OEr,Eye)=>{"use strict";var xv=mw(),{MAX_LENGTH:yye,MAX_SAFE_INTEGER:bv}=ag(),{safeRe:Bv,t:Rv}=cg(),Bgt=Sv(),{compareIdentifiers:hW}=AW(),Rgt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nyye)throw new TypeError(`version is longer than ${yye} characters`);xv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Bv[Rv.LOOSE]:Bv[Rv.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>bv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>bv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>bv||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(xv("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return hW(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(xv("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return hW(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?Bv[Rv.PRERELEASELOOSE]:Bv[Rv.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];if(n===!1&&(o=[r]),Rgt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Eye.exports=gW});var gd=w((FEr,Iye)=>{"use strict";var Cye=Sn(),Ngt=i((t,e,r=!1)=>{if(t instanceof Cye)return t;try{return new Cye(t,e)}catch(n){if(!r)return null;throw n}},"parse");Iye.exports=Ngt});var Sye=w((qEr,wye)=>{"use strict";var Tgt=gd(),vgt=i((t,e)=>{let r=Tgt(t,e);return r?r.version:null},"valid");wye.exports=vgt});var bye=w((HEr,xye)=>{"use strict";var Pgt=gd(),_gt=i((t,e)=>{let r=Pgt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");xye.exports=_gt});var Nye=w((zEr,Rye)=>{"use strict";var Bye=Sn(),Qgt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Bye(t instanceof Bye?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Rye.exports=Qgt});var Pye=w((WEr,vye)=>{"use strict";var Tye=gd(),Dgt=i((t,e)=>{let r=Tye(t,null,!0),n=Tye(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");vye.exports=Dgt});var Qye=w((JEr,_ye)=>{"use strict";var kgt=Sn(),Lgt=i((t,e)=>new kgt(t,e).major,"major");_ye.exports=Lgt});var kye=w((KEr,Dye)=>{"use strict";var Ogt=Sn(),Mgt=i((t,e)=>new Ogt(t,e).minor,"minor");Dye.exports=Mgt});var Oye=w((ZEr,Lye)=>{"use strict";var Fgt=Sn(),Ugt=i((t,e)=>new Fgt(t,e).patch,"patch");Lye.exports=Ugt});var Fye=w((tCr,Mye)=>{"use strict";var qgt=gd(),Ggt=i((t,e)=>{let r=qgt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Mye.exports=Ggt});var di=w((nCr,qye)=>{"use strict";var Uye=Sn(),Hgt=i((t,e,r)=>new Uye(t,r).compare(new Uye(e,r)),"compare");qye.exports=Hgt});var Hye=w((oCr,Gye)=>{"use strict";var $gt=di(),zgt=i((t,e,r)=>$gt(e,t,r),"rcompare");Gye.exports=zgt});var zye=w((aCr,$ye)=>{"use strict";var Vgt=di(),Wgt=i((t,e)=>Vgt(t,e,!0),"compareLoose");$ye.exports=Wgt});var Nv=w((lCr,Wye)=>{"use strict";var Vye=Sn(),Ygt=i((t,e,r)=>{let n=new Vye(t,r),s=new Vye(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Wye.exports=Ygt});var Jye=w((dCr,Yye)=>{"use strict";var Jgt=Nv(),jgt=i((t,e)=>t.sort((r,n)=>Jgt(r,n,e)),"sort");Yye.exports=jgt});var Kye=w((mCr,jye)=>{"use strict";var Kgt=Nv(),Xgt=i((t,e)=>t.sort((r,n)=>Kgt(n,r,e)),"rsort");jye.exports=Xgt});var fw=w((ACr,Xye)=>{"use strict";var Zgt=di(),eyt=i((t,e,r)=>Zgt(t,e,r)>0,"gt");Xye.exports=eyt});var Tv=w((gCr,Zye)=>{"use strict";var tyt=di(),ryt=i((t,e,r)=>tyt(t,e,r)<0,"lt");Zye.exports=ryt});var yW=w((ECr,eEe)=>{"use strict";var nyt=di(),syt=i((t,e,r)=>nyt(t,e,r)===0,"eq");eEe.exports=syt});var EW=w((ICr,tEe)=>{"use strict";var oyt=di(),iyt=i((t,e,r)=>oyt(t,e,r)!==0,"neq");tEe.exports=iyt});var vv=w((SCr,rEe)=>{"use strict";var ayt=di(),cyt=i((t,e,r)=>ayt(t,e,r)>=0,"gte");rEe.exports=cyt});var Pv=w((bCr,nEe)=>{"use strict";var lyt=di(),uyt=i((t,e,r)=>lyt(t,e,r)<=0,"lte");nEe.exports=uyt});var CW=w((RCr,sEe)=>{"use strict";var dyt=yW(),pyt=EW(),myt=fw(),fyt=vv(),Ayt=Tv(),hyt=Pv(),gyt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return dyt(t,r,n);case"!=":return pyt(t,r,n);case">":return myt(t,r,n);case">=":return fyt(t,r,n);case"<":return Ayt(t,r,n);case"<=":return hyt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");sEe.exports=gyt});var iEe=w((TCr,oEe)=>{"use strict";var yyt=Sn(),Eyt=gd(),{safeRe:_v,t:Qv}=cg(),Cyt=i((t,e)=>{if(t instanceof yyt)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?_v[Qv.COERCEFULL]:_v[Qv.COERCE]);else{let l=e.includePrerelease?_v[Qv.COERCERTLFULL]:_v[Qv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Eyt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");oEe.exports=Cyt});var cEe=w((PCr,aEe)=>{"use strict";var Iyt=gd(),wyt=ag(),Syt=Sn(),xyt=i((t,e,r)=>{if(!wyt.RELEASE_TYPES.includes(e))return null;let n=byt(t,r);return n&&Byt(n,e)},"truncate"),byt=i((t,e)=>{let r=t instanceof Syt?t.version:t;return Iyt(r,e)},"cloneInputVersion"),Byt=i((t,e)=>{if(Ryt(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),Ryt=i(t=>t.startsWith("pre"),"isPrerelease");aEe.exports=xyt});var uEe=w((QCr,lEe)=>{"use strict";var IW=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};lEe.exports=IW});var pi=w((kCr,fEe)=>{"use strict";var Nyt=/\s+/g,wW=class t{static{i(this,"Range")}constructor(e,r){if(r=vyt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof SW)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Nyt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!pEe(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Fyt(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(Myt,"");let n=((this.options.includePrerelease&&Lyt)|(this.options.loose&&Oyt))+":"+e,s=dEe.get(n);if(s)return s;let o=this.options.loose,a=o?ms[xn.HYPHENRANGELOOSE]:ms[xn.HYPHENRANGE];e=e.replace(a,jyt(this.options.includePrerelease)),Lt("hyphen replace",e),e=e.replace(ms[xn.COMPARATORTRIM],Qyt),Lt("comparator trim",e),e=e.replace(ms[xn.TILDETRIM],Dyt),Lt("tilde trim",e),e=e.replace(ms[xn.CARETTRIM],kyt),Lt("caret trim",e);let c=e.split(" ").map(p=>Uyt(p,this.options)).join(" ").split(/\s+/).map(p=>Jyt(p,this.options));o&&(c=c.filter(p=>(Lt("loose invalid filter",p,this.options),!!p.match(ms[xn.COMPARATORLOOSE])))),Lt("range list",c);let l=new Map,u=c.map(p=>new SW(p,this.options));for(let p of u){if(pEe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return dEe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>mEe(n,r)&&e.set.some(s=>mEe(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Pyt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Fyt=i(t=>t.value==="","isAny"),mEe=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),Uyt=i((t,e)=>(t=t.replace(ms[xn.BUILD],""),Lt("comp",t,e),t=$yt(t,e),Lt("caret",t),t=Gyt(t,e),Lt("tildes",t),t=Vyt(t,e),Lt("xrange",t),t=Yyt(t,e),Lt("stars",t),t),"parseComparator"),Vr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),qyt=i((t,e,r)=>Vr(t)&&!Vr(e)||Vr(e)&&r&&!Vr(r),"invalidXRangeOrder"),Gyt=i((t,e)=>t.trim().split(/\s+/).map(r=>Hyt(r,e)).join(" "),"replaceTildes"),Hyt=i((t,e)=>{let r=e.loose?ms[xn.TILDELOOSE]:ms[xn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Lt("tilde",t,s,o,a,c,l);let u;return Vr(o)?u="":Vr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Vr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Lt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Lt("tilde return",u),u})},"replaceTilde"),$yt=i((t,e)=>t.trim().split(/\s+/).map(r=>zyt(r,e)).join(" "),"replaceCarets"),zyt=i((t,e)=>{Lt("caret",t,e);let r=e.loose?ms[xn.CARETLOOSE]:ms[xn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Lt("caret",t,s,o,a,c,l);let u;return Vr(o)?u="":Vr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Vr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Lt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Lt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Lt("caret return",u),u})},"replaceCaret"),Vyt=i((t,e)=>(Lt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Wyt(r,e)).join(" ")),"replaceXRanges"),Wyt=i((t,e)=>{t=t.trim();let r=e.loose?ms[xn.XRANGELOOSE]:ms[xn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Lt("xRange",t,n,s,o,a,c,l),qyt(o,a,c))return t;let u=Vr(o),d=u||Vr(a),p=d||Vr(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Lt("xRange return",n),n})},"replaceXRange"),Yyt=i((t,e)=>(Lt("replaceStars",t,e),t.trim().replace(ms[xn.STAR],"")),"replaceStars"),Jyt=i((t,e)=>(Lt("replaceGTE0",t,e),t.trim().replace(ms[e.includePrerelease?xn.GTE0PRE:xn.GTE0],"")),"replaceGTE0"),jyt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,m)=>(Vr(n)?r="":Vr(s)?r=`>=${n}.0.0${t?"-0":""}`:Vr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Vr(u)?l="":Vr(d)?l=`<${+u+1}.0.0-0`:Vr(p)?l=`<${u}.${+d+1}.0-0`:m?l=`<=${u}.${d}.${p}-${m}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Kyt=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var Aw=w((OCr,CEe)=>{"use strict";var hw=Symbol("SemVer ANY"),BW=class t{static{i(this,"Comparator")}static get ANY(){return hw}constructor(e,r){if(r=AEe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),bW("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===hw?this.value="":this.value=this.operator+this.semver.version,bW("comp",this)}parse(e){let r=this.options.loose?hEe[gEe.COMPARATORLOOSE]:hEe[gEe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new yEe(n[2],this.options.loose):this.semver=hw}toString(){return this.value}test(e){if(bW("Comparator.test",e,this.options.loose),this.semver===hw||e===hw)return!0;if(typeof e=="string")try{e=new yEe(e,this.options)}catch{return!1}return xW(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new EEe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new EEe(this.value,r).test(e.semver):(r=AEe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||xW(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xW(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};CEe.exports=BW;var AEe=Sv(),{safeRe:hEe,t:gEe}=cg(),xW=CW(),bW=mw(),yEe=Sn(),EEe=pi()});var gw=w((FCr,IEe)=>{"use strict";var Xyt=pi(),Zyt=i((t,e,r)=>{try{e=new Xyt(e,r)}catch{return!1}return e.test(t)},"satisfies");IEe.exports=Zyt});var SEe=w((qCr,wEe)=>{"use strict";var eEt=pi(),tEt=i((t,e)=>new eEt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");wEe.exports=tEt});var bEe=w((HCr,xEe)=>{"use strict";var rEt=Sn(),nEt=pi(),sEt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new nEt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new rEt(n,r))}),n},"maxSatisfying");xEe.exports=sEt});var REe=w((zCr,BEe)=>{"use strict";var oEt=Sn(),iEt=pi(),aEt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new iEt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new oEt(n,r))}),n},"minSatisfying");BEe.exports=aEt});var vEe=w((WCr,TEe)=>{"use strict";var RW=Sn(),cEt=pi(),NEe=fw(),lEt=i((t,e)=>{t=new cEt(t,e);let r=new RW("0.0.0");if(t.test(r)||(r=new RW("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new RW(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||NEe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||NEe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");TEe.exports=lEt});var _Ee=w((JCr,PEe)=>{"use strict";var uEt=pi(),dEt=i((t,e)=>{try{return new uEt(t,e).range||"*"}catch{return null}},"validRange");PEe.exports=dEt});var Dv=w((KCr,LEe)=>{"use strict";var pEt=Sn(),kEe=Aw(),{ANY:mEt}=kEe,fEt=pi(),AEt=gw(),QEe=fw(),DEe=Tv(),hEt=Pv(),gEt=vv(),yEt=i((t,e,r,n)=>{t=new pEt(t,n),e=new fEt(e,n);let s,o,a,c,l;switch(r){case">":s=QEe,o=hEt,a=DEe,c=">",l=">=";break;case"<":s=DEe,o=gEt,a=QEe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(AEt(t,e,n))return!1;for(let u=0;u{f.semver===mEt&&(f=new kEe(">=0.0.0")),p=p||f,m=m||f,s(f.semver,p.semver,n)?p=f:a(f.semver,m.semver,n)&&(m=f)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0},"outside");LEe.exports=yEt});var MEe=w((ZCr,OEe)=>{"use strict";var EEt=Dv(),CEt=i((t,e,r)=>EEt(t,e,">",r),"gtr");OEe.exports=CEt});var UEe=w((tIr,FEe)=>{"use strict";var IEt=Dv(),wEt=i((t,e,r)=>IEt(t,e,"<",r),"ltr");FEe.exports=wEt});var HEe=w((nIr,GEe)=>{"use strict";var qEe=pi(),SEt=i((t,e,r)=>(t=new qEe(t,r),e=new qEe(e,r),t.intersects(e,r)),"intersects");GEe.exports=SEt});var zEe=w((oIr,$Ee)=>{"use strict";var xEt=gw(),bEt=di();$Ee.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>bEt(d,p,r));for(let d of a)xEt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var VEe=pi(),vW=Aw(),{ANY:NW}=vW,TW=gw(),PW=di(),BEt=i((t,e,r={})=>{if(t===e)return!0;t=new VEe(t,r),e=new VEe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=NEt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),REt=[new vW(">=0.0.0-0")],WEe=[new vW(">=0.0.0")],NEt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===NW){if(e.length===1&&e[0].semver===NW)return!0;r.includePrerelease?t=REt:t=WEe}if(e.length===1&&e[0].semver===NW){if(r.includePrerelease)return!0;e=WEe}let n=new Set,s,o;for(let f of t)f.operator===">"||f.operator===">="?s=YEe(s,f,r):f.operator==="<"||f.operator==="<="?o=JEe(o,f,r):n.add(f.semver);if(n.size>1)return null;let a;if(s&&o){if(a=PW(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let f of n){if(s&&!TW(f,String(s),r)||o&&!TW(f,String(o),r))return null;for(let A of e)if(!TW(f,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",u=u||f.operator==="<"||f.operator==="<=",s){if(m&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===m.major&&f.semver.minor===m.minor&&f.semver.patch===m.patch&&(m=!1),f.operator===">"||f.operator===">="){if(c=YEe(s,f,r),c===f&&c!==s)return!1}else if(s.operator===">="&&!f.test(s.semver))return!1}if(o){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(l=JEe(o,f,r),l===f&&l!==o)return!1}else if(o.operator==="<="&&!f.test(o.semver))return!1}if(!f.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||m||p)},"simpleSubset"),YEe=i((t,e,r)=>{if(!t)return e;let n=PW(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),JEe=i((t,e,r)=>{if(!t)return e;let n=PW(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");jEe.exports=BEt});var tCe=w((cIr,eCe)=>{"use strict";var _W=cg(),XEe=ag(),TEt=Sn(),ZEe=AW(),vEt=gd(),PEt=Sye(),_Et=bye(),QEt=Nye(),DEt=Pye(),kEt=Qye(),LEt=kye(),OEt=Oye(),MEt=Fye(),FEt=di(),UEt=Hye(),qEt=zye(),GEt=Nv(),HEt=Jye(),$Et=Kye(),zEt=fw(),VEt=Tv(),WEt=yW(),YEt=EW(),JEt=vv(),jEt=Pv(),KEt=CW(),XEt=iEe(),ZEt=cEe(),eCt=Aw(),tCt=pi(),rCt=gw(),nCt=SEe(),sCt=bEe(),oCt=REe(),iCt=vEe(),aCt=_Ee(),cCt=Dv(),lCt=MEe(),uCt=UEe(),dCt=HEe(),pCt=zEe(),mCt=KEe();eCe.exports={parse:vEt,valid:PEt,clean:_Et,inc:QEt,diff:DEt,major:kEt,minor:LEt,patch:OEt,prerelease:MEt,compare:FEt,rcompare:UEt,compareLoose:qEt,compareBuild:GEt,sort:HEt,rsort:$Et,gt:zEt,lt:VEt,eq:WEt,neq:YEt,gte:JEt,lte:jEt,cmp:KEt,coerce:XEt,truncate:ZEt,Comparator:eCt,Range:tCt,satisfies:rCt,toComparators:nCt,maxSatisfying:sCt,minSatisfying:oCt,minVersion:iCt,validRange:aCt,outside:cCt,gtr:lCt,ltr:uCt,intersects:dCt,simplifyRange:pCt,subset:mCt,SemVer:TEt,re:_W.re,src:_W.src,tokens:_W.t,SEMVER_SPEC_VERSION:XEe.SEMVER_SPEC_VERSION,RELEASE_TYPES:XEe.RELEASE_TYPES,compareIdentifiers:ZEe.compareIdentifiers,rcompareIdentifiers:ZEe.rcompareIdentifiers}});var ECe=w((dIr,Zl)=>{var St=require("fs"),Ov=require("os"),Wr=require("path"),rCe=require("crypto"),Nc={fs:St.constants,os:Ov.constants},nCe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",aCe=/XXXXXX/,fCt=3,cCe=(Nc.O_CREAT||Nc.fs.O_CREAT)|(Nc.O_EXCL||Nc.fs.O_EXCL)|(Nc.O_RDWR||Nc.fs.O_RDWR),ACt=Ov.platform()==="win32",hCt=Nc.EBADF||Nc.os.errno.EBADF,gCt=Nc.ENOENT||Nc.os.errno.ENOENT,lCe=448,uCe=384,yCt="exit",lg=[],dCe=St.rmdirSync.bind(St),pCe=!1;function ECt(t,e){return St.rm(t,{recursive:!0},e)}i(ECt,"rimraf");function mCe(t){return St.rmSync(t,{recursive:!0})}i(mCe,"FN_RIMRAF_SYNC");function LW(t,e){let r=ug(t,e),n=r[0],s=r[1];TCt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=ACe(a);St.stat(u,function(d){if(!d)return c-- >0?l():s(new Error("Could not get a unique tmp filename, max tries reached "+u));s(null,u)})}catch(u){s(u)}}),"_getUniqueName")()})}i(LW,"tmpName");function OW(t){let e=ug(t),r=e[0],n=vCt(r),s=n.tries;do{let o=ACe(n);try{St.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(OW,"tmpNameSync");function CCt(t,e){let r=ug(t,e),n=r[0],s=r[1];LW(n,i(function(a,c){if(a)return s(a);St.open(c,cCe,n.mode||uCe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return St.close(d,i(function(m){return s(m,c,void 0,DW(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,DW(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(CCt,"file");function ICt(t){let e=ug(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=OW(r),o=St.openSync(s,cCe,r.mode||uCe);return r.discardDescriptor&&(St.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:DW(s,n?-1:o,r,!0)}}i(ICt,"fileSync");function wCt(t,e){let r=ug(t,e),n=r[0],s=r[1];LW(n,i(function(a,c){if(a)return s(a);St.mkdir(c,n.mode||lCe,i(function(u){if(u)return s(u);s(null,c,fCe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(wCt,"dir");function SCt(t){let e=ug(t),r=e[0],n=OW(r);return St.mkdirSync(n,r.mode||lCe),{name:n,removeCallback:fCe(n,r,!0)}}i(SCt,"dirSync");function xCt(t,e){let r=i(function(n){if(n&&!kW(n))return e(n);e()},"_handler");0<=t[0]?St.close(t[0],function(){St.unlink(t[1],r)}):St.unlink(t[1],r)}i(xCt,"_removeFileAsync");function bCt(t){let e=null;try{0<=t[0]&&St.closeSync(t[0])}catch(r){if(!PCt(r)&&!kW(r))throw r}finally{try{St.unlinkSync(t[1])}catch(r){kW(r)||(e=r)}}if(e!==null)throw e}i(bCt,"_removeFileSync");function DW(t,e,r,n){let s=Lv(bCt,[e,t],n),o=Lv(xCt,[e,t],n,s);return r.keep||lg.unshift(s),n?s:o}i(DW,"_prepareTmpFileRemoveCallback");function fCe(t,e,r){let n=e.unsafeCleanup?ECt:St.rmdir.bind(St),s=e.unsafeCleanup?mCe:dCe,o=Lv(s,t,r),a=Lv(n,t,r,o);return e.keep||lg.unshift(o),r?o:a}i(fCe,"_prepareTmpDirRemoveCallback");function Lv(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=lg.indexOf(c);return l>=0&&lg.splice(l,1),s=!0,r||t===dCe||t===mCe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(Lv,"_prepareRemoveCallback");function BCt(){if(pCe)for(;lg.length;)try{lg[0]()}catch{}}i(BCt,"_garbageCollector");function sCe(t){let e=[],r=null;try{r=rCe.randomBytes(t)}catch{r=rCe.pseudoRandomBytes(t)}for(let n=0;n"u"}i(Fs,"_isUndefined");function ug(t,e){if(typeof t=="function")return[{},t];if(Fs(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(ug,"_parseArguments");function RCt(t,e,r){let n=Wr.isAbsolute(t)?t:Wr.join(e,t);St.stat(n,function(s){s?St.realpath(Wr.dirname(n),function(o,a){if(o)return r(o);r(null,Wr.join(a,Wr.basename(n)))}):St.realpath(n,r)})}i(RCt,"_resolvePath");function NCt(t,e){let r=Wr.isAbsolute(t)?t:Wr.join(e,t);try{return St.statSync(r),St.realpathSync(r)}catch{let s=St.realpathSync(Wr.dirname(r));return Wr.join(s,Wr.basename(r))}}i(NCt,"_resolvePathSync");function ACe(t){let e=t.tmpdir;if(!Fs(t.name))return Wr.join(e,t.dir,t.name);if(!Fs(t.template))return Wr.join(e,t.dir,t.template).replace(aCe,sCe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",sCe(12),t.postfix?"-"+t.postfix:""].join("");return Wr.join(e,t.dir,r)}i(ACe,"_generateTmpName");function QW(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}i(QW,"_assertPath");function hCe(t){if(!Fs(t.name)){let e=t.name;if(Wr.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=Wr.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!Fs(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(aCe))throw new Error(`Invalid template, found "${t.template}".`)}if(!Fs(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Fs(t.name)?t.tries||fCt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Fs(t.prefix)?"":QW("prefix",t.prefix),t.postfix=Fs(t.postfix)?"":QW("postfix",t.postfix),t.template=Fs(t.template)?void 0:QW("template",t.template)}i(hCe,"_assertOptionsBase");function oCe(t,e,r,n){if(Fs(e))return n(null);RCt(e,r,function(s,o){if(s)return n(s);let a=Wr.relative(r,o);if(a.startsWith("..")||Wr.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(oCe,"_getRelativePath");function iCe(t,e,r){if(Fs(e))return;let n=NCt(e,r),s=Wr.relative(r,n);if(s.startsWith("..")||Wr.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(iCe,"_getRelativePathSync");function TCt(t,e){QCt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{hCe(t,n)}catch(s){return e(s)}oCe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=Fs(o)?"":o,oCe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(TCt,"_assertAndSanitizeOptions");function vCt(t){let e=t.tmpdir=yCe(t);hCe(t,e);let r=iCe("dir",t.dir,e);return t.dir=Fs(r)?"":r,t.template=iCe("template",t.template,e),t}i(vCt,"_assertAndSanitizeOptionsSync");function PCt(t){return gCe(t,-hCt,"EBADF")}i(PCt,"_isEBADF");function kW(t){return gCe(t,-gCt,"ENOENT")}i(kW,"_isENOENT");function gCe(t,e,r){return ACt?t.code===r:t.code===r&&t.errno===e}i(gCe,"_isExpectedError");function _Ct(){pCe=!0}i(_Ct,"setGracefulCleanup");function QCt(t,e){return St.realpath(t&&t.tmpdir||Ov.tmpdir(),e)}i(QCt,"_getTmpDir");function yCe(t){return St.realpathSync(t&&t.tmpdir||Ov.tmpdir())}i(yCe,"_getTmpDirSync");process.addListener(yCt,BCt);Object.defineProperty(Zl.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return yCe()},"get")});Zl.exports.dir=wCt;Zl.exports.dirSync=SCt;Zl.exports.file=CCt;Zl.exports.fileSync=ICt;Zl.exports.tmpName=LW;Zl.exports.tmpNameSync=OW;Zl.exports.setGracefulCleanup=_Ct});var Gn=w(Bo=>{"use strict";Bo.__esModule=!0;Bo.extend=SCe;Bo.indexOf=MCt;Bo.escapeExpression=FCt;Bo.isEmpty=UCt;Bo.createFrame=qCt;Bo.blockParams=GCt;Bo.appendContextPath=HCt;var DCt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},kCt=/[&<>"'`=]/g,LCt=/[&<>"'`=]/;function OCt(t){return DCt[t]}i(OCt,"escapeChar");function SCe(t){for(var e=1;e{"use strict";Fv.__esModule=!0;var qW=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function GW(t,e){var r=e&&e.loc,n=void 0,s=void 0,o=void 0,a=void 0;r&&r.start&&(n=r.start.line,o=r.start.column,r.end&&(s=r.end.line,a=r.end.column),t+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,t),l=0;l{"use strict";Uv.__esModule=!0;var HW=Gn();Uv.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,s=r.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(HW.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var o=HW.createFrame(r.data);o.contextPath=HW.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};BCe.exports=Uv.default});var TCe=w((qv,NCe)=>{"use strict";qv.__esModule=!0;function $Ct(t){return t&&t.__esModule?t:{default:t}}i($Ct,"_interopRequireDefault");var dg=Gn(),zCt=mi(),VCt=$Ct(zCt);function WCt(t){try{var e=t.return;dg.isFunction(e)&&e.call(t)}catch{}}i(WCt,"closeIterator");qv.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new VCt.default("Must pass iterator to #each");var n=r.fn,s=r.inverse,o=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=dg.appendContextPath(r.data.contextPath,r.ids[0])+"."),dg.isFunction(e)&&(e=e.call(this)),r.data&&(c=dg.createFrame(r.data));function u(A,h,E,y){c&&(c.key=A,c.index=h,c.first=h===0,c.last=!!E,l&&(c.contextPath=l+A)),a=a+n(y,{data:c,blockParams:dg.blockParams([y,A],[l+A,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(dg.isArray(e))for(var d=e.length;o{"use strict";Gv.__esModule=!0;function YCt(t){return t&&t.__esModule?t:{default:t}}i(YCt,"_interopRequireDefault");var JCt=mi(),jCt=YCt(JCt);Gv.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new jCt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};vCe.exports=Gv.default});var kCe=w((Hv,DCe)=>{"use strict";Hv.__esModule=!0;function KCt(t){return t&&t.__esModule?t:{default:t}}i(KCt,"_interopRequireDefault");var _Ce=Gn(),XCt=mi(),QCe=KCt(XCt);Hv.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new QCe.default("#if requires exactly one argument");return _Ce.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||_Ce.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new QCe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};DCe.exports=Hv.default});var OCe=w(($v,LCe)=>{"use strict";$v.__esModule=!0;$v.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";zv.__esModule=!0;zv.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};MCe.exports=zv.default});var qCe=w((Vv,UCe)=>{"use strict";Vv.__esModule=!0;function ZCt(t){return t&&t.__esModule?t:{default:t}}i(ZCt,"_interopRequireDefault");var yw=Gn(),eIt=mi(),tIt=ZCt(eIt);Vv.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new tIt.default("#with requires exactly one argument");yw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(yw.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=yw.createFrame(r.data),s.contextPath=yw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:yw.blockParams([e],[s&&s.contextPath])})})};UCe.exports=Vv.default});var $W=w(Wv=>{"use strict";Wv.__esModule=!0;Wv.registerDefaultHelpers=hIt;Wv.moveHelperToHooks=gIt;function zm(t){return t&&t.__esModule?t:{default:t}}i(zm,"_interopRequireDefault");var rIt=RCe(),nIt=zm(rIt),sIt=TCe(),oIt=zm(sIt),iIt=PCe(),aIt=zm(iIt),cIt=kCe(),lIt=zm(cIt),uIt=OCe(),dIt=zm(uIt),pIt=FCe(),mIt=zm(pIt),fIt=qCe(),AIt=zm(fIt);function hIt(t){nIt.default(t),oIt.default(t),aIt.default(t),lIt.default(t),dIt.default(t),mIt.default(t),AIt.default(t)}i(hIt,"registerDefaultHelpers");function gIt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(gIt,"moveHelperToHooks")});var HCe=w((Yv,GCe)=>{"use strict";Yv.__esModule=!0;var yIt=Gn();Yv.default=function(t){t.registerDecorator("inline",function(e,r,n,s){var o=e;return r.partials||(r.partials={},o=i(function(a,c){var l=n.partials;n.partials=yIt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};GCe.exports=Yv.default});var $Ce=w(zW=>{"use strict";zW.__esModule=!0;zW.registerDefaultDecorators=wIt;function EIt(t){return t&&t.__esModule?t:{default:t}}i(EIt,"_interopRequireDefault");var CIt=HCe(),IIt=EIt(CIt);function wIt(t){IIt.default(t)}i(wIt,"registerDefaultDecorators")});var VW=w((Jv,zCe)=>{"use strict";Jv.__esModule=!0;var SIt=Gn(),pg={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=SIt.indexOf(pg.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=pg.lookupLevel(e),typeof console<"u"&&pg.lookupLevel(pg.level)<=e){var r=pg.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";mg.__esModule=!0;mg.createProtoAccessControl=RIt;mg.resultIsAllowed=NIt;mg.isPrototypeConstructor=TIt;mg.resetLoggedProperties=PIt;function xIt(t){return t&&t.__esModule?t:{default:t}}i(xIt,"_interopRequireDefault");var VCe=Gn(),bIt=VW(),BIt=xIt(bIt),jv=Object.create(null);function RIt(t){var e=Object.create(null);e.__proto__=!1,VCe.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,VCe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(RIt,"createProtoAccessControl");function NIt(t,e,r){return WCe(typeof t=="function"?e.methods:e.properties,r)}i(NIt,"resultIsAllowed");function TIt(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(TIt,"isPrototypeConstructor");function WCe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(vIt(e),!1)}i(WCe,"checkWhiteList");function vIt(t){jv[t]!==!0&&(jv[t]=!0,BIt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent. + Polling status: ${vAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(TAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(jpt,"pollOperationHelper");async function kAe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:f,updateState:m,setDelay:A,isDone:h,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:I,status:x}=await jpt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(QAe({status:x,response:I,state:r,stateProxy:n,isDone:h,processResult:p,getError:f,setErrorAsResult:E}),!vAe.includes(x)){let b=d?.(I);b&&A(b);let N=c?.(I,r);if(N!==void 0){let v=y!==N;r.config.operationLocation=N,u?.(N,v)}else u?.(y,!1)}m?.(r,I)}}i(kAe,"pollOperation");function LAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(LAe,"getOperationLocationPollingUrl");function OAe(t){return t.headers.location}i(OAe,"getLocationHeader");function MAe(t){return t.headers["operation-location"]}i(MAe,"getOperationLocationHeader");function FAe(t){return t.headers["azure-asyncoperation"]}i(FAe,"getAzureAsyncOperationHeader");function Kpt(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(Kpt,"findResourceLocation");function UAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=MAe(e),a=FAe(e),c=LAe({operationLocation:o,azureAsyncOperation:a}),l=OAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Kpt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(UAe,"inferLroMode");function qAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return bV(r);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:return Of.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(qAe,"transformStatus");function Xpt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qAe({status:r,statusCode:t.statusCode})}i(Xpt,"getStatus");function Zpt(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return qAe({status:o,statusCode:t.statusCode})}i(Zpt,"getProvisioningState");function bV(t){return t===202?"running":t<300?"succeeded":"failed"}i(bV,"toOperationStatus");function GAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?eft(new Date(e)):r*1e3}}i(GAe,"parseRetryAfter");function $Ae(t){let e=t.flatResponse.error;if(!e){Of.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Of.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i($Ae,"getErrorFromResponse");function eft(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=UAe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:HAe,setErrorAsResult:o})}i(tft,"initHttpOperation");function zAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return LAe({operationLocation:MAe(t),azureAsyncOperation:FAe(t)});case"ResourceLocation":return OAe(t);default:return}}i(zAe,"getOperationLocation");function BV({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return Xpt(t);case"ResourceLocation":return bV(t.statusCode);case"Body":return Zpt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(BV,"getOperationStatus");function VAe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(VAe,"getResourceLocation");function WAe(t){return t.name==="RestError"}i(WAe,"isOperationError");async function rft(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return kAe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:$Ae,updateState:o,getPollingInterval:GAe,getOperationLocation:zAe,getOperationStatus:BV,isOperationError:WAe,getResourceLocation:VAe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(rft,"pollHttpOperation");var nft=i(()=>({initState:i(t=>({status:"running",config:t}),"initState"),setCanceled:i(t=>t.status="canceled","setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.status="running","setRunning"),setSucceeded:i(t=>t.status="succeeded","setSucceeded"),setFailed:i(t=>t.status="failed","setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>t.status==="canceled","isCanceled"),isFailed:i(t=>t.status==="failed","isFailed"),isRunning:i(t=>t.status==="running","isRunning"),isSucceeded:i(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function sft(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:o,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},p)=>{let{processResult:f,updateState:m,withOperationLocation:A,intervalInMs:h=PAe,restoreFrom:E}=p||{},y=nft(),I=A?(()=>{let Fe=!1;return(fe,He)=>{He?A(fe):Fe||A(fe),Fe=!0}})():void 0,x=E?_Ae(E):await DAe({init:u,stateProxy:y,processResult:f,getOperationStatus:r,withOperationLocation:I,setErrorAsResult:!l}),b,N=new NAe.AbortController,v=new Map,_=i(async()=>v.forEach(Fe=>Fe(x)),"handleProgressEvents"),J="Operation was canceled",ve=h,Qe={getOperationState:i(()=>x,"getOperationState"),getResult:i(()=>x.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(x.status),"isDone"),isStopped:i(()=>b===void 0,"isStopped"),stopPolling:i(()=>{N.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:x}),"toString"),onProgress:i(Fe=>{let fe=Symbol();return v.set(fe,Fe),()=>v.delete(fe)},"onProgress"),pollUntilDone:i(Fe=>b??(b=(async()=>{let{abortSignal:fe}=Fe||{},{signal:He}=fe?new NAe.AbortController([fe,N.signal]):N;if(!Qe.isDone())for(await Qe.poll({abortSignal:He});!Qe.isDone();)await Vpt.delay(ve,{abortSignal:He}),await Qe.poll({abortSignal:He});if(l)return Qe.getResult();switch(x.status){case"succeeded":return Qe.getResult();case"canceled":throw new Error(J);case"failed":throw x.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{b=void 0})),"pollUntilDone"),async poll(Fe){if(l){if(Qe.isDone())return}else switch(x.status){case"succeeded":return;case"canceled":throw new Error(J);case"failed":throw x.error}if(await kAe({poll:d,state:x,stateProxy:y,getOperationLocation:e,isOperationError:s,withOperationLocation:I,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:f,getError:c,updateState:m,options:Fe,setDelay:i(fe=>{ve=fe},"setDelay"),setErrorAsResult:!l}),await _(),!l)switch(x.status){case"canceled":throw new Error(J);case"failed":throw x.error}}};return Qe}}i(sft,"buildCreatePoller");async function oft(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return sft({getStatusFromInitialResponse:HAe,getStatusFromPollResponse:BV,isOperationError:WAe,getOperationLocation:zAe,getResourceLocation:VAe,getPollingInterval:GAe,getError:$Ae,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=UAe({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:o,updateState:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u})}i(oft,"createHttpPoller");var ift=i(()=>({initState:i(t=>({config:t,isStarted:!0}),"initState"),setCanceled:i(t=>t.isCancelled=!0,"setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.isStarted=!0,"setRunning"),setSucceeded:i(t=>t.isCompleted=!0,"setSucceeded"),setFailed:i(()=>{},"setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>!!t.isCancelled,"isCanceled"),isFailed:i(t=>!!t.error,"isFailed"),isRunning:i(t=>!!t.isStarted,"isRunning"),isSucceeded:i(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),SV=class{static{i(this,"GenericPollOperation")}constructor(e,r,n,s,o,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=s,this.processResult=o,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=ift();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await tft({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let s=this.updateState,o=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await rft({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:s?(a,{rawResponse:c})=>s(a,c):void 0,isDone:o?({flatResponse:a},c)=>o(a,c):void 0,options:e,setDelay:i(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return Of.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},AT=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},hT=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},gT=class{static{i(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=i(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new hT("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(r=>r!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new AT("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(){return this.operation.state.result}toString(){return this.operation.toString()}},xV=class extends gT{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=PAe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?_Ae(s):{},p=new SV(d,e,!o,c,l,u,a);super(p),this.resolveOnUnsuccessful=o,this.config={intervalInMs:n},p.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};Mf.LroEngine=xV;Mf.Poller=gT;Mf.PollerCancelledError=hT;Mf.PollerStoppedError=AT;Mf.createHttpPoller=oft});var hhe=w((uyr,Rft)=>{Rft.exports={name:"@actions/cache",version:"6.3.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.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var yhe=w((dyr,ghe)=>{var Nft=hhe();ghe.exports={version:Nft.version}});var PT=w(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.isJsonObject=Uh.typeofJsonValue=void 0;function Lft(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(Lft,"typeofJsonValue");Uh.typeofJsonValue=Lft;function Oft(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(Oft,"isJsonObject");Uh.isJsonObject=Oft});var _T=w(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.base64encode=qh.base64decode=void 0;var Xl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),vT=[];for(let t=0;t>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(Mft,"base64decode");qh.base64decode=Mft;function Fft(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=Xl[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Xl[s|n>>6],e+=Xl[n&63],r=0;break}return r&&(e+=Xl[s],e+="=",r==1&&(e+="=")),e}i(Fft,"base64encode");qh.base64encode=Fft});var xhe=w(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});QT.utf8read=void 0;var OV=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Uft(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(OV(n)),s=0);return r.length?(s&&r.push(OV(n.slice(0,s))),r.join("")):OV(n.slice(0,s))}i(Uft,"utf8read");QT.utf8read=Uft});var rw=w(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.WireType=wc.mergeBinaryOptions=wc.UnknownFieldHandler=void 0;var qft;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(qft=wc.UnknownFieldHandler||(wc.UnknownFieldHandler={}));function Gft(t,e){return Object.assign(Object.assign({},t),e)}i(Gft,"mergeBinaryOptions");wc.mergeBinaryOptions=Gft;var $ft;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})($ft=wc.WireType||(wc.WireType={}))});var kT=w(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.varint32read=Fs.varint32write=Fs.int64toString=Fs.int64fromString=Fs.varint64write=Fs.varint64read=void 0;function Hft(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<>>o,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(zft,"varint64write");Fs.varint64write=zft;var DT=65536*65536;function Vft(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=DT&&(s=s+(n/DT|0),n=n%DT)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(Vft,"int64fromString");Fs.int64fromString=Vft;function Wft(t,e){if(e>>>0<=2097151)return""+(DT*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let f=d?String(d):"";return p?"0000000".slice(f.length)+f:f}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(Wft,"int64toString");Fs.int64toString=Wft;function Yft(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(Yft,"varint32write");Fs.varint32write=Yft;function Jft(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}i(Jft,"varint32read");Fs.varint32read=Jft});var Ad=w(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var nw=kT(),Rt;function bhe(){let t=new DataView(new ArrayBuffer(8));Rt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}i(bhe,"detectBi");md.detectBi=bhe;bhe();function Bhe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(Bhe,"assertBi");var Rhe=/^-?[0-9]+$/,OT=4294967296,LT=2147483648,MT=class{static{i(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*OT+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},sw=class t extends MT{static{i(this,"PbULong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(eRt.UMAX)throw new Error("ulong too large");return Rt.V.setBigUint64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!Rhe.test(e))throw new Error("string is no integer");let[r,n,s]=nw.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,s);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 t(e,e/OT)}throw new Error("unknown value "+typeof e)}toString(){return Rt?this.toBigInt().toString():nw.int64toString(this.lo,this.hi)}toBigInt(){return Bhe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigUint64(0,!0)}};md.PbULong=sw;sw.ZERO=new sw(0,0);var ow=class t extends MT{static{i(this,"PbLong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(eRt.MAX)throw new Error("signed long too large");return Rt.V.setBigInt64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!Rhe.test(e))throw new Error("string is no integer");let[r,n,s]=nw.int64fromString(e);if(r){if(s>LT||s==LT&&n!=0)throw new Error("signed long too small")}else if(s>=LT)throw new Error("signed long too large");let o=new t(n,s);return r?o.negate():o;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/OT):new t(-e,-e/OT).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi<)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Rt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+nw.int64toString(e.lo,e.hi)}return nw.int64toString(this.lo,this.hi)}toBigInt(){return Bhe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigInt64(0,!0)}};md.PbLong=ow;ow.ZERO=new ow(0,0)});var MV=w($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.BinaryReader=$h.binaryReadOptions=void 0;var Gh=rw(),iw=Ad(),Nhe=kT(),The={readUnknownField:!0,readerFactory:i(t=>new FT(t),"readerFactory")};function jft(t){return t?Object.assign(Object.assign({},The),t):The}i(jft,"binaryReadOptions");$h.binaryReadOptions=jft;var FT=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=Nhe.varint64read,this.uint32=Nhe.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=r??new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),r=e>>>3,n=e&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(e){let r=this.pos;switch(e){case Gh.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case Gh.WireType.Bit64:this.pos+=4;case Gh.WireType.Bit32:this.pos+=4;break;case Gh.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Gh.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==Gh.WireType.EndGroup;)this.skip(s);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,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 iw.PbLong(...this.varint64())}uint64(){return new iw.PbULong(...this.varint64())}sint64(){let[e,r]=this.varint64(),n=-(e&1);return e=(e>>>1|(r&1)<<31)^n,r=r>>>1^n,new iw.PbLong(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new iw.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new iw.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.textDecoder.decode(this.bytes())}};$h.BinaryReader=FT});var Hh=w(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.assertFloat32=li.assertUInt32=li.assertInt32=li.assertNever=li.assert=void 0;function Kft(t,e){if(!t)throw new Error(e)}i(Kft,"assert");li.assert=Kft;function Xft(t,e){throw new Error(e??"Unexpected object: "+t)}i(Xft,"assertNever");li.assertNever=Xft;var Zft=34028234663852886e22,emt=-34028234663852886e22,tmt=4294967295,rmt=2147483647,nmt=-2147483648;function smt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>rmt||ttmt||t<0)throw new Error("invalid uint 32: "+t)}i(omt,"assertUInt32");li.assertUInt32=omt;function imt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>Zft||t{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.BinaryWriter=Vh.binaryWriteOptions=void 0;var aw=Ad(),cw=kT(),zh=Hh(),Phe={writeUnknownFields:!0,writerFactory:i(()=>new UT,"writerFactory")};function amt(t){return t?Object.assign(Object.assign({},Phe),t):Phe}i(amt,"binaryWriteOptions");Vh.binaryWriteOptions=amt;var UT=class{static{i(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let s=0;s>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(zh.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return zh.assertInt32(e),cw.varint32write(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.textEncoder.encode(e);return this.uint32(r.byteLength),this.raw(r)}float(e){zh.assertFloat32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){zh.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){zh.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return zh.assertInt32(e),e=(e<<1^e>>31)>>>0,cw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=aw.PbLong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=aw.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=aw.PbLong.from(e);return cw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=aw.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return cw.varint64write(s,o,this.buf),this}uint64(e){let r=aw.PbULong.from(e);return cw.varint64write(r.lo,r.hi,this.buf),this}};Vh.BinaryWriter=UT});var UV=w(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.mergeJsonOptions=hd.jsonWriteOptions=hd.jsonReadOptions=void 0;var vhe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},_he={ignoreUnknownFields:!1};function cmt(t){return t?Object.assign(Object.assign({},_he),t):_he}i(cmt,"jsonReadOptions");hd.jsonReadOptions=cmt;function lmt(t){return t?Object.assign(Object.assign({},vhe),t):vhe}i(lmt,"jsonWriteOptions");hd.jsonWriteOptions=lmt;function umt(t,e){var r,n;let s=Object.assign(Object.assign({},t),e);return s.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],s}i(umt,"mergeJsonOptions");hd.mergeJsonOptions=umt});var lw=w(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.MESSAGE_TYPE=void 0;qT.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var qV=w(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.lowerCamelCase=void 0;function dmt(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.readMessageOption=Hr.readFieldOption=Hr.readFieldOptions=Hr.normalizeFieldInfo=Hr.RepeatType=Hr.LongType=Hr.ScalarType=void 0;var Qhe=qV(),pmt;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(pmt=Hr.ScalarType||(Hr.ScalarType={}));var fmt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(fmt=Hr.LongType||(Hr.LongType={}));var Dhe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(Dhe=Hr.RepeatType||(Hr.RepeatType={}));function mmt(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:Qhe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:Qhe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:Dhe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(mmt,"normalizeFieldInfo");Hr.normalizeFieldInfo=mmt;function Amt(t,e,r,n){var s;let o=(s=t.fields.find((a,c)=>a.localName==e||c==e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(Amt,"readFieldOptions");Hr.readFieldOptions=Amt;function hmt(t,e,r,n){var s;let o=(s=t.fields.find((c,l)=>c.localName==e||l==e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(hmt,"readFieldOption");Hr.readFieldOption=hmt;function gmt(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(gmt,"readMessageOption");Hr.readMessageOption=gmt});var GV=w(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getSelectedOneofValue=Us.clearOneofValue=Us.setUnknownOneofValue=Us.setOneofValue=Us.getOneofValue=Us.isOneofGroup=void 0;function ymt(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}i(ymt,"isOneofGroup");Us.isOneofGroup=ymt;function Emt(t,e){return t[e]}i(Emt,"getOneofValue");Us.getOneofValue=Emt;function Cmt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(Cmt,"setOneofValue");Us.setOneofValue=Cmt;function Imt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(Imt,"setUnknownOneofValue");Us.setUnknownOneofValue=Imt;function wmt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(wmt,"clearOneofValue");Us.clearOneofValue=wmt;function Smt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(Smt,"getSelectedOneofValue");Us.getSelectedOneofValue=Smt});var HV=w($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.ReflectionTypeCheck=void 0;var ur=Zi(),xmt=GV(),$V=class{static{i(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let s of this.fields)if(s.oneof)n.includes(s.oneof)||(n.push(s.oneof),e.push(s.oneof),r.push(s.oneof));else switch(r.push(s.localName),s.kind){case"scalar":case"enum":(!s.opt||s.repeat)&&e.push(s.localName);break;case"message":s.repeat&&e.push(s.localName);break;case"map":e.push(s.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let s=Object.keys(e),o=this.data;if(s.length!s.includes(a))||!n&&s.some(a=>!o.known.includes(a)))return!1;if(r<1)return!0;for(let a of o.oneofs){let c=e[a];if(!xmt.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,s){let o=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:o?this.scalars(e,r.T,s,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:o?this.scalars(e,ur.ScalarType.INT32,s):this.scalar(e,ur.ScalarType.INT32);case"message":return e===void 0?!0:o?this.messages(e,r.T(),n,s):this.message(e,r.T(),n,s);case"map":if(typeof e!="object"||e===null)return!1;if(s<2)return!0;if(!this.mapKeys(e,r.K,s))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,s,r.V.L);case"enum":return this.scalars(Object.values(e),ur.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),r.V.T(),n,s)}break}return!0}message(e,r,n,s){return n?r.isAssignable(e,s):r.is(e,s)}messages(e,r,n,s){if(!Array.isArray(e))return!1;if(s<2)return!0;if(n){for(let o=0;oparseInt(o)),r,n);case ur.ScalarType.BOOL:return this.scalars(s.slice(0,n).map(o=>o=="true"?!0:o=="false"?!1:o),r,n);default:return this.scalars(s,r,n,ur.LongType.STRING)}}};$T.ReflectionTypeCheck=$V});var zT=w(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.reflectionLongConvert=void 0;var khe=Zi();function bmt(t,e){switch(e){case khe.LongType.BIGINT:return t.toBigInt();case khe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(bmt,"reflectionLongConvert");HT.reflectionLongConvert=bmt});var VV=w(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.ReflectionJsonReader=void 0;var Lhe=PT(),Bmt=_T(),zr=Zi(),VT=Ad(),Uf=Hh(),WT=zT(),zV=class{static{i(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let s=Lhe.typeofJsonValue(n);throw(s=="number"||s=="boolean")&&(s=n.toString()),new Error(`Cannot parse JSON ${s} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let s=[];for(let[o,a]of Object.entries(e)){let c=this.fMap[o];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(s.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(Lhe.isJsonObject(a),c.name,a);let d=u[l];for(let[p,f]of Object.entries(a)){this.assert(f!==null,c.name+" map value",null);let m;switch(c.V.kind){case"message":m=c.V.T().internalJsonRead(f,n);break;case"enum":if(m=this.enum(c.V.T(),f,c.name,n.ignoreUnknownFields),m===!1)continue;break;case"scalar":m=this.scalar(f,c.V.T,c.V.L,c.name);break}this.assert(m!==void 0,c.name+" map value",f);let A=p;c.K==zr.ScalarType.BOOL&&(A=A=="true"?!0:A=="false"?!1:A),A=this.scalar(A,c.K,zr.LongType.STRING,c.name).toString(),d[A]=m}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let p of a){this.assert(p!==null,c.name,null);let f;switch(c.kind){case"message":f=c.T().internalJsonRead(p,n);break;case"enum":if(f=this.enum(c.T(),p,c.name,n.ignoreUnknownFields),f===!1)continue;break;case"scalar":f=this.scalar(p,c.T,c.L,c.name);break}this.assert(f!==void 0,c.name,a),d.push(f)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,s){if(e[0]=="google.protobuf.NullValue"&&Uf.assert(r===null||r==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),r===null)return 0;switch(typeof r){case"number":return Uf.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let o=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(o=r.substring(e[2].length));let a=e[1][o];return typeof a>"u"&&s?!1:(Uf.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}Uf.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,s){let o;try{switch(r){case zr.ScalarType.DOUBLE:case zr.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===""){o="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){o="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){o="not a number";break}if(!Number.isFinite(a)){o="too large or small";break}return r==zr.ScalarType.FLOAT&&Uf.assertFloat32(a),a;case zr.ScalarType.INT32:case zr.ScalarType.FIXED32:case zr.ScalarType.SFIXED32:case zr.ScalarType.SINT32:case zr.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?o="empty string":typeof e=="string"&&(e.trim().length!==e.length?o="extra whitespace":c=Number(e)),c===void 0)break;return r==zr.ScalarType.UINT32?Uf.assertUInt32(c):Uf.assertInt32(c),c;case zr.ScalarType.INT64:case zr.ScalarType.SFIXED64:case zr.ScalarType.SINT64:if(e===null)return WT.reflectionLongConvert(VT.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return WT.reflectionLongConvert(VT.PbLong.from(e),n);case zr.ScalarType.FIXED64:case zr.ScalarType.UINT64:if(e===null)return WT.reflectionLongConvert(VT.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return WT.reflectionLongConvert(VT.PbULong.from(e),n);case zr.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case zr.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){o="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case zr.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Bmt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};YT.ReflectionJsonReader=zV});var YV=w(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.ReflectionJsonWriter=void 0;var Rmt=_T(),Ohe=Ad(),ps=Zi(),Vt=Hh(),WV=class{static{i(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},s=e;for(let o of this.fields){if(!o.oneof){let u=this.field(o,s[o.localName],r);u!==void 0&&(n[r.useProtoFieldName?o.name:o.jsonName]=u);continue}let a=s[o.oneof];if(a.oneofKind!==o.localName)continue;let c=o.kind=="scalar"||o.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(o,a[o.localName],c);Vt.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){Vt.assert(typeof r=="object"&&r!==null);let o={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);Vt.assert(d!==void 0),o[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);Vt.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Vt.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Vt.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){Vt.assert(Array.isArray(r));let o=[];switch(e.kind){case"scalar":for(let l=0;l0||n.emitDefaultValues)&&(s=o)}else switch(e.kind){case"scalar":s=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":s=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":s=this.message(e.T(),r,e.name,n);break}return s}enum(e,r,n,s,o,a){if(e[0]=="google.protobuf.NullValue")return!o&&!s?void 0:null;if(r===void 0){Vt.assert(s);return}if(!(r===0&&!o&&!s))return Vt.assert(typeof r=="number"),Vt.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,s){return r===void 0?s.emitDefaultValues?null:void 0:e.internalJsonWrite(r,s)}scalar(e,r,n,s,o){if(r===void 0){Vt.assert(s);return}let a=o||s;switch(e){case ps.ScalarType.INT32:case ps.ScalarType.SFIXED32:case ps.ScalarType.SINT32:return r===0?a?0:void 0:(Vt.assertInt32(r),r);case ps.ScalarType.FIXED32:case ps.ScalarType.UINT32:return r===0?a?0:void 0:(Vt.assertUInt32(r),r);case ps.ScalarType.FLOAT:Vt.assertFloat32(r);case ps.ScalarType.DOUBLE:return r===0?a?0:void 0:(Vt.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case ps.ScalarType.STRING:return r===""?a?"":void 0:(Vt.assert(typeof r=="string"),r);case ps.ScalarType.BOOL:return r===!1?a?!1:void 0:(Vt.assert(typeof r=="boolean"),r);case ps.ScalarType.UINT64:case ps.ScalarType.FIXED64:Vt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=Ohe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case ps.ScalarType.INT64:case ps.ScalarType.SFIXED64:case ps.ScalarType.SINT64:Vt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=Ohe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case ps.ScalarType.BYTES:return Vt.assert(r instanceof Uint8Array),r.byteLength?Rmt.base64encode(r):a?"":void 0}}};JT.ReflectionJsonWriter=WV});var KT=w(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.reflectionScalarDefault=void 0;var ea=Zi(),Mhe=zT(),Fhe=Ad();function Nmt(t,e=ea.LongType.STRING){switch(t){case ea.ScalarType.BOOL:return!1;case ea.ScalarType.UINT64:case ea.ScalarType.FIXED64:return Mhe.reflectionLongConvert(Fhe.PbULong.ZERO,e);case ea.ScalarType.INT64:case ea.ScalarType.SFIXED64:case ea.ScalarType.SINT64:return Mhe.reflectionLongConvert(Fhe.PbLong.ZERO,e);case ea.ScalarType.DOUBLE:case ea.ScalarType.FLOAT:return 0;case ea.ScalarType.BYTES:return new Uint8Array(0);case ea.ScalarType.STRING:return"";default:return 0}}i(Nmt,"reflectionScalarDefault");jT.reflectionScalarDefault=Nmt});var jV=w(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.ReflectionBinaryReader=void 0;var Uhe=rw(),xr=Zi(),uw=zT(),qhe=KT(),JV=class{static{i(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,s){this.prepare();let o=s===void 0?e.len:e.pos+s;for(;e.pos{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.ReflectionBinaryWriter=void 0;var So=rw(),Tt=Zi(),Wh=Hh(),dw=Ad(),KV=class{static{i(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let o of this.fields){let a,c,l=o.repeat,u=o.localName;if(o.oneof){let d=e[o.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(o.kind){case"scalar":case"enum":let d=o.kind=="enum"?Tt.ScalarType.INT32:o.T;if(l)if(Wh.assert(Array.isArray(a)),l==Tt.RepeatType.PACKED)this.packed(r,d,o.no,a);else for(let p of a)this.scalar(r,d,o.no,p,!0);else a===void 0?Wh.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){Wh.assert(Array.isArray(a));for(let p of a)this.message(r,n,o.T(),o.no,p)}else this.message(r,n,o.T(),o.no,a);break;case"map":Wh.assert(typeof a=="object"&&a!==null);for(let[p,f]of Object.entries(a))this.mapEntry(r,n,o,p,f);break}}let s=n.writeUnknownFields;s!==!1&&(s===!0?So.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,So.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case Tt.ScalarType.INT32:case Tt.ScalarType.FIXED32:case Tt.ScalarType.UINT32:case Tt.ScalarType.SFIXED32:case Tt.ScalarType.SINT32:a=Number.parseInt(s);break;case Tt.ScalarType.BOOL:Wh.assert(s=="true"||s=="false"),a=s=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,o,!0);break;case"enum":this.scalar(e,Tt.ScalarType.INT32,2,o,!0);break;case"message":this.message(e,r,n.V.T(),2,o);break}e.join()}message(e,r,n,s,o){o!==void 0&&(n.internalBinaryWrite(o,e.tag(s,So.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,s,o){let[a,c,l]=this.scalarInfo(r,s);(!l||o)&&(e.tag(n,a),e[c](s))}packed(e,r,n,s){if(!s.length)return;Wh.assert(r!==Tt.ScalarType.BYTES&&r!==Tt.ScalarType.STRING),e.tag(n,So.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.reflectionCreate=void 0;var Tmt=KT(),Pmt=lw();function vmt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Pmt.MESSAGE_TYPE,{value:t});for(let r of t.fields){let n=r.localName;if(!r.opt)if(r.oneof)e[r.oneof]={oneofKind:void 0};else if(r.repeat)e[n]=[];else switch(r.kind){case"scalar":e[n]=Tmt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(vmt,"reflectionCreate");eP.reflectionCreate=vmt});var e4=w(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.reflectionMergePartial=void 0;function _mt(t,e,r){let n,s=r,o;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=s[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],o=e[a.oneof],o.oneofKind=l.oneofKind,n==null){delete o[c];continue}}else if(n=s[c],o=e,n==null)continue;switch(a.repeat&&(o[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.reflectionEquals=void 0;var t4=Zi();function Qmt(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let s=n.localName,o=n.oneof?e[n.oneof][s]:e[s],a=n.oneof?r[n.oneof][s]:r[s];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?t4.ScalarType.INT32:n.T;if(!(n.repeat?Ghe(c,o,a):Hhe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?$he(n.V.T(),rP(o),rP(a)):Ghe(n.V.kind=="enum"?t4.ScalarType.INT32:n.V.T,rP(o),rP(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?$he(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(Qmt,"reflectionEquals");nP.reflectionEquals=Qmt;var rP=Object.values;function Hhe(t,e,r){if(e===r)return!0;if(t!==t4.ScalarType.BYTES)return!1;let n=e,s=r;if(n.length!==s.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(sP,"__esModule",{value:!0});sP.MessageType=void 0;var Dmt=lw(),kmt=Zi(),Lmt=HV(),Omt=VV(),Mmt=YV(),Fmt=jV(),Umt=XV(),qmt=ZV(),n4=e4(),Gmt=PT(),zhe=UV(),$mt=r4(),Hmt=FV(),zmt=MV(),Vhe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),Vmt=Vhe[Dmt.MESSAGE_TYPE]={},s4=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(kmt.normalizeFieldInfo),this.options=n??{},Vmt.value=this,this.messagePrototype=Object.create(null,Vhe),this.refTypeCheck=new Lmt.ReflectionTypeCheck(this),this.refJsonReader=new Omt.ReflectionJsonReader(this),this.refJsonWriter=new Mmt.ReflectionJsonWriter(this),this.refBinReader=new Fmt.ReflectionBinaryReader(this),this.refBinWriter=new Umt.ReflectionBinaryWriter(this)}create(e){let r=qmt.reflectionCreate(this);return e!==void 0&&n4.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return n4.reflectionMergePartial(this,r,e),r}equals(e,r){return $mt.reflectionEquals(this,e,r)}is(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!1)}isAssignable(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!0)}mergePartial(e,r){n4.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=zmt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,zhe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,zhe.jsonWriteOptions(r))}toJsonString(e,r){var n;let s=this.toJson(e,r);return JSON.stringify(s,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=Hmt.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let s=n??this.create();return this.refJsonReader.read(e,s,r),s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Gmt.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,s){let o=s??this.create();return this.refBinReader.read(e,o,n,r),o}};sP.MessageType=s4});var Yhe=w(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0});oP.containsMessageType=void 0;var Wmt=lw();function Ymt(t){return t[Wmt.MESSAGE_TYPE]!=null}i(Ymt,"containsMessageType");oP.containsMessageType=Ymt});var jhe=w(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.listEnumNumbers=Sc.listEnumNames=Sc.listEnumValues=Sc.isEnumObject=void 0;function Jhe(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}i(Jhe,"isEnumObject");Sc.isEnumObject=Jhe;function o4(t){if(!Jhe(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}i(o4,"listEnumValues");Sc.listEnumValues=o4;function Jmt(t){return o4(t).map(e=>e.name)}i(Jmt,"listEnumNames");Sc.listEnumNames=Jmt;function jmt(t){return o4(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(jmt,"listEnumNumbers");Sc.listEnumNumbers=jmt});var br=w(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});var Khe=PT();Object.defineProperty(pe,"typeofJsonValue",{enumerable:!0,get:i(function(){return Khe.typeofJsonValue},"get")});Object.defineProperty(pe,"isJsonObject",{enumerable:!0,get:i(function(){return Khe.isJsonObject},"get")});var Xhe=_T();Object.defineProperty(pe,"base64decode",{enumerable:!0,get:i(function(){return Xhe.base64decode},"get")});Object.defineProperty(pe,"base64encode",{enumerable:!0,get:i(function(){return Xhe.base64encode},"get")});var Kmt=xhe();Object.defineProperty(pe,"utf8read",{enumerable:!0,get:i(function(){return Kmt.utf8read},"get")});var i4=rw();Object.defineProperty(pe,"WireType",{enumerable:!0,get:i(function(){return i4.WireType},"get")});Object.defineProperty(pe,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return i4.mergeBinaryOptions},"get")});Object.defineProperty(pe,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return i4.UnknownFieldHandler},"get")});var Zhe=MV();Object.defineProperty(pe,"BinaryReader",{enumerable:!0,get:i(function(){return Zhe.BinaryReader},"get")});Object.defineProperty(pe,"binaryReadOptions",{enumerable:!0,get:i(function(){return Zhe.binaryReadOptions},"get")});var ege=FV();Object.defineProperty(pe,"BinaryWriter",{enumerable:!0,get:i(function(){return ege.BinaryWriter},"get")});Object.defineProperty(pe,"binaryWriteOptions",{enumerable:!0,get:i(function(){return ege.binaryWriteOptions},"get")});var tge=Ad();Object.defineProperty(pe,"PbLong",{enumerable:!0,get:i(function(){return tge.PbLong},"get")});Object.defineProperty(pe,"PbULong",{enumerable:!0,get:i(function(){return tge.PbULong},"get")});var a4=UV();Object.defineProperty(pe,"jsonReadOptions",{enumerable:!0,get:i(function(){return a4.jsonReadOptions},"get")});Object.defineProperty(pe,"jsonWriteOptions",{enumerable:!0,get:i(function(){return a4.jsonWriteOptions},"get")});Object.defineProperty(pe,"mergeJsonOptions",{enumerable:!0,get:i(function(){return a4.mergeJsonOptions},"get")});var Xmt=lw();Object.defineProperty(pe,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return Xmt.MESSAGE_TYPE},"get")});var Zmt=Whe();Object.defineProperty(pe,"MessageType",{enumerable:!0,get:i(function(){return Zmt.MessageType},"get")});var qf=Zi();Object.defineProperty(pe,"ScalarType",{enumerable:!0,get:i(function(){return qf.ScalarType},"get")});Object.defineProperty(pe,"LongType",{enumerable:!0,get:i(function(){return qf.LongType},"get")});Object.defineProperty(pe,"RepeatType",{enumerable:!0,get:i(function(){return qf.RepeatType},"get")});Object.defineProperty(pe,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return qf.normalizeFieldInfo},"get")});Object.defineProperty(pe,"readFieldOptions",{enumerable:!0,get:i(function(){return qf.readFieldOptions},"get")});Object.defineProperty(pe,"readFieldOption",{enumerable:!0,get:i(function(){return qf.readFieldOption},"get")});Object.defineProperty(pe,"readMessageOption",{enumerable:!0,get:i(function(){return qf.readMessageOption},"get")});var eAt=HV();Object.defineProperty(pe,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return eAt.ReflectionTypeCheck},"get")});var tAt=ZV();Object.defineProperty(pe,"reflectionCreate",{enumerable:!0,get:i(function(){return tAt.reflectionCreate},"get")});var rAt=KT();Object.defineProperty(pe,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return rAt.reflectionScalarDefault},"get")});var nAt=e4();Object.defineProperty(pe,"reflectionMergePartial",{enumerable:!0,get:i(function(){return nAt.reflectionMergePartial},"get")});var sAt=r4();Object.defineProperty(pe,"reflectionEquals",{enumerable:!0,get:i(function(){return sAt.reflectionEquals},"get")});var oAt=jV();Object.defineProperty(pe,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return oAt.ReflectionBinaryReader},"get")});var iAt=XV();Object.defineProperty(pe,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return iAt.ReflectionBinaryWriter},"get")});var aAt=VV();Object.defineProperty(pe,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return aAt.ReflectionJsonReader},"get")});var cAt=YV();Object.defineProperty(pe,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return cAt.ReflectionJsonWriter},"get")});var lAt=Yhe();Object.defineProperty(pe,"containsMessageType",{enumerable:!0,get:i(function(){return lAt.containsMessageType},"get")});var pw=GV();Object.defineProperty(pe,"isOneofGroup",{enumerable:!0,get:i(function(){return pw.isOneofGroup},"get")});Object.defineProperty(pe,"setOneofValue",{enumerable:!0,get:i(function(){return pw.setOneofValue},"get")});Object.defineProperty(pe,"getOneofValue",{enumerable:!0,get:i(function(){return pw.getOneofValue},"get")});Object.defineProperty(pe,"clearOneofValue",{enumerable:!0,get:i(function(){return pw.clearOneofValue},"get")});Object.defineProperty(pe,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return pw.getSelectedOneofValue},"get")});var iP=jhe();Object.defineProperty(pe,"listEnumValues",{enumerable:!0,get:i(function(){return iP.listEnumValues},"get")});Object.defineProperty(pe,"listEnumNames",{enumerable:!0,get:i(function(){return iP.listEnumNames},"get")});Object.defineProperty(pe,"listEnumNumbers",{enumerable:!0,get:i(function(){return iP.listEnumNumbers},"get")});Object.defineProperty(pe,"isEnumObject",{enumerable:!0,get:i(function(){return iP.isEnumObject},"get")});var uAt=qV();Object.defineProperty(pe,"lowerCamelCase",{enumerable:!0,get:i(function(){return uAt.lowerCamelCase},"get")});var fw=Hh();Object.defineProperty(pe,"assert",{enumerable:!0,get:i(function(){return fw.assert},"get")});Object.defineProperty(pe,"assertNever",{enumerable:!0,get:i(function(){return fw.assertNever},"get")});Object.defineProperty(pe,"assertInt32",{enumerable:!0,get:i(function(){return fw.assertInt32},"get")});Object.defineProperty(pe,"assertUInt32",{enumerable:!0,get:i(function(){return fw.assertUInt32},"get")});Object.defineProperty(pe,"assertFloat32",{enumerable:!0,get:i(function(){return fw.assertFloat32},"get")})});var c4=w(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.readServiceOption=xc.readMethodOption=xc.readMethodOptions=xc.normalizeMethodInfo=void 0;var dAt=br();function pAt(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:dAt.lowerCamelCase(o.name),o.serverStreaming=!!o.serverStreaming,o.clientStreaming=!!o.clientStreaming,o.options=(n=o.options)!==null&&n!==void 0?n:{},o.idempotency=(s=o.idempotency)!==null&&s!==void 0?s:void 0,o}i(pAt,"normalizeMethodInfo");xc.normalizeMethodInfo=pAt;function fAt(t,e,r,n){var s;let o=(s=t.methods.find((a,c)=>a.localName===e||c===e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(fAt,"readMethodOptions");xc.readMethodOptions=fAt;function mAt(t,e,r,n){var s;let o=(s=t.methods.find((c,l)=>c.localName===e||l===e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(mAt,"readMethodOption");xc.readMethodOption=mAt;function AAt(t,e,r){let n=t.options;if(!n)return;let s=n[e];return s===void 0?s:r?r.fromJson(s):s}i(AAt,"readServiceOption");xc.readServiceOption=AAt});var rge=w(aP=>{"use strict";Object.defineProperty(aP,"__esModule",{value:!0});aP.ServiceType=void 0;var hAt=c4(),l4=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>hAt.normalizeMethodInfo(s,this)),this.options=n??{}}};aP.ServiceType=l4});var d4=w(cP=>{"use strict";Object.defineProperty(cP,"__esModule",{value:!0});cP.RpcError=void 0;var u4=class extends Error{static{i(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,s]of r)e.push(` ${n}: ${s}`)}return e.join(` +`)}};cP.RpcError=u4});var p4=w(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.mergeRpcOptions=void 0;var nge=br();function gAt(t,e){if(!e)return t;let r={};lP(t,r),lP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=nge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=nge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},lP(t.meta,r.meta),lP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(gAt,"mergeRpcOptions");uP.mergeRpcOptions=gAt;function lP(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(lP,"copy")});var m4=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var bc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(bc=Gf.DeferredState||(Gf.DeferredState={}));var f4=class{static{i(this,"Deferred")}constructor(e=!0){this._state=bc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==bc.PENDING)throw new Error(`cannot resolve ${bc[this.state].toLowerCase()}`);this._resolve(e),this._state=bc.RESOLVED}reject(e){if(this.state!==bc.PENDING)throw new Error(`cannot reject ${bc[this.state].toLowerCase()}`);this._reject(e),this._state=bc.REJECTED}resolvePending(e){this._state===bc.PENDING&&this.resolve(e)}rejectPending(e){this._state===bc.PENDING&&this.reject(e)}};Gf.Deferred=f4});var h4=w(dP=>{"use strict";Object.defineProperty(dP,"__esModule",{value:!0});dP.RpcOutputStreamController=void 0;var sge=m4(),$f=br(),A4=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,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,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){$f.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){$f.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){$f.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){$f.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{let e=this._itState;$f.assert(e,"bad state"),$f.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new sge.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;$f.assert(n.state==sge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};dP.RpcOutputStreamController=A4});var y4=w(Yh=>{"use strict";var yAt=Yh&&Yh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Yh,"__esModule",{value:!0});Yh.UnaryCall=void 0;var g4=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return yAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Yh.UnaryCall=g4});var C4=w(Jh=>{"use strict";var EAt=Jh&&Jh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.ServerStreamingCall=void 0;var E4=class{static{i(this,"ServerStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return EAt(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:r,trailers:n}})}};Jh.ServerStreamingCall=E4});var w4=w(jh=>{"use strict";var CAt=jh&&jh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(jh,"__esModule",{value:!0});jh.ClientStreamingCall=void 0;var I4=class{static{i(this,"ClientStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return CAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:s}})}};jh.ClientStreamingCall=I4});var x4=w(Kh=>{"use strict";var IAt=Kh&&Kh.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Kh,"__esModule",{value:!0});Kh.DuplexStreamingCall=void 0;var S4=class{static{i(this,"DuplexStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return IAt(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:r,trailers:n}})}};Kh.DuplexStreamingCall=S4});var ige=w(eg=>{"use strict";var wAt=eg&&eg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(eg,"__esModule",{value:!0});eg.TestTransport=void 0;var ui=d4(),pP=br(),oge=h4(),SAt=p4(),xAt=y4(),bAt=C4(),BAt=w4(),RAt=x4(),Zh=class t{static{i(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof Xh?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof Xh?this.lastInput.completed:typeof this.lastInput=="object"}promiseHeaders(){var e;let r=(e=this.data.headers)!==null&&e!==void 0?e:t.defaultHeaders;return r instanceof ui.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof ui.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(pP.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),pP.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return wAt(this,void 0,void 0,function*(){let s=[];if(this.data.response===void 0)s.push(e.O.create());else if(Array.isArray(this.data.response))for(let o of this.data.response)pP.assert(e.O.is(o)),s.push(o);else this.data.response instanceof ui.RpcError||(pP.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield sn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof ui.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield sn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof ui.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof ui.RpcError){r.notifyError(this.data.trailers);return}r.notifyComplete()})}promiseStatus(){var e;let r=(e=this.data.status)!==null&&e!==void 0?e:t.defaultStatus;return r instanceof ui.RpcError?Promise.reject(r):Promise.resolve(r)}promiseTrailers(){var e;let r=(e=this.data.trailers)!==null&&e!==void 0?e:t.defaultTrailers;return r instanceof ui.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return SAt.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(sn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(sn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(sn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(sn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new xAt.UnaryCall(e,o,r,a,c,l,u)}serverStreaming(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(sn(this.headerDelay,n.abort)),c=new oge.RpcOutputStreamController,l=a.then(sn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(sn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new bAt.ServerStreamingCall(e,o,r,a,c,u,d)}clientStreaming(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(sn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(sn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(sn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(sn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new Xh(this.data,r.abort),new BAt.ClientStreamingCall(e,s,this.lastInput,o,a,c,l)}duplex(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(sn(this.headerDelay,r.abort)),a=new oge.RpcOutputStreamController,c=o.then(sn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(sn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new Xh(this.data,r.abort),new RAt.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};eg.TestTransport=Zh;Zh.defaultHeaders={responseHeader:"test"};Zh.defaultStatus={code:"OK",detail:"all good"};Zh.defaultTrailers={responseTrailer:"test"};function sn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new ui.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new ui.RpcError("user cancel","CANCELLED"))})}})}i(sn,"delay");var Xh=class{static{i(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof ui.RpcError)return Promise.reject(this.data.inputMessage);let r=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(sn(r,this.abort))}complete(){if(this.data.inputComplete instanceof ui.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(sn(e,this.abort))}}});var age=w(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.stackDuplexStreamingInterceptors=di.stackClientStreamingInterceptors=di.stackServerStreamingInterceptors=di.stackUnaryInterceptors=di.stackIntercept=void 0;var NAt=br();function mw(t,e,r,n,s){var o,a,c,l;if(t=="unary"){let u=i((d,p,f)=>e.unary(d,p,f),"tail");for(let d of((o=n.interceptors)!==null&&o!==void 0?o:[]).filter(p=>p.interceptUnary).reverse()){let p=u;u=i((f,m,A)=>d.interceptUnary(p,f,m,A),"tail")}return u(r,s,n)}if(t=="serverStreaming"){let u=i((d,p,f)=>e.serverStreaming(d,p,f),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(p=>p.interceptServerStreaming).reverse()){let p=u;u=i((f,m,A)=>d.interceptServerStreaming(p,f,m,A),"tail")}return u(r,s,n)}if(t=="clientStreaming"){let u=i((d,p)=>e.clientStreaming(d,p),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(p=>p.interceptClientStreaming).reverse()){let p=u;u=i((f,m)=>d.interceptClientStreaming(p,f,m),"tail")}return u(r,n)}if(t=="duplex"){let u=i((d,p)=>e.duplex(d,p),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(p=>p.interceptDuplex).reverse()){let p=u;u=i((f,m)=>d.interceptDuplex(p,f,m),"tail")}return u(r,n)}NAt.assertNever(t)}i(mw,"stackIntercept");di.stackIntercept=mw;function TAt(t,e,r,n){return mw("unary",t,e,n,r)}i(TAt,"stackUnaryInterceptors");di.stackUnaryInterceptors=TAt;function PAt(t,e,r,n){return mw("serverStreaming",t,e,n,r)}i(PAt,"stackServerStreamingInterceptors");di.stackServerStreamingInterceptors=PAt;function vAt(t,e,r){return mw("clientStreaming",t,e,r)}i(vAt,"stackClientStreamingInterceptors");di.stackClientStreamingInterceptors=vAt;function _At(t,e,r){return mw("duplex",t,e,r)}i(_At,"stackDuplexStreamingInterceptors");di.stackDuplexStreamingInterceptors=_At});var cge=w(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});fP.ServerCallContextController=void 0;var b4=class{static{i(this,"ServerCallContextController")}constructor(e,r,n,s,o={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=s,this.status=o}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};fP.ServerCallContextController=b4});var uge=w(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});var QAt=rge();Object.defineProperty(dr,"ServiceType",{enumerable:!0,get:i(function(){return QAt.ServiceType},"get")});var B4=c4();Object.defineProperty(dr,"readMethodOptions",{enumerable:!0,get:i(function(){return B4.readMethodOptions},"get")});Object.defineProperty(dr,"readMethodOption",{enumerable:!0,get:i(function(){return B4.readMethodOption},"get")});Object.defineProperty(dr,"readServiceOption",{enumerable:!0,get:i(function(){return B4.readServiceOption},"get")});var DAt=d4();Object.defineProperty(dr,"RpcError",{enumerable:!0,get:i(function(){return DAt.RpcError},"get")});var kAt=p4();Object.defineProperty(dr,"mergeRpcOptions",{enumerable:!0,get:i(function(){return kAt.mergeRpcOptions},"get")});var LAt=h4();Object.defineProperty(dr,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return LAt.RpcOutputStreamController},"get")});var OAt=ige();Object.defineProperty(dr,"TestTransport",{enumerable:!0,get:i(function(){return OAt.TestTransport},"get")});var lge=m4();Object.defineProperty(dr,"Deferred",{enumerable:!0,get:i(function(){return lge.Deferred},"get")});Object.defineProperty(dr,"DeferredState",{enumerable:!0,get:i(function(){return lge.DeferredState},"get")});var MAt=x4();Object.defineProperty(dr,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return MAt.DuplexStreamingCall},"get")});var FAt=w4();Object.defineProperty(dr,"ClientStreamingCall",{enumerable:!0,get:i(function(){return FAt.ClientStreamingCall},"get")});var UAt=C4();Object.defineProperty(dr,"ServerStreamingCall",{enumerable:!0,get:i(function(){return UAt.ServerStreamingCall},"get")});var qAt=y4();Object.defineProperty(dr,"UnaryCall",{enumerable:!0,get:i(function(){return qAt.UnaryCall},"get")});var Aw=age();Object.defineProperty(dr,"stackIntercept",{enumerable:!0,get:i(function(){return Aw.stackIntercept},"get")});Object.defineProperty(dr,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return Aw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(dr,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return Aw.stackClientStreamingInterceptors},"get")});Object.defineProperty(dr,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return Aw.stackServerStreamingInterceptors},"get")});Object.defineProperty(dr,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return Aw.stackUnaryInterceptors},"get")});var GAt=cge();Object.defineProperty(dr,"ServerCallContextController",{enumerable:!0,get:i(function(){return GAt.ServerCallContextController},"get")})});var pg=w((pIr,Eye)=>{"use strict";var hyt="2.0.0",gyt=Number.MAX_SAFE_INTEGER||9007199254740991,yyt=16,Eyt=250,Cyt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Eye.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:yyt,MAX_SAFE_BUILD_LENGTH:Eyt,MAX_SAFE_INTEGER:gyt,RELEASE_TYPES:Cyt,SEMVER_SPEC_VERSION:hyt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Cw=w((fIr,Cye)=>{"use strict";var Iyt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Cye.exports=Iyt});var fg=w((Nc,Iye)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:IW,MAX_SAFE_BUILD_LENGTH:wyt,MAX_LENGTH:Syt}=pg(),xyt=Cw();Nc=Iye.exports={};var byt=Nc.re=[],Byt=Nc.safeRe=[],W=Nc.src=[],Ryt=Nc.safeSrc=[],Y=Nc.t={},Nyt=0,wW="[a-zA-Z0-9-]",Tyt=[["\\s",1],["\\d",Syt],[wW,wyt]],Pyt=i(t=>{for(let[e,r]of Tyt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Me=i((t,e,r)=>{let n=Pyt(e),s=Nyt++;xyt(t,s,e),Y[t]=s,W[s]=e,Ryt[s]=n,byt[s]=new RegExp(e,r?"g":void 0),Byt[s]=new RegExp(n,r?"g":void 0)},"createToken");Me("NUMERICIDENTIFIER","0|[1-9]\\d*");Me("NUMERICIDENTIFIERLOOSE","\\d+");Me("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${wW}*`);Me("MAINVERSION",`(${W[Y.NUMERICIDENTIFIER]})\\.(${W[Y.NUMERICIDENTIFIER]})\\.(${W[Y.NUMERICIDENTIFIER]})`);Me("MAINVERSIONLOOSE",`(${W[Y.NUMERICIDENTIFIERLOOSE]})\\.(${W[Y.NUMERICIDENTIFIERLOOSE]})\\.(${W[Y.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASEIDENTIFIER",`(?:${W[Y.NONNUMERICIDENTIFIER]}|${W[Y.NUMERICIDENTIFIER]})`);Me("PRERELEASEIDENTIFIERLOOSE",`(?:${W[Y.NONNUMERICIDENTIFIER]}|${W[Y.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASE",`(?:-(${W[Y.PRERELEASEIDENTIFIER]}(?:\\.${W[Y.PRERELEASEIDENTIFIER]})*))`);Me("PRERELEASELOOSE",`(?:-?(${W[Y.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[Y.PRERELEASEIDENTIFIERLOOSE]})*))`);Me("BUILDIDENTIFIER",`${wW}+`);Me("BUILD",`(?:\\+(${W[Y.BUILDIDENTIFIER]}(?:\\.${W[Y.BUILDIDENTIFIER]})*))`);Me("FULLPLAIN",`v?${W[Y.MAINVERSION]}${W[Y.PRERELEASE]}?${W[Y.BUILD]}?`);Me("FULL",`^${W[Y.FULLPLAIN]}$`);Me("LOOSEPLAIN",`[v=\\s]*${W[Y.MAINVERSIONLOOSE]}${W[Y.PRERELEASELOOSE]}?${W[Y.BUILD]}?`);Me("LOOSE",`^${W[Y.LOOSEPLAIN]}$`);Me("GTLT","((?:<|>)?=?)");Me("XRANGEIDENTIFIERLOOSE",`${W[Y.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Me("XRANGEIDENTIFIER",`${W[Y.NUMERICIDENTIFIER]}|x|X|\\*`);Me("XRANGEPLAIN",`[v=\\s]*(${W[Y.XRANGEIDENTIFIER]})(?:\\.(${W[Y.XRANGEIDENTIFIER]})(?:\\.(${W[Y.XRANGEIDENTIFIER]})(?:${W[Y.PRERELEASE]})?${W[Y.BUILD]}?)?)?`);Me("XRANGEPLAINLOOSE",`[v=\\s]*(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:${W[Y.PRERELEASELOOSE]})?${W[Y.BUILD]}?)?)?`);Me("XRANGE",`^${W[Y.GTLT]}\\s*${W[Y.XRANGEPLAIN]}$`);Me("XRANGELOOSE",`^${W[Y.GTLT]}\\s*${W[Y.XRANGEPLAINLOOSE]}$`);Me("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IW}})(?:\\.(\\d{1,${IW}}))?(?:\\.(\\d{1,${IW}}))?`);Me("COERCE",`${W[Y.COERCEPLAIN]}(?:$|[^\\d])`);Me("COERCEFULL",W[Y.COERCEPLAIN]+`(?:${W[Y.PRERELEASE]})?(?:${W[Y.BUILD]})?(?:$|[^\\d])`);Me("COERCERTL",W[Y.COERCE],!0);Me("COERCERTLFULL",W[Y.COERCEFULL],!0);Me("LONETILDE","(?:~>?)");Me("TILDETRIM",`(\\s*)${W[Y.LONETILDE]}\\s+`,!0);Nc.tildeTrimReplace="$1~";Me("TILDE",`^${W[Y.LONETILDE]}${W[Y.XRANGEPLAIN]}$`);Me("TILDELOOSE",`^${W[Y.LONETILDE]}${W[Y.XRANGEPLAINLOOSE]}$`);Me("LONECARET","(?:\\^)");Me("CARETTRIM",`(\\s*)${W[Y.LONECARET]}\\s+`,!0);Nc.caretTrimReplace="$1^";Me("CARET",`^${W[Y.LONECARET]}${W[Y.XRANGEPLAIN]}$`);Me("CARETLOOSE",`^${W[Y.LONECARET]}${W[Y.XRANGEPLAINLOOSE]}$`);Me("COMPARATORLOOSE",`^${W[Y.GTLT]}\\s*(${W[Y.LOOSEPLAIN]})$|^$`);Me("COMPARATOR",`^${W[Y.GTLT]}\\s*(${W[Y.FULLPLAIN]})$|^$`);Me("COMPARATORTRIM",`(\\s*)${W[Y.GTLT]}\\s*(${W[Y.LOOSEPLAIN]}|${W[Y.XRANGEPLAIN]})`,!0);Nc.comparatorTrimReplace="$1$2$3";Me("HYPHENRANGE",`^\\s*(${W[Y.XRANGEPLAIN]})\\s+-\\s+(${W[Y.XRANGEPLAIN]})\\s*$`);Me("HYPHENRANGELOOSE",`^\\s*(${W[Y.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[Y.XRANGEPLAINLOOSE]})\\s*$`);Me("STAR","(<|>)?=?\\s*\\*");Me("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Me("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var TP=w((AIr,wye)=>{"use strict";var vyt=Object.freeze({loose:!0}),_yt=Object.freeze({}),Qyt=i(t=>t?typeof t!="object"?vyt:t:_yt,"parseOptions");wye.exports=Qyt});var SW=w((gIr,bye)=>{"use strict";var Sye=/^[0-9]+$/,xye=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:txye(e,t),"rcompareIdentifiers");bye.exports={compareIdentifiers:xye,rcompareIdentifiers:Dyt}});var Sn=w((EIr,Rye)=>{"use strict";var PP=Cw(),{MAX_LENGTH:Bye,MAX_SAFE_INTEGER:vP}=pg(),{safeRe:_P,t:QP}=fg(),kyt=TP(),{compareIdentifiers:xW}=SW(),Lyt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nBye)throw new TypeError(`version is longer than ${Bye} characters`);PP("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?_P[QP.LOOSE]:_P[QP.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>vP||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vP||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vP||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&oe.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(PP("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return xW(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(PP("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return xW(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?_P[QP.PRERELEASELOOSE]:_P[QP.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,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":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];if(n===!1&&(o=[r]),Lyt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Rye.exports=bW});var Ed=w((IIr,Tye)=>{"use strict";var Nye=Sn(),Oyt=i((t,e,r=!1)=>{if(t instanceof Nye)return t;try{return new Nye(t,e)}catch(n){if(!r)return null;throw n}},"parse");Tye.exports=Oyt});var vye=w((SIr,Pye)=>{"use strict";var Myt=Ed(),Fyt=i((t,e)=>{let r=Myt(t,e);return r?r.version:null},"valid");Pye.exports=Fyt});var Qye=w((bIr,_ye)=>{"use strict";var Uyt=Ed(),qyt=i((t,e)=>{let r=Uyt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");_ye.exports=qyt});var Lye=w((RIr,kye)=>{"use strict";var Dye=Sn(),Gyt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Dye(t instanceof Dye?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");kye.exports=Gyt});var Fye=w((TIr,Mye)=>{"use strict";var Oye=Ed(),$yt=i((t,e)=>{let r=Oye(t,null,!0),n=Oye(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Mye.exports=$yt});var qye=w((vIr,Uye)=>{"use strict";var Hyt=Sn(),zyt=i((t,e)=>new Hyt(t,e).major,"major");Uye.exports=zyt});var $ye=w((QIr,Gye)=>{"use strict";var Vyt=Sn(),Wyt=i((t,e)=>new Vyt(t,e).minor,"minor");Gye.exports=Wyt});var zye=w((kIr,Hye)=>{"use strict";var Yyt=Sn(),Jyt=i((t,e)=>new Yyt(t,e).patch,"patch");Hye.exports=Jyt});var Wye=w((OIr,Vye)=>{"use strict";var jyt=Ed(),Kyt=i((t,e)=>{let r=jyt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Vye.exports=Kyt});var pi=w((FIr,Jye)=>{"use strict";var Yye=Sn(),Xyt=i((t,e,r)=>new Yye(t,r).compare(new Yye(e,r)),"compare");Jye.exports=Xyt});var Kye=w((qIr,jye)=>{"use strict";var Zyt=pi(),eEt=i((t,e,r)=>Zyt(e,t,r),"rcompare");jye.exports=eEt});var Zye=w(($Ir,Xye)=>{"use strict";var tEt=pi(),rEt=i((t,e)=>tEt(t,e,!0),"compareLoose");Xye.exports=rEt});var DP=w((zIr,tEe)=>{"use strict";var eEe=Sn(),nEt=i((t,e,r)=>{let n=new eEe(t,r),s=new eEe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");tEe.exports=nEt});var nEe=w((WIr,rEe)=>{"use strict";var sEt=DP(),oEt=i((t,e)=>t.sort((r,n)=>sEt(r,n,e)),"sort");rEe.exports=oEt});var oEe=w((JIr,sEe)=>{"use strict";var iEt=DP(),aEt=i((t,e)=>t.sort((r,n)=>iEt(n,r,e)),"rsort");sEe.exports=aEt});var Iw=w((KIr,iEe)=>{"use strict";var cEt=pi(),lEt=i((t,e,r)=>cEt(t,e,r)>0,"gt");iEe.exports=lEt});var kP=w((ZIr,aEe)=>{"use strict";var uEt=pi(),dEt=i((t,e,r)=>uEt(t,e,r)<0,"lt");aEe.exports=dEt});var BW=w((twr,cEe)=>{"use strict";var pEt=pi(),fEt=i((t,e,r)=>pEt(t,e,r)===0,"eq");cEe.exports=fEt});var RW=w((nwr,lEe)=>{"use strict";var mEt=pi(),AEt=i((t,e,r)=>mEt(t,e,r)!==0,"neq");lEe.exports=AEt});var LP=w((owr,uEe)=>{"use strict";var hEt=pi(),gEt=i((t,e,r)=>hEt(t,e,r)>=0,"gte");uEe.exports=gEt});var OP=w((awr,dEe)=>{"use strict";var yEt=pi(),EEt=i((t,e,r)=>yEt(t,e,r)<=0,"lte");dEe.exports=EEt});var NW=w((lwr,pEe)=>{"use strict";var CEt=BW(),IEt=RW(),wEt=Iw(),SEt=LP(),xEt=kP(),bEt=OP(),BEt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return CEt(t,r,n);case"!=":return IEt(t,r,n);case">":return wEt(t,r,n);case">=":return SEt(t,r,n);case"<":return xEt(t,r,n);case"<=":return bEt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");pEe.exports=BEt});var mEe=w((dwr,fEe)=>{"use strict";var REt=Sn(),NEt=Ed(),{safeRe:MP,t:FP}=fg(),TEt=i((t,e)=>{if(t instanceof REt)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?MP[FP.COERCEFULL]:MP[FP.COERCE]);else{let l=e.includePrerelease?MP[FP.COERCERTLFULL]:MP[FP.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return NEt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");fEe.exports=TEt});var hEe=w((fwr,AEe)=>{"use strict";var PEt=Ed(),vEt=pg(),_Et=Sn(),QEt=i((t,e,r)=>{if(!vEt.RELEASE_TYPES.includes(e))return null;let n=DEt(t,r);return n&&kEt(n,e)},"truncate"),DEt=i((t,e)=>{let r=t instanceof _Et?t.version:t;return PEt(r,e)},"cloneInputVersion"),kEt=i((t,e)=>{if(LEt(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),LEt=i(t=>t.startsWith("pre"),"isPrerelease");AEe.exports=QEt});var yEe=w((Awr,gEe)=>{"use strict";var TW=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};gEe.exports=TW});var fi=w((gwr,wEe)=>{"use strict";var OEt=/\s+/g,PW=class t{static{i(this,"Range")}constructor(e,r){if(r=FEt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof vW)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(OEt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!CEe(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&YEt(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(WEt,"");let n=((this.options.includePrerelease&&zEt)|(this.options.loose&&VEt))+":"+e,s=EEe.get(n);if(s)return s;let o=this.options.loose,a=o?ms[xn.HYPHENRANGELOOSE]:ms[xn.HYPHENRANGE];e=e.replace(a,oCt(this.options.includePrerelease)),Lt("hyphen replace",e),e=e.replace(ms[xn.COMPARATORTRIM],GEt),Lt("comparator trim",e),e=e.replace(ms[xn.TILDETRIM],$Et),Lt("tilde trim",e),e=e.replace(ms[xn.CARETTRIM],HEt),Lt("caret trim",e);let c=e.split(" ").map(p=>JEt(p,this.options)).join(" ").split(/\s+/).map(p=>sCt(p,this.options));o&&(c=c.filter(p=>(Lt("loose invalid filter",p,this.options),!!p.match(ms[xn.COMPARATORLOOSE])))),Lt("range list",c);let l=new Map,u=c.map(p=>new vW(p,this.options));for(let p of u){if(CEe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return EEe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>IEe(n,r)&&e.set.some(s=>IEe(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new UEt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),YEt=i(t=>t.value==="","isAny"),IEe=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),JEt=i((t,e)=>(t=t.replace(ms[xn.BUILD],""),Lt("comp",t,e),t=ZEt(t,e),Lt("caret",t),t=KEt(t,e),Lt("tildes",t),t=tCt(t,e),Lt("xrange",t),t=nCt(t,e),Lt("stars",t),t),"parseComparator"),Vr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),jEt=i((t,e,r)=>Vr(t)&&!Vr(e)||Vr(e)&&r&&!Vr(r),"invalidXRangeOrder"),KEt=i((t,e)=>t.trim().split(/\s+/).map(r=>XEt(r,e)).join(" "),"replaceTildes"),XEt=i((t,e)=>{let r=e.loose?ms[xn.TILDELOOSE]:ms[xn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Lt("tilde",t,s,o,a,c,l);let u;return Vr(o)?u="":Vr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Vr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Lt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Lt("tilde return",u),u})},"replaceTilde"),ZEt=i((t,e)=>t.trim().split(/\s+/).map(r=>eCt(r,e)).join(" "),"replaceCarets"),eCt=i((t,e)=>{Lt("caret",t,e);let r=e.loose?ms[xn.CARETLOOSE]:ms[xn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Lt("caret",t,s,o,a,c,l);let u;return Vr(o)?u="":Vr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Vr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Lt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Lt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Lt("caret return",u),u})},"replaceCaret"),tCt=i((t,e)=>(Lt("replaceXRanges",t,e),t.split(/\s+/).map(r=>rCt(r,e)).join(" ")),"replaceXRanges"),rCt=i((t,e)=>{t=t.trim();let r=e.loose?ms[xn.XRANGELOOSE]:ms[xn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Lt("xRange",t,n,s,o,a,c,l),jEt(o,a,c))return t;let u=Vr(o),d=u||Vr(a),p=d||Vr(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Lt("xRange return",n),n})},"replaceXRange"),nCt=i((t,e)=>(Lt("replaceStars",t,e),t.trim().replace(ms[xn.STAR],"")),"replaceStars"),sCt=i((t,e)=>(Lt("replaceGTE0",t,e),t.trim().replace(ms[e.includePrerelease?xn.GTE0PRE:xn.GTE0],"")),"replaceGTE0"),oCt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Vr(n)?r="":Vr(s)?r=`>=${n}.0.0${t?"-0":""}`:Vr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Vr(u)?l="":Vr(d)?l=`<${+u+1}.0.0-0`:Vr(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),iCt=i((t,e,r)=>{for(let n=0;n0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var ww=w((Ewr,NEe)=>{"use strict";var Sw=Symbol("SemVer ANY"),DW=class t{static{i(this,"Comparator")}static get ANY(){return Sw}constructor(e,r){if(r=SEe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),QW("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Sw?this.value="":this.value=this.operator+this.semver.version,QW("comp",this)}parse(e){let r=this.options.loose?xEe[bEe.COMPARATORLOOSE]:xEe[bEe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new BEe(n[2],this.options.loose):this.semver=Sw}toString(){return this.value}test(e){if(QW("Comparator.test",e,this.options.loose),this.semver===Sw||e===Sw)return!0;if(typeof e=="string")try{e=new BEe(e,this.options)}catch{return!1}return _W(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new REe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new REe(this.value,r).test(e.semver):(r=SEe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_W(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_W(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};NEe.exports=DW;var SEe=TP(),{safeRe:xEe,t:bEe}=fg(),_W=NW(),QW=Cw(),BEe=Sn(),REe=fi()});var xw=w((Iwr,TEe)=>{"use strict";var aCt=fi(),cCt=i((t,e,r)=>{try{e=new aCt(e,r)}catch{return!1}return e.test(t)},"satisfies");TEe.exports=cCt});var vEe=w((Swr,PEe)=>{"use strict";var lCt=fi(),uCt=i((t,e)=>new lCt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");PEe.exports=uCt});var QEe=w((bwr,_Ee)=>{"use strict";var dCt=Sn(),pCt=fi(),fCt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new pCt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new dCt(n,r))}),n},"maxSatisfying");_Ee.exports=fCt});var kEe=w((Rwr,DEe)=>{"use strict";var mCt=Sn(),ACt=fi(),hCt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new ACt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new mCt(n,r))}),n},"minSatisfying");DEe.exports=hCt});var MEe=w((Twr,OEe)=>{"use strict";var kW=Sn(),gCt=fi(),LEe=Iw(),yCt=i((t,e)=>{t=new gCt(t,e);let r=new kW("0.0.0");if(t.test(r)||(r=new kW("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new kW(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||LEe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||LEe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");OEe.exports=yCt});var UEe=w((vwr,FEe)=>{"use strict";var ECt=fi(),CCt=i((t,e)=>{try{return new ECt(t,e).range||"*"}catch{return null}},"validRange");FEe.exports=CCt});var UP=w((Qwr,HEe)=>{"use strict";var ICt=Sn(),$Ee=ww(),{ANY:wCt}=$Ee,SCt=fi(),xCt=xw(),qEe=Iw(),GEe=kP(),bCt=OP(),BCt=LP(),RCt=i((t,e,r,n)=>{t=new ICt(t,n),e=new SCt(e,n);let s,o,a,c,l;switch(r){case">":s=qEe,o=bCt,a=GEe,c=">",l=">=";break;case"<":s=GEe,o=BCt,a=qEe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(xCt(t,e,n))return!1;for(let u=0;u{m.semver===wCt&&(m=new $Ee(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");HEe.exports=RCt});var VEe=w((kwr,zEe)=>{"use strict";var NCt=UP(),TCt=i((t,e,r)=>NCt(t,e,">",r),"gtr");zEe.exports=TCt});var YEe=w((Owr,WEe)=>{"use strict";var PCt=UP(),vCt=i((t,e,r)=>PCt(t,e,"<",r),"ltr");WEe.exports=vCt});var KEe=w((Fwr,jEe)=>{"use strict";var JEe=fi(),_Ct=i((t,e,r)=>(t=new JEe(t,r),e=new JEe(e,r),t.intersects(e,r)),"intersects");jEe.exports=_Ct});var ZEe=w((qwr,XEe)=>{"use strict";var QCt=xw(),DCt=pi();XEe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>DCt(d,p,r));for(let d of a)QCt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length{"use strict";var eCe=fi(),MW=ww(),{ANY:LW}=MW,OW=xw(),FW=pi(),kCt=i((t,e,r={})=>{if(t===e)return!0;t=new eCe(t,r),e=new eCe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=OCt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),LCt=[new MW(">=0.0.0-0")],tCe=[new MW(">=0.0.0")],OCt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===LW){if(e.length===1&&e[0].semver===LW)return!0;r.includePrerelease?t=LCt:t=tCe}if(e.length===1&&e[0].semver===LW){if(r.includePrerelease)return!0;e=tCe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=rCe(s,m,r):m.operator==="<"||m.operator==="<="?o=nCe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=FW(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!OW(m,String(s),r)||o&&!OW(m,String(o),r))return null;for(let A of e)if(!OW(m,String(A),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=rCe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!m.test(s.semver))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=nCe(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!m.test(o.semver))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),rCe=i((t,e,r)=>{if(!t)return e;let n=FW(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),nCe=i((t,e,r)=>{if(!t)return e;let n=FW(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");sCe.exports=kCt});var lCe=w((Hwr,cCe)=>{"use strict";var UW=fg(),iCe=pg(),MCt=Sn(),aCe=SW(),FCt=Ed(),UCt=vye(),qCt=Qye(),GCt=Lye(),$Ct=Fye(),HCt=qye(),zCt=$ye(),VCt=zye(),WCt=Wye(),YCt=pi(),JCt=Kye(),jCt=Zye(),KCt=DP(),XCt=nEe(),ZCt=oEe(),eIt=Iw(),tIt=kP(),rIt=BW(),nIt=RW(),sIt=LP(),oIt=OP(),iIt=NW(),aIt=mEe(),cIt=hEe(),lIt=ww(),uIt=fi(),dIt=xw(),pIt=vEe(),fIt=QEe(),mIt=kEe(),AIt=MEe(),hIt=UEe(),gIt=UP(),yIt=VEe(),EIt=YEe(),CIt=KEe(),IIt=ZEe(),wIt=oCe();cCe.exports={parse:FCt,valid:UCt,clean:qCt,inc:GCt,diff:$Ct,major:HCt,minor:zCt,patch:VCt,prerelease:WCt,compare:YCt,rcompare:JCt,compareLoose:jCt,compareBuild:KCt,sort:XCt,rsort:ZCt,gt:eIt,lt:tIt,eq:rIt,neq:nIt,gte:sIt,lte:oIt,cmp:iIt,coerce:aIt,truncate:cIt,Comparator:lIt,Range:uIt,satisfies:dIt,toComparators:pIt,maxSatisfying:fIt,minSatisfying:mIt,minVersion:AIt,validRange:hIt,outside:gIt,gtr:yIt,ltr:EIt,intersects:CIt,simplifyRange:IIt,subset:wIt,SemVer:MCt,re:UW.re,src:UW.src,tokens:UW.t,SEMVER_SPEC_VERSION:iCe.SEMVER_SPEC_VERSION,RELEASE_TYPES:iCe.RELEASE_TYPES,compareIdentifiers:aCe.compareIdentifiers,rcompareIdentifiers:aCe.rcompareIdentifiers}});var dCe=w((Wwr,uCe)=>{function mi(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(mi,"RetryOperation");uCe.exports=mi;mi.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};mi.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};mi.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};mi.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};mi.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};mi.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};mi.prototype.start=mi.prototype.try;mi.prototype.errors=function(){return this._errors};mi.prototype.attempts=function(){return this._attempts};mi.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n=r&&(e=s,r=a)}return e}});var pCe=w(jf=>{var SIt=dCe();jf.operation=function(t){var e=jf.timeouts(t);return new SIt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};jf.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],s=0;s{fCe.exports=pCe()});var hCe=w((Xwr,ACe)=>{var xIt=mCe();function bIt(t,e){function r(n,s){var o=e||{},a;"randomize"in o||(o.randomize=!0),a=xIt.operation(o);function c(d){s(d||new Error("Aborted"))}i(c,"bail");function l(d,p){if(d.bail){c(d);return}a.retry(d)?o.onRetry&&o.onRetry(d,p):s(a.mainError())}i(l,"onError");function u(d){var p;try{p=t(c,d)}catch(f){l(f,d);return}Promise.resolve(p).then(n).catch(i(function(m){l(m,d)},"catchIt"))}i(u,"runAttempt"),a.attempt(u)}return i(r,"run"),new Promise(r)}i(bIt,"retry");ACe.exports=bIt});var DCe=w((eSr,eu)=>{var St=require("fs"),$P=require("os"),Wr=require("path"),gCe=require("crypto"),Tc={fs:St.constants,os:$P.constants},yCe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",wCe=/XXXXXX/,BIt=3,SCe=(Tc.O_CREAT||Tc.fs.O_CREAT)|(Tc.O_EXCL||Tc.fs.O_EXCL)|(Tc.O_RDWR||Tc.fs.O_RDWR),RIt=$P.platform()==="win32",NIt=Tc.EBADF||Tc.os.errno.EBADF,TIt=Tc.ENOENT||Tc.os.errno.ENOENT,xCe=448,bCe=384,PIt="exit",mg=[],BCe=St.rmdirSync.bind(St),RCe=!1;function vIt(t,e){return St.rm(t,{recursive:!0},e)}i(vIt,"rimraf");function NCe(t){return St.rmSync(t,{recursive:!0})}i(NCe,"FN_RIMRAF_SYNC");function HW(t,e){let r=Ag(t,e),n=r[0],s=r[1];qIt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=PCe(a);St.stat(u,function(d){if(!d)return c-- >0?l():s(new Error("Could not get a unique tmp filename, max tries reached "+u));s(null,u)})}catch(u){s(u)}}),"_getUniqueName")()})}i(HW,"tmpName");function zW(t){let e=Ag(t),r=e[0],n=GIt(r),s=n.tries;do{let o=PCe(n);try{St.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(zW,"tmpNameSync");function _It(t,e){let r=Ag(t,e),n=r[0],s=r[1];HW(n,i(function(a,c){if(a)return s(a);St.open(c,SCe,n.mode||bCe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return St.close(d,i(function(f){return s(f,c,void 0,GW(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,GW(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(_It,"file");function QIt(t){let e=Ag(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=zW(r),o=St.openSync(s,SCe,r.mode||bCe);return r.discardDescriptor&&(St.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:GW(s,n?-1:o,r,!0)}}i(QIt,"fileSync");function DIt(t,e){let r=Ag(t,e),n=r[0],s=r[1];HW(n,i(function(a,c){if(a)return s(a);St.mkdir(c,n.mode||xCe,i(function(u){if(u)return s(u);s(null,c,TCe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(DIt,"dir");function kIt(t){let e=Ag(t),r=e[0],n=zW(r);return St.mkdirSync(n,r.mode||xCe),{name:n,removeCallback:TCe(n,r,!0)}}i(kIt,"dirSync");function LIt(t,e){let r=i(function(n){if(n&&!$W(n))return e(n);e()},"_handler");0<=t[0]?St.close(t[0],function(){St.unlink(t[1],r)}):St.unlink(t[1],r)}i(LIt,"_removeFileAsync");function OIt(t){let e=null;try{0<=t[0]&&St.closeSync(t[0])}catch(r){if(!$It(r)&&!$W(r))throw r}finally{try{St.unlinkSync(t[1])}catch(r){$W(r)||(e=r)}}if(e!==null)throw e}i(OIt,"_removeFileSync");function GW(t,e,r,n){let s=GP(OIt,[e,t],n),o=GP(LIt,[e,t],n,s);return r.keep||mg.unshift(s),n?s:o}i(GW,"_prepareTmpFileRemoveCallback");function TCe(t,e,r){let n=e.unsafeCleanup?vIt:St.rmdir.bind(St),s=e.unsafeCleanup?NCe:BCe,o=GP(s,t,r),a=GP(n,t,r,o);return e.keep||mg.unshift(o),r?o:a}i(TCe,"_prepareTmpDirRemoveCallback");function GP(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=mg.indexOf(c);return l>=0&&mg.splice(l,1),s=!0,r||t===BCe||t===NCe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(GP,"_prepareRemoveCallback");function MIt(){if(RCe)for(;mg.length;)try{mg[0]()}catch{}}i(MIt,"_garbageCollector");function ECe(t){let e=[],r=null;try{r=gCe.randomBytes(t)}catch{r=gCe.pseudoRandomBytes(t)}for(let n=0;n"u"}i(Gs,"_isUndefined");function Ag(t,e){if(typeof t=="function")return[{},t];if(Gs(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(Ag,"_parseArguments");function FIt(t,e,r){let n=Wr.isAbsolute(t)?t:Wr.join(e,t);St.stat(n,function(s){s?St.realpath(Wr.dirname(n),function(o,a){if(o)return r(o);r(null,Wr.join(a,Wr.basename(n)))}):St.realpath(n,r)})}i(FIt,"_resolvePath");function UIt(t,e){let r=Wr.isAbsolute(t)?t:Wr.join(e,t);try{return St.statSync(r),St.realpathSync(r)}catch{let s=St.realpathSync(Wr.dirname(r));return Wr.join(s,Wr.basename(r))}}i(UIt,"_resolvePathSync");function PCe(t){let e=t.tmpdir;if(!Gs(t.name))return Wr.join(e,t.dir,t.name);if(!Gs(t.template))return Wr.join(e,t.dir,t.template).replace(wCe,ECe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",ECe(12),t.postfix?"-"+t.postfix:""].join("");return Wr.join(e,t.dir,r)}i(PCe,"_generateTmpName");function qW(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}i(qW,"_assertPath");function vCe(t){if(!Gs(t.name)){let e=t.name;if(Wr.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=Wr.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!Gs(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(wCe))throw new Error(`Invalid template, found "${t.template}".`)}if(!Gs(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Gs(t.name)?t.tries||BIt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Gs(t.prefix)?"":qW("prefix",t.prefix),t.postfix=Gs(t.postfix)?"":qW("postfix",t.postfix),t.template=Gs(t.template)?void 0:qW("template",t.template)}i(vCe,"_assertOptionsBase");function CCe(t,e,r,n){if(Gs(e))return n(null);FIt(e,r,function(s,o){if(s)return n(s);let a=Wr.relative(r,o);if(a.startsWith("..")||Wr.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(CCe,"_getRelativePath");function ICe(t,e,r){if(Gs(e))return;let n=UIt(e,r),s=Wr.relative(r,n);if(s.startsWith("..")||Wr.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(ICe,"_getRelativePathSync");function qIt(t,e){zIt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{vCe(t,n)}catch(s){return e(s)}CCe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=Gs(o)?"":o,CCe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(qIt,"_assertAndSanitizeOptions");function GIt(t){let e=t.tmpdir=QCe(t);vCe(t,e);let r=ICe("dir",t.dir,e);return t.dir=Gs(r)?"":r,t.template=ICe("template",t.template,e),t}i(GIt,"_assertAndSanitizeOptionsSync");function $It(t){return _Ce(t,-NIt,"EBADF")}i($It,"_isEBADF");function $W(t){return _Ce(t,-TIt,"ENOENT")}i($W,"_isENOENT");function _Ce(t,e,r){return RIt?t.code===r:t.code===r&&t.errno===e}i(_Ce,"_isExpectedError");function HIt(){RCe=!0}i(HIt,"setGracefulCleanup");function zIt(t,e){return St.realpath(t&&t.tmpdir||$P.tmpdir(),e)}i(zIt,"_getTmpDir");function QCe(t){return St.realpathSync(t&&t.tmpdir||$P.tmpdir())}i(QCe,"_getTmpDirSync");process.addListener(PIt,MIt);Object.defineProperty(eu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return QCe()},"get")});eu.exports.dir=DIt;eu.exports.dirSync=kIt;eu.exports.file=_It;eu.exports.fileSync=QIt;eu.exports.tmpName=HW;eu.exports.tmpNameSync=zW;eu.exports.setGracefulCleanup=HIt});var $n=w(Bo=>{"use strict";Bo.__esModule=!0;Bo.extend=MCe;Bo.indexOf=jIt;Bo.escapeExpression=KIt;Bo.isEmpty=XIt;Bo.createFrame=ZIt;Bo.blockParams=ewt;Bo.appendContextPath=twt;var VIt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},WIt=/[&<>"'`=]/g,YIt=/[&<>"'`=]/;function JIt(t){return VIt[t]}i(JIt,"escapeChar");function MCe(t){for(var e=1;e{"use strict";zP.__esModule=!0;var JW=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function jW(t,e){var r=e&&e.loc,n=void 0,s=void 0,o=void 0,a=void 0;r&&r.start&&(n=r.start.line,o=r.start.column,r.end&&(s=r.end.line,a=r.end.column),t+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,t),l=0;l{"use strict";VP.__esModule=!0;var KW=$n();VP.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,s=r.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(KW.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var o=KW.createFrame(r.data);o.contextPath=KW.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};qCe.exports=VP.default});var HCe=w((WP,$Ce)=>{"use strict";WP.__esModule=!0;function rwt(t){return t&&t.__esModule?t:{default:t}}i(rwt,"_interopRequireDefault");var hg=$n(),nwt=Ai(),swt=rwt(nwt);function owt(t){try{var e=t.return;hg.isFunction(e)&&e.call(t)}catch{}}i(owt,"closeIterator");WP.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new swt.default("Must pass iterator to #each");var n=r.fn,s=r.inverse,o=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=hg.appendContextPath(r.data.contextPath,r.ids[0])+"."),hg.isFunction(e)&&(e=e.call(this)),r.data&&(c=hg.createFrame(r.data));function u(A,h,E,y){c&&(c.key=A,c.index=h,c.first=h===0,c.last=!!E,l&&(c.contextPath=l+A)),a=a+n(y,{data:c,blockParams:hg.blockParams([y,A],[l+A,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(hg.isArray(e))for(var d=e.length;o{"use strict";YP.__esModule=!0;function iwt(t){return t&&t.__esModule?t:{default:t}}i(iwt,"_interopRequireDefault");var awt=Ai(),cwt=iwt(awt);YP.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new cwt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};zCe.exports=YP.default});var jCe=w((JP,JCe)=>{"use strict";JP.__esModule=!0;function lwt(t){return t&&t.__esModule?t:{default:t}}i(lwt,"_interopRequireDefault");var WCe=$n(),uwt=Ai(),YCe=lwt(uwt);JP.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new YCe.default("#if requires exactly one argument");return WCe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||WCe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new YCe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};JCe.exports=JP.default});var XCe=w((jP,KCe)=>{"use strict";jP.__esModule=!0;jP.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";KP.__esModule=!0;KP.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};ZCe.exports=KP.default});var rIe=w((XP,tIe)=>{"use strict";XP.__esModule=!0;function dwt(t){return t&&t.__esModule?t:{default:t}}i(dwt,"_interopRequireDefault");var bw=$n(),pwt=Ai(),fwt=dwt(pwt);XP.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new fwt.default("#with requires exactly one argument");bw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(bw.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=bw.createFrame(r.data),s.contextPath=bw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:bw.blockParams([e],[s&&s.contextPath])})})};tIe.exports=XP.default});var XW=w(ZP=>{"use strict";ZP.__esModule=!0;ZP.registerDefaultHelpers=Nwt;ZP.moveHelperToHooks=Twt;function Kf(t){return t&&t.__esModule?t:{default:t}}i(Kf,"_interopRequireDefault");var mwt=GCe(),Awt=Kf(mwt),hwt=HCe(),gwt=Kf(hwt),ywt=VCe(),Ewt=Kf(ywt),Cwt=jCe(),Iwt=Kf(Cwt),wwt=XCe(),Swt=Kf(wwt),xwt=eIe(),bwt=Kf(xwt),Bwt=rIe(),Rwt=Kf(Bwt);function Nwt(t){Awt.default(t),gwt.default(t),Ewt.default(t),Iwt.default(t),Swt.default(t),bwt.default(t),Rwt.default(t)}i(Nwt,"registerDefaultHelpers");function Twt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(Twt,"moveHelperToHooks")});var sIe=w((ev,nIe)=>{"use strict";ev.__esModule=!0;var Pwt=$n();ev.default=function(t){t.registerDecorator("inline",function(e,r,n,s){var o=e;return r.partials||(r.partials={},o=i(function(a,c){var l=n.partials;n.partials=Pwt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};nIe.exports=ev.default});var oIe=w(ZW=>{"use strict";ZW.__esModule=!0;ZW.registerDefaultDecorators=Dwt;function vwt(t){return t&&t.__esModule?t:{default:t}}i(vwt,"_interopRequireDefault");var _wt=sIe(),Qwt=vwt(_wt);function Dwt(t){Qwt.default(t)}i(Dwt,"registerDefaultDecorators")});var eY=w((tv,iIe)=>{"use strict";tv.__esModule=!0;var kwt=$n(),gg={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=kwt.indexOf(gg.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=gg.lookupLevel(e),typeof console<"u"&&gg.lookupLevel(gg.level)<=e){var r=gg.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";yg.__esModule=!0;yg.createProtoAccessControl=Fwt;yg.resultIsAllowed=Uwt;yg.isPrototypeConstructor=qwt;yg.resetLoggedProperties=$wt;function Lwt(t){return t&&t.__esModule?t:{default:t}}i(Lwt,"_interopRequireDefault");var aIe=$n(),Owt=eY(),Mwt=Lwt(Owt),rv=Object.create(null);function Fwt(t){var e=Object.create(null);e.__proto__=!1,aIe.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,aIe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(Fwt,"createProtoAccessControl");function Uwt(t,e,r){return cIe(typeof t=="function"?e.methods:e.properties,r)}i(Uwt,"resultIsAllowed");function qwt(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(qwt,"isPrototypeConstructor");function cIe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(Gwt(e),!1)}i(cIe,"checkWhiteList");function Gwt(t){rv[t]!==!0&&(rv[t]=!0,Mwt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent. You can add a runtime option to disable the check or this warning: -See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(vIt,"logUnexpecedPropertyAccessOnce");function PIt(){Object.keys(jv).forEach(function(t){delete jv[t]})}i(PIt,"resetLoggedProperties")});var Xv=w(Tc=>{"use strict";Tc.__esModule=!0;Tc.HandlebarsEnvironment=jW;function YCe(t){return t&&t.__esModule?t:{default:t}}i(YCe,"_interopRequireDefault");var Vm=Gn(),_It=mi(),YW=YCe(_It),QIt=$W(),DIt=$Ce(),kIt=VW(),Kv=YCe(kIt),LIt=WW(),OIt="4.7.10";Tc.VERSION=OIt;var MIt=8;Tc.COMPILER_REVISION=MIt;var FIt=7;Tc.LAST_COMPATIBLE_COMPILER_REVISION=FIt;var UIt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Tc.REVISION_CHANGES=UIt;var JW="[object Object]";function jW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},QIt.registerDefaultHelpers(this),DIt.registerDefaultDecorators(this)}i(jW,"HandlebarsEnvironment");jW.prototype={constructor:jW,logger:Kv.default,log:Kv.default.log,registerHelper:i(function(e,r){if(Vm.toString.call(e)===JW){if(r)throw new YW.default("Arg not supported with multiple helpers");Vm.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Vm.toString.call(e)===JW)Vm.extend(this.partials,e);else{if(typeof r>"u")throw new YW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Vm.toString.call(e)===JW){if(r)throw new YW.default("Arg not supported with multiple decorators");Vm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){LIt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var qIt=Kv.default.log;Tc.log=qIt;Tc.createFrame=Vm.createFrame;Tc.logger=Kv.default});var jCe=w((Zv,JCe)=>{"use strict";Zv.__esModule=!0;function KW(t){this.string=t}i(KW,"SafeString");KW.prototype.toString=KW.prototype.toHTML=function(){return""+this.string};Zv.default=KW;JCe.exports=Zv.default});var KCe=w(XW=>{"use strict";XW.__esModule=!0;XW.wrapHelper=GIt;function GIt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(GIt,"wrapHelper")});var rIe=w(yd=>{"use strict";yd.__esModule=!0;yd.checkRevision=YIt;yd.template=JIt;yd.wrapProgram=eP;yd.resolvePartial=jIt;yd.invokePartial=KIt;yd.noop=eIe;function HIt(t){return t&&t.__esModule?t:{default:t}}i(HIt,"_interopRequireDefault");function $It(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i($It,"_interopRequireWildcard");var zIt=Gn(),Wm=$It(zIt),VIt=mi(),ta=HIt(VIt),tu=Xv(),XCe=$W(),WIt=KCe(),ZW=WW();function YIt(t){var e=t&&t[0]||1,r=tu.COMPILER_REVISION;if(!(e>=tu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=tu.COMPILER_REVISION))if(e{"use strict";rP.__esModule=!0;rP.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};nIe.exports=rP.default});var cIe=w((nP,aIe)=>{"use strict";nP.__esModule=!0;function rY(t){return t&&t.__esModule?t:{default:t}}i(rY,"_interopRequireDefault");function nY(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(nY,"_interopRequireWildcard");var ewt=Xv(),sIe=nY(ewt),twt=jCe(),rwt=rY(twt),nwt=mi(),swt=rY(nwt),owt=Gn(),tY=nY(owt),iwt=rIe(),oIe=nY(iwt),awt=eY(),cwt=rY(awt);function iIe(){var t=new sIe.HandlebarsEnvironment;return tY.extend(t,sIe),t.SafeString=rwt.default,t.Exception=swt.default,t.Utils=tY,t.escapeExpression=tY.escapeExpression,t.VM=oIe,t.template=function(e){return oIe.template(e,t)},t}i(iIe,"create");var Ew=iIe();Ew.create=iIe;cwt.default(Ew);Ew.default=Ew;nP.default=Ew;aIe.exports=nP.default});var sY=w((sP,uIe)=>{"use strict";sP.__esModule=!0;var lIe={helpers:{helperExpression:i(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:i(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:i(function(e){return e.parts.length===1&&!lIe.helpers.scopedId(e)&&!e.depth},"simpleId")}};sP.default=lIe;uIe.exports=sP.default});var pIe=w((oP,dIe)=>{"use strict";oP.__esModule=!0;var lwt=(function(){var t={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:i(function(s,o,a,c,l,u,d){var p=u.length-1;switch(l){case 1:return u[p-1];case 2:this.$=c.prepareProgram(u[p]);break;case 3:this.$=u[p];break;case 4:this.$=u[p];break;case 5:this.$=u[p];break;case 6:this.$=u[p];break;case 7:this.$=u[p];break;case 8:this.$=u[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[p]),strip:c.stripFlags(u[p],u[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[p],value:u[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[p-2],u[p-1],u[p],this._$);break;case 12:this.$={path:u[p-3],params:u[p-2],hash:u[p-1]};break;case 13:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!1,this._$);break;case 14:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!0,this._$);break;case 15:this.$={open:u[p-5],path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 16:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 17:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 18:this.$={strip:c.stripFlags(u[p-1],u[p-1]),program:u[p]};break;case 19:var m=c.prepareBlock(u[p-2],u[p-1],u[p],u[p],!1,this._$),f=c.prepareProgram([m],u[p-1].loc);f.chained=!0,this.$={strip:u[p-2].strip,program:f,chain:!0};break;case 20:this.$=u[p];break;case 21:this.$={path:u[p-1],strip:c.stripFlags(u[p-2],u[p])};break;case 22:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 23:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[p-3],params:u[p-2],hash:u[p-1],indent:"",strip:c.stripFlags(u[p-4],u[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[p-2],u[p-1],u[p],this._$);break;case 26:this.$={path:u[p-3],params:u[p-2],hash:u[p-1],strip:c.stripFlags(u[p-4],u[p])};break;case 27:this.$=u[p];break;case 28:this.$=u[p];break;case 29:this.$={type:"SubExpression",path:u[p-3],params:u[p-2],hash:u[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[p-2]),value:u[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[p-1]);break;case 33:this.$=u[p];break;case 34:this.$=u[p];break;case 35:this.$={type:"StringLiteral",value:u[p],original:u[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[p]),original:Number(u[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[p]==="true",original:u[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[p];break;case 41:this.$=u[p];break;case 42:this.$=c.preparePath(!0,u[p],this._$);break;case 43:this.$=c.preparePath(!1,u[p],this._$);break;case 44:u[p-2].push({part:c.id(u[p]),original:u[p],separator:u[p-1]}),this.$=u[p-2];break;case 45:this.$=[{part:c.id(u[p]),original:u[p]}];break;case 46:this.$=[];break;case 47:u[p-1].push(u[p]);break;case 48:this.$=[];break;case 49:u[p-1].push(u[p]);break;case 50:this.$=[];break;case 51:u[p-1].push(u[p]);break;case 58:this.$=[];break;case 59:u[p-1].push(u[p]);break;case 64:this.$=[];break;case 65:u[p-1].push(u[p]);break;case 70:this.$=[];break;case 71:u[p-1].push(u[p]);break;case 78:this.$=[];break;case 79:u[p-1].push(u[p]);break;case 82:this.$=[];break;case 83:u[p-1].push(u[p]);break;case 86:this.$=[];break;case 87:u[p-1].push(u[p]);break;case 90:this.$=[];break;case 91:u[p-1].push(u[p]);break;case 94:this.$=[];break;case 95:u[p-1].push(u[p]);break;case 98:this.$=[u[p]];break;case 99:u[p-1].push(u[p]);break;case 100:this.$=[u[p]];break;case 101:u[p-1].push(u[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:i(function(s,o){throw new Error(s)},"parseError"),parse:i(function(s){var o=this,a=[0],c=[null],l=[],u=this.table,d="",p=0,m=0,f=0,A=2,h=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var E=this.lexer.yylloc;l.push(E);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function I(Z){a.length=a.length-2*Z,c.length=c.length-Z,l.length=l.length-Z}i(I,"popStack");function x(){var Z;return Z=o.lexer.lex()||1,typeof Z!="number"&&(Z=o.symbols_[Z]||Z),Z}i(x,"lex");for(var b,N,P,_,G,ae,Ce={},_e,ie,De,D;;){if(P=a[a.length-1],this.defaultActions[P]?_=this.defaultActions[P]:((b===null||typeof b>"u")&&(b=x()),_=u[P]&&u[P][b]),typeof _>"u"||!_.length||!_[0]){var ze="";if(!f){D=[];for(_e in u[P])this.terminals_[_e]&&_e>2&&D.push("'"+this.terminals_[_e]+"'");this.lexer.showPosition?ze="Parse error on line "+(p+1)+`: +See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(Gwt,"logUnexpecedPropertyAccessOnce");function $wt(){Object.keys(rv).forEach(function(t){delete rv[t]})}i($wt,"resetLoggedProperties")});var sv=w(Pc=>{"use strict";Pc.__esModule=!0;Pc.HandlebarsEnvironment=sY;function lIe(t){return t&&t.__esModule?t:{default:t}}i(lIe,"_interopRequireDefault");var Xf=$n(),Hwt=Ai(),rY=lIe(Hwt),zwt=XW(),Vwt=oIe(),Wwt=eY(),nv=lIe(Wwt),Ywt=tY(),Jwt="4.7.10";Pc.VERSION=Jwt;var jwt=8;Pc.COMPILER_REVISION=jwt;var Kwt=7;Pc.LAST_COMPATIBLE_COMPILER_REVISION=Kwt;var Xwt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Pc.REVISION_CHANGES=Xwt;var nY="[object Object]";function sY(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},zwt.registerDefaultHelpers(this),Vwt.registerDefaultDecorators(this)}i(sY,"HandlebarsEnvironment");sY.prototype={constructor:sY,logger:nv.default,log:nv.default.log,registerHelper:i(function(e,r){if(Xf.toString.call(e)===nY){if(r)throw new rY.default("Arg not supported with multiple helpers");Xf.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Xf.toString.call(e)===nY)Xf.extend(this.partials,e);else{if(typeof r>"u")throw new rY.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Xf.toString.call(e)===nY){if(r)throw new rY.default("Arg not supported with multiple decorators");Xf.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Ywt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Zwt=nv.default.log;Pc.log=Zwt;Pc.createFrame=Xf.createFrame;Pc.logger=nv.default});var dIe=w((ov,uIe)=>{"use strict";ov.__esModule=!0;function oY(t){this.string=t}i(oY,"SafeString");oY.prototype.toString=oY.prototype.toHTML=function(){return""+this.string};ov.default=oY;uIe.exports=ov.default});var pIe=w(iY=>{"use strict";iY.__esModule=!0;iY.wrapHelper=eSt;function eSt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(eSt,"wrapHelper")});var gIe=w(Cd=>{"use strict";Cd.__esModule=!0;Cd.checkRevision=iSt;Cd.template=aSt;Cd.wrapProgram=iv;Cd.resolvePartial=cSt;Cd.invokePartial=lSt;Cd.noop=AIe;function tSt(t){return t&&t.__esModule?t:{default:t}}i(tSt,"_interopRequireDefault");function rSt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(rSt,"_interopRequireWildcard");var nSt=$n(),Zf=rSt(nSt),sSt=Ai(),na=tSt(sSt),ru=sv(),fIe=XW(),oSt=pIe(),aY=tY();function iSt(t){var e=t&&t[0]||1,r=ru.COMPILER_REVISION;if(!(e>=ru.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ru.COMPILER_REVISION))if(e{"use strict";cv.__esModule=!0;cv.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};yIe.exports=cv.default});var SIe=w((lv,wIe)=>{"use strict";lv.__esModule=!0;function uY(t){return t&&t.__esModule?t:{default:t}}i(uY,"_interopRequireDefault");function dY(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(dY,"_interopRequireWildcard");var pSt=sv(),EIe=dY(pSt),fSt=dIe(),mSt=uY(fSt),ASt=Ai(),hSt=uY(ASt),gSt=$n(),lY=dY(gSt),ySt=gIe(),CIe=dY(ySt),ESt=cY(),CSt=uY(ESt);function IIe(){var t=new EIe.HandlebarsEnvironment;return lY.extend(t,EIe),t.SafeString=mSt.default,t.Exception=hSt.default,t.Utils=lY,t.escapeExpression=lY.escapeExpression,t.VM=CIe,t.template=function(e){return CIe.template(e,t)},t}i(IIe,"create");var Bw=IIe();Bw.create=IIe;CSt.default(Bw);Bw.default=Bw;lv.default=Bw;wIe.exports=lv.default});var pY=w((uv,bIe)=>{"use strict";uv.__esModule=!0;var xIe={helpers:{helperExpression:i(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:i(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:i(function(e){return e.parts.length===1&&!xIe.helpers.scopedId(e)&&!e.depth},"simpleId")}};uv.default=xIe;bIe.exports=uv.default});var RIe=w((dv,BIe)=>{"use strict";dv.__esModule=!0;var ISt=(function(){var t={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:i(function(s,o,a,c,l,u,d){var p=u.length-1;switch(l){case 1:return u[p-1];case 2:this.$=c.prepareProgram(u[p]);break;case 3:this.$=u[p];break;case 4:this.$=u[p];break;case 5:this.$=u[p];break;case 6:this.$=u[p];break;case 7:this.$=u[p];break;case 8:this.$=u[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[p]),strip:c.stripFlags(u[p],u[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[p],value:u[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[p-2],u[p-1],u[p],this._$);break;case 12:this.$={path:u[p-3],params:u[p-2],hash:u[p-1]};break;case 13:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!1,this._$);break;case 14:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!0,this._$);break;case 15:this.$={open:u[p-5],path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 16:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 17:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 18:this.$={strip:c.stripFlags(u[p-1],u[p-1]),program:u[p]};break;case 19:var f=c.prepareBlock(u[p-2],u[p-1],u[p],u[p],!1,this._$),m=c.prepareProgram([f],u[p-1].loc);m.chained=!0,this.$={strip:u[p-2].strip,program:m,chain:!0};break;case 20:this.$=u[p];break;case 21:this.$={path:u[p-1],strip:c.stripFlags(u[p-2],u[p])};break;case 22:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 23:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[p-3],params:u[p-2],hash:u[p-1],indent:"",strip:c.stripFlags(u[p-4],u[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[p-2],u[p-1],u[p],this._$);break;case 26:this.$={path:u[p-3],params:u[p-2],hash:u[p-1],strip:c.stripFlags(u[p-4],u[p])};break;case 27:this.$=u[p];break;case 28:this.$=u[p];break;case 29:this.$={type:"SubExpression",path:u[p-3],params:u[p-2],hash:u[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[p-2]),value:u[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[p-1]);break;case 33:this.$=u[p];break;case 34:this.$=u[p];break;case 35:this.$={type:"StringLiteral",value:u[p],original:u[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[p]),original:Number(u[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[p]==="true",original:u[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[p];break;case 41:this.$=u[p];break;case 42:this.$=c.preparePath(!0,u[p],this._$);break;case 43:this.$=c.preparePath(!1,u[p],this._$);break;case 44:u[p-2].push({part:c.id(u[p]),original:u[p],separator:u[p-1]}),this.$=u[p-2];break;case 45:this.$=[{part:c.id(u[p]),original:u[p]}];break;case 46:this.$=[];break;case 47:u[p-1].push(u[p]);break;case 48:this.$=[];break;case 49:u[p-1].push(u[p]);break;case 50:this.$=[];break;case 51:u[p-1].push(u[p]);break;case 58:this.$=[];break;case 59:u[p-1].push(u[p]);break;case 64:this.$=[];break;case 65:u[p-1].push(u[p]);break;case 70:this.$=[];break;case 71:u[p-1].push(u[p]);break;case 78:this.$=[];break;case 79:u[p-1].push(u[p]);break;case 82:this.$=[];break;case 83:u[p-1].push(u[p]);break;case 86:this.$=[];break;case 87:u[p-1].push(u[p]);break;case 90:this.$=[];break;case 91:u[p-1].push(u[p]);break;case 94:this.$=[];break;case 95:u[p-1].push(u[p]);break;case 98:this.$=[u[p]];break;case 99:u[p-1].push(u[p]);break;case 100:this.$=[u[p]];break;case 101:u[p-1].push(u[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:i(function(s,o){throw new Error(s)},"parseError"),parse:i(function(s){var o=this,a=[0],c=[null],l=[],u=this.table,d="",p=0,f=0,m=0,A=2,h=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var E=this.lexer.yylloc;l.push(E);var y=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function I(re){a.length=a.length-2*re,c.length=c.length-re,l.length=l.length-re}i(I,"popStack");function x(){var re;return re=o.lexer.lex()||1,typeof re!="number"&&(re=o.symbols_[re]||re),re}i(x,"lex");for(var b,N,v,_,J,ve,Qe={},Fe,fe,He,D;;){if(v=a[a.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((b===null||typeof b>"u")&&(b=x()),_=u[v]&&u[v][b]),typeof _>"u"||!_.length||!_[0]){var et="";if(!m){D=[];for(Fe in u[v])this.terminals_[Fe]&&Fe>2&&D.push("'"+this.terminals_[Fe]+"'");this.lexer.showPosition?et="Parse error on line "+(p+1)+`: `+this.lexer.showPosition()+` -Expecting `+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ze="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(ze,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:E,expected:D})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(_[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[1]),b=null,N?(b=N,N=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(ie=this.productions_[_[1]][1],Ce.$=c[c.length-ie],Ce._$={first_line:l[l.length-(ie||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ie||1)].first_column,last_column:l[l.length-1].last_column},y&&(Ce._$.range=[l[l.length-(ie||1)].range[0],l[l.length-1].range[1]]),ae=this.performAction.call(Ce,d,m,p,this.yy,_[1],c,l),typeof ae<"u")return ae;ie&&(a=a.slice(0,-1*ie*2),c=c.slice(0,-1*ie),l=l.slice(0,-1*ie)),a.push(this.productions_[_[1]][0]),c.push(Ce.$),l.push(Ce._$),De=u[a[a.length-2]][a[a.length-1]],a.push(De);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` -`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;ma[0].length)&&(a=c,l=m,!this.options.flex)));m++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,m){return a.yytext=a.yytext.substring(p,a.yyleng-m+p)}i(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();oP.default=lwt;dIe.exports=oP.default});var iY=w(oY=>{"use strict";oY.__esModule=!0;var uwt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];oY.NODE_TYPES=uwt});var lP=w((cP,hIe)=>{"use strict";cP.__esModule=!0;function dwt(t){return t&&t.__esModule?t:{default:t}}i(dwt,"_interopRequireDefault");var pwt=mi(),aY=dwt(pwt),mwt=Gn(),fwt=iY();function aP(){this.parents=[]}i(aP,"Visitor");function mIe(t,e){return mwt.indexOf(fwt.NODE_TYPES,e)!==-1||!(e in aP.prototype)&&typeof t[e]=="function"}i(mIe,"isDispatchable");aP.prototype={constructor:aP,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!mIe(this,n.type))throw new aY.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new aY.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";uP.__esModule=!0;function Awt(t){return t&&t.__esModule?t:{default:t}}i(Awt,"_interopRequireDefault");var hwt=lP(),gwt=Awt(hwt);function vc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(vc,"WhitespaceControl");vc.prototype=new gwt.default;vc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,o=n.length;s{"use strict";fi.__esModule=!0;fi.SourceLocation=Cwt;fi.id=Iwt;fi.stripFlags=wwt;fi.stripComment=Swt;fi.preparePath=xwt;fi.prepareMustache=bwt;fi.prepareRawBlock=Bwt;fi.prepareBlock=Rwt;fi.prepareProgram=Nwt;fi.preparePartialBlock=Twt;function ywt(t){return t&&t.__esModule?t:{default:t}}i(ywt,"_interopRequireDefault");var Ewt=mi(),uY=ywt(Ewt);function dY(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new uY.default(t.path.original+" doesn't match "+e,r)}}i(dY,"validateClose");function Cwt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}i(Cwt,"SourceLocation");function Iwt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(Iwt,"id");function wwt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(wwt,"stripFlags");function Swt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Swt,"stripComment");function xwt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new uY.default("Invalid path: "+n,{loc:r});l===".."&&o++}else s.push(l)}return{type:"PathExpression",data:t,depth:o,parts:s,original:n,loc:r}}i(xwt,"preparePath");function bwt(t,e,r,n,s,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:s,loc:this.locInfo(o)}}i(bwt,"prepareMustache");function Bwt(t,e,r,n){dY(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}i(Bwt,"prepareRawBlock");function Rwt(t,e,r,n,s,o){n&&n.path&&dY(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new uY.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=e,e=s),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(o)}}i(Rwt,"prepareBlock");function Nwt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}i(Nwt,"prepareProgram");function Twt(t,e,r,n){return dY(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}i(Twt,"preparePartialBlock")});var wIe=w(Cw=>{"use strict";Cw.__esModule=!0;Cw.parseWithoutProcessing=IIe;Cw.parse=Owt;function vwt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(vwt,"_interopRequireWildcard");function CIe(t){return t&&t.__esModule?t:{default:t}}i(CIe,"_interopRequireDefault");var Pwt=pIe(),pY=CIe(Pwt),_wt=yIe(),Qwt=CIe(_wt),Dwt=EIe(),kwt=vwt(Dwt),Lwt=Gn();Cw.parser=pY.default;var dP={};Lwt.extend(dP,kwt);function IIe(t,e){if(t.type==="Program")return t;pY.default.yy=dP,dP.locInfo=function(n){return new dP.SourceLocation(e&&e.srcName,n)};var r=pY.default.parse(t);return r}i(IIe,"parseWithoutProcessing");function Owt(t,e){var r=IIe(t,e),n=new Qwt.default(e);return n.accept(r)}i(Owt,"parse")});var RIe=w(ww=>{"use strict";ww.__esModule=!0;ww.Compiler=AY;ww.precompile=Gwt;ww.compile=Hwt;function xIe(t){return t&&t.__esModule?t:{default:t}}i(xIe,"_interopRequireDefault");var Mwt=mi(),fg=xIe(Mwt),Cd=Gn(),Fwt=sY(),Iw=xIe(Fwt),Uwt=iY(),qwt=[].slice;function AY(){}i(AY,"Compiler");AY.prototype={compiler:AY,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new fg.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var s=e.name.original,o=e.name.type==="SubExpression";o&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,s,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:i(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:i(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:i(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:i(function(e){if(e.value!=null&&typeof e.value!="string")throw ru(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){SIe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:i(function(e,r,n){var s=e.path,o=s.parts[0],a=r!=null||n!=null;this.opcode("getContext",mY(s)),this.opcode("pushProgram",r),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:i(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:i(function(e,r,n){var s=this.setupFullMustacheParams(e,r,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",s.length,a);else{if(this.options.knownHelpersOnly)throw new fg.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",s.length,o.original,Iw.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=mY(e),n=fY(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=Iw.default.helpers.scopedId(e),a=!r&&!o&&this.blockParamIndex(s);a?this.opcode("lookupBlockParam",a,n):s?e.data?(this.options.data=!0,this.opcode("lookupData",r,n,e.strict)):this.opcode("lookupOnContext",n,e.falsy,e.strict,o):this.opcode("pushContext")},"PathExpression"),StringLiteral:i(function(e){pP(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){pP(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){pP(e),this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:i(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:i(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:i(function(e){var r=e.pairs,n=0,s=void 0;if(!Cd.isArray(r))throw ru(e,"pairs must be an array");s=r.length;for(var o=0;o=0)return[r,o]}},"blockParamIndex")};function Gwt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new fg.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),s=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(s,e)}i(Gwt,"precompile");function Hwt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new fg.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Cd.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}i(s,"compileInput");function o(a,c){return n||(n=s()),n.call(this,a,c)}return i(o,"ret"),o._setup=function(a){return n||(n=s()),n._setup(a)},o._child=function(a,c,l,u){return n||(n=s()),n._child(a,c,l,u)},o}i(Hwt,"compile");function ru(t,e){return new fg.default("Invalid AST: "+t.type+" "+e,t)}i(ru,"invalidAst");function mY(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw ru(t,"depth must be a non-negative integer");return e}i(mY,"validateDepth");function pP(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw ru(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw ru(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw ru(t,"value must be a boolean")}i(pP,"validateLiteral");function bIe(t,e,r){if(!Cd.isArray(e))throw ru(t,r+" must be an array");for(var n=0;n{var NIe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");hY.encode=function(t){if(0<=t&&t{var vIe=TIe(),gY=5,PIe=1<>1;return e?-r:r}i(Vwt,"fromVLQSigned");yY.encode=i(function(e){var r="",n,s=zwt(e);do n=s&_Ie,s>>>=gY,s>0&&(n|=QIe),r+=vIe.encode(n);while(s>0);return r},"base64VLQ_encode");yY.decode=i(function(e,r,n){var s=e.length,o=0,a=0,c,l;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=vIe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&QIe),l&=_Ie,o=o+(l<{function Wwt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}i(Wwt,"getArg");Hn.getArg=Wwt;var DIe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ywt=/^data:.+\,.+$/;function Sw(t){var e=t.match(DIe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(Sw,"urlParse");Hn.urlParse=Sw;function Ag(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}i(Ag,"urlGenerate");Hn.urlGenerate=Ag;function CY(t){var e=t,r=Sw(t);if(r){if(!r.path)return t;e=r.path}for(var n=Hn.isAbsolute(e),s=e.split(/\/+/),o,a=0,c=s.length-1;c>=0;c--)o=s[c],o==="."?s.splice(c,1):o===".."?a++:a>0&&(o===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return e=s.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Ag(r)):e}i(CY,"normalize");Hn.normalize=CY;function kIe(t,e){t===""&&(t="."),e===""&&(e=".");var r=Sw(e),n=Sw(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ag(r);if(r||e.match(Ywt))return e;if(n&&!n.host&&!n.path)return n.host=e,Ag(n);var s=e.charAt(0)==="/"?e:CY(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,Ag(n)):s}i(kIe,"join");Hn.join=kIe;Hn.isAbsolute=function(t){return t.charAt(0)==="/"||DIe.test(t)};function Jwt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}i(Jwt,"relative");Hn.relative=Jwt;var LIe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function OIe(t){return t}i(OIe,"identity");function jwt(t){return MIe(t)?"$"+t:t}i(jwt,"toSetString");Hn.toSetString=LIe?OIe:jwt;function Kwt(t){return MIe(t)?t.slice(1):t}i(Kwt,"fromSetString");Hn.fromSetString=LIe?OIe:Kwt;function MIe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}i(MIe,"isProtoString");function Xwt(t,e,r){var n=hg(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:hg(t.name,e.name)}i(Xwt,"compareByOriginalPositions");Hn.compareByOriginalPositions=Xwt;function Zwt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=hg(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:hg(t.name,e.name)}i(Zwt,"compareByGeneratedPositionsDeflated");Hn.compareByGeneratedPositionsDeflated=Zwt;function hg(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(hg,"strcmp");function eSt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=hg(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:hg(t.name,e.name)}i(eSt,"compareByGeneratedPositionsInflated");Hn.compareByGeneratedPositionsInflated=eSt;function tSt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(tSt,"parseSourceMapInput");Hn.parseSourceMapInput=tSt;function rSt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Sw(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");s>=0&&(n.path=n.path.substring(0,s+1))}e=kIe(Ag(n),e)}return CY(e)}i(rSt,"computeSourceURL");Hn.computeSourceURL=rSt});var SY=w(FIe=>{var IY=gg(),wY=Object.prototype.hasOwnProperty,Jm=typeof Map<"u";function nu(){this._array=[],this._set=Jm?new Map:Object.create(null)}i(nu,"ArraySet");nu.fromArray=i(function(e,r){for(var n=new nu,s=0,o=e.length;s=0)return r}else{var n=IY.toSetString(e);if(wY.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");nu.prototype.at=i(function(e){if(e>=0&&e{var UIe=gg();function nSt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||UIe.compareByGeneratedPositionsInflated(t,e)<=0}i(nSt,"generatedPositionAfter");function mP(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(mP,"MappingList");mP.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");mP.prototype.add=i(function(e){nSt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");mP.prototype.toArray=i(function(){return this._sorted||(this._array.sort(UIe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");qIe.MappingList=mP});var xY=w(HIe=>{var xw=EY(),kr=gg(),fP=SY().ArraySet,sSt=GIe().MappingList;function Ai(t){t||(t={}),this._file=kr.getArg(t,"file",null),this._sourceRoot=kr.getArg(t,"sourceRoot",null),this._skipValidation=kr.getArg(t,"skipValidation",!1),this._sources=new fP,this._names=new fP,this._mappings=new sSt,this._sourcesContents=null}i(Ai,"SourceMapGenerator");Ai.prototype._version=3;Ai.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new Ai({file:e.file,sourceRoot:r});return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=kr.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=kr.relative(r,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n},"SourceMapGenerator_fromSourceMap");Ai.prototype.addMapping=i(function(e){var r=kr.getArg(e,"generated"),n=kr.getArg(e,"original",null),s=kr.getArg(e,"source",null),o=kr.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,s,o),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:o})},"SourceMapGenerator_addMapping");Ai.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=kr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[kr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[kr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Ai.prototype.applySourceMap=i(function(e,r,n){var s=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var o=this._sourceRoot;o!=null&&(s=kr.relative(o,s));var a=new fP,c=new fP;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=kr.join(n,l.source)),o!=null&&(l.source=kr.relative(o,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var p=l.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=kr.join(n,l)),o!=null&&(l=kr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");Ai.prototype._validateMapping=i(function(e,r,n,s){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!s)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:s}))}},"SourceMapGenerator_validateMapping");Ai.prototype._serializeMappings=i(function(){for(var e=0,r=1,n=0,s=0,o=0,a=0,c="",l,u,d,p,m=this._mappings.toArray(),f=0,A=m.length;f0){if(!kr.compareByGeneratedPositionsInflated(u,m[f-1]))continue;l+=","}l+=xw.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=xw.encode(p-a),a=p,l+=xw.encode(u.originalLine-1-s),s=u.originalLine-1,l+=xw.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=xw.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");Ai.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=kr.relative(r,n));var s=kr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");Ai.prototype.toJSON=i(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");Ai.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");HIe.SourceMapGenerator=Ai});var $Ie=w(jm=>{jm.GREATEST_LOWER_BOUND=1;jm.LEAST_UPPER_BOUND=2;function bY(t,e,r,n,s,o){var a=Math.floor((e-t)/2)+t,c=s(r,n[a],!0);return c===0?a:c>0?e-a>1?bY(a,e,r,n,s,o):o==jm.LEAST_UPPER_BOUND?e1?bY(t,a,r,n,s,o):o==jm.LEAST_UPPER_BOUND?a:t<0?-1:t}i(bY,"recursiveSearch");jm.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=bY(-1,r.length,e,r,n,s||jm.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var VIe=w(zIe=>{function BY(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(BY,"swap");function oSt(t,e){return Math.round(t+Math.random()*(e-t))}i(oSt,"randomIntInRange");function RY(t,e,r,n){if(r{var K=gg(),NY=$Ie(),yg=SY().ArraySet,iSt=EY(),bw=VIe().quickSort;function Ot(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new ra(r,e):new bn(r,e)}i(Ot,"SourceMapConsumer");Ot.fromSourceMap=function(t,e){return bn.fromSourceMap(t,e)};Ot.prototype._version=3;Ot.prototype.__generatedMappings=null;Object.defineProperty(Ot.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ot.prototype.__originalMappings=null;Object.defineProperty(Ot.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ot.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ot.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ot.GENERATED_ORDER=1;Ot.ORIGINAL_ORDER=2;Ot.GREATEST_LOWER_BOUND=1;Ot.LEAST_UPPER_BOUND=2;Ot.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Ot.GENERATED_ORDER,a;switch(o){case Ot.GENERATED_ORDER:a=this._generatedMappings;break;case Ot.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=K.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,s)},"SourceMapConsumer_eachMapping");Ot.prototype.allGeneratedPositionsFor=i(function(e){var r=K.getArg(e,"line"),n={source:K.getArg(e,"source"),originalLine:r,originalColumn:K.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,NY.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},"SourceMapConsumer_allGeneratedPositionsFor");AP.SourceMapConsumer=Ot;function bn(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sources"),o=K.getArg(r,"names",[]),a=K.getArg(r,"sourceRoot",null),c=K.getArg(r,"sourcesContent",null),l=K.getArg(r,"mappings"),u=K.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=K.normalize(a)),s=s.map(String).map(K.normalize).map(function(d){return a&&K.isAbsolute(a)&&K.isAbsolute(d)?K.relative(a,d):d}),this._names=yg.fromArray(o.map(String),!0),this._sources=yg.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(d){return K.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}i(bn,"BasicSourceMapConsumer");bn.prototype=Object.create(Ot.prototype);bn.prototype.consumer=Ot;bn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=K.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(h.source=c+y[1],c+=y[1],h.originalLine=o+y[2],o=h.originalLine,h.originalLine+=1,h.originalColumn=a+y[3],a=h.originalColumn,y.length>4&&(h.name=l+y[4],l+=y[4])),A.push(h),typeof h.originalLine=="number"&&f.push(h)}bw(A,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,bw(f,K.compareByOriginalPositions),this.__originalMappings=f},"SourceMapConsumer_parseMappings");bn.prototype._findMapping=i(function(e,r,n,s,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return NY.search(e,r,o,a)},"SourceMapConsumer_findMapping");bn.prototype.computeColumnSpans=i(function(){for(var e=0;e=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var o=K.getArg(s,"source",null);o!==null&&(o=this._sources.at(o),o=K.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=K.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:K.getArg(s,"originalLine",null),column:K.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");bn.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bn.prototype.sourceContentFor=i(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=K.relative(this.sourceRoot,s));var o;if(this.sourceRoot!=null&&(o=K.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bn.prototype.generatedPositionFor=i(function(e){var r=K.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:K.getArg(e,"line"),originalColumn:K.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,K.getArg(e,"bias",Ot.GREATEST_LOWER_BOUND));if(s>=0){var o=this._originalMappings[s];if(o.source===n.source)return{line:K.getArg(o,"generatedLine",null),column:K.getArg(o,"generatedColumn",null),lastColumn:K.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");AP.BasicSourceMapConsumer=bn;function ra(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new yg,this._names=new yg;var o={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=K.getArg(a,"offset"),l=K.getArg(c,"line"),u=K.getArg(c,"column");if(l{var aSt=xY().SourceMapGenerator,hP=gg(),cSt=/(\r?\n)/,lSt=10,Eg="$$$isSourceNode$$$";function Ro(t,e,r,n,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=s??null,this[Eg]=!0,n!=null&&this.add(n)}i(Ro,"SourceNode");Ro.fromStringWithSourceMap=i(function(e,r,n){var s=new Ro,o=e.split(cSt),a=0,c=i(function(){var m=A(),f=A()||"";return m+f;function A(){return a=0;r--)this.prepend(e[r]);else if(e[Eg]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_prepend");Ro.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{gP.SourceMapGenerator=xY().SourceMapGenerator;gP.SourceMapConsumer=YIe().SourceMapConsumer;gP.SourceNode=jIe().SourceNode});var twe=w(yP=>{"use strict";yP.__esModule=!0;yP.safeJsonLiteral=ZIe;var vY=Gn(),uSt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,dSt=/<(?=!--|\/?script)/gi;function pSt(t){return t.replace(dSt,"\\u003C")}i(pSt,"escapeScriptDelimiters");function mSt(t){return"\\u"+t.charCodeAt(0).toString(16)}i(mSt,"escapeSurrogate");function ZIe(t){return pSt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,mSt))}i(ZIe,"safeJsonLiteral");var Km=void 0;try{(typeof define!="function"||!define.amd)&&(XIe=KIe(),Km=XIe.SourceNode)}catch{}var XIe;Km||(Km=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),Km.prototype={add:i(function(e){vY.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){vY.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:i(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:i(function(){return this.src},"toString")});function TY(t,e,r){if(vY.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";EP.__esModule=!0;function swe(t){return t&&t.__esModule?t:{default:t}}i(swe,"_interopRequireDefault");var rwe=Xv(),fSt=mi(),PY=swe(fSt),ASt=Gn(),owe=twe(),nwe=swe(owe);function Cg(t){this.value=t}i(Cg,"Literal");function Ig(){}i(Ig,"JavaScriptCompiler");Ig.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=rwe.COMPILER_REVISION,r=rwe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return ASt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+b);switch(_[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,E=this.lexer.yylloc,m>0&&m--);break;case 2:if(fe=this.productions_[_[1]][1],Qe.$=c[c.length-fe],Qe._$={first_line:l[l.length-(fe||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(fe||1)].first_column,last_column:l[l.length-1].last_column},y&&(Qe._$.range=[l[l.length-(fe||1)].range[0],l[l.length-1].range[1]]),ve=this.performAction.call(Qe,d,f,p,this.yy,_[1],c,l),typeof ve<"u")return ve;fe&&(a=a.slice(0,-1*fe*2),c=c.slice(0,-1*fe),l=l.slice(0,-1*fe)),a.push(this.productions_[_[1]][0]),c.push(Qe.$),l.push(Qe._$),He=u[a[a.length-2]][a[a.length-1]],a.push(He);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){var a=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),f=0;fa[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,f){return a.yytext=a.yytext.substring(p,a.yyleng-f+p)}i(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();dv.default=ISt;BIe.exports=dv.default});var mY=w(fY=>{"use strict";fY.__esModule=!0;var wSt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];fY.NODE_TYPES=wSt});var Av=w((mv,vIe)=>{"use strict";mv.__esModule=!0;function SSt(t){return t&&t.__esModule?t:{default:t}}i(SSt,"_interopRequireDefault");var xSt=Ai(),AY=SSt(xSt),bSt=$n(),BSt=mY();function fv(){this.parents=[]}i(fv,"Visitor");function NIe(t,e){return bSt.indexOf(BSt.NODE_TYPES,e)!==-1||!(e in fv.prototype)&&typeof t[e]=="function"}i(NIe,"isDispatchable");fv.prototype={constructor:fv,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!NIe(this,n.type))throw new AY.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new AY.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";hv.__esModule=!0;function RSt(t){return t&&t.__esModule?t:{default:t}}i(RSt,"_interopRequireDefault");var NSt=Av(),TSt=RSt(NSt);function vc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(vc,"WhitespaceControl");vc.prototype=new TSt.default;vc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,o=n.length;s{"use strict";hi.__esModule=!0;hi.SourceLocation=_St;hi.id=QSt;hi.stripFlags=DSt;hi.stripComment=kSt;hi.preparePath=LSt;hi.prepareMustache=OSt;hi.prepareRawBlock=MSt;hi.prepareBlock=FSt;hi.prepareProgram=USt;hi.preparePartialBlock=qSt;function PSt(t){return t&&t.__esModule?t:{default:t}}i(PSt,"_interopRequireDefault");var vSt=Ai(),yY=PSt(vSt);function EY(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new yY.default(t.path.original+" doesn't match "+e,r)}}i(EY,"validateClose");function _St(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}i(_St,"SourceLocation");function QSt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(QSt,"id");function DSt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(DSt,"stripFlags");function kSt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(kSt,"stripComment");function LSt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new yY.default("Invalid path: "+n,{loc:r});l===".."&&o++}else s.push(l)}return{type:"PathExpression",data:t,depth:o,parts:s,original:n,loc:r}}i(LSt,"preparePath");function OSt(t,e,r,n,s,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:s,loc:this.locInfo(o)}}i(OSt,"prepareMustache");function MSt(t,e,r,n){EY(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}i(MSt,"prepareRawBlock");function FSt(t,e,r,n,s,o){n&&n.path&&EY(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new yY.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=e,e=s),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(o)}}i(FSt,"prepareBlock");function USt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}i(USt,"prepareProgram");function qSt(t,e,r,n){return EY(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}i(qSt,"preparePartialBlock")});var OIe=w(Rw=>{"use strict";Rw.__esModule=!0;Rw.parseWithoutProcessing=LIe;Rw.parse=JSt;function GSt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(GSt,"_interopRequireWildcard");function kIe(t){return t&&t.__esModule?t:{default:t}}i(kIe,"_interopRequireDefault");var $St=RIe(),CY=kIe($St),HSt=QIe(),zSt=kIe(HSt),VSt=DIe(),WSt=GSt(VSt),YSt=$n();Rw.parser=CY.default;var gv={};YSt.extend(gv,WSt);function LIe(t,e){if(t.type==="Program")return t;CY.default.yy=gv,gv.locInfo=function(n){return new gv.SourceLocation(e&&e.srcName,n)};var r=CY.default.parse(t);return r}i(LIe,"parseWithoutProcessing");function JSt(t,e){var r=LIe(t,e),n=new zSt.default(e);return n.accept(r)}i(JSt,"parse")});var GIe=w(Tw=>{"use strict";Tw.__esModule=!0;Tw.Compiler=SY;Tw.precompile=ext;Tw.compile=txt;function FIe(t){return t&&t.__esModule?t:{default:t}}i(FIe,"_interopRequireDefault");var jSt=Ai(),Eg=FIe(jSt),wd=$n(),KSt=pY(),Nw=FIe(KSt),XSt=mY(),ZSt=[].slice;function SY(){}i(SY,"Compiler");SY.prototype={compiler:SY,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new Eg.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var s=e.name.original,o=e.name.type==="SubExpression";o&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,s,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:i(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:i(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:i(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:i(function(e){if(e.value!=null&&typeof e.value!="string")throw nu(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){MIe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:i(function(e,r,n){var s=e.path,o=s.parts[0],a=r!=null||n!=null;this.opcode("getContext",IY(s)),this.opcode("pushProgram",r),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:i(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:i(function(e,r,n){var s=this.setupFullMustacheParams(e,r,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",s.length,a);else{if(this.options.knownHelpersOnly)throw new Eg.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",s.length,o.original,Nw.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=IY(e),n=wY(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=Nw.default.helpers.scopedId(e),a=!r&&!o&&this.blockParamIndex(s);a?this.opcode("lookupBlockParam",a,n):s?e.data?(this.options.data=!0,this.opcode("lookupData",r,n,e.strict)):this.opcode("lookupOnContext",n,e.falsy,e.strict,o):this.opcode("pushContext")},"PathExpression"),StringLiteral:i(function(e){yv(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){yv(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){yv(e),this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:i(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:i(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:i(function(e){var r=e.pairs,n=0,s=void 0;if(!wd.isArray(r))throw nu(e,"pairs must be an array");s=r.length;for(var o=0;o=0)return[r,o]}},"blockParamIndex")};function ext(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new Eg.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),s=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(s,e)}i(ext,"precompile");function txt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new Eg.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=wd.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}i(s,"compileInput");function o(a,c){return n||(n=s()),n.call(this,a,c)}return i(o,"ret"),o._setup=function(a){return n||(n=s()),n._setup(a)},o._child=function(a,c,l,u){return n||(n=s()),n._child(a,c,l,u)},o}i(txt,"compile");function nu(t,e){return new Eg.default("Invalid AST: "+t.type+" "+e,t)}i(nu,"invalidAst");function IY(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw nu(t,"depth must be a non-negative integer");return e}i(IY,"validateDepth");function yv(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw nu(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw nu(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw nu(t,"value must be a boolean")}i(yv,"validateLiteral");function UIe(t,e,r){if(!wd.isArray(e))throw nu(t,r+" must be an array");for(var n=0;n{var $Ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");xY.encode=function(t){if(0<=t&&t<$Ie.length)return $Ie[t];throw new TypeError("Must be between 0 and 63: "+t)};xY.decode=function(t){var e=65,r=90,n=97,s=122,o=48,a=57,c=43,l=47,u=26,d=52;return e<=t&&t<=r?t-e:n<=t&&t<=s?t-n+u:o<=t&&t<=a?t-o+d:t==c?62:t==l?63:-1}});var RY=w(BY=>{var zIe=HIe(),bY=5,VIe=1<>1;return e?-r:r}i(sxt,"fromVLQSigned");BY.encode=i(function(e){var r="",n,s=nxt(e);do n=s&WIe,s>>>=bY,s>0&&(n|=YIe),r+=zIe.encode(n);while(s>0);return r},"base64VLQ_encode");BY.decode=i(function(e,r,n){var s=e.length,o=0,a=0,c,l;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=zIe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&YIe),l&=WIe,o=o+(l<{function oxt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}i(oxt,"getArg");Hn.getArg=oxt;var JIe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ixt=/^data:.+\,.+$/;function Pw(t){var e=t.match(JIe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(Pw,"urlParse");Hn.urlParse=Pw;function Cg(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}i(Cg,"urlGenerate");Hn.urlGenerate=Cg;function NY(t){var e=t,r=Pw(t);if(r){if(!r.path)return t;e=r.path}for(var n=Hn.isAbsolute(e),s=e.split(/\/+/),o,a=0,c=s.length-1;c>=0;c--)o=s[c],o==="."?s.splice(c,1):o===".."?a++:a>0&&(o===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return e=s.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Cg(r)):e}i(NY,"normalize");Hn.normalize=NY;function jIe(t,e){t===""&&(t="."),e===""&&(e=".");var r=Pw(e),n=Pw(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Cg(r);if(r||e.match(ixt))return e;if(n&&!n.host&&!n.path)return n.host=e,Cg(n);var s=e.charAt(0)==="/"?e:NY(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,Cg(n)):s}i(jIe,"join");Hn.join=jIe;Hn.isAbsolute=function(t){return t.charAt(0)==="/"||JIe.test(t)};function axt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}i(axt,"relative");Hn.relative=axt;var KIe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function XIe(t){return t}i(XIe,"identity");function cxt(t){return ZIe(t)?"$"+t:t}i(cxt,"toSetString");Hn.toSetString=KIe?XIe:cxt;function lxt(t){return ZIe(t)?t.slice(1):t}i(lxt,"fromSetString");Hn.fromSetString=KIe?XIe:lxt;function ZIe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}i(ZIe,"isProtoString");function uxt(t,e,r){var n=Ig(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ig(t.name,e.name)}i(uxt,"compareByOriginalPositions");Hn.compareByOriginalPositions=uxt;function dxt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ig(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ig(t.name,e.name)}i(dxt,"compareByGeneratedPositionsDeflated");Hn.compareByGeneratedPositionsDeflated=dxt;function Ig(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(Ig,"strcmp");function pxt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ig(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ig(t.name,e.name)}i(pxt,"compareByGeneratedPositionsInflated");Hn.compareByGeneratedPositionsInflated=pxt;function fxt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(fxt,"parseSourceMapInput");Hn.parseSourceMapInput=fxt;function mxt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Pw(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");s>=0&&(n.path=n.path.substring(0,s+1))}e=jIe(Cg(n),e)}return NY(e)}i(mxt,"computeSourceURL");Hn.computeSourceURL=mxt});var vY=w(ewe=>{var TY=wg(),PY=Object.prototype.hasOwnProperty,tm=typeof Map<"u";function su(){this._array=[],this._set=tm?new Map:Object.create(null)}i(su,"ArraySet");su.fromArray=i(function(e,r){for(var n=new su,s=0,o=e.length;s=0)return r}else{var n=TY.toSetString(e);if(PY.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");su.prototype.at=i(function(e){if(e>=0&&e{var twe=wg();function Axt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||twe.compareByGeneratedPositionsInflated(t,e)<=0}i(Axt,"generatedPositionAfter");function Ev(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(Ev,"MappingList");Ev.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");Ev.prototype.add=i(function(e){Axt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");Ev.prototype.toArray=i(function(){return this._sorted||(this._array.sort(twe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");rwe.MappingList=Ev});var _Y=w(swe=>{var vw=RY(),Qr=wg(),Cv=vY().ArraySet,hxt=nwe().MappingList;function gi(t){t||(t={}),this._file=Qr.getArg(t,"file",null),this._sourceRoot=Qr.getArg(t,"sourceRoot",null),this._skipValidation=Qr.getArg(t,"skipValidation",!1),this._sources=new Cv,this._names=new Cv,this._mappings=new hxt,this._sourcesContents=null}i(gi,"SourceMapGenerator");gi.prototype._version=3;gi.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new gi({file:e.file,sourceRoot:r});return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=Qr.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=Qr.relative(r,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n},"SourceMapGenerator_fromSourceMap");gi.prototype.addMapping=i(function(e){var r=Qr.getArg(e,"generated"),n=Qr.getArg(e,"original",null),s=Qr.getArg(e,"source",null),o=Qr.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,s,o),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:o})},"SourceMapGenerator_addMapping");gi.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Qr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");gi.prototype.applySourceMap=i(function(e,r,n){var s=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var o=this._sourceRoot;o!=null&&(s=Qr.relative(o,s));var a=new Cv,c=new Cv;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Qr.join(n,l.source)),o!=null&&(l.source=Qr.relative(o,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var p=l.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=Qr.join(n,l)),o!=null&&(l=Qr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");gi.prototype._validateMapping=i(function(e,r,n,s){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!s)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:s}))}},"SourceMapGenerator_validateMapping");gi.prototype._serializeMappings=i(function(){for(var e=0,r=1,n=0,s=0,o=0,a=0,c="",l,u,d,p,f=this._mappings.toArray(),m=0,A=f.length;m0){if(!Qr.compareByGeneratedPositionsInflated(u,f[m-1]))continue;l+=","}l+=vw.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=vw.encode(p-a),a=p,l+=vw.encode(u.originalLine-1-s),s=u.originalLine-1,l+=vw.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=vw.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");gi.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qr.relative(r,n));var s=Qr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");gi.prototype.toJSON=i(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");gi.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");swe.SourceMapGenerator=gi});var owe=w(rm=>{rm.GREATEST_LOWER_BOUND=1;rm.LEAST_UPPER_BOUND=2;function QY(t,e,r,n,s,o){var a=Math.floor((e-t)/2)+t,c=s(r,n[a],!0);return c===0?a:c>0?e-a>1?QY(a,e,r,n,s,o):o==rm.LEAST_UPPER_BOUND?e1?QY(t,a,r,n,s,o):o==rm.LEAST_UPPER_BOUND?a:t<0?-1:t}i(QY,"recursiveSearch");rm.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=QY(-1,r.length,e,r,n,s||rm.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var awe=w(iwe=>{function DY(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(DY,"swap");function gxt(t,e){return Math.round(t+Math.random()*(e-t))}i(gxt,"randomIntInRange");function kY(t,e,r,n){if(r{var K=wg(),LY=owe(),Sg=vY().ArraySet,yxt=RY(),_w=awe().quickSort;function Ot(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new sa(r,e):new bn(r,e)}i(Ot,"SourceMapConsumer");Ot.fromSourceMap=function(t,e){return bn.fromSourceMap(t,e)};Ot.prototype._version=3;Ot.prototype.__generatedMappings=null;Object.defineProperty(Ot.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ot.prototype.__originalMappings=null;Object.defineProperty(Ot.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ot.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ot.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ot.GENERATED_ORDER=1;Ot.ORIGINAL_ORDER=2;Ot.GREATEST_LOWER_BOUND=1;Ot.LEAST_UPPER_BOUND=2;Ot.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Ot.GENERATED_ORDER,a;switch(o){case Ot.GENERATED_ORDER:a=this._generatedMappings;break;case Ot.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=K.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,s)},"SourceMapConsumer_eachMapping");Ot.prototype.allGeneratedPositionsFor=i(function(e){var r=K.getArg(e,"line"),n={source:K.getArg(e,"source"),originalLine:r,originalColumn:K.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,LY.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},"SourceMapConsumer_allGeneratedPositionsFor");Iv.SourceMapConsumer=Ot;function bn(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sources"),o=K.getArg(r,"names",[]),a=K.getArg(r,"sourceRoot",null),c=K.getArg(r,"sourcesContent",null),l=K.getArg(r,"mappings"),u=K.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=K.normalize(a)),s=s.map(String).map(K.normalize).map(function(d){return a&&K.isAbsolute(a)&&K.isAbsolute(d)?K.relative(a,d):d}),this._names=Sg.fromArray(o.map(String),!0),this._sources=Sg.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(d){return K.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}i(bn,"BasicSourceMapConsumer");bn.prototype=Object.create(Ot.prototype);bn.prototype.consumer=Ot;bn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=K.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r1&&(h.source=c+y[1],c+=y[1],h.originalLine=o+y[2],o=h.originalLine,h.originalLine+=1,h.originalColumn=a+y[3],a=h.originalColumn,y.length>4&&(h.name=l+y[4],l+=y[4])),A.push(h),typeof h.originalLine=="number"&&m.push(h)}_w(A,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,_w(m,K.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");bn.prototype._findMapping=i(function(e,r,n,s,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return LY.search(e,r,o,a)},"SourceMapConsumer_findMapping");bn.prototype.computeColumnSpans=i(function(){for(var e=0;e=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var o=K.getArg(s,"source",null);o!==null&&(o=this._sources.at(o),o=K.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=K.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:K.getArg(s,"originalLine",null),column:K.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");bn.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");bn.prototype.sourceContentFor=i(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=K.relative(this.sourceRoot,s));var o;if(this.sourceRoot!=null&&(o=K.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");bn.prototype.generatedPositionFor=i(function(e){var r=K.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:K.getArg(e,"line"),originalColumn:K.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,K.getArg(e,"bias",Ot.GREATEST_LOWER_BOUND));if(s>=0){var o=this._originalMappings[s];if(o.source===n.source)return{line:K.getArg(o,"generatedLine",null),column:K.getArg(o,"generatedColumn",null),lastColumn:K.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");Iv.BasicSourceMapConsumer=bn;function sa(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Sg,this._names=new Sg;var o={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=K.getArg(a,"offset"),l=K.getArg(c,"line"),u=K.getArg(c,"column");if(l{var Ext=_Y().SourceMapGenerator,wv=wg(),Cxt=/(\r?\n)/,Ixt=10,xg="$$$isSourceNode$$$";function Ro(t,e,r,n,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=s??null,this[xg]=!0,n!=null&&this.add(n)}i(Ro,"SourceNode");Ro.fromStringWithSourceMap=i(function(e,r,n){var s=new Ro,o=e.split(Cxt),a=0,c=i(function(){var f=A(),m=A()||"";return f+m;function A(){return a=0;r--)this.prepend(e[r]);else if(e[xg]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_prepend");Ro.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{Sv.SourceMapGenerator=_Y().SourceMapGenerator;Sv.SourceMapConsumer=lwe().SourceMapConsumer;Sv.SourceNode=dwe().SourceNode});var hwe=w(xv=>{"use strict";xv.__esModule=!0;xv.safeJsonLiteral=mwe;var MY=$n(),wxt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,Sxt=/<(?=!--|\/?script)/gi;function xxt(t){return t.replace(Sxt,"\\u003C")}i(xxt,"escapeScriptDelimiters");function bxt(t){return"\\u"+t.charCodeAt(0).toString(16)}i(bxt,"escapeSurrogate");function mwe(t){return xxt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,bxt))}i(mwe,"safeJsonLiteral");var nm=void 0;try{(typeof define!="function"||!define.amd)&&(fwe=pwe(),nm=fwe.SourceNode)}catch{}var fwe;nm||(nm=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),nm.prototype={add:i(function(e){MY.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){MY.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:i(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:i(function(){return this.src},"toString")});function OY(t,e,r){if(MY.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";bv.__esModule=!0;function Ewe(t){return t&&t.__esModule?t:{default:t}}i(Ewe,"_interopRequireDefault");var gwe=sv(),Bxt=Ai(),FY=Ewe(Bxt),Rxt=$n(),Cwe=hwe(),ywe=Ewe(Cwe);function bg(t){this.value=t}i(bg,"Literal");function Bg(){}i(Bg,"JavaScriptCompiler");Bg.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=gwe.COMPILER_REVISION,r=gwe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Rxt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) { +`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var p={compiler:this.compilerInfo(),main:d};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var f=this.context,m=f.programs,A=f.decorators;for(l=0,u=m.length;l0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) { `,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(o?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`; `)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return` lookupProperty = container.lookupProperty || function(parent, propertyName) { @@ -84,57 +83,57 @@ Expecting `+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ze="Parse error o } return undefined } - `.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,s,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(hSt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var m=a.nameLookup(p,r[d],e);return s?[" && ",m]:[" != null ? ",m," : ",p]})},"_loop"),u=n;uthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:i(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:i(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";CP.__esModule=!0;function Bw(t){return t&&t.__esModule?t:{default:t}}i(Bw,"_interopRequireDefault");var gSt=cIe(),ySt=Bw(gSt),ESt=sY(),CSt=Bw(ESt),_Y=wIe(),QY=RIe(),ISt=cwe(),wSt=Bw(ISt),SSt=lP(),xSt=Bw(SSt),bSt=eY(),BSt=Bw(bSt),RSt=ySt.default.create;function lwe(){var t=RSt();return t.compile=function(e,r){return QY.compile(e,r,t)},t.precompile=function(e,r){return QY.precompile(e,r,t)},t.AST=CSt.default,t.Compiler=QY.Compiler,t.JavaScriptCompiler=wSt.default,t.Parser=_Y.parser,t.parse=_Y.parse,t.parseWithoutProcessing=_Y.parseWithoutProcessing,t}i(lwe,"create");var wg=lwe();wg.create=lwe;BSt.default(wg);wg.Visitor=xSt.default;wg.default=wg;CP.default=wg;uwe.exports=CP.default});var pwe=w(IP=>{"use strict";IP.__esModule=!0;IP.print=PSt;IP.PrintVisitor=pr;function NSt(t){return t&&t.__esModule?t:{default:t}}i(NSt,"_interopRequireDefault");var TSt=lP(),vSt=NSt(TSt);function PSt(t){return new pr().accept(t)}i(PSt,"print");function pr(){this.padding=0}i(pr,"PrintVisitor");pr.prototype=new vSt.default;pr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};pr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};pr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};pr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};pr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});RP.getProxyUrl=kSt;RP.checkBypass=Rwe;function kSt(t){let e=t.protocol==="https:";if(Rwe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new BP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new BP(`http://${r}`)}else return}i(kSt,"getProxyUrl");function Rwe(t){if(!t.hostname)return!1;let e=t.hostname;if(LSt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(Rwe,"checkBypass");function LSt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(LSt,"isLoopbackAddress");var BP=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var vwe=w(Wt=>{"use strict";var OSt=Wt&&Wt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),MSt=Wt&&Wt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PP=Wt&&Wt.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;sRr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};Wt.HttpClientResponse=vP;function VSt(t){return new URL(t).protocol==="https:"}i(VSt,"isHttps");var UY=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Rr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Rr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Rr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Rr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Rr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Rr(this,arguments,void 0,function*(r,n={}){n[fs.Accept]=this._getExistingOrDefaultHeader(n,fs.Accept,su.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[fs.Accept]=this._getExistingOrDefaultHeader(o,fs.Accept,su.ApplicationJson),o[fs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,su.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[fs.Accept]=this._getExistingOrDefaultHeader(o,fs.Accept,su.ApplicationJson),o[fs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,su.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[fs.Accept]=this._getExistingOrDefaultHeader(o,fs.Accept,su.ApplicationJson),o[fs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,su.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Rr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&HSt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===hi.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&qSt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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.");if(yield u.readBody(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!GSt.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new vP(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=FY.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?Twe:MY;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},vw(this.requestOptions.headers),vw(e||{})):vw(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=vw(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=vw(this.requestOptions.headers)[fs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[fs.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=FY.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||MY.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?NP.httpsOverHttps:NP.httpsOverHttp:l=u?NP.httpOverHttps:NP.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new Twe.Agent(c):new MY.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new FSt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Rr(this,void 0,void 0,function*(){e=Math.min($St,e);let r=zSt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Rr(this,void 0,void 0,function*(){return new Promise((n,s)=>Rr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===hi.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new TP(d,o);p.result=a.result,s(p)}else n(a)}))})}};Wt.HttpClient=UY;var vw=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var Xwe=w((MSr,_w)=>{"use strict";var kP=i(function(){},"NullObject");kP.prototype=Object.create(null);var QP=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,DP=/\\([\v\u0020-\u00ff])/gu,Jwe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Xm={type:"",parameters:new kP};Object.freeze(Xm.parameters);Object.freeze(Xm);function jwe(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Jwe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new kP};if(e===-1)return n;let s,o,a;for(QP.lastIndex=e;o=QP.exec(t);){if(o.index!==e)throw new TypeError("invalid parameter format");e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),DP.test(a)&&(a=a.replace(DP,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(jwe,"parse");function Kwe(t){if(typeof t!="string")return Xm;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(Jwe.test(r)===!1)return Xm;let n={type:r.toLowerCase(),parameters:new kP};if(e===-1)return n;let s,o,a;for(QP.lastIndex=e;o=QP.exec(t);){if(o.index!==e)return Xm;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),DP.test(a)&&(a=a.replace(DP,"$1"))),n.parameters[s]=a}return e!==t.length?Xm:n}i(Kwe,"safeParse");_w.exports.default={parse:jwe,safeParse:Kwe};_w.exports.parse=jwe;_w.exports.safeParse=Kwe;_w.exports.defaultContentType=Xm});var Dw,Pc,RSe=g(()=>{Dw={warningEmitted:!1},Pc=i(t=>{if(t&&!Dw.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){Dw.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;ethis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:i(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:i(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r{"use strict";Bv.__esModule=!0;function Qw(t){return t&&t.__esModule?t:{default:t}}i(Qw,"_interopRequireDefault");var Txt=SIe(),Pxt=Qw(Txt),vxt=pY(),_xt=Qw(vxt),UY=OIe(),qY=GIe(),Qxt=Swe(),Dxt=Qw(Qxt),kxt=Av(),Lxt=Qw(kxt),Oxt=cY(),Mxt=Qw(Oxt),Fxt=Pxt.default.create;function xwe(){var t=Fxt();return t.compile=function(e,r){return qY.compile(e,r,t)},t.precompile=function(e,r){return qY.precompile(e,r,t)},t.AST=_xt.default,t.Compiler=qY.Compiler,t.JavaScriptCompiler=Dxt.default,t.Parser=UY.parser,t.parse=UY.parse,t.parseWithoutProcessing=UY.parseWithoutProcessing,t}i(xwe,"create");var Rg=xwe();Rg.create=xwe;Mxt.default(Rg);Rg.Visitor=Lxt.default;Rg.default=Rg;Bv.default=Rg;bwe.exports=Bv.default});var Rwe=w(Rv=>{"use strict";Rv.__esModule=!0;Rv.print=$xt;Rv.PrintVisitor=pr;function Uxt(t){return t&&t.__esModule?t:{default:t}}i(Uxt,"_interopRequireDefault");var qxt=Av(),Gxt=Uxt(qxt);function $xt(t){return new pr().accept(t)}i($xt,"print");function pr(){this.padding=0}i(pr,"PrintVisitor");pr.prototype=new Gxt.default;pr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};pr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};pr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};pr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};pr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});Qv.getProxyUrl=Wxt;Qv.checkBypass=Hwe;function Wxt(t){let e=t.protocol==="https:";if(Hwe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new _v(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _v(`http://${r}`)}else return}i(Wxt,"getProxyUrl");function Hwe(t){if(!t.hostname)return!1;let e=t.hostname;if(Yxt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(Hwe,"checkBypass");function Yxt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Yxt,"isLoopbackAddress");var _v=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Wwe=w(Wt=>{"use strict";var Jxt=Wt&&Wt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jxt=Wt&&Wt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ov=Wt&&Wt.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;sRr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};Wt.HttpClientResponse=Lv;function sbt(t){return new URL(t).protocol==="https:"}i(sbt,"isHttps");var YY=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Rr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Rr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Rr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Rr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Rr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Rr(this,arguments,void 0,function*(r,n={}){n[As.Accept]=this._getExistingOrDefaultHeader(n,As.Accept,ou.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,ou.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ou.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,ou.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ou.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,ou.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ou.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Rr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&tbt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===yi.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Zxt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.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.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!ebt.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new Lv(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=WY.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?Vwe:VY;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Ow(this.requestOptions.headers),Ow(e||{})):Ow(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ow(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=Ow(this.requestOptions.headers)[As.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[As.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=WY.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||VY.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?Dv.httpsOverHttps:Dv.httpsOverHttp:l=u?Dv.httpOverHttps:Dv.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new Vwe.Agent(c):new VY.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new Kxt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Rr(this,void 0,void 0,function*(){e=Math.min(rbt,e);let r=nbt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Rr(this,void 0,void 0,function*(){return new Promise((n,s)=>Rr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===yi.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new kv(d,o);p.result=a.result,s(p)}else n(a)}))})}};Wt.HttpClient=YY;var Ow=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var ASe=w((Rbr,Fw)=>{"use strict";var qv=i(function(){},"NullObject");qv.prototype=Object.create(null);var Fv=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,Uv=/\\([\v\u0020-\u00ff])/gu,pSe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,sm={type:"",parameters:new qv};Object.freeze(sm.parameters);Object.freeze(sm);function fSe(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(pSe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new qv};if(e===-1)return n;let s,o,a;for(Fv.lastIndex=e;o=Fv.exec(t);){if(o.index!==e)throw new TypeError("invalid parameter format");e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),Uv.test(a)&&(a=a.replace(Uv,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(fSe,"parse");function mSe(t){if(typeof t!="string")return sm;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(pSe.test(r)===!1)return sm;let n={type:r.toLowerCase(),parameters:new qv};if(e===-1)return n;let s,o,a;for(Fv.lastIndex=e;o=Fv.exec(t);){if(o.index!==e)return sm;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),Uv.test(a)&&(a=a.replace(Uv,"$1"))),n.parameters[s]=a}return e!==t.length?sm:n}i(mSe,"safeParse");Fw.exports.default={parse:fSe,safeParse:mSe};Fw.exports.parse=fSe;Fw.exports.safeParse=mSe;Fw.exports.defaultContentType=sm});var qw,_c,WSe=g(()=>{qw={warningEmitted:!1},_c=i(t=>{if(t&&!qw.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){qw.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e=${r}. You are running node ${t}. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to node >=${r}. -More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var Jxt,jxt,NSe,TSe=g(()=>{Jxt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),jxt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},NSe=i(t=>({applyToStack:i(e=>{e.add(Jxt(),jxt)},"applyToStack")}),"getLongPollPlugin")});function xd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var vSe=g(()=>{i(xd,"setCredentialFeature")});var PSe,n8,_Se=g(()=>{PSe=require("node:stream"),n8=i(t=>t?.body instanceof PSe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var nf,bd,Bd,QSe,DSe,FP=g(()=>{nf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),bd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Bd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>QSe[f.step]-QSe[m.step]||DSe[f.priority||"normal"]-DSe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(A=>{let h=nf(A.name,A.aliases);if(h.includes(p)){m=!0;for(let E of h)n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(A=>{if(A.middleware===p){m=!0;for(let h of nf(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],A={};return t.forEach(E=>{let y={...E,before:[],after:[]};for(let I of nf(y.name,y.aliases))A[I]=y;m.push(y)}),e.forEach(E=>{let y={...E,before:[],after:[]};for(let I of nf(y.name,y.aliases))A[I]=y;f.push(y)}),f.forEach(E=>{if(E.toMiddleware){let y=A[E.toMiddleware];if(y===void 0){if(p)return;throw new Error(`${E.toMiddleware} is not found when adding ${bd(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&y.after.push(E),E.relation==="before"&&y.before.push(E)}}),s(m).map(l).reduce((E,y)=>(E.push(...y),E),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:A,aliases:h}=m,E={step:"initialize",priority:"normal",middleware:p,...m},y=nf(f,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${bd(f,h)}'`);for(let I of y){let x=t.findIndex(N=>N.name===I||N.aliases?.some(P=>P===I));if(x===-1)continue;let b=t[x];if(b.step!==E.step||E.priority!==b.priority)throw new Error(`"${bd(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${bd(f,h)}" middleware with ${E.priority} priority in ${E.step} step.`);t.splice(x,1)}}for(let I of y)n.add(I)}t.push(E)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:A,aliases:h}=m,E={middleware:p,...m},y=nf(f,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${bd(f,h)}'`);for(let I of y){let x=e.findIndex(N=>N.name===I||N.aliases?.some(P=>P===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==E.toMiddleware||b.relation!==E.relation)throw new Error(`"${bd(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${bd(f,h)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of y)n.add(I)}e.push(E)},"addRelativeTo"),clone:i(()=>c(Bd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(A=>{let{tags:h,name:E,aliases:y}=A;if(h&&h.includes(p)){let I=nf(E,y);for(let x of I)n.delete(x);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Bd());return m.use(p),m.identifyOnResolve(r||m.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),m},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let m=p.step??p.relation+" "+p.toMiddleware;return bd(p.name,p.aliases)+" - "+m}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,m)=>{for(let f of u().map(A=>A.middleware).reverse())p=f(p,m);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),QSe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},DSe={high:3,normal:2,low:1}});var sa=w(na=>{var s8;(function(t){t.HEADER="header",t.QUERY="query"})(s8||(s8={}));var o8;(function(t){t.HEADER="header",t.QUERY="query"})(o8||(o8={}));var i8;(function(t){t.HTTP="http",t.HTTPS="https"})(i8||(i8={}));var kw;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(kw||(kw={}));var Kxt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>kw.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>kw.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),Xxt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),Zxt=i(t=>Kxt(t),"getDefaultClientConfiguration"),ebt=i(t=>Xxt(t),"resolveDefaultRuntimeConfig"),a8;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(a8||(a8={}));var tbt="__smithy_context",c8;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(c8||(c8={}));var l8;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(l8||(l8={}));na.AlgorithmId=kw;na.EndpointURLScheme=i8;na.FieldPosition=a8;na.HttpApiKeyAuthLocation=o8;na.HttpAuthLocation=s8;na.IniSectionType=c8;na.RequestHandlerProtocol=l8;na.SMITHY_CONTEXT_KEY=tbt;na.getDefaultClientConfiguration=Zxt;na.resolveDefaultRuntimeConfig=ebt});var u8,xt,kSe=g(()=>{u8=R(sa()),xt=i(t=>t[u8.SMITHY_CONTEXT_KEY]||(t[u8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var d8=g(()=>{i(X,"hasOwn")});function rbt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var We,LSe=g(()=>{We=class t{static{i(this,"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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=rbt(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(rbt,"cloneQuery")});var an,OSe=g(()=>{an=class{static{i(this,"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!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var nbt,oa,MSe=g(()=>{nbt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),oa=i((t,e=!1)=>{if(!e)return nbt.test(t);let r=t.split(".");for(let n of r)if(!oa(n))return!1;return!0},"isValidHostLabel")});function Lw(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var FSe=g(()=>{i(Lw,"isValidHostname")});var bt,USe=g(()=>{bt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Ow(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var p8=g(()=>{i(Ow,"parseQueryString")});var Bn,m8=g(()=>{p8();Bn=i(t=>{if(typeof t=="string")return Bn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Ow(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var No,qSe=g(()=>{d8();m8();No=i(t=>{if(typeof t=="object"){if("url"in t){let e=Bn(t.url);if(t.headers){e.headers={};for(let r in t.headers)X(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Bn(t)},"toEndpointV1")});var xe=g(()=>{kSe();d8();LSe();OSe();MSe();FSe();USe();p8();m8();qSe()});var GSe,HSe=g(()=>{GSe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var $Se,zSe=g(()=>{$Se=i(t=>()=>Promise.reject(t),"invalidProvider")});var vg,f8=g(()=>{vg=i(()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}},"getCircularReplacer")});var VSe,WSe=g(()=>{VSe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var UP,To,YSe,qP=g(()=>{f8();UP={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(To||(To={}));YSe=i(t=>{if(t.state===To.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},vg())}`);throw e.name="AbortError",e}else if(t.state===To.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},vg())}`);throw e.name="TimeoutError",e}else if(t.state!==To.SUCCESS)throw new Error(`${JSON.stringify(t,vg())}`);return t},"checkExceptions")});var JSe,sbt,obt,ibt,abt,jSe=g(()=>{f8();WSe();qP();JSe=i(async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:s,abortSignal:o},a,c)=>{let l={},[u,d]=[t*1e3,e*1e3],p=0,m=Date.now()+r*1e3,f=Date.now()+6e4,A=!1;for(;;){if(p>0){let y=ibt(u,d,p,m);if(n?.signal?.aborted||o?.aborted){let I="AbortController signal aborted.";return l[I]|=0,l[I]+=1,{state:To.ABORTED,observedResponses:l}}if(Date.now()+y>m)return{state:To.TIMEOUT,observedResponses:l};await VSe(y/1e3)}let{state:h,reason:E}=await c(s,a);if(E){let y=obt(E);l[y]|=0,l[y]+=1}if(h!==To.RETRY)return{state:h,reason:E,final:E,observedResponses:l};p+=1,!A&&Date.now()>=f&&(sbt(l,s),A=!0)}},"runPolling"),sbt=i((t={},e)=>{let r=Object.keys(t),n=0,s=0;for(let c of r){let l=t[c]|0;n=Math.max(l,n),c.startsWith("403:")&&(s+=l)}let o=e?.config?.logger,a=typeof o?.warn=="function"&&!o.constructor?.name?.includes?.("NoOpLogger")?o:console;(s>=3||r[r.length-1]?.startsWith("403:"))&&a.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),obt=i(t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,vg())??"Unknown")},"createMessageFromResponse"),ibt=i((t,e,r,n)=>{let s=Math.log(e/t)/Math.log(2)+1;if(r>s)return e;let o=t*2**(r-1),a=Math.min(o,e),c=abt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),abt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var KSe,XSe=g(()=>{KSe=i(t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay{jSe();XSe();qP();ZSe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:To.ABORTED}),"onAbort"),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},"abortTimeout"),exe=i(async(t,e,r)=>{let n={...UP,...t};KSe(n);let s=[JSe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=ZSe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=ZSe(t.abortController.signal);o.push(c),s.push(a)}return Promise.race(s).then(a=>{for(let c of o)c();return a})},"createWaiter")});var $n,rxe=g(()=>{FP();$n=class{static{i(this,"Client")}config;middlewareStack=Bd();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let s=typeof r!="function"?r:void 0,o=typeof r=="function"?r:n,a=s===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(e.constructor)?c=l.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),l.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(e).then(l=>o(null,l.output),l=>o(l)).catch(()=>{});else return c(e).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var qs,A8=g(()=>{qs=i(t=>typeof t=="function"?t():t,"deref")});var Pg,GP=g(()=>{Pg=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var nxe,h8,sxe=g(()=>{xe();GP();nxe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=xt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(Pg(a,c,l,u,d),{...t,...r},s);return{response:s,output:p}}catch(p){if(Object.defineProperty(p,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in p)){let m="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{p.message+=` - `+m}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(m):r.logger?.warn?.(m)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(an.isInstance(s)){let{headers:f={},statusCode:A}=s,h=Object.entries(f);p.$metadata={httpStatusCode:A,requestId:h8(/^x-[\w-]+-request-?id$/,h),extendedRequestId:h8(/^x-[\w-]+-id-2$/,h),cfId:h8(/^x-[\w-]+-cf-id$/,h)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),h8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var oxe,ixe=g(()=>{xe();GP();oxe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=xt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>No(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Pg(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function _c(t){return{applyToStack:i(e=>{e.add(oxe(t),y8),e.add(nxe(t),g8),t.protocol.setSerdeContext(t)},"applyToStack")}}var g8,y8,axe=g(()=>{sxe();ixe();g8={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},y8={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(_c,"getSchemaSerdePlugin")});var mr,Rd=g(()=>{mr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Mw,cxe,lxe=g(()=>{Rd();Mw=class t extends mr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},cxe=i((t,e,r,n)=>mr.assign(new Mw,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var Fw,uxe,dxe=g(()=>{Rd();Fw=class t extends mr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},uxe=i((t,e,r,n,s)=>mr.assign(new Fw,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var Uw,pxe,mxe=g(()=>{Rd();Uw=class t extends mr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},pxe=i((t,e,r,n,s)=>mr.assign(new Uw,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var sf,fxe,E8=g(()=>{Rd();sf=class t extends mr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},fxe=i((t,e,r,n,s)=>mr.assign(new sf,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var qw,Axe,hxe=g(()=>{Rd();E8();qw=class t extends sf{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},Axe=i((t,e,r,n,s,o)=>mr.assign(new qw,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function ia(t){if(typeof t=="object")return t;if(t=t|0,Gw[t])return Gw[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Gw[t]=e}var Gw,C8=g(()=>{Gw=[];i(ia,"translateTraits")});function $w(t,e){if(t instanceof L)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=L;return new r(t,e)}var Hw,zw,Vw,L,I8,w8,gxe=g(()=>{A8();C8();Hw={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},zw=[],Vw={},L=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;I8(s);)n.push(s[1]),s=s[0],o=qs(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,ia(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=qs(o),w8(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(zw[e])return zw[e]}else if(typeof e=="string"){if(Vw[e])return Vw[e]}else if(r&&e[Hw.ns])return e[Hw.ns];let n=qs(e);if(n instanceof t)return n;if(I8(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),ia(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[Hw.ns]=s:typeof n=="string"?Vw[n]=s:typeof n=="number"?zw[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let 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(){let{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 ia(this.memberTraits)}getOwnTraits(){return ia(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return $w([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return $w([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return $w(I8(s)?s:[s,0],e)}if(this.isDocumentSchema())return $w([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Hw.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),w8=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var _g,yxe,Exe,Cxe=g(()=>{Rd();_g=class t extends mr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},yxe=i((t,e,r,n)=>mr.assign(new _g,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),Exe=i((t,e,r,n)=>mr.assign(new _g,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var Ixe,wxe=g(()=>{Ixe={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}});var gt,Sxe=g(()=>{gt=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.has(n)||s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1],o=s+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=o);for(let a of[this,t.for(s)])!a.schemas.has(o)&&!a.exceptions.has(n)&&(a.schemas.set(o,n),a.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var S8={};Fr(S8,{ErrorSchema:()=>qw,ListSchema:()=>Mw,MapSchema:()=>Fw,NormalizedSchema:()=>L,OperationSchema:()=>Uw,SCHEMA:()=>Ixe,Schema:()=>mr,SimpleSchema:()=>_g,StructureSchema:()=>sf,TypeRegistry:()=>gt,deref:()=>qs,deserializerMiddlewareOption:()=>g8,error:()=>Axe,getSchemaSerdePlugin:()=>_c,isStaticSchema:()=>w8,list:()=>cxe,map:()=>uxe,op:()=>pxe,operation:()=>Pg,serializerMiddlewareOption:()=>y8,sim:()=>yxe,simAdapter:()=>Exe,simpleSchemaCacheN:()=>zw,simpleSchemaCacheS:()=>Vw,struct:()=>fxe,traitsCache:()=>Gw,translateTraits:()=>ia});var Ye=g(()=>{A8();axe();lxe();dxe();mxe();GP();hxe();gxe();Rd();Cxe();E8();wxe();C8();Sxe()});function Qg(t,e){if(e==null)return e;let r=L.of(t);if(r.getMergedTraits().sensitive)return x8;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return x8}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return x8}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=Qg(a,n[o]));return s}return e}var x8,b8=g(()=>{Ye();x8="***SensitiveInformation***";i(Qg,"schemaLogFilter")});var B8,As,R8,N8=g(()=>{B8=R(sa());FP();b8();As=class{static{i(this,"Command")}middlewareStack=Bd();schema;static classBuilder(){return new R8}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let I of s.bind(this)(p,e,r,n))this.middlewareStack.use(I);let m=e.concat(this.middlewareStack),{logger:f}=r,A=d[B8.SMITHY_CONTEXT_KEY],h={logger:f,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[B8.SMITHY_CONTEXT_KEY]:{...A,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:E}=r,y=n??{};return y.metricsRecorder&&(y={...y},delete y.metricsRecorder),u.eventStream&&(y={isEventStream:!0,...y}),m.resolve(I=>E.handle(I.request,y),h)}},R8=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends As{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,o){let a=e._operationSchema,c=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,s,o,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Qg.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Qg.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var xxe,bxe=g(()=>{xxe="***SensitiveInformation***"});var Qc,Bxe=g(()=>{Qc=i((t,e,r)=>{for(let[o,a]of Object.entries(t)){let c=i(async function(u,d,p){let m=new a(u);if(typeof d=="function")this.send(m,d);else if(typeof p=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(m,d||{},p)}else return this.send(m,d)},"methodImpl"),l=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");e.prototype[l]=c}let{paginators:n={},waiters:s={}}=r??{};for(let[o,a]of Object.entries(n))e.prototype[o]===void 0&&(e.prototype[o]=function(c={},l,...u){return a({...l,client:this},c,...u)});for(let[o,a]of Object.entries(s))e.prototype[o]===void 0&&(e.prototype[o]=async function(c={},l,...u){let d=l;return typeof l=="number"&&(d={maxWaitTime:l}),a({...d,client:this},c,...u)})},"createAggregatedClient")});var yi,of,T8=g(()=>{yi=class t extends Error{static{i(this,"ServiceException")}static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,s=!1;if(n){let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor,l=c!==t&&Object.prototype.hasOwnProperty.call(c,"shapeId")?c?.shapeId:void 0;if(l&&(s=!0,l===n))return!0;a=Object.getPrototypeOf(a)}}if(n&&s)return!1;let o=this.name;if(o&&o.length>=6){if(r.name===o)return!0;let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor?.name;if(c&&c!=="Error"&&c===o)return!0;a=Object.getPrototypeOf(a)}}}return!1}},of=i((t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},"decorateServiceException")});var v8,Rxe,cbt,Nxe=g(()=>{T8();v8=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=cbt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw of(a,e)},"throwDefaultError"),Rxe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{v8({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),cbt=i(t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),"deserializeMetadata")});var Dc,Txe=g(()=>{Dc=i(t=>{switch(t){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{}}},"loadConfigsForDefaultMode")});var vxe,kc,Pxe=g(()=>{vxe=!1,kc=i(t=>{t&&!vxe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(vxe=!0)},"emitWarningIfUnsupportedVersion")});var af,_xe,HP,$P,P8=g(()=>{xe();af=R(sa()),_xe=Object.values(af.AlgorithmId),HP=i(t=>{let e=[];for(let r in af.AlgorithmId){if(!X(af.AlgorithmId,r))continue;let n=af.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:i(()=>n,"algorithmId"),checksumConstructor:i(()=>t[n],"checksumConstructor")})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>n,"checksumConstructor")});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),s=r.checksumConstructor();_xe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),$P=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();_xe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var zP,VP,_8=g(()=>{zP=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),VP=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var aa,Qxe,Lc,Dxe=g(()=>{P8();_8();aa=i(t=>Object.assign(HP(t),zP(t)),"getDefaultExtensionConfiguration"),Qxe=aa,Lc=i(t=>Object.assign($P(t),VP(t)),"resolveDefaultRuntimeConfig")});var kxe,Lxe=g(()=>{kxe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var cf,Oxe=g(()=>{xe();cf=i(t=>{let e="#text";for(let r in t)X(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=cf(t[r])));return t},"getValueFromTextNode")});var Mxe,Fxe=g(()=>{Mxe=i(t=>t!=null,"isSerializableHeaderValue")});var Gs,Uxe=g(()=>{Gs=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function Q8(t,e,r){let n,s,o;if(typeof e>"u"&&typeof r>"u")n={},o=t;else{if(n=t,typeof e=="function")return s=e,o=r,lbt(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}Hxe(n,null,o,a)}return n}var qxe,Gxe,lbt,Hxe,ubt,dbt,$xe=g(()=>{xe();i(Q8,"map");qxe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),Gxe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&Hxe(r,t,e,n);return r},"take"),lbt=i((t,e,r)=>Q8(t,Object.entries(r).reduce((n,[s,o])=>(Array.isArray(o)?n[s]=o:typeof o=="function"?n[s]=[e,o()]:n[s]=[e,o],n),{})),"mapWithFilter"),Hxe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=ubt,l=dbt,u=n]=a;(typeof c=="function"&&c(e[u])||typeof c!="function"&&c)&&(t[n]=l(e[u]));return}let[s,o]=r[n];if(typeof o=="function"){let a,c=s===void 0&&(a=o())!=null,l=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;c?t[n]=a:l&&(t[n]=o())}else{let a=s===void 0&&o!=null,c=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(a||c)&&(t[n]=o)}},"applyInstruction"),ubt=i(t=>t!=null,"nonNullish"),dbt=i(t=>t,"pass")});var zxe,Vxe,Wxe=g(()=>{zxe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),Vxe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var WP,Yxe=g(()=>{xe();WP=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(WP);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=WP(t[r]));return e}return t},"_json")});function Oc(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return As.classBuilder().ep(d).m(function(p,m,f,A){let h=a.call(this,p,m,f,A);return h.unshift(n(f,p.getEndpointParameterInstructions())),h}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var Jxe=g(()=>{N8();i(Oc,"makeBuilder")});var Dg={};Fr(Dg,{AlgorithmId:()=>af.AlgorithmId,Client:()=>$n,Command:()=>As,NoOpLogger:()=>Gs,SENSITIVE_STRING:()=>xxe,ServiceException:()=>yi,WaiterState:()=>To,_json:()=>WP,checkExceptions:()=>YSe,constructStack:()=>Bd,convertMap:()=>qxe,createAggregatedClient:()=>Qc,createWaiter:()=>exe,decorateServiceException:()=>of,emitWarningIfUnsupportedVersion:()=>kc,getArrayIfSingleItem:()=>kxe,getChecksumConfiguration:()=>HP,getDefaultClientConfiguration:()=>Qxe,getDefaultExtensionConfiguration:()=>aa,getRetryConfiguration:()=>zP,getSmithyContext:()=>xt,getValueFromTextNode:()=>cf,invalidFunction:()=>GSe,invalidProvider:()=>$Se,isSerializableHeaderValue:()=>Mxe,loadConfigsForDefaultMode:()=>Dc,makeBuilder:()=>Oc,map:()=>Q8,normalizeProvider:()=>bt,resolveChecksumRuntimeConfig:()=>$P,resolveDefaultRuntimeConfig:()=>Lc,resolveRetryRuntimeConfig:()=>VP,schemaLogFilter:()=>Qg,serializeDateTime:()=>Vxe,serializeFloat:()=>zxe,take:()=>Gxe,throwDefaultError:()=>v8,waiterServiceDefaults:()=>UP,withBaseException:()=>Rxe});var we=g(()=>{FP();xe();xe();HSe();zSe();txe();qP();rxe();N8();bxe();Bxe();Nxe();Txe();Pxe();T8();Dxe();P8();_8();Lxe();Oxe();Fxe();Uxe();$xe();b8();Wxe();Yxe();Jxe()});var YP,D8=g(()=>{YP=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var ca,Nd,Td=g(()=>{D8();ca=i((t,e=0,r=t.byteLength-e)=>{if(!YP(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),Nd=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var pbt,fr,jxe=g(()=>{Td();pbt=/^[A-Za-z0-9+/]*={0,2}$/,fr=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!pbt.exec(t))throw new TypeError("Invalid base64 string.");let e=Nd(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Yr,JP=g(()=>{Td();Yr=i(t=>{let e=Nd(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var vt,k8=g(()=>{Td();JP();vt=i(t=>{let e;if(typeof t=="string"?e=Yr(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return ca(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function Kxe(t,e,r,n){return class jP extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?jP.mutate(n(o)):jP.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,jP.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var Xxe=g(()=>{i(Kxe,"bindUint8ArrayBlobAdapter")});var Mt,Zxe=g(()=>{Td();Mt=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return ca(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function ebe(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,zn[e[0]]+zn[e[1]]+zn[e[2]]+zn[e[3]]+"-"+zn[e[4]]+zn[e[5]]+"-"+zn[e[6]]+zn[e[7]]+"-"+zn[e[8]]+zn[e[9]]+"-"+zn[e[10]]+zn[e[11]]+zn[e[12]]+zn[e[13]]+zn[e[14]]+zn[e[15]]}}var zn,tbe=g(()=>{zn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(ebe,"bindV4")});var rbe,nbe=g(()=>{rbe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var sbe,obe,kg,mbt,Ww,Lg,ibe,KP,XP,ZP,L8,fbt,abe,O8,cbe,t_,Yw,lbe,r_,Abt,Mg,n_,ube,dbe,pbe,mbe,M8,fbe,Abe,vd,s_,e_,Og,F8=g(()=>{xe();sbe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),obe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Og.warn(e_(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Og.warn(e_(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},"expectBoolean"),kg=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Og.warn(e_(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),mbt=Math.ceil(2**127*(2-2**-23)),Ww=i(t=>{let e=kg(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>mbt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),Lg=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),ibe=Lg,KP=i(t=>L8(t,32),"expectInt32"),XP=i(t=>L8(t,16),"expectShort"),ZP=i(t=>L8(t,8),"expectByte"),L8=i((t,e)=>{let r=Lg(t);if(r!==void 0&&fbt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),fbt=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),abe=i((t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},"expectNonNull"),O8=i(t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},"expectObject"),cbe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Og.warn(e_(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),t_=i(t=>{if(t==null)return;let e=O8(t),r=[];for(let n in e)X(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},"expectUnion"),Yw=i(t=>kg(typeof t=="string"?Mg(t):t),"strictParseDouble"),lbe=Yw,r_=i(t=>Ww(typeof t=="string"?Mg(t):t),"strictParseFloat32"),Abt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Mg=i(t=>{let e=t.match(Abt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),n_=i(t=>typeof t=="string"?mbe(t):kg(t),"limitedParseDouble"),ube=n_,dbe=n_,pbe=i(t=>typeof t=="string"?mbe(t):Ww(t),"limitedParseFloat32"),mbe=i(t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},"parseFloatString"),M8=i(t=>Lg(typeof t=="string"?Mg(t):t),"strictParseLong"),fbe=M8,Abe=i(t=>KP(typeof t=="string"?Mg(t):t),"strictParseInt32"),vd=i(t=>XP(typeof t=="string"?Mg(t):t),"strictParseShort"),s_=i(t=>ZP(typeof t=="string"?Mg(t):t),"strictParseByte"),e_=i(t=>String(new TypeError(t).stack||t).split(` +More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var c0t,l0t,YSe,JSe=g(()=>{c0t=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),l0t={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},YSe=i(t=>({applyToStack:i(e=>{e.add(c0t(),l0t)},"applyToStack")}),"getLongPollPlugin")});function Bd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var jSe=g(()=>{i(Bd,"setCredentialFeature")});var KSe,d8,XSe=g(()=>{KSe=require("node:stream"),d8=i(t=>t?.body instanceof KSe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var lm,Rd,Nd,ZSe,exe,Vv=g(()=>{lm=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Rd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Nd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>ZSe[m.step]-ZSe[f.step]||exe[m.priority||"normal"]-exe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(A=>{let h=lm(A.name,A.aliases);if(h.includes(p)){f=!0;for(let E of h)n.delete(E);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(A=>{if(A.middleware===p){f=!0;for(let h of lm(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByReference"),c=i(p=>(t.forEach(f=>{p.add(f.middleware,{...f})}),e.forEach(f=>{p.addRelativeTo(f.middleware,{...f})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let f=[];return p.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(p),p.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let f=[],m=[],A={};return t.forEach(E=>{let y={...E,before:[],after:[]};for(let I of lm(y.name,y.aliases))A[I]=y;f.push(y)}),e.forEach(E=>{let y={...E,before:[],after:[]};for(let I of lm(y.name,y.aliases))A[I]=y;m.push(y)}),m.forEach(E=>{if(E.toMiddleware){let y=A[E.toMiddleware];if(y===void 0){if(p)return;throw new Error(`${E.toMiddleware} is not found when adding ${Rd(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&y.after.push(E),E.relation==="before"&&y.before.push(E)}}),s(f).map(l).reduce((E,y)=>(E.push(...y),E),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:A,aliases:h}=f,E={step:"initialize",priority:"normal",middleware:p,...f},y=lm(m,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${Rd(m,h)}'`);for(let I of y){let x=t.findIndex(N=>N.name===I||N.aliases?.some(v=>v===I));if(x===-1)continue;let b=t[x];if(b.step!==E.step||E.priority!==b.priority)throw new Error(`"${Rd(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${Rd(m,h)}" middleware with ${E.priority} priority in ${E.step} step.`);t.splice(x,1)}}for(let I of y)n.add(I)}t.push(E)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:A,aliases:h}=f,E={middleware:p,...f},y=lm(m,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${Rd(m,h)}'`);for(let I of y){let x=e.findIndex(N=>N.name===I||N.aliases?.some(v=>v===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==E.toMiddleware||b.relation!==E.relation)throw new Error(`"${Rd(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${Rd(m,h)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of y)n.add(I)}e.push(E)},"addRelativeTo"),clone:i(()=>c(Nd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let f=!1,m=i(A=>{let{tags:h,name:E,aliases:y}=A;if(h&&h.includes(p)){let I=lm(E,y);for(let x of I)n.delete(x);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(Nd());return f.use(p),f.identifyOnResolve(r||f.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),f},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let f=p.step??p.relation+" "+p.toMiddleware;return Rd(p.name,p.aliases)+" - "+f}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,f)=>{for(let m of u().map(A=>A.middleware).reverse())p=m(p,f);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),ZSe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},exe={high:3,normal:2,low:1}});var ia=w(oa=>{var p8;(function(t){t.HEADER="header",t.QUERY="query"})(p8||(p8={}));var f8;(function(t){t.HEADER="header",t.QUERY="query"})(f8||(f8={}));var m8;(function(t){t.HTTP="http",t.HTTPS="https"})(m8||(m8={}));var Gw;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Gw||(Gw={}));var u0t=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>Gw.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>Gw.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),d0t=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),p0t=i(t=>u0t(t),"getDefaultClientConfiguration"),f0t=i(t=>d0t(t),"resolveDefaultRuntimeConfig"),A8;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(A8||(A8={}));var m0t="__smithy_context",h8;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(h8||(h8={}));var g8;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(g8||(g8={}));oa.AlgorithmId=Gw;oa.EndpointURLScheme=m8;oa.FieldPosition=A8;oa.HttpApiKeyAuthLocation=f8;oa.HttpAuthLocation=p8;oa.IniSectionType=h8;oa.RequestHandlerProtocol=g8;oa.SMITHY_CONTEXT_KEY=m0t;oa.getDefaultClientConfiguration=p0t;oa.resolveDefaultRuntimeConfig=f0t});var y8,xt,txe=g(()=>{y8=R(ia()),xt=i(t=>t[y8.SMITHY_CONTEXT_KEY]||(t[y8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var E8=g(()=>{i(X,"hasOwn")});function A0t(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Ve,rxe=g(()=>{Ve=class t{static{i(this,"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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=A0t(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(A0t,"cloneQuery")});var an,nxe=g(()=>{an=class{static{i(this,"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!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var h0t,aa,sxe=g(()=>{h0t=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),aa=i((t,e=!1)=>{if(!e)return h0t.test(t);let r=t.split(".");for(let n of r)if(!aa(n))return!1;return!0},"isValidHostLabel")});function $w(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var oxe=g(()=>{i($w,"isValidHostname")});var bt,ixe=g(()=>{bt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Hw(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var C8=g(()=>{i(Hw,"parseQueryString")});var Bn,I8=g(()=>{C8();Bn=i(t=>{if(typeof t=="string")return Bn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Hw(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var No,axe=g(()=>{E8();I8();No=i(t=>{if(typeof t=="object"){if("url"in t){let e=Bn(t.url);if(t.headers){e.headers={};for(let r in t.headers)X(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Bn(t)},"toEndpointV1")});var we=g(()=>{txe();E8();rxe();nxe();sxe();oxe();ixe();C8();I8();axe()});var cxe,lxe=g(()=>{cxe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var uxe,dxe=g(()=>{uxe=i(t=>()=>Promise.reject(t),"invalidProvider")});var kg,w8=g(()=>{kg=i(()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}},"getCircularReplacer")});var pxe,fxe=g(()=>{pxe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var Wv,To,mxe,Yv=g(()=>{w8();Wv={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(To||(To={}));mxe=i(t=>{if(t.state===To.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},kg())}`);throw e.name="AbortError",e}else if(t.state===To.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},kg())}`);throw e.name="TimeoutError",e}else if(t.state!==To.SUCCESS)throw new Error(`${JSON.stringify(t,kg())}`);return t},"checkExceptions")});var Axe,g0t,y0t,E0t,C0t,hxe=g(()=>{w8();fxe();Yv();Axe=i(async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:s,abortSignal:o},a,c)=>{let l={},[u,d]=[t*1e3,e*1e3],p=0,f=Date.now()+r*1e3,m=Date.now()+6e4,A=!1;for(;;){if(p>0){let y=E0t(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let I="AbortController signal aborted.";return l[I]|=0,l[I]+=1,{state:To.ABORTED,observedResponses:l}}if(Date.now()+y>f)return{state:To.TIMEOUT,observedResponses:l};await pxe(y/1e3)}let{state:h,reason:E}=await c(s,a);if(E){let y=y0t(E);l[y]|=0,l[y]+=1}if(h!==To.RETRY)return{state:h,reason:E,final:E,observedResponses:l};p+=1,!A&&Date.now()>=m&&(g0t(l,s),A=!0)}},"runPolling"),g0t=i((t={},e)=>{let r=Object.keys(t),n=0,s=0;for(let c of r){let l=t[c]|0;n=Math.max(l,n),c.startsWith("403:")&&(s+=l)}let o=e?.config?.logger,a=typeof o?.warn=="function"&&!o.constructor?.name?.includes?.("NoOpLogger")?o:console;(s>=3||r[r.length-1]?.startsWith("403:"))&&a.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),y0t=i(t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,kg())??"Unknown")},"createMessageFromResponse"),E0t=i((t,e,r,n)=>{let s=Math.log(e/t)/Math.log(2)+1;if(r>s)return e;let o=t*2**(r-1),a=Math.min(o,e),c=C0t(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),C0t=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var gxe,yxe=g(()=>{gxe=i(t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay{hxe();yxe();Yv();Exe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:To.ABORTED}),"onAbort"),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},"abortTimeout"),Cxe=i(async(t,e,r)=>{let n={...Wv,...t};gxe(n);let s=[Axe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=Exe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=Exe(t.abortController.signal);o.push(c),s.push(a)}return Promise.race(s).then(a=>{for(let c of o)c();return a})},"createWaiter")});var zn,wxe=g(()=>{Vv();zn=class{static{i(this,"Client")}config;middlewareStack=Nd();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let s=typeof r!="function"?r:void 0,o=typeof r=="function"?r:n,a=s===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(e.constructor)?c=l.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),l.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(e).then(l=>o(null,l.output),l=>o(l)).catch(()=>{});else return c(e).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var Hs,S8=g(()=>{Hs=i(t=>typeof t=="function"?t():t,"deref")});var Lg,Jv=g(()=>{Lg=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var Sxe,x8,xxe=g(()=>{we();Jv();Sxe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=xt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(Lg(a,c,l,u,d),{...t,...r},s);return{response:s,output:p}}catch(p){if(Object.defineProperty(p,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in p)){let f="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{p.message+=` + `+f}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(f):r.logger?.warn?.(f)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(an.isInstance(s)){let{headers:m={},statusCode:A}=s,h=Object.entries(m);p.$metadata={httpStatusCode:A,requestId:x8(/^x-[\w-]+-request-?id$/,h),extendedRequestId:x8(/^x-[\w-]+-id-2$/,h),cfId:x8(/^x-[\w-]+-cf-id$/,h)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),x8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var bxe,Bxe=g(()=>{we();Jv();bxe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=xt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>No(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Lg(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function Qc(t){return{applyToStack:i(e=>{e.add(bxe(t),B8),e.add(Sxe(t),b8),t.protocol.setSerdeContext(t)},"applyToStack")}}var b8,B8,Rxe=g(()=>{xxe();Bxe();b8={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},B8={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Qc,"getSchemaSerdePlugin")});var fr,Td=g(()=>{fr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var zw,Nxe,Txe=g(()=>{Td();zw=class t extends fr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},Nxe=i((t,e,r,n)=>fr.assign(new zw,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var Vw,Pxe,vxe=g(()=>{Td();Vw=class t extends fr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},Pxe=i((t,e,r,n,s)=>fr.assign(new Vw,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var Ww,_xe,Qxe=g(()=>{Td();Ww=class t extends fr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},_xe=i((t,e,r,n,s)=>fr.assign(new Ww,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var um,Dxe,R8=g(()=>{Td();um=class t extends fr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},Dxe=i((t,e,r,n,s)=>fr.assign(new um,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Yw,kxe,Lxe=g(()=>{Td();R8();Yw=class t extends um{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},kxe=i((t,e,r,n,s,o)=>fr.assign(new Yw,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function ca(t){if(typeof t=="object")return t;if(t=t|0,Jw[t])return Jw[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Jw[t]=e}var Jw,N8=g(()=>{Jw=[];i(ca,"translateTraits")});function Kw(t,e){if(t instanceof L)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=L;return new r(t,e)}var jw,Xw,Zw,L,T8,P8,Oxe=g(()=>{S8();N8();jw={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Xw=[],Zw={},L=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;T8(s);)n.push(s[1]),s=s[0],o=Hs(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,ca(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=Hs(o),P8(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Xw[e])return Xw[e]}else if(typeof e=="string"){if(Zw[e])return Zw[e]}else if(r&&e[jw.ns])return e[jw.ns];let n=Hs(e);if(n instanceof t)return n;if(T8(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),ca(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[jw.ns]=s:typeof n=="string"?Zw[n]=s:typeof n=="number"?Xw[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let 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(){let{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 ca(this.memberTraits)}getOwnTraits(){return ca(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return Kw([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return Kw([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return Kw(T8(s)?s:[s,0],e)}if(this.isDocumentSchema())return Kw([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[jw.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),P8=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Og,Mxe,Fxe,Uxe=g(()=>{Td();Og=class t extends fr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},Mxe=i((t,e,r,n)=>fr.assign(new Og,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),Fxe=i((t,e,r,n)=>fr.assign(new Og,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var qxe,Gxe=g(()=>{qxe={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}});var ht,$xe=g(()=>{ht=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.has(n)||s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1],o=s+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=o);for(let a of[this,t.for(s)])!a.schemas.has(o)&&!a.exceptions.has(n)&&(a.schemas.set(o,n),a.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var v8={};Mr(v8,{ErrorSchema:()=>Yw,ListSchema:()=>zw,MapSchema:()=>Vw,NormalizedSchema:()=>L,OperationSchema:()=>Ww,SCHEMA:()=>qxe,Schema:()=>fr,SimpleSchema:()=>Og,StructureSchema:()=>um,TypeRegistry:()=>ht,deref:()=>Hs,deserializerMiddlewareOption:()=>b8,error:()=>kxe,getSchemaSerdePlugin:()=>Qc,isStaticSchema:()=>P8,list:()=>Nxe,map:()=>Pxe,op:()=>_xe,operation:()=>Lg,serializerMiddlewareOption:()=>B8,sim:()=>Mxe,simAdapter:()=>Fxe,simpleSchemaCacheN:()=>Xw,simpleSchemaCacheS:()=>Zw,struct:()=>Dxe,traitsCache:()=>Jw,translateTraits:()=>ca});var We=g(()=>{S8();Rxe();Txe();vxe();Qxe();Jv();Lxe();Oxe();Td();Uxe();R8();Gxe();N8();$xe()});function Mg(t,e){if(e==null)return e;let r=L.of(t);if(r.getMergedTraits().sensitive)return _8;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return _8}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return _8}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=Mg(a,n[o]));return s}return e}var _8,Q8=g(()=>{We();_8="***SensitiveInformation***";i(Mg,"schemaLogFilter")});var D8,hs,k8,L8=g(()=>{D8=R(ia());Vv();Q8();hs=class{static{i(this,"Command")}middlewareStack=Nd();schema;static classBuilder(){return new k8}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let I of s.bind(this)(p,e,r,n))this.middlewareStack.use(I);let f=e.concat(this.middlewareStack),{logger:m}=r,A=d[D8.SMITHY_CONTEXT_KEY],h={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[D8.SMITHY_CONTEXT_KEY]:{...A,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:E}=r,y=n??{};return y.metricsRecorder&&(y={...y},delete y.metricsRecorder),u.eventStream&&(y={isEventStream:!0,...y}),f.resolve(I=>E.handle(I.request,y),h)}},k8=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends hs{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,o){let a=e._operationSchema,c=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,s,o,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?Mg.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?Mg.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var Hxe,zxe=g(()=>{Hxe="***SensitiveInformation***"});var Dc,Vxe=g(()=>{Dc=i((t,e,r)=>{for(let[o,a]of Object.entries(t)){let c=i(async function(u,d,p){let f=new a(u);if(typeof d=="function")this.send(f,d);else if(typeof p=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(f,d||{},p)}else return this.send(f,d)},"methodImpl"),l=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");e.prototype[l]=c}let{paginators:n={},waiters:s={}}=r??{};for(let[o,a]of Object.entries(n))e.prototype[o]===void 0&&(e.prototype[o]=function(c={},l,...u){return a({...l,client:this},c,...u)});for(let[o,a]of Object.entries(s))e.prototype[o]===void 0&&(e.prototype[o]=async function(c={},l,...u){let d=l;return typeof l=="number"&&(d={maxWaitTime:l}),a({...d,client:this},c,...u)})},"createAggregatedClient")});var Ci,dm,O8=g(()=>{Ci=class t extends Error{static{i(this,"ServiceException")}static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,s=!1;if(n){let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor,l=c!==t&&Object.prototype.hasOwnProperty.call(c,"shapeId")?c?.shapeId:void 0;if(l&&(s=!0,l===n))return!0;a=Object.getPrototypeOf(a)}}if(n&&s)return!1;let o=this.name;if(o&&o.length>=6){if(r.name===o)return!0;let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor?.name;if(c&&c!=="Error"&&c===o)return!0;a=Object.getPrototypeOf(a)}}}return!1}},dm=i((t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},"decorateServiceException")});var M8,Wxe,I0t,Yxe=g(()=>{O8();M8=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=I0t(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw dm(a,e)},"throwDefaultError"),Wxe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{M8({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),I0t=i(t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),"deserializeMetadata")});var kc,Jxe=g(()=>{kc=i(t=>{switch(t){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{}}},"loadConfigsForDefaultMode")});var jxe,Lc,Kxe=g(()=>{jxe=!1,Lc=i(t=>{t&&!jxe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(jxe=!0)},"emitWarningIfUnsupportedVersion")});var pm,Xxe,jv,Kv,F8=g(()=>{we();pm=R(ia()),Xxe=Object.values(pm.AlgorithmId),jv=i(t=>{let e=[];for(let r in pm.AlgorithmId){if(!X(pm.AlgorithmId,r))continue;let n=pm.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:i(()=>n,"algorithmId"),checksumConstructor:i(()=>t[n],"checksumConstructor")})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>n,"checksumConstructor")});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),s=r.checksumConstructor();Xxe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),Kv=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();Xxe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var Xv,Zv,U8=g(()=>{Xv=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),Zv=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var la,Zxe,Oc,ebe=g(()=>{F8();U8();la=i(t=>Object.assign(jv(t),Xv(t)),"getDefaultExtensionConfiguration"),Zxe=la,Oc=i(t=>Object.assign(Kv(t),Zv(t)),"resolveDefaultRuntimeConfig")});var tbe,rbe=g(()=>{tbe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var fm,nbe=g(()=>{we();fm=i(t=>{let e="#text";for(let r in t)X(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=fm(t[r])));return t},"getValueFromTextNode")});var sbe,obe=g(()=>{sbe=i(t=>t!=null,"isSerializableHeaderValue")});var zs,ibe=g(()=>{zs=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function q8(t,e,r){let n,s,o;if(typeof e>"u"&&typeof r>"u")n={},o=t;else{if(n=t,typeof e=="function")return s=e,o=r,w0t(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}lbe(n,null,o,a)}return n}var abe,cbe,w0t,lbe,S0t,x0t,ube=g(()=>{we();i(q8,"map");abe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),cbe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&lbe(r,t,e,n);return r},"take"),w0t=i((t,e,r)=>q8(t,Object.entries(r).reduce((n,[s,o])=>(Array.isArray(o)?n[s]=o:typeof o=="function"?n[s]=[e,o()]:n[s]=[e,o],n),{})),"mapWithFilter"),lbe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=S0t,l=x0t,u=n]=a;(typeof c=="function"&&c(e[u])||typeof c!="function"&&c)&&(t[n]=l(e[u]));return}let[s,o]=r[n];if(typeof o=="function"){let a,c=s===void 0&&(a=o())!=null,l=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;c?t[n]=a:l&&(t[n]=o())}else{let a=s===void 0&&o!=null,c=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(a||c)&&(t[n]=o)}},"applyInstruction"),S0t=i(t=>t!=null,"nonNullish"),x0t=i(t=>t,"pass")});var dbe,pbe,fbe=g(()=>{dbe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),pbe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var e_,mbe=g(()=>{we();e_=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(e_);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=e_(t[r]));return e}return t},"_json")});function Mc(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return hs.classBuilder().ep(d).m(function(p,f,m,A){let h=a.call(this,p,f,m,A);return h.unshift(n(m,p.getEndpointParameterInstructions())),h}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var Abe=g(()=>{L8();i(Mc,"makeBuilder")});var Fg={};Mr(Fg,{AlgorithmId:()=>pm.AlgorithmId,Client:()=>zn,Command:()=>hs,NoOpLogger:()=>zs,SENSITIVE_STRING:()=>Hxe,ServiceException:()=>Ci,WaiterState:()=>To,_json:()=>e_,checkExceptions:()=>mxe,constructStack:()=>Nd,convertMap:()=>abe,createAggregatedClient:()=>Dc,createWaiter:()=>Cxe,decorateServiceException:()=>dm,emitWarningIfUnsupportedVersion:()=>Lc,getArrayIfSingleItem:()=>tbe,getChecksumConfiguration:()=>jv,getDefaultClientConfiguration:()=>Zxe,getDefaultExtensionConfiguration:()=>la,getRetryConfiguration:()=>Xv,getSmithyContext:()=>xt,getValueFromTextNode:()=>fm,invalidFunction:()=>cxe,invalidProvider:()=>uxe,isSerializableHeaderValue:()=>sbe,loadConfigsForDefaultMode:()=>kc,makeBuilder:()=>Mc,map:()=>q8,normalizeProvider:()=>bt,resolveChecksumRuntimeConfig:()=>Kv,resolveDefaultRuntimeConfig:()=>Oc,resolveRetryRuntimeConfig:()=>Zv,schemaLogFilter:()=>Mg,serializeDateTime:()=>pbe,serializeFloat:()=>dbe,take:()=>cbe,throwDefaultError:()=>M8,waiterServiceDefaults:()=>Wv,withBaseException:()=>Wxe});var Ce=g(()=>{Vv();we();we();lxe();dxe();Ixe();Yv();wxe();L8();zxe();Vxe();Yxe();Jxe();Kxe();O8();ebe();F8();U8();rbe();nbe();obe();ibe();ube();Q8();fbe();mbe();Abe()});var t_,G8=g(()=>{t_=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var ua,Pd,vd=g(()=>{G8();ua=i((t,e=0,r=t.byteLength-e)=>{if(!t_(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),Pd=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var b0t,mr,hbe=g(()=>{vd();b0t=/^[A-Za-z0-9+/]*={0,2}$/,mr=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!b0t.exec(t))throw new TypeError("Invalid base64 string.");let e=Pd(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Yr,r_=g(()=>{vd();Yr=i(t=>{let e=Pd(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Pt,$8=g(()=>{vd();r_();Pt=i(t=>{let e;if(typeof t=="string"?e=Yr(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return ua(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function gbe(t,e,r,n){return class n_ extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?n_.mutate(n(o)):n_.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,n_.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var ybe=g(()=>{i(gbe,"bindUint8ArrayBlobAdapter")});var Mt,Ebe=g(()=>{vd();Mt=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return ua(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function Cbe(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Vn[e[0]]+Vn[e[1]]+Vn[e[2]]+Vn[e[3]]+"-"+Vn[e[4]]+Vn[e[5]]+"-"+Vn[e[6]]+Vn[e[7]]+"-"+Vn[e[8]]+Vn[e[9]]+"-"+Vn[e[10]]+Vn[e[11]]+Vn[e[12]]+Vn[e[13]]+Vn[e[14]]+Vn[e[15]]}}var Vn,Ibe=g(()=>{Vn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(Cbe,"bindV4")});var wbe,Sbe=g(()=>{wbe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var xbe,bbe,Ug,B0t,eS,qg,Bbe,s_,o_,i_,H8,R0t,Rbe,z8,Nbe,c_,tS,Tbe,l_,N0t,$g,u_,Pbe,vbe,_be,Qbe,V8,Dbe,kbe,_d,d_,a_,Gg,W8=g(()=>{we();xbe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),bbe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Gg.warn(a_(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Gg.warn(a_(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},"expectBoolean"),Ug=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Gg.warn(a_(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),B0t=Math.ceil(2**127*(2-2**-23)),eS=i(t=>{let e=Ug(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>B0t)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),qg=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),Bbe=qg,s_=i(t=>H8(t,32),"expectInt32"),o_=i(t=>H8(t,16),"expectShort"),i_=i(t=>H8(t,8),"expectByte"),H8=i((t,e)=>{let r=qg(t);if(r!==void 0&&R0t(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),R0t=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),Rbe=i((t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},"expectNonNull"),z8=i(t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},"expectObject"),Nbe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Gg.warn(a_(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),c_=i(t=>{if(t==null)return;let e=z8(t),r=[];for(let n in e)X(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},"expectUnion"),tS=i(t=>Ug(typeof t=="string"?$g(t):t),"strictParseDouble"),Tbe=tS,l_=i(t=>eS(typeof t=="string"?$g(t):t),"strictParseFloat32"),N0t=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,$g=i(t=>{let e=t.match(N0t);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),u_=i(t=>typeof t=="string"?Qbe(t):Ug(t),"limitedParseDouble"),Pbe=u_,vbe=u_,_be=i(t=>typeof t=="string"?Qbe(t):eS(t),"limitedParseFloat32"),Qbe=i(t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},"parseFloatString"),V8=i(t=>qg(typeof t=="string"?$g(t):t),"strictParseLong"),Dbe=V8,kbe=i(t=>s_(typeof t=="string"?$g(t):t),"strictParseInt32"),_d=i(t=>o_(typeof t=="string"?$g(t):t),"strictParseShort"),d_=i(t=>i_(typeof t=="string"?$g(t):t),"strictParseByte"),a_=i(t=>String(new TypeError(t).stack||t).split(` `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Og={warn:console.warn}});function vo(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${hbt[n]}, ${l} ${q8[r]} ${e} ${u}:${d}:${p} GMT`}var hbt,q8,gbt,hbe,ybt,Ug,Ebt,Cbt,Ibt,Pd,qg,Jw,wbt,Sbt,xbt,U8,bbt,Bbt,Rbt,Mc,Nbt,Tbt,Fg,gbe=g(()=>{F8();hbt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],q8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(vo,"dateToUtcString");gbt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),hbe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=gbt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=vd(Fg(n)),p=Mc(s,"month",1,12),m=Mc(o,"day",1,31);return Jw(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),ybt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ug=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=ybt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=vd(Fg(n)),m=Mc(s,"month",1,12),f=Mc(o,"day",1,31),A=Jw(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&A.setTime(A.getTime()-Tbt(d)),A},"parseRfc3339DateTimeWithOffset"),Ebt=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$/),Cbt=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$/),Ibt=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})$/),Pd=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Ebt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Jw(vd(Fg(o)),U8(s),Mc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=Cbt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return xbt(Jw(wbt(o),U8(s),Mc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=Ibt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Jw(vd(Fg(u)),U8(n),Mc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),qg=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Yw(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),Jw=i((t,e,r,n)=>{let s=e-1;return Bbt(t,s,r),new Date(Date.UTC(t,s,r,Mc(n.hours,"hour",0,23),Mc(n.minutes,"minute",0,59),Mc(n.seconds,"seconds",0,60),Nbt(n.fractionalMilliseconds)))},"buildDate"),wbt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+vd(Fg(t));return rt.getTime()-new Date().getTime()>Sbt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),U8=i(t=>{let e=q8.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),bbt=[31,28,31,30,31,30,31,31,30,31,30,31],Bbt=i((t,e,r)=>{let n=bbt[e];if(e===1&&Rbt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${q8[e]} in ${t}: ${r}`)},"validateDayOfMonth"),Rbt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Mc=i((t,e,r,n)=>{let s=s_(Fg(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),Nbt=i(t=>t==null?0:r_("0."+t)*1e3,"parseMilliseconds"),Tbt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),Fg=i(t=>{let e=0;for(;e{Lr=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Lr.from=t=>t&&typeof t=="object"&&(t instanceof Lr||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Lr(String(t)):Lr(JSON.stringify(t));Lr.fromObject=Lr.from});function o_(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var Ebe=g(()=>{i(o_,"quoteHeader")});function ou(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var G8,H8,$8,Cbe,Ibe,vbt,Pbt,_bt,Qbt,Dbt,_d,i_,a_,wbe=g(()=>{G8="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",H8="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",$8="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Cbe="(\\d?\\d)",Ibe="(\\d{4})",vbt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Pbt=new RegExp(`^${G8}, ${Cbe} ${H8} ${Ibe} ${$8} GMT$`),_bt=new RegExp(`^${G8}, ${Cbe}-${H8}-(\\d\\d) ${$8} GMT$`),Qbt=new RegExp(`^${G8} ${H8} ( [1-9]|\\d\\d) ${$8} ${Ibe}$`),Dbt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_d=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),i_=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=vbt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;ou(n,1,12),ou(s,1,31),ou(o,0,23),ou(a,0,59),ou(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,m,f]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],A=p==="-"?1:-1;d.setTime(d.getTime()+A*(Number(m)*60*60*1e3+Number(f)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),a_=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=Pbt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=_bt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=Qbt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),Dbt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);ou(e,1,31),ou(s,0,23),ou(o,0,59),ou(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(ou,"range")});function c_(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a{i(c_,"splitEvery")});var Gg,xbe=g(()=>{Gg=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function l_(t){return new Je(String(t),"bigDecimal")}var bbe,Je,Bbe=g(()=>{bbe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Je=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!bbe.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&bbe.test(r.string)}};i(l_,"nv")});function u_(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r{Rbe={},z8={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Rbe[t]=e,z8[e]=t}i(u_,"fromHex");i(Ei,"toHex")});var Hg,Fc,Nbe=g(()=>{Hg=require("node:fs"),Fc=i(t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Hg.ReadStream){if(t.path!=null)return(0,Hg.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Hg.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var hs,W8=g(()=>{JP();hs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Yr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function Uc(t,e){if(e===void 0){e=0;for(let s of t)e+=s.byteLength}let r=new Uint8Array(e),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}var jw=g(()=>{i(Uc,"concatBytes")});var d_,Y8,J8=g(()=>{xe();d_=i((t,e)=>(r,n)=>async s=>{let{response:o}=await r(s);try{let a=await e(o,t);return{response:o,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=` - `+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(an.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:Y8(/^x-[\w-]+-request-?id$/,u),extendedRequestId:Y8(/^x-[\w-]+-id-2$/,u),cfId:Y8(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),Y8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Po,Kw=g(()=>{Po=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Qd,p_=g(()=>{Kw();Qd=class t extends Po{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var m_,Tbe=g(()=>{Kw();m_=class t extends Po{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var f_,j8=g(()=>{Kw();f_=i((...t)=>async()=>{if(t.length===0)throw new Po("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var A_,K8=g(()=>{A_=i(t=>()=>Promise.resolve(t),"fromValue")});var $g,h_=g(()=>{$g=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var cn,g_=g(()=>{cn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var vbe,Pbe=g(()=>{vbe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var Or,y_=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Or||(Or={}))});var _be,Qbe,X8,kbt,qc,zg=g(()=>{_be=require("node:os"),Qbe=require("node:path"),X8={},kbt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),qc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${Qbe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=kbt();return X8[s]||(X8[s]=(0,_be.homedir)()),X8[s]},"getHomeDir")});var Z8,eJ,E_,tJ=g(()=>{Z8="AWS_PROFILE",eJ="default",E_=i(t=>t.profile||process.env[Z8]||eJ,"getProfileName")});var Dbe,kbe,C_,rJ=g(()=>{Dbe=require("node:crypto"),kbe=require("node:path");zg();C_=i(t=>{let r=(0,Dbe.createHash)("sha1").update(t).digest("hex");return(0,kbe.join)(qc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var Lbe,Xw,Obe,nJ=g(()=>{Lbe=require("node:fs/promises");rJ();Xw={},Obe=i(async t=>{if(Xw[t])return Xw[t];let e=C_(t),r=await(0,Lbe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Gc,Mbe=g(()=>{Gc="."});var sJ,Fbe,Ube=g(()=>{sJ=R(sa()),Fbe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(sJ.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===sJ.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var qbe,Lbt,I_,oJ=g(()=>{qbe=require("node:path");zg();Lbt="AWS_CONFIG_FILE",I_=i(()=>process.env[Lbt]||(0,qbe.join)(qc(),".aws","config"),"getConfigFilepath")});var Gbe,Obt,Hbe,$be=g(()=>{Gbe=require("node:path");zg();Obt="AWS_SHARED_CREDENTIALS_FILE",Hbe=i(()=>process.env[Obt]||(0,Gbe.join)(qc(),".aws","credentials"),"getCredentialsFilepath")});var zbe,Mbt,Fbt,Zw,iJ=g(()=>{zbe=R(sa()),Mbt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Fbt=["__proto__","profile __proto__"],Zw=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=Mbt.exec(c);if(l){let[,u,,d]=l;Object.values(zbe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(Fbt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var Vbe,aJ,eS,lf,tS=g(()=>{Vbe=require("node:fs/promises"),aJ={},eS={},lf=i((t,e)=>eS[t]!==void 0?eS[t]:((!aJ[t]||e?.ignoreCache)&&(aJ[t]=(0,Vbe.readFile)(t,"utf8")),aJ[t]),"readFile")});var cJ,Wbe,Vg,w_=g(()=>{cJ=require("node:path");Ube();oJ();$be();zg();iJ();tS();Wbe=i(()=>({}),"swallowError"),Vg=i(async(t={})=>{let{filepath:e=Hbe(),configFilepath:r=I_()}=t,n=qc(),s="~/",o=e;e.startsWith(s)&&(o=(0,cJ.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,cJ.join)(n,r.slice(2)));let c=await Promise.all([lf(a,{ignoreCache:t.ignoreCache}).then(Zw).then(Fbe).catch(Wbe),lf(o,{ignoreCache:t.ignoreCache}).then(Zw).catch(Wbe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var Ybe,Jbe,jbe=g(()=>{Ybe=R(sa()),Jbe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(Ybe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var Ubt,Kbe,Xbe=g(()=>{oJ();jbe();iJ();tS();Ubt=i(()=>({}),"swallowError"),Kbe=i(async(t={})=>lf(t.configFilepath??I_()).then(Zw).then(Jbe).catch(Ubt),"loadSsoSessionData")});var Zbe,e0e=g(()=>{Zbe=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var t0e,r0e=g(()=>{w_();e0e();t0e=i(async t=>{let e=await Vg(t);return Zbe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var n0e,s0e=g(()=>{nJ();tS();n0e={getFileRecord(){return eS},interceptFile(t,e){eS[t]=Promise.resolve(e)},getTokenRecord(){return Xw},interceptToken(t,e){Xw[t]=e}}});function S_(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var lJ=g(()=>{i(S_,"getSelectorName")});var o0e,i0e=g(()=>{p_();lJ();o0e=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Qd(r.message||`Not found in ENV: ${S_(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var a0e,c0e=g(()=>{p_();tJ();w_();lJ();a0e=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=E_(r),{configFile:s,credentialsFile:o}=await Vg(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new Qd(u.message||`Not found in config files w/ profile [${n}]: ${S_(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var qbt,x_,uJ=g(()=>{K8();qbt=i(t=>typeof t=="function","isFunction"),x_=i(t=>qbt(t)?async()=>await t():A_(t),"fromStatic")});var ke,dJ=g(()=>{j8();h_();i0e();c0e();uJ();ke=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return $g(f_(o0e(t,{signingName:s,logger:o}),a0e(e,n),x_(r)))},"loadConfig")});var b_,B_,l0e,Hc,u0e,d0e=g(()=>{g_();y_();b_="AWS_USE_DUALSTACK_ENDPOINT",B_="use_dualstack_endpoint",l0e=!1,Hc={environmentVariableSelector:i(t=>cn(t,b_,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,B_,Or.CONFIG),"configFileSelector"),default:!1},u0e={environmentVariableSelector:i(t=>cn(t,b_,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,B_,Or.CONFIG),"configFileSelector"),default:void 0}});var R_,N_,p0e,$c,m0e,f0e=g(()=>{g_();y_();R_="AWS_USE_FIPS_ENDPOINT",N_="use_fips_endpoint",p0e=!1,$c={environmentVariableSelector:i(t=>cn(t,R_,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,N_,Or.CONFIG),"configFileSelector"),default:!1},m0e={environmentVariableSelector:i(t=>cn(t,R_,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,N_,Or.CONFIG),"configFileSelector"),default:void 0}});var A0e,h0e=g(()=>{we();A0e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:bt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:bt(s??!1)})},"resolveCustomEndpointsConfig")});var g0e,y0e=g(()=>{g0e=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var E0e,C0e=g(()=>{we();y0e();E0e=i(t=>{let e=bt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?bt(typeof r=="string"?s(r):r):()=>g0e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var I0e,pJ,mJ,w0e,S0e,x0e,b0e,B0e,R0e,fJ=g(()=>{I0e="AWS_EXECUTION_ENV",pJ="AWS_REGION",mJ="AWS_DEFAULT_REGION",w0e="AWS_EC2_METADATA_DISABLED",S0e=["in-region","cross-region","mobile","standard","legacy"],x0e="/latest/meta-data/placement/region",b0e="/latest/api/token",B0e="x-aws-ec2-metadata-token",R0e="x-aws-ec2-metadata-token-ttl-seconds"});var N0e,Gbt,P0e,T_,T0e,Hbt,v0e,AJ=g(()=>{fJ();N0e=1e3,Gbt=6e4,P0e=0,T_=i(async()=>{if(!process.env[w0e]&&!(Date.now(){P0e=Date.now()+Gbt},"cacheNegativeAndReturnUndefined"),Hbt=i(()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},"resolveImdsEndpoint"),v0e=i(async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let s=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:N0e,signal:AbortSignal.timeout(N0e)});s.on("error",o=>{n(o),s.destroy()}),s.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",o=>{let{statusCode:a=400}=o;if(a<200||a>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:a})),s.destroy();return}let c=[];o.on("data",l=>c.push(l)),o.on("end",()=>{r(Buffer.concat(c)),s.destroy()})}),s.end()})},"imdsRequest")});var Wg,Yg,Rn,gs,hJ=g(()=>{AJ();Wg="AWS_REGION",Yg="region",Rn={environmentVariableSelector:i(t=>t[Wg],"environmentVariableSelector"),configFileSelector:i(t=>t[Yg],"configFileSelector"),default:i(async()=>{let t=await T_();if(t)return t;throw new Error("Region is missing")},"default")},gs={preferredFile:"credentials"}});var _0e,Q0e,D0e=g(()=>{xe();_0e=new Set,Q0e=i((t,e=oa)=>{if(!_0e.has(t)&&!e(t))if(t==="*")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="${t}" is not a valid hostname component.`);else _0e.add(t)},"checkRegion")});var v_,gJ=g(()=>{v_=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var k0e,L0e=g(()=>{gJ();k0e=i(t=>v_(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var _o,O0e=g(()=>{D0e();L0e();gJ();_o=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=k0e(n);return Q0e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return v_(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var yJ,M0e=g(()=>{yJ=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var F0e,U0e=g(()=>{F0e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var q0e,G0e=g(()=>{q0e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var H0e,$0e=g(()=>{H0e=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var z0e,V0e=g(()=>{M0e();U0e();G0e();$0e();z0e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=q0e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=yJ(s[c]?.variants,l),d=yJ(o[a]?.variants,l),p=F0e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let m=H0e(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...m&&{signingRegion:m},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var $bt,zbt,W0e,Y0e=g(()=>{$bt="AWS_DEFAULTS_MODE",zbt="defaults_mode",W0e={environmentVariableSelector:i(t=>t[$bt],"environmentVariableSelector"),configFileSelector:i(t=>t[zbt],"configFileSelector"),default:"legacy"}});var zc,Vbt,Wbt,J0e=g(()=>{hJ();AJ();dJ();h_();fJ();Y0e();zc=i(({region:t=ke(Rn),defaultsMode:e=ke(W0e)}={})=>$g(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return Vbt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${S0e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),Vbt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await Wbt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Wbt=i(async()=>process.env[I0e]&&(process.env[pJ]||process.env[mJ])?process.env[pJ]??process.env[mJ]:T_(),"inferPhysicalRegion")});var Qo={};Fr(Qo,{CONFIG_PREFIX_SEPARATOR:()=>Gc,CONFIG_USE_DUALSTACK_ENDPOINT:()=>B_,CONFIG_USE_FIPS_ENDPOINT:()=>N_,CredentialsProviderError:()=>Qd,DEFAULT_PROFILE:()=>eJ,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>l0e,DEFAULT_USE_FIPS_ENDPOINT:()=>p0e,ENV_PROFILE:()=>Z8,ENV_USE_DUALSTACK_ENDPOINT:()=>b_,ENV_USE_FIPS_ENDPOINT:()=>R_,NODE_REGION_CONFIG_FILE_OPTIONS:()=>gs,NODE_REGION_CONFIG_OPTIONS:()=>Rn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Hc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>$c,ProviderError:()=>Po,REGION_ENV_NAME:()=>Wg,REGION_INI_NAME:()=>Yg,SelectorType:()=>Or,TokenProviderError:()=>m_,booleanSelector:()=>cn,chain:()=>f_,externalDataInterceptor:()=>n0e,fromStatic:()=>x_,fromValue:()=>A_,getHomeDir:()=>qc,getProfileName:()=>E_,getRegionInfo:()=>z0e,getSSOTokenFilepath:()=>C_,getSSOTokenFromFile:()=>Obe,loadConfig:()=>ke,loadSharedConfigFiles:()=>Vg,loadSsoSessionData:()=>Kbe,memoize:()=>$g,nodeDualstackConfigSelectors:()=>u0e,nodeFipsConfigSelectors:()=>m0e,numberSelector:()=>vbe,parseKnownFiles:()=>t0e,readFile:()=>lf,resolveCustomEndpointsConfig:()=>A0e,resolveDefaultsModeConfig:()=>zc,resolveEndpointsConfig:()=>E0e,resolveRegionConfig:()=>_o});var yt=g(()=>{Kw();p_();Tbe();j8();K8();h_();g_();Pbe();y_();zg();tJ();rJ();nJ();Mbe();w_();Xbe();r0e();s0e();tS();dJ();uJ();d0e();f0e();h0e();C0e();hJ();O0e();V0e();J0e()});var j0e,K0e,X0e,Z0e=g(()=>{j0e="AWS_ENDPOINT_URL",K0e="endpoint_url",X0e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[j0e,...r].join("_")];if(n)return n;let s=e[j0e];if(s)return s},"environmentVariableSelector"),configFileSelector:i((e,r)=>{if(e.services){let s=["services",e.services].join(".");if(!r||!r[s])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let o=r[s],a=t.split(" ").map(l=>l.toLowerCase()),c=o[[a.join("_"),K0e].join(".")];if(c)return c}let n=e[K0e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Ybt,Jbt,eBe,tBe=g(()=>{yt();Ybt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Jbt="ignore_configured_endpoint_urls",eBe={environmentVariableSelector:i(t=>cn(t,Ybt,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,Jbt,Or.CONFIG),"configFileSelector"),default:!1}});var rS,rBe=g(()=>{yt();Z0e();tBe();rS=i(async t=>{if(!await ke(eBe)())return ke(X0e(t??""))()},"getEndpointFromConfig")});var EJ,jbt,Kbt,Xbt,nBe,sBe,oBe=g(()=>{EJ=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),sBe(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!nBe(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},"resolveParamsForS3"),jbt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,Kbt=/(\d+\.){3}\d+/,Xbt=/\.\./,nBe=i(t=>jbt.test(t)&&!Kbt.test(t)&&!Xbt.test(t),"isDnsCompatibleBucketName"),sBe=i(t=>{let[e,r,n,,,s]=t.split(":"),o=e==="arn"&&t.split(":").length>=6,a=!!(o&&r&&n&&s);if(o&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},"isArnBucketName")});var iBe=g(()=>{oBe()});var aBe,cBe=g(()=>{aBe=i((t,e,r,n=!1)=>{let s=i(async()=>{let o;return n?o=r.clientContextParams?.[t]??r[t]??r[e]:o=r[t]??r[e],typeof o=="function"?o():o},"configProvider");return t==="credentialScope"||e==="CredentialScope"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.credentialScope??o?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.accountId??o?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:a,hostname:c,port:l,path:u}=o;return`${a}//${c}${l?":"+l:""}${u}`}}return o}:s},"createConfigValueProvider")});var P_=g(()=>{xe()});function __(t){return async(e,r,n,s)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let c;n.serviceConfiguredEndpoint?c=await n.serviceConfiguredEndpoint():c=await t(n.serviceId),c&&(n.endpoint=()=>Promise.resolve(No(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await nS(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=n.endpointProvider(o,s);if(n.isCustomEndpoint&&n.endpoint){let c=await n.endpoint();if(c?.headers){a.headers??={};for(let[l,u]of Object.entries(c.headers))a.headers[l]=Array.isArray(u)?u:[u]}}return a}}var nS,Q_=g(()=>{iBe();cBe();P_();i(__,"bindGetEndpointFromInstructions");nS=i(async(t,e,r)=>{let n={},s=e?.getEndpointParameterInstructions?.()||{};for(let[o,a]of Object.entries(s))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await aBe(a.name,o,r,a.type!=="builtInParams")();break;case"operationContextParams":n[o]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await EJ(n),n},"resolveParams")});function Zbt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function D_(t){let e=__(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&Zbt(o,"ENDPOINT_OVERRIDE","N");let c=await e(a.input,{getEndpointParameterInstructions(){return n}},{...r},o);o.endpointV2=c,o.authSchemes=c.properties?.authSchemes;let l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;let d=xt(o)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return s({...a})}}var CJ=g(()=>{xe();Q_();i(Zbt,"setFeature");i(D_,"bindEndpointMiddleware")});function lBe(t){let e=D_(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),IJ)},"applyToStack")})}var e0t,IJ,wJ=g(()=>{CJ();e0t={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},IJ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:e0t.name};i(lBe,"bindGetEndpointPlugin")});function uBe(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>No(await bt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:bt(s??!1),useFipsEndpoint:bt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var dBe=g(()=>{xe();P_();i(uBe,"bindResolveEndpointConfig")});var Ci,pBe=g(()=>{Ci=class t{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(e,r,n,s){this.nodes=e,this.root=r,this.conditions=n,this.results=s}static from(e,r,n,s){return new t(e,r,n,s)}}});var Ii,mBe=g(()=>{Ii=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let s=this.data.keys(),o=0;for(;;){let{value:a,done:c}=s.next();if(this.data.delete(a),c||++o>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let s of n){let o=e[s],a=o==null?"\0":String(o);if(a.includes("|;"))return!1;r+=a+"|;"}return r}}});var ot,fBe=g(()=>{ot=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Do=g(()=>{fBe()});var Vc,ABe=g(()=>{Vc="endpoints"});function ko(t){return typeof t!="object"||t==null?t:"ref"in t?`$${ko(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(ko).join(", ")})`:JSON.stringify(t,null,2)}var hBe=g(()=>{i(ko,"toDebugString")});var sS=g(()=>{ABe();hBe()});var Hs,SJ=g(()=>{Hs={}});var xJ,gBe=g(()=>{xJ=i((t,e)=>t===e,"booleanEquals")});function bJ(...t){for(let e of t)if(e!=null)return e}var yBe=g(()=>{i(bJ,"coalesce")});var EBe,CBe=g(()=>{Do();EBe=i(t=>{let e=t.split("."),r=[];for(let n of e){let s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new ot(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new ot(`Invalid array index: '${o}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(o)}else r.push(n)}return r},"getAttrPathList")});var oS,IBe=g(()=>{Do();CBe();oS=i((t,e)=>EBe(e).reduce((r,n)=>{if(typeof r!="object")throw new ot(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let s=parseInt(n);return r[s<0?r.length+s:s]}return r[n]},t),"getAttr")});var BJ,wBe=g(()=>{BJ=i(t=>t!=null,"isSet")});function RJ(t,e,r){return t?e:r}var SBe=g(()=>{i(RJ,"ite")});var NJ,xBe=g(()=>{NJ=i(t=>!t,"not")});var t0t,iu,TJ=g(()=>{t0t=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}$"),iu=i(t=>t0t.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var k_,vJ,PJ,bBe=g(()=>{k_=R(sa());TJ();vJ={[k_.EndpointURLScheme.HTTP]:80,[k_.EndpointURLScheme.HTTPS]:443},PJ=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:m,port:f,protocol:A="",path:h="",query:E={}}=t,y=new URL(`${A}//${m}${f?`:${f}`:""}${h}`);return y.search=Object.entries(E).map(([I,x])=>`${I}=${x}`).join("&"),y}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=e;if(c)return null;let l=a.slice(0,-1);if(!Object.values(k_.EndpointURLScheme).includes(l))return null;let u=iu(s),d=r.includes(`${n}:${vJ[l]}`)||typeof t=="string"&&t.includes(`${n}:${vJ[l]}`),p=`${n}${d?`:${vJ[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function _J(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var BBe=g(()=>{i(_J,"split")});var QJ,RBe=g(()=>{QJ=i((t,e)=>t===e,"stringEquals")});var DJ,NBe=g(()=>{DJ=i((t,e,r,n)=>t==null||e>=r||t.length{kJ=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var LJ=g(()=>{gBe();yBe();IBe();wBe();xe();SBe();xBe();bBe();BBe();RBe();NBe();TBe()});var vBe,PBe=g(()=>{LJ();vBe={booleanEquals:xJ,coalesce:bJ,getAttr:oS,isSet:BJ,isValidHostLabel:oa,ite:RJ,not:NJ,parseURL:PJ,split:_J,stringEquals:QJ,substring:DJ,uriEncode:kJ}});var L_,OJ=g(()=>{LJ();L_=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{_Be=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var au,O_,DBe,Jg=g(()=>{Do();SJ();PBe();OJ();QBe();au=i((t,e,r)=>{if(typeof t=="string")return L_(t,r);if(t.fn)return DBe.callFunction(t,r);if(t.ref)return _Be(t,r);throw new ot(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),O_=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{Jg()});var M_,MJ=g(()=>{sS();Do();kBe();M_=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new ot(`'${r}' is already defined in Reference Record.`);let n=O_(t,e);e.logger?.debug?.(`${Vc} evaluateCondition: ${ko(t)} = ${ko(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var F_,FJ=g(()=>{Do();Jg();F_=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=au(o,"Header value entry",e);if(typeof a!="string")throw new ot(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var iS,LBe,OBe,UJ=g(()=>{Do();OJ();iS=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=OBe.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),LBe=i((t,e)=>{if(Array.isArray(t))return t.map(r=>LBe(r,e));switch(typeof t){case"string":return L_(t,e);case"object":if(t===null)throw new ot(`Unexpected endpoint property: ${t}`);return OBe.getEndpointProperties(t,e);case"boolean":return t;default:throw new ot(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),OBe={getEndpointProperty:LBe,getEndpointProperties:iS}});var U_,qJ=g(()=>{Do();Jg();U_=i((t,e)=>{let r=au(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new ot(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var GJ,Wc,MBe=g(()=>{Do();MJ();Jg();FJ();UJ();qJ();GJ=1e8,Wc=i((t,e)=>{let{nodes:r,root:n,results:s,conditions:o}=t,a=n,c={},l={referenceRecord:c,endpointParams:e.endpointParams,logger:e.logger};for(;a!==1&&a!==-1&&a=0===E.result?p:m}if(a>=GJ){let u=s[a-GJ];if(u[0]===-1){let[,f]=u;throw new ot(au(f,"Error",l))}let[d,p,m]=u;return{url:U_(d,l),properties:iS(p,l),headers:F_(m??{},l)}}throw new ot("No matching endpoint.")},"decideEndpoint")});var jg,q_=g(()=>{sS();MJ();jg=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=M_(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${Vc} assign: ${c.name} := ${ko(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var FBe,UBe=g(()=>{sS();q_();FJ();UJ();qJ();FBe=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${Vc} Resolving endpoint from template: ${ko(n)}`);let d={url:U_(c,a)};return u!=null&&(d.headers=F_(u,a)),l!=null&&(d.properties=iS(l,a)),d},"evaluateEndpointRule")});var qBe,GBe=g(()=>{Do();q_();Jg();qBe=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new ot(au(n,"Error",a))},"evaluateErrorRule")});var G_,HBe,HJ,$Be=g(()=>{Do();q_();UBe();GBe();G_=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=FBe(r,e);if(n)return n}else if(r.type==="error")qBe(r,e);else if(r.type==="tree"){let n=HJ.evaluateTreeRule(r,e);if(n)return n}else throw new ot(`Unknown endpoint rule: ${r}`);throw new ot("Rules evaluation failed")},"evaluateRules"),HBe=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=jg(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return HJ.evaluateRules(n,a)},"evaluateTreeRule"),HJ={evaluateRules:G_,evaluateTreeRule:HBe}});var zBe=g(()=>{$Be()});var aS,VBe=g(()=>{xe();sS();Do();zBe();aS=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${Vc} Initial EndpointParams: ${ko(r)}`);for(let c in s){if(!X(s,c))continue;let l=s[c],u=r[c];if(u==null&&l.default!=null){r[c]=l.default;continue}if(l.required&&u==null)throw new ot(`Missing required parameter: '${c}'`)}let a=G_(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Vc} Resolved endpoint: ${ko(a)}`),a},"resolveEndpoint")});var WBe,YBe=g(()=>{WBe=i(t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t},"resolveEndpointRequiredConfig")});var $J={};Fr($J,{BinaryDecisionDiagram:()=>Ci,EndpointCache:()=>Ii,EndpointError:()=>ot,customEndpointFunctions:()=>Hs,decideEndpoint:()=>Wc,endpointMiddleware:()=>n0t,endpointMiddlewareOptions:()=>IJ,getEndpointFromInstructions:()=>r0t,getEndpointPlugin:()=>lu,isIpAddress:()=>iu,isValidHostLabel:()=>oa,middlewareEndpointToEndpointV1:()=>No,resolveEndpoint:()=>aS,resolveEndpointConfig:()=>cu,resolveEndpointRequiredConfig:()=>WBe,resolveParams:()=>nS,toEndpointV1:()=>No});var r0t,cu,n0t,lu,Pt=g(()=>{rBe();Q_();CJ();wJ();dBe();xe();pBe();mBe();MBe();TJ();xe();SJ();VBe();Do();Q_();P_();wJ();YBe();r0t=__(rS),cu=uBe(rS),n0t=D_(rS),lu=lBe(rS)});var H_,zJ=g(()=>{Pt();H_=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>No(n.endpointV2):o.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await e(s.input,{...t,endpoint:a});return r({...s,request:c})},"serializerMiddleware")});function JBe(t,e,r){return{applyToStack:i(n=>{n.add(d_(t,r),VJ),n.add(H_(t,e),WJ)},"applyToStack")}}var VJ,WJ,jBe=g(()=>{J8();zJ();VJ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},WJ={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(JBe,"getSerdePlugin")});function KBe(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Nd(t,e):ArrayBuffer.isView(t)?ca(t.buffer,t.byteOffset,t.byteLength):ca(t)}var z_,$_,XBe=g(()=>{z_=require("node:crypto");Td();W8();$_=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(hs(KBe(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,z_.createHmac)(this.algorithmIdentifier,KBe(this.secret)):(0,z_.createHash)(this.algorithmIdentifier)}};i(KBe,"castSourceData")});var ZBe,Kg,YJ=g(()=>{ZBe=require("node:stream");k8();Kg=class extends ZBe.Readable{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:s,base64Encoder:o}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=o??vt,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=s,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=i(e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}},"onSourceData");onSourceEnd=i(async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}},"onSourceEnd");onSourceError=i(e=>{this.destroy(e)},"onSourceError");onSourceClose=i(()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))},"onSourceClose");_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Jr,Dd,la=g(()=>{Jr=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),Dd=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var eRe,tRe=g(()=>{eRe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var rRe,Ykr,nRe,V_,JJ,sRe,oRe=g(()=>{rRe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ykr=Object.entries(rRe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),nRe=rRe.split(""),V_=6,JJ=8,sRe=63});function W_(t){let e;typeof t=="string"?e=eRe(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o>d]}s+="==".slice(0,4-l)}return s}var jJ=g(()=>{tRe();oRe();i(W_,"toBase64")});var s0t,Y_,iRe=g(()=>{s0t=typeof ReadableStream=="function"?ReadableStream:function(){},Y_=class extends s0t{static{i(this,"ChecksumStream")}}});var aRe,cRe=g(()=>{jJ();la();iRe();aRe=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!Jr(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??W_;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(l,u){e.update(l),u.enqueue(l)},async flush(l){let u=await e.digest(),d=o(u);if(t!==d){let p=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${n}".`);l.error(p)}else l.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,Y_.prototype),c},"createChecksumStream")});function lRe(t){return typeof ReadableStream=="function"&&Jr(t.source)?aRe(t):new Kg(t)}var uRe=g(()=>{la();YJ();cRe();i(lRe,"createChecksumStream")});var uf,KJ=g(()=>{uf=class{static{i(this,"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){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;nnew Uint8Array(u))],c=-1,l=i(async u=>{let{value:d,done:p}=await n.read(),m=d;if(p){if(c!==-1){let f=df(a,c);uu(f)>0&&u.enqueue(f)}u.close()}else{let f=ZJ(m,!1);if(c!==f&&(c>=0&&u.enqueue(df(a,c)),c=f),c===-1){u.enqueue(m);return}let A=uu(m);o+=A;let h=uu(a[c]);if(A>=e&&h===0)u.enqueue(m);else{let E=XJ(a,c,m);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${A} is below threshold of ${e}, automatically buffering.`)),E>=e?u.enqueue(df(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function XJ(t,e,r){switch(e){case 0:return t[0]+=r,uu(t[0]);case 1:case 2:return t[e].push(r),uu(t[e])}}function df(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function uu(t){return t?.byteLength??t?.length??0}function ZJ(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var pRe=g(()=>{KJ();i(dRe,"createBufferedReadableStream");i(XJ,"merge");i(df,"flush");i(uu,"sizeOf");i(ZJ,"modeOf")});function fRe(t,e,r){if(Jr(t))return dRe(t,e,r);let n=new mRe.Readable({read(){}}),s=!1,o=0,a=["",new uf(l=>new Uint8Array(l)),new uf(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=ZJ(l,!0);if(c!==u&&(c>=0&&n.push(df(a,c)),c=u),c===-1){n.push(l);return}let d=uu(l);o+=d;let p=uu(a[c]);if(d>=e&&p===0)n.push(l);else{let m=XJ(a,c,l);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),m>=e&&n.push(df(a,c))}}),t.on("end",()=>{if(c!==-1){let l=df(a,c);uu(l)>0&&n.push(l)}n.push(null)}),n}var mRe,ARe=g(()=>{mRe=require("node:stream");KJ();pRe();la();i(fRe,"createBufferedReadable")});var hRe,gRe=g(()=>{hRe=i((t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:a}=e,c=r!==void 0&&n!==void 0&&s!==void 0&&o!==void 0&&a!==void 0,l=c?a(s,t):void 0;Promise.resolve(l).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(d){let{value:p,done:m}=await u.read();if(m){if(d.enqueue(`0\r -`),c){let f=r(await l);d.enqueue(`${o}:${f}\r +`),"stackTraceWarning"),Gg={warn:console.warn}});function Po(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${T0t[n]}, ${l} ${J8[r]} ${e} ${u}:${d}:${p} GMT`}var T0t,J8,P0t,Lbe,v0t,zg,_0t,Q0t,D0t,Qd,Vg,rS,k0t,L0t,O0t,Y8,M0t,F0t,U0t,Fc,q0t,G0t,Hg,Obe=g(()=>{W8();T0t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],J8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Po,"dateToUtcString");P0t=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Lbe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=P0t.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=_d(Hg(n)),p=Fc(s,"month",1,12),f=Fc(o,"day",1,31);return rS(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),v0t=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),zg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=v0t.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=_d(Hg(n)),f=Fc(s,"month",1,12),m=Fc(o,"day",1,31),A=rS(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&A.setTime(A.getTime()-G0t(d)),A},"parseRfc3339DateTimeWithOffset"),_0t=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$/),Q0t=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$/),D0t=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})$/),Qd=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=_0t.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return rS(_d(Hg(o)),Y8(s),Fc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=Q0t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return O0t(rS(k0t(o),Y8(s),Fc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=D0t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return rS(_d(Hg(u)),Y8(n),Fc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Vg=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=tS(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},"parseEpochTimestamp"),rS=i((t,e,r,n)=>{let s=e-1;return F0t(t,s,r),new Date(Date.UTC(t,s,r,Fc(n.hours,"hour",0,23),Fc(n.minutes,"minute",0,59),Fc(n.seconds,"seconds",0,60),q0t(n.fractionalMilliseconds)))},"buildDate"),k0t=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+_d(Hg(t));return rt.getTime()-new Date().getTime()>L0t?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),Y8=i(t=>{let e=J8.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),M0t=[31,28,31,30,31,30,31,31,30,31,30,31],F0t=i((t,e,r)=>{let n=M0t[e];if(e===1&&U0t(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${J8[e]} in ${t}: ${r}`)},"validateDayOfMonth"),U0t=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Fc=i((t,e,r,n)=>{let s=d_(Hg(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),q0t=i(t=>t==null?0:l_("0."+t)*1e3,"parseMilliseconds"),G0t=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),Hg=i(t=>{let e=0;for(;e{Dr=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Dr.from=t=>t&&typeof t=="object"&&(t instanceof Dr||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Dr(String(t)):Dr(JSON.stringify(t));Dr.fromObject=Dr.from});function p_(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var Fbe=g(()=>{i(p_,"quoteHeader")});function iu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var j8,K8,X8,Ube,qbe,$0t,H0t,z0t,V0t,W0t,Dd,f_,m_,Gbe=g(()=>{j8="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",K8="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",X8="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Ube="(\\d?\\d)",qbe="(\\d{4})",$0t=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),H0t=new RegExp(`^${j8}, ${Ube} ${K8} ${qbe} ${X8} GMT$`),z0t=new RegExp(`^${j8}, ${Ube}-${K8}-(\\d\\d) ${X8} GMT$`),V0t=new RegExp(`^${j8} ${K8} ( [1-9]|\\d\\d) ${X8} ${qbe}$`),W0t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Dd=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),f_=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=$0t.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;iu(n,1,12),iu(s,1,31),iu(o,0,23),iu(a,0,59),iu(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,f,m]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],A=p==="-"?1:-1;d.setTime(d.getTime()+A*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),m_=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=H0t.exec(t))?[,e,r,n,s,o,a,c]=l:(l=z0t.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=V0t.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),W0t.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);iu(e,1,31),iu(s,0,23),iu(o,0,59),iu(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(iu,"range")});function A_(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a{i(A_,"splitEvery")});var Wg,Hbe=g(()=>{Wg=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function h_(t){return new Ye(String(t),"bigDecimal")}var zbe,Ye,Vbe=g(()=>{zbe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Ye=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!zbe.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&zbe.test(r.string)}};i(h_,"nv")});function g_(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r{Wbe={},Z8={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Wbe[t]=e,Z8[e]=t}i(g_,"fromHex");i(Ii,"toHex")});var Yg,Uc,Ybe=g(()=>{Yg=require("node:fs"),Uc=i(t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Yg.ReadStream){if(t.path!=null)return(0,Yg.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Yg.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var gs,tJ=g(()=>{r_();gs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Yr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function qc(t,e){if(e===void 0){e=0;for(let s of t)e+=s.byteLength}let r=new Uint8Array(e),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}var nS=g(()=>{i(qc,"concatBytes")});var y_,rJ,nJ=g(()=>{we();y_=i((t,e)=>(r,n)=>async s=>{let{response:o}=await r(s);try{let a=await e(o,t);return{response:o,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=` + `+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(an.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:rJ(/^x-[\w-]+-request-?id$/,u),extendedRequestId:rJ(/^x-[\w-]+-id-2$/,u),cfId:rJ(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),rJ=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var vo,sS=g(()=>{vo=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var kd,E_=g(()=>{sS();kd=class t extends vo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var C_,Jbe=g(()=>{sS();C_=class t extends vo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var I_,sJ=g(()=>{sS();I_=i((...t)=>async()=>{if(t.length===0)throw new vo("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var w_,oJ=g(()=>{w_=i(t=>()=>Promise.resolve(t),"fromValue")});var Jg,S_=g(()=>{Jg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var cn,x_=g(()=>{cn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var jbe,Kbe=g(()=>{jbe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var kr,b_=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(kr||(kr={}))});var Xbe,Zbe,iJ,Y0t,Gc,jg=g(()=>{Xbe=require("node:os"),Zbe=require("node:path"),iJ={},Y0t=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Gc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${Zbe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=Y0t();return iJ[s]||(iJ[s]=(0,Xbe.homedir)()),iJ[s]},"getHomeDir")});var aJ,cJ,B_,lJ=g(()=>{aJ="AWS_PROFILE",cJ="default",B_=i(t=>t.profile||process.env[aJ]||cJ,"getProfileName")});var e0e,t0e,R_,uJ=g(()=>{e0e=require("node:crypto"),t0e=require("node:path");jg();R_=i(t=>{let r=(0,e0e.createHash)("sha1").update(t).digest("hex");return(0,t0e.join)(Gc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var r0e,oS,n0e,dJ=g(()=>{r0e=require("node:fs/promises");uJ();oS={},n0e=i(async t=>{if(oS[t])return oS[t];let e=R_(t),r=await(0,r0e.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var $c,s0e=g(()=>{$c="."});var pJ,o0e,i0e=g(()=>{pJ=R(ia()),o0e=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(pJ.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===pJ.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var a0e,J0t,N_,fJ=g(()=>{a0e=require("node:path");jg();J0t="AWS_CONFIG_FILE",N_=i(()=>process.env[J0t]||(0,a0e.join)(Gc(),".aws","config"),"getConfigFilepath")});var c0e,j0t,l0e,u0e=g(()=>{c0e=require("node:path");jg();j0t="AWS_SHARED_CREDENTIALS_FILE",l0e=i(()=>process.env[j0t]||(0,c0e.join)(Gc(),".aws","credentials"),"getCredentialsFilepath")});var d0e,K0t,X0t,iS,mJ=g(()=>{d0e=R(ia()),K0t=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,X0t=["__proto__","profile __proto__"],iS=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=K0t.exec(c);if(l){let[,u,,d]=l;Object.values(d0e.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(X0t.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var p0e,AJ,aS,mm,cS=g(()=>{p0e=require("node:fs/promises"),AJ={},aS={},mm=i((t,e)=>aS[t]!==void 0?aS[t]:((!AJ[t]||e?.ignoreCache)&&(AJ[t]=(0,p0e.readFile)(t,"utf8")),AJ[t]),"readFile")});var hJ,f0e,Kg,T_=g(()=>{hJ=require("node:path");i0e();fJ();u0e();jg();mJ();cS();f0e=i(()=>({}),"swallowError"),Kg=i(async(t={})=>{let{filepath:e=l0e(),configFilepath:r=N_()}=t,n=Gc(),s="~/",o=e;e.startsWith(s)&&(o=(0,hJ.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,hJ.join)(n,r.slice(2)));let c=await Promise.all([mm(a,{ignoreCache:t.ignoreCache}).then(iS).then(o0e).catch(f0e),mm(o,{ignoreCache:t.ignoreCache}).then(iS).catch(f0e)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var m0e,A0e,h0e=g(()=>{m0e=R(ia()),A0e=i(t=>Object.entries(t).filter(([e])=>e.startsWith(m0e.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var Z0t,g0e,y0e=g(()=>{fJ();h0e();mJ();cS();Z0t=i(()=>({}),"swallowError"),g0e=i(async(t={})=>mm(t.configFilepath??N_()).then(iS).then(A0e).catch(Z0t),"loadSsoSessionData")});var E0e,C0e=g(()=>{E0e=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var I0e,w0e=g(()=>{T_();C0e();I0e=i(async t=>{let e=await Kg(t);return E0e(e.configFile,e.credentialsFile)},"parseKnownFiles")});var S0e,x0e=g(()=>{dJ();cS();S0e={getFileRecord(){return aS},interceptFile(t,e){aS[t]=Promise.resolve(e)},getTokenRecord(){return oS},interceptToken(t,e){oS[t]=e}}});function P_(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var gJ=g(()=>{i(P_,"getSelectorName")});var b0e,B0e=g(()=>{E_();gJ();b0e=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new kd(r.message||`Not found in ENV: ${P_(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var R0e,N0e=g(()=>{E_();lJ();T_();gJ();R0e=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=B_(r),{configFile:s,credentialsFile:o}=await Kg(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new kd(u.message||`Not found in config files w/ profile [${n}]: ${P_(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var eBt,v_,yJ=g(()=>{oJ();eBt=i(t=>typeof t=="function","isFunction"),v_=i(t=>eBt(t)?async()=>await t():w_(t),"fromStatic")});var _e,EJ=g(()=>{sJ();S_();B0e();N0e();yJ();_e=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return Jg(I_(b0e(t,{signingName:s,logger:o}),R0e(e,n),v_(r)))},"loadConfig")});var __,Q_,T0e,Hc,P0e,v0e=g(()=>{x_();b_();__="AWS_USE_DUALSTACK_ENDPOINT",Q_="use_dualstack_endpoint",T0e=!1,Hc={environmentVariableSelector:i(t=>cn(t,__,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,Q_,kr.CONFIG),"configFileSelector"),default:!1},P0e={environmentVariableSelector:i(t=>cn(t,__,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,Q_,kr.CONFIG),"configFileSelector"),default:void 0}});var D_,k_,_0e,zc,Q0e,D0e=g(()=>{x_();b_();D_="AWS_USE_FIPS_ENDPOINT",k_="use_fips_endpoint",_0e=!1,zc={environmentVariableSelector:i(t=>cn(t,D_,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,k_,kr.CONFIG),"configFileSelector"),default:!1},Q0e={environmentVariableSelector:i(t=>cn(t,D_,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,k_,kr.CONFIG),"configFileSelector"),default:void 0}});var k0e,L0e=g(()=>{Ce();k0e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:bt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:bt(s??!1)})},"resolveCustomEndpointsConfig")});var O0e,M0e=g(()=>{O0e=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var F0e,U0e=g(()=>{Ce();M0e();F0e=i(t=>{let e=bt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?bt(typeof r=="string"?s(r):r):()=>O0e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var q0e,CJ,IJ,G0e,$0e,H0e,z0e,V0e,W0e,wJ=g(()=>{q0e="AWS_EXECUTION_ENV",CJ="AWS_REGION",IJ="AWS_DEFAULT_REGION",G0e="AWS_EC2_METADATA_DISABLED",$0e=["in-region","cross-region","mobile","standard","legacy"],H0e="/latest/meta-data/placement/region",z0e="/latest/api/token",V0e="x-aws-ec2-metadata-token",W0e="x-aws-ec2-metadata-token-ttl-seconds"});var Y0e,tBt,K0e,L_,J0e,rBt,j0e,SJ=g(()=>{wJ();Y0e=1e3,tBt=6e4,K0e=0,L_=i(async()=>{if(!process.env[G0e]&&!(Date.now(){K0e=Date.now()+tBt},"cacheNegativeAndReturnUndefined"),rBt=i(()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},"resolveImdsEndpoint"),j0e=i(async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let s=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:Y0e,signal:AbortSignal.timeout(Y0e)});s.on("error",o=>{n(o),s.destroy()}),s.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",o=>{let{statusCode:a=400}=o;if(a<200||a>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:a})),s.destroy();return}let c=[];o.on("data",l=>c.push(l)),o.on("end",()=>{r(Buffer.concat(c)),s.destroy()})}),s.end()})},"imdsRequest")});var Xg,Zg,Rn,ys,xJ=g(()=>{SJ();Xg="AWS_REGION",Zg="region",Rn={environmentVariableSelector:i(t=>t[Xg],"environmentVariableSelector"),configFileSelector:i(t=>t[Zg],"configFileSelector"),default:i(async()=>{let t=await L_();if(t)return t;throw new Error("Region is missing")},"default")},ys={preferredFile:"credentials"}});var X0e,Z0e,eBe=g(()=>{we();X0e=new Set,Z0e=i((t,e=aa)=>{if(!X0e.has(t)&&!e(t))if(t==="*")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="${t}" is not a valid hostname component.`);else X0e.add(t)},"checkRegion")});var O_,bJ=g(()=>{O_=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var tBe,rBe=g(()=>{bJ();tBe=i(t=>O_(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var _o,nBe=g(()=>{eBe();rBe();bJ();_o=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=tBe(n);return Z0e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return O_(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var BJ,sBe=g(()=>{BJ=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var oBe,iBe=g(()=>{oBe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var aBe,cBe=g(()=>{aBe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var lBe,uBe=g(()=>{lBe=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var dBe,pBe=g(()=>{sBe();iBe();cBe();uBe();dBe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=aBe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=BJ(s[c]?.variants,l),d=BJ(o[a]?.variants,l),p=oBe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=lBe(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...f&&{signingRegion:f},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var nBt,sBt,fBe,mBe=g(()=>{nBt="AWS_DEFAULTS_MODE",sBt="defaults_mode",fBe={environmentVariableSelector:i(t=>t[nBt],"environmentVariableSelector"),configFileSelector:i(t=>t[sBt],"configFileSelector"),default:"legacy"}});var Vc,oBt,iBt,ABe=g(()=>{xJ();SJ();EJ();S_();wJ();mBe();Vc=i(({region:t=_e(Rn),defaultsMode:e=_e(fBe)}={})=>Jg(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return oBt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${$0e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),oBt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await iBt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),iBt=i(async()=>process.env[q0e]&&(process.env[CJ]||process.env[IJ])?process.env[CJ]??process.env[IJ]:L_(),"inferPhysicalRegion")});var Qo={};Mr(Qo,{CONFIG_PREFIX_SEPARATOR:()=>$c,CONFIG_USE_DUALSTACK_ENDPOINT:()=>Q_,CONFIG_USE_FIPS_ENDPOINT:()=>k_,CredentialsProviderError:()=>kd,DEFAULT_PROFILE:()=>cJ,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>T0e,DEFAULT_USE_FIPS_ENDPOINT:()=>_0e,ENV_PROFILE:()=>aJ,ENV_USE_DUALSTACK_ENDPOINT:()=>__,ENV_USE_FIPS_ENDPOINT:()=>D_,NODE_REGION_CONFIG_FILE_OPTIONS:()=>ys,NODE_REGION_CONFIG_OPTIONS:()=>Rn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Hc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>zc,ProviderError:()=>vo,REGION_ENV_NAME:()=>Xg,REGION_INI_NAME:()=>Zg,SelectorType:()=>kr,TokenProviderError:()=>C_,booleanSelector:()=>cn,chain:()=>I_,externalDataInterceptor:()=>S0e,fromStatic:()=>v_,fromValue:()=>w_,getHomeDir:()=>Gc,getProfileName:()=>B_,getRegionInfo:()=>dBe,getSSOTokenFilepath:()=>R_,getSSOTokenFromFile:()=>n0e,loadConfig:()=>_e,loadSharedConfigFiles:()=>Kg,loadSsoSessionData:()=>g0e,memoize:()=>Jg,nodeDualstackConfigSelectors:()=>P0e,nodeFipsConfigSelectors:()=>Q0e,numberSelector:()=>jbe,parseKnownFiles:()=>I0e,readFile:()=>mm,resolveCustomEndpointsConfig:()=>k0e,resolveDefaultsModeConfig:()=>Vc,resolveEndpointsConfig:()=>F0e,resolveRegionConfig:()=>_o});var gt=g(()=>{sS();E_();Jbe();sJ();oJ();S_();x_();Kbe();b_();jg();lJ();uJ();dJ();s0e();T_();y0e();w0e();x0e();cS();EJ();yJ();v0e();D0e();L0e();U0e();xJ();nBe();pBe();ABe()});var hBe,gBe,yBe,EBe=g(()=>{hBe="AWS_ENDPOINT_URL",gBe="endpoint_url",yBe=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[hBe,...r].join("_")];if(n)return n;let s=e[hBe];if(s)return s},"environmentVariableSelector"),configFileSelector:i((e,r)=>{if(e.services){let s=["services",e.services].join(".");if(!r||!r[s])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let o=r[s],a=t.split(" ").map(l=>l.toLowerCase()),c=o[[a.join("_"),gBe].join(".")];if(c)return c}let n=e[gBe];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var aBt,cBt,CBe,IBe=g(()=>{gt();aBt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",cBt="ignore_configured_endpoint_urls",CBe={environmentVariableSelector:i(t=>cn(t,aBt,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,cBt,kr.CONFIG),"configFileSelector"),default:!1}});var lS,wBe=g(()=>{gt();EBe();IBe();lS=i(async t=>{if(!await _e(CBe)())return _e(yBe(t??""))()},"getEndpointFromConfig")});var RJ,lBt,uBt,dBt,SBe,xBe,bBe=g(()=>{RJ=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),xBe(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!SBe(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},"resolveParamsForS3"),lBt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,uBt=/(\d+\.){3}\d+/,dBt=/\.\./,SBe=i(t=>lBt.test(t)&&!uBt.test(t)&&!dBt.test(t),"isDnsCompatibleBucketName"),xBe=i(t=>{let[e,r,n,,,s]=t.split(":"),o=e==="arn"&&t.split(":").length>=6,a=!!(o&&r&&n&&s);if(o&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},"isArnBucketName")});var BBe=g(()=>{bBe()});var RBe,NBe=g(()=>{RBe=i((t,e,r,n=!1)=>{let s=i(async()=>{let o;return n?o=r.clientContextParams?.[t]??r[t]??r[e]:o=r[t]??r[e],typeof o=="function"?o():o},"configProvider");return t==="credentialScope"||e==="CredentialScope"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.credentialScope??o?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.accountId??o?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:a,hostname:c,port:l,path:u}=o;return`${a}//${c}${l?":"+l:""}${u}`}}return o}:s},"createConfigValueProvider")});var M_=g(()=>{we()});function F_(t){return async(e,r,n,s)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let c;n.serviceConfiguredEndpoint?c=await n.serviceConfiguredEndpoint():c=await t(n.serviceId),c&&(n.endpoint=()=>Promise.resolve(No(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await uS(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=n.endpointProvider(o,s);if(n.isCustomEndpoint&&n.endpoint){let c=await n.endpoint();if(c?.headers){a.headers??={};for(let[l,u]of Object.entries(c.headers))a.headers[l]=Array.isArray(u)?u:[u]}}return a}}var uS,U_=g(()=>{BBe();NBe();M_();i(F_,"bindGetEndpointFromInstructions");uS=i(async(t,e,r)=>{let n={},s=e?.getEndpointParameterInstructions?.()||{};for(let[o,a]of Object.entries(s))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await RBe(a.name,o,r,a.type!=="builtInParams")();break;case"operationContextParams":n[o]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await RJ(n),n},"resolveParams")});function pBt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function q_(t){let e=F_(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&pBt(o,"ENDPOINT_OVERRIDE","N");let c=await e(a.input,{getEndpointParameterInstructions(){return n}},{...r},o);o.endpointV2=c,o.authSchemes=c.properties?.authSchemes;let l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;let d=xt(o)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return s({...a})}}var NJ=g(()=>{we();U_();i(pBt,"setFeature");i(q_,"bindEndpointMiddleware")});function TBe(t){let e=q_(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),TJ)},"applyToStack")})}var fBt,TJ,PJ=g(()=>{NJ();fBt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},TJ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:fBt.name};i(TBe,"bindGetEndpointPlugin")});function PBe(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>No(await bt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:bt(s??!1),useFipsEndpoint:bt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var vBe=g(()=>{we();M_();i(PBe,"bindResolveEndpointConfig")});var wi,_Be=g(()=>{wi=class t{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(e,r,n,s){this.nodes=e,this.root=r,this.conditions=n,this.results=s}static from(e,r,n,s){return new t(e,r,n,s)}}});var Si,QBe=g(()=>{Si=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let s=this.data.keys(),o=0;for(;;){let{value:a,done:c}=s.next();if(this.data.delete(a),c||++o>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let s of n){let o=e[s],a=o==null?"\0":String(o);if(a.includes("|;"))return!1;r+=a+"|;"}return r}}});var ot,DBe=g(()=>{ot=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Do=g(()=>{DBe()});var Wc,kBe=g(()=>{Wc="endpoints"});function ko(t){return typeof t!="object"||t==null?t:"ref"in t?`$${ko(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(ko).join(", ")})`:JSON.stringify(t,null,2)}var LBe=g(()=>{i(ko,"toDebugString")});var dS=g(()=>{kBe();LBe()});var Vs,vJ=g(()=>{Vs={}});var _J,OBe=g(()=>{_J=i((t,e)=>t===e,"booleanEquals")});function QJ(...t){for(let e of t)if(e!=null)return e}var MBe=g(()=>{i(QJ,"coalesce")});var FBe,UBe=g(()=>{Do();FBe=i(t=>{let e=t.split("."),r=[];for(let n of e){let s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new ot(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new ot(`Invalid array index: '${o}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(o)}else r.push(n)}return r},"getAttrPathList")});var pS,qBe=g(()=>{Do();UBe();pS=i((t,e)=>FBe(e).reduce((r,n)=>{if(typeof r!="object")throw new ot(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let s=parseInt(n);return r[s<0?r.length+s:s]}return r[n]},t),"getAttr")});var DJ,GBe=g(()=>{DJ=i(t=>t!=null,"isSet")});function kJ(t,e,r){return t?e:r}var $Be=g(()=>{i(kJ,"ite")});var LJ,HBe=g(()=>{LJ=i(t=>!t,"not")});var mBt,au,OJ=g(()=>{mBt=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}$"),au=i(t=>mBt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var G_,MJ,FJ,zBe=g(()=>{G_=R(ia());OJ();MJ={[G_.EndpointURLScheme.HTTP]:80,[G_.EndpointURLScheme.HTTPS]:443},FJ=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:f,port:m,protocol:A="",path:h="",query:E={}}=t,y=new URL(`${A}//${f}${m?`:${m}`:""}${h}`);return y.search=Object.entries(E).map(([I,x])=>`${I}=${x}`).join("&"),y}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=e;if(c)return null;let l=a.slice(0,-1);if(!Object.values(G_.EndpointURLScheme).includes(l))return null;let u=au(s),d=r.includes(`${n}:${MJ[l]}`)||typeof t=="string"&&t.includes(`${n}:${MJ[l]}`),p=`${n}${d?`:${MJ[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function UJ(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var VBe=g(()=>{i(UJ,"split")});var qJ,WBe=g(()=>{qJ=i((t,e)=>t===e,"stringEquals")});var GJ,YBe=g(()=>{GJ=i((t,e,r,n)=>t==null||e>=r||t.length{$J=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var HJ=g(()=>{OBe();MBe();qBe();GBe();we();$Be();HBe();zBe();VBe();WBe();YBe();JBe()});var jBe,KBe=g(()=>{HJ();jBe={booleanEquals:_J,coalesce:QJ,getAttr:pS,isSet:DJ,isValidHostLabel:aa,ite:kJ,not:LJ,parseURL:FJ,split:UJ,stringEquals:qJ,substring:GJ,uriEncode:$J}});var $_,zJ=g(()=>{HJ();$_=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{XBe=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var cu,H_,eRe,ey=g(()=>{Do();vJ();KBe();zJ();ZBe();cu=i((t,e,r)=>{if(typeof t=="string")return $_(t,r);if(t.fn)return eRe.callFunction(t,r);if(t.ref)return XBe(t,r);throw new ot(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),H_=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{ey()});var z_,VJ=g(()=>{dS();Do();tRe();z_=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new ot(`'${r}' is already defined in Reference Record.`);let n=H_(t,e);e.logger?.debug?.(`${Wc} evaluateCondition: ${ko(t)} = ${ko(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var V_,WJ=g(()=>{Do();ey();V_=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=cu(o,"Header value entry",e);if(typeof a!="string")throw new ot(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var fS,rRe,nRe,YJ=g(()=>{Do();zJ();fS=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=nRe.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),rRe=i((t,e)=>{if(Array.isArray(t))return t.map(r=>rRe(r,e));switch(typeof t){case"string":return $_(t,e);case"object":if(t===null)throw new ot(`Unexpected endpoint property: ${t}`);return nRe.getEndpointProperties(t,e);case"boolean":return t;default:throw new ot(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),nRe={getEndpointProperty:rRe,getEndpointProperties:fS}});var W_,JJ=g(()=>{Do();ey();W_=i((t,e)=>{let r=cu(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new ot(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var jJ,Yc,sRe=g(()=>{Do();VJ();ey();WJ();YJ();JJ();jJ=1e8,Yc=i((t,e)=>{let{nodes:r,root:n,results:s,conditions:o}=t,a=n,c={},l={referenceRecord:c,endpointParams:e.endpointParams,logger:e.logger};for(;a!==1&&a!==-1&&a=0===E.result?p:f}if(a>=jJ){let u=s[a-jJ];if(u[0]===-1){let[,m]=u;throw new ot(cu(m,"Error",l))}let[d,p,f]=u;return{url:W_(d,l),properties:fS(p,l),headers:V_(f??{},l)}}throw new ot("No matching endpoint.")},"decideEndpoint")});var ty,Y_=g(()=>{dS();VJ();ty=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=z_(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${Wc} assign: ${c.name} := ${ko(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var oRe,iRe=g(()=>{dS();Y_();WJ();YJ();JJ();oRe=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=ty(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${Wc} Resolving endpoint from template: ${ko(n)}`);let d={url:W_(c,a)};return u!=null&&(d.headers=V_(u,a)),l!=null&&(d.properties=fS(l,a)),d},"evaluateEndpointRule")});var aRe,cRe=g(()=>{Do();Y_();ey();aRe=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=ty(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new ot(cu(n,"Error",a))},"evaluateErrorRule")});var J_,lRe,KJ,uRe=g(()=>{Do();Y_();iRe();cRe();J_=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=oRe(r,e);if(n)return n}else if(r.type==="error")aRe(r,e);else if(r.type==="tree"){let n=KJ.evaluateTreeRule(r,e);if(n)return n}else throw new ot(`Unknown endpoint rule: ${r}`);throw new ot("Rules evaluation failed")},"evaluateRules"),lRe=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=ty(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return KJ.evaluateRules(n,a)},"evaluateTreeRule"),KJ={evaluateRules:J_,evaluateTreeRule:lRe}});var dRe=g(()=>{uRe()});var mS,pRe=g(()=>{we();dS();Do();dRe();mS=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${Wc} Initial EndpointParams: ${ko(r)}`);for(let c in s){if(!X(s,c))continue;let l=s[c],u=r[c];if(u==null&&l.default!=null){r[c]=l.default;continue}if(l.required&&u==null)throw new ot(`Missing required parameter: '${c}'`)}let a=J_(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Wc} Resolved endpoint: ${ko(a)}`),a},"resolveEndpoint")});var fRe,mRe=g(()=>{fRe=i(t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t},"resolveEndpointRequiredConfig")});var XJ={};Mr(XJ,{BinaryDecisionDiagram:()=>wi,EndpointCache:()=>Si,EndpointError:()=>ot,customEndpointFunctions:()=>Vs,decideEndpoint:()=>Yc,endpointMiddleware:()=>hBt,endpointMiddlewareOptions:()=>TJ,getEndpointFromInstructions:()=>ABt,getEndpointPlugin:()=>uu,isIpAddress:()=>au,isValidHostLabel:()=>aa,middlewareEndpointToEndpointV1:()=>No,resolveEndpoint:()=>mS,resolveEndpointConfig:()=>lu,resolveEndpointRequiredConfig:()=>fRe,resolveParams:()=>uS,toEndpointV1:()=>No});var ABt,lu,hBt,uu,vt=g(()=>{wBe();U_();NJ();PJ();vBe();we();_Be();QBe();sRe();OJ();we();vJ();pRe();Do();U_();M_();PJ();mRe();ABt=F_(lS),lu=PBe(lS),hBt=q_(lS),uu=TBe(lS)});var j_,ZJ=g(()=>{vt();j_=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>No(n.endpointV2):o.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await e(s.input,{...t,endpoint:a});return r({...s,request:c})},"serializerMiddleware")});function ARe(t,e,r){return{applyToStack:i(n=>{n.add(y_(t,r),ej),n.add(j_(t,e),tj)},"applyToStack")}}var ej,tj,hRe=g(()=>{nJ();ZJ();ej={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tj={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(ARe,"getSerdePlugin")});function gRe(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Pd(t,e):ArrayBuffer.isView(t)?ua(t.buffer,t.byteOffset,t.byteLength):ua(t)}var X_,K_,yRe=g(()=>{X_=require("node:crypto");vd();tJ();K_=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(gs(gRe(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,X_.createHmac)(this.algorithmIdentifier,gRe(this.secret)):(0,X_.createHash)(this.algorithmIdentifier)}};i(gRe,"castSourceData")});var ERe,ry,rj=g(()=>{ERe=require("node:stream");$8();ry=class extends ERe.Readable{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:s,base64Encoder:o}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=o??Pt,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=s,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=i(e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}},"onSourceData");onSourceEnd=i(async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}},"onSourceEnd");onSourceError=i(e=>{this.destroy(e)},"onSourceError");onSourceClose=i(()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))},"onSourceClose");_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Jr,Ld,da=g(()=>{Jr=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),Ld=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var CRe,IRe=g(()=>{CRe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var wRe,OOr,SRe,Z_,nj,xRe,bRe=g(()=>{wRe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OOr=Object.entries(wRe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),SRe=wRe.split(""),Z_=6,nj=8,xRe=63});function eQ(t){let e;typeof t=="string"?e=CRe(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o>d]}s+="==".slice(0,4-l)}return s}var sj=g(()=>{IRe();bRe();i(eQ,"toBase64")});var gBt,tQ,BRe=g(()=>{gBt=typeof ReadableStream=="function"?ReadableStream:function(){},tQ=class extends gBt{static{i(this,"ChecksumStream")}}});var RRe,NRe=g(()=>{sj();da();BRe();RRe=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!Jr(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??eQ;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(l,u){e.update(l),u.enqueue(l)},async flush(l){let u=await e.digest(),d=o(u);if(t!==d){let p=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${n}".`);l.error(p)}else l.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,tQ.prototype),c},"createChecksumStream")});function TRe(t){return typeof ReadableStream=="function"&&Jr(t.source)?RRe(t):new ry(t)}var PRe=g(()=>{da();rj();NRe();i(TRe,"createChecksumStream")});var Am,oj=g(()=>{Am=class{static{i(this,"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){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;nnew Uint8Array(u))],c=-1,l=i(async u=>{let{value:d,done:p}=await n.read(),f=d;if(p){if(c!==-1){let m=hm(a,c);du(m)>0&&u.enqueue(m)}u.close()}else{let m=aj(f,!1);if(c!==m&&(c>=0&&u.enqueue(hm(a,c)),c=m),c===-1){u.enqueue(f);return}let A=du(f);o+=A;let h=du(a[c]);if(A>=e&&h===0)u.enqueue(f);else{let E=ij(a,c,f);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${A} is below threshold of ${e}, automatically buffering.`)),E>=e?u.enqueue(hm(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function ij(t,e,r){switch(e){case 0:return t[0]+=r,du(t[0]);case 1:case 2:return t[e].push(r),du(t[e])}}function hm(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function du(t){return t?.byteLength??t?.length??0}function aj(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var _Re=g(()=>{oj();i(vRe,"createBufferedReadableStream");i(ij,"merge");i(hm,"flush");i(du,"sizeOf");i(aj,"modeOf")});function DRe(t,e,r){if(Jr(t))return vRe(t,e,r);let n=new QRe.Readable({read(){}}),s=!1,o=0,a=["",new Am(l=>new Uint8Array(l)),new Am(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=aj(l,!0);if(c!==u&&(c>=0&&n.push(hm(a,c)),c=u),c===-1){n.push(l);return}let d=du(l);o+=d;let p=du(a[c]);if(d>=e&&p===0)n.push(l);else{let f=ij(a,c,l);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),f>=e&&n.push(hm(a,c))}}),t.on("end",()=>{if(c!==-1){let l=hm(a,c);du(l)>0&&n.push(l)}n.push(null)}),n}var QRe,kRe=g(()=>{QRe=require("node:stream");oj();_Re();da();i(DRe,"createBufferedReadable")});var LRe,ORe=g(()=>{LRe=i((t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:a}=e,c=r!==void 0&&n!==void 0&&s!==void 0&&o!==void 0&&a!==void 0,l=c?a(s,t):void 0;Promise.resolve(l).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(d){let{value:p,done:f}=await u.read();if(f){if(d.enqueue(`0\r +`),c){let m=r(await l);d.enqueue(`${o}:${m}\r `),d.enqueue(`\r `)}d.close()}else d.enqueue(`${(n(p)||0).toString(16)}\r ${p}\r -`)}})},"getAwsChunkedEncodingStream")});function ERe(t,e){let r=t,n=t;if(Jr(n))return hRe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0;Promise.resolve(d).catch(()=>{});let p=new yRe.Readable({read(){r.resume()}});return r.on("data",m=>{let f=o(m)||0;f!==0&&(p.push(`${f.toString(16)}\r -`),p.push(m),p.push(`\r -`)||r.pause())}),r.on("error",m=>{p.destroy(m)}),r.pause(),r.on("end",async()=>{try{if(p.push(`0\r -`),u){let m=s(await d);p.push(`${c}:${m}\r +`)}})},"getAwsChunkedEncodingStream")});function FRe(t,e){let r=t,n=t;if(Jr(n))return LRe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0;Promise.resolve(d).catch(()=>{});let p=new MRe.Readable({read(){r.resume()}});return r.on("data",f=>{let m=o(f)||0;m!==0&&(p.push(`${m.toString(16)}\r +`),p.push(f),p.push(`\r +`)||r.pause())}),r.on("error",f=>{p.destroy(f)}),r.pause(),r.on("end",async()=>{try{if(p.push(`0\r +`),u){let f=s(await d);p.push(`${c}:${f}\r `),p.push(`\r -`)}p.push(null)}catch(m){p.destroy(m)}}),p}var yRe,CRe=g(()=>{yRe=require("node:stream");gRe();la();i(ERe,"getAwsChunkedEncodingStream")});async function IRe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var wRe=g(()=>{i(IRe,"headStream")});var SRe,xRe,ej,bRe=g(()=>{SRe=require("node:stream");jw();wRe();la();xRe=i((t,e)=>Jr(t)?IRe(t,e):new Promise((r,n)=>{let s=new ej;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Uc(this.buffers);r(o)})}),"headStream"),ej=class extends SRe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var BRe,RRe=g(()=>{BRe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});async function tj(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function rj(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return Uc(e,n)}var NRe,nj=g(()=>{jw();la();NRe=i(async t=>Dd(t)?tj(t):rj(t),"streamCollector");i(tj,"collectBlob");i(rj,"collectReadableStream")});var TRe,PRe,vRe,_Re=g(()=>{jJ();V8();RRe();nj();la();TRe="The stream has already been transformed.",PRe=i(t=>{if(!vRe(t)&&!Jr(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(TRe);return e=!0,await NRe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -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 s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return W_(o);if(s==="hex")return Ei(o);if(s===void 0||s==="utf8"||s==="utf-8")return BRe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(TRe);if(e=!0,vRe(t))return n(t);if(Jr(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),vRe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var QRe,J_,sj,oj=g(()=>{QRe=require("node:stream");jw();nj();la();J_=i(t=>Dd(t)?tj(t):Jr(t)?rj(t):new Promise((e,r)=>{let n=new sj,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Uc(this.bufferedBytes);e(o)})}),"streamCollector"),sj=class extends QRe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var j_,DRe,K_,kRe=g(()=>{j_=require("node:stream");Td();_Re();oj();DRe="The stream has already been transformed.",K_=i(t=>{if(!(t instanceof j_.Readable))try{return PRe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(DRe);return e=!0,await J_(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?ca(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(DRe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof j_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,j_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function LRe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var ORe=g(()=>{i(LRe,"splitStream")});async function MRe(t){if(Jr(t)||Dd(t))return LRe(t);let e=new ij.PassThrough,r=new ij.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var ij,FRe=g(()=>{ij=require("node:stream");ORe();la();i(MRe,"splitStream")});var mf={};Fr(mf,{ChecksumStream:()=>Kg,Hash:()=>$_,LazyJsonString:()=>Lr,NumericValue:()=>Je,Uint8ArrayBlobAdapter:()=>pf,_parseEpochTimestamp:()=>_d,_parseRfc3339DateTimeWithOffset:()=>i_,_parseRfc7231DateTime:()=>a_,calculateBodyLength:()=>Fc,concatBytes:()=>Uc,copyDocumentWithTransform:()=>rbe,createBufferedReadable:()=>fRe,createChecksumStream:()=>lRe,dateToUtcString:()=>vo,deserializerMiddleware:()=>d_,deserializerMiddlewareOption:()=>VJ,expectBoolean:()=>obe,expectByte:()=>ZP,expectFloat32:()=>Ww,expectInt:()=>ibe,expectInt32:()=>KP,expectLong:()=>Lg,expectNonNull:()=>abe,expectNumber:()=>kg,expectObject:()=>O8,expectShort:()=>XP,expectString:()=>cbe,expectUnion:()=>t_,fromArrayBuffer:()=>ca,fromBase64:()=>fr,fromHex:()=>u_,fromString:()=>Nd,fromUtf8:()=>Yr,generateIdempotencyToken:()=>Lo,getAwsChunkedEncodingStream:()=>ERe,getSerdePlugin:()=>JBe,handleFloat:()=>ube,hasOwn:()=>X,headStream:()=>xRe,isArrayBuffer:()=>YP,isBlob:()=>Dd,isReadableStream:()=>Jr,limitedParseDouble:()=>n_,limitedParseFloat:()=>dbe,limitedParseFloat32:()=>pbe,logger:()=>Og,nv:()=>l_,parseBoolean:()=>sbe,parseEpochTimestamp:()=>qg,parseRfc3339DateTime:()=>hbe,parseRfc3339DateTimeWithOffset:()=>Ug,parseRfc7231DateTime:()=>Pd,quoteHeader:()=>o_,sdkStreamMixin:()=>K_,serializerMiddleware:()=>H_,serializerMiddlewareOption:()=>WJ,splitEvery:()=>c_,splitHeader:()=>Gg,splitStream:()=>MRe,streamCollector:()=>J_,strictParseByte:()=>s_,strictParseDouble:()=>Yw,strictParseFloat:()=>lbe,strictParseFloat32:()=>r_,strictParseInt:()=>fbe,strictParseInt32:()=>Abe,strictParseLong:()=>M8,strictParseShort:()=>vd,toBase64:()=>vt,toHex:()=>Ei,toUint8Array:()=>hs,toUtf8:()=>Mt,v4:()=>Xg});var URe,pf,o0t,Xg,Lo,Se=g(()=>{URe=require("node:crypto");jxe();k8();Xxe();JP();Zxe();tbe();nbe();gbe();ybe();F8();Ebe();wbe();Sbe();xbe();Bbe();V8();Nbe();W8();jw();Td();D8();J8();jBe();zJ();XBe();YJ();uRe();ARe();CRe();bRe();kRe();FRe();la();oj();xe();pf=class extends Kxe(Mt,Yr,vt,fr){static{i(this,"Uint8ArrayBlobAdapter")}},o0t=URe.getRandomValues,Xg=ebe(o0t),Lo=Xg});var jr,Zg=g(()=>{Se();jr=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return pf.mutate(t);if(!t)return pf.mutate(new Uint8Array);let r=e.streamCollector(t);return pf.mutate(await r)},"collectBody")});function ua(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var X_=g(()=>{i(ua,"extendedEncodeURIComponent")});var ln,ey=g(()=>{ln=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function Z_(t,e,r=1024*1024){let n=t.size,s=0;for(;s{i(Z_,"blobReader")});var qRe,GRe=g(()=>{aj();qRe=i(async function(e,r){let n=new e;return await Z_(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var HRe,ty,cj=g(()=>{HRe=require("node:stream");Se();ty=class extends HRe.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(hs(e))}catch(s){return n(s)}n()}}});var $Re,zRe,i0t,VRe=g(()=>{$Re=require("node:fs");cj();zRe=i((t,e)=>new Promise((r,n)=>{if(!i0t(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,$Re.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new ty(o);s.pipe(a),s.on("error",c=>{a.end(),n(c)}),a.on("error",n),a.on("finish",function(){o.digest().then(r).catch(n)})}),"fileStreamHasher"),i0t=i(t=>typeof t.path=="string","isReadStream")});var WRe,YRe=g(()=>{cj();WRe=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new ty(r);return e.pipe(n),new Promise((s,o)=>{e.on("error",a=>{n.end(),o(a)}),n.on("error",o),n.on("finish",()=>{r.digest().then(s).catch(o)})})},"readableStreamHasher")});function lj(t,e){let r=t[0],n=t[1],s=t[2],o=t[3];for(let a=0;a<64;++a){let c,l;a<16?(c=n&s|~n&o,l=a):a<32?(c=o&n|s&~o,l=(5*a+1)%16):a<48?(c=n^s^o,l=(3*a+5)%16):(c=s^(n|~o),l=7*a%16);let u=e.getUint32(l*4,!0),d=o;o=s,s=n;let p=a0t[(a>>4)*4+(a&3)],m=(r+c&kd)+(u+c0t[a]&kd)&kd;n=n+((m<>>32-p)>>>0)&kd,r=d}t[0]=t[0]+r&kd,t[1]=t[1]+n&kd,t[2]=t[2]+s&kd,t[3]=t[3]+o&kd}var ry,JRe,kd,a0t,c0t,uj=g(()=>{Se();ry=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(JRe);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=hs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(lj(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,s=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let c=n;c<64;++c)r.setUint8(c,0);lj(e,r),n=0}for(let c=n;c<56;++c)r.setUint8(c,0);r.setUint32(56,s>>>0,!0),r.setUint32(60,Math.floor(s/2**32),!0),lj(e,r);let o=new Uint8Array(16),a=new DataView(o.buffer);for(let c=0;c<4;++c)a.setUint32(c*4,e[c],!0);return o}reset(){this.state.set(JRe),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},JRe=[1732584193,4023233417,2562383102,271733878],kd=4294967295,a0t=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),c0t=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(lj,"compress")});function u0t(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,eQ.createHash)("md5");update(e){this.hash.update(hs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,eQ.createHash)("md5")}}}var eQ,l0t,dj,jRe=g(()=>{eQ=require("node:crypto");Se();uj();l0t=(()=>{try{return(0,eQ.createHash)("md5"),!0}catch{return!1}})(),dj=l0t?u0t():ry;i(u0t,"buildNativeClass")});var KRe,pj,ny,mj=g(()=>{KRe=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;KRe[t]=e>>>0}pj=4294967295,ny=class{static{i(this,"Crc32Js")}digestLength=4;checksum=pj;update(e){for(let r=0;r>>8^KRe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^pj)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=pj}}});function d0t(t){return class{static{i(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var fj,XRe,ff,ZRe=g(()=>{fj=R(require("node:zlib"));mj();XRe=typeof fj.crc32=="function"?fj.crc32:void 0,ff=XRe?d0t(XRe):ny;i(d0t,"buildNativeClass")});var Nn,eNe,p0t,du,tNe,m0t,tQ=g(()=>{Se();Nn=64,eNe=32,p0t=2**53-1,du=class t{static{i(this,"Sha256Js")}digestLength=eNe;state=Int32Array.from(tNe);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:s}=this,o=new Uint8Array(Nn*2);for(let a=0;ap0t)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===Nn&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(tNe),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,s=this.bytesHashed*8,o=new DataView(r.buffer,r.byteOffset,r.byteLength);if(o.setUint8(n++,128),(n-1)%Nn>=Nn-8){for(let c=n;c>>24&255,a[c*4+1]=e[c]>>>16&255,a[c*4+2]=e[c]>>>8&255,a[c*4+3]=e[c]>>>0&255;return a}static normalizeKey(e){let r=hs(e);if(r.byteLength>Nn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(Nn);return o.set(s),o}if(r.byteLength>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=n[m-15];let y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;n[m]=(E+n[m-7]|0)+(y+n[m-16]|0)}let f=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(p+(m0t[m]+n[m]|0)|0)|0,A=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&o^s&a^o&a)|0;p=d,d=u,u=l,l=c+f|0,c=a,a=o,o=s,s=f+A|0}e[0]+=s,e[1]+=o,e[2]+=a,e[3]+=c,e[4]+=l,e[5]+=u,e[6]+=d,e[7]+=p}},tNe=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),m0t=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function A0t(){return class{static{i(this,"Sha256Node")}digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,cS.createHmac)("sha256",h0t(this.secret)):(0,cS.createHash)("sha256")}}}function h0t(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var cS,f0t,da,rNe=g(()=>{cS=require("node:crypto");tQ();f0t=(()=>{try{return(0,cS.createHash)("sha256"),!0}catch{return!1}})(),da=f0t?A0t():du;i(A0t,"buildNativeClass");i(h0t,"toBuffer")});var g0t,y0t,E0t,rQ,C0t,nQ,nNe=g(()=>{Se();tQ();({digest:g0t,sign:y0t,importKey:E0t}=globalThis?.crypto?.subtle??{}),rQ=typeof g0t=="function"&&typeof y0t=="function"&&typeof E0t=="function"?globalThis.crypto.subtle:void 0,C0t=8*1024*1024,nQ=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=hs(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=C0t&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Uc(this.pending);if(rQ){if(this.secret){this.finished=!0;let s=await rQ.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await rQ.sign("HMAC",s,e);return new Uint8Array(o)}let n=await rQ.digest("SHA-256",e);return new Uint8Array(n)}let r=new du(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new du(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Aj={};Fr(Aj,{Crc32:()=>ff,Crc32Js:()=>ny,Crc32Node:()=>ff,Md5:()=>dj,Md5Js:()=>ry,Md5Node:()=>dj,Sha256:()=>da,Sha256Js:()=>du,Sha256Node:()=>da,Sha256WebCrypto:()=>nQ,blobHasher:()=>qRe,blobReader:()=>Z_,fileStreamHasher:()=>zRe,readableStreamHasher:()=>WRe});var pu=g(()=>{GRe();VRe();YRe();uj();jRe();mj();ZRe();tQ();rNe();nNe();aj()});function sNe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Ld,hj=g(()=>{Se();Ld=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&sNe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&sNe(e),parseInt(Ei(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(sNe,"negate")});var sy,oNe,iNe,I0t,w0t,S0t,x0t,b0t,B0t,R0t,N0t,T0t,gj=g(()=>{xe();Se();hj();sy=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o in e){if(!X(e,o))continue;let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ld.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!T0t.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(u_(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{pu();aNe=4,Od=aNe*2,Af=4,v0t=Od+Af*2;i(cNe,"splitMessage")});var oy,yj=g(()=>{pu();gj();lNe();oy=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new sy(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new ff;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),c.update(o.subarray(0,8)),a.setUint32(8,c.digestSync(),!1),o.set(n,12),o.set(r,n.byteLength+12),c.update(o.subarray(8,s-4)),a.setUint32(s-4,c.digestSync(),!1),o}decode(e){let{headers:r,body:n}=cNe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var iy,Ej=g(()=>{iy=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var ay,Cj=g(()=>{ay=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var cy,Ij=g(()=>{cy=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var ly,wj=g(()=>{ly=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function sQ(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p{i(sQ,"getChunkedStream")});function uNe(t,e){let r=lS(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function lS(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var xj=g(()=>{i(uNe,"getUnmarshalledStream");i(lS,"getMessageUnmarshaller")});var hf,dNe,bj=g(()=>{yj();Ej();Cj();Ij();wj();Sj();xj();hf=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new oy(e,r),this.utfEncoder=e}deserialize(e,r){let n=sQ(e);return new cy({messageStream:new iy({inputStream:n,decoder:this.eventStreamCodec}),deserializer:lS(r,this.utfEncoder)})}serialize(e,r){return new ay({messageStream:new ly({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},dNe=i(t=>new hf(t),"eventStreamSerdeProvider")});async function*P0t(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var pNe,uS,mNe,fNe=g(()=>{pNe=require("node:stream");bj();uS=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new hf({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:P0t(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return pNe.Readable.from(this.universalMarshaller.serialize(e,r))}},mNe=i(t=>new uS(t),"eventStreamSerdeProvider");i(P0t,"readableToIterable")});var ANe,hNe,gNe=g(()=>{ANe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),hNe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var yNe,ENe=g(()=>{yNe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var oQ,CNe=g(()=>{xe();Ye();Se();oQ=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o,compositeErrorRegistry:a}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o,this.compositeErrorRegistry=a}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),c=r.getMemberSchema(a),l=this.serializer,u=this.defaultContentType,d=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(n){let m={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};l.write(r,n);let f=l.flush();yield{[d]:!0,headers:m,body:f}}for await(let m of e)yield m}};return o.serialize(p,m=>{if(m[d])return{headers:m.headers,body:m.body};let f="";for(let x in m)if(X(m,x)&&x!=="__type"){f=x;break}let{additionalHeaders:A,body:h,eventType:E,explicitPayloadContentType:y}=this.writeEventBody(f,c,m);return{headers:{":event-type":{type:"string",value:E},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:y??u},...A},body:h}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),l=r.getMemberSchema(a).getMemberSchemas(),u=Symbol("initialResponseMarker"),d=o.deserialize(e.body,async f=>{let A="";for(let E in f)if(X(f,E)&&E!=="__type"){A=E;break}let h=f[A].body;if(A===(s??"initial-response")){let E=await this.deserializer.read(r,h);return delete E[a],{[u]:!0,...E}}else if(A in l){let E=l[A];if(E.isStructSchema()){let y={},I=!1;for(let[x,b]of E.structIterator()){let{eventHeader:N,eventPayload:P}=b.getMergedTraits();if(I=I||!!(N||P),P)b.isBlobSchema()?y[x]=h:b.isStringSchema()?y[x]=(this.serdeContext?.utf8Encoder??Mt)(h):b.isStructSchema()&&(y[x]=await this.deserializer.read(b,h));else if(N){let _=f[A].headers[x]?.value;_!=null&&(b.isNumericSchema()?_&&typeof _=="object"&&"bytes"in _?y[x]=BigInt(_.toString()):y[x]=Number(_):y[x]=_)}}return{[A]:await this.readEventMember(E,h,I,y)}}return{[A]:await this.deserializer.read(E,h)}}else return{$unknown:f}}),p=d[Symbol.asyncIterator](),m=await p.next();if(m.done)return d;if(m.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let f in m.value)X(m.value,f)&&(n[f]=m.value[f])}return{async*[Symbol.asyncIterator](){for(m?.value?.[u]||(yield m.value);;){let{done:f,value:A}=await p.next();if(f)break;yield A}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=gt.for(l);this.compositeErrorRegistry?.copyFrom(u),o=(this.compositeErrorRegistry??u)?.getErrorCtor(a)}let c=n?s:r.byteLength===0?{}:await this.deserializer.read(e,r);if(o){let l=c.message??c.Message??"Unknown",u={},d=e.getMergedTraits().error;return d&&(u.$fault=d),Object.assign(new o({}),u,{message:l},c)}return c}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let m=r.getMemberSchema(e);if(m.isStructSchema()){for(let[f,A]of m.structIterator()){let{eventHeader:h,eventPayload:E}=A.getMergedTraits();if(E)a=f;else if(h){let y=n[e][f],I="binary";A.isNumericSchema()?(-2)**31<=y&&y<=2**31-1?I="integer":I="long":A.isTimestampSchema()?I="timestamp":A.isStringSchema()?I="string":A.isBooleanSchema()&&(I="boolean"),y!=null&&(u[f]={type:I,value:y},delete n[e][f])}}if(a!==null){let f=m.getMemberSchema(a);f.isBlobSchema()?c="application/octet-stream":f.isStringSchema()&&(c="text/plain"),s.write(f,n[e][a])}else s.write(m,n[e])}else if(m.isUnitSchema())s.write(m,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[m,f]=n[e];o=m,s.write(15,f)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Yr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var INe={};Fr(INe,{EventStreamCodec:()=>oy,EventStreamMarshaller:()=>uS,EventStreamSerde:()=>oQ,HeaderMarshaller:()=>sy,Int64:()=>Ld,MessageDecoderStream:()=>iy,MessageEncoderStream:()=>ay,SmithyMessageDecoderStream:()=>cy,SmithyMessageEncoderStream:()=>ly,UniversalEventStreamMarshaller:()=>hf,eventStreamSerdeProvider:()=>mNe,getChunkedStream:()=>sQ,getMessageUnmarshaller:()=>lS,getUnmarshalledStream:()=>uNe,iterableToReadableStream:()=>hNe,readableStreamToIterable:()=>ANe,resolveEventStreamSerdeConfig:()=>yNe,universalEventStreamSerdeProvider:()=>dNe});var wNe=g(()=>{yj();gj();hj();Ej();Cj();Ij();wj();fNe();gNe();bj();Sj();xj();ENe();CNe()});var Md,iQ=g(()=>{xe();Ye();xe();ey();Md=class extends ln{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new gt(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return We}getResponseType(){return an}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=L.of(r.input),o=ia(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}if(e.hostname=a+e.hostname,!Lw(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let s=[-3,"","Error",0,[],[],0],o;for(let a of n)for(let c of r)try{c==="*"?o=a.getSchema(e):o=a.getSchema(c+"#"+e);let l=a.getErrorCtor(o);if(l)return[o,l,"modeled"];{let u=a.getBaseException();if(u){let d=a.getErrorCtor(u);if(d)return[o,d,"synthetic"]}}}catch{}for(let a of n){let c=a.getBaseException();if(c){let l=a.getErrorCtor(c);if(l)return[c,l,"synthetic"]}}return[s,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(wNe(),INe)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var Fd,SNe=g(()=>{xe();Ye();Se();xe();iQ();Zg();X_();Fd=class extends Md{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=L.of(e?.input),d=[],p=[],m=!1,f,A=new We({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(A,l),this.setHostPrefix(A,e,s);let h=ia(e.traits);if(h.http){A.method=h.http[0];let[E,y]=h.http[1].split("?");A.path=="/"?A.path=E:A.path+=E;let I=new URLSearchParams(y??"");for(let[x,b]of I)a[x]=b}}for(let[h,E]of u.structIterator()){let y=E.getMergedTraits()??{},I=s[h];if(I==null&&!E.isIdempotencyToken()){if(y.httpLabel&&(A.path.includes(`{${h}+}`)||A.path.includes(`{${h}}`)))throw new Error(`No value provided for input HTTP label: ${h}.`);continue}if(y.httpPayload)E.isStreaming()?E.isStructSchema()?s[h]&&(f=await this.serializeEventStream({eventStream:s[h],requestSchema:u})):f=I:(o.write(E,I),f=o.flush());else if(y.httpLabel){o.write(E,I);let x=o.flush();A.path.includes(`{${h}+}`)?A.path=A.path.replace(`{${h}+}`,x.split("/").map(ua).join("/")):A.path.includes(`{${h}}`)&&(A.path=A.path.replace(`{${h}}`,ua(x)))}else if(y.httpHeader)o.write(E,I),c[y.httpHeader.toLowerCase()]=String(o.flush());else if(typeof y.httpPrefixHeaders=="string")for(let x in I){if(!X(I,x))continue;let b=I[x],N=y.httpPrefixHeaders+x;o.write([E.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else y.httpQuery||y.httpQueryParams?this.serializeQuery(E,I,a):(m=!0,d.push(h),p.push(E))}if(m&&s){let[h,E]=(u.getName(!0)??"#Unknown").split("#"),y=u.getSchema()[6],I=[3,h,E,u.getMergedTraits(),d,p,void 0];y?I[6]=y:I.pop(),o.write(I,s),f=o.flush()}return A.headers=c,A.query=a,A.body=f,A}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(X(r,a)&&!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let l=await jr(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await jr(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await jr(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=L.of(e),d=[];for(let[p,m]of u.structIterator()){let f=m.getMemberTraits();if(f.httpPayload){if(c=!1,m.isStreaming())m.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=K_(n.body);else if(n.body){let h=await jr(n.body,r);h.byteLength>0&&(a[p]=await l.read(m,h))}}else if(f.httpHeader){let A=String(f.httpHeader).toLowerCase(),h=n.headers[A];if(h!=null)if(m.isListSchema()){let E=m.getValueSchema();E.getMergedTraits().httpHeader=A;let y;E.isTimestampSchema()&&E.getSchema()===4?y=c_(h,",",2):y=Gg(h);let I=[];for(let x of y)I.push(await l.read(E,x.trim()));a[p]=I}else a[p]=await l.read(m,h)}else if(f.httpPrefixHeaders!==void 0){a[p]={};for(let A in n.headers)if(X(n.headers,A)&&A.startsWith(f.httpPrefixHeaders)){let h=n.headers[A],E=m.getValueSchema();E.getMergedTraits().httpHeader=A,a[p][A.slice(f.httpPrefixHeaders.length)]=await l.read(E,h)}}else f.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var wi,Bj=g(()=>{xe();Ye();xe();iQ();Zg();wi=class extends Md{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=L.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},m=new We({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(m,c),this.setHostPrefix(m,e,p)),p){let f=l.getEventStreamMember();if(f){if(p[f]){let A={};for(let[h]of l.structIterator())h!==f&&p[h]!=null&&(A[h]=p[h]);d=await this.serializeEventStream({eventStream:p[f],requestSchema:l,initialRequest:A})}}else s.write(u,p),d=s.flush()}return m.headers=Object.assign(m.headers,a),m.query=o,m.body=d,m.method="POST",m}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let l=await jr(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await jr(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var aQ,Rj=g(()=>{X_();aQ=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>ua(c)).join("/"):ua(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function cQ(t,e){return new dS(t,e)}var dS,xNe=g(()=>{xe();Rj();i(cQ,"requestBuilder");dS=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new We({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=aQ(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function un(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var Ud=g(()=>{i(un,"determineTimestampFormat")});var qd,Nj=g(()=>{Ye();Se();ey();Ud();qd=class extends ln{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=L.of(e);if(n.isListSchema())return Gg(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??fr)(r);if(n.isTimestampSchema())switch(un(n,this.settings)){case 5:return i_(r);case 6:return a_(r);case 7:return _d(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=Lr.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Je(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Mt)((this.serdeContext?.base64Decoder??fr)(e))}}});var Gd,bNe=g(()=>{Ye();Se();ey();Nj();Gd=class extends ln{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new qd(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=L.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Mt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Yr;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var uy,Tj=g(()=>{Ye();Se();ey();Ud();uy=class extends ln{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=L.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(un(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=vo(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??vt)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:o_(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=Lr.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??vt)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Lo():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var Hd,BNe=g(()=>{Ye();Tj();Hd=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new uy(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=L.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var RNe,lQ,NNe=g(()=>{RNe=R(sa()),lQ=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=RNe.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var uQ,TNe=g(()=>{uQ=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}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(r=>r.kind===e)}}});var Yc,Jc,vNe=g(()=>{Yc=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),Jc=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function vj(t){return e=>async r=>{let n=r.request;if(We.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(PNe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[PNe]:String(a)})}catch{}}return e({...r,request:n})}}var PNe,Pj,jc,_Ne=g(()=>{xe();PNe="content-length";i(vj,"contentLengthMiddleware");Pj={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},jc=i(t=>({applyToStack:i(e=>{e.add(vj(t.bodyLengthChecker),Pj)},"applyToStack")}),"getContentLengthPlugin")});var $d,_0t,dQ=g(()=>{$d=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,_0t),"escapeUri"),_0t=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var QNe,DNe=g(()=>{dQ();QNe=i(t=>t.split("/").map($d).join("/"),"escapeUriPath")});function kNe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=$d(r),Array.isArray(n))for(let s=0,o=n.length;s{dQ();i(kNe,"buildQueryString")});var $s,gf=g(()=>{$s=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var dy,_j=g(()=>{dy=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function pQ(){if(pS===void 0)try{if(typeof Buffer!="function")pS=!1;else{let t=JSON.parse(Buffer.from([123,125]));pS=t!==null&&typeof t=="object"}}catch{pS=!1}return pS}var pS,Qj=g(()=>{i(pQ,"detectBufferParsing")});function py(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?D0t(n,e)?e:new Je(n,"bigDecimal"):Q0t(n)?new Je(n,"bigDecimal"):/[eE]/.test(n)?k0t(n):BigInt(n)}return e}function Q0t(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)=l.length?s=l+"0".repeat(d-l.length):s=l.slice(0,d)+"."+l.slice(d)}return s.includes(".")&&(s=s.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+s}function k0t(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),s=t.slice(n?1:0,e),o=s.indexOf("."),a,c;if(o===-1)a=s,c=r;else{a=s.slice(0,o)+s.slice(o+1);let u=s.length-o-1;c=r-u}a=a.replace(/0+$/,"")||"0";let l=BigInt(a)*10n**BigInt(c+(s.replace(".","").length-a.length));return n?-l:l}var mQ=g(()=>{Se();i(py,"jsonReviver");i(Q0t,"isFractionalBigNumeric");i(D0t,"isRepresentable");i(Dj,"expandToDecimal");i(k0t,"expandExponentToBigInt")});function my(t){let e=L.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(kj in r)return r[kj];let n=fQ(e,new Set);return r[kj]=n,n}return fQ(e,new Set)}function fQ(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(fQ(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(fQ(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var kj,AQ=g(()=>{Ye();kj=Symbol.for("@aws-sdk/reviver");i(my,"needsReviver");i(fQ,"_check")});var ONe,MNe=g(()=>{Zg();Se();ONe=i((t,e)=>jr(t,e).then(r=>(e?.utf8Encoder??Mt)(r)),"collectBodyString")});async function mu(t,e,r){let n;if(pQ()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await jr(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await ONe(t,e)),n.length===0)return{};let s=r&&my(r)?py:void 0;try{return JSON.parse(n,s)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),o}}var hQ,FNe,Lj,fy,Ay,gQ,UNe,mS=g(()=>{Zg();MNe();Qj();mQ();AQ();i(mu,"parseJsonBody");hQ=i(async(t,e)=>{let r=await mu(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),FNe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),Lj=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),fy=i((t,e)=>UNe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),Ay=i((t,e,r=!1)=>UNe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),gQ=i((t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},"loadSmithyRpcV2JsonErrorCode"),UNe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=FNe(t??{},"x-amzn-errortype");if(s!==void 0)return Lj(t[s]);break;case"code":let o=FNe(e??{},"code");if(o&&e[o]!==void 0)return Lj(e[o]);break;case"type":if(e?.__type!==void 0)return Lj(e.__type);break}},"loadErrorCode")});function Kc(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var yQ=g(()=>{i(Kc,"writeKey")});var zd,Oj=g(()=>{Ud();Ye();Se();gf();_j();Qj();mQ();AQ();mS();yQ();xe();zd=class extends $s{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=my(e)?py:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&pQ()){if(r.byteLength===0)return{};let o=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);s=JSON.parse(o,n)}else s=await mu(r,this.serdeContext,e);return this._read(e,s)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=L.of(e);if(n){if(s.isStructSchema())return this._readStruct(s,r);if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema();if(this.needsTransform(a))for(let c=0;c{Se();EQ=class t extends Uint8Array{static{i(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>qNe+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),qNe=e),this.string=Mt(this)}return this.string}},qNe=0});function Mj(t){return EQ.allocUnsafe(t)}var CQ,HNe,$Ne,L0t,O0t,hy,IQ,wQ,zNe,M0t,F0t,U0t,Xc,VNe,Vd,Fj=g(()=>{Ud();Ye();Se();gf();xe();GNe();CQ=new TextEncoder,HNe=123,$Ne=125,L0t=91,O0t=93,hy=34,IQ=58,wQ=44,zNe=92,M0t=new Uint8Array([116,114,117,101]),F0t=new Uint8Array([102,97,108,115,101]),U0t=new Uint8Array([110,117,108,108]),Xc=new Array(128).fill(null);Xc[8]="b";Xc[9]="t";Xc[10]="n";Xc[12]="f";Xc[13]="r";Xc[34]='"';Xc[92]="\\";for(let t=0;t<32;t++)Xc[t]===null&&(Xc[t]="u00"+t.toString(16).padStart(2,"0"));VNe=2048;i(Mj,"alloc");Vd=class t extends $s{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=Mj(VNe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=L.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=L.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let s=`"__type":"${n.getName(!0)??"Unknown"}",`,o=s.length;this.ensure(o),this.json.copyWithin(1+o,1,this.i),CQ.encodeInto(s,this.json.subarray(1)),this.i+=o}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=Mj(VNe),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let s=n.length*2;for(;s34&&s<92)this.json[this.i++]=s;else if(s<128){let o=Xc[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=zNe;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=CQ.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=a,++n}else this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s)}else if(s>=56320&&s<=57343)this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s);else{let{i:o,json:a}=this;s<2048?(a[o++]=192|s>>6,a[o++]=128|s&63):(a[o++]=224|s>>12,a[o++]=128|s>>6&63,a[o++]=128|s&63),this.i=o}}this.json[this.i++]=hy}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=zNe,r[n++]=117;let s=e.toString(16).padStart(4,"0");for(let o=0;o<4;++o)r[n++]=s.charCodeAt(o);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,s=t.B64,o=this.i;n[o++]=hy;let a=e.length,c=a%3,l=a-c;for(let u=0;u>2],n[o++]=s[(d&3)<<4|p>>4],n[o++]=s[(p&15)<<2|m>>6],n[o++]=s[m&63]}if(c===2){let u=e[l],d=e[l+1];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4|d>>4],n[o++]=s[(d&15)<<2],n[o++]=61}else if(c===1){let u=e[l];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4],n[o++]=61,n[o++]=61}n[o++]=hy,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&L.of(e).isIdempotencyToken()){this.writeAsciiQuoted(Lo());return}return}this.ensure(4),this.json.set(U0t,this.i),this.i+=4;return}let s=L.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Lr.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Je?r.string:String(r);this.writeAsciiQuoted(a);return}if(o){if(s.isStructSchema()){this.writeStruct(s,r);return}if(Array.isArray(r)&&(s.isListSchema()||s.isDocumentSchema())){this.writeList(s,r,s.isDocumentSchema());return}if(s.isMapSchema()){this.writeMap(s,r,!1);return}if(r instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema())){this.writeTimestamp(s,r);return}if(r instanceof Je){this.writeAscii(r.string);return}if(s.isDocumentSchema()){Array.isArray(r)?this.writeList(s,r,!0):this.writeMap(s,r,!0);return}let a=JSON.stringify(r);this.writeAscii(a);return}if(typeof r=="string"){if(s.isBlobSchema()){let a=(this.serdeContext?.base64Encoder??vt)(r);this.writeAsciiQuoted(a);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let a=String(r);this.writeAscii(a);return}if(typeof r=="boolean"){this.ensure(5);let{i:a,json:c}=this;r?(c.set(M0t,a),a+=4):(c.set(F0t,a),a+=5),this.i=a;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=HNe;let n=!1,s=typeof r.__type=="string",o;s&&(o=new Set);for(let[a,c]of e.structIterator()){let l=r[a];if(l==null&&!c.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=wQ),n=!0;let u=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;o&&(o.add(a),o.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=IQ,this.writeValue(c,l,e)}if(!n&&e.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a;this.writeAsciiQuoted(c),this.ensure(1),this.json[this.i++]=IQ,this.writeValue(15,l,e)}}else if(s)for(let a in r){if(o.has(a))continue;o.add(a);let c=r[a];n&&(this.ensure(1),this.json[this.i++]=wQ),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=IQ,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=$Ne}writeList(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c=!1;for(let u=0;u{gf();Oj();Fj();Si=class extends $s{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Vd(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new zd(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var SQ,WNe=g(()=>{Bj();Ye();xe();Uj();mS();SQ=class extends wi{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new Si({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),qs(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=xt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=gQ(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=gt.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=gt.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(x);let b=u.getBaseException();if(b){let N=u.getErrorCtor(b);throw Object.assign(new N({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let m=L.of(p),f=u.getErrorCtor(p),A=s.message??s.Message??"Unknown",h=new f({}),E={},y=this.codec.createDeserializer();for(let[I,x]of m.structIterator())s[I]!=null&&(E[I]=y.readObject(x,s[I]));throw Object.assign(h,c,{$fault:m.getMergedTraits().error,message:A},E)}getDefaultContentType(){return"application/json"}}});var Wd,qj=g(()=>{Ud();Ye();Se();Se();xe();gf();_j();mQ();AQ();mS();yQ();Wd=class extends $s{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=my(e)?py:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await mu(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=L.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new dy(a,l));for(let[m,f]of s.structIterator()){let A=m;d&&(A=f.getMergedTraits().jsonName??A,u[A]=m),c&&p.mark(A),a[A]!=null&&(l[m]=this._read(f,a[A]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let m in a){if(!X(a,m))continue;let f=a[m],A=d?u[m]??m:m;A in l||(l[A]=f)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)X(r,l)&&(l==="__proto__"&&Kc(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return fr(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Lr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(un(s,this.settings)){case 5:return Ug(r);case 6:return Pd(r);case 7:return qg(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof Je)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Je(a.string,a.type):new Je(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;c==="__proto__"&&Kc(a);let l=r[c];l instanceof Je?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var YNe,xQ,JNe=g(()=>{Se();YNe="\u039D",xQ=class{static{i(this,"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.");return this.stage=1,(e,r)=>{if(r instanceof Je){let n=`${YNe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${YNe+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}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.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var Yd,Gj=g(()=>{Ud();Ye();Se();gf();JNe();yQ();xe();Yd=class extends $s{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=L.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new xQ;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=L.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=L.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,m]of o.structIterator()){let f=this._write(m,a[p],o);if(f!==void 0){let A=p;l&&(A=m.getMergedTraits().jsonName??p,u[p]=A),c[A]=f,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[m,f]=p;m==="__proto__"&&Kc(c),c[m]=this._write(15,f)}}else if(typeof a.__type=="string")for(let p in a){if(!X(a,p))continue;let m=a[p],f=l?u[p]??p:p;f in c||(c[f]=this._write(15,m))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){if(!X(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Kc(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??vt)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(un(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return vo(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Je&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return Lo();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Lr.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??vt)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??vt)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&Kc(a),l instanceof Je?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var gy,jNe=g(()=>{gf();qj();Gj();gy=class extends $s{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Yd(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Wd(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Jd={};Fr(Jd,{Field:()=>lQ,Fields:()=>uQ,FromStringShapeDeserializer:()=>qd,HttpBindingProtocol:()=>Fd,HttpInterceptingShapeDeserializer:()=>Gd,HttpInterceptingShapeSerializer:()=>Hd,HttpProtocol:()=>Md,HttpRequest:()=>We,HttpResponse:()=>an,JsonCodec:()=>gy,JsonCodec2:()=>Si,JsonShapeDeserializer:()=>Wd,JsonShapeDeserializer2:()=>zd,JsonShapeSerializer:()=>Yd,JsonShapeSerializer2:()=>Vd,RequestBuilder:()=>dS,RpcProtocol:()=>wi,SerdeContext:()=>ln,SmithyRpcV2JsonProtocol:()=>SQ,ToStringShapeSerializer:()=>uy,buildQueryString:()=>kNe,collectBody:()=>jr,contentLengthMiddleware:()=>vj,contentLengthMiddlewareOptions:()=>Pj,determineTimestampFormat:()=>un,escapeUri:()=>$d,escapeUriPath:()=>QNe,extendedEncodeURIComponent:()=>ua,getContentLengthPlugin:()=>jc,getHttpHandlerExtensionConfiguration:()=>Yc,isValidHostname:()=>Lw,loadJsonRpcErrorCode:()=>Ay,loadRestJsonErrorCode:()=>fy,loadSmithyRpcV2JsonErrorCode:()=>gQ,parseJsonBody:()=>mu,parseJsonErrorBody:()=>hQ,parseQueryString:()=>Ow,parseUrl:()=>Bn,requestBuilder:()=>cQ,resolveHttpHandlerRuntimeConfig:()=>Jc,resolvedPath:()=>aQ});var be=g(()=>{Zg();X_();SNe();iQ();Bj();xNe();Rj();Nj();bNe();BNe();Tj();Ud();ey();NNe();TNe();xe();xe();xe();vNe();_Ne();dQ();DNe();LNe();xe();xe();WNe();mS();jNe();Gj();qj();Uj();Fj();Oj()});var KNe,XNe,ZNe,eTe,tTe,rTe,nTe=g(()=>{KNe=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],XNe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ZNe=["TimeoutError","RequestTimeout","RequestTimeoutException"],eTe=[500,502,503,504],tTe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],rTe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function zj(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var fS,bQ,Hj,$j,Zc,jd,BQ,yy=g(()=>{nTe();fS=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),bQ=i(t=>KNe.includes(t.name),"isClockSkewError"),Hj=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),$j=i(t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},"isBrowserNetworkError"),Zc=i(t=>t.$metadata?.httpStatusCode===429||XNe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),jd=i((t,e=0)=>t?.name!=="AbortError"&&(fS(t)||Hj(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||ZNe.includes(t.name)||tTe.includes(t?.code||"")||rTe.includes(t?.code||"")||eTe.includes(t.$metadata?.httpStatusCode||0)||$j(t)||zj(t)||t.cause!==void 0&&e<=10&&jd(t.cause,e+1)),"isTransientError"),BQ=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!jd(t)}return!1},"isServerError");i(zj,"isNodeJsHttp2TransientError")});var RQ,AS,NQ,Ey,Vj,Wj,TQ,Kd,Xd,hS=g(()=>{RQ=100,AS=2e4,NQ=500,Ey=500,Vj=5,Wj=10,TQ=1,Kd="amz-sdk-invocation-id",Xd="amz-sdk-request"});function Yj(t,e){if(an.isInstance(t))for(let r in t.headers){if(!X(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let s=t.headers[r],o=NaN;if(s.endsWith("GMT"))try{o=(Pd(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(s):Date.parse(s)>=Date.now()&&(o=(Date.parse(s)-Date.now())/1e3);return isNaN(o)?void 0:new Date(Date.now()+o*1e3)}else if(n==="x-amz-retry-after"){let s=t.headers[r],o=Number(s);if(isNaN(o)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+o)}}}function sTe(t,e){return Yj(t,e)}var Jj=g(()=>{xe();be();Se();i(Yj,"parseRetryAfterHeader");i(sTe,"getRetryAfterHint")});var vQ,jj=g(()=>{vQ=i(t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),"asSdkError")});function Kj(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(G0t(o)){o=o;let c=await o.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),l=new Error,u=0,d=0,{request:p}=s,m=We.isInstance(p);for(m&&(p.headers[Kd]=Xg());;)try{m&&(p.headers[Xd]=`attempt=${u+1}; max=${a}`);let{response:f,output:A}=await r(s);return o.recordSuccess(c),A.$metadata.attempts=u+1,A.$metadata.totalRetryDelay=d,{response:f,output:A}}catch(f){let A=H0t(f,e.logger);if(l=vQ(f),m&&t(p))throw(n.logger instanceof Gs?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,A)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let h=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+h,h>0&&await q0t(h)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function oTe(t){let e=Kj(t);return r=>({applyToStack:i(n=>{n.add(e(r),Xj)},"applyToStack")})}var q0t,G0t,H0t,$0t,Xj,Zj=g(()=>{we();be();Se();yy();hS();Jj();jj();i(Kj,"bindRetryMiddleware");q0t=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),G0t=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),H0t=i((t,e)=>{let r={error:t,errorType:$0t(t)},n=Yj(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),$0t=i(t=>Zc(t)?"THROTTLING":jd(t)?"TRANSIENT":BQ(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),Xj={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(oTe,"bindGetRetryPlugin")});var Zd,PQ=g(()=>{yy();Zd=class t{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=i((e,r)=>setTimeout(e,r),"setTimeoutFn");beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Zc(n?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var Nr,Cy=g(()=>{Nr=class t{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var _Q,iTe=g(()=>{Cy();_Q=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Nr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var gS,aTe=g(()=>{gS=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,s){this.delay=e,this.count=r,this.cost=n,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var dn,pa,xi,yf=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(dn||(dn={}));pa=3,xi=dn.STANDARD});var QQ,ma,yS=g(()=>{iTe();aTe();yf();Cy();QQ={incompatible:1,attempts:2,capacity:3},ma=class{static{i(this,"StandardRetryStrategy")}mode=dn.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>pa,this.baseDelay??=Nr.delay(),this.retryBackoffStrategy??=new _Q}async acquireInitialRetryToken(e){return new gS(Nr.delay(),0,void 0,Nr.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),s=this.retryCode(e,r,n),o=s===0,a=e.isLongPoll?.();if(o||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?Nr.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(r.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),o){let d=this.getCapacityCost(c);this.capacity-=d;let p=new gS(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(m=>setTimeout(m,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=Nr.v2026&&s===QQ.capacity&&a?u:0;d>0&&await new Promise(p=>setTimeout(p,d))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${pa}`),pa}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:QQ.incompatible,a=s=this.getCapacityCost(r.errorType)?0:QQ.capacity;return o||a||c}getCapacityCost(e){return e===Nr.modifiedCostType()?Nr.throttlingCost():Nr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var Iy,e5=g(()=>{PQ();yS();yf();Iy=class{static{i(this,"AdaptiveRetryStrategy")}mode=dn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Zd,this.standardRetryStrategy=r?new ma({maxAttempts:typeof e=="number"?e:3,...r}):new ma(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var DQ,cTe=g(()=>{yS();Cy();DQ=class extends ma{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=Nr.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let s=n+1;return this.computeNextBackoffDelay(s)}}}});var lTe,uTe=g(()=>{lTe=i((t,e)=>{let r=t,n=e?.noRetryIncrement??1,s=e?.retryCost??5,o=e?.timeoutRetryCost??10,a=t,c=i(p=>p.name==="TimeoutError"?o:s,"getCapacityAmount"),l=i(p=>c(p)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:i(p=>{if(!l(p))throw new Error("No retry token available");let m=c(p);return a-=m,m},"retrieveRetryTokens"),releaseRetryTokens:i(p=>{a+=p??n,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota")});var kQ,t5=g(()=>{kQ=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var LQ,r5=g(()=>{yy();LQ=i(t=>t?fS(t)||bQ(t)||Zc(t)||jd(t):!1,"defaultRetryDecider")});var wy,z0t,n5=g(()=>{be();Se();yy();yf();hS();jj();uTe();t5();r5();wy=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=dn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??LQ,this.delayDecider=r?.delayDecider??kQ,this.retryQuota=r?.retryQuota??lTe(500)}shouldRetry(e,r,n){return rsetTimeout(A,f));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},z0t=i(t=>{if(!an.isInstance(t))return;let e=Object.keys(t.headers).find(o=>o.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let s=new Date(r);return Math.min(s.getTime()-Date.now(),2e4)},"getDelayFromRetryAfterHeader")});var OQ,dTe=g(()=>{PQ();yf();n5();OQ=class extends wy{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new Zd,this.mode=dn.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(n=>{this.rateLimiter.updateClientSendingRate(n)},"afterRequest")})}}});var MQ,FQ,el,tl,s5,o5,rl,pTe=g(()=>{we();e5();yS();yf();Cy();MQ="AWS_MAX_ATTEMPTS",FQ="max_attempts",el={environmentVariableSelector:i(t=>{let e=t[MQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${MQ} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[FQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${FQ} mast be a number, got "${e}"`);return r},"configFileSelector"),default:pa},tl=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=pa,defaultBaseDelay:o=Nr.delay()}=e??{},a=bt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await bt(n)()===dn.ADAPTIVE?new Iy(a,{maxAttempts:u,baseDelay:o}):new ma({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),s5="AWS_RETRY_MODE",o5="retry_mode",rl={environmentVariableSelector:i(t=>t[s5],"environmentVariableSelector"),configFileSelector:i(t=>t[o5],"configFileSelector"),default:xi}});var i5,a5,mTe,fTe=g(()=>{be();hS();i5=i(()=>t=>async e=>{let{request:r}=e;return We.isInstance(r)&&(delete r.headers[Kd],delete r.headers[Xd]),t(e)},"omitRetryHeadersMiddleware"),a5={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},mTe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(i5(),a5)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var c5={};Fr(c5,{AdaptiveRetryStrategy:()=>Iy,CONFIG_MAX_ATTEMPTS:()=>FQ,CONFIG_RETRY_MODE:()=>o5,ConfiguredRetryStrategy:()=>DQ,DEFAULT_MAX_ATTEMPTS:()=>pa,DEFAULT_RETRY_DELAY_BASE:()=>RQ,DEFAULT_RETRY_MODE:()=>xi,DefaultRateLimiter:()=>Zd,DeprecatedAdaptiveRetryStrategy:()=>OQ,DeprecatedStandardRetryStrategy:()=>wy,ENV_MAX_ATTEMPTS:()=>MQ,ENV_RETRY_MODE:()=>s5,INITIAL_RETRY_TOKENS:()=>Ey,INVOCATION_ID_HEADER:()=>Kd,MAXIMUM_RETRY_DELAY:()=>AS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>el,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>rl,NO_RETRY_INCREMENT:()=>TQ,REQUEST_HEADER:()=>Xd,RETRY_COST:()=>Vj,RETRY_MODES:()=>dn,Retry:()=>Nr,StandardRetryStrategy:()=>ma,THROTTLING_RETRY_DELAY_BASE:()=>NQ,TIMEOUT_RETRY_COST:()=>Wj,defaultDelayDecider:()=>kQ,defaultRetryDecider:()=>LQ,getOmitRetryHeadersPlugin:()=>mTe,getRetryAfterHint:()=>sTe,getRetryPlugin:()=>fu,isBrowserNetworkError:()=>$j,isClockSkewCorrectedError:()=>Hj,isClockSkewError:()=>bQ,isNodeJsHttp2TransientError:()=>zj,isRetryableByTrait:()=>fS,isServerError:()=>BQ,isThrottlingError:()=>Zc,isTransientError:()=>jd,omitRetryHeadersMiddleware:()=>i5,omitRetryHeadersMiddlewareOptions:()=>a5,resolveRetryConfig:()=>tl,retryMiddleware:()=>V0t,retryMiddlewareOptions:()=>Xj});var V0t,fu,Oo=g(()=>{_Se();Zj();yy();e5();cTe();PQ();yS();yf();hS();Cy();dTe();n5();t5();r5();pTe();fTe();Zj();Jj();V0t=Kj(n8),fu=oTe(n8)});function bi(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var l5=g(()=>{Oo();Nr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(bi,"setFeature")});function ATe(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var hTe=g(()=>{i(ATe,"setTokenFeature")});function Sy(t){return t}var u5,d5,nl,gTe=g(()=>{be();i(Sy,"resolveHostHeaderConfig");u5=i(t=>e=>async r=>{if(!We.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let o=n.hostname;n.port!=null&&(o+=`:${n.port}`),n.headers.host=o}return e(r)},"hostHeaderMiddleware"),d5={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},nl=i(t=>({applyToStack:i(e=>{e.add(u5(t),d5)},"applyToStack")}),"getHostHeaderPlugin")});var p5,m5,sl,yTe=g(()=>{p5=i(()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:u}=c,d=l??e.inputFilterSensitiveLog,p=u??e.outputFilterSensitiveLog,{$metadata:m,...f}=n.output;return a?.info?.({clientName:s,commandName:o,input:d(r.input),output:p(f),metadata:m}),n}catch(n){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,u=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:u(r.input),error:n,metadata:n.$metadata}),n}},"loggerMiddleware"),m5={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},sl=i(t=>({applyToStack:i(e=>{e.add(p5(),m5)},"applyToStack")}),"getLoggerPlugin")});var UQ,f5=g(()=>{UQ={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var ep,A5,qQ,h5,g5,ES,ETe=g(()=>{ep={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},A5=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");A5||(globalThis.awslambda=globalThis.awslambda||{});qQ=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=ep;isProtectedKey(e){return Object.values(ep).includes(e)}getRequestId(){return this.get(ep.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(ep.X_RAY_TRACE_ID)}getTenantId(){return this.get(ep.TENANT_ID)}getTraceparent(){return this.get(ep.TRACEPARENT)}getTracestate(){return this.get(ep.TRACESTATE)}getBaggage(){return this.get(ep.BAGGAGE)}},h5=class extends qQ{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},g5=class t extends qQ{static{i(this,"InvokeStoreMulti")}als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let o=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await g5.create():new h5;return!A5&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!A5&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=o),o)})()),e}i(r,"getInstanceAsync"),t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})(ES||(ES={}))});function J0t(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===E5||r===CTe||r===ITe)&&(t[r]=t[e],delete t[e])}}var W0t,Y0t,y5,E5,CTe,ITe,GQ,C5=g(()=>{ETe();be();W0t="AWS_LAMBDA_FUNCTION_NAME",Y0t="_X_AMZN_TRACE_ID",y5="X-Amzn-Trace-Id",E5="traceparent",CTe="tracestate",ITe="baggage",GQ=i(()=>t=>async e=>{let{request:r}=e;if(!We.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===y5.toLowerCase())??y5;if(!r.headers.hasOwnProperty(s)){let o=process.env[W0t],a=process.env[Y0t];n??=await ES.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[y5]=l)}}if(J0t(r.headers),!r.headers[E5]){let o=(n??=await ES.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[E5]=o;let a=n?.getTracestate?.();a&&(r.headers[CTe]=a);let c=n?.getBaggage?.();c&&(r.headers[ITe]=c)}}return t(e)},"recursionDetectionMiddleware");i(J0t,"sanitizeTraceHeaders")});var ol,wTe=g(()=>{f5();C5();ol=i(t=>({applyToStack:i(e=>{e.add(GQ(),UQ)},"applyToStack")}),"getRecursionDetectionPlugin")});var STe,xTe=g(()=>{STe=i((t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(let n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r},"resolveAuthOptions")});function j0t(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Ef,HQ=g(()=>{xe();xTe();i(j0t,"convertHttpAuthSchemesToMap");Ef=i((t,e)=>(r,n)=>async s=>{let o=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=STe(o,a),l=j0t(t.httpAuthSchemes),u=xt(n),d=[];for(let p of c){let m=l.get(p.schemeId);if(!m){d.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let f=m.identityProvider(await e.identityProviderConfigProvider(t));if(!f){d.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:A={},signingProperties:h={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},A),p.signingProperties=Object.assign(p.signingProperties||{},h),u.selectedHttpAuthScheme={httpAuthOption:p,identity:await f(p.identityProperties),signer:m.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(d.join(` -`));return r(s)},"httpAuthSchemeMiddleware")});var $Q,fa,bTe=g(()=>{HQ();$Q={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},fa=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Ef(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$Q)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var zQ,I5,BTe=g(()=>{HQ();zQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},I5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Ef(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),zQ)},"applyToStack")}),"getHttpAuthSchemePlugin")});var RTe=g(()=>{HQ();bTe();BTe()});var K0t,X0t,CS,w5=g(()=>{be();xe();K0t=i(t=>e=>{throw e},"defaultErrorHandler"),X0t=i((t,e)=>{},"defaultSuccessHandler"),CS=i(t=>(e,r)=>async n=>{if(!We.isInstance(n.request))return e(n);let o=xt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||K0t)(a));return(l.successHandler||X0t)(u.response,a),u},"httpSigningMiddleware")});var VQ,Aa,NTe=g(()=>{w5();VQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Aa=i(t=>({applyToStack:i(e=>{e.addRelativeTo(CS(t),VQ)},"applyToStack")}),"getHttpSigningPlugin")});var TTe=g(()=>{w5();NTe()});var Bi,vTe=g(()=>{Bi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function PTe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)m=await Z0t(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield m;let f=d;d=eBt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}return void 0},"paginateOperation")}var Z0t,eBt,_Te=g(()=>{Z0t=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(PTe,"createPaginator");eBt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function QTe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var DTe=g(()=>{i(QTe,"setFeature")});var Mo,kTe=g(()=>{xe();Mo=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!X(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var S5,xy,LTe=g(()=>{be();S5=R(sa()),xy=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,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(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=We.clone(e);if(n.in===S5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===S5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var by,OTe=g(()=>{be();by=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=We.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var Vn,MTe=g(()=>{Vn=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var FTe=g(()=>{LTe();OTe();MTe()});var WQ,YQ,IS,By,wS,UTe=g(()=>{WQ=i(t=>i(function(r){return By(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),wS=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var qTe=g(()=>{kTe();FTe();UTe()});var x5={};Fr(x5,{DefaultIdentityProviderConfig:()=>Mo,EXPIRATION_MS:()=>YQ,HttpApiKeyAuthSigner:()=>xy,HttpBearerAuthSigner:()=>by,NoAuthSigner:()=>Vn,createIsIdentityExpiredFunction:()=>WQ,createPaginator:()=>PTe,doesIdentityRequireRefresh:()=>By,getHttpAuthSchemeEndpointRuleSetPlugin:()=>fa,getHttpAuthSchemePlugin:()=>I5,getHttpSigningPlugin:()=>Aa,getSmithyContext:()=>xt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>$Q,httpAuthSchemeMiddleware:()=>Ef,httpAuthSchemeMiddlewareOptions:()=>zQ,httpSigningMiddleware:()=>CS,httpSigningMiddlewareOptions:()=>VQ,isIdentityExpired:()=>IS,memoizeIdentityProvider:()=>wS,normalizeProvider:()=>Bi,requestBuilder:()=>cQ,setFeature:()=>QTe});var ys=g(()=>{xe();RTe();TTe();vTe();_Te();be();DTe();qTe()});function tBt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function il(t){let e=Bi(t.userAgentAppId??SS),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!tBt(n)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n},"userAgentAppId")})}var SS,b5=g(()=>{ys();SS=void 0;i(tBt,"isValidUserAgentAppId");i(il,"resolveUserAgentConfig")});var B5,GTe=g(()=>{B5={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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)"}}}],version:"1.1"}});var HTe,$Te,JQ,R5,zTe,jQ,KQ=g(()=>{GTe();HTe=B5,$Te="",JQ=i(t=>{let{partitions:e}=HTe;for(let n of e){let{regions:s,outputs:o}=n;for(let[a,c]of Object.entries(s))if(a===t)return{...o,...c}}for(let n of e){let{regionRegex:s,outputs:o}=n;if(new RegExp(s).test(t))return{...o}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),R5=i((t,e="")=>{HTe=t,$Te=e},"setPartitionInfo"),zTe=i(()=>{R5(B5,"")},"useDefaultPartitionInfo"),jQ=i(()=>$Te,"getUserAgentPrefix")});async function VTe(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&bi(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case dn.ADAPTIVE:bi(t,"RETRY_MODE_ADAPTIVE","F");break;case dn.STANDARD:bi(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(rBt)&&bi(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":bi(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":bi(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":bi(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&bi(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))bi(t,a,c)}}var rBt,WTe=g(()=>{Oo();l5();rBt=/\d{12}\.ddb/;i(VTe,"checkFeatures")});var N5,XQ,YTe,JTe,jTe=g(()=>{N5="user-agent",XQ="x-amz-user-agent",YTe=/[^!$%&'*+\-.^_`|~\w]/g,JTe=/[^!$%&'*+\-.^_`|~\w#]/g});function KTe(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var XTe=g(()=>{i(KTe,"encodeFeatures")});var v5,ZQ,P5,al,tve=g(()=>{be();KQ();WTe();jTe();XTe();v5=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!We.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(ZQ)||[],c=(await t.defaultUserAgentProvider()).map(ZQ);await VTe(r,t,n);let l=r;c.push(`m/${KTe(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(ZQ)||[],d=await t.userAgentAppId();d&&c.push(ZQ(["app",`${d}`]));let p=jQ(),m=(p?[p]:[]).concat([...c,...a,...u]).join(" "),f=[...c.filter(A=>A.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(f&&(o[XQ]=o[XQ]?`${o[N5]} ${f}`:f),o[N5]=m):o[XQ]=m,e({...n,request:s})},"userAgentMiddleware"),ZQ=i(t=>{let e=t[0].split("/").map(a=>a.replace(YTe,"-")).join("/"),r=t[1]?.replace(JTe,"-"),n=e.indexOf("/"),s=e.substring(0,n),o=e.substring(n+1);return s==="api"&&(o=o.toLowerCase()),[s,o,r].filter(a=>a&&a.length>0).reduce((a,c,l)=>{switch(l){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),P5={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},al=i(t=>({applyToStack:i(e=>{e.add(v5(t),P5)},"applyToStack")}),"getUserAgentPlugin")});var eD,rve,nve=g(()=>{eD=require("node:process"),rve=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(eD.versions[e])return[`md/${e}`,eD.versions[e]];return["md/nodejs",eD.versions.node]},"getRuntimeUserAgentPair")});var xS,_5=g(()=>{xS={isCrtAvailable:!1}});var sve,ove=g(()=>{_5();sve=i(()=>xS.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var tD,Q5,ha,ive,ave=g(()=>{tD=require("node:os"),Q5=require("node:process");nve();ove();_5();ha=i(({serviceId:t,clientVersion:e})=>{let r=rve();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,tD.platform)()}`,(0,tD.release)()],["lang/js"],r],o=sve();o&&s.push(o),t&&s.push([`api/${t}`,e]),Q5.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${Q5.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),ive=ha});var D5,k5,nBt,cl,cve=g(()=>{b5();D5="AWS_SDK_UA_APP_ID",k5="sdk_ua_app_id",nBt="sdk-ua-app-id",cl={environmentVariableSelector:i(t=>t[D5],"environmentVariableSelector"),configFileSelector:i(t=>t[k5]??t[nBt],"configFileSelector"),default:SS}});var lve=w((bS,L5)=>{(function(t,e){typeof bS=="object"&&typeof L5=="object"?L5.exports=e():typeof define=="function"&&define.amd?define([],e):typeof bS=="object"?bS.bowser=e():t.bowser=e()})(bS,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return i(r,"r"),r.m=t,r.c=e,r.d=function(n,s,o){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)r.d(o,a,function(c){return n[c]}.bind(null,a));return o},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),s=(function(){function o(){}return i(o,"e"),o.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||""},o.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||""},o.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},o.getWindowsVersionName=function(a){switch(a){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},o.getAndroidVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?"Cupcake":c[0]===1&&c[1]>=6?"Donut":c[0]===2&&c[1]<2?"Eclair":c[0]===2&&c[1]===2?"Froyo":c[0]===2&&c[1]>2?"Gingerbread":c[0]===3?"Honeycomb":c[0]===4&&c[1]<1?"Ice Cream Sandwich":c[0]===4&&c[1]<4?"Jelly Bean":c[0]===4&&c[1]>=4?"KitKat":c[0]===5?"Lollipop":c[0]===6?"Marshmallow":c[0]===7?"Nougat":c[0]===8?"Oreo":c[0]===9?"Pie":void 0},o.getVersionPrecision=function(a){return a.split(".").length},o.compareVersions=function(a,c,l){l===void 0&&(l=!1);var u=o.getVersionPrecision(a),d=o.getVersionPrecision(c),p=Math.max(u,d),m=0,f=o.map([a,c],(function(A){var h=p-o.getVersionPrecision(A),E=A+new Array(h+1).join(".0");return o.map(E.split("."),(function(y){return new Array(20-y.length).join("0")+y})).reverse()}));for(l&&(m=p-Math.min(u,d)),p-=1;p>=m;){if(f[0][p]>f[1][p])return 1;if(f[0][p]===f[1][p]){if(p===m)return 0;p-=1}else if(f[0][p]1?d-1:0),m=1;m0){var I=Object.keys(A),x=c.default.find(I,(function(ae){return f.isOS(ae)}));if(x){var b=this.satisfies(A[x]);if(b!==void 0)return b}var N=c.default.find(I,(function(ae){return f.isPlatform(ae)}));if(N){var P=this.satisfies(A[N]);if(P!==void 0)return P}}if(y>0){var _=Object.keys(E),G=c.default.find(_,(function(ae){return f.isBrowser(ae,!0)}));if(G!==void 0)return this.compareVersion(E[G])}},p.isBrowser=function(m,f){f===void 0&&(f=!1);var A=this.getBrowserName().toLowerCase(),h=m.toLowerCase(),E=c.default.getBrowserTypeByAlias(h);return f&&E&&(h=E.toLowerCase()),h===A},p.compareVersion=function(m){var f=[0],A=m,h=!1,E=this.getBrowserVersion();if(typeof E=="string")return m[0]===">"||m[0]==="<"?(A=m.substr(1),m[1]==="="?(h=!0,A=m.substr(2)):f=[],m[0]===">"?f.push(1):f.push(-1)):m[0]==="="?A=m.substr(1):m[0]==="~"&&(h=!0,A=m.substr(1)),f.indexOf(c.default.compareVersions(E,A,h))>-1},p.isOS=function(m){return this.getOSName(!0)===String(m).toLowerCase()},p.isPlatform=function(m){return this.getPlatformType(!0)===String(m).toLowerCase()},p.isEngine=function(m){return this.getEngineName(!0)===String(m).toLowerCase()},p.is=function(m,f){return f===void 0&&(f=!1),this.isBrowser(m,f)||this.isOS(m)||this.isPlatform(m)},p.some=function(m){var f=this;return m===void 0&&(m=[]),m.some((function(A){return f.is(A)}))},d})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:i(function(c){var l={name:"Googlebot"},u=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/opera/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opr\/|opios/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/SamsungBrowser/i],describe:i(function(c){var l={name:"Samsung Internet for Android"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Whale/i],describe:i(function(c){var l={name:"NAVER Whale Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MZBrowser/i],describe:i(function(c){var l={name:"MZ Browser"},u=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/focus/i],describe:i(function(c){var l={name:"Focus"},u=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/swing/i],describe:i(function(c){var l={name:"Swing"},u=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/coast/i],describe:i(function(c){var l={name:"Opera Coast"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:i(function(c){var l={name:"Opera Touch"},u=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/yabrowser/i],describe:i(function(c){var l={name:"Yandex Browser"},u=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/ucbrowser/i],describe:i(function(c){var l={name:"UC Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Maxthon|mxios/i],describe:i(function(c){var l={name:"Maxthon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/epiphany/i],describe:i(function(c){var l={name:"Epiphany"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/puffin/i],describe:i(function(c){var l={name:"Puffin"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sleipnir/i],describe:i(function(c){var l={name:"Sleipnir"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/k-meleon/i],describe:i(function(c){var l={name:"K-Meleon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/micromessenger/i],describe:i(function(c){var l={name:"WeChat"},u=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qqbrowser/i],describe:i(function(c){var l={name:/qqbrowserlite/i.test(c)?"QQ Browser Lite":"QQ Browser"},u=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/msie|trident/i],describe:i(function(c){var l={name:"Internet Explorer"},u=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/\sedg\//i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/edg([ea]|ios)/i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/vivaldi/i],describe:i(function(c){var l={name:"Vivaldi"},u=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/seamonkey/i],describe:i(function(c){var l={name:"SeaMonkey"},u=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sailfish/i],describe:i(function(c){var l={name:"Sailfish"},u=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,c);return u&&(l.version=u),l},"describe")},{test:[/silk/i],describe:i(function(c){var l={name:"Amazon Silk"},u=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/phantom/i],describe:i(function(c){var l={name:"PhantomJS"},u=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/slimerjs/i],describe:i(function(c){var l={name:"SlimerJS"},u=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l={name:"BlackBerry"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l={name:"WebOS Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/bada/i],describe:i(function(c){var l={name:"Bada"},u=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/tizen/i],describe:i(function(c){var l={name:"Tizen"},u=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qupzilla/i],describe:i(function(c){var l={name:"QupZilla"},u=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/firefox|iceweasel|fxios/i],describe:i(function(c){var l={name:"Firefox"},u=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/electron/i],describe:i(function(c){var l={name:"Electron"},u=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MiuiBrowser/i],describe:i(function(c){var l={name:"Miui"},u=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/chromium/i],describe:i(function(c){var l={name:"Chromium"},u=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/chrome|crios|crmo/i],describe:i(function(c){var l={name:"Chrome"},u=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/GSA/i],describe:i(function(c){var l={name:"Google Search"},u=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l={name:"Android Browser"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/playstation 4/i],describe:i(function(c){var l={name:"PlayStation 4"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/safari|applewebkit/i],describe:i(function(c){var l={name:"Safari"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/.*/i],describe:i(function(c){var l=c.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:s.default.getFirstMatch(l,c),version:s.default.getSecondMatch(l,c)}},"describe")}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:i(function(c){var l=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,c);return{name:o.OS_MAP.Roku,version:l}},"describe")},{test:[/windows phone/i],describe:i(function(c){var l=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.WindowsPhone,version:l}},"describe")},{test:[/windows /i],describe:i(function(c){var l=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,c),u=s.default.getWindowsVersionName(l);return{name:o.OS_MAP.Windows,version:l,versionName:u}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(c){var l={name:o.OS_MAP.iOS},u=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,c);return u&&(l.version=u),l},"describe")},{test:[/macintosh/i],describe:i(function(c){var l=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,c).replace(/[_\s]/g,"."),u=s.default.getMacOSVersionName(l),d={name:o.OS_MAP.MacOS,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(ipod|iphone|ipad)/i],describe:i(function(c){var l=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,c).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:l}},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,c),u=s.default.getAndroidVersionName(l),d={name:o.OS_MAP.Android,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,c),u={name:o.OS_MAP.WebOS};return l&&l.length&&(u.version=l),u},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,c)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,c)||s.default.getFirstMatch(/\bbb(\d+)/i,c);return{name:o.OS_MAP.BlackBerry,version:l}},"describe")},{test:[/bada/i],describe:i(function(c){var l=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Bada,version:l}},"describe")},{test:[/tizen/i],describe:i(function(c){var l=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Tizen,version:l}},"describe")},{test:[/linux/i],describe:i(function(){return{name:o.OS_MAP.Linux}},"describe")},{test:[/CrOS/],describe:i(function(){return{name:o.OS_MAP.ChromeOS}},"describe")},{test:[/PlayStation 4/],describe:i(function(c){var l=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.PlayStation4,version:l}},"describe")}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:i(function(){return{type:"bot",vendor:"Google"}},"describe")},{test:[/huawei/i],describe:i(function(c){var l=s.default.getFirstMatch(/(can-l01)/i,c)&&"Nova",u={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return l&&(u.model=l),u},"describe")},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}},"describe")},{test:[/ipad/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/kftt build/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}},"describe")},{test:[/silk/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}},"describe")},{test:[/tablet(?! pc)/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){var l=c.test(/ipod|iphone/i),u=c.test(/like (ipod|iphone)/i);return l&&!u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:l}},"describe")},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}},"describe")},{test:[/[^-]mobi/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="blackberry"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="bada"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName()==="windows phone"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}},"describe")},{test:i(function(c){var l=Number(String(c.getOSVersion()).split(".")[0]);return c.getOSName(!0)==="android"&&l>=3},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){return c.getOSName(!0)==="android"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getOSName(!0)==="macos"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}},"describe")},{test:i(function(c){return c.getOSName(!0)==="windows"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="linux"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="playstation 4"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")},{test:i(function(c){return c.getOSName(!0)==="roku"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:i(function(c){return c.getBrowserName(!0)==="microsoft edge"},"test"),describe:i(function(c){if(/\sedg\//i.test(c))return{name:o.ENGINE_MAP.Blink};var l=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,c);return{name:o.ENGINE_MAP.EdgeHTML,version:l}},"describe")},{test:[/trident/i],describe:i(function(c){var l={name:o.ENGINE_MAP.Trident},u=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){return c.test(/presto/i)},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Presto},u=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=c.test(/gecko/i),u=c.test(/like gecko/i);return l&&!u},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Gecko},u=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(apple)?webkit\/537\.36/i],describe:i(function(){return{name:o.ENGINE_MAP.Blink}},"describe")},{test:[/(apple)?webkit/i],describe:i(function(c){var l={name:o.ENGINE_MAP.WebKit},u=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")}];e.default=a,t.exports=e.default}})}))});var uve,dve=g(()=>{uve=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(lve())),s=n.parse??n.default.parse??(()=>""),o=typeof window<"u"&&window?.navigator?.userAgent?s(window.navigator.userAgent):void 0,a=[["aws-sdk-js",e],["ua","2.1"],[`os/${o?.os?.name||"other"}`,o?.os?.version],["lang/js"],["md/browser",`${o?.browser?.name??"unknown"}_${o?.browser?.version??"unknown"}`]];t&&a.push([`api/${t}`,e]);let c=await r?.userAgentAppId?.();return c&&a.push([`app/${c}`]),a},"createUserAgentStringParsingProvider")});var pve,mve=g(()=>{pve={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var O5=g(()=>{Pt()});var BS,M5=g(()=>{Pt();O5();BS=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!BS(r))return!1;return!0}return!(!oa(t)||t.length<3||t.length>63||t!==t.toLowerCase()||iu(t))},"isVirtualHostableS3Bucket")});var rD,F5=g(()=>{rD=i(t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,s,o,a,...c]=e;if(r!=="arn"||n===""||s===""||c.join(":")==="")return null;let l=c.map(u=>u.split("/")).flat();return{partition:n,service:s,region:o,accountId:a,resourceId:l}},"parseArn")});var ga,fve=g(()=>{Pt();M5();F5();KQ();ga={isVirtualHostableS3Bucket:BS,parseArn:rD,partition:JQ};Hs.aws=ga});var Ave=g(()=>{Pt()});var hve,U5,gve=g(()=>{be();hve=i(t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>U5(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},"resolveDefaultAwsRegionalEndpointsConfig"),U5=i(t=>Bn(t.url),"toEndpointV1")});var yve=g(()=>{Pt()});var Eve=g(()=>{yt();yt()});function nD(t={}){return ke({...Rn,async default(){return q5.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."),"us-east-1"}},{...gs,...t})}var q5,Cve=g(()=>{yt();i(nD,"stsRegionDefaultResolver");q5={silence:!1}});var ll,ul,Ive=g(()=>{ll=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),ul=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var ya={};Fr(ya,{DEFAULT_UA_APP_ID:()=>SS,EndpointError:()=>ot,NODE_APP_ID_CONFIG_OPTIONS:()=>cl,NODE_REGION_CONFIG_FILE_OPTIONS:()=>gs,NODE_REGION_CONFIG_OPTIONS:()=>Rn,REGION_ENV_NAME:()=>Wg,REGION_INI_NAME:()=>Yg,UA_APP_ID_ENV_NAME:()=>D5,UA_APP_ID_INI_NAME:()=>k5,awsEndpointFunctions:()=>ga,createDefaultUserAgentProvider:()=>ha,createUserAgentStringParsingProvider:()=>uve,crtAvailability:()=>xS,defaultUserAgent:()=>ive,emitWarningIfUnsupportedVersion:()=>Pc,fallback:()=>pve,getAwsRegionExtensionConfiguration:()=>ll,getHostHeaderPlugin:()=>nl,getLoggerPlugin:()=>sl,getLongPollPlugin:()=>NSe,getRecursionDetectionPlugin:()=>ol,getUserAgentMiddlewareOptions:()=>P5,getUserAgentPlugin:()=>al,getUserAgentPrefix:()=>jQ,hostHeaderMiddleware:()=>u5,hostHeaderMiddlewareOptions:()=>d5,isIpAddress:()=>iu,isVirtualHostableS3Bucket:()=>BS,loggerMiddleware:()=>p5,loggerMiddlewareOptions:()=>m5,parseArn:()=>rD,partition:()=>JQ,recursionDetectionMiddleware:()=>GQ,recursionDetectionMiddlewareOptions:()=>UQ,resolveAwsRegionExtensionConfiguration:()=>ul,resolveDefaultAwsRegionalEndpointsConfig:()=>hve,resolveEndpoint:()=>aS,resolveHostHeaderConfig:()=>Sy,resolveRegionConfig:()=>_o,resolveUserAgentConfig:()=>il,setCredentialFeature:()=>xd,setFeature:()=>bi,setPartitionInfo:()=>R5,setTokenFeature:()=>ATe,state:()=>Dw,stsRegionDefaultResolver:()=>nD,stsRegionWarning:()=>q5,toEndpointV1:()=>U5,useDefaultPartitionInfo:()=>zTe,userAgentMiddleware:()=>v5});var Et=g(()=>{RSe();TSe();vSe();l5();hTe();gTe();yTe();f5();wTe();C5();b5();tve();ave();cve();mve();dve();fve();Ave();gve();O5();M5();F5();KQ();yve();Eve();Cve();Ive()});var sD,oD,wve=g(()=>{be();sD=i(t=>an.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),oD=i(t=>an.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var RS,Sve=g(()=>{RS=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var iD,xve=g(()=>{iD=i((t,e,r,n)=>{if(n!==void 0)return e;let s=Date.parse(t),o=Date.now();return r!==void 0&&o-r>9e5?e:r!==void 0?s-(r+o)/2:s-o},"getUpdatedSystemClockOffset")});var G5=g(()=>{wve();Sve();xve()});var bve,NS,sBt,Ry,pn,H5,$5=g(()=>{be();bve=R(sa());G5();NS=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),sBt=i(t=>t.context?.[bve.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),Ry=i(async t=>{let e=NS("context",t.context),r=NS("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await NS("signer",r.signer)(n),a=t?.signingRegion,c=t?.signingRegionSet,l=t?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}},"validateSigningProperties"),pn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!We.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await Ry(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[f,A]=u.authSchemes;f?.name==="sigv4a"&&A?.name==="sigv4"&&(c=A?.signingRegion??c,l=A?.signingName??l)}let d=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=d;let p=d||sBt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:RS(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??sD(n.$response);if(s){let o=NS("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=oD(n.$response),u=iD(s,o.systemClockOffset,c,l);o.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==a||a!==void 0&&a!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=sD(e);if(n){let s=NS("config",r.config),o=r._requestSentAt,a=oD(e);s.systemClockOffset=iD(n,s.systemClockOffset,o,a)}}},H5=pn});var Au,Bve=g(()=>{be();G5();$5();Au=class extends pn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!We.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}=await Ry(n),d=(await s.sigv4aSigningRegionSet?.()??c??[a]).join(","),p=await s.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=p,p||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await o.sign(e,{signingDate:p?new Date:RS(s.systemClockOffset),signingRegion:d,signingService:l})}}});var z5,Rve=g(()=>{z5=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var aD,V5=g(()=>{aD=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var Nve,Tve,Ea,vve=g(()=>{Rve();V5();Nve="AWS_AUTH_SCHEME_PREFERENCE",Tve="auth_scheme_preference",Ea={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&aD(e.signingName)in t)return["httpBearerAuth"];if(Nve in t)return z5(t[Nve])},"environmentVariableSelector"),configFileSelector:i(t=>{if(Tve in t)return z5(t[Tve])},"configFileSelector"),default:[]}});var TS,vS,Pve=g(()=>{ys();yt();TS=i(t=>(t.sigv4aSigningRegionSet=Bi(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),vS={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Po("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Po("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var s6=w($e=>{var{hasOwn:Ty,fromUtf8:_ve,fromHex:oBt,toHex:Cf,toUint8Array:PS,isArrayBuffer:iBt}=(Se(),ee(mf)),{normalizeProvider:Qve}=(we(),ee(Dg)),{escapeUri:cD,HttpRequest:Ove}=(be(),ee(Jd)),W5=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!Ty(e,o))continue;let a=_ve(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=_ve(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Y5.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!aBt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(oBt(e.value.replace(/-/g,"")),1),p}}},Dve;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(Dve||(Dve={}));var aBt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Y5=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&kve(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&kve(e),parseInt(Cf(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function kve(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(kve,"negate");var Mve="X-Amz-Algorithm",Fve="X-Amz-Credential",X5="X-Amz-Date",Uve="X-Amz-SignedHeaders",qve="X-Amz-Expires",Z5="X-Amz-Signature",e6="X-Amz-Security-Token",cBt="X-Amz-Region-Set",t6="authorization",r6=X5.toLowerCase(),Gve="date",Hve=[t6,r6,Gve],$ve=Z5.toLowerCase(),mD="x-amz-content-sha256",zve=e6.toLowerCase(),lBt="host",Vve={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Wve=/^proxy-/,Yve=/^sec-/,uBt=[/^proxy-/i,/^sec-/i],lD="AWS4-HMAC-SHA256",dBt="AWS4-ECDSA-P256-SHA256",Jve="AWS4-HMAC-SHA256-PAYLOAD",jve="UNSIGNED-PAYLOAD",Kve=50,n6="aws4_request",Xve=3600*24*7,Zve=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!Ty(t,n)||n.toLowerCase()===$ve)continue;let s=cD(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${cD(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${cD(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),pBt=i(t=>mBt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),mBt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),fD=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){this.service=s,this.sha256=o,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=Qve(n),this.credentialProvider=Qve(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} +`)}p.push(null)}catch(f){p.destroy(f)}}),p}var MRe,URe=g(()=>{MRe=require("node:stream");ORe();da();i(FRe,"getAwsChunkedEncodingStream")});async function qRe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var GRe=g(()=>{i(qRe,"headStream")});var $Re,HRe,cj,zRe=g(()=>{$Re=require("node:stream");nS();GRe();da();HRe=i((t,e)=>Jr(t)?qRe(t,e):new Promise((r,n)=>{let s=new cj;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=qc(this.buffers);r(o)})}),"headStream"),cj=class extends $Re.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var VRe,WRe=g(()=>{VRe=i(t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)},"toUtf8")});async function lj(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function uj(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return qc(e,n)}var YRe,dj=g(()=>{nS();da();YRe=i(async t=>Ld(t)?lj(t):uj(t),"streamCollector");i(lj,"collectBlob");i(uj,"collectReadableStream")});var JRe,KRe,jRe,XRe=g(()=>{sj();eJ();WRe();dj();da();JRe="The stream has already been transformed.",KRe=i(t=>{if(!jRe(t)&&!Jr(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(JRe);return e=!0,await YRe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +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 s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return eQ(o);if(s==="hex")return Ii(o);if(s===void 0||s==="utf8"||s==="utf-8")return VRe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(JRe);if(e=!0,jRe(t))return n(t);if(Jr(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),jRe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var ZRe,rQ,pj,fj=g(()=>{ZRe=require("node:stream");nS();dj();da();rQ=i(t=>Ld(t)?lj(t):Jr(t)?uj(t):new Promise((e,r)=>{let n=new pj,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=qc(this.bufferedBytes);e(o)})}),"streamCollector"),pj=class extends ZRe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var nQ,eNe,sQ,tNe=g(()=>{nQ=require("node:stream");vd();XRe();fj();eNe="The stream has already been transformed.",sQ=i(t=>{if(!(t instanceof nQ.Readable))try{return KRe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(eNe);return e=!0,await rQ(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?ua(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(eNe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof nQ.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,nQ.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function rNe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var nNe=g(()=>{i(rNe,"splitStream")});async function sNe(t){if(Jr(t)||Ld(t))return rNe(t);let e=new mj.PassThrough,r=new mj.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var mj,oNe=g(()=>{mj=require("node:stream");nNe();da();i(sNe,"splitStream")});var ym={};Mr(ym,{ChecksumStream:()=>ry,Hash:()=>K_,LazyJsonString:()=>Dr,NumericValue:()=>Ye,Uint8ArrayBlobAdapter:()=>gm,_parseEpochTimestamp:()=>Dd,_parseRfc3339DateTimeWithOffset:()=>f_,_parseRfc7231DateTime:()=>m_,calculateBodyLength:()=>Uc,concatBytes:()=>qc,copyDocumentWithTransform:()=>wbe,createBufferedReadable:()=>DRe,createChecksumStream:()=>TRe,dateToUtcString:()=>Po,deserializerMiddleware:()=>y_,deserializerMiddlewareOption:()=>ej,expectBoolean:()=>bbe,expectByte:()=>i_,expectFloat32:()=>eS,expectInt:()=>Bbe,expectInt32:()=>s_,expectLong:()=>qg,expectNonNull:()=>Rbe,expectNumber:()=>Ug,expectObject:()=>z8,expectShort:()=>o_,expectString:()=>Nbe,expectUnion:()=>c_,fromArrayBuffer:()=>ua,fromBase64:()=>mr,fromHex:()=>g_,fromString:()=>Pd,fromUtf8:()=>Yr,generateIdempotencyToken:()=>Lo,getAwsChunkedEncodingStream:()=>FRe,getSerdePlugin:()=>ARe,handleFloat:()=>Pbe,hasOwn:()=>X,headStream:()=>HRe,isArrayBuffer:()=>t_,isBlob:()=>Ld,isReadableStream:()=>Jr,limitedParseDouble:()=>u_,limitedParseFloat:()=>vbe,limitedParseFloat32:()=>_be,logger:()=>Gg,nv:()=>h_,parseBoolean:()=>xbe,parseEpochTimestamp:()=>Vg,parseRfc3339DateTime:()=>Lbe,parseRfc3339DateTimeWithOffset:()=>zg,parseRfc7231DateTime:()=>Qd,quoteHeader:()=>p_,sdkStreamMixin:()=>sQ,serializerMiddleware:()=>j_,serializerMiddlewareOption:()=>tj,splitEvery:()=>A_,splitHeader:()=>Wg,splitStream:()=>sNe,streamCollector:()=>rQ,strictParseByte:()=>d_,strictParseDouble:()=>tS,strictParseFloat:()=>Tbe,strictParseFloat32:()=>l_,strictParseInt:()=>Dbe,strictParseInt32:()=>kbe,strictParseLong:()=>V8,strictParseShort:()=>_d,toBase64:()=>Pt,toHex:()=>Ii,toUint8Array:()=>gs,toUtf8:()=>Mt,v4:()=>ny});var iNe,gm,yBt,ny,Lo,Ie=g(()=>{iNe=require("node:crypto");hbe();$8();ybe();r_();Ebe();Ibe();Sbe();Obe();Mbe();W8();Fbe();Gbe();$be();Hbe();Vbe();eJ();Ybe();tJ();nS();vd();G8();nJ();hRe();ZJ();yRe();rj();PRe();kRe();URe();zRe();tNe();oNe();da();fj();we();gm=class extends gbe(Mt,Yr,Pt,mr){static{i(this,"Uint8ArrayBlobAdapter")}},yBt=iNe.getRandomValues,ny=Cbe(yBt),Lo=ny});var jr,sy=g(()=>{Ie();jr=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return gm.mutate(t);if(!t)return gm.mutate(new Uint8Array);let r=e.streamCollector(t);return gm.mutate(await r)},"collectBody")});function pa(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var oQ=g(()=>{i(pa,"extendedEncodeURIComponent")});var ln,oy=g(()=>{ln=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function iQ(t,e,r=1024*1024){let n=t.size,s=0;for(;s{i(iQ,"blobReader")});var aNe,cNe=g(()=>{Aj();aNe=i(async function(e,r){let n=new e;return await iQ(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var lNe,iy,hj=g(()=>{lNe=require("node:stream");Ie();iy=class extends lNe.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(gs(e))}catch(s){return n(s)}n()}}});var uNe,dNe,EBt,pNe=g(()=>{uNe=require("node:fs");hj();dNe=i((t,e)=>new Promise((r,n)=>{if(!EBt(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,uNe.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new iy(o);s.pipe(a),s.on("error",c=>{a.end(),n(c)}),a.on("error",n),a.on("finish",function(){o.digest().then(r).catch(n)})}),"fileStreamHasher"),EBt=i(t=>typeof t.path=="string","isReadStream")});var fNe,mNe=g(()=>{hj();fNe=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new iy(r);return e.pipe(n),new Promise((s,o)=>{e.on("error",a=>{n.end(),o(a)}),n.on("error",o),n.on("finish",()=>{r.digest().then(s).catch(o)})})},"readableStreamHasher")});function gj(t,e){let r=t[0],n=t[1],s=t[2],o=t[3];for(let a=0;a<64;++a){let c,l;a<16?(c=n&s|~n&o,l=a):a<32?(c=o&n|s&~o,l=(5*a+1)%16):a<48?(c=n^s^o,l=(3*a+5)%16):(c=s^(n|~o),l=7*a%16);let u=e.getUint32(l*4,!0),d=o;o=s,s=n;let p=CBt[(a>>4)*4+(a&3)],f=(r+c&Od)+(u+IBt[a]&Od)&Od;n=n+((f<>>32-p)>>>0)&Od,r=d}t[0]=t[0]+r&Od,t[1]=t[1]+n&Od,t[2]=t[2]+s&Od,t[3]=t[3]+o&Od}var ay,ANe,Od,CBt,IBt,yj=g(()=>{Ie();ay=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(ANe);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=gs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(gj(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,s=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let c=n;c<64;++c)r.setUint8(c,0);gj(e,r),n=0}for(let c=n;c<56;++c)r.setUint8(c,0);r.setUint32(56,s>>>0,!0),r.setUint32(60,Math.floor(s/2**32),!0),gj(e,r);let o=new Uint8Array(16),a=new DataView(o.buffer);for(let c=0;c<4;++c)a.setUint32(c*4,e[c],!0);return o}reset(){this.state.set(ANe),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},ANe=[1732584193,4023233417,2562383102,271733878],Od=4294967295,CBt=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),IBt=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(gj,"compress")});function SBt(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,aQ.createHash)("md5");update(e){this.hash.update(gs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,aQ.createHash)("md5")}}}var aQ,wBt,Ej,hNe=g(()=>{aQ=require("node:crypto");Ie();yj();wBt=(()=>{try{return(0,aQ.createHash)("md5"),!0}catch{return!1}})(),Ej=wBt?SBt():ay;i(SBt,"buildNativeClass")});var gNe,Cj,cy,Ij=g(()=>{gNe=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;gNe[t]=e>>>0}Cj=4294967295,cy=class{static{i(this,"Crc32Js")}digestLength=4;checksum=Cj;update(e){for(let r=0;r>>8^gNe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Cj)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Cj}}});function xBt(t){return class{static{i(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var wj,yNe,Em,ENe=g(()=>{wj=R(require("node:zlib"));Ij();yNe=typeof wj.crc32=="function"?wj.crc32:void 0,Em=yNe?xBt(yNe):cy;i(xBt,"buildNativeClass")});var Nn,CNe,bBt,pu,INe,BBt,cQ=g(()=>{Ie();Nn=64,CNe=32,bBt=2**53-1,pu=class t{static{i(this,"Sha256Js")}digestLength=CNe;state=Int32Array.from(INe);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:s}=this,o=new Uint8Array(Nn*2);for(let a=0;abBt)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===Nn&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(INe),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,s=this.bytesHashed*8,o=new DataView(r.buffer,r.byteOffset,r.byteLength);if(o.setUint8(n++,128),(n-1)%Nn>=Nn-8){for(let c=n;c>>24&255,a[c*4+1]=e[c]>>>16&255,a[c*4+2]=e[c]>>>8&255,a[c*4+3]=e[c]>>>0&255;return a}static normalizeKey(e){let r=gs(e);if(r.byteLength>Nn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(Nn);return o.set(s),o}if(r.byteLength>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=n[f-15];let y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;n[f]=(E+n[f-7]|0)+(y+n[f-16]|0)}let m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(p+(BBt[f]+n[f]|0)|0)|0,A=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&o^s&a^o&a)|0;p=d,d=u,u=l,l=c+m|0,c=a,a=o,o=s,s=m+A|0}e[0]+=s,e[1]+=o,e[2]+=a,e[3]+=c,e[4]+=l,e[5]+=u,e[6]+=d,e[7]+=p}},INe=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),BBt=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function NBt(){return class{static{i(this,"Sha256Node")}digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,AS.createHmac)("sha256",TBt(this.secret)):(0,AS.createHash)("sha256")}}}function TBt(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var AS,RBt,fa,wNe=g(()=>{AS=require("node:crypto");cQ();RBt=(()=>{try{return(0,AS.createHash)("sha256"),!0}catch{return!1}})(),fa=RBt?NBt():pu;i(NBt,"buildNativeClass");i(TBt,"toBuffer")});var PBt,vBt,_Bt,lQ,QBt,uQ,SNe=g(()=>{Ie();cQ();({digest:PBt,sign:vBt,importKey:_Bt}=globalThis?.crypto?.subtle??{}),lQ=typeof PBt=="function"&&typeof vBt=="function"&&typeof _Bt=="function"?globalThis.crypto.subtle:void 0,QBt=8*1024*1024,uQ=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=gs(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=QBt&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=qc(this.pending);if(lQ){if(this.secret){this.finished=!0;let s=await lQ.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await lQ.sign("HMAC",s,e);return new Uint8Array(o)}let n=await lQ.digest("SHA-256",e);return new Uint8Array(n)}let r=new pu(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new pu(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Sj={};Mr(Sj,{Crc32:()=>Em,Crc32Js:()=>cy,Crc32Node:()=>Em,Md5:()=>Ej,Md5Js:()=>ay,Md5Node:()=>Ej,Sha256:()=>fa,Sha256Js:()=>pu,Sha256Node:()=>fa,Sha256WebCrypto:()=>uQ,blobHasher:()=>aNe,blobReader:()=>iQ,fileStreamHasher:()=>dNe,readableStreamHasher:()=>fNe});var fu=g(()=>{cNe();pNe();mNe();yj();hNe();Ij();ENe();cQ();wNe();SNe();Aj()});function xNe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Md,xj=g(()=>{Ie();Md=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&xNe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&xNe(e),parseInt(Ii(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(xNe,"negate")});var ly,bNe,BNe,DBt,kBt,LBt,OBt,MBt,FBt,UBt,qBt,GBt,bj=g(()=>{we();Ie();xj();ly=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o in e){if(!X(e,o))continue;let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Md.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!GBt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(g_(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{fu();RNe=4,Fd=RNe*2,Cm=4,$Bt=Fd+Cm*2;i(NNe,"splitMessage")});var uy,Bj=g(()=>{fu();bj();TNe();uy=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new ly(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new Em;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),c.update(o.subarray(0,8)),a.setUint32(8,c.digestSync(),!1),o.set(n,12),o.set(r,n.byteLength+12),c.update(o.subarray(8,s-4)),a.setUint32(s-4,c.digestSync(),!1),o}decode(e){let{headers:r,body:n}=NNe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var dy,Rj=g(()=>{dy=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var py,Nj=g(()=>{py=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var fy,Tj=g(()=>{fy=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var my,Pj=g(()=>{my=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function dQ(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p{i(dQ,"getChunkedStream")});function PNe(t,e){let r=hS(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function hS(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var _j=g(()=>{i(PNe,"getUnmarshalledStream");i(hS,"getMessageUnmarshaller")});var Im,vNe,Qj=g(()=>{Bj();Rj();Nj();Tj();Pj();vj();_j();Im=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new uy(e,r),this.utfEncoder=e}deserialize(e,r){let n=dQ(e);return new fy({messageStream:new dy({inputStream:n,decoder:this.eventStreamCodec}),deserializer:hS(r,this.utfEncoder)})}serialize(e,r){return new py({messageStream:new my({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},vNe=i(t=>new Im(t),"eventStreamSerdeProvider")});async function*HBt(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var _Ne,gS,QNe,DNe=g(()=>{_Ne=require("node:stream");Qj();gS=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Im({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:HBt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return _Ne.Readable.from(this.universalMarshaller.serialize(e,r))}},QNe=i(t=>new gS(t),"eventStreamSerdeProvider");i(HBt,"readableToIterable")});var kNe,LNe,ONe=g(()=>{kNe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),LNe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var MNe,FNe=g(()=>{MNe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var pQ,UNe=g(()=>{we();We();Ie();pQ=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o,compositeErrorRegistry:a}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o,this.compositeErrorRegistry=a}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),c=r.getMemberSchema(a),l=this.serializer,u=this.defaultContentType,d=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(n){let f={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};l.write(r,n);let m=l.flush();yield{[d]:!0,headers:f,body:m}}for await(let f of e)yield f}};return o.serialize(p,f=>{if(f[d])return{headers:f.headers,body:f.body};let m="";for(let x in f)if(X(f,x)&&x!=="__type"){m=x;break}let{additionalHeaders:A,body:h,eventType:E,explicitPayloadContentType:y}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:E},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:y??u},...A},body:h}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),l=r.getMemberSchema(a).getMemberSchemas(),u=Symbol("initialResponseMarker"),d=o.deserialize(e.body,async m=>{let A="";for(let E in m)if(X(m,E)&&E!=="__type"){A=E;break}let h=m[A].body;if(A===(s??"initial-response")){let E=await this.deserializer.read(r,h);return delete E[a],{[u]:!0,...E}}else if(A in l){let E=l[A];if(E.isStructSchema()){let y={},I=!1;for(let[x,b]of E.structIterator()){let{eventHeader:N,eventPayload:v}=b.getMergedTraits();if(I=I||!!(N||v),v)b.isBlobSchema()?y[x]=h:b.isStringSchema()?y[x]=(this.serdeContext?.utf8Encoder??Mt)(h):b.isStructSchema()&&(y[x]=await this.deserializer.read(b,h));else if(N){let _=m[A].headers[x]?.value;_!=null&&(b.isNumericSchema()?_&&typeof _=="object"&&"bytes"in _?y[x]=BigInt(_.toString()):y[x]=Number(_):y[x]=_)}}return{[A]:await this.readEventMember(E,h,I,y)}}return{[A]:await this.deserializer.read(E,h)}}else return{$unknown:m}}),p=d[Symbol.asyncIterator](),f=await p.next();if(f.done)return d;if(f.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in f.value)X(f.value,m)&&(n[m]=f.value[m])}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:m,value:A}=await p.next();if(m)break;yield A}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=ht.for(l);this.compositeErrorRegistry?.copyFrom(u),o=(this.compositeErrorRegistry??u)?.getErrorCtor(a)}let c=n?s:r.byteLength===0?{}:await this.deserializer.read(e,r);if(o){let l=c.message??c.Message??"Unknown",u={},d=e.getMergedTraits().error;return d&&(u.$fault=d),Object.assign(new o({}),u,{message:l},c)}return c}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let f=r.getMemberSchema(e);if(f.isStructSchema()){for(let[m,A]of f.structIterator()){let{eventHeader:h,eventPayload:E}=A.getMergedTraits();if(E)a=m;else if(h){let y=n[e][m],I="binary";A.isNumericSchema()?(-2)**31<=y&&y<=2**31-1?I="integer":I="long":A.isTimestampSchema()?I="timestamp":A.isStringSchema()?I="string":A.isBooleanSchema()&&(I="boolean"),y!=null&&(u[m]={type:I,value:y},delete n[e][m])}}if(a!==null){let m=f.getMemberSchema(a);m.isBlobSchema()?c="application/octet-stream":m.isStringSchema()&&(c="text/plain"),s.write(m,n[e][a])}else s.write(f,n[e])}else if(f.isUnitSchema())s.write(f,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[f,m]=n[e];o=f,s.write(15,m)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Yr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var qNe={};Mr(qNe,{EventStreamCodec:()=>uy,EventStreamMarshaller:()=>gS,EventStreamSerde:()=>pQ,HeaderMarshaller:()=>ly,Int64:()=>Md,MessageDecoderStream:()=>dy,MessageEncoderStream:()=>py,SmithyMessageDecoderStream:()=>fy,SmithyMessageEncoderStream:()=>my,UniversalEventStreamMarshaller:()=>Im,eventStreamSerdeProvider:()=>QNe,getChunkedStream:()=>dQ,getMessageUnmarshaller:()=>hS,getUnmarshalledStream:()=>PNe,iterableToReadableStream:()=>LNe,readableStreamToIterable:()=>kNe,resolveEventStreamSerdeConfig:()=>MNe,universalEventStreamSerdeProvider:()=>vNe});var GNe=g(()=>{Bj();bj();xj();Rj();Nj();Tj();Pj();DNe();ONe();Qj();vj();_j();FNe();UNe()});var Ud,fQ=g(()=>{we();We();we();oy();Ud=class extends ln{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new ht(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Ve}getResponseType(){return an}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=L.of(r.input),o=ca(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}if(e.hostname=a+e.hostname,!$w(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let s=[-3,"","Error",0,[],[],0],o;for(let a of n)for(let c of r)try{c==="*"?o=a.getSchema(e):o=a.getSchema(c+"#"+e);let l=a.getErrorCtor(o);if(l)return[o,l,"modeled"];{let u=a.getBaseException();if(u){let d=a.getErrorCtor(u);if(d)return[o,d,"synthetic"]}}}catch{}for(let a of n){let c=a.getBaseException();if(c){let l=a.getErrorCtor(c);if(l)return[c,l,"synthetic"]}}return[s,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(GNe(),qNe)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var qd,$Ne=g(()=>{we();We();Ie();we();fQ();sy();oQ();qd=class extends Ud{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=L.of(e?.input),d=[],p=[],f=!1,m,A=new Ve({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(A,l),this.setHostPrefix(A,e,s);let h=ca(e.traits);if(h.http){A.method=h.http[0];let[E,y]=h.http[1].split("?");A.path=="/"?A.path=E:A.path+=E;let I=new URLSearchParams(y??"");for(let[x,b]of I)a[x]=b}}for(let[h,E]of u.structIterator()){let y=E.getMergedTraits()??{},I=s[h];if(I==null&&!E.isIdempotencyToken()){if(y.httpLabel&&(A.path.includes(`{${h}+}`)||A.path.includes(`{${h}}`)))throw new Error(`No value provided for input HTTP label: ${h}.`);continue}if(y.httpPayload)E.isStreaming()?E.isStructSchema()?s[h]&&(m=await this.serializeEventStream({eventStream:s[h],requestSchema:u})):m=I:(o.write(E,I),m=o.flush());else if(y.httpLabel){o.write(E,I);let x=o.flush();A.path.includes(`{${h}+}`)?A.path=A.path.replace(`{${h}+}`,x.split("/").map(pa).join("/")):A.path.includes(`{${h}}`)&&(A.path=A.path.replace(`{${h}}`,pa(x)))}else if(y.httpHeader)o.write(E,I),c[y.httpHeader.toLowerCase()]=String(o.flush());else if(typeof y.httpPrefixHeaders=="string")for(let x in I){if(!X(I,x))continue;let b=I[x],N=y.httpPrefixHeaders+x;o.write([E.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else y.httpQuery||y.httpQueryParams?this.serializeQuery(E,I,a):(f=!0,d.push(h),p.push(E))}if(f&&s){let[h,E]=(u.getName(!0)??"#Unknown").split("#"),y=u.getSchema()[6],I=[3,h,E,u.getMergedTraits(),d,p,void 0];y?I[6]=y:I.pop(),o.write(I,s),m=o.flush()}return A.headers=c,A.query=a,A.body=m,A}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(X(r,a)&&!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let l=await jr(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await jr(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await jr(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=L.of(e),d=[];for(let[p,f]of u.structIterator()){let m=f.getMemberTraits();if(m.httpPayload){if(c=!1,f.isStreaming())f.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=sQ(n.body);else if(n.body){let h=await jr(n.body,r);h.byteLength>0&&(a[p]=await l.read(f,h))}}else if(m.httpHeader){let A=String(m.httpHeader).toLowerCase(),h=n.headers[A];if(h!=null)if(f.isListSchema()){let E=f.getValueSchema();E.getMergedTraits().httpHeader=A;let y;E.isTimestampSchema()&&E.getSchema()===4?y=A_(h,",",2):y=Wg(h);let I=[];for(let x of y)I.push(await l.read(E,x.trim()));a[p]=I}else a[p]=await l.read(f,h)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let A in n.headers)if(X(n.headers,A)&&A.startsWith(m.httpPrefixHeaders)){let h=n.headers[A],E=f.getValueSchema();E.getMergedTraits().httpHeader=A,a[p][A.slice(m.httpPrefixHeaders.length)]=await l.read(E,h)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var xi,Dj=g(()=>{we();We();we();fQ();sy();xi=class extends Ud{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=L.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Ve({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(f,c),this.setHostPrefix(f,e,p)),p){let m=l.getEventStreamMember();if(m){if(p[m]){let A={};for(let[h]of l.structIterator())h!==m&&p[h]!=null&&(A[h]=p[h]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:A})}}else s.write(u,p),d=s.flush()}return f.headers=Object.assign(f.headers,a),f.query=o,f.body=d,f.method="POST",f}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let l=await jr(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await jr(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var mQ,kj=g(()=>{oQ();mQ=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>pa(c)).join("/"):pa(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function AQ(t,e){return new yS(t,e)}var yS,HNe=g(()=>{we();kj();i(AQ,"requestBuilder");yS=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new Ve({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=mQ(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function un(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var Gd=g(()=>{i(un,"determineTimestampFormat")});var $d,Lj=g(()=>{We();Ie();oy();Gd();$d=class extends ln{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=L.of(e);if(n.isListSchema())return Wg(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??mr)(r);if(n.isTimestampSchema())switch(un(n,this.settings)){case 5:return f_(r);case 6:return m_(r);case 7:return Dd(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=Dr.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Ye(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Mt)((this.serdeContext?.base64Decoder??mr)(e))}}});var Hd,zNe=g(()=>{We();Ie();oy();Lj();Hd=class extends ln{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new $d(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=L.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Mt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Yr;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var Ay,Oj=g(()=>{We();Ie();oy();Gd();Ay=class extends ln{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=L.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(un(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Po(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Pt)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:p_(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=Dr.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Pt)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Lo():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var zd,VNe=g(()=>{We();Oj();zd=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new Ay(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=L.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var WNe,hQ,YNe=g(()=>{WNe=R(ia()),hQ=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=WNe.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var gQ,JNe=g(()=>{gQ=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}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(r=>r.kind===e)}}});var Jc,jc,jNe=g(()=>{Jc=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),jc=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function Mj(t){return e=>async r=>{let n=r.request;if(Ve.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(KNe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[KNe]:String(a)})}catch{}}return e({...r,request:n})}}var KNe,Fj,Kc,XNe=g(()=>{we();KNe="content-length";i(Mj,"contentLengthMiddleware");Fj={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Kc=i(t=>({applyToStack:i(e=>{e.add(Mj(t.bodyLengthChecker),Fj)},"applyToStack")}),"getContentLengthPlugin")});var Vd,zBt,yQ=g(()=>{Vd=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,zBt),"escapeUri"),zBt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var ZNe,eTe=g(()=>{yQ();ZNe=i(t=>t.split("/").map(Vd).join("/"),"escapeUriPath")});function tTe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Vd(r),Array.isArray(n))for(let s=0,o=n.length;s{yQ();i(tTe,"buildQueryString")});var Ws,wm=g(()=>{Ws=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var hy,Uj=g(()=>{hy=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function EQ(){if(ES===void 0)try{if(typeof Buffer!="function")ES=!1;else{let t=JSON.parse(Buffer.from([123,125]));ES=t!==null&&typeof t=="object"}}catch{ES=!1}return ES}var ES,qj=g(()=>{i(EQ,"detectBufferParsing")});function gy(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?WBt(n,e)?e:new Ye(n,"bigDecimal"):VBt(n)?new Ye(n,"bigDecimal"):/[eE]/.test(n)?YBt(n):BigInt(n)}return e}function VBt(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)=l.length?s=l+"0".repeat(d-l.length):s=l.slice(0,d)+"."+l.slice(d)}return s.includes(".")&&(s=s.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+s}function YBt(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),s=t.slice(n?1:0,e),o=s.indexOf("."),a,c;if(o===-1)a=s,c=r;else{a=s.slice(0,o)+s.slice(o+1);let u=s.length-o-1;c=r-u}a=a.replace(/0+$/,"")||"0";let l=BigInt(a)*10n**BigInt(c+(s.replace(".","").length-a.length));return n?-l:l}var CQ=g(()=>{Ie();i(gy,"jsonReviver");i(VBt,"isFractionalBigNumeric");i(WBt,"isRepresentable");i(Gj,"expandToDecimal");i(YBt,"expandExponentToBigInt")});function yy(t){let e=L.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if($j in r)return r[$j];let n=IQ(e,new Set);return r[$j]=n,n}return IQ(e,new Set)}function IQ(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(IQ(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(IQ(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var $j,wQ=g(()=>{We();$j=Symbol.for("@aws-sdk/reviver");i(yy,"needsReviver");i(IQ,"_check")});var nTe,sTe=g(()=>{sy();Ie();nTe=i((t,e)=>jr(t,e).then(r=>(e?.utf8Encoder??Mt)(r)),"collectBodyString")});async function mu(t,e,r){let n;if(EQ()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await jr(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await nTe(t,e)),n.length===0)return{};let s=r&&yy(r)?gy:void 0;try{return JSON.parse(n,s)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),o}}var SQ,oTe,Hj,Ey,Cy,xQ,iTe,CS=g(()=>{sy();sTe();qj();CQ();wQ();i(mu,"parseJsonBody");SQ=i(async(t,e)=>{let r=await mu(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),oTe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),Hj=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),Ey=i((t,e)=>iTe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),Cy=i((t,e,r=!1)=>iTe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),xQ=i((t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},"loadSmithyRpcV2JsonErrorCode"),iTe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=oTe(t??{},"x-amzn-errortype");if(s!==void 0)return Hj(t[s]);break;case"code":let o=oTe(e??{},"code");if(o&&e[o]!==void 0)return Hj(e[o]);break;case"type":if(e?.__type!==void 0)return Hj(e.__type);break}},"loadErrorCode")});function Xc(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var bQ=g(()=>{i(Xc,"writeKey")});var Wd,zj=g(()=>{Gd();We();Ie();wm();Uj();qj();CQ();wQ();CS();bQ();we();Wd=class extends Ws{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=yy(e)?gy:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&EQ()){if(r.byteLength===0)return{};let o=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);s=JSON.parse(o,n)}else s=await mu(r,this.serdeContext,e);return this._read(e,s)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=L.of(e);if(n){if(s.isStructSchema())return this._readStruct(s,r);if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema();if(this.needsTransform(a))for(let c=0;c{Ie();BQ=class t extends Uint8Array{static{i(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>aTe+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),aTe=e),this.string=Mt(this)}return this.string}},aTe=0});function Vj(t){return BQ.allocUnsafe(t)}var RQ,lTe,uTe,JBt,jBt,Iy,NQ,TQ,dTe,KBt,XBt,ZBt,Zc,pTe,Yd,Wj=g(()=>{Gd();We();Ie();wm();we();cTe();RQ=new TextEncoder,lTe=123,uTe=125,JBt=91,jBt=93,Iy=34,NQ=58,TQ=44,dTe=92,KBt=new Uint8Array([116,114,117,101]),XBt=new Uint8Array([102,97,108,115,101]),ZBt=new Uint8Array([110,117,108,108]),Zc=new Array(128).fill(null);Zc[8]="b";Zc[9]="t";Zc[10]="n";Zc[12]="f";Zc[13]="r";Zc[34]='"';Zc[92]="\\";for(let t=0;t<32;t++)Zc[t]===null&&(Zc[t]="u00"+t.toString(16).padStart(2,"0"));pTe=2048;i(Vj,"alloc");Yd=class t extends Ws{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=Vj(pTe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=L.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=L.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let s=`"__type":"${n.getName(!0)??"Unknown"}",`,o=s.length;this.ensure(o),this.json.copyWithin(1+o,1,this.i),RQ.encodeInto(s,this.json.subarray(1)),this.i+=o}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=Vj(pTe),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let s=n.length*2;for(;s34&&s<92)this.json[this.i++]=s;else if(s<128){let o=Zc[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=dTe;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=RQ.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=a,++n}else this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s)}else if(s>=56320&&s<=57343)this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s);else{let{i:o,json:a}=this;s<2048?(a[o++]=192|s>>6,a[o++]=128|s&63):(a[o++]=224|s>>12,a[o++]=128|s>>6&63,a[o++]=128|s&63),this.i=o}}this.json[this.i++]=Iy}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=dTe,r[n++]=117;let s=e.toString(16).padStart(4,"0");for(let o=0;o<4;++o)r[n++]=s.charCodeAt(o);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,s=t.B64,o=this.i;n[o++]=Iy;let a=e.length,c=a%3,l=a-c;for(let u=0;u>2],n[o++]=s[(d&3)<<4|p>>4],n[o++]=s[(p&15)<<2|f>>6],n[o++]=s[f&63]}if(c===2){let u=e[l],d=e[l+1];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4|d>>4],n[o++]=s[(d&15)<<2],n[o++]=61}else if(c===1){let u=e[l];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4],n[o++]=61,n[o++]=61}n[o++]=Iy,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&L.of(e).isIdempotencyToken()){this.writeAsciiQuoted(Lo());return}return}this.ensure(4),this.json.set(ZBt,this.i),this.i+=4;return}let s=L.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Dr.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Ye?r.string:String(r);this.writeAsciiQuoted(a);return}if(o){if(s.isStructSchema()){this.writeStruct(s,r);return}if(Array.isArray(r)&&(s.isListSchema()||s.isDocumentSchema())){this.writeList(s,r,s.isDocumentSchema());return}if(s.isMapSchema()){this.writeMap(s,r,!1);return}if(r instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema())){this.writeTimestamp(s,r);return}if(r instanceof Ye){this.writeAscii(r.string);return}if(s.isDocumentSchema()){Array.isArray(r)?this.writeList(s,r,!0):this.writeMap(s,r,!0);return}let a=JSON.stringify(r);this.writeAscii(a);return}if(typeof r=="string"){if(s.isBlobSchema()){let a=(this.serdeContext?.base64Encoder??Pt)(r);this.writeAsciiQuoted(a);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let a=String(r);this.writeAscii(a);return}if(typeof r=="boolean"){this.ensure(5);let{i:a,json:c}=this;r?(c.set(KBt,a),a+=4):(c.set(XBt,a),a+=5),this.i=a;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=lTe;let n=!1,s=typeof r.__type=="string",o;s&&(o=new Set);for(let[a,c]of e.structIterator()){let l=r[a];if(l==null&&!c.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=TQ),n=!0;let u=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;o&&(o.add(a),o.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=NQ,this.writeValue(c,l,e)}if(!n&&e.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a;this.writeAsciiQuoted(c),this.ensure(1),this.json[this.i++]=NQ,this.writeValue(15,l,e)}}else if(s)for(let a in r){if(o.has(a))continue;o.add(a);let c=r[a];n&&(this.ensure(1),this.json[this.i++]=TQ),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=NQ,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=uTe}writeList(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c=!1;for(let u=0;u{wm();zj();Wj();bi=class extends Ws{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Yd(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Wd(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var PQ,fTe=g(()=>{Dj();We();we();Yj();CS();PQ=class extends xi{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new bi({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),Hs(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=xt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=xQ(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=ht.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=ht.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(x);let b=u.getBaseException();if(b){let N=u.getErrorCtor(b);throw Object.assign(new N({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let f=L.of(p),m=u.getErrorCtor(p),A=s.message??s.Message??"Unknown",h=new m({}),E={},y=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(E[I]=y.readObject(x,s[I]));throw Object.assign(h,c,{$fault:f.getMergedTraits().error,message:A},E)}getDefaultContentType(){return"application/json"}}});var Jd,Jj=g(()=>{Gd();We();Ie();Ie();we();wm();Uj();CQ();wQ();CS();bQ();Jd=class extends Ws{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=yy(e)?gy:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await mu(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=L.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new hy(a,l));for(let[f,m]of s.structIterator()){let A=f;d&&(A=m.getMergedTraits().jsonName??A,u[A]=f),c&&p.mark(A),a[A]!=null&&(l[f]=this._read(m,a[A]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!X(a,f))continue;let m=a[f],A=d?u[f]??f:f;A in l||(l[A]=m)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)X(r,l)&&(l==="__proto__"&&Xc(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return mr(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Dr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(un(s,this.settings)){case 5:return zg(r);case 6:return Qd(r);case 7:return Vg(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof Ye)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Ye(a.string,a.type):new Ye(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;c==="__proto__"&&Xc(a);let l=r[c];l instanceof Ye?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var mTe,vQ,ATe=g(()=>{Ie();mTe="\u039D",vQ=class{static{i(this,"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.");return this.stage=1,(e,r)=>{if(r instanceof Ye){let n=`${mTe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${mTe+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}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.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var jd,jj=g(()=>{Gd();We();Ie();wm();ATe();bQ();we();jd=class extends Ws{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=L.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new vQ;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=L.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=L.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,f]of o.structIterator()){let m=this._write(f,a[p],o);if(m!==void 0){let A=p;l&&(A=f.getMergedTraits().jsonName??p,u[p]=A),c[A]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&Xc(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!X(a,p))continue;let f=a[p],m=l?u[p]??p:p;m in c||(c[m]=this._write(15,f))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){if(!X(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Xc(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Pt)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(un(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Po(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Ye&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return Lo();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Dr.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Pt)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Pt)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&Xc(a),l instanceof Ye?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var wy,hTe=g(()=>{wm();Jj();jj();wy=class extends Ws{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new jd(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Jd(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Kd={};Mr(Kd,{Field:()=>hQ,Fields:()=>gQ,FromStringShapeDeserializer:()=>$d,HttpBindingProtocol:()=>qd,HttpInterceptingShapeDeserializer:()=>Hd,HttpInterceptingShapeSerializer:()=>zd,HttpProtocol:()=>Ud,HttpRequest:()=>Ve,HttpResponse:()=>an,JsonCodec:()=>wy,JsonCodec2:()=>bi,JsonShapeDeserializer:()=>Jd,JsonShapeDeserializer2:()=>Wd,JsonShapeSerializer:()=>jd,JsonShapeSerializer2:()=>Yd,RequestBuilder:()=>yS,RpcProtocol:()=>xi,SerdeContext:()=>ln,SmithyRpcV2JsonProtocol:()=>PQ,ToStringShapeSerializer:()=>Ay,buildQueryString:()=>tTe,collectBody:()=>jr,contentLengthMiddleware:()=>Mj,contentLengthMiddlewareOptions:()=>Fj,determineTimestampFormat:()=>un,escapeUri:()=>Vd,escapeUriPath:()=>ZNe,extendedEncodeURIComponent:()=>pa,getContentLengthPlugin:()=>Kc,getHttpHandlerExtensionConfiguration:()=>Jc,isValidHostname:()=>$w,loadJsonRpcErrorCode:()=>Cy,loadRestJsonErrorCode:()=>Ey,loadSmithyRpcV2JsonErrorCode:()=>xQ,parseJsonBody:()=>mu,parseJsonErrorBody:()=>SQ,parseQueryString:()=>Hw,parseUrl:()=>Bn,requestBuilder:()=>AQ,resolveHttpHandlerRuntimeConfig:()=>jc,resolvedPath:()=>mQ});var Se=g(()=>{sy();oQ();$Ne();fQ();Dj();HNe();kj();Lj();zNe();VNe();Oj();Gd();oy();YNe();JNe();we();we();we();jNe();XNe();yQ();eTe();rTe();we();we();fTe();CS();hTe();jj();Jj();Yj();Wj();zj()});var gTe,yTe,ETe,CTe,ITe,wTe,STe=g(()=>{gTe=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],yTe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ETe=["TimeoutError","RequestTimeout","RequestTimeoutException"],CTe=[500,502,503,504],ITe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],wTe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function Zj(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var IS,_Q,Kj,Xj,el,Xd,QQ,Sy=g(()=>{STe();IS=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),_Q=i(t=>gTe.includes(t.name),"isClockSkewError"),Kj=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),Xj=i(t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},"isBrowserNetworkError"),el=i(t=>t.$metadata?.httpStatusCode===429||yTe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),Xd=i((t,e=0)=>t?.name!=="AbortError"&&(IS(t)||Kj(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||ETe.includes(t.name)||ITe.includes(t?.code||"")||wTe.includes(t?.code||"")||CTe.includes(t.$metadata?.httpStatusCode||0)||Xj(t)||Zj(t)||t.cause!==void 0&&e<=10&&Xd(t.cause,e+1)),"isTransientError"),QQ=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Xd(t)}return!1},"isServerError");i(Zj,"isNodeJsHttp2TransientError")});var DQ,wS,kQ,xy,e5,t5,LQ,Zd,ep,SS=g(()=>{DQ=100,wS=2e4,kQ=500,xy=500,e5=5,t5=10,LQ=1,Zd="amz-sdk-invocation-id",ep="amz-sdk-request"});function r5(t,e){if(an.isInstance(t))for(let r in t.headers){if(!X(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let s=t.headers[r],o=NaN;if(s.endsWith("GMT"))try{o=(Qd(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(s):Date.parse(s)>=Date.now()&&(o=(Date.parse(s)-Date.now())/1e3);return isNaN(o)?void 0:new Date(Date.now()+o*1e3)}else if(n==="x-amz-retry-after"){let s=t.headers[r],o=Number(s);if(isNaN(o)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+o)}}}function xTe(t,e){return r5(t,e)}var n5=g(()=>{we();Se();Ie();i(r5,"parseRetryAfterHeader");i(xTe,"getRetryAfterHint")});var OQ,s5=g(()=>{OQ=i(t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),"asSdkError")});function o5(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(tRt(o)){o=o;let c=await o.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),l=new Error,u=0,d=0,{request:p}=s,f=Ve.isInstance(p);for(f&&(p.headers[Zd]=ny());;)try{f&&(p.headers[ep]=`attempt=${u+1}; max=${a}`);let{response:m,output:A}=await r(s);return o.recordSuccess(c),A.$metadata.attempts=u+1,A.$metadata.totalRetryDelay=d,{response:m,output:A}}catch(m){let A=rRt(m,e.logger);if(l=OQ(m),f&&t(p))throw(n.logger instanceof zs?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,A)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let h=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+h,h>0&&await eRt(h)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function bTe(t){let e=o5(t);return r=>({applyToStack:i(n=>{n.add(e(r),i5)},"applyToStack")})}var eRt,tRt,rRt,nRt,i5,a5=g(()=>{Ce();Se();Ie();Sy();SS();n5();s5();i(o5,"bindRetryMiddleware");eRt=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),tRt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),rRt=i((t,e)=>{let r={error:t,errorType:nRt(t)},n=r5(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),nRt=i(t=>el(t)?"THROTTLING":Xd(t)?"TRANSIENT":QQ(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),i5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(bTe,"bindGetRetryPlugin")});var tp,MQ=g(()=>{Sy();tp=class t{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=i((e,r)=>setTimeout(e,r),"setTimeoutFn");beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||el(n?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var Nr,by=g(()=>{Nr=class t{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var FQ,BTe=g(()=>{by();FQ=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Nr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var xS,RTe=g(()=>{xS=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,s){this.delay=e,this.count=r,this.cost=n,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var dn,ma,Bi,Sm=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(dn||(dn={}));ma=3,Bi=dn.STANDARD});var UQ,Aa,bS=g(()=>{BTe();RTe();Sm();by();UQ={incompatible:1,attempts:2,capacity:3},Aa=class{static{i(this,"StandardRetryStrategy")}mode=dn.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>ma,this.baseDelay??=Nr.delay(),this.retryBackoffStrategy??=new FQ}async acquireInitialRetryToken(e){return new xS(Nr.delay(),0,void 0,Nr.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),s=this.retryCode(e,r,n),o=s===0,a=e.isLongPoll?.();if(o||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?Nr.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(r.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),o){let d=this.getCapacityCost(c);this.capacity-=d;let p=new xS(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(f=>setTimeout(f,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=Nr.v2026&&s===UQ.capacity&&a?u:0;d>0&&await new Promise(p=>setTimeout(p,d))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${ma}`),ma}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:UQ.incompatible,a=s=this.getCapacityCost(r.errorType)?0:UQ.capacity;return o||a||c}getCapacityCost(e){return e===Nr.modifiedCostType()?Nr.throttlingCost():Nr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var By,c5=g(()=>{MQ();bS();Sm();By=class{static{i(this,"AdaptiveRetryStrategy")}mode=dn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new tp,this.standardRetryStrategy=r?new Aa({maxAttempts:typeof e=="number"?e:3,...r}):new Aa(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var qQ,NTe=g(()=>{bS();by();qQ=class extends Aa{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=Nr.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let s=n+1;return this.computeNextBackoffDelay(s)}}}});var TTe,PTe=g(()=>{TTe=i((t,e)=>{let r=t,n=e?.noRetryIncrement??1,s=e?.retryCost??5,o=e?.timeoutRetryCost??10,a=t,c=i(p=>p.name==="TimeoutError"?o:s,"getCapacityAmount"),l=i(p=>c(p)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:i(p=>{if(!l(p))throw new Error("No retry token available");let f=c(p);return a-=f,f},"retrieveRetryTokens"),releaseRetryTokens:i(p=>{a+=p??n,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota")});var GQ,l5=g(()=>{GQ=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var $Q,u5=g(()=>{Sy();$Q=i(t=>t?IS(t)||_Q(t)||el(t)||Xd(t):!1,"defaultRetryDecider")});var Ry,sRt,d5=g(()=>{Se();Ie();Sy();Sm();SS();s5();PTe();l5();u5();Ry=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=dn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??$Q,this.delayDecider=r?.delayDecider??GQ,this.retryQuota=r?.retryQuota??TTe(500)}shouldRetry(e,r,n){return rsetTimeout(A,m));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},sRt=i(t=>{if(!an.isInstance(t))return;let e=Object.keys(t.headers).find(o=>o.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let s=new Date(r);return Math.min(s.getTime()-Date.now(),2e4)},"getDelayFromRetryAfterHeader")});var HQ,vTe=g(()=>{MQ();Sm();d5();HQ=class extends Ry{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new tp,this.mode=dn.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(n=>{this.rateLimiter.updateClientSendingRate(n)},"afterRequest")})}}});var zQ,VQ,tl,rl,p5,f5,nl,_Te=g(()=>{Ce();c5();bS();Sm();by();zQ="AWS_MAX_ATTEMPTS",VQ="max_attempts",tl={environmentVariableSelector:i(t=>{let e=t[zQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${zQ} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[VQ];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${VQ} mast be a number, got "${e}"`);return r},"configFileSelector"),default:ma},rl=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=ma,defaultBaseDelay:o=Nr.delay()}=e??{},a=bt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await bt(n)()===dn.ADAPTIVE?new By(a,{maxAttempts:u,baseDelay:o}):new Aa({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),p5="AWS_RETRY_MODE",f5="retry_mode",nl={environmentVariableSelector:i(t=>t[p5],"environmentVariableSelector"),configFileSelector:i(t=>t[f5],"configFileSelector"),default:Bi}});var m5,A5,QTe,DTe=g(()=>{Se();SS();m5=i(()=>t=>async e=>{let{request:r}=e;return Ve.isInstance(r)&&(delete r.headers[Zd],delete r.headers[ep]),t(e)},"omitRetryHeadersMiddleware"),A5={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},QTe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(m5(),A5)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var h5={};Mr(h5,{AdaptiveRetryStrategy:()=>By,CONFIG_MAX_ATTEMPTS:()=>VQ,CONFIG_RETRY_MODE:()=>f5,ConfiguredRetryStrategy:()=>qQ,DEFAULT_MAX_ATTEMPTS:()=>ma,DEFAULT_RETRY_DELAY_BASE:()=>DQ,DEFAULT_RETRY_MODE:()=>Bi,DefaultRateLimiter:()=>tp,DeprecatedAdaptiveRetryStrategy:()=>HQ,DeprecatedStandardRetryStrategy:()=>Ry,ENV_MAX_ATTEMPTS:()=>zQ,ENV_RETRY_MODE:()=>p5,INITIAL_RETRY_TOKENS:()=>xy,INVOCATION_ID_HEADER:()=>Zd,MAXIMUM_RETRY_DELAY:()=>wS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>tl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nl,NO_RETRY_INCREMENT:()=>LQ,REQUEST_HEADER:()=>ep,RETRY_COST:()=>e5,RETRY_MODES:()=>dn,Retry:()=>Nr,StandardRetryStrategy:()=>Aa,THROTTLING_RETRY_DELAY_BASE:()=>kQ,TIMEOUT_RETRY_COST:()=>t5,defaultDelayDecider:()=>GQ,defaultRetryDecider:()=>$Q,getOmitRetryHeadersPlugin:()=>QTe,getRetryAfterHint:()=>xTe,getRetryPlugin:()=>Au,isBrowserNetworkError:()=>Xj,isClockSkewCorrectedError:()=>Kj,isClockSkewError:()=>_Q,isNodeJsHttp2TransientError:()=>Zj,isRetryableByTrait:()=>IS,isServerError:()=>QQ,isThrottlingError:()=>el,isTransientError:()=>Xd,omitRetryHeadersMiddleware:()=>m5,omitRetryHeadersMiddlewareOptions:()=>A5,resolveRetryConfig:()=>rl,retryMiddleware:()=>oRt,retryMiddlewareOptions:()=>i5});var oRt,Au,Oo=g(()=>{XSe();a5();Sy();c5();NTe();MQ();bS();Sm();SS();by();vTe();d5();l5();u5();_Te();DTe();a5();n5();oRt=o5(d8),Au=bTe(d8)});function Ri(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var g5=g(()=>{Oo();Nr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(Ri,"setFeature")});function kTe(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var LTe=g(()=>{i(kTe,"setTokenFeature")});function Ny(t){return t}var y5,E5,sl,OTe=g(()=>{Se();i(Ny,"resolveHostHeaderConfig");y5=i(t=>e=>async r=>{if(!Ve.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let o=n.hostname;n.port!=null&&(o+=`:${n.port}`),n.headers.host=o}return e(r)},"hostHeaderMiddleware"),E5={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},sl=i(t=>({applyToStack:i(e=>{e.add(y5(t),E5)},"applyToStack")}),"getHostHeaderPlugin")});var C5,I5,ol,MTe=g(()=>{C5=i(()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:u}=c,d=l??e.inputFilterSensitiveLog,p=u??e.outputFilterSensitiveLog,{$metadata:f,...m}=n.output;return a?.info?.({clientName:s,commandName:o,input:d(r.input),output:p(m),metadata:f}),n}catch(n){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,u=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:u(r.input),error:n,metadata:n.$metadata}),n}},"loggerMiddleware"),I5={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},ol=i(t=>({applyToStack:i(e=>{e.add(C5(),I5)},"applyToStack")}),"getLoggerPlugin")});var WQ,w5=g(()=>{WQ={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var rp,S5,YQ,x5,b5,BS,FTe=g(()=>{rp={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},S5=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");S5||(globalThis.awslambda=globalThis.awslambda||{});YQ=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=rp;isProtectedKey(e){return Object.values(rp).includes(e)}getRequestId(){return this.get(rp.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(rp.X_RAY_TRACE_ID)}getTenantId(){return this.get(rp.TENANT_ID)}getTraceparent(){return this.get(rp.TRACEPARENT)}getTracestate(){return this.get(rp.TRACESTATE)}getBaggage(){return this.get(rp.BAGGAGE)}},x5=class extends YQ{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},b5=class t extends YQ{static{i(this,"InvokeStoreMulti")}als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let o=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await b5.create():new x5;return!S5&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!S5&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=o),o)})()),e}i(r,"getInstanceAsync"),t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})(BS||(BS={}))});function cRt(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===R5||r===UTe||r===qTe)&&(t[r]=t[e],delete t[e])}}var iRt,aRt,B5,R5,UTe,qTe,JQ,N5=g(()=>{FTe();Se();iRt="AWS_LAMBDA_FUNCTION_NAME",aRt="_X_AMZN_TRACE_ID",B5="X-Amzn-Trace-Id",R5="traceparent",UTe="tracestate",qTe="baggage",JQ=i(()=>t=>async e=>{let{request:r}=e;if(!Ve.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===B5.toLowerCase())??B5;if(!r.headers.hasOwnProperty(s)){let o=process.env[iRt],a=process.env[aRt];n??=await BS.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[B5]=l)}}if(cRt(r.headers),!r.headers[R5]){let o=(n??=await BS.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[R5]=o;let a=n?.getTracestate?.();a&&(r.headers[UTe]=a);let c=n?.getBaggage?.();c&&(r.headers[qTe]=c)}}return t(e)},"recursionDetectionMiddleware");i(cRt,"sanitizeTraceHeaders")});var il,GTe=g(()=>{w5();N5();il=i(t=>({applyToStack:i(e=>{e.add(JQ(),WQ)},"applyToStack")}),"getRecursionDetectionPlugin")});var $Te,HTe=g(()=>{$Te=i((t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(let n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r},"resolveAuthOptions")});function lRt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var xm,jQ=g(()=>{we();HTe();i(lRt,"convertHttpAuthSchemesToMap");xm=i((t,e)=>(r,n)=>async s=>{let o=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=$Te(o,a),l=lRt(t.httpAuthSchemes),u=xt(n),d=[];for(let p of c){let f=l.get(p.schemeId);if(!f){d.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let m=f.identityProvider(await e.identityProviderConfigProvider(t));if(!m){d.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:A={},signingProperties:h={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},A),p.signingProperties=Object.assign(p.signingProperties||{},h),u.selectedHttpAuthScheme={httpAuthOption:p,identity:await m(p.identityProperties),signer:f.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(d.join(` +`));return r(s)},"httpAuthSchemeMiddleware")});var KQ,ha,zTe=g(()=>{jQ();KQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},ha=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(xm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),KQ)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var XQ,T5,VTe=g(()=>{jQ();XQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},T5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(xm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),XQ)},"applyToStack")}),"getHttpAuthSchemePlugin")});var WTe=g(()=>{jQ();zTe();VTe()});var uRt,dRt,RS,P5=g(()=>{Se();we();uRt=i(t=>e=>{throw e},"defaultErrorHandler"),dRt=i((t,e)=>{},"defaultSuccessHandler"),RS=i(t=>(e,r)=>async n=>{if(!Ve.isInstance(n.request))return e(n);let o=xt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||uRt)(a));return(l.successHandler||dRt)(u.response,a),u},"httpSigningMiddleware")});var ZQ,ga,YTe=g(()=>{P5();ZQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ga=i(t=>({applyToStack:i(e=>{e.addRelativeTo(RS(t),ZQ)},"applyToStack")}),"getHttpSigningPlugin")});var JTe=g(()=>{P5();YTe()});var Ni,jTe=g(()=>{Ni=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function KTe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,f;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)f=await pRt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=fRt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var pRt,fRt,XTe=g(()=>{pRt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(KTe,"createPaginator");fRt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function ZTe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var ePe=g(()=>{i(ZTe,"setFeature")});var Mo,tPe=g(()=>{we();Mo=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!X(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var v5,Ty,rPe=g(()=>{Se();v5=R(ia()),Ty=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,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(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=Ve.clone(e);if(n.in===v5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===v5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var Py,nPe=g(()=>{Se();Py=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ve.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var Wn,sPe=g(()=>{Wn=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var oPe=g(()=>{rPe();nPe();sPe()});var eD,tD,NS,vy,TS,iPe=g(()=>{eD=i(t=>i(function(r){return vy(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),TS=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var aPe=g(()=>{tPe();oPe();iPe()});var _5={};Mr(_5,{DefaultIdentityProviderConfig:()=>Mo,EXPIRATION_MS:()=>tD,HttpApiKeyAuthSigner:()=>Ty,HttpBearerAuthSigner:()=>Py,NoAuthSigner:()=>Wn,createIsIdentityExpiredFunction:()=>eD,createPaginator:()=>KTe,doesIdentityRequireRefresh:()=>vy,getHttpAuthSchemeEndpointRuleSetPlugin:()=>ha,getHttpAuthSchemePlugin:()=>T5,getHttpSigningPlugin:()=>ga,getSmithyContext:()=>xt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>KQ,httpAuthSchemeMiddleware:()=>xm,httpAuthSchemeMiddlewareOptions:()=>XQ,httpSigningMiddleware:()=>RS,httpSigningMiddlewareOptions:()=>ZQ,isIdentityExpired:()=>NS,memoizeIdentityProvider:()=>TS,normalizeProvider:()=>Ni,requestBuilder:()=>AQ,setFeature:()=>ZTe});var Es=g(()=>{we();WTe();JTe();jTe();XTe();Se();ePe();aPe()});function mRt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function al(t){let e=Ni(t.userAgentAppId??PS),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!mRt(n)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n},"userAgentAppId")})}var PS,Q5=g(()=>{Es();PS=void 0;i(mRt,"isValidUserAgentAppId");i(al,"resolveUserAgentConfig")});var D5,cPe=g(()=>{D5={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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)"}}}],version:"1.1"}});var lPe,uPe,rD,k5,dPe,nD,sD=g(()=>{cPe();lPe=D5,uPe="",rD=i(t=>{let{partitions:e}=lPe;for(let n of e){let{regions:s,outputs:o}=n;for(let[a,c]of Object.entries(s))if(a===t)return{...o,...c}}for(let n of e){let{regionRegex:s,outputs:o}=n;if(new RegExp(s).test(t))return{...o}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),k5=i((t,e="")=>{lPe=t,uPe=e},"setPartitionInfo"),dPe=i(()=>{k5(D5,"")},"useDefaultPartitionInfo"),nD=i(()=>uPe,"getUserAgentPrefix")});async function pPe(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Ri(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case dn.ADAPTIVE:Ri(t,"RETRY_MODE_ADAPTIVE","F");break;case dn.STANDARD:Ri(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(ARt)&&Ri(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":Ri(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Ri(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Ri(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&Ri(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))Ri(t,a,c)}}var ARt,fPe=g(()=>{Oo();g5();ARt=/\d{12}\.ddb/;i(pPe,"checkFeatures")});var L5,oD,mPe,APe,hPe=g(()=>{L5="user-agent",oD="x-amz-user-agent",mPe=/[^!$%&'*+\-.^_`|~\w]/g,APe=/[^!$%&'*+\-.^_`|~\w#]/g});function gPe(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var yPe=g(()=>{i(gPe,"encodeFeatures")});var M5,iD,F5,cl,IPe=g(()=>{Se();sD();fPe();hPe();yPe();M5=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!Ve.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(iD)||[],c=(await t.defaultUserAgentProvider()).map(iD);await pPe(r,t,n);let l=r;c.push(`m/${gPe(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(iD)||[],d=await t.userAgentAppId();d&&c.push(iD(["app",`${d}`]));let p=nD(),f=(p?[p]:[]).concat([...c,...a,...u]).join(" "),m=[...c.filter(A=>A.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(m&&(o[oD]=o[oD]?`${o[L5]} ${m}`:m),o[L5]=f):o[oD]=f,e({...n,request:s})},"userAgentMiddleware"),iD=i(t=>{let e=t[0].split("/").map(a=>a.replace(mPe,"-")).join("/"),r=t[1]?.replace(APe,"-"),n=e.indexOf("/"),s=e.substring(0,n),o=e.substring(n+1);return s==="api"&&(o=o.toLowerCase()),[s,o,r].filter(a=>a&&a.length>0).reduce((a,c,l)=>{switch(l){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),F5={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},cl=i(t=>({applyToStack:i(e=>{e.add(M5(t),F5)},"applyToStack")}),"getUserAgentPlugin")});var aD,wPe,SPe=g(()=>{aD=require("node:process"),wPe=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(aD.versions[e])return[`md/${e}`,aD.versions[e]];return["md/nodejs",aD.versions.node]},"getRuntimeUserAgentPair")});var vS,U5=g(()=>{vS={isCrtAvailable:!1}});var xPe,bPe=g(()=>{U5();xPe=i(()=>vS.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var cD,q5,ya,BPe,RPe=g(()=>{cD=require("node:os"),q5=require("node:process");SPe();bPe();U5();ya=i(({serviceId:t,clientVersion:e})=>{let r=wPe();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,cD.platform)()}`,(0,cD.release)()],["lang/js"],r],o=xPe();o&&s.push(o),t&&s.push([`api/${t}`,e]),q5.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${q5.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),BPe=ya});var G5,$5,hRt,ll,NPe=g(()=>{Q5();G5="AWS_SDK_UA_APP_ID",$5="sdk_ua_app_id",hRt="sdk-ua-app-id",ll={environmentVariableSelector:i(t=>t[G5],"environmentVariableSelector"),configFileSelector:i(t=>t[$5]??t[hRt],"configFileSelector"),default:PS}});var TPe=w((_S,H5)=>{(function(t,e){typeof _S=="object"&&typeof H5=="object"?H5.exports=e():typeof define=="function"&&define.amd?define([],e):typeof _S=="object"?_S.bowser=e():t.bowser=e()})(_S,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return i(r,"r"),r.m=t,r.c=e,r.d=function(n,s,o){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)r.d(o,a,function(c){return n[c]}.bind(null,a));return o},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),s=(function(){function o(){}return i(o,"e"),o.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||""},o.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||""},o.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},o.getWindowsVersionName=function(a){switch(a){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},o.getAndroidVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?"Cupcake":c[0]===1&&c[1]>=6?"Donut":c[0]===2&&c[1]<2?"Eclair":c[0]===2&&c[1]===2?"Froyo":c[0]===2&&c[1]>2?"Gingerbread":c[0]===3?"Honeycomb":c[0]===4&&c[1]<1?"Ice Cream Sandwich":c[0]===4&&c[1]<4?"Jelly Bean":c[0]===4&&c[1]>=4?"KitKat":c[0]===5?"Lollipop":c[0]===6?"Marshmallow":c[0]===7?"Nougat":c[0]===8?"Oreo":c[0]===9?"Pie":void 0},o.getVersionPrecision=function(a){return a.split(".").length},o.compareVersions=function(a,c,l){l===void 0&&(l=!1);var u=o.getVersionPrecision(a),d=o.getVersionPrecision(c),p=Math.max(u,d),f=0,m=o.map([a,c],(function(A){var h=p-o.getVersionPrecision(A),E=A+new Array(h+1).join(".0");return o.map(E.split("."),(function(y){return new Array(20-y.length).join("0")+y})).reverse()}));for(l&&(f=p-Math.min(u,d)),p-=1;p>=f;){if(m[0][p]>m[1][p])return 1;if(m[0][p]===m[1][p]){if(p===f)return 0;p-=1}else if(m[0][p]1?d-1:0),f=1;f0){var I=Object.keys(A),x=c.default.find(I,(function(ve){return m.isOS(ve)}));if(x){var b=this.satisfies(A[x]);if(b!==void 0)return b}var N=c.default.find(I,(function(ve){return m.isPlatform(ve)}));if(N){var v=this.satisfies(A[N]);if(v!==void 0)return v}}if(y>0){var _=Object.keys(E),J=c.default.find(_,(function(ve){return m.isBrowser(ve,!0)}));if(J!==void 0)return this.compareVersion(E[J])}},p.isBrowser=function(f,m){m===void 0&&(m=!1);var A=this.getBrowserName().toLowerCase(),h=f.toLowerCase(),E=c.default.getBrowserTypeByAlias(h);return m&&E&&(h=E.toLowerCase()),h===A},p.compareVersion=function(f){var m=[0],A=f,h=!1,E=this.getBrowserVersion();if(typeof E=="string")return f[0]===">"||f[0]==="<"?(A=f.substr(1),f[1]==="="?(h=!0,A=f.substr(2)):m=[],f[0]===">"?m.push(1):m.push(-1)):f[0]==="="?A=f.substr(1):f[0]==="~"&&(h=!0,A=f.substr(1)),m.indexOf(c.default.compareVersions(E,A,h))>-1},p.isOS=function(f){return this.getOSName(!0)===String(f).toLowerCase()},p.isPlatform=function(f){return this.getPlatformType(!0)===String(f).toLowerCase()},p.isEngine=function(f){return this.getEngineName(!0)===String(f).toLowerCase()},p.is=function(f,m){return m===void 0&&(m=!1),this.isBrowser(f,m)||this.isOS(f)||this.isPlatform(f)},p.some=function(f){var m=this;return f===void 0&&(f=[]),f.some((function(A){return m.is(A)}))},d})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:i(function(c){var l={name:"Googlebot"},u=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/opera/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opr\/|opios/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/SamsungBrowser/i],describe:i(function(c){var l={name:"Samsung Internet for Android"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Whale/i],describe:i(function(c){var l={name:"NAVER Whale Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MZBrowser/i],describe:i(function(c){var l={name:"MZ Browser"},u=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/focus/i],describe:i(function(c){var l={name:"Focus"},u=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/swing/i],describe:i(function(c){var l={name:"Swing"},u=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/coast/i],describe:i(function(c){var l={name:"Opera Coast"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:i(function(c){var l={name:"Opera Touch"},u=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/yabrowser/i],describe:i(function(c){var l={name:"Yandex Browser"},u=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/ucbrowser/i],describe:i(function(c){var l={name:"UC Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Maxthon|mxios/i],describe:i(function(c){var l={name:"Maxthon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/epiphany/i],describe:i(function(c){var l={name:"Epiphany"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/puffin/i],describe:i(function(c){var l={name:"Puffin"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sleipnir/i],describe:i(function(c){var l={name:"Sleipnir"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/k-meleon/i],describe:i(function(c){var l={name:"K-Meleon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/micromessenger/i],describe:i(function(c){var l={name:"WeChat"},u=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qqbrowser/i],describe:i(function(c){var l={name:/qqbrowserlite/i.test(c)?"QQ Browser Lite":"QQ Browser"},u=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/msie|trident/i],describe:i(function(c){var l={name:"Internet Explorer"},u=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/\sedg\//i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/edg([ea]|ios)/i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/vivaldi/i],describe:i(function(c){var l={name:"Vivaldi"},u=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/seamonkey/i],describe:i(function(c){var l={name:"SeaMonkey"},u=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sailfish/i],describe:i(function(c){var l={name:"Sailfish"},u=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,c);return u&&(l.version=u),l},"describe")},{test:[/silk/i],describe:i(function(c){var l={name:"Amazon Silk"},u=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/phantom/i],describe:i(function(c){var l={name:"PhantomJS"},u=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/slimerjs/i],describe:i(function(c){var l={name:"SlimerJS"},u=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l={name:"BlackBerry"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l={name:"WebOS Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/bada/i],describe:i(function(c){var l={name:"Bada"},u=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/tizen/i],describe:i(function(c){var l={name:"Tizen"},u=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qupzilla/i],describe:i(function(c){var l={name:"QupZilla"},u=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/firefox|iceweasel|fxios/i],describe:i(function(c){var l={name:"Firefox"},u=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/electron/i],describe:i(function(c){var l={name:"Electron"},u=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MiuiBrowser/i],describe:i(function(c){var l={name:"Miui"},u=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/chromium/i],describe:i(function(c){var l={name:"Chromium"},u=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/chrome|crios|crmo/i],describe:i(function(c){var l={name:"Chrome"},u=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/GSA/i],describe:i(function(c){var l={name:"Google Search"},u=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l={name:"Android Browser"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/playstation 4/i],describe:i(function(c){var l={name:"PlayStation 4"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/safari|applewebkit/i],describe:i(function(c){var l={name:"Safari"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/.*/i],describe:i(function(c){var l=c.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:s.default.getFirstMatch(l,c),version:s.default.getSecondMatch(l,c)}},"describe")}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:i(function(c){var l=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,c);return{name:o.OS_MAP.Roku,version:l}},"describe")},{test:[/windows phone/i],describe:i(function(c){var l=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.WindowsPhone,version:l}},"describe")},{test:[/windows /i],describe:i(function(c){var l=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,c),u=s.default.getWindowsVersionName(l);return{name:o.OS_MAP.Windows,version:l,versionName:u}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(c){var l={name:o.OS_MAP.iOS},u=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,c);return u&&(l.version=u),l},"describe")},{test:[/macintosh/i],describe:i(function(c){var l=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,c).replace(/[_\s]/g,"."),u=s.default.getMacOSVersionName(l),d={name:o.OS_MAP.MacOS,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(ipod|iphone|ipad)/i],describe:i(function(c){var l=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,c).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:l}},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,c),u=s.default.getAndroidVersionName(l),d={name:o.OS_MAP.Android,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,c),u={name:o.OS_MAP.WebOS};return l&&l.length&&(u.version=l),u},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,c)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,c)||s.default.getFirstMatch(/\bbb(\d+)/i,c);return{name:o.OS_MAP.BlackBerry,version:l}},"describe")},{test:[/bada/i],describe:i(function(c){var l=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Bada,version:l}},"describe")},{test:[/tizen/i],describe:i(function(c){var l=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Tizen,version:l}},"describe")},{test:[/linux/i],describe:i(function(){return{name:o.OS_MAP.Linux}},"describe")},{test:[/CrOS/],describe:i(function(){return{name:o.OS_MAP.ChromeOS}},"describe")},{test:[/PlayStation 4/],describe:i(function(c){var l=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.PlayStation4,version:l}},"describe")}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:i(function(){return{type:"bot",vendor:"Google"}},"describe")},{test:[/huawei/i],describe:i(function(c){var l=s.default.getFirstMatch(/(can-l01)/i,c)&&"Nova",u={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return l&&(u.model=l),u},"describe")},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}},"describe")},{test:[/ipad/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/kftt build/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}},"describe")},{test:[/silk/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}},"describe")},{test:[/tablet(?! pc)/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){var l=c.test(/ipod|iphone/i),u=c.test(/like (ipod|iphone)/i);return l&&!u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:l}},"describe")},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}},"describe")},{test:[/[^-]mobi/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="blackberry"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="bada"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName()==="windows phone"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}},"describe")},{test:i(function(c){var l=Number(String(c.getOSVersion()).split(".")[0]);return c.getOSName(!0)==="android"&&l>=3},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){return c.getOSName(!0)==="android"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getOSName(!0)==="macos"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}},"describe")},{test:i(function(c){return c.getOSName(!0)==="windows"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="linux"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="playstation 4"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")},{test:i(function(c){return c.getOSName(!0)==="roku"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:i(function(c){return c.getBrowserName(!0)==="microsoft edge"},"test"),describe:i(function(c){if(/\sedg\//i.test(c))return{name:o.ENGINE_MAP.Blink};var l=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,c);return{name:o.ENGINE_MAP.EdgeHTML,version:l}},"describe")},{test:[/trident/i],describe:i(function(c){var l={name:o.ENGINE_MAP.Trident},u=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){return c.test(/presto/i)},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Presto},u=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=c.test(/gecko/i),u=c.test(/like gecko/i);return l&&!u},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Gecko},u=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(apple)?webkit\/537\.36/i],describe:i(function(){return{name:o.ENGINE_MAP.Blink}},"describe")},{test:[/(apple)?webkit/i],describe:i(function(c){var l={name:o.ENGINE_MAP.WebKit},u=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")}];e.default=a,t.exports=e.default}})}))});var PPe,vPe=g(()=>{PPe=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(TPe())),s=n.parse??n.default.parse??(()=>""),o=typeof window<"u"&&window?.navigator?.userAgent?s(window.navigator.userAgent):void 0,a=[["aws-sdk-js",e],["ua","2.1"],[`os/${o?.os?.name||"other"}`,o?.os?.version],["lang/js"],["md/browser",`${o?.browser?.name??"unknown"}_${o?.browser?.version??"unknown"}`]];t&&a.push([`api/${t}`,e]);let c=await r?.userAgentAppId?.();return c&&a.push([`app/${c}`]),a},"createUserAgentStringParsingProvider")});var _Pe,QPe=g(()=>{_Pe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var z5=g(()=>{vt()});var QS,V5=g(()=>{vt();z5();QS=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!QS(r))return!1;return!0}return!(!aa(t)||t.length<3||t.length>63||t!==t.toLowerCase()||au(t))},"isVirtualHostableS3Bucket")});var lD,W5=g(()=>{lD=i(t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,s,o,a,...c]=e;if(r!=="arn"||n===""||s===""||c.join(":")==="")return null;let l=c.map(u=>u.split("/")).flat();return{partition:n,service:s,region:o,accountId:a,resourceId:l}},"parseArn")});var Ea,DPe=g(()=>{vt();V5();W5();sD();Ea={isVirtualHostableS3Bucket:QS,parseArn:lD,partition:rD};Vs.aws=Ea});var kPe=g(()=>{vt()});var LPe,Y5,OPe=g(()=>{Se();LPe=i(t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>Y5(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},"resolveDefaultAwsRegionalEndpointsConfig"),Y5=i(t=>Bn(t.url),"toEndpointV1")});var MPe=g(()=>{vt()});var FPe=g(()=>{gt();gt()});function uD(t={}){return _e({...Rn,async default(){return J5.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."),"us-east-1"}},{...ys,...t})}var J5,UPe=g(()=>{gt();i(uD,"stsRegionDefaultResolver");J5={silence:!1}});var ul,dl,qPe=g(()=>{ul=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),dl=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var Ca={};Mr(Ca,{DEFAULT_UA_APP_ID:()=>PS,EndpointError:()=>ot,NODE_APP_ID_CONFIG_OPTIONS:()=>ll,NODE_REGION_CONFIG_FILE_OPTIONS:()=>ys,NODE_REGION_CONFIG_OPTIONS:()=>Rn,REGION_ENV_NAME:()=>Xg,REGION_INI_NAME:()=>Zg,UA_APP_ID_ENV_NAME:()=>G5,UA_APP_ID_INI_NAME:()=>$5,awsEndpointFunctions:()=>Ea,createDefaultUserAgentProvider:()=>ya,createUserAgentStringParsingProvider:()=>PPe,crtAvailability:()=>vS,defaultUserAgent:()=>BPe,emitWarningIfUnsupportedVersion:()=>_c,fallback:()=>_Pe,getAwsRegionExtensionConfiguration:()=>ul,getHostHeaderPlugin:()=>sl,getLoggerPlugin:()=>ol,getLongPollPlugin:()=>YSe,getRecursionDetectionPlugin:()=>il,getUserAgentMiddlewareOptions:()=>F5,getUserAgentPlugin:()=>cl,getUserAgentPrefix:()=>nD,hostHeaderMiddleware:()=>y5,hostHeaderMiddlewareOptions:()=>E5,isIpAddress:()=>au,isVirtualHostableS3Bucket:()=>QS,loggerMiddleware:()=>C5,loggerMiddlewareOptions:()=>I5,parseArn:()=>lD,partition:()=>rD,recursionDetectionMiddleware:()=>JQ,recursionDetectionMiddlewareOptions:()=>WQ,resolveAwsRegionExtensionConfiguration:()=>dl,resolveDefaultAwsRegionalEndpointsConfig:()=>LPe,resolveEndpoint:()=>mS,resolveHostHeaderConfig:()=>Ny,resolveRegionConfig:()=>_o,resolveUserAgentConfig:()=>al,setCredentialFeature:()=>Bd,setFeature:()=>Ri,setPartitionInfo:()=>k5,setTokenFeature:()=>kTe,state:()=>qw,stsRegionDefaultResolver:()=>uD,stsRegionWarning:()=>J5,toEndpointV1:()=>Y5,useDefaultPartitionInfo:()=>dPe,userAgentMiddleware:()=>M5});var yt=g(()=>{WSe();JSe();jSe();g5();LTe();OTe();MTe();w5();GTe();N5();Q5();IPe();RPe();NPe();QPe();vPe();DPe();kPe();OPe();z5();V5();W5();sD();MPe();FPe();UPe();qPe()});var dD,pD,GPe=g(()=>{Se();dD=i(t=>an.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),pD=i(t=>an.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var DS,$Pe=g(()=>{DS=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var fD,HPe=g(()=>{fD=i((t,e,r,n)=>{if(n!==void 0)return e;let s=Date.parse(t),o=Date.now();return r!==void 0&&o-r>9e5?e:r!==void 0?s-(r+o)/2:s-o},"getUpdatedSystemClockOffset")});var j5=g(()=>{GPe();$Pe();HPe()});var zPe,kS,gRt,_y,pn,K5,X5=g(()=>{Se();zPe=R(ia());j5();kS=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),gRt=i(t=>t.context?.[zPe.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),_y=i(async t=>{let e=kS("context",t.context),r=kS("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await kS("signer",r.signer)(n),a=t?.signingRegion,c=t?.signingRegionSet,l=t?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}},"validateSigningProperties"),pn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!Ve.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await _y(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[m,A]=u.authSchemes;m?.name==="sigv4a"&&A?.name==="sigv4"&&(c=A?.signingRegion??c,l=A?.signingName??l)}let d=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=d;let p=d||gRt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:DS(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??dD(n.$response);if(s){let o=kS("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=pD(n.$response),u=fD(s,o.systemClockOffset,c,l);o.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==a||a!==void 0&&a!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=dD(e);if(n){let s=kS("config",r.config),o=r._requestSentAt,a=pD(e);s.systemClockOffset=fD(n,s.systemClockOffset,o,a)}}},K5=pn});var hu,VPe=g(()=>{Se();j5();X5();hu=class extends pn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!Ve.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}=await _y(n),d=(await s.sigv4aSigningRegionSet?.()??c??[a]).join(","),p=await s.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=p,p||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await o.sign(e,{signingDate:p?new Date:DS(s.systemClockOffset),signingRegion:d,signingService:l})}}});var Z5,WPe=g(()=>{Z5=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var mD,e6=g(()=>{mD=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var YPe,JPe,Ia,jPe=g(()=>{WPe();e6();YPe="AWS_AUTH_SCHEME_PREFERENCE",JPe="auth_scheme_preference",Ia={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&mD(e.signingName)in t)return["httpBearerAuth"];if(YPe in t)return Z5(t[YPe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(JPe in t)return Z5(t[JPe])},"configFileSelector"),default:[]}});var LS,OS,KPe=g(()=>{Es();gt();LS=i(t=>(t.sigv4aSigningRegionSet=Ni(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),OS={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new vo("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new vo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var p6=w($e=>{var{hasOwn:Dy,fromUtf8:XPe,fromHex:yRt,toHex:bm,toUint8Array:MS,isArrayBuffer:ERt}=(Ie(),Z(ym)),{normalizeProvider:ZPe}=(Ce(),Z(Fg)),{escapeUri:AD,HttpRequest:nve}=(Se(),Z(Kd)),t6=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!Dy(e,o))continue;let a=XPe(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=XPe(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(r6.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!CRt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(yRt(e.value.replace(/-/g,"")),1),p}}},eve;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(eve||(eve={}));var CRt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,r6=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&tve(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&tve(e),parseInt(bm(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function tve(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(tve,"negate");var sve="X-Amz-Algorithm",ove="X-Amz-Credential",i6="X-Amz-Date",ive="X-Amz-SignedHeaders",ave="X-Amz-Expires",a6="X-Amz-Signature",c6="X-Amz-Security-Token",IRt="X-Amz-Region-Set",l6="authorization",u6=i6.toLowerCase(),cve="date",lve=[l6,u6,cve],uve=a6.toLowerCase(),CD="x-amz-content-sha256",dve=c6.toLowerCase(),wRt="host",pve={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},fve=/^proxy-/,mve=/^sec-/,SRt=[/^proxy-/i,/^sec-/i],hD="AWS4-HMAC-SHA256",xRt="AWS4-ECDSA-P256-SHA256",Ave="AWS4-HMAC-SHA256-PAYLOAD",hve="UNSIGNED-PAYLOAD",gve=50,d6="aws4_request",yve=3600*24*7,Eve=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!Dy(t,n)||n.toLowerCase()===uve)continue;let s=AD(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${AD(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${AD(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),bRt=i(t=>BRt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),BRt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),ID=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){this.service=s,this.sha256=o,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=ZPe(n),this.credentialProvider=ZPe(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} ${this.getCanonicalPath(e)} -${Zve(e)} +${Eve(e)} ${s.map(o=>`${o}:${r[o]}`).join(` `)} ${s.join(";")} -${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(PS(n));let a=await o.digest();return`${s} +${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(MS(n));let a=await o.digest();return`${s} ${e} ${r} -${Cf(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return cD(n).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){let r=pBt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},Ny={},uD=[],dD=i((t,e,r)=>`${t}/${e}/${r}/${n6}`,"createScope"),ePe=i(async(t,e,r,n,s)=>{let o=await Lve(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${Cf(o)}:${e.sessionToken}`;if(a in Ny)return Ny[a];for(uD.push(a);uD.length>Kve;)delete Ny[uD.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,n6])c=await Lve(t,c,l);return Ny[a]=c},"getSigningKey"),fBt=i(()=>{uD.length=0,Object.keys(Ny).forEach(t=>{delete Ny[t]})},"clearCredentialCache"),Lve=i((t,e,r)=>{let n=new t(e);return n.update(PS(r)),n.digest()},"hmac"),J5=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in Vve||e?.has(o)||Wve.test(o)||Yve.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),pD=i(async({headers:t,body:e},r)=>{for(let n in t)if(Ty(t,n)&&n.toLowerCase()===mD)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||iBt(e)){let n=new r;return n.update(PS(e)),Cf(await n.digest())}return jve},"getPayloadHash"),tPe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(Ty(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),rPe=i((t,e={})=>{let{headers:r,query:n={}}=Ove.clone(t);for(let s in r){if(!Ty(r,s))continue;let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),j5=i(t=>{t=Ove.clone(t);for(let e in t.headers)Ty(t.headers,e)&&Hve.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),K5=class extends fD{static{i(this,"SignatureV4")}headerFormatter=new W5;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let m=u??await this.regionProvider(),{longDate:f,shortDate:A}=this.formatDate(n);if(s>Xve)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let h=dD(A,m,d??this.service),E=rPe(j5(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(E.query[e6]=p.sessionToken),E.query[Mve]=lD,E.query[Fve]=`${p.accessKeyId}/${h}`,E.query[X5]=f,E.query[qve]=s.toString(10);let y=J5(E,o,c);return E.query[Uve]=this.getCanonicalHeaderList(y),E.query[Z5]=await this.getSignature(f,h,this.getSigningKey(p,m,A,d),this.createCanonicalRequest(E,y,await pD(e,this.sha256))),E}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=dD(u,l,a??this.service),m=await pD({headers:{},body:r},this.sha256),f=new this.sha256;f.update(e);let A=Cf(await f.digest()),h=[Jve,d,p,s,A,m].join(` -`);return this.signString(h,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(PS(e)),Cf(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=j5(e),{longDate:d,shortDate:p}=this.formatDate(r),m=dD(p,l,a??this.service);u.headers[r6]=d,c.sessionToken&&(u.headers[zve]=c.sessionToken);let f=await pD(u,this.sha256);!tPe(mD,u.headers)&&this.applyChecksum&&(u.headers[mD]=f);let A=J5(u,s,n),h=await this.getSignature(d,m,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,A,f));return u.headers[t6]=`${lD} Credential=${c.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${h}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,lD),a=new this.sha256(await n);return a.update(PS(o)),Cf(await a.digest())}getSigningKey(e,r,n,s){return ePe(this.sha256,e,n,r,s||this.service)}},ABt={SignatureV4a:null};$e.ALGORITHM_IDENTIFIER=lD;$e.ALGORITHM_IDENTIFIER_V4A=dBt;$e.ALGORITHM_QUERY_PARAM=Mve;$e.ALWAYS_UNSIGNABLE_HEADERS=Vve;$e.AMZ_DATE_HEADER=r6;$e.AMZ_DATE_QUERY_PARAM=X5;$e.AUTH_HEADER=t6;$e.CREDENTIAL_QUERY_PARAM=Fve;$e.DATE_HEADER=Gve;$e.EVENT_ALGORITHM_IDENTIFIER=Jve;$e.EXPIRES_QUERY_PARAM=qve;$e.GENERATED_HEADERS=Hve;$e.HOST_HEADER=lBt;$e.KEY_TYPE_IDENTIFIER=n6;$e.MAX_CACHE_SIZE=Kve;$e.MAX_PRESIGNED_TTL=Xve;$e.PROXY_HEADER_PATTERN=Wve;$e.REGION_SET_PARAM=cBt;$e.SEC_HEADER_PATTERN=Yve;$e.SHA256_HEADER=mD;$e.SIGNATURE_HEADER=$ve;$e.SIGNATURE_QUERY_PARAM=Z5;$e.SIGNED_HEADERS_QUERY_PARAM=Uve;$e.SignatureV4=K5;$e.SignatureV4Base=fD;$e.TOKEN_HEADER=zve;$e.TOKEN_QUERY_PARAM=e6;$e.UNSIGNABLE_PATTERNS=uBt;$e.UNSIGNED_PAYLOAD=jve;$e.clearCredentialCache=fBt;$e.createScope=dD;$e.getCanonicalHeaders=J5;$e.getCanonicalQuery=Zve;$e.getPayloadHash=pD;$e.getSigningKey=ePe;$e.hasHeader=tPe;$e.moveHeadersToQuery=rPe;$e.prepareRequest=j5;$e.signatureV4aContainer=ABt});function hBt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=wS(e,IS,By):r?n=Bi(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function gBt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var o6,i6,nPe=g(()=>{Et();ys();o6=R(s6()),i6=i(t=>e=>{let r=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;let p=hBt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),m=gBt(e,p);if(n&&!m.attributed){let f=typeof r=="object"&&r!==null;s=i(async A=>{let E=await m(A);return f&&(!E.$source||Object.keys(E.$source).length===0)?xd(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),s.memoized=m.memoized,s.configBound=m.configBound,s.attributed=!0}else s=m},get(){return s},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;return e.signer?l=Bi(e.signer):e.regionInfoProvider?l=i(()=>Bi(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,p])=>{let{signingRegion:m,signingService:f}=d;e.signingRegion=e.signingRegion||m||p,e.signingName=e.signingName||f||e.serviceId;let A={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},h=e.signerConstructor||o6.SignatureV4;return new h(A)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Bi(e.region)(),properties:{}},d);let p=d.signingRegion,m=d.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||m||e.serviceId;let f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||o6.SignatureV4;return new A(f)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:Bi(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(hBt,"normalizeCredentialProvider");i(gBt,"bindCallerConfig")});var a6=g(()=>{$5();Bve();vve();Pve();nPe()});var yBt,EBt,sPe,oPe=g(()=>{yt();yBt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",EBt="disable_clock_skew_correction",sPe={environmentVariableSelector:i(t=>cn(t,yBt,Or.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,EBt,Or.CONFIG),"configFileSelector"),default:!1}});var iPe,aPe=g(()=>{yt();oPe();iPe=ke(sPe)});var AD={};Fr(AD,{AWSSDKSigV4Signer:()=>H5,AwsSdkSigV4ASigner:()=>Au,AwsSdkSigV4Signer:()=>pn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ea,NODE_SIGV4A_CONFIG_OPTIONS:()=>vS,getBearerTokenEnvKey:()=>aD,resolveAWSSDKSigV4Config:()=>CBt,resolveAwsSdkSigV4AConfig:()=>TS,resolveAwsSdkSigV4Config:()=>dl,validateSigningProperties:()=>Ry});var dl,CBt,Wn=g(()=>{a6();V5();a6();aPe();dl=i6(iPe),CBt=dl});var c6=w(tp=>{var{setCredentialFeature:IBt}=(Et(),ee(ya)),{CredentialsProviderError:wBt}=(yt(),ee(Qo)),cPe="AWS_ACCESS_KEY_ID",lPe="AWS_SECRET_ACCESS_KEY",uPe="AWS_SESSION_TOKEN",dPe="AWS_CREDENTIAL_EXPIRATION",pPe="AWS_CREDENTIAL_SCOPE",mPe="AWS_ACCOUNT_ID",SBt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[cPe],r=process.env[lPe],n=process.env[uPe],s=process.env[dPe],o=process.env[pPe],a=process.env[mPe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return IBt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new wBt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");tp.ENV_ACCOUNT_ID=mPe;tp.ENV_CREDENTIAL_SCOPE=pPe;tp.ENV_EXPIRATION=dPe;tp.ENV_KEY=cPe;tp.ENV_SECRET=lPe;tp.ENV_SESSION=uPe;tp.fromEnv=SBt});var gD=w(Ri=>{var{ProviderError:l6,CredentialsProviderError:rp,loadConfig:f6}=(yt(),ee(Qo)),xBt=require("node:http"),{parseUrl:bBt}=(be(),ee(Jd)),gPe=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),yPe=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),EPe=1e3,CPe=0,A6=i(({maxRetries:t=CPe,timeout:e=EPe})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function DS(t){return new Promise((e,r)=>{let n=xBt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new l6("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new l6("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new l6("Error response received from instance metadata service"),{statusCode:o})),n.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{e(Buffer.concat(a)),n.destroy()})}),n.end()})}i(DS,"httpRequest");var d6=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=A6(t);return()=>d6(async()=>{let n=await PBt({logger:t.logger}),s=JSON.parse(await RBt(e,n));if(!gPe(s))throw new rp("Invalid response received from instance metadata service.",{logger:t.logger});return yPe(s)},r)},"fromContainerMetadata"),RBt=i(async(t,e)=>(process.env[p6]&&(e.headers={...e.headers,Authorization:process.env[p6]}),(await DS({...e,timeout:t})).toString()),"requestFromEcsImds"),NBt="169.254.170.2",TBt=new Set(["localhost","127.0.0.1"]),vBt=new Set(["http:","https:"]),PBt=i(async({logger:t})=>{if(process.env[hD])return{hostname:NBt,path:process.env[hD]};if(process.env[_S]){let e;try{e=new URL(process.env[_S])}catch{throw new rp(`${process.env[_S]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!TBt.has(e.hostname))throw new rp(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!vBt.has(e.protocol))throw new rp(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new rp(`The container metadata credential provider cannot be used unless the ${hD} or ${_S} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),m6=class t extends rp{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},QS;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(QS||(QS={}));var _Bt="AWS_EC2_METADATA_SERVICE_ENDPOINT",QBt="ec2_metadata_service_endpoint",DBt={environmentVariableSelector:i(t=>t[_Bt],"environmentVariableSelector"),configFileSelector:i(t=>t[QBt],"configFileSelector"),default:void 0},vy;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(vy||(vy={}));var kBt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",LBt="ec2_metadata_service_endpoint_mode",OBt={environmentVariableSelector:i(t=>t[kBt],"environmentVariableSelector"),configFileSelector:i(t=>t[LBt],"configFileSelector"),default:vy.IPv4},IPe=i(async()=>bBt(await MBt()||await FBt()),"getInstanceMetadataEndpoint"),MBt=i(async()=>f6(DBt)(),"getFromEndpointConfig"),FBt=i(async()=>{let t=await f6(OBt)();switch(t){case vy.IPv4:return QS.IPv4;case vy.IPv6:return QS.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(vy)}`)}},"getFromEndpointModeConfig"),UBt=300,qBt=300,GBt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",fPe=i((t,e)=>{let r=UBt+Math.floor(Math.random()*qBt),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}. -For more information, please visit: `+GBt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),HBt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()HBt(VBt(t),{logger:t.logger}),"fromInstanceMetadata"),VBt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=A6(t),a=i(async(c,l)=>{if(e||l.headers?.[hPe]==null){let p=!1,m=!1,f=await f6({environmentVariableSelector:i(A=>{let h=A[u6];if(m=!!h&&h!=="false",h===void 0)throw new rp(`${u6} not set in env, checking config file next.`,{logger:t.logger});return m},"environmentVariableSelector"),configFileSelector:i(A=>{let h=A[APe];return p=!!h&&h!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||f){let A=[];throw t.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&A.push(`config file profile (${APe})`),m&&A.push(`process environment variable (${u6})`),new m6(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let d=(await d6(async()=>{let p;try{p=await YBt(l)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)).trim();return d6(async()=>{let p;try{p=await JBt(d,l,t)}catch(m){throw m.statusCode===401&&(e=!1),m}return p},c)},"getCredentials");return async()=>{let c=await IPe();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await WBt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[hPe]:l},timeout:s})}}},"getInstanceMetadataProvider"),WBt=i(async t=>DS({...t,path:$Bt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),YBt=i(async t=>(await DS({...t,path:wPe})).toString(),"getProfile"),JBt=i(async(t,e,r)=>{let n=JSON.parse((await DS({...e,path:wPe+t})).toString());if(!gPe(n))throw new rp("Invalid response received from instance metadata service.",{logger:r.logger});return yPe(n)},"getCredentialsFromProfile");Ri.DEFAULT_MAX_RETRIES=CPe;Ri.DEFAULT_TIMEOUT=EPe;Ri.ENV_CMDS_AUTH_TOKEN=p6;Ri.ENV_CMDS_FULL_URI=_S;Ri.ENV_CMDS_RELATIVE_URI=hD;Ri.Endpoint=QS;Ri.fromContainerMetadata=BBt;Ri.fromInstanceMetadata=zBt;Ri.getInstanceMetadataEndpoint=IPe;Ri.httpRequest=DS;Ri.providerConfigFromInit=A6});var hu=w(LS=>{var{hasOwn:NPe}=(Se(),ee(mf)),{streamCollector:jBt}=(Se(),ee(mf));LS.streamCollector=jBt;var{buildQueryString:TPe,HttpResponse:vPe}=(be(),ee(Jd)),yD=require("node:https"),{Readable:KBt}=require("node:stream"),h6=require("node:http2");function CD(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(CD,"buildAbortError");var XBt=["ECONNRESET","EPIPE","ETIMEDOUT"],PPe=i(t=>{let e={};for(let r in t){if(!NPe(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Tn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},SPe=1e3,ZBt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Tn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Tn.clearTimeout(o)}):Tn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Tn.setTimeout(n.bind(null,SPe),SPe)},"setConnectionTimeout"),eRt=i((t,e,r=0,n,s)=>r?Tn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),tRt=3e3,rRt=i((t,{keepAlive:e,keepAliveMsecs:r},n=tRt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Tn.setTimeout(s,n)},"setSocketKeepAlive"),xPe=3e3,nRt=i((t,e,r=0)=>{let n=i(s=>{let o=r-s,a=i(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");t.socket?(t.socket.setTimeout(o,a),t.on("close",()=>t.socket?.removeListener("timeout",a))):t.setTimeout(o,a)},"registerTimeout");return 0{a=Number(Tn.setTimeout(()=>l(!0),Math.max(bPe,r)))}),new Promise(l=>{t.on("continue",()=>{Tn.clearTimeout(a),l(!0)}),t.on("response",()=>{Tn.clearTimeout(a),l(!1)}),t.on("error",()=>{Tn.clearTimeout(a),l(!1)})})])),c&&sRt(t,e.body)}i(_Pe,"writeRequestBody");function sRt(t,e){if(e instanceof KBt){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let s=e;if(typeof s=="object"&&s.buffer&&typeof s.byteOffset=="number"&&typeof s.byteLength=="number"){t.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}t.end(Buffer.from(e));return}t.end()}i(sRt,"writeBody");var oRt=0,ED,BPe,g6=class t{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:s,requests:o,maxSockets:a}=e;if(typeof a!="number"||a===1/0||Date.now()-15e3=a&&d>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued. +${bm(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return AD(n).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){let r=bRt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},Qy={},gD=[],yD=i((t,e,r)=>`${t}/${e}/${r}/${d6}`,"createScope"),Cve=i(async(t,e,r,n,s)=>{let o=await rve(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${bm(o)}:${e.sessionToken}`;if(a in Qy)return Qy[a];for(gD.push(a);gD.length>gve;)delete Qy[gD.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,d6])c=await rve(t,c,l);return Qy[a]=c},"getSigningKey"),RRt=i(()=>{gD.length=0,Object.keys(Qy).forEach(t=>{delete Qy[t]})},"clearCredentialCache"),rve=i((t,e,r)=>{let n=new t(e);return n.update(MS(r)),n.digest()},"hmac"),n6=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in pve||e?.has(o)||fve.test(o)||mve.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),ED=i(async({headers:t,body:e},r)=>{for(let n in t)if(Dy(t,n)&&n.toLowerCase()===CD)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||ERt(e)){let n=new r;return n.update(MS(e)),bm(await n.digest())}return hve},"getPayloadHash"),Ive=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(Dy(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),wve=i((t,e={})=>{let{headers:r,query:n={}}=nve.clone(t);for(let s in r){if(!Dy(r,s))continue;let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),s6=i(t=>{t=nve.clone(t);for(let e in t.headers)Dy(t.headers,e)&&lve.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),o6=class extends ID{static{i(this,"SignatureV4")}headerFormatter=new t6;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let f=u??await this.regionProvider(),{longDate:m,shortDate:A}=this.formatDate(n);if(s>yve)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let h=yD(A,f,d??this.service),E=wve(s6(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(E.query[c6]=p.sessionToken),E.query[sve]=hD,E.query[ove]=`${p.accessKeyId}/${h}`,E.query[i6]=m,E.query[ave]=s.toString(10);let y=n6(E,o,c);return E.query[ive]=this.getCanonicalHeaderList(y),E.query[a6]=await this.getSignature(m,h,this.getSigningKey(p,f,A,d),this.createCanonicalRequest(E,y,await ED(e,this.sha256))),E}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=yD(u,l,a??this.service),f=await ED({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let A=bm(await m.digest()),h=[Ave,d,p,s,A,f].join(` +`);return this.signString(h,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(MS(e)),bm(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=s6(e),{longDate:d,shortDate:p}=this.formatDate(r),f=yD(p,l,a??this.service);u.headers[u6]=d,c.sessionToken&&(u.headers[dve]=c.sessionToken);let m=await ED(u,this.sha256);!Ive(CD,u.headers)&&this.applyChecksum&&(u.headers[CD]=m);let A=n6(u,s,n),h=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,A,m));return u.headers[l6]=`${hD} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${h}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,hD),a=new this.sha256(await n);return a.update(MS(o)),bm(await a.digest())}getSigningKey(e,r,n,s){return Cve(this.sha256,e,n,r,s||this.service)}},NRt={SignatureV4a:null};$e.ALGORITHM_IDENTIFIER=hD;$e.ALGORITHM_IDENTIFIER_V4A=xRt;$e.ALGORITHM_QUERY_PARAM=sve;$e.ALWAYS_UNSIGNABLE_HEADERS=pve;$e.AMZ_DATE_HEADER=u6;$e.AMZ_DATE_QUERY_PARAM=i6;$e.AUTH_HEADER=l6;$e.CREDENTIAL_QUERY_PARAM=ove;$e.DATE_HEADER=cve;$e.EVENT_ALGORITHM_IDENTIFIER=Ave;$e.EXPIRES_QUERY_PARAM=ave;$e.GENERATED_HEADERS=lve;$e.HOST_HEADER=wRt;$e.KEY_TYPE_IDENTIFIER=d6;$e.MAX_CACHE_SIZE=gve;$e.MAX_PRESIGNED_TTL=yve;$e.PROXY_HEADER_PATTERN=fve;$e.REGION_SET_PARAM=IRt;$e.SEC_HEADER_PATTERN=mve;$e.SHA256_HEADER=CD;$e.SIGNATURE_HEADER=uve;$e.SIGNATURE_QUERY_PARAM=a6;$e.SIGNED_HEADERS_QUERY_PARAM=ive;$e.SignatureV4=o6;$e.SignatureV4Base=ID;$e.TOKEN_HEADER=dve;$e.TOKEN_QUERY_PARAM=c6;$e.UNSIGNABLE_PATTERNS=SRt;$e.UNSIGNED_PAYLOAD=hve;$e.clearCredentialCache=RRt;$e.createScope=yD;$e.getCanonicalHeaders=n6;$e.getCanonicalQuery=Eve;$e.getPayloadHash=ED;$e.getSigningKey=Cve;$e.hasHeader=Ive;$e.moveHeadersToQuery=wve;$e.prepareRequest=s6;$e.signatureV4aContainer=NRt});function TRt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=TS(e,NS,vy):r?n=Ni(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function PRt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var f6,m6,Sve=g(()=>{yt();Es();f6=R(p6()),m6=i(t=>e=>{let r=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;let p=TRt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=PRt(e,p);if(n&&!f.attributed){let m=typeof r=="object"&&r!==null;s=i(async A=>{let E=await f(A);return m&&(!E.$source||Object.keys(E.$source).length===0)?Bd(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),s.memoized=f.memoized,s.configBound=f.configBound,s.attributed=!0}else s=f},get(){return s},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;return e.signer?l=Ni(e.signer):e.regionInfoProvider?l=i(()=>Ni(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,p])=>{let{signingRegion:f,signingService:m}=d;e.signingRegion=e.signingRegion||f||p,e.signingName=e.signingName||m||e.serviceId;let A={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},h=e.signerConstructor||f6.SignatureV4;return new h(A)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Ni(e.region)(),properties:{}},d);let p=d.signingRegion,f=d.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||f||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||f6.SignatureV4;return new A(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:Ni(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(TRt,"normalizeCredentialProvider");i(PRt,"bindCallerConfig")});var A6=g(()=>{X5();VPe();jPe();KPe();Sve()});var vRt,_Rt,xve,bve=g(()=>{gt();vRt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",_Rt="disable_clock_skew_correction",xve={environmentVariableSelector:i(t=>cn(t,vRt,kr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>cn(t,_Rt,kr.CONFIG),"configFileSelector"),default:!1}});var Bve,Rve=g(()=>{gt();bve();Bve=_e(xve)});var wD={};Mr(wD,{AWSSDKSigV4Signer:()=>K5,AwsSdkSigV4ASigner:()=>hu,AwsSdkSigV4Signer:()=>pn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ia,NODE_SIGV4A_CONFIG_OPTIONS:()=>OS,getBearerTokenEnvKey:()=>mD,resolveAWSSDKSigV4Config:()=>QRt,resolveAwsSdkSigV4AConfig:()=>LS,resolveAwsSdkSigV4Config:()=>pl,validateSigningProperties:()=>_y});var pl,QRt,Yn=g(()=>{A6();e6();A6();Rve();pl=m6(Bve),QRt=pl});var h6=w(np=>{var{setCredentialFeature:DRt}=(yt(),Z(Ca)),{CredentialsProviderError:kRt}=(gt(),Z(Qo)),Nve="AWS_ACCESS_KEY_ID",Tve="AWS_SECRET_ACCESS_KEY",Pve="AWS_SESSION_TOKEN",vve="AWS_CREDENTIAL_EXPIRATION",_ve="AWS_CREDENTIAL_SCOPE",Qve="AWS_ACCOUNT_ID",LRt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[Nve],r=process.env[Tve],n=process.env[Pve],s=process.env[vve],o=process.env[_ve],a=process.env[Qve];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return DRt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new kRt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");np.ENV_ACCOUNT_ID=Qve;np.ENV_CREDENTIAL_SCOPE=_ve;np.ENV_EXPIRATION=vve;np.ENV_KEY=Nve;np.ENV_SECRET=Tve;np.ENV_SESSION=Pve;np.fromEnv=LRt});var xD=w(Ti=>{var{ProviderError:g6,CredentialsProviderError:sp,loadConfig:w6}=(gt(),Z(Qo)),ORt=require("node:http"),{parseUrl:MRt}=(Se(),Z(Kd)),Ove=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),Mve=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),Fve=1e3,Uve=0,S6=i(({maxRetries:t=Uve,timeout:e=Fve})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function qS(t){return new Promise((e,r)=>{let n=ORt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new g6("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new g6("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new g6("Error response received from instance metadata service"),{statusCode:o})),n.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{e(Buffer.concat(a)),n.destroy()})}),n.end()})}i(qS,"httpRequest");var E6=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=S6(t);return()=>E6(async()=>{let n=await HRt({logger:t.logger}),s=JSON.parse(await URt(e,n));if(!Ove(s))throw new sp("Invalid response received from instance metadata service.",{logger:t.logger});return Mve(s)},r)},"fromContainerMetadata"),URt=i(async(t,e)=>(process.env[C6]&&(e.headers={...e.headers,Authorization:process.env[C6]}),(await qS({...e,timeout:t})).toString()),"requestFromEcsImds"),qRt="169.254.170.2",GRt=new Set(["localhost","127.0.0.1"]),$Rt=new Set(["http:","https:"]),HRt=i(async({logger:t})=>{if(process.env[SD])return{hostname:qRt,path:process.env[SD]};if(process.env[FS]){let e;try{e=new URL(process.env[FS])}catch{throw new sp(`${process.env[FS]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!GRt.has(e.hostname))throw new sp(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!$Rt.has(e.protocol))throw new sp(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new sp(`The container metadata credential provider cannot be used unless the ${SD} or ${FS} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),I6=class t extends sp{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},US;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(US||(US={}));var zRt="AWS_EC2_METADATA_SERVICE_ENDPOINT",VRt="ec2_metadata_service_endpoint",WRt={environmentVariableSelector:i(t=>t[zRt],"environmentVariableSelector"),configFileSelector:i(t=>t[VRt],"configFileSelector"),default:void 0},ky;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(ky||(ky={}));var YRt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",JRt="ec2_metadata_service_endpoint_mode",jRt={environmentVariableSelector:i(t=>t[YRt],"environmentVariableSelector"),configFileSelector:i(t=>t[JRt],"configFileSelector"),default:ky.IPv4},qve=i(async()=>MRt(await KRt()||await XRt()),"getInstanceMetadataEndpoint"),KRt=i(async()=>w6(WRt)(),"getFromEndpointConfig"),XRt=i(async()=>{let t=await w6(jRt)();switch(t){case ky.IPv4:return US.IPv4;case ky.IPv6:return US.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(ky)}`)}},"getFromEndpointModeConfig"),ZRt=300,eNt=300,tNt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Dve=i((t,e)=>{let r=ZRt+Math.floor(Math.random()*eNt),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}. +For more information, please visit: `+tNt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),rNt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()rNt(oNt(t),{logger:t.logger}),"fromInstanceMetadata"),oNt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=S6(t),a=i(async(c,l)=>{if(e||l.headers?.[Lve]==null){let p=!1,f=!1,m=await w6({environmentVariableSelector:i(A=>{let h=A[y6];if(f=!!h&&h!=="false",h===void 0)throw new sp(`${y6} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(A=>{let h=A[kve];return p=!!h&&h!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let A=[];throw t.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&A.push(`config file profile (${kve})`),f&&A.push(`process environment variable (${y6})`),new I6(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let d=(await E6(async()=>{let p;try{p=await aNt(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return E6(async()=>{let p;try{p=await cNt(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await qve();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await iNt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[Lve]:l},timeout:s})}}},"getInstanceMetadataProvider"),iNt=i(async t=>qS({...t,path:nNt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),aNt=i(async t=>(await qS({...t,path:Gve})).toString(),"getProfile"),cNt=i(async(t,e,r)=>{let n=JSON.parse((await qS({...e,path:Gve+t})).toString());if(!Ove(n))throw new sp("Invalid response received from instance metadata service.",{logger:r.logger});return Mve(n)},"getCredentialsFromProfile");Ti.DEFAULT_MAX_RETRIES=Uve;Ti.DEFAULT_TIMEOUT=Fve;Ti.ENV_CMDS_AUTH_TOKEN=C6;Ti.ENV_CMDS_FULL_URI=FS;Ti.ENV_CMDS_RELATIVE_URI=SD;Ti.Endpoint=US;Ti.fromContainerMetadata=FRt;Ti.fromInstanceMetadata=sNt;Ti.getInstanceMetadataEndpoint=qve;Ti.httpRequest=qS;Ti.providerConfigFromInit=S6});var gu=w($S=>{var{hasOwn:Yve}=(Ie(),Z(ym)),{streamCollector:lNt}=(Ie(),Z(ym));$S.streamCollector=lNt;var{buildQueryString:Jve,HttpResponse:jve}=(Se(),Z(Kd)),bD=require("node:https"),{Readable:uNt}=require("node:stream"),x6=require("node:http2");function RD(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(RD,"buildAbortError");var dNt=["ECONNRESET","EPIPE","ETIMEDOUT"],Kve=i(t=>{let e={};for(let r in t){if(!Yve(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Tn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},$ve=1e3,pNt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Tn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Tn.clearTimeout(o)}):Tn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Tn.setTimeout(n.bind(null,$ve),$ve)},"setConnectionTimeout"),fNt=i((t,e,r=0,n,s)=>r?Tn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),mNt=3e3,ANt=i((t,{keepAlive:e,keepAliveMsecs:r},n=mNt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Tn.setTimeout(s,n)},"setSocketKeepAlive"),Hve=3e3,hNt=i((t,e,r=0)=>{let n=i(s=>{let o=r-s,a=i(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");t.socket?(t.socket.setTimeout(o,a),t.on("close",()=>t.socket?.removeListener("timeout",a))):t.setTimeout(o,a)},"registerTimeout");return 0{a=Number(Tn.setTimeout(()=>l(!0),Math.max(zve,r)))}),new Promise(l=>{t.on("continue",()=>{Tn.clearTimeout(a),l(!0)}),t.on("response",()=>{Tn.clearTimeout(a),l(!1)}),t.on("error",()=>{Tn.clearTimeout(a),l(!1)})})])),c&&gNt(t,e.body)}i(Xve,"writeRequestBody");function gNt(t,e){if(e instanceof uNt){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let s=e;if(typeof s=="object"&&s.buffer&&typeof s.byteOffset=="number"&&typeof s.byteLength=="number"){t.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}t.end(Buffer.from(e));return}t.end()}i(gNt,"writeBody");var yNt=0,BD,Vve,b6=class t{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:s,requests:o,maxSockets:a}=e;if(typeof a!="number"||a===1/0||Date.now()-15e3=a&&d>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html -or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=s.logger,a=e.protocol==="https:";return!a&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((c,l)=>{let u,d=-1,p=-1,m=-1,f=-1,A=-1,h=i(()=>{Tn.clearTimeout(d),Tn.clearTimeout(p),Tn.clearTimeout(m),Tn.clearTimeout(f),Tn.clearTimeout(A)},"clearTimeouts"),E=i(async D=>{await u,h(),c(D)},"resolve"),y=i(async D=>{await u,h(),l(D)},"reject");if(r?.aborted){let D=CD(r);y(D);return}let I=e.headers,x=I?(I.Expect??I.expect)==="100-continue":!1,b=a?s.httpsAgent:s.httpAgent;x&&!this.externalAgent&&(b=new(a?yD.Agent:ED)({keepAlive:!1,maxSockets:1/0})),d=Tn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?TPe(e.query):"",P;if(e.username!=null||e.password!=null){let D=e.username??"",ze=e.password??"";P=`${D}:${ze}`}let _=e.path;N&&(_+=`?${N}`),e.fragment&&(_+=`#${e.fragment}`);let G=e.hostname??"";G[0]==="["&&G.endsWith("]")?G=e.hostname.slice(1,-1):G=e.hostname;let ae={headers:e.headers,host:G,method:e.method,path:_,port:e.port,agent:b,auth:P},_e=(a?yD.request:BPe)(ae,D=>{let ze=new vPe({statusCode:D.statusCode||-1,reason:D.statusMessage,headers:PPe(D.headers),body:D});E({response:ze})});if(_e.on("error",D=>{XBt.includes(D.code)?y(Object.assign(D,{name:"TimeoutError"})):y(D)}),r){let D=i(()=>{_e.destroy();let ze=CD(r);y(ze)},"onAbort");if(typeof r.addEventListener=="function"){let ze=r;ze.addEventListener("abort",D,{once:!0}),_e.once("close",()=>ze.removeEventListener("abort",D))}else r.onabort=D}let ie=n??s.requestTimeout;p=ZBt(_e,y,s.connectionTimeout),m=eRt(_e,y,ie,s.throwOnRequestTimeout,o??console),f=nRt(_e,y,s.socketTimeout);let De=ae.agent;typeof De=="object"&&"keepAlive"in De&&(A=rRt(_e,{keepAlive:De.keepAlive,keepAliveMsecs:De.keepAliveMsecs})),u=_Pe(_e,e,ie,this.externalAgent).catch(D=>(h(),l(D)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let m=require("node:http"),{Agent:f,request:A}=m.default??m;return BPe=A,ED=f,a instanceof ED||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new ED({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof yD.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new yD.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},iRt=new Uint16Array(1),kS=class{static{i(this,"ClientHttp2SessionRef")}id=iRt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},y6=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new kS(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},E6=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o=new kS(this.connect(n)),a=o.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(n,o)},"graceful"),l=i(()=>{this.removeFromPoolAndCheckedDestroy(n,o)},"ensureDestroyed");return a.on("goaway",c),a.on("error",l),a.on("frameError",l),a.on("close",l),r.requestTimeout&&a.setTimeout(r.requestTimeout,l),s.offerLast(o),o.retain(),o}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),s=new kS(this.connect(n)),o=s.deref();o.settings({maxConcurrentStreams:1});let a=i(()=>{s.destroy()},"ensureDestroyed");o.on("error",a),o.on("frameError",a),o.on("close",a);let c=r.requestTimeout??3e5;return o.setTimeout(c,a),s.retain(),s}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let s=[];for(let o of n)s.push({id:o.id,active:o.useCount(),maxConcurrent:o.max,totalRequests:o.total});e[r]={sessions:s}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new y6;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?h6.connect(e):h6.connect(e,this.connectOptions)}},{constants:RPe}=h6,C6=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new E6({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(s||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:s}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:d,nodeHttp2ConnectOptions:p}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),d&&this.connectionManager.setMaxConcurrentStreams(d),p&&this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:o,disableConcurrentStreams:a}=this.config,c=a||s,l=n??o;return new Promise((u,d)=>{let p=!1,m,f=i(async D=>{await m,u(D)},"resolve"),A=i(async D=>{await m,d(D)},"reject");if(r?.aborted){p=!0;let D=CD(r);A(D);return}let{hostname:h,method:E,port:y,protocol:I,query:x}=e,b="";if(e.username!=null||e.password!=null){let D=e.username??"",ze=e.password??"";b=`${D}:${ze}@`}let N=`${I}//${b}${h}${y?`:${y}`:""}`,P={destination:new URL(N)},_={requestTimeout:this.config?.sessionTimeout,isEventStream:s},G=c?this.connectionManager.createIsolatedSession(P,_):this.connectionManager.lease(P,_),ae=G.deref(),Ce=i(D=>{c&&G.destroy(),p=!0,A(D)},"rejectWithDestroy"),_e=x?TPe(x):"",ie=e.path;_e&&(ie+=`?${_e}`),e.fragment&&(ie+=`#${e.fragment}`);let De=ae.request({...e.headers,[RPe.HTTP2_HEADER_PATH]:ie,[RPe.HTTP2_HEADER_METHOD]:E});if(l&&De.setTimeout(l,()=>{De.close();let D=new Error(`Stream timed out because of no activity for ${l} ms`);D.name="TimeoutError",Ce(D)}),r){let D=i(()=>{De.close();let ze=CD(r);Ce(ze)},"onAbort");if(typeof r.addEventListener=="function"){let ze=r;ze.addEventListener("abort",D,{once:!0}),De.once("close",()=>ze.removeEventListener("abort",D))}else r.onabort=D}De.on("frameError",(D,ze,Z)=>{Ce(new Error(`Frame type id ${D} in stream id ${Z} has failed with code ${ze}.`))}),De.on("error",Ce),De.on("aborted",()=>{Ce(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${De.rstCode}.`))}),De.on("response",D=>{let ze=new vPe({statusCode:D[":status"]??-1,headers:PPe(D),body:De});p=!0,f({response:ze}),c&&(ae.close(),De.on("end",()=>{G.destroy()}))}),De.on("close",()=>{if(c?G.destroy():this.connectionManager.release(P,G),!p){let D=new Error("Unexpected error: http2 request did not get a response");ae.destroyed&&(D.name="TimeoutError"),Ce(D)}}),m=_Pe(De,e,l)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};LS.DEFAULT_REQUEST_TIMEOUT=oRt;LS.NodeHttp2Handler=C6;LS.NodeHttpHandler=g6});var I6=w(DPe=>{var{setCredentialFeature:aRt}=(Et(),ee(ya)),{CredentialsProviderError:If}=(yt(),ee(Qo)),{NodeHttpHandler:cRt}=hu(),lRt=require("node:fs/promises"),{HttpRequest:uRt}=(be(),ee(Jd)),{sdkStreamMixin:dRt,parseRfc3339DateTime:pRt}=(Se(),ee(mf)),mRt="169.254.170.2",fRt="169.254.170.23",ARt="[fd00:ec2::23]",hRt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===mRt||t.hostname===fRt||t.hostname===ARt)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=i(s=>{let o=parseInt(s,10);return 0<=o&&o<=255},"inRange");if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new If(`URL not accepted. It must either be HTTPS or match one of the following: +or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=s.logger,a=e.protocol==="https:";return!a&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((c,l)=>{let u,d=-1,p=-1,f=-1,m=-1,A=-1,h=i(()=>{Tn.clearTimeout(d),Tn.clearTimeout(p),Tn.clearTimeout(f),Tn.clearTimeout(m),Tn.clearTimeout(A)},"clearTimeouts"),E=i(async D=>{await u,h(),c(D)},"resolve"),y=i(async D=>{await u,h(),l(D)},"reject");if(r?.aborted){let D=RD(r);y(D);return}let I=e.headers,x=I?(I.Expect??I.expect)==="100-continue":!1,b=a?s.httpsAgent:s.httpAgent;x&&!this.externalAgent&&(b=new(a?bD.Agent:BD)({keepAlive:!1,maxSockets:1/0})),d=Tn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?Jve(e.query):"",v;if(e.username!=null||e.password!=null){let D=e.username??"",et=e.password??"";v=`${D}:${et}`}let _=e.path;N&&(_+=`?${N}`),e.fragment&&(_+=`#${e.fragment}`);let J=e.hostname??"";J[0]==="["&&J.endsWith("]")?J=e.hostname.slice(1,-1):J=e.hostname;let ve={headers:e.headers,host:J,method:e.method,path:_,port:e.port,agent:b,auth:v},Fe=(a?bD.request:Vve)(ve,D=>{let et=new jve({statusCode:D.statusCode||-1,reason:D.statusMessage,headers:Kve(D.headers),body:D});E({response:et})});if(Fe.on("error",D=>{dNt.includes(D.code)?y(Object.assign(D,{name:"TimeoutError"})):y(D)}),r){let D=i(()=>{Fe.destroy();let et=RD(r);y(et)},"onAbort");if(typeof r.addEventListener=="function"){let et=r;et.addEventListener("abort",D,{once:!0}),Fe.once("close",()=>et.removeEventListener("abort",D))}else r.onabort=D}let fe=n??s.requestTimeout;p=pNt(Fe,y,s.connectionTimeout),f=fNt(Fe,y,fe,s.throwOnRequestTimeout,o??console),m=hNt(Fe,y,s.socketTimeout);let He=ve.agent;typeof He=="object"&&"keepAlive"in He&&(A=ANt(Fe,{keepAlive:He.keepAlive,keepAliveMsecs:He.keepAliveMsecs})),u=Xve(Fe,e,fe,this.externalAgent).catch(D=>(h(),l(D)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let f=require("node:http"),{Agent:m,request:A}=f.default??f;return Vve=A,BD=m,a instanceof BD||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new BD({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof bD.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new bD.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},ENt=new Uint16Array(1),GS=class{static{i(this,"ClientHttp2SessionRef")}id=ENt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},B6=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new GS(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},R6=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o=new GS(this.connect(n)),a=o.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(n,o)},"graceful"),l=i(()=>{this.removeFromPoolAndCheckedDestroy(n,o)},"ensureDestroyed");return a.on("goaway",c),a.on("error",l),a.on("frameError",l),a.on("close",l),r.requestTimeout&&a.setTimeout(r.requestTimeout,l),s.offerLast(o),o.retain(),o}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),s=new GS(this.connect(n)),o=s.deref();o.settings({maxConcurrentStreams:1});let a=i(()=>{s.destroy()},"ensureDestroyed");o.on("error",a),o.on("frameError",a),o.on("close",a);let c=r.requestTimeout??3e5;return o.setTimeout(c,a),s.retain(),s}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let s=[];for(let o of n)s.push({id:o.id,active:o.useCount(),maxConcurrent:o.max,totalRequests:o.total});e[r]={sessions:s}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new B6;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?x6.connect(e):x6.connect(e,this.connectOptions)}},{constants:Wve}=x6,N6=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new R6({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(s||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:s}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:d,nodeHttp2ConnectOptions:p}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),d&&this.connectionManager.setMaxConcurrentStreams(d),p&&this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:o,disableConcurrentStreams:a}=this.config,c=a||s,l=n??o;return new Promise((u,d)=>{let p=!1,f,m=i(async D=>{await f,u(D)},"resolve"),A=i(async D=>{await f,d(D)},"reject");if(r?.aborted){p=!0;let D=RD(r);A(D);return}let{hostname:h,method:E,port:y,protocol:I,query:x}=e,b="";if(e.username!=null||e.password!=null){let D=e.username??"",et=e.password??"";b=`${D}:${et}@`}let N=`${I}//${b}${h}${y?`:${y}`:""}`,v={destination:new URL(N)},_={requestTimeout:this.config?.sessionTimeout,isEventStream:s},J=c?this.connectionManager.createIsolatedSession(v,_):this.connectionManager.lease(v,_),ve=J.deref(),Qe=i(D=>{c&&J.destroy(),p=!0,A(D)},"rejectWithDestroy"),Fe=x?Jve(x):"",fe=e.path;Fe&&(fe+=`?${Fe}`),e.fragment&&(fe+=`#${e.fragment}`);let He=ve.request({...e.headers,[Wve.HTTP2_HEADER_PATH]:fe,[Wve.HTTP2_HEADER_METHOD]:E});if(l&&He.setTimeout(l,()=>{He.close();let D=new Error(`Stream timed out because of no activity for ${l} ms`);D.name="TimeoutError",Qe(D)}),r){let D=i(()=>{He.close();let et=RD(r);Qe(et)},"onAbort");if(typeof r.addEventListener=="function"){let et=r;et.addEventListener("abort",D,{once:!0}),He.once("close",()=>et.removeEventListener("abort",D))}else r.onabort=D}He.on("frameError",(D,et,re)=>{Qe(new Error(`Frame type id ${D} in stream id ${re} has failed with code ${et}.`))}),He.on("error",Qe),He.on("aborted",()=>{Qe(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${He.rstCode}.`))}),He.on("response",D=>{let et=new jve({statusCode:D[":status"]??-1,headers:Kve(D),body:He});p=!0,m({response:et}),c&&(ve.close(),He.on("end",()=>{J.destroy()}))}),He.on("close",()=>{if(c?J.destroy():this.connectionManager.release(v,J),!p){let D=new Error("Unexpected error: http2 request did not get a response");ve.destroyed&&(D.name="TimeoutError"),Qe(D)}}),f=Xve(He,e,l)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};$S.DEFAULT_REQUEST_TIMEOUT=yNt;$S.NodeHttp2Handler=N6;$S.NodeHttpHandler=b6});var T6=w(e_e=>{var{setCredentialFeature:CNt}=(yt(),Z(Ca)),{CredentialsProviderError:Bm}=(gt(),Z(Qo)),{NodeHttpHandler:INt}=gu(),wNt=require("node:fs/promises"),{HttpRequest:SNt}=(Se(),Z(Kd)),{sdkStreamMixin:xNt,parseRfc3339DateTime:bNt}=(Ie(),Z(ym)),BNt="169.254.170.2",RNt="169.254.170.23",NNt="[fd00:ec2::23]",TNt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===BNt||t.hostname===RNt||t.hostname===NNt)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=i(s=>{let o=parseInt(s,10);return 0<=o&&o<=255},"inRange");if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new Bm(`URL not accepted. It must either be HTTPS or match one of the following: - loopback CIDR 127.0.0.0/8 or [::1/128] - ECS container host 169.254.170.2 - - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");function gRt(t){return new uRt({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(gRt,"createGetRequest");async function yRt(t,e){let n=await dRt(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new If("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:pRt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new If(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new If(`Server responded with status: ${t.statusCode}`,{logger:e})}i(yRt,"getCredentials");var ERt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper"),CRt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",IRt="http://169.254.170.2",wRt="AWS_CONTAINER_CREDENTIALS_FULL_URI",SRt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",xRt="AWS_CONTAINER_AUTHORIZATION_TOKEN",bRt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[CRt],n=t.awsContainerCredentialsFullUri??process.env[wRt],s=t.awsContainerAuthorizationToken??process.env[xRt],o=t.awsContainerAuthorizationTokenFile??process.env[SRt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${IRt}${r}`;else if(n)e=n;else throw new If(`No HTTP credential provider host provided. -Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);hRt(c,t.logger);let l=cRt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=ERt(async()=>{let p=gRt(c);o?p.headers.Authorization=QPe((await lRt.readFile(o)).toString()):s&&(p.headers.Authorization=QPe(s));try{let m=await l.handle(p,{requestTimeout:u});return yRt(m.response).then(f=>aRt(f,"CREDENTIALS_HTTP","z"))}catch(m){throw new If(String(m),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),QPe=i(t=>{if(t.includes(`\r -`))throw new If("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");DPe.fromHttp=bRt});function BRt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function RRt(t){return{schemeId:"smithy.api#noAuth"}}var kPe,LPe,OPe,w6=g(()=>{Wn();we();kPe=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(BRt,"createAwsAuthSigv4HttpAuthOption");i(RRt,"createSmithyApiNoAuthHttpAuthOption");LPe=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(RRt(t)):e.push(BRt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),OPe=i(t=>{let e=dl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var MPe,FPe,S6=g(()=>{MPe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),FPe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var np,OS=g(()=>{np={name:"@aws-sdk/nested-clients",version:"3.997.49",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-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",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.4","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.36.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var x6,UPe=g(()=>{x6=Symbol("@smithy/core/cbor::tagSymbol")});var MS,b6=g(()=>{MS=i((t,e)=>{let r=i(n=>{let s=n;return typeof s=="number"&&(s=s.toString()),s.indexOf(",")>=0&&(s=s.split(",")[0]),s.indexOf(":")>=0&&(s=s.split(":")[0]),s},"sanitizeErrorCode");if(e.__type!==void 0)return r(e.__type)},"loadSmithyRpcV2CborErrorCode")});function BD(t){let e=t.getSchema(),r=e[qPe];if(r)return r;let n=[],s=[];for(let[c,l]of t.structIterator())n.push(c),s.push(l);let o=new Array(n.length);for(let c=0;c>8,s[2]=r&255),s.set(e,n),s}function VPe(t){return RD?Buffer.allocUnsafe(t):new Uint8Array(t)}function Dy(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){pl(Lo());return}Ct(1),qe[Be++]=246;return}if(t.isUnitSchema()){Ct(1),mn(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){ID(e);return}if(t.isTimestampSchema()&&e instanceof Date){T6(e);return}if(t.isStructSchema()){PRt(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){$Pe(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){R6(t,e,!1,n);return}if(e instanceof Date){T6(e);return}if(e instanceof Uint8Array){ID(e);return}if(e instanceof Je){JPe(e);return}if(e[x6]){let o=e;YPe(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?$Pe(t,e,!0,n):R6(t,e,!0,n);return}if(t.isBigDecimalSchema()){ky(e);return}R6(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??fr)(e);ID(o);return}pl(e);return}if(typeof e=="number"){Ct(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?ND(e):L6(e);return}if(typeof e=="boolean"){Ct(1),qe[Be++]=224|(e?21:20);return}if(typeof e=="bigint"){xD(e);return}pl(String(e))}function PRt(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[m,f]of t.structIterator()){let A=e[m];if(A!=null){Ct(9),mn(5,1),pl(m),Dy(f,A,t,r),p=!0;break}}if(!p){let{$unknown:m}=e;Array.isArray(m)?(Ct(9),mn(5,1),pl(m[0]),ky(m[1])):(Ct(9),mn(5,0))}return}let n=BD(t),{memberNames:s,memberSchemas:o,encodedKeys:a}=n,c=s.length,l;c<24?l=1:c<256?l=2:l=3,Ct(l);let u=Be;Be+=l;let d=0;for(let p=0;p>8,qe[u+2]=d&255)}function $Pe(t,e,r,n){let s=!!t.getMergedTraits().sparse,o=t.getValueSchema();if(r||s){let a=[];for(let c=0;c=-9007199254740992&&t<=9007199254740991?ND(t):L6(t);return}if(typeof t=="boolean"){Ct(1),qe[Be++]=224|(t?21:20);return}if(typeof t=="bigint"){xD(t);return}if(t instanceof Uint8Array){ID(t);return}if(t instanceof Date){T6(t);return}if(t instanceof Je){JPe(t);return}if(t[x6]){let e=t;YPe(e.tag,e.value);return}if(Array.isArray(t)){Ct(9),mn(4,t.length);for(let e=0;eqe.length){let e=qe.length*2;for(;e>8,qe[Be++]=e&255;else if(e<4294967296)qe[Be++]=t<<5|26,Sf.setUint32(Be,e),Be+=4;else{qe[Be++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Sf.setUint32(Be,r),Sf.setUint32(Be+4,n),Be+=8}}function WPe(t,e){let r=Number(e);if(r<4294967296){mn(t,r);return}qe[Be++]=t<<5|27,Sf.setBigUint64(Be,e),Be+=8}function pl(t){let e=t.length;if(e<=23){let r=Py.get(t);if(r){Ct(r.bytes.length),qe.set(r.bytes,Be),Be+=r.bytes.length,r.epoch=B6;return}let n=Be;zPe(t,e);let s=Be,o=Uint8Array.prototype.slice.call(qe,n,s);if(Py.size>=GPe){if(HPe)return;let a=0;for(let[c,l]of Py){if(a>=1024)break;l.epoch!==B6&&(Py.delete(c),++a)}if(a===0){HPe=!0;return}}Py.size=0,r=e?0:1,n=e?t:-t-1;mn(r,n)}function xD(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n=0;--l)a[l]=Number(c&BigInt(255)),c>>=BigInt(8);Ct(o+16),qe[Be++]=e?194:195,mn(2,o),qe.set(a,Be),Be+=o}}function ID(t){Ct(t.length+9),mn(2,t.length),qe.set(t,Be),Be+=t.length}function YPe(t,e){Ct(9),typeof t=="bigint"?WPe(6,t):mn(6,t),ky(e)}function JPe(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let s=e.indexOf("."),o=s===-1?0:e.length-s-1,a=r-BigInt(o),c=BigInt(e.replace(".",""));Ct(9),qe[Be++]=196,mn(4,2),Ct(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?ND(Number(a)):xD(a),xD(c)}function T6(t){Ct(18),mn(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?ND(e):L6(e)}var SD,qPe,RD,vRt,N6,qe,Sf,Be,GPe,Py,B6,HPe,O6=g(()=>{xe();be();Ye();Se();UPe();SD=class extends ln{static{i(this,"CborShapeSerializer2")}write(e,r){Be=0;let n=L.of(e);Dy(n,r,void 0,this.serdeContext)}flush(){let e=qe.subarray(0,Be);return Be=0,qe=VPe(N6),Sf=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),e}},qPe=Symbol.for("@smithy/cbor-struct-cache");i(BD,"loadCborStructIterator");i(TRt,"encodeCborStringKey");RD=typeof Buffer<"u",vRt=new TextEncoder,N6=2048,qe=RD?Buffer.allocUnsafe(N6):new Uint8Array(N6),Sf=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),Be=0,GPe=2048,Py=new Map,B6=0,HPe=!1;i(VPe,"allocUnsafe");i(Dy,"writeValue");i(PRt,"writeStruct");i($Pe,"writeList");i(R6,"writeMap");i(ky,"writeUntypedValue");i(Ct,"ensure");i(mn,"encodeHeader");i(WPe,"encodeBigHeader");i(pl,"writeString");i(zPe,"writeStringUncached");i(L6,"writeFloat64");i(ND,"writeInteger");i(xD,"writeBigInt");i(ID,"writeBytes");i(YPe,"writeTag");i(JPe,"writeNumericValue");i(T6,"writeTimestamp")});function Fo(t){if(re>=fn)throw new Error("unexpected end of CBOR payload.");let e=(Ar[re]&224)>>5;if((Ar[re]&31)===31&&e>=2&&e<=5)return LRt(t,e);switch(e){case 0:return qRt();case 1:return GRt();case 2:return QD();case 3:return Ly();case 4:return _Rt(t);case 5:return QRt(t);case 6:return kRt(t);case 7:return $Rt();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function _Rt(t){let e=_D(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s=0){A=E+1,A>=l&&(A=0);let y=Fo(o[E]);y!=null&&(u[c[E]]=y)}else{let y=Ly(),I=Fo(L.of(15));y==="__type"&&typeof I=="string"?f=!0:(d=y,p=I,++m)}}if(n){let h=!0;for(let E in u)if(X(u,E)){h=!1;break}h&&m===1&&(u.$unknown=[d,p])}else if(f){re=r;let h=L.of(15);for(let E=0;E=0){f=A+1,f>=c&&(f=0);let h=Fo(s[A]);h!=null&&(u[a[A]]=h)}else{let h=Ly(),E=Fo(L.of(15));h!=="__type"&&(d=h,p=E,++m)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;re>>0&q6-1,s=jPe[n];if(s!==void 0&&s.length===e){let a=!0;for(let c=0;c>7,n=(t&124)>>2,s=(t&3)<<8|e,o=r===0?1:-1;return n===0?s===0?0:o*(Math.pow(2,-14)*(s/1024)):n===31?s===0?o*(1/0):NaN:o*(Math.pow(2,n-15)*(1+s/1024))}function e_e(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function gu(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function TD(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return _d(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return _d(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Je||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),s=[];for(let o of e)s.push(TD(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=TD(n,e[s]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),s;if(n){s=new Set;for(let o in e)X(e,o)&&o!=="__type"&&s.add(o)}for(let[o,a]of t.structIterator())n&&s.delete(o),e[o]!=null&&(r[o]=TD(a,e[o]));if(n&&s?.size===1){let o=!0;for(let a in r)if(X(r,a)){o=!1;break}if(o){let a=s.values().next().value;r.$unknown=[a,e[a]]}}else if(typeof e.__type=="string")for(let o in e)X(e,o)&&(o in r||(r[o]=e[o]))}return r}var vD,XPe,F6,Ar,U6,sp,re,fn,q6,jPe,M6,qS,t_e=g(()=>{xe();be();Ye();Se();O6();vD=class extends ln{static{i(this,"CborShapeDeserializer2")}read(e,r){return Ar=r,U6=XPe&&r instanceof Buffer,sp=new DataView(r.buffer,r.byteOffset,r.byteLength),re=0,fn=r.length,qS=qS+1&65535,Fo(L.of(e))}readValue(e,r){return TD(L.of(e),r)}},XPe=typeof Buffer<"u",F6=new TextDecoder,Ar=new Uint8Array(0),U6=!1,sp=new DataView(new ArrayBuffer(0)),re=0,fn=0,q6=2048,jPe=new Array(q6),M6=new Uint16Array(q6),qS=0;i(Fo,"readValue");i(_Rt,"readList");i(QRt,"readMap");i(DRt,"readStruct");i(kRt,"readTag");i(LRt,"readIndefinite");i(ORt,"readUtf8StringIndefinite");i(MRt,"readByteStringIndefinite");i(FRt,"readListIndefinite");i(URt,"readMapIndefinite");i(ZPe,"matchStructKey");i(KPe,"bytesMatch");i(PD,"decodeArgument");i(_D,"decodeCount");i(qRt,"readUnsignedInt");i(GRt,"readNegativeInt");i(QD,"readByteString");i(Ly,"readUtf8String");i(HRt,"decodeUtf8Cached");i($Rt,"readSpecial");i(zRt,"bytesToFloat16");i(e_e,"castBigInt");i(gu,"overflow");i(TD,"transformObject")});var DD,r_e=g(()=>{be();O6();t_e();DD=class extends ln{static{i(this,"CborCodec")}createSerializer(){let e=new SD;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new vD;return e.setSerdeContext(this.serdeContext),e}}});var GS,n_e=g(()=>{be();Ye();xe();r_e();b6();GS=class extends wi{static{i(this,"SmithyRpcV2CborProtocol")}codec=new DD;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),qs(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):(s.body||(this.serializer.write(15,{}),s.body=this.serializer.flush()),s.body instanceof Uint8Array&&(s.headers["content-length"]=String(s.body.byteLength)));let{service:o,operation:a}=xt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=MS(n,s)??"Unknown",c=["*"],{defaultNamespace:l}=this.options;c.unshift(l);let[u,d]=a.includes("#")?a.split("#"):[void 0,a];u&&c.unshift(u);let p={$metadata:o,$fault:n.statusCode<500?"client":"server"},m=[this.compositeErrorRegistry];u&&m.push(gt.for(u)),m.push(gt.for(l));let[f,A,h]=this.resolveError(d,c,m);if(h==="native"||h==="synthetic"){s.Message&&(s.message=s.Message);let b=h==="synthetic"?new A({name:d}):new Error(d);throw Object.assign(b,p,s)}let E=L.of(f),y=s.message??s.Message??"Unknown",I=new A({}),x={};for(let[b,N]of E.structIterator())x[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(I,p,{$fault:E.getMergedTraits().error,message:y},x)}getDefaultContentType(){return"application/cbor"}}});var s_e=g(()=>{b6();n_e()});var Ni,Oy=g(()=>{we();Ye();Ni=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),s=Object.values(n).find(o=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(a=>{let{httpQuery:c,httpQueryParams:l,httpHeader:u,httpLabel:d,httpPrefixHeaders:p}=a.getMergedTraits();return!c&&!l&&!u&&!d&&p===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,o,a){let c=e;e.includes("#")&&([,c]=e.split("#"));let l={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch{s.message=s.message??s.Message??"UnknownError";let d=this.errorRegistry,p=d.getBaseException();if(p){let A=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new A({name:c}),l),s)}let m=s,f=m?.message??m?.Message??m?.Error?.Message??m?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(f),{name:c},l),s)}}compose(e,r,n){let s=n;r.includes("#")&&([s]=r.split("#"));let o=gt.for(s),a=gt.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,s=of(e,r);n&&(s.message=n);let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let a=s.$metadata.requestId;return a&&(s.RequestId=a),s}return of(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),a=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let l=0;lL.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var kD,o_e=g(()=>{s_e();Ye();Oy();kD=class extends GS{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Ni(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let A=n.headers["x-amzn-query-error"];return A&&this.awsQueryCompatible?A.split(";")[0]:MS(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=L.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({}),f={};for(let[A,h]of u.structIterator())s[A]!=null&&(f[A]=this.deserializer.readValue(h,s[A]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,f),this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}}});var op,LD=g(()=>{be();Ye();Oy();op=class extends wi{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=o??new Si({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Ni(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(qs(e.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(e,r,n,s,o){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,n);let c=Ay(n,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,a?this.mixin.findQueryCompatibleError:void 0),d=L.of(l),p=s.message??s.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(l)??Error,f=new m({}),A={},h=this.codec.createDeserializer();for(let[E,y]of d.structIterator())s[E]!=null&&(A[E]=h.readObject(y,s[E]));throw a&&this.mixin.queryCompatOutput(s,A),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:p},A),s)}}});var OD,i_e=g(()=>{LD();OD=class extends op{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var MD,a_e=g(()=>{LD();MD=class extends op{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var ml,c_e=g(()=>{be();Ye();Oy();ml=class extends Fd{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Ni;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let s={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Si(s),this.serializer=new Hd(this.codec.createSerializer(),s),this.deserializer=new Gd(this.codec.createDeserializer(),s)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=L.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return s.body==null&&s.headers["content-type"]===this.getDefaultContentType()&&(s.body="{}"),s}async deserializeResponse(e,r,n){let s=await super.deserializeResponse(e,r,n),o=L.of(e.output);for(let[a,c]of o.structIterator())c.getMemberTraits().httpPayload&&!(a in s)&&(s[a]=null);return s}async handleError(e,r,n,s,o){let a=fy(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=L.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},A=this.codec.createDeserializer();for(let[h,E]of u.structIterator()){let y=E.getMergedTraits().jsonName??h;f[h]=A.readObject(E,s[y])}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/json"}}});var qD=w(UD=>{var VRt=/[&<>"]/g,WRt={"&":"&","<":"<",">":">",'"':"""};function YRt(t){return t.replace(VRt,e=>WRt[e])}i(YRt,"escapeAttribute");var JRt=/[&"'<>\r\n\u0085\u2028]/g,jRt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function KRt(t){return t.replace(JRt,e=>jRt[e])}i(KRt,"escapeElement");var FD=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return KRt(""+this.value)}},H6=class t{static{i(this,"XmlNode")}name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new FD(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),a=new t(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${YRt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};function G6(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(G6,"writeKey");function XRt(t){return new $6(t).parse()}i(XRt,"parseXML");var $6=class t{static{i(this,"AwsXmlParser")}x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,` + - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");function PNt(t){return new SNt({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(PNt,"createGetRequest");async function vNt(t,e){let n=await xNt(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new Bm("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:bNt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new Bm(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new Bm(`Server responded with status: ${t.statusCode}`,{logger:e})}i(vNt,"getCredentials");var _Nt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper"),QNt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",DNt="http://169.254.170.2",kNt="AWS_CONTAINER_CREDENTIALS_FULL_URI",LNt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",ONt="AWS_CONTAINER_AUTHORIZATION_TOKEN",MNt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[QNt],n=t.awsContainerCredentialsFullUri??process.env[kNt],s=t.awsContainerAuthorizationToken??process.env[ONt],o=t.awsContainerAuthorizationTokenFile??process.env[LNt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${DNt}${r}`;else if(n)e=n;else throw new Bm(`No HTTP credential provider host provided. +Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);TNt(c,t.logger);let l=INt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=_Nt(async()=>{let p=PNt(c);o?p.headers.Authorization=Zve((await wNt.readFile(o)).toString()):s&&(p.headers.Authorization=Zve(s));try{let f=await l.handle(p,{requestTimeout:u});return vNt(f.response).then(m=>CNt(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new Bm(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),Zve=i(t=>{if(t.includes(`\r +`))throw new Bm("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");e_e.fromHttp=MNt});function FNt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function UNt(t){return{schemeId:"smithy.api#noAuth"}}var t_e,r_e,n_e,P6=g(()=>{Yn();Ce();t_e=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(FNt,"createAwsAuthSigv4HttpAuthOption");i(UNt,"createSmithyApiNoAuthHttpAuthOption");r_e=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(UNt(t)):e.push(FNt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),n_e=i(t=>{let e=pl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var s_e,o_e,v6=g(()=>{s_e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),o_e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var op,HS=g(()=>{op={name:"@aws-sdk/nested-clients",version:"3.997.49",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-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",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.4","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.36.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var _6,i_e=g(()=>{_6=Symbol("@smithy/core/cbor::tagSymbol")});var zS,Q6=g(()=>{zS=i((t,e)=>{let r=i(n=>{let s=n;return typeof s=="number"&&(s=s.toString()),s.indexOf(",")>=0&&(s=s.split(",")[0]),s.indexOf(":")>=0&&(s=s.split(":")[0]),s},"sanitizeErrorCode");if(e.__type!==void 0)return r(e.__type)},"loadSmithyRpcV2CborErrorCode")});function QD(t){let e=t.getSchema(),r=e[a_e];if(r)return r;let n=[],s=[];for(let[c,l]of t.structIterator())n.push(c),s.push(l);let o=new Array(n.length);for(let c=0;c>8,s[2]=r&255),s.set(e,n),s}function p_e(t){return DD?Buffer.allocUnsafe(t):new Uint8Array(t)}function Fy(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){fl(Lo());return}Et(1),Ue[xe++]=246;return}if(t.isUnitSchema()){Et(1),fn(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){ND(e);return}if(t.isTimestampSchema()&&e instanceof Date){O6(e);return}if(t.isStructSchema()){HNt(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){u_e(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){k6(t,e,!1,n);return}if(e instanceof Date){O6(e);return}if(e instanceof Uint8Array){ND(e);return}if(e instanceof Ye){A_e(e);return}if(e[_6]){let o=e;m_e(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?u_e(t,e,!0,n):k6(t,e,!0,n);return}if(t.isBigDecimalSchema()){Uy(e);return}k6(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??mr)(e);ND(o);return}fl(e);return}if(typeof e=="number"){Et(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?kD(e):H6(e);return}if(typeof e=="boolean"){Et(1),Ue[xe++]=224|(e?21:20);return}if(typeof e=="bigint"){vD(e);return}fl(String(e))}function HNt(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[f,m]of t.structIterator()){let A=e[f];if(A!=null){Et(9),fn(5,1),fl(f),Fy(m,A,t,r),p=!0;break}}if(!p){let{$unknown:f}=e;Array.isArray(f)?(Et(9),fn(5,1),fl(f[0]),Uy(f[1])):(Et(9),fn(5,0))}return}let n=QD(t),{memberNames:s,memberSchemas:o,encodedKeys:a}=n,c=s.length,l;c<24?l=1:c<256?l=2:l=3,Et(l);let u=xe;xe+=l;let d=0;for(let p=0;p>8,Ue[u+2]=d&255)}function u_e(t,e,r,n){let s=!!t.getMergedTraits().sparse,o=t.getValueSchema();if(r||s){let a=[];for(let c=0;c=-9007199254740992&&t<=9007199254740991?kD(t):H6(t);return}if(typeof t=="boolean"){Et(1),Ue[xe++]=224|(t?21:20);return}if(typeof t=="bigint"){vD(t);return}if(t instanceof Uint8Array){ND(t);return}if(t instanceof Date){O6(t);return}if(t instanceof Ye){A_e(t);return}if(t[_6]){let e=t;m_e(e.tag,e.value);return}if(Array.isArray(t)){Et(9),fn(4,t.length);for(let e=0;eUe.length){let e=Ue.length*2;for(;e>8,Ue[xe++]=e&255;else if(e<4294967296)Ue[xe++]=t<<5|26,Nm.setUint32(xe,e),xe+=4;else{Ue[xe++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Nm.setUint32(xe,r),Nm.setUint32(xe+4,n),xe+=8}}function f_e(t,e){let r=Number(e);if(r<4294967296){fn(t,r);return}Ue[xe++]=t<<5|27,Nm.setBigUint64(xe,e),xe+=8}function fl(t){let e=t.length;if(e<=23){let r=Ly.get(t);if(r){Et(r.bytes.length),Ue.set(r.bytes,xe),xe+=r.bytes.length,r.epoch=D6;return}let n=xe;d_e(t,e);let s=xe,o=Uint8Array.prototype.slice.call(Ue,n,s);if(Ly.size>=c_e){if(l_e)return;let a=0;for(let[c,l]of Ly){if(a>=1024)break;l.epoch!==D6&&(Ly.delete(c),++a)}if(a===0){l_e=!0;return}}Ly.size=0,r=e?0:1,n=e?t:-t-1;fn(r,n)}function vD(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n=0;--l)a[l]=Number(c&BigInt(255)),c>>=BigInt(8);Et(o+16),Ue[xe++]=e?194:195,fn(2,o),Ue.set(a,xe),xe+=o}}function ND(t){Et(t.length+9),fn(2,t.length),Ue.set(t,xe),xe+=t.length}function m_e(t,e){Et(9),typeof t=="bigint"?f_e(6,t):fn(6,t),Uy(e)}function A_e(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let s=e.indexOf("."),o=s===-1?0:e.length-s-1,a=r-BigInt(o),c=BigInt(e.replace(".",""));Et(9),Ue[xe++]=196,fn(4,2),Et(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?kD(Number(a)):vD(a),vD(c)}function O6(t){Et(18),fn(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?kD(e):H6(e)}var PD,a_e,DD,$Nt,L6,Ue,Nm,xe,c_e,Ly,D6,l_e,z6=g(()=>{we();Se();We();Ie();i_e();PD=class extends ln{static{i(this,"CborShapeSerializer2")}write(e,r){xe=0;let n=L.of(e);Fy(n,r,void 0,this.serdeContext)}flush(){let e=Ue.subarray(0,xe);return xe=0,Ue=p_e(L6),Nm=new DataView(Ue.buffer,Ue.byteOffset,Ue.byteLength),e}},a_e=Symbol.for("@smithy/cbor-struct-cache");i(QD,"loadCborStructIterator");i(GNt,"encodeCborStringKey");DD=typeof Buffer<"u",$Nt=new TextEncoder,L6=2048,Ue=DD?Buffer.allocUnsafe(L6):new Uint8Array(L6),Nm=new DataView(Ue.buffer,Ue.byteOffset,Ue.byteLength),xe=0,c_e=2048,Ly=new Map,D6=0,l_e=!1;i(p_e,"allocUnsafe");i(Fy,"writeValue");i(HNt,"writeStruct");i(u_e,"writeList");i(k6,"writeMap");i(Uy,"writeUntypedValue");i(Et,"ensure");i(fn,"encodeHeader");i(f_e,"encodeBigHeader");i(fl,"writeString");i(d_e,"writeStringUncached");i(H6,"writeFloat64");i(kD,"writeInteger");i(vD,"writeBigInt");i(ND,"writeBytes");i(m_e,"writeTag");i(A_e,"writeNumericValue");i(O6,"writeTimestamp")});function Fo(t){if(te>=mn)throw new Error("unexpected end of CBOR payload.");let e=(Ar[te]&224)>>5;if((Ar[te]&31)===31&&e>=2&&e<=5)return JNt(t,e);switch(e){case 0:return eTt();case 1:return tTt();case 2:return UD();case 3:return qy();case 4:return zNt(t);case 5:return VNt(t);case 6:return YNt(t);case 7:return nTt();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function zNt(t){let e=FD(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s=0){A=E+1,A>=l&&(A=0);let y=Fo(o[E]);y!=null&&(u[c[E]]=y)}else{let y=qy(),I=Fo(L.of(15));y==="__type"&&typeof I=="string"?m=!0:(d=y,p=I,++f)}}if(n){let h=!0;for(let E in u)if(X(u,E)){h=!1;break}h&&f===1&&(u.$unknown=[d,p])}else if(m){te=r;let h=L.of(15);for(let E=0;E=0){m=A+1,m>=c&&(m=0);let h=Fo(s[A]);h!=null&&(u[a[A]]=h)}else{let h=qy(),E=Fo(L.of(15));h!=="__type"&&(d=h,p=E,++f)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;te>>0&J6-1,s=h_e[n];if(s!==void 0&&s.length===e){let a=!0;for(let c=0;c>7,n=(t&124)>>2,s=(t&3)<<8|e,o=r===0?1:-1;return n===0?s===0?0:o*(Math.pow(2,-14)*(s/1024)):n===31?s===0?o*(1/0):NaN:o*(Math.pow(2,n-15)*(1+s/1024))}function C_e(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function yu(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function LD(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return Dd(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return Dd(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Ye||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),s=[];for(let o of e)s.push(LD(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=LD(n,e[s]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),s;if(n){s=new Set;for(let o in e)X(e,o)&&o!=="__type"&&s.add(o)}for(let[o,a]of t.structIterator())n&&s.delete(o),e[o]!=null&&(r[o]=LD(a,e[o]));if(n&&s?.size===1){let o=!0;for(let a in r)if(X(r,a)){o=!1;break}if(o){let a=s.values().next().value;r.$unknown=[a,e[a]]}}else if(typeof e.__type=="string")for(let o in e)X(e,o)&&(o in r||(r[o]=e[o]))}return r}var OD,y_e,W6,Ar,Y6,ip,te,mn,J6,h_e,V6,YS,I_e=g(()=>{we();Se();We();Ie();z6();OD=class extends ln{static{i(this,"CborShapeDeserializer2")}read(e,r){return Ar=r,Y6=y_e&&r instanceof Buffer,ip=new DataView(r.buffer,r.byteOffset,r.byteLength),te=0,mn=r.length,YS=YS+1&65535,Fo(L.of(e))}readValue(e,r){return LD(L.of(e),r)}},y_e=typeof Buffer<"u",W6=new TextDecoder,Ar=new Uint8Array(0),Y6=!1,ip=new DataView(new ArrayBuffer(0)),te=0,mn=0,J6=2048,h_e=new Array(J6),V6=new Uint16Array(J6),YS=0;i(Fo,"readValue");i(zNt,"readList");i(VNt,"readMap");i(WNt,"readStruct");i(YNt,"readTag");i(JNt,"readIndefinite");i(jNt,"readUtf8StringIndefinite");i(KNt,"readByteStringIndefinite");i(XNt,"readListIndefinite");i(ZNt,"readMapIndefinite");i(E_e,"matchStructKey");i(g_e,"bytesMatch");i(MD,"decodeArgument");i(FD,"decodeCount");i(eTt,"readUnsignedInt");i(tTt,"readNegativeInt");i(UD,"readByteString");i(qy,"readUtf8String");i(rTt,"decodeUtf8Cached");i(nTt,"readSpecial");i(sTt,"bytesToFloat16");i(C_e,"castBigInt");i(yu,"overflow");i(LD,"transformObject")});var qD,w_e=g(()=>{Se();z6();I_e();qD=class extends ln{static{i(this,"CborCodec")}createSerializer(){let e=new PD;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new OD;return e.setSerdeContext(this.serdeContext),e}}});var JS,S_e=g(()=>{Se();We();we();w_e();Q6();JS=class extends xi{static{i(this,"SmithyRpcV2CborProtocol")}codec=new qD;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),Hs(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):(s.body||(this.serializer.write(15,{}),s.body=this.serializer.flush()),s.body instanceof Uint8Array&&(s.headers["content-length"]=String(s.body.byteLength)));let{service:o,operation:a}=xt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=zS(n,s)??"Unknown",c=["*"],{defaultNamespace:l}=this.options;c.unshift(l);let[u,d]=a.includes("#")?a.split("#"):[void 0,a];u&&c.unshift(u);let p={$metadata:o,$fault:n.statusCode<500?"client":"server"},f=[this.compositeErrorRegistry];u&&f.push(ht.for(u)),f.push(ht.for(l));let[m,A,h]=this.resolveError(d,c,f);if(h==="native"||h==="synthetic"){s.Message&&(s.message=s.Message);let b=h==="synthetic"?new A({name:d}):new Error(d);throw Object.assign(b,p,s)}let E=L.of(m),y=s.message??s.Message??"Unknown",I=new A({}),x={};for(let[b,N]of E.structIterator())x[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(I,p,{$fault:E.getMergedTraits().error,message:y},x)}getDefaultContentType(){return"application/cbor"}}});var x_e=g(()=>{Q6();S_e()});var Pi,Gy=g(()=>{Ce();We();Pi=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),s=Object.values(n).find(o=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(a=>{let{httpQuery:c,httpQueryParams:l,httpHeader:u,httpLabel:d,httpPrefixHeaders:p}=a.getMergedTraits();return!c&&!l&&!u&&!d&&p===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,o,a){let c=e;e.includes("#")&&([,c]=e.split("#"));let l={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch{s.message=s.message??s.Message??"UnknownError";let d=this.errorRegistry,p=d.getBaseException();if(p){let A=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new A({name:c}),l),s)}let f=s,m=f?.message??f?.Message??f?.Error?.Message??f?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(m),{name:c},l),s)}}compose(e,r,n){let s=n;r.includes("#")&&([s]=r.split("#"));let o=ht.for(s),a=ht.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,s=dm(e,r);n&&(s.message=n);let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let a=s.$metadata.requestId;return a&&(s.RequestId=a),s}return dm(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),a=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let l=0;lL.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var GD,b_e=g(()=>{x_e();We();Gy();GD=class extends JS{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Pi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let A=n.headers["x-amzn-query-error"];return A&&this.awsQueryCompatible?A.split(";")[0]:zS(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=L.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={};for(let[A,h]of u.structIterator())s[A]!=null&&(m[A]=this.deserializer.readValue(h,s[A]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}}});var ap,$D=g(()=>{Se();We();Gy();ap=class extends xi{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=o??new bi({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Pi(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(Hs(e.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(e,r,n,s,o){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,n);let c=Cy(n,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,a?this.mixin.findQueryCompatibleError:void 0),d=L.of(l),p=s.message??s.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(l)??Error,m=new f({}),A={},h=this.codec.createDeserializer();for(let[E,y]of d.structIterator())s[E]!=null&&(A[E]=h.readObject(y,s[E]));throw a&&this.mixin.queryCompatOutput(s,A),this.mixin.decorateServiceException(Object.assign(m,u,{$fault:d.getMergedTraits().error,message:p},A),s)}}});var HD,B_e=g(()=>{$D();HD=class extends ap{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var zD,R_e=g(()=>{$D();zD=class extends ap{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var ml,N_e=g(()=>{Se();We();Gy();ml=class extends qd{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Pi;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let s={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new bi(s),this.serializer=new zd(this.codec.createSerializer(),s),this.deserializer=new Hd(this.codec.createDeserializer(),s)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=L.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return s.body==null&&s.headers["content-type"]===this.getDefaultContentType()&&(s.body="{}"),s}async deserializeResponse(e,r,n){let s=await super.deserializeResponse(e,r,n),o=L.of(e.output);for(let[a,c]of o.structIterator())c.getMemberTraits().httpPayload&&!(a in s)&&(s[a]=null);return s}async handleError(e,r,n,s,o){let a=Ey(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=L.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({});await this.deserializeHttpMessage(c,r,n,s);let m={},A=this.codec.createDeserializer();for(let[h,E]of u.structIterator()){let y=E.getMergedTraits().jsonName??h;m[h]=A.readObject(E,s[y])}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/json"}}});var YD=w(WD=>{var oTt=/[&<>"]/g,iTt={"&":"&","<":"<",">":">",'"':"""};function aTt(t){return t.replace(oTt,e=>iTt[e])}i(aTt,"escapeAttribute");var cTt=/[&"'<>\r\n\u0085\u2028]/g,lTt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function uTt(t){return t.replace(cTt,e=>lTt[e])}i(uTt,"escapeElement");var VD=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return uTt(""+this.value)}},K6=class t{static{i(this,"XmlNode")}name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new VD(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),a=new t(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${aTt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};function j6(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(j6,"writeKey");function dTt(t){return new X6(t).parse()}i(dTt,"parseXML");var X6=class t{static{i(this,"AwsXmlParser")}x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,` `),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i=r));)if(e.isNext(""),e.trim();else if(e.isNext(""),e.trim();else if(e.isNext("/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,s={};for(;e.i/".includes(e.x[e.i]));){let d="";for(;e.i/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&G6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let o=[],a=[],c=!1;for(;e.i"):e.isNext(""))):e.isNext(""):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and .`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(` +>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&j6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let o=[],a=[],c=!1;for(;e.i"):e.isNext(""))):e.isNext(""):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and .`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(` `)?{tag:r,value:""}:{tag:r,value:d}}let u={};for(let d of o)d.trim()===""&&d.includes(` -`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&G6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&G6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};UD.XmlNode=H6;UD.XmlText=FD;UD.parseXML=XRt});var fl,HS=g(()=>{fl=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var GD,l_e=g(()=>{GD=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function u_e(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var d_e=g(()=>{i(u_e,"writeKey")});var p_e,ip,HD=g(()=>{p_e=R(qD());we();be();Ye();Se();HS();l_e();d_e();ip=class extends fl{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new qd(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=L.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Mt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=L.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let m of p)l.push(this.readSchema(c,m));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let m of u){let f=m[d],A=m[p];f==="__proto__"&&u_e(a),a[f]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new GD(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,p_e.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),cf(o)}return{}}}});var My,z6=g(()=>{be();Ye();Se();Se();HS();My=class extends fl{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=L.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??vt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Lo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Je?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),un(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(vo(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),m=this.getKey("key",p.xmlName,p.ec2QueryName),f=c?`${n}${l}.${m}`:`${n}entry.${l}.${m}`,A=a.getMergedTraits(),h=this.getKey("value",A.xmlName,A.ec2QueryName),E=c?`${n}${l}.${h}`:`${n}entry.${l}.${h}`;this.write(o,u,f),this.write(a,d,E),++l}}}else if(s.isStructSchema()){if(r&&typeof r=="object"){let o=!1;for(let[a,c]of s.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let l=c.getMergedTraits(),u=this.getKey(a,l.xmlName,l.ec2QueryName,"struct"),d=`${n}${u}`;this.write(c,r[a],d),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a,u=`${n}${c}`;this.write(15,l,u)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,s){let{ec2:o,capitalizeKeys:a}=this.settings;if(o&&n)return n;let c=r??e;return a&&s==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${ua(e)}=`}writeValue(e){this.buffer+=ua(e)}}});var ap,V6=g(()=>{be();Ye();Oy();HD();z6();ap=class extends wi{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Ni;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new My(r),this.deserializer=new ip(r)}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,r,n){let s=await super.serializeRequest(e,r,n);s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]="application/x-www-form-urlencoded",(qs(e.input)==="unit"||!s.body)&&(s.body="");let o=e.name.split("#")[1]??e.name;return s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let d=await jr(n.body,r);d.byteLength>0&&Object.assign(a,await s.read(15,d)),await this.handleError(e,r,n,a,this.deserializeMetadata(n))}for(let d in n.headers){let p=n.headers[d];delete n.headers[d],n.headers[d.toLowerCase()]=p}let c=e.name.split("#")[1]??e.name,l=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,u=await jr(n.body,r);return u.byteLength>0&&Object.assign(a,await s.read(o,u,l)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,r,n,s,o){let a=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);c.message=l,c.Error={Type:c.Type,Code:c.Code,Message:l};let{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),p=L.of(u),m=this.compositeErrorRegistry.getErrorCtor(u)??Error,f=new m({}),A={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[h,E]of p.structIterator()){let y=E.getMergedTraits().xmlName??h,I=c[y]??s[y];A[h]=this.deserializer.readSchema(E,I)}throw this.mixin.decorateServiceException(Object.assign(f,d,{$fault:p.getMergedTraits().error,message:l},A),s)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var $D,m_e=g(()=>{V6();$D=class extends ap{static{i(this,"AwsEc2QueryProtocol")}options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var f_e,A_e=g(()=>{be();Se();f_e=i((t,e)=>jr(t,e).then(r=>(e?.utf8Encoder??Mt)(r)),"collectBodyString")});var h_e,W6,g_e,zD,Y6=g(()=>{h_e=R(qD());we();A_e();W6=i((t,e)=>f_e(t,e).then(r=>{if(r.length){let n;try{n=(0,h_e.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let s="#text",o=Object.keys(n)[0],a=n[o];return a[s]&&(a[o]=a[s],delete a[s]),cf(a)}return{}}),"parseXmlBody"),g_e=i(async(t,e)=>{let r=await W6(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),zD=i((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Es,Fy,J6=g(()=>{Es=R(qD());be();Ye();Se();Se();HS();Fy=class extends fl{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=L.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??fr)(r);else{this.buffer=this.writeStruct(n,r,void 0);let s=n.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Es.XmlNode.of(o),[c,l]=this.getXmlnsAttribute(e,n);for(let[d,p]of e.structIterator()){let m=r[d];if(m!=null||p.isIdempotencyToken()){if(p.getMergedTraits().xmlAttribute){a.addAttribute(p.getMergedTraits().xmlName??d,this.writeSimple(p,m));continue}if(p.isListSchema())this.writeList(p,m,a,l);else if(p.isMapSchema())this.writeMap(p,m,a,l);else if(p.isStructSchema())a.addChildNode(this.writeStruct(p,m,l));else{let f=Es.XmlNode.of(p.getMergedTraits().xmlName??p.getMemberName());this.writeSimpleInto(p,m,f,l),a.addChildNode(f)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[d,p]=u,m=Es.XmlNode.of(d);if(typeof p!="string")if(r instanceof Es.XmlNode||r instanceof Es.XmlText)a.addChildNode(r);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,p,m,l),a.addChildNode(m)}return l&&a.addAttribute(c,l),a}writeList(e,r,n,s){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getValueSchema(),c=a.getMergedTraits(),l=!!c.sparse,u=!!o.xmlFlattened,[d,p]=this.getXmlnsAttribute(e,s),m=i((f,A)=>{if(a.isListSchema())this.writeList(a,Array.isArray(A)?A:[A],f,p);else if(a.isMapSchema())this.writeMap(a,A,f,p);else if(a.isStructSchema()){let h=this.writeStruct(a,A,p);f.addChildNode(h.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let h=Es.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,A,h,p),f.addChildNode(h)}},"writeItem");if(u)for(let f of r)(l||f!=null)&&m(n,f);else{let f=Es.XmlNode.of(o.xmlName??e.getMemberName());p&&f.addAttribute(d,p);for(let A of r)(l||A!=null)&&m(f,A);n.addChildNode(f)}}writeMap(e,r,n,s,o=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),c=e.getKeySchema(),u=c.getMergedTraits().xmlName??"key",d=e.getValueSchema(),p=d.getMergedTraits(),m=p.xmlName??"value",f=!!p.sparse,A=!!a.xmlFlattened,[h,E]=this.getXmlnsAttribute(e,s),y=i((I,x,b)=>{let N=Es.XmlNode.of(u,x),[P,_]=this.getXmlnsAttribute(c,E);_&&N.addAttribute(P,_),I.addChildNode(N);let G=Es.XmlNode.of(m);d.isListSchema()?this.writeList(d,b,G,E):d.isMapSchema()?this.writeMap(d,b,G,E,!0):d.isStructSchema()?G=this.writeStruct(d,b,E):this.writeSimpleInto(d,b,G,E),I.addChildNode(G)},"addKeyValue");if(A)for(let I in r){let x=r[I];if(f||x!=null){let b=Es.XmlNode.of(a.xmlName??e.getMemberName());y(b,I,x),n.addChildNode(b)}}else{let I;o||(I=Es.XmlNode.of(a.xmlName??e.getMemberName()),E&&I.addAttribute(h,E),n.addChildNode(I));for(let x in r){let b=r[x];if(f||b!=null){let N=Es.XmlNode.of("entry");y(N,x,b),(o?n:I).addChildNode(N)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=L.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??vt)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(un(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=vo(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=vo(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Je?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(s=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?s=Lo():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return s}writeSimpleInto(e,r,n,s){let o=this.writeSimple(e,r),a=L.of(e),c=new Es.XmlText(o),[l,u]=this.getXmlnsAttribute(a,s);u&&n.addAttribute(l,u),n.addChildNode(c)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}}});var Uy,j6=g(()=>{HS();HD();J6();Uy=class extends fl{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Fy(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ip(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var VD,y_e=g(()=>{be();Ye();Oy();Y6();j6();VD=class extends Fd{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Ni;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Uy(r),this.serializer=new Hd(this.codec.createSerializer(),r),this.deserializer=new Gd(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=L.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=zD(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let h of Object.keys(s.Error))s[h]=s.Error[h],h.toLowerCase()==="message"&&(s.message=s.Error[h]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=L.of(c),d=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,m=new p({});await this.deserializeHttpMessage(c,r,n,s);let f={},A=this.codec.createDeserializer();for(let[h,E]of u.structIterator()){let y=E.getMergedTraits().xmlName??h,I=s.Error?.[y]??s[y];f[h]=A.readSchema(E,I)}throw this.mixin.decorateServiceException(Object.assign(m,l,{$fault:u.getMergedTraits().error,message:d},f),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var E_e,C_e=g(()=>{Se();E_e=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,t_(t)},"awsExpectUnion")});var I_e,w_e,S_e,x_e=g(()=>{I_e=i(t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},"_toStr"),w_e=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},"_toBool"),S_e=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t},"_toNum")});var K6={};Fr(K6,{AwsEc2QueryProtocol:()=>$D,AwsJson1_0Protocol:()=>OD,AwsJson1_1Protocol:()=>MD,AwsJsonRpcProtocol:()=>op,AwsQueryProtocol:()=>ap,AwsRestJsonProtocol:()=>ml,AwsRestXmlProtocol:()=>VD,AwsSmithyRpcV2CborProtocol:()=>kD,JsonCodec:()=>gy,JsonCodec2:()=>Si,JsonShapeDeserializer:()=>Wd,JsonShapeDeserializer2:()=>zd,JsonShapeSerializer:()=>Yd,JsonShapeSerializer2:()=>Vd,QueryShapeSerializer:()=>My,XmlCodec:()=>Uy,XmlShapeDeserializer:()=>ip,XmlShapeSerializer:()=>Fy,_toBool:()=>w_e,_toNum:()=>S_e,_toStr:()=>I_e,awsExpectUnion:()=>E_e,loadJsonRpcErrorCode:()=>Ay,loadRestJsonErrorCode:()=>fy,loadRestXmlErrorCode:()=>zD,parseJsonBody:()=>mu,parseJsonErrorBody:()=>hQ,parseXmlBody:()=>W6,parseXmlErrorBody:()=>g_e});var xf=g(()=>{o_e();i_e();a_e();LD();c_e();be();m_e();V6();z6();y_e();j6();HD();J6();Y6();C_e();x_e()});var $S,bf,WD,b_e,T_e,YD,X6,B_e,Z6,qy,R_e,N_e,ZRt,zs,eNt,v_e,P_e=g(()=>{Pt();$S="ref",bf=-1,WD=!0,b_e="isSet",T_e="PartitionResult",YD="booleanEquals",X6="getAttr",B_e={[$S]:"Endpoint"},Z6={[$S]:T_e},qy={},R_e=[{[$S]:"Region"}],N_e={conditions:[[b_e,[B_e]],[b_e,R_e],["aws.partition",R_e,T_e],[YD,[{[$S]:"UseFIPS"},WD]],[YD,[{[$S]:"UseDualStack"},WD]],[YD,[{fn:X6,argv:[Z6,"supportsDualStack"]},WD]],[YD,[{fn:X6,argv:[Z6,"supportsFIPS"]},WD]],["stringEquals",[{fn:X6,argv:[Z6,"name"]},"aws-us-gov"]]],results:[[bf],[bf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[bf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[B_e,qy],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",qy],[bf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",qy],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",qy],[bf,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",qy],[bf,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",qy],[bf,"Invalid Configuration: Missing Region"]]},ZRt=2,zs=1e8,eNt=new Int32Array([-1,1,-1,0,13,3,1,4,zs+12,2,5,zs+12,3,8,6,4,7,zs+11,5,zs+9,zs+10,4,11,9,6,10,zs+8,7,zs+6,zs+7,5,12,zs+5,6,zs+4,zs+5,3,zs+1,14,4,zs+2,zs+3]),v_e=Ci.from(eNt,ZRt,N_e.conditions,N_e.results)});var tNt,__e,Q_e=g(()=>{Et();Pt();P_e();tNt=new Ii({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),__e=i((t,e={})=>tNt.get(t,()=>Wc(v_e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Hs.aws=ga});var An,JD=g(()=>{we();An=class t extends yi{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var zS,VS,WS,YS,JS,jS,KS,XS,ZS,ex,tx,e9=g(()=>{JD();zS=class t extends An{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},VS=class t extends An{static{i(this,"AuthorizationPendingException")}static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},WS=class t extends An{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},YS=class t extends An{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},JS=class t extends An{static{i(this,"InvalidClientException")}static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},jS=class t extends An{static{i(this,"InvalidGrantException")}static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},KS=class t extends An{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},XS=class t extends An{static{i(this,"InvalidScopeException")}static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ZS=class t extends An{static{i(this,"SlowDownException")}static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ex=class t extends An{static{i(this,"UnauthorizedClientException")}static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},tx=class t extends An{static{i(this,"UnsupportedGrantTypeException")}static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var rNt,nNt,sNt,oNt,iNt,aNt,cNt,lNt,uNt,dNt,pNt,mNt,fNt,ANt,hNt,gNt,yNt,ENt,CNt,INt,Al,wNt,SNt,xNt,bNt,BNt,hr,RNt,Ia,NNt,TNt,wa,vNt,D_e,k_e,PNt,L_e,_Nt,QNt,DNt,Mr,O_e,M_e,Ti,F_e,U_e,q_e,G_e,H_e,$_e,z_e,V_e,W_e,Y_e,J_e,t9,kNt,LNt,ONt,MNt,j_e,K_e,X_e,r9,jD=g(()=>{Ye();e9();JD();rNt="AccessDeniedException",nNt="AuthorizationPendingException",sNt="AccessToken",oNt="ClientSecret",iNt="CreateToken",aNt="CreateTokenRequest",cNt="CreateTokenResponse",lNt="CodeVerifier",uNt="ExpiredTokenException",dNt="InvalidClientException",pNt="InvalidGrantException",mNt="InvalidRequestException",fNt="InternalServerException",ANt="InvalidScopeException",hNt="IdToken",gNt="RefreshToken",yNt="SlowDownException",ENt="UnauthorizedClientException",CNt="UnsupportedGrantTypeException",INt="accessToken",Al="client",wNt="clientId",SNt="clientSecret",xNt="codeVerifier",bNt="code",BNt="deviceCode",hr="error",RNt="expiresIn",Ia="error_description",NNt="grantType",TNt="http",wa="httpError",vNt="idToken",D_e="reason",k_e="refreshToken",PNt="redirectUri",L_e="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",_Nt="scope",QNt="server",DNt="tokenType",Mr="com.amazonaws.ssooidc",O_e=new gt(L_e),M_e=[-3,L_e,"SSOOIDCServiceException",0,[],[]];O_e.registerError(M_e,An);Ti=new gt(Mr),F_e=[-3,Mr,rNt,{[hr]:Al,[wa]:400},[hr,D_e,Ia],[0,0,0]];Ti.registerError(F_e,zS);U_e=[-3,Mr,nNt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(U_e,VS);q_e=[-3,Mr,uNt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(q_e,WS);G_e=[-3,Mr,fNt,{[hr]:QNt,[wa]:500},[hr,Ia],[0,0]];Ti.registerError(G_e,YS);H_e=[-3,Mr,dNt,{[hr]:Al,[wa]:401},[hr,Ia],[0,0]];Ti.registerError(H_e,JS);$_e=[-3,Mr,pNt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError($_e,jS);z_e=[-3,Mr,mNt,{[hr]:Al,[wa]:400},[hr,D_e,Ia],[0,0,0]];Ti.registerError(z_e,KS);V_e=[-3,Mr,ANt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(V_e,XS);W_e=[-3,Mr,yNt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(W_e,ZS);Y_e=[-3,Mr,ENt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(Y_e,ex);J_e=[-3,Mr,CNt,{[hr]:Al,[wa]:400},[hr,Ia],[0,0]];Ti.registerError(J_e,tx);t9=[O_e,Ti],kNt=[0,Mr,sNt,8,0],LNt=[0,Mr,oNt,8,0],ONt=[0,Mr,lNt,8,0],MNt=[0,Mr,hNt,8,0],j_e=[0,Mr,gNt,8,0],K_e=[3,Mr,aNt,0,[wNt,SNt,NNt,BNt,bNt,k_e,_Nt,PNt,xNt],[0,[()=>LNt,0],0,0,0,[()=>j_e,0],64,0,[()=>ONt,0]],3],X_e=[3,Mr,cNt,0,[INt,DNt,RNt,k_e,vNt],[[()=>kNt,0],0,1,[()=>j_e,0],[()=>MNt,0]]],r9=[9,Mr,iNt,{[TNt]:["POST","/token",200]},()=>K_e,()=>X_e]});var Z_e,eQe=g(()=>{Wn();xf();ys();pu();we();be();Se();w6();Q_e();jD();Z_e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??fr,base64Encoder:t?.base64Encoder??vt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??__e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??LPe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Vn}],logger:t?.logger??new Gs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:t9,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??da,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var KD,tQe,rQe=g(()=>{OS();Et();Wn();we();yt();Oo();Se();KD=R(hu());eQe();tQe=i(t=>{kc(process.version);let e=zc(t),r=i(()=>e().then(Dc),"defaultConfigProvider"),n=Z_e(t);Pc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ke(Ea,s),bodyLengthChecker:t?.bodyLengthChecker??Fc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ha({serviceId:n.serviceId,clientVersion:np.version}),maxAttempts:t?.maxAttempts??ke(el,t),region:t?.region??ke(Rn,{...gs,...s}),requestHandler:KD.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ke({...rl,default:i(async()=>(await r()).retryMode||xi,"default")},t),streamCollector:t?.streamCollector??KD.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ke(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??ke($c,s),userAgentAppId:t?.userAgentAppId??ke(cl,s)}},"getRuntimeConfig")});var nQe,sQe,oQe=g(()=>{nQe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),sQe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var iQe,aQe=g(()=>{Et();we();be();oQe();iQe=i((t,e)=>{let r=Object.assign(ll(t),aa(t),Yc(t),nQe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,ul(r),Lc(r),Jc(r),sQe(r))},"resolveRuntimeExtensions")});var rx,n9=g(()=>{Et();ys();we();yt();Pt();be();Oo();Ye();w6();S6();rQe();aQe();rx=class extends $n{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=tQe(e||{});super(r),this.initConfig=r;let n=MPe(r),s=il(n),o=tl(s),a=_o(o),c=a,l=cu(c),u=OPe(l),d=iQe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(_c(this.config)),this.middlewareStack.use(al(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(jc(this.config)),this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(fa(this.config,{httpAuthSchemeParametersProvider:kPe,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Aa(this.config))}destroy(){super.destroy()}}});var cQe,lQe,uQe,dQe=g(()=>{we();Pt();S6();cQe=Oc(FPe,"AWSSSOOIDCService","SSOOIDCClient",lu),lQe={},uQe=i((t,e,r,n)=>[],"_mw0")});var nx,s9=g(()=>{dQe();jD();nx=class extends cQe(lQe,uQe,"CreateToken",r9){static{i(this,"CreateTokenCommand")}}});var FNt,XD,pQe=g(()=>{we();s9();n9();FNt={CreateTokenCommand:nx},XD=class extends rx{static{i(this,"SSOOIDC")}};Qc(FNt,XD)});var mQe=g(()=>{s9()});var UNt,qNt,fQe=g(()=>{UNt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},qNt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var AQe=g(()=>{});var o9={};Fr(o9,{$Command:()=>As,AccessDeniedException:()=>zS,AccessDeniedException$:()=>F_e,AccessDeniedExceptionReason:()=>UNt,AuthorizationPendingException:()=>VS,AuthorizationPendingException$:()=>U_e,CreateToken$:()=>r9,CreateTokenCommand:()=>nx,CreateTokenRequest$:()=>K_e,CreateTokenResponse$:()=>X_e,ExpiredTokenException:()=>WS,ExpiredTokenException$:()=>q_e,InternalServerException:()=>YS,InternalServerException$:()=>G_e,InvalidClientException:()=>JS,InvalidClientException$:()=>H_e,InvalidGrantException:()=>jS,InvalidGrantException$:()=>$_e,InvalidRequestException:()=>KS,InvalidRequestException$:()=>z_e,InvalidRequestExceptionReason:()=>qNt,InvalidScopeException:()=>XS,InvalidScopeException$:()=>V_e,SSOOIDC:()=>XD,SSOOIDCClient:()=>rx,SSOOIDCServiceException:()=>An,SSOOIDCServiceException$:()=>M_e,SlowDownException:()=>ZS,SlowDownException$:()=>W_e,UnauthorizedClientException:()=>ex,UnauthorizedClientException$:()=>Y_e,UnsupportedGrantTypeException:()=>tx,UnsupportedGrantTypeException$:()=>J_e,__Client:()=>$n,errorTypeRegistries:()=>t9});var i9=g(()=>{n9();pQe();mQe();we();jD();fQe();e9();AQe();JD()});var EQe=w(sx=>{var{setTokenFeature:GNt}=(Et(),ee(ya)),{getBearerTokenEnvKey:HNt}=(Wn(),ee(AD)),{TokenProviderError:Sa,getSSOTokenFilepath:$Nt,parseKnownFiles:zNt,getProfileName:VNt,loadSsoSessionData:WNt,getSSOTokenFromFile:YNt,memoize:JNt,chain:jNt}=(yt(),ee(Qo)),{promises:KNt}=require("node:fs"),XNt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Sa("Please pass 'signingName' to compute environment variable key",{logger:t});let r=HNt(e);if(!(r in process.env))throw new Sa(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return GNt(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),ZNt=300*1e3,a9="To refresh this SSO session run 'aws sso login' with the corresponding profile.",eTt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(i9(),ee(o9)),s=i(a=>e.clientConfig?.[a]??e.parentClientConfig?.[a]??r?.[a],"coalesce");return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},"getSsoOidcClient"),tTt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(i9(),ee(o9));return(await eTt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),hQe=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new Sa(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${a9}`,!1)},"validateTokenKey"),{writeFile:rTt}=KNt,nTt=i((t,e)=>{let r=$Nt(t),n=JSON.stringify(e,null,2);return rTt(r,n)},"writeSSOTokenToFile"),gQe=new Map,ZD=new Map,yQe=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await zNt(t),n=VNt({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new Sa(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Sa(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=ZD.get(o);if(a)return await a;let l=(await WNt(t))[o];if(!l)throw new Sa(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let y of["sso_start_url","sso_region"])if(!l[y])throw new Sa(`Sso session '${o}' is missing required property '${y}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await YNt(o)}catch{throw new Sa(`The SSO session token associated with profile=${n} was not found or is invalid. ${a9}`,!1)}Bf("accessToken",d.accessToken),Bf("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:m}=d,f={token:p,expiration:new Date(m)};if(f.expiration.getTime()-Date.now()>ZNt)return f;let A=ZD.get(o);if(A)return await A;let h=gQe.get(o)??0;if(Date.now()-h<30*1e3)return hQe(f),f;Bf("clientId",d.clientId,!0),Bf("clientSecret",d.clientSecret,!0),Bf("refreshToken",d.refreshToken,!0);let E=(async()=>{try{gQe.set(o,Date.now());let y=await tTt(d,u,t,e);Bf("accessToken",y.accessToken),Bf("expiresIn",y.expiresIn);let I=new Date(Date.now()+y.expiresIn*1e3);try{await nTt(o,{...d,accessToken:y.accessToken,expiresAt:I.toISOString(),refreshToken:y.refreshToken})}catch{}return{token:y.accessToken,expiration:I}}catch{return hQe(f),f}})();ZD.set(o,E);try{return await E}finally{ZD.delete(o)}},"fromSso"),sTt=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Sa("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),oTt=i((t={})=>JNt(jNt(yQe(t),async()=>{throw new Sa("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0),"nodeProvider");sx.fromEnvSigningName=XNt;sx.fromSso=yQe;sx.fromStatic=sTt;sx.nodeProvider=oTt});function iTt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function aTt(t){return{schemeId:"smithy.api#noAuth"}}var CQe,IQe,wQe,c9=g(()=>{Wn();we();CQe=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(iTt,"createAwsAuthSigv4HttpAuthOption");i(aTt,"createSmithyApiNoAuthHttpAuthOption");IQe=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(aTt(t)):e.push(iTt(t)),e},"defaultSSOHttpAuthSchemeProvider"),wQe=i(t=>{let e=dl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var SQe,xQe,l9=g(()=>{SQe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),xQe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ox,Rf,ek,bQe,TQe,tk,u9,BQe,d9,Gy,RQe,NQe,cTt,Vs,lTt,vQe,PQe=g(()=>{Pt();ox="ref",Rf=-1,ek=!0,bQe="isSet",TQe="PartitionResult",tk="booleanEquals",u9="getAttr",BQe={[ox]:"Endpoint"},d9={[ox]:TQe},Gy={},RQe=[{[ox]:"Region"}],NQe={conditions:[[bQe,[BQe]],[bQe,RQe],["aws.partition",RQe,TQe],[tk,[{[ox]:"UseFIPS"},ek]],[tk,[{[ox]:"UseDualStack"},ek]],[tk,[{fn:u9,argv:[d9,"supportsDualStack"]},ek]],[tk,[{fn:u9,argv:[d9,"supportsFIPS"]},ek]],["stringEquals",[{fn:u9,argv:[d9,"name"]},"aws-us-gov"]]],results:[[Rf],[Rf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Rf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[BQe,Gy],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gy],[Rf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Gy],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Gy],[Rf,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Gy],[Rf,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Gy],[Rf,"Invalid Configuration: Missing Region"]]},cTt=2,Vs=1e8,lTt=new Int32Array([-1,1,-1,0,13,3,1,4,Vs+12,2,5,Vs+12,3,8,6,4,7,Vs+11,5,Vs+9,Vs+10,4,11,9,6,10,Vs+8,7,Vs+6,Vs+7,5,12,Vs+5,6,Vs+4,Vs+5,3,Vs+1,14,4,Vs+2,Vs+3]),vQe=Ci.from(lTt,cTt,NQe.conditions,NQe.results)});var uTt,_Qe,QQe=g(()=>{Et();Pt();PQe();uTt=new Ii({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),_Qe=i((t,e={})=>uTt.get(t,()=>Wc(vQe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Hs.aws=ga});var xa,rk=g(()=>{we();xa=class t extends yi{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var ix,ax,cx,lx,p9=g(()=>{rk();ix=class t extends xa{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ax=class t extends xa{static{i(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cx=class t extends xa{static{i(this,"TooManyRequestsException")}static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lx=class t extends xa{static{i(this,"UnauthorizedException")}static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var dTt,pTt,mTt,fTt,ATt,hTt,gTt,yTt,ETt,CTt,ITt,wTt,STt,xTt,bTt,nk,sk,BTt,RTt,ok,NTt,DQe,ik,TTt,vTt,PTt,kQe,_Tt,QTt,DTt,vi,LQe,OQe,ux,MQe,FQe,UQe,qQe,m9,kTt,LTt,OTt,GQe,HQe,$Qe,f9,ak=g(()=>{Ye();p9();rk();dTt="AccessTokenType",pTt="GetRoleCredentials",mTt="GetRoleCredentialsRequest",fTt="GetRoleCredentialsResponse",ATt="InvalidRequestException",hTt="RoleCredentials",gTt="ResourceNotFoundException",yTt="SecretAccessKeyType",ETt="SessionTokenType",CTt="TooManyRequestsException",ITt="UnauthorizedException",wTt="accountId",STt="accessKeyId",xTt="accessToken",bTt="account_id",nk="client",sk="error",BTt="expiration",RTt="http",ok="httpError",NTt="httpHeader",DQe="httpQuery",ik="message",TTt="roleCredentials",vTt="roleName",PTt="role_name",kQe="smithy.ts.sdk.synthetic.com.amazonaws.sso",_Tt="secretAccessKey",QTt="sessionToken",DTt="x-amz-sso_bearer_token",vi="com.amazonaws.sso",LQe=new gt(kQe),OQe=[-3,kQe,"SSOServiceException",0,[],[]];LQe.registerError(OQe,xa);ux=new gt(vi),MQe=[-3,vi,ATt,{[sk]:nk,[ok]:400},[ik],[0]];ux.registerError(MQe,ix);FQe=[-3,vi,gTt,{[sk]:nk,[ok]:404},[ik],[0]];ux.registerError(FQe,ax);UQe=[-3,vi,CTt,{[sk]:nk,[ok]:429},[ik],[0]];ux.registerError(UQe,cx);qQe=[-3,vi,ITt,{[sk]:nk,[ok]:401},[ik],[0]];ux.registerError(qQe,lx);m9=[LQe,ux],kTt=[0,vi,dTt,8,0],LTt=[0,vi,yTt,8,0],OTt=[0,vi,ETt,8,0],GQe=[3,vi,mTt,0,[vTt,wTt,xTt],[[0,{[DQe]:PTt}],[0,{[DQe]:bTt}],[()=>kTt,{[NTt]:DTt}]],3],HQe=[3,vi,fTt,0,[TTt],[[()=>$Qe,0]]],$Qe=[3,vi,hTt,0,[STt,_Tt,QTt,BTt],[0,[()=>LTt,0],[()=>OTt,0],1]],f9=[9,vi,pTt,{[RTt]:["GET","/federation/credentials",200]},()=>GQe,()=>HQe]});var zQe,VQe=g(()=>{Wn();xf();ys();pu();we();be();Se();c9();QQe();ak();zQe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??fr,base64Encoder:t?.base64Encoder??vt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??_Qe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??IQe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Vn}],logger:t?.logger??new Gs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:m9,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??da,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var ck,WQe,YQe=g(()=>{OS();Et();Wn();we();yt();Oo();Se();ck=R(hu());VQe();WQe=i(t=>{kc(process.version);let e=zc(t),r=i(()=>e().then(Dc),"defaultConfigProvider"),n=zQe(t);Pc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ke(Ea,s),bodyLengthChecker:t?.bodyLengthChecker??Fc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ha({serviceId:n.serviceId,clientVersion:np.version}),maxAttempts:t?.maxAttempts??ke(el,t),region:t?.region??ke(Rn,{...gs,...s}),requestHandler:ck.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ke({...rl,default:i(async()=>(await r()).retryMode||xi,"default")},t),streamCollector:t?.streamCollector??ck.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ke(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??ke($c,s),userAgentAppId:t?.userAgentAppId??ke(cl,s)}},"getRuntimeConfig")});var JQe,jQe,KQe=g(()=>{JQe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),jQe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var XQe,ZQe=g(()=>{Et();we();be();KQe();XQe=i((t,e)=>{let r=Object.assign(ll(t),aa(t),Yc(t),JQe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,ul(r),Lc(r),Jc(r),jQe(r))},"resolveRuntimeExtensions")});var dx,A9=g(()=>{Et();ys();we();yt();Pt();be();Oo();Ye();c9();l9();YQe();ZQe();dx=class extends $n{static{i(this,"SSOClient")}config;constructor(...[e]){let r=WQe(e||{});super(r),this.initConfig=r;let n=SQe(r),s=il(n),o=tl(s),a=_o(o),c=a,l=cu(c),u=wQe(l),d=XQe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(_c(this.config)),this.middlewareStack.use(al(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(jc(this.config)),this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(fa(this.config,{httpAuthSchemeParametersProvider:CQe,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Aa(this.config))}destroy(){super.destroy()}}});var eDe,tDe,rDe,nDe=g(()=>{we();Pt();l9();eDe=Oc(xQe,"SWBPortalService","SSOClient",lu),tDe={},rDe=i((t,e,r,n)=>[],"_mw0")});var px,h9=g(()=>{nDe();ak();px=class extends eDe(tDe,rDe,"GetRoleCredentials",f9){static{i(this,"GetRoleCredentialsCommand")}}});var MTt,lk,sDe=g(()=>{we();h9();A9();MTt={GetRoleCredentialsCommand:px},lk=class extends dx{static{i(this,"SSO")}};Qc(MTt,lk)});var oDe=g(()=>{h9()});var iDe=g(()=>{});var aDe={};Fr(aDe,{$Command:()=>As,GetRoleCredentials$:()=>f9,GetRoleCredentialsCommand:()=>px,GetRoleCredentialsRequest$:()=>GQe,GetRoleCredentialsResponse$:()=>HQe,InvalidRequestException:()=>ix,InvalidRequestException$:()=>MQe,ResourceNotFoundException:()=>ax,ResourceNotFoundException$:()=>FQe,RoleCredentials$:()=>$Qe,SSO:()=>lk,SSOClient:()=>dx,SSOServiceException:()=>xa,SSOServiceException$:()=>OQe,TooManyRequestsException:()=>cx,TooManyRequestsException$:()=>UQe,UnauthorizedException:()=>lx,UnauthorizedException$:()=>qQe,__Client:()=>$n,errorTypeRegistries:()=>m9});var cDe=g(()=>{A9();sDe();oDe();we();ak();p9();iDe();rk()});var lDe=w(g9=>{var{GetRoleCredentialsCommand:FTt,SSOClient:UTt}=(cDe(),ee(aDe));g9.GetRoleCredentialsCommand=FTt;g9.SSOClient=UTt});var y9=w(uk=>{var{CredentialsProviderError:ba,getSSOTokenFromFile:qTt,getProfileName:GTt,parseKnownFiles:HTt,loadSsoSessionData:$Tt}=(yt(),ee(Qo)),{setCredentialFeature:uDe}=(Et(),ee(ya)),{fromSso:zTt}=EQe(),pDe=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),mx=!1,dDe=i(async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:s,ssoClient:o,clientConfig:a,parentClientConfig:c,callerClientConfig:l,profile:u,filepath:d,configFilepath:p,ignoreCache:m,logger:f})=>{let A,h="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ie=await zTt({profile:u,filepath:d,configFilepath:p,ignoreCache:m,clientConfig:a,parentClientConfig:c,logger:f})({callerClientConfig:l});A={accessToken:ie.token,expiresAt:new Date(ie.expiration).toISOString()}}catch(ie){throw new ba(ie.message,{tryNextLink:mx,logger:f})}else try{A=await qTt(t)}catch{throw new ba(`The SSO session associated with this profile is invalid. ${h}`,{tryNextLink:mx,logger:f})}if(new Date(A.expiresAt).getTime()-Date.now()<=0)throw new ba(`The SSO session associated with this profile has expired. ${h}`,{tryNextLink:mx,logger:f});let{accessToken:E}=A,{SSOClient:y,GetRoleCredentialsCommand:I}=lDe(),x=o||new y(Object.assign({},a??{},{logger:a?.logger??l?.logger??c?.logger,region:a?.region??n,userAgentAppId:a?.userAgentAppId??l?.userAgentAppId??c?.userAgentAppId})),b;try{b=await x.send(new I({accountId:r,roleName:s,accessToken:E}))}catch(ie){throw new ba(ie,{tryNextLink:mx,logger:f})}let{roleCredentials:{accessKeyId:N,secretAccessKey:P,sessionToken:_,expiration:G,credentialScope:ae,accountId:Ce}={}}=b;if(!N||!P||!_||!G)throw new ba("SSO returns an invalid temporary credential.",{tryNextLink:mx,logger:f});let _e={accessKeyId:N,secretAccessKey:P,sessionToken:_,expiration:new Date(G),...ae&&{credentialScope:ae},...Ce&&{accountId:Ce}};return e?uDe(_e,"CREDENTIALS_SSO","s"):uDe(_e,"CREDENTIALS_SSO_LEGACY","u"),_e},"resolveSSOCredentials"),mDe=i((t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:s,sso_role_name:o}=t;if(!r||!n||!s||!o)throw new ba(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),VTt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=GTt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await HTt(t))[l];if(!d)throw new ba(`Profile ${l} was not found.`,{logger:t.logger});if(!pDe(d))throw new ba(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let y=(await $Tt(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==y.sso_region)throw new ba("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==y.sso_start_url)throw new ba("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=y.sso_region,d.sso_start_url=y.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:A,sso_session:h}=mDe(d,t.logger);return dDe({ssoStartUrl:p,ssoSession:h,ssoAccountId:m,ssoRegion:f,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new ba('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return dDe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");uk.fromSSO=VTt;uk.isSsoProfile=pDe;uk.validateSsoProfile=mDe});var I9=w(pk=>{var{SignatureV4:WTt,signatureV4aContainer:fDe}=s6(),fx={CrtSignerV4:null},E9="X-Amz-S3session-Token",ADe=E9.toLowerCase(),dk=class extends WTt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=hDe(r);e.headers[ADe]=r.sessionToken;let o=this;return gDe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=hDe(r);return delete e.headers[ADe],e.headers[E9]=r.sessionToken,e.query=e.query??{},e.query[E9]=r.sessionToken,gDe(this,s),this.presign(e,n)}};function hDe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(hDe,"getCredentialsWithoutSessionToken");function gDe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(gDe,"setSingleOverride");var C9=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof fx.CrtSignerV4=="function"?"crt":typeof fDe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new dk(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=fx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=fx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=fx.CrtSignerV4,r=fDe.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};pk.SignatureV4MultiRegion=C9;pk.SignatureV4SignWithCredentials=dk;pk.signatureV4CrtContainer=fx});var $y,Nf,Ax,yDe,BDe,hx,vn,w9,EDe,CDe,IDe,wDe,SDe,Pn,S9,Hy,xDe,bDe,YTt,pt,JTt,RDe,NDe=g(()=>{Pt();$y="ref",Nf=-1,Ax=!0,yDe="isSet",BDe="PartitionResult",hx="booleanEquals",vn="stringEquals",w9="getAttr",EDe="us-east-1",CDe="sigv4",IDe="sts",wDe="https://sts.{Region}.{PartitionResult#dnsSuffix}",SDe={[$y]:"Endpoint"},Pn={[$y]:"Region"},S9={[$y]:BDe},Hy={},xDe=[Pn],bDe={conditions:[[yDe,[SDe]],[yDe,xDe],["aws.partition",xDe,BDe],[hx,[{[$y]:"UseFIPS"},Ax]],[hx,[{[$y]:"UseDualStack"},Ax]],[vn,[Pn,"aws-global"]],[hx,[{[$y]:"UseGlobalEndpoint"},Ax]],[vn,[Pn,"eu-central-1"]],[hx,[{fn:w9,argv:[S9,"supportsDualStack"]},Ax]],[hx,[{fn:w9,argv:[S9,"supportsFIPS"]},Ax]],[vn,[Pn,"ap-south-1"]],[vn,[Pn,"eu-north-1"]],[vn,[Pn,"eu-west-1"]],[vn,[Pn,"eu-west-2"]],[vn,[Pn,"eu-west-3"]],[vn,[Pn,"sa-east-1"]],[vn,[Pn,EDe]],[vn,[Pn,"us-east-2"]],[vn,[Pn,"us-west-2"]],[vn,[Pn,"us-west-1"]],[vn,[Pn,"ca-central-1"]],[vn,[Pn,"ap-southeast-1"]],[vn,[Pn,"ap-northeast-1"]],[vn,[Pn,"ap-southeast-2"]],[vn,[{fn:w9,argv:[S9,"name"]},"aws-us-gov"]]],results:[[Nf],["https://sts.amazonaws.com",{authSchemes:[{name:CDe,signingName:IDe,signingRegion:EDe}]}],[wDe,{authSchemes:[{name:CDe,signingName:IDe,signingRegion:"{Region}"}]}],[Nf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Nf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[SDe,Hy],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Hy],[Nf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Hy],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Hy],[Nf,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Hy],[Nf,"DualStack is enabled but this partition does not support DualStack"],[wDe,Hy],[Nf,"Invalid Configuration: Missing Region"]]},YTt=2,pt=1e8,JTt=new Int32Array([-1,1,-1,0,30,3,1,4,pt+14,2,5,pt+14,3,25,6,4,24,7,5,pt+1,8,6,9,pt+13,7,pt+1,10,10,pt+1,11,11,pt+1,12,12,pt+1,13,13,pt+1,14,14,pt+1,15,15,pt+1,16,16,pt+1,17,17,pt+1,18,18,pt+1,19,19,pt+1,20,20,pt+1,21,21,pt+1,22,22,pt+1,23,23,pt+1,pt+2,8,pt+11,pt+12,4,28,26,9,27,pt+10,24,pt+8,pt+9,8,29,pt+7,9,pt+6,pt+7,3,pt+3,31,4,pt+4,pt+5]),RDe=Ci.from(JTt,YTt,bDe.conditions,bDe.results)});var jTt,mk,x9=g(()=>{Et();Pt();NDe();jTt=new Ii({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),mk=i((t,e={})=>jTt.get(t,()=>Wc(RDe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Hs.aws=ga});function PDe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function b9(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function _De(t){return{schemeId:"smithy.api#noAuth"}}var TDe,KTt,XTt,vDe,ZTt,evt,QDe,DDe,B9=g(()=>{Wn();TDe=R(I9());we();Pt();x9();KTt=i(t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await t(e,r,n),o=xt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await nS(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),XTt=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),vDe=KTt(XTt);i(PDe,"createAwsAuthSigv4HttpAuthOption");i(b9,"createAwsAuthSigv4aHttpAuthOption");i(_De,"createSmithyApiNoAuthHttpAuthOption");ZTt=i((t,e,r)=>i(s=>{let a=t(s).properties?.authSchemes;if(!a)return e(s);let c=[];for(let l of a){let{name:u,properties:d={},...p}=l,m=u.toLowerCase();u!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${m}'`);let f;if(m==="sigv4a"){f="aws.auth#sigv4a";let E=a.find(y=>{let I=y.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(TDe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&E)continue}else if(m.startsWith("sigv4"))f="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${m}'`);let A=r[f];if(!A)throw new Error(`Could not find HttpAuthOption create function for '${f}'`);let h=A(s);h.schemeId=f,h.signingProperties={...h.signingProperties||{},...p,...d},c.push(h)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),evt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(_De(t)),e.push(b9(t))):(e.push(PDe(t)),e.push(b9(t))),e},"_defaultSTSHttpAuthSchemeProvider"),QDe=ZTt(mk,evt,{"aws.auth#sigv4":PDe,"aws.auth#sigv4a":b9,"smithy.api#noAuth":_De}),DDe=i(t=>{let e=dl(t),r=TS(e);return Object.assign(r,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var kDe,LDe,R9=g(()=>{kDe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),LDe={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Ws,fk=g(()=>{we();Ws=class t extends yi{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var gx,yx,Ex,Cx,Ix,wx,Sx,N9=g(()=>{fk();gx=class t extends Ws{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},yx=class t extends Ws{static{i(this,"MalformedPolicyDocumentException")}static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Ex=class t extends Ws{static{i(this,"PackedPolicyTooLargeException")}static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Cx=class t extends Ws{static{i(this,"RegionDisabledException")}static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Ix=class t extends Ws{static{i(this,"IDPRejectedClaimException")}static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wx=class t extends Ws{static{i(this,"InvalidIdentityTokenException")}static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Sx=class t extends Ws{static{i(this,"IDPCommunicationErrorException")}static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var tvt,rvt,nvt,svt,ovt,ivt,T9,avt,cvt,lvt,uvt,v9,dvt,ODe,pvt,mvt,fvt,Avt,hvt,gvt,yvt,Evt,MDe,FDe,UDe,Cvt,Ivt,wvt,Svt,xvt,bvt,qDe,Bvt,Rvt,GDe,Nvt,HDe,Tvt,vvt,P9,Pvt,_vt,$De,zDe,Qvt,Dvt,kvt,Lvt,Ovt,Mvt,Fvt,Uvt,Tf,vf,qvt,Pf,_f,Qf,Gvt,VDe,Hvt,Yt,WDe,YDe,cp,JDe,jDe,KDe,XDe,ZDe,eke,tke,_9,$vt,zvt,Q9,rke,nke,ske,oke,D9,ike,ake,cke,lke,Vvt,Wvt,k9,L9,xx=g(()=>{Ye();N9();fk();tvt="Arn",rvt="AccessKeyId",nvt="AssumeRole",svt="AssumedRoleId",ovt="AssumeRoleRequest",ivt="AssumeRoleResponse",T9="AssumedRoleUser",avt="AssumeRoleWithWebIdentity",cvt="AssumeRoleWithWebIdentityRequest",lvt="AssumeRoleWithWebIdentityResponse",uvt="Audience",v9="Credentials",dvt="ContextAssertion",ODe="DurationSeconds",pvt="Expiration",mvt="ExternalId",fvt="ExpiredTokenException",Avt="IDPCommunicationErrorException",hvt="IDPRejectedClaimException",gvt="InvalidIdentityTokenException",yvt="Key",Evt="MalformedPolicyDocumentException",MDe="MinimumSessionTokenSize",FDe="Policy",UDe="PolicyArns",Cvt="ProviderArn",Ivt="ProvidedContexts",wvt="ProvidedContextsListType",Svt="ProvidedContext",xvt="PolicyDescriptorType",bvt="ProviderId",qDe="PackedPolicySize",Bvt="PackedPolicyTooLargeException",Rvt="Provider",GDe="RoleArn",Nvt="RegionDisabledException",HDe="RoleSessionName",Tvt="SecretAccessKey",vvt="SubjectFromWebIdentityToken",P9="SourceIdentity",Pvt="SerialNumber",_vt="SessionToken",$De="SessionTokenSize",zDe="SessionTokenUtilization",Qvt="Tags",Dvt="TokenCode",kvt="TransitiveTagKeys",Lvt="Tag",Ovt="Value",Mvt="WebIdentityToken",Fvt="arn",Uvt="accessKeySecretType",Tf="awsQueryError",vf="client",qvt="clientTokenType",Pf="error",_f="httpError",Qf="message",Gvt="policyDescriptorListType",VDe="smithy.ts.sdk.synthetic.com.amazonaws.sts",Hvt="tagListType",Yt="com.amazonaws.sts",WDe=new gt(VDe),YDe=[-3,VDe,"STSServiceException",0,[],[]];WDe.registerError(YDe,Ws);cp=new gt(Yt),JDe=[-3,Yt,fvt,{[Tf]:["ExpiredTokenException",400],[Pf]:vf,[_f]:400},[Qf],[0]];cp.registerError(JDe,gx);jDe=[-3,Yt,Avt,{[Tf]:["IDPCommunicationError",400],[Pf]:vf,[_f]:400},[Qf],[0]];cp.registerError(jDe,Sx);KDe=[-3,Yt,hvt,{[Tf]:["IDPRejectedClaim",403],[Pf]:vf,[_f]:403},[Qf],[0]];cp.registerError(KDe,Ix);XDe=[-3,Yt,gvt,{[Tf]:["InvalidIdentityToken",400],[Pf]:vf,[_f]:400},[Qf],[0]];cp.registerError(XDe,wx);ZDe=[-3,Yt,Evt,{[Tf]:["MalformedPolicyDocument",400],[Pf]:vf,[_f]:400},[Qf],[0]];cp.registerError(ZDe,yx);eke=[-3,Yt,Bvt,{[Tf]:["PackedPolicyTooLarge",400],[Pf]:vf,[_f]:400},[Qf],[0]];cp.registerError(eke,Ex);tke=[-3,Yt,Nvt,{[Tf]:["RegionDisabledException",403],[Pf]:vf,[_f]:403},[Qf],[0]];cp.registerError(tke,Cx);_9=[WDe,cp],$vt=[0,Yt,Uvt,8,0],zvt=[0,Yt,qvt,8,0],Q9=[3,Yt,T9,0,[svt,tvt],[0,0],2],rke=[3,Yt,ovt,0,[GDe,HDe,UDe,FDe,ODe,Qvt,kvt,mvt,Pvt,Dvt,P9,Ivt,MDe],[0,0,()=>lke,0,1,()=>Wvt,64,0,0,0,0,()=>Vvt,1],2],nke=[3,Yt,ivt,0,[v9,T9,qDe,P9,zDe,$De],[[()=>D9,0],()=>Q9,1,0,1,1]],ske=[3,Yt,cvt,0,[GDe,HDe,Mvt,bvt,UDe,FDe,ODe,MDe],[0,0,[()=>zvt,0],0,()=>lke,0,1,1],3],oke=[3,Yt,lvt,0,[v9,vvt,T9,qDe,Rvt,uvt,P9,zDe,$De],[[()=>D9,0],0,()=>Q9,1,0,0,0,1,1]],D9=[3,Yt,v9,0,[rvt,Tvt,_vt,pvt],[0,[()=>$vt,0],0,4],4],ike=[3,Yt,xvt,0,[Fvt],[0]],ake=[3,Yt,Svt,0,[Cvt,dvt],[0,0]],cke=[3,Yt,Lvt,0,[yvt,Ovt],[0,0],2],lke=[1,Yt,Gvt,0,()=>ike],Vvt=[1,Yt,wvt,0,()=>ake],Wvt=[1,Yt,Hvt,0,()=>cke],k9=[9,Yt,nvt,0,()=>rke,()=>nke],L9=[9,Yt,avt,0,()=>ske,()=>oke]});var uke,dke,pke=g(()=>{Wn();xf();uke=R(I9());ys();pu();we();be();Se();B9();x9();xx();dke=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??fr,base64Encoder:t?.base64Encoder??vt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mk,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??QDe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Au},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Vn}],logger:t?.logger??new Gs,protocol:t?.protocol??ap,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:_9,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??da,signerConstructor:t?.signerConstructor??uke.SignatureV4MultiRegion,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var Ak,mke,fke=g(()=>{OS();Et();Wn();ys();we();yt();Oo();Se();Ak=R(hu());pke();mke=i(t=>{kc(process.version);let e=zc(t),r=i(()=>e().then(Dc),"defaultConfigProvider"),n=dke(t);Pc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ke(Ea,s),bodyLengthChecker:t?.bodyLengthChecker??Fc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ha({serviceId:n.serviceId,clientVersion:np.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4")||(async a=>await t.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new pn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Au},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Vn}],maxAttempts:t?.maxAttempts??ke(el,t),region:t?.region??ke(Rn,{...gs,...s}),requestHandler:Ak.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ke({...rl,default:i(async()=>(await r()).retryMode||xi,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ke(vS,s),streamCollector:t?.streamCollector??Ak.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ke(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??ke($c,s),userAgentAppId:t?.userAgentAppId??ke(cl,s)}},"getRuntimeConfig")});var Ake,hke,gke=g(()=>{Ake=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),hke=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var yke,Eke=g(()=>{Et();we();be();gke();yke=i((t,e)=>{let r=Object.assign(ll(t),aa(t),Yc(t),Ake(t));return e.forEach(n=>n.configure(r)),Object.assign(t,ul(r),Lc(r),Jc(r),hke(r))},"resolveRuntimeExtensions")});var lp,hk=g(()=>{Et();ys();we();yt();Pt();be();Oo();Ye();B9();R9();fke();Eke();lp=class extends $n{static{i(this,"STSClient")}config;constructor(...[e]){let r=mke(e||{});super(r),this.initConfig=r;let n=kDe(r),s=il(n),o=tl(s),a=_o(o),c=a,l=cu(c),u=DDe(l),d=yke(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(_c(this.config)),this.middlewareStack.use(al(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(jc(this.config)),this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(fa(this.config,{httpAuthSchemeParametersProvider:vDe,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Aa(this.config))}destroy(){super.destroy()}}});var gk,yk,Ek,O9=g(()=>{we();Pt();R9();gk=Oc(LDe,"AWSSecurityTokenServiceV20110615","STSClient",lu),yk={},Ek=i((t,e,r,n)=>[],"_mw0")});var Df,Ck=g(()=>{O9();xx();Df=class extends gk(yk,Ek,"AssumeRole",k9){static{i(this,"AssumeRoleCommand")}}});var kf,Ik=g(()=>{O9();xx();kf=class extends gk(yk,Ek,"AssumeRoleWithWebIdentity",L9){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var Yvt,wk,Cke=g(()=>{we();Ck();Ik();hk();Yvt={AssumeRoleCommand:Df,AssumeRoleWithWebIdentityCommand:kf},wk=class extends lp{static{i(this,"STS")}};Qc(Yvt,wk)});var Ike=g(()=>{Ck();Ik()});var wke=g(()=>{});var Ske,xke,bke,Bke,Rke,Nke=g(()=>{Et();Ck();Ik();Ske=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),xke=i(async(t,e,r,n={})=>{let s=typeof t=="function"?await t():t,o=typeof e=="function"?await e():e,a="",c=s??o??(a=await nD(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),bke=i((t,e)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:d=t?.parentClientConfig?.logger,profile:p=t?.parentClientConfig?.profile,region:m,requestHandler:f=t?.parentClientConfig?.requestHandler,credentialProviderLogger:A,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t,E=await xke(m,t?.parentClientConfig?.region,A,{logger:d,profile:p}),y=!Rke(f);r=new e({...t,userAgentAppId:h,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:E,requestHandler:y?f:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Df(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=Ske(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return xd(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),Bke=i((t,e)=>{let r;return async n=>{if(!r){let{logger:l=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:d,requestHandler:p=t?.parentClientConfig?.requestHandler,credentialProviderLogger:m,userAgentAppId:f=t?.parentClientConfig?.userAgentAppId}=t,A=await xke(d,t?.parentClientConfig?.region,m,{logger:l,profile:u}),h=!Rke(p);r=new e({...t,userAgentAppId:f,profile:u,region:A,requestHandler:h?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new kf(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ske(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&xd(c,"RESOLVED_ACCOUNT_ID","T"),xd(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),Rke=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var Tke,vke,Pke,Jvt,_ke=g(()=>{Nke();hk();Tke=i((t,e)=>e?class extends t{static{i(this,"CustomizableSTSClient")}constructor(n){super(n);for(let s of e)this.middlewareStack.use(s)}}:t,"getCustomizableStsClientCtor"),vke=i((t={},e)=>bke(t,Tke(lp,e)),"getDefaultRoleAssumer"),Pke=i((t={},e)=>Bke(t,Tke(lp,e)),"getDefaultRoleAssumerWithWebIdentity"),Jvt=i(t=>e=>t({roleAssumer:vke(e),roleAssumerWithWebIdentity:Pke(e),...e}),"decorateDefaultCredentialProvider")});var M9={};Fr(M9,{$Command:()=>As,AssumeRole$:()=>k9,AssumeRoleCommand:()=>Df,AssumeRoleRequest$:()=>rke,AssumeRoleResponse$:()=>nke,AssumeRoleWithWebIdentity$:()=>L9,AssumeRoleWithWebIdentityCommand:()=>kf,AssumeRoleWithWebIdentityRequest$:()=>ske,AssumeRoleWithWebIdentityResponse$:()=>oke,AssumedRoleUser$:()=>Q9,Credentials$:()=>D9,ExpiredTokenException:()=>gx,ExpiredTokenException$:()=>JDe,IDPCommunicationErrorException:()=>Sx,IDPCommunicationErrorException$:()=>jDe,IDPRejectedClaimException:()=>Ix,IDPRejectedClaimException$:()=>KDe,InvalidIdentityTokenException:()=>wx,InvalidIdentityTokenException$:()=>XDe,MalformedPolicyDocumentException:()=>yx,MalformedPolicyDocumentException$:()=>ZDe,PackedPolicyTooLargeException:()=>Ex,PackedPolicyTooLargeException$:()=>eke,PolicyDescriptorType$:()=>ike,ProvidedContext$:()=>ake,RegionDisabledException:()=>Cx,RegionDisabledException$:()=>tke,STS:()=>wk,STSClient:()=>lp,STSServiceException:()=>Ws,STSServiceException$:()=>YDe,Tag$:()=>cke,__Client:()=>$n,decorateDefaultCredentialProvider:()=>Jvt,errorTypeRegistries:()=>_9,getDefaultRoleAssumer:()=>vke,getDefaultRoleAssumerWithWebIdentity:()=>Pke});var F9=g(()=>{hk();Cke();Ike();we();xx();N9();wke();_ke();fk()});function jvt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Kvt(t){return{schemeId:"smithy.api#noAuth"}}var Qke,Dke,kke,U9=g(()=>{Wn();we();Qke=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(jvt,"createAwsAuthSigv4HttpAuthOption");i(Kvt,"createSmithyApiNoAuthHttpAuthOption");Dke=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(Kvt(t)):e.push(jvt(t)),e},"defaultSigninHttpAuthSchemeProvider"),kke=i(t=>{let e=dl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Lke,Oke,q9=g(()=>{Lke=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),Oke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var pp,up,Mke,zy,Fke,Vy,Uke,H9,yu,G9,qke,Gke,dp,Vke,Hke,Sk,Yn,$ke,zke,Xvt,tt,Zvt,Wke,Yke=g(()=>{Pt();pp="ref",up=-1,Mke=!1,zy=!0,Fke="isSet",Vy="booleanEquals",Uke="coalesce",H9="PartitionResult",yu="stringEquals",G9="getAttr",qke="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",Gke={[pp]:"Endpoint"},dp={fn:G9,argv:[{[pp]:H9},"name"]},Vke={[pp]:"Region"},Hke={[pp]:H9},Sk={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Yn={},$ke=[Vke],zke={conditions:[[Fke,$ke],[Vy,[{fn:Uke,argv:[{[pp]:"IsControlPlane"},Mke]},zy]],[Fke,[Gke]],["aws.partition",$ke,H9],[Vy,[{[pp]:"UseFIPS"},zy]],[yu,[dp,"aws"]],[Vy,[{fn:Uke,argv:[{[pp]:"IsOAuthEndpoint"},Mke]},zy]],[Vy,[{[pp]:"UseDualStack"},zy]],[yu,[dp,"aws-cn"]],[yu,[Vke,"us-gov-west-1"]],[yu,[dp,"aws-us-gov"]],[Vy,[{fn:G9,argv:[Hke,"supportsFIPS"]},zy]],[yu,[dp,"aws-iso"]],[yu,[dp,"aws-iso-b"]],[yu,[dp,"aws-iso-f"]],[yu,[dp,"aws-iso-e"]],[yu,[dp,"aws-eusc"]],[Vy,[{fn:G9,argv:[Hke,"supportsDualStack"]},zy]]],results:[[up],["https://signin.{Region}.api.aws",Sk],["https://signin.{Region}.api.amazonwebservices.com.cn",Sk],[qke,Sk],[up,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Sk],["https://{Region}.signin.aws.amazon.com",Yn],["https://{Region}.signin.amazonaws.cn",Yn],["https://{Region}.signin.amazonaws-us-gov.com",Yn],["https://{Region}.signin.c2shome.ic.gov",Yn],["https://{Region}.signin.sc2shome.sgov.gov",Yn],["https://{Region}.signin.csphome.hci.ic.gov",Yn],["https://{Region}.signin.csphome.adc-e.uk",Yn],["https://{Region}.signin.amazonaws-eusc.eu",Yn],["https://signin-fips.amazonaws-us-gov.com",Yn],["https://{Region}.signin-fips.amazonaws-us-gov.com",Yn],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Yn],[up,"Invalid Configuration: FIPS and custom endpoint are not supported"],[up,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Gke,Yn],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yn],[up,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Yn],[up,"FIPS is enabled but this partition does not support FIPS"],[qke,Yn],[up,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Yn],[up,"Invalid Configuration: Missing Region"]]},Xvt=2,tt=1e8,Zvt=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,tt+27,6,tt+4,tt+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,tt+7,13,10,tt+8,14,12,tt+9,15,13,tt+10,16,14,tt+11,17,15,tt+12,18,16,tt+13,tt+16,6,tt+5,20,7,21,tt+6,17,tt+24,tt+25,6,tt+4,23,7,27,24,9,tt+14,25,10,tt+15,26,11,tt+22,tt+23,11,28,tt+21,17,tt+20,tt+21,2,35,30,3,39,31,4,32,tt+27,6,tt+4,33,7,tt+27,34,9,tt+14,tt+27,3,39,36,4,38,37,7,tt+18,tt+19,6,tt+4,tt+17,5,tt+1,40,8,tt+2,tt+3]),Wke=Ci.from(Zvt,Xvt,zke.conditions,zke.results)});var ePt,Jke,jke=g(()=>{Et();Pt();Yke();ePt=new Ii({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),Jke=i((t,e={})=>ePt.get(t,()=>Wc(Wke,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Hs.aws=ga});var Ba,xk=g(()=>{we();Ba=class t extends yi{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var bx,Bx,Rx,Nx,$9=g(()=>{xk();bx=class t extends Ba{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Bx=class t extends Ba{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Rx=class t extends Ba{static{i(this,"TooManyRequestsError")}static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Nx=class t extends Ba{static{i(this,"ValidationException")}static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var tPt,rPt,nPt,sPt,oPt,iPt,aPt,cPt,lPt,uPt,dPt,pPt,mPt,fPt,APt,Kke,z9,hPt,J9,Xke,Zke,gPt,mp,V9,yPt,W9,EPt,sLe,j9,eLe,_n,Bk,CPt,bk,tLe,oLe,rLe,nLe,IPt,wPt,SPt,Y9,xPt,Jn,iLe,aLe,Tx,cLe,lLe,uLe,dLe,K9,bPt,pLe,mLe,fLe,ALe,hLe,gLe,yLe,ELe,X9,Z9,vx=g(()=>{Ye();$9();xk();tPt="AccessDeniedException",rPt="AccessToken",nPt="CreateOAuth2Token",sPt="CreateOAuth2TokenRequest",oPt="CreateOAuth2TokenRequestBody",iPt="CreateOAuth2TokenResponseBody",aPt="CreateOAuth2TokenResponse",cPt="CreateOAuth2TokenWithIAM",lPt="CreateOAuth2TokenWithIAMRequest",uPt="CreateOAuth2TokenWithIAMResponse",dPt="InternalServerException",pPt="OAuthAccessToken",mPt="RefreshToken",fPt="TooManyRequestsError",APt="ValidationException",Kke="accessKeyId",z9="accessToken",hPt="access_token",J9="client",Xke="clientId",Zke="codeVerifier",gPt="code",mp="error",V9="expiresIn",yPt="expires_in",W9="grantType",EPt="grant_type",sLe="http",j9="httpError",eLe="idToken",_n="jsonName",Bk="message",CPt="resource",bk="refreshToken",tLe="redirectUri",oLe="smithy.ts.sdk.synthetic.com.amazonaws.signin",rLe="secretAccessKey",nLe="sessionToken",IPt="server",wPt="tokenInput",SPt="tokenOutput",Y9="tokenType",xPt="token_type",Jn="com.amazonaws.signin",iLe=new gt(oLe),aLe=[-3,oLe,"SigninServiceException",0,[],[]];iLe.registerError(aLe,Ba);Tx=new gt(Jn),cLe=[-3,Jn,tPt,{[mp]:J9},[mp,Bk],[0,0],2];Tx.registerError(cLe,bx);lLe=[-3,Jn,dPt,{[mp]:IPt,[j9]:500},[mp,Bk],[0,0],2];Tx.registerError(lLe,Bx);uLe=[-3,Jn,fPt,{[mp]:J9,[j9]:429},[mp,Bk],[0,0],2];Tx.registerError(uLe,Rx);dLe=[-3,Jn,APt,{[mp]:J9,[j9]:400},[mp,Bk],[0,0],2];Tx.registerError(dLe,Nx);K9=[iLe,Tx],bPt=[0,Jn,pPt,8,0],pLe=[0,Jn,mPt,8,0],mLe=[3,Jn,rPt,8,[Kke,rLe,nLe],[[0,{[_n]:Kke}],[0,{[_n]:rLe}],[0,{[_n]:nLe}]],3],fLe=[3,Jn,sPt,0,[wPt],[[()=>ALe,16]],1],ALe=[3,Jn,oPt,0,[Xke,W9,gPt,tLe,Zke,bk],[[0,{[_n]:Xke}],[0,{[_n]:W9}],0,[0,{[_n]:tLe}],[0,{[_n]:Zke}],[()=>pLe,{[_n]:bk}]],2],hLe=[3,Jn,aPt,0,[SPt],[[()=>gLe,16]],1],gLe=[3,Jn,iPt,0,[z9,Y9,V9,bk,eLe],[[()=>mLe,{[_n]:z9}],[0,{[_n]:Y9}],[1,{[_n]:V9}],[()=>pLe,{[_n]:bk}],[0,{[_n]:eLe}]],4],yLe=[3,Jn,lPt,0,[W9,CPt],[[0,{[_n]:EPt}],0],2],ELe=[3,Jn,uPt,0,[z9,Y9,V9],[[()=>bPt,{[_n]:hPt}],[0,{[_n]:xPt}],[1,{[_n]:yPt}]],3],X9=[9,Jn,nPt,{[sLe]:["POST","/v1/token",200]},()=>fLe,()=>hLe],Z9=[9,Jn,cPt,{[sLe]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>yLe,()=>ELe]});var CLe,ILe=g(()=>{Wn();xf();ys();pu();we();be();Se();U9();jke();vx();CLe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??fr,base64Encoder:t?.base64Encoder??vt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Jke,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Dke,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Vn}],logger:t?.logger??new Gs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:K9,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??da,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var Rk,wLe,SLe=g(()=>{OS();Et();Wn();we();yt();Oo();Se();Rk=R(hu());ILe();wLe=i(t=>{kc(process.version);let e=zc(t),r=i(()=>e().then(Dc),"defaultConfigProvider"),n=CLe(t);Pc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ke(Ea,s),bodyLengthChecker:t?.bodyLengthChecker??Fc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ha({serviceId:n.serviceId,clientVersion:np.version}),maxAttempts:t?.maxAttempts??ke(el,t),region:t?.region??ke(Rn,{...gs,...s}),requestHandler:Rk.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ke({...rl,default:i(async()=>(await r()).retryMode||xi,"default")},t),streamCollector:t?.streamCollector??Rk.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ke(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??ke($c,s),userAgentAppId:t?.userAgentAppId??ke(cl,s)}},"getRuntimeConfig")});var xLe,bLe,BLe=g(()=>{xLe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),bLe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var RLe,NLe=g(()=>{Et();we();be();BLe();RLe=i((t,e)=>{let r=Object.assign(ll(t),aa(t),Yc(t),xLe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,ul(r),Lc(r),Jc(r),bLe(r))},"resolveRuntimeExtensions")});var Px,eK=g(()=>{Et();ys();we();yt();Pt();be();Oo();Ye();U9();q9();SLe();NLe();Px=class extends $n{static{i(this,"SigninClient")}config;constructor(...[e]){let r=wLe(e||{});super(r),this.initConfig=r;let n=Lke(r),s=il(n),o=tl(s),a=_o(o),c=a,l=cu(c),u=kke(l),d=RLe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(_c(this.config)),this.middlewareStack.use(al(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(jc(this.config)),this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(fa(this.config,{httpAuthSchemeParametersProvider:Qke,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Aa(this.config))}destroy(){super.destroy()}}});var Nk,TLe,vLe,Tk,tK=g(()=>{we();Pt();q9();Nk=Oc(Oke,"Signin","SigninClient",lu),TLe={IsControlPlane:{type:"staticContextParams",value:!1}},vLe={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},Tk=i((t,e,r,n)=>[],"_mw0")});var _x,rK=g(()=>{tK();vx();_x=class extends Nk(TLe,Tk,"CreateOAuth2Token",X9){static{i(this,"CreateOAuth2TokenCommand")}}});var Qx,nK=g(()=>{tK();vx();Qx=class extends Nk(vLe,Tk,"CreateOAuth2TokenWithIAM",Z9){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var BPt,vk,PLe=g(()=>{we();rK();nK();eK();BPt={CreateOAuth2TokenCommand:_x,CreateOAuth2TokenWithIAMCommand:Qx},vk=class extends Px{static{i(this,"Signin")}};Qc(BPt,vk)});var _Le=g(()=>{rK();nK()});var RPt,QLe=g(()=>{RPt={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var DLe=g(()=>{});var kLe={};Fr(kLe,{$Command:()=>As,AccessDeniedException:()=>bx,AccessDeniedException$:()=>cLe,AccessToken$:()=>mLe,CreateOAuth2Token$:()=>X9,CreateOAuth2TokenCommand:()=>_x,CreateOAuth2TokenRequest$:()=>fLe,CreateOAuth2TokenRequestBody$:()=>ALe,CreateOAuth2TokenResponse$:()=>hLe,CreateOAuth2TokenResponseBody$:()=>gLe,CreateOAuth2TokenWithIAM$:()=>Z9,CreateOAuth2TokenWithIAMCommand:()=>Qx,CreateOAuth2TokenWithIAMRequest$:()=>yLe,CreateOAuth2TokenWithIAMResponse$:()=>ELe,InternalServerException:()=>Bx,InternalServerException$:()=>lLe,OAuth2ErrorCode:()=>RPt,Signin:()=>vk,SigninClient:()=>Px,SigninServiceException:()=>Ba,SigninServiceException$:()=>aLe,TooManyRequestsError:()=>Rx,TooManyRequestsError$:()=>uLe,ValidationException:()=>Nx,ValidationException$:()=>dLe,__Client:()=>$n,errorTypeRegistries:()=>K9});var LLe=g(()=>{eK();PLe();_Le();we();vx();QLe();$9();DLe();xk()});var FLe=w(MLe=>{var{setCredentialFeature:NPt}=(Et(),ee(ya)),{CredentialsProviderError:fp,parseKnownFiles:TPt,getProfileName:vPt}=(yt(),ee(Qo)),{HttpRequest:PPt}=(be(),ee(Jd)),{createHash:_Pt,createPrivateKey:QPt,createPublicKey:DPt,sign:kPt}=require("node:crypto"),{promises:sK}=require("node:fs"),{homedir:LPt}=require("node:os"),{dirname:OPt,join:OLe}=require("node:path"),oK=class t{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new fp(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),s=new Date(r.accessToken.expiresAt).getTime(),o=new Date(e.accessToken.expiresAt).getTime(),a=s<=n&&o>n?e:r;if(new Date(a.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(a.accessToken);let{SigninClient:l,CreateOAuth2TokenCommand:u}=(LLe(),ee(kLe)),{logger:d,userAgentAppId:p}=this.callerClientConfig??{},f=i(y=>y?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,A=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,h=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:A,requestHandler:f,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(h.middlewareStack);let E={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let y=await h.send(new u(E)),{accessKeyId:I,secretAccessKey:x,sessionToken:b}=y.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:P}=y.tokenOutput??{};if(!I||!x||!b||!N)throw new fp("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let _=(P??900)*1e3,G=new Date(Date.now()+_),ae={...a,accessToken:{...a.accessToken,accessKeyId:I,secretAccessKey:x,sessionToken:b,expiresAt:G.toISOString()},refreshToken:N};return await this.saveToken(ae),this.toCredentials(ae.accessToken)}catch(y){if(y.name==="AccessDeniedException"){let x=y.error,b;switch(x){case"TOKEN_EXPIRED":b="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":b="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":b="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:b=`Failed to refresh token: ${String(y)}. Please re-authenticate using \`aws login\``}throw new fp(b,{logger:this.logger,tryNextLink:!1})}if(new Date(a.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(y)}. Using existing token until expiry.`),this.toCredentials(a.accessToken);throw new fp(`Failed to refresh token: ${String(y)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await sK.readFile(e,"utf8"),n=JSON.parse(r),s=["accessToken","clientId","refreshToken","dpopKey"].filter(o=>!n[o]);if(n.accessToken?.accountId||s.push("accountId"),s.length>0)throw new fp(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new fp(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=OPt(r);try{await sK.mkdir(n,{recursive:!0})}catch{}await sK.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??OLe(LPt(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=_Pt("sha256").update(r).digest("hex");return OLe(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],s=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let o=e[r++],a=e.subarray(r,r+o);s=s[0]===0?s.subarray(1):s,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-s.length),s]),l=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,l])}createDPoPInterceptor(e){e.add(r=>async n=>{if(PPt.isInstance(n.request)){let s=n.request,o=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,a=await this.generateDpop(s.method,o);s.headers={...s.headers,DPoP:a}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let s=QPt({key:n.dpopKey,format:"pem",type:"sec1"}),a=DPt(s).export({format:"der",type:"spki"}),c=-1;for(let I=0;Iasync({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await TPt(t||{}),n=vPt({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new fp(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new oK(s,t,e).loadCredentials();return NPt(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");MLe.fromLoginCredentials=MPt});var aK=w(ULe=>{var{externalDataInterceptor:FPt,CredentialsProviderError:iK,parseKnownFiles:UPt,getProfileName:qPt}=(yt(),ee(Qo)),{exec:GPt}=require("node:child_process"),{promisify:HPt}=require("node:util"),{setCredentialFeature:$Pt}=(Et(),ee(ya)),zPt=i((t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let o=new Date;if(new Date(e.Expiration){let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=HPt(FPt?.getTokenRecord?.().exec??GPt);try{let{stdout:a}=await o(s),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return zPt(t,c,e)}catch(a){throw new iK(a.message,{logger:r})}}else throw new iK(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new iK(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),WPt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await UPt(t);return VPt(qPt({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");ULe.fromProcess=WPt});var lK=w(cK=>{var{setCredentialFeature:YPt}=(Et(),ee(ya)),{CredentialsProviderError:JPt,externalDataInterceptor:jPt}=(yt(),ee(Qo)),{readFileSync:KPt}=require("node:fs"),GLe=i(t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:s,providerId:o,policyArns:a,policy:c,durationSeconds:l}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:d}=(F9(),ee(M9));u=d({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:o,PolicyArns:a,Policy:c,DurationSeconds:l})},"fromWebToken"),qLe="AWS_WEB_IDENTITY_TOKEN_FILE",XPt="AWS_ROLE_ARN",ZPt="AWS_ROLE_SESSION_NAME",e_t=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[qLe],n=t?.roleArn??process.env[XPt],s=t?.roleSessionName??process.env[ZPt];if(!r||!n)throw new JPt("Web identity configuration not specified",{logger:t.logger});let o=await GLe({...t,webIdentityToken:jPt?.getTokenRecord?.()[r]??KPt(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[qLe]&&YPt(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");cK.fromTokenFile=e_t;cK.fromWebToken=GLe});var JLe=w(YLe=>{var{CredentialsProviderError:Pk,chain:t_t,getProfileName:VLe,parseKnownFiles:r_t}=(yt(),ee(Qo)),{setCredentialFeature:Eu}=(Et(),ee(ya)),n_t=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=I6(),{fromContainerMetadata:a}=gD();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>t_t(o(s??{}),a(s))().then(uK)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=gD();return async()=>o(s)().then(uK)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=c6();return async()=>o(s)().then(uK)},"Environment")};if(t in n)return n[t];throw new Pk(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),uK=i(t=>Eu(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),s_t=i((t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(o_t(t,{profile:e,logger:r})||i_t(t,{profile:e,logger:r})),"isAssumeRoleProfile"),o_t=i((t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},"isAssumeRoleWithSourceProfile"),i_t=i((t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},"isCredentialSourceProfile"),a_t=i(async(t,e,r,n,s={},o)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=e[t],{source_profile:c,region:l}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=(F9(),ee(M9));r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:l??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(c&&c in s)throw new Pk(`Detected a cycle attempting to resolve credentials for profile ${VLe(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${t}]`}`);let u=c?o(c,e,r,n,{...s,[c]:!0},HLe(e[c]??{})):(await n_t(a.credential_source,t,r.logger)(r))();if(HLe(a))return u.then(d=>Eu(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:p}=a;if(p){if(!r.mfaCodeProvider)throw new Pk(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=p,d.TokenCode=await r.mfaCodeProvider(p)}let m=await u;return r.roleAssumer(m,d).then(f=>Eu(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),HLe=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),c_t=i(t=>!!(t&&t.login_session),"isLoginProfile"),l_t=i(async(t,e,r)=>{let{fromLoginCredentials:n}=FLe(),s=await n({...e,profile:t})({callerClientConfig:r});return Eu(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),u_t=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),d_t=i(async(t,e)=>{let{fromProcess:r}=aK(),n=await r({...t,profile:e})();return Eu(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),p_t=i(async(t,e,r={},n)=>{let{fromSSO:s}=y9();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Eu(o,"CREDENTIALS_PROFILE_SSO","r"):Eu(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),m_t=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),$Le=i(t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,"isStaticCredsProfile"),zLe=i(async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return Eu(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),f_t=i(t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,"isWebIdentityProfile"),A_t=i(async(t,e,r)=>{let{fromTokenFile:n}=lK(),s=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return Eu(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),WLe=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&$Le(a))return zLe(a,r);if(o||s_t(a,{profile:t,logger:r.logger}))return a_t(t,e,r,n,s,WLe);if($Le(a))return zLe(a,r);if(f_t(a))return A_t(a,r,n);if(u_t(a))return d_t(r,t);if(m_t(a))return await p_t(t,a,r,n);if(c_t(a))return l_t(t,r,n);throw new Pk(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),h_t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await r_t(t);return WLe(VLe({profile:t.profile??e?.profile}),r,t,e)},"fromIni");YLe.fromIni=h_t});var dK=w(Qk=>{var{ENV_KEY:g_t,ENV_SECRET:y_t,fromEnv:E_t}=c6(),{chain:C_t,CredentialsProviderError:_k,ENV_PROFILE:I_t}=(yt(),ee(Qo)),jLe="AWS_EC2_METADATA_DISABLED",w_t=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=gD();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=I6();return C_t(o(t),n(t))}return process.env[jLe]&&process.env[jLe]!=="false"?async()=>{throw new _k("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function S_t(t,e){let r=x_t(t),n,s,o,a,c=i(async l=>{if(l?.forceRefresh)return a||(a=r(l).then(u=>{o=u}).finally(()=>{a=void 0})),await a,o;if(o?.expiration&&o?.expiration?.getTime(){o=u}).catch(()=>{}).finally(()=>{s=void 0}));else return n=r(l).then(u=>{o=u}).finally(()=>{n=void 0}),c(l);return o},"provider");return c}i(S_t,"memoizeChain");var x_t=i(t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(s){if(r=s,s?.tryNextLink)continue;throw s}throw r},"internalCreateChain"),KLe=!1,b_t=i((t={})=>S_t([async()=>{if(t.profile??process.env[I_t])throw process.env[g_t]&&process.env[y_t]&&(KLe||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: +`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&j6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&j6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};WD.XmlNode=K6;WD.XmlText=VD;WD.parseXML=dTt});var Al,jS=g(()=>{Al=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var JD,T_e=g(()=>{JD=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function P_e(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var v_e=g(()=>{i(P_e,"writeKey")});var __e,cp,jD=g(()=>{__e=R(YD());Ce();Se();We();Ie();jS();T_e();v_e();cp=class extends Al{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new $d(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=L.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Mt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=L.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let f of p)l.push(this.readSchema(c,f));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let f of u){let m=f[d],A=f[p];m==="__proto__"&&P_e(a),a[m]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new JD(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),f=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(f),r[f]!=null&&(a[u]=this.readSchema(d,r[f]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,__e.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),fm(o)}return{}}}});var $y,Z6=g(()=>{Se();We();Ie();Ie();jS();$y=class extends Al{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=L.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Pt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Lo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Ye?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),un(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Po(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),f=this.getKey("key",p.xmlName,p.ec2QueryName),m=c?`${n}${l}.${f}`:`${n}entry.${l}.${f}`,A=a.getMergedTraits(),h=this.getKey("value",A.xmlName,A.ec2QueryName),E=c?`${n}${l}.${h}`:`${n}entry.${l}.${h}`;this.write(o,u,m),this.write(a,d,E),++l}}}else if(s.isStructSchema()){if(r&&typeof r=="object"){let o=!1;for(let[a,c]of s.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let l=c.getMergedTraits(),u=this.getKey(a,l.xmlName,l.ec2QueryName,"struct"),d=`${n}${u}`;this.write(c,r[a],d),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a,u=`${n}${c}`;this.write(15,l,u)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,s){let{ec2:o,capitalizeKeys:a}=this.settings;if(o&&n)return n;let c=r??e;return a&&s==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${pa(e)}=`}writeValue(e){this.buffer+=pa(e)}}});var lp,e9=g(()=>{Se();We();Gy();jD();Z6();lp=class extends xi{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Pi;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new $y(r),this.deserializer=new cp(r)}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,r,n){let s=await super.serializeRequest(e,r,n);s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]="application/x-www-form-urlencoded",(Hs(e.input)==="unit"||!s.body)&&(s.body="");let o=e.name.split("#")[1]??e.name;return s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(e,r,n){let s=this.deserializer,o=L.of(e.output),a={};if(n.statusCode>=300){let d=await jr(n.body,r);d.byteLength>0&&Object.assign(a,await s.read(15,d)),await this.handleError(e,r,n,a,this.deserializeMetadata(n))}for(let d in n.headers){let p=n.headers[d];delete n.headers[d],n.headers[d.toLowerCase()]=p}let c=e.name.split("#")[1]??e.name,l=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,u=await jr(n.body,r);return u.byteLength>0&&Object.assign(a,await s.read(o,u,l)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,r,n,s,o){let a=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);c.message=l,c.Error={Type:c.Type,Code:c.Code,Message:l};let{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),p=L.of(u),f=this.compositeErrorRegistry.getErrorCtor(u)??Error,m=new f({}),A={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[h,E]of p.structIterator()){let y=E.getMergedTraits().xmlName??h,I=c[y]??s[y];A[h]=this.deserializer.readSchema(E,I)}throw this.mixin.decorateServiceException(Object.assign(m,d,{$fault:p.getMergedTraits().error,message:l},A),s)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var KD,Q_e=g(()=>{e9();KD=class extends lp{static{i(this,"AwsEc2QueryProtocol")}options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var D_e,k_e=g(()=>{Se();Ie();D_e=i((t,e)=>jr(t,e).then(r=>(e?.utf8Encoder??Mt)(r)),"collectBodyString")});var L_e,t9,O_e,XD,r9=g(()=>{L_e=R(YD());Ce();k_e();t9=i((t,e)=>D_e(t,e).then(r=>{if(r.length){let n;try{n=(0,L_e.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let s="#text",o=Object.keys(n)[0],a=n[o];return a[s]&&(a[o]=a[s],delete a[s]),fm(a)}return{}}),"parseXmlBody"),O_e=i(async(t,e)=>{let r=await t9(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),XD=i((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Cs,Hy,n9=g(()=>{Cs=R(YD());Se();We();Ie();Ie();jS();Hy=class extends Al{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=L.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??mr)(r);else{this.buffer=this.writeStruct(n,r,void 0);let s=n.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Cs.XmlNode.of(o),[c,l]=this.getXmlnsAttribute(e,n);for(let[d,p]of e.structIterator()){let f=r[d];if(f!=null||p.isIdempotencyToken()){if(p.getMergedTraits().xmlAttribute){a.addAttribute(p.getMergedTraits().xmlName??d,this.writeSimple(p,f));continue}if(p.isListSchema())this.writeList(p,f,a,l);else if(p.isMapSchema())this.writeMap(p,f,a,l);else if(p.isStructSchema())a.addChildNode(this.writeStruct(p,f,l));else{let m=Cs.XmlNode.of(p.getMergedTraits().xmlName??p.getMemberName());this.writeSimpleInto(p,f,m,l),a.addChildNode(m)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[d,p]=u,f=Cs.XmlNode.of(d);if(typeof p!="string")if(r instanceof Cs.XmlNode||r instanceof Cs.XmlText)a.addChildNode(r);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,p,f,l),a.addChildNode(f)}return l&&a.addAttribute(c,l),a}writeList(e,r,n,s){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getValueSchema(),c=a.getMergedTraits(),l=!!c.sparse,u=!!o.xmlFlattened,[d,p]=this.getXmlnsAttribute(e,s),f=i((m,A)=>{if(a.isListSchema())this.writeList(a,Array.isArray(A)?A:[A],m,p);else if(a.isMapSchema())this.writeMap(a,A,m,p);else if(a.isStructSchema()){let h=this.writeStruct(a,A,p);m.addChildNode(h.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let h=Cs.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,A,h,p),m.addChildNode(h)}},"writeItem");if(u)for(let m of r)(l||m!=null)&&f(n,m);else{let m=Cs.XmlNode.of(o.xmlName??e.getMemberName());p&&m.addAttribute(d,p);for(let A of r)(l||A!=null)&&f(m,A);n.addChildNode(m)}}writeMap(e,r,n,s,o=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),c=e.getKeySchema(),u=c.getMergedTraits().xmlName??"key",d=e.getValueSchema(),p=d.getMergedTraits(),f=p.xmlName??"value",m=!!p.sparse,A=!!a.xmlFlattened,[h,E]=this.getXmlnsAttribute(e,s),y=i((I,x,b)=>{let N=Cs.XmlNode.of(u,x),[v,_]=this.getXmlnsAttribute(c,E);_&&N.addAttribute(v,_),I.addChildNode(N);let J=Cs.XmlNode.of(f);d.isListSchema()?this.writeList(d,b,J,E):d.isMapSchema()?this.writeMap(d,b,J,E,!0):d.isStructSchema()?J=this.writeStruct(d,b,E):this.writeSimpleInto(d,b,J,E),I.addChildNode(J)},"addKeyValue");if(A)for(let I in r){let x=r[I];if(m||x!=null){let b=Cs.XmlNode.of(a.xmlName??e.getMemberName());y(b,I,x),n.addChildNode(b)}}else{let I;o||(I=Cs.XmlNode.of(a.xmlName??e.getMemberName()),E&&I.addAttribute(h,E),n.addChildNode(I));for(let x in r){let b=r[x];if(m||b!=null){let N=Cs.XmlNode.of("entry");y(N,x,b),(o?n:I).addChildNode(N)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=L.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??Pt)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(un(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Po(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Po(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Ye?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(s=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?s=Lo():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return s}writeSimpleInto(e,r,n,s){let o=this.writeSimple(e,r),a=L.of(e),c=new Cs.XmlText(o),[l,u]=this.getXmlnsAttribute(a,s);u&&n.addAttribute(l,u),n.addChildNode(c)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}}});var zy,s9=g(()=>{jS();jD();n9();zy=class extends Al{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Hy(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new cp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var ZD,M_e=g(()=>{Se();We();Gy();r9();s9();ZD=class extends qd{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Pi;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new zy(r),this.serializer=new zd(this.codec.createSerializer(),r),this.deserializer=new Hd(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=L.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("'+s.body),s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=XD(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let h of Object.keys(s.Error))s[h]=s.Error[h],h.toLowerCase()==="message"&&(s.message=s.Error[h]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=L.of(c),d=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({});await this.deserializeHttpMessage(c,r,n,s);let m={},A=this.codec.createDeserializer();for(let[h,E]of u.structIterator()){let y=E.getMergedTraits().xmlName??h,I=s.Error?.[y]??s[y];m[h]=A.readSchema(E,I)}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var F_e,U_e=g(()=>{Ie();F_e=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,c_(t)},"awsExpectUnion")});var q_e,G_e,$_e,H_e=g(()=>{q_e=i(t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},"_toStr"),G_e=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},"_toBool"),$_e=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t},"_toNum")});var o9={};Mr(o9,{AwsEc2QueryProtocol:()=>KD,AwsJson1_0Protocol:()=>HD,AwsJson1_1Protocol:()=>zD,AwsJsonRpcProtocol:()=>ap,AwsQueryProtocol:()=>lp,AwsRestJsonProtocol:()=>ml,AwsRestXmlProtocol:()=>ZD,AwsSmithyRpcV2CborProtocol:()=>GD,JsonCodec:()=>wy,JsonCodec2:()=>bi,JsonShapeDeserializer:()=>Jd,JsonShapeDeserializer2:()=>Wd,JsonShapeSerializer:()=>jd,JsonShapeSerializer2:()=>Yd,QueryShapeSerializer:()=>$y,XmlCodec:()=>zy,XmlShapeDeserializer:()=>cp,XmlShapeSerializer:()=>Hy,_toBool:()=>G_e,_toNum:()=>$_e,_toStr:()=>q_e,awsExpectUnion:()=>F_e,loadJsonRpcErrorCode:()=>Cy,loadRestJsonErrorCode:()=>Ey,loadRestXmlErrorCode:()=>XD,parseJsonBody:()=>mu,parseJsonErrorBody:()=>SQ,parseXmlBody:()=>t9,parseXmlErrorBody:()=>O_e});var Tm=g(()=>{b_e();B_e();R_e();$D();N_e();Se();Q_e();e9();Z6();M_e();s9();jD();n9();r9();U_e();H_e()});var KS,Pm,ek,z_e,J_e,tk,i9,V_e,a9,Vy,W_e,Y_e,pTt,Ys,fTt,j_e,K_e=g(()=>{vt();KS="ref",Pm=-1,ek=!0,z_e="isSet",J_e="PartitionResult",tk="booleanEquals",i9="getAttr",V_e={[KS]:"Endpoint"},a9={[KS]:J_e},Vy={},W_e=[{[KS]:"Region"}],Y_e={conditions:[[z_e,[V_e]],[z_e,W_e],["aws.partition",W_e,J_e],[tk,[{[KS]:"UseFIPS"},ek]],[tk,[{[KS]:"UseDualStack"},ek]],[tk,[{fn:i9,argv:[a9,"supportsDualStack"]},ek]],[tk,[{fn:i9,argv:[a9,"supportsFIPS"]},ek]],["stringEquals",[{fn:i9,argv:[a9,"name"]},"aws-us-gov"]]],results:[[Pm],[Pm,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Pm,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[V_e,Vy],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Vy],[Pm,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Vy],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Vy],[Pm,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Vy],[Pm,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Vy],[Pm,"Invalid Configuration: Missing Region"]]},pTt=2,Ys=1e8,fTt=new Int32Array([-1,1,-1,0,13,3,1,4,Ys+12,2,5,Ys+12,3,8,6,4,7,Ys+11,5,Ys+9,Ys+10,4,11,9,6,10,Ys+8,7,Ys+6,Ys+7,5,12,Ys+5,6,Ys+4,Ys+5,3,Ys+1,14,4,Ys+2,Ys+3]),j_e=wi.from(fTt,pTt,Y_e.conditions,Y_e.results)});var mTt,X_e,Z_e=g(()=>{yt();vt();K_e();mTt=new Si({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),X_e=i((t,e={})=>mTt.get(t,()=>Yc(j_e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Vs.aws=Ea});var An,rk=g(()=>{Ce();An=class t extends Ci{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var XS,ZS,ex,tx,rx,nx,sx,ox,ix,ax,cx,c9=g(()=>{rk();XS=class t extends An{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},ZS=class t extends An{static{i(this,"AuthorizationPendingException")}static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ex=class t extends An{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},tx=class t extends An{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},rx=class t extends An{static{i(this,"InvalidClientException")}static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},nx=class t extends An{static{i(this,"InvalidGrantException")}static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},sx=class t extends An{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},ox=class t extends An{static{i(this,"InvalidScopeException")}static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ix=class t extends An{static{i(this,"SlowDownException")}static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},ax=class t extends An{static{i(this,"UnauthorizedClientException")}static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},cx=class t extends An{static{i(this,"UnsupportedGrantTypeException")}static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var ATt,hTt,gTt,yTt,ETt,CTt,ITt,wTt,STt,xTt,bTt,BTt,RTt,NTt,TTt,PTt,vTt,_Tt,QTt,DTt,hl,kTt,LTt,OTt,MTt,FTt,hr,UTt,Sa,qTt,GTt,xa,$Tt,eQe,tQe,HTt,rQe,zTt,VTt,WTt,Lr,nQe,sQe,vi,oQe,iQe,aQe,cQe,lQe,uQe,dQe,pQe,fQe,mQe,AQe,l9,YTt,JTt,jTt,KTt,hQe,gQe,yQe,u9,nk=g(()=>{We();c9();rk();ATt="AccessDeniedException",hTt="AuthorizationPendingException",gTt="AccessToken",yTt="ClientSecret",ETt="CreateToken",CTt="CreateTokenRequest",ITt="CreateTokenResponse",wTt="CodeVerifier",STt="ExpiredTokenException",xTt="InvalidClientException",bTt="InvalidGrantException",BTt="InvalidRequestException",RTt="InternalServerException",NTt="InvalidScopeException",TTt="IdToken",PTt="RefreshToken",vTt="SlowDownException",_Tt="UnauthorizedClientException",QTt="UnsupportedGrantTypeException",DTt="accessToken",hl="client",kTt="clientId",LTt="clientSecret",OTt="codeVerifier",MTt="code",FTt="deviceCode",hr="error",UTt="expiresIn",Sa="error_description",qTt="grantType",GTt="http",xa="httpError",$Tt="idToken",eQe="reason",tQe="refreshToken",HTt="redirectUri",rQe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",zTt="scope",VTt="server",WTt="tokenType",Lr="com.amazonaws.ssooidc",nQe=new ht(rQe),sQe=[-3,rQe,"SSOOIDCServiceException",0,[],[]];nQe.registerError(sQe,An);vi=new ht(Lr),oQe=[-3,Lr,ATt,{[hr]:hl,[xa]:400},[hr,eQe,Sa],[0,0,0]];vi.registerError(oQe,XS);iQe=[-3,Lr,hTt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(iQe,ZS);aQe=[-3,Lr,STt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(aQe,ex);cQe=[-3,Lr,RTt,{[hr]:VTt,[xa]:500},[hr,Sa],[0,0]];vi.registerError(cQe,tx);lQe=[-3,Lr,xTt,{[hr]:hl,[xa]:401},[hr,Sa],[0,0]];vi.registerError(lQe,rx);uQe=[-3,Lr,bTt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(uQe,nx);dQe=[-3,Lr,BTt,{[hr]:hl,[xa]:400},[hr,eQe,Sa],[0,0,0]];vi.registerError(dQe,sx);pQe=[-3,Lr,NTt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(pQe,ox);fQe=[-3,Lr,vTt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(fQe,ix);mQe=[-3,Lr,_Tt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(mQe,ax);AQe=[-3,Lr,QTt,{[hr]:hl,[xa]:400},[hr,Sa],[0,0]];vi.registerError(AQe,cx);l9=[nQe,vi],YTt=[0,Lr,gTt,8,0],JTt=[0,Lr,yTt,8,0],jTt=[0,Lr,wTt,8,0],KTt=[0,Lr,TTt,8,0],hQe=[0,Lr,PTt,8,0],gQe=[3,Lr,CTt,0,[kTt,LTt,qTt,FTt,MTt,tQe,zTt,HTt,OTt],[0,[()=>JTt,0],0,0,0,[()=>hQe,0],64,0,[()=>jTt,0]],3],yQe=[3,Lr,ITt,0,[DTt,WTt,UTt,tQe,$Tt],[[()=>YTt,0],0,1,[()=>hQe,0],[()=>KTt,0]]],u9=[9,Lr,ETt,{[GTt]:["POST","/token",200]},()=>gQe,()=>yQe]});var EQe,CQe=g(()=>{Yn();Tm();Es();fu();Ce();Se();Ie();P6();Z_e();nk();EQe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??mr,base64Encoder:t?.base64Encoder??Pt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??X_e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??r_e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Wn}],logger:t?.logger??new zs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:l9,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??fa,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var sk,IQe,wQe=g(()=>{HS();yt();Yn();Ce();gt();Oo();Ie();sk=R(gu());CQe();IQe=i(t=>{Lc(process.version);let e=Vc(t),r=i(()=>e().then(kc),"defaultConfigProvider"),n=EQe(t);_c(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??_e(Ia,s),bodyLengthChecker:t?.bodyLengthChecker??Uc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ya({serviceId:n.serviceId,clientVersion:op.version}),maxAttempts:t?.maxAttempts??_e(tl,t),region:t?.region??_e(Rn,{...ys,...s}),requestHandler:sk.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??_e({...nl,default:i(async()=>(await r()).retryMode||Bi,"default")},t),streamCollector:t?.streamCollector??sk.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??_e(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??_e(zc,s),userAgentAppId:t?.userAgentAppId??_e(ll,s)}},"getRuntimeConfig")});var SQe,xQe,bQe=g(()=>{SQe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),xQe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var BQe,RQe=g(()=>{yt();Ce();Se();bQe();BQe=i((t,e)=>{let r=Object.assign(ul(t),la(t),Jc(t),SQe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,dl(r),Oc(r),jc(r),xQe(r))},"resolveRuntimeExtensions")});var lx,d9=g(()=>{yt();Es();Ce();gt();vt();Se();Oo();We();P6();v6();wQe();RQe();lx=class extends zn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=IQe(e||{});super(r),this.initConfig=r;let n=s_e(r),s=al(n),o=rl(s),a=_o(o),c=a,l=lu(c),u=n_e(l),d=BQe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Qc(this.config)),this.middlewareStack.use(cl(this.config)),this.middlewareStack.use(Au(this.config)),this.middlewareStack.use(Kc(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(il(this.config)),this.middlewareStack.use(ha(this.config,{httpAuthSchemeParametersProvider:t_e,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(ga(this.config))}destroy(){super.destroy()}}});var NQe,TQe,PQe,vQe=g(()=>{Ce();vt();v6();NQe=Mc(o_e,"AWSSSOOIDCService","SSOOIDCClient",uu),TQe={},PQe=i((t,e,r,n)=>[],"_mw0")});var ux,p9=g(()=>{vQe();nk();ux=class extends NQe(TQe,PQe,"CreateToken",u9){static{i(this,"CreateTokenCommand")}}});var XTt,ok,_Qe=g(()=>{Ce();p9();d9();XTt={CreateTokenCommand:ux},ok=class extends lx{static{i(this,"SSOOIDC")}};Dc(XTt,ok)});var QQe=g(()=>{p9()});var ZTt,ePt,DQe=g(()=>{ZTt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},ePt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var kQe=g(()=>{});var f9={};Mr(f9,{$Command:()=>hs,AccessDeniedException:()=>XS,AccessDeniedException$:()=>oQe,AccessDeniedExceptionReason:()=>ZTt,AuthorizationPendingException:()=>ZS,AuthorizationPendingException$:()=>iQe,CreateToken$:()=>u9,CreateTokenCommand:()=>ux,CreateTokenRequest$:()=>gQe,CreateTokenResponse$:()=>yQe,ExpiredTokenException:()=>ex,ExpiredTokenException$:()=>aQe,InternalServerException:()=>tx,InternalServerException$:()=>cQe,InvalidClientException:()=>rx,InvalidClientException$:()=>lQe,InvalidGrantException:()=>nx,InvalidGrantException$:()=>uQe,InvalidRequestException:()=>sx,InvalidRequestException$:()=>dQe,InvalidRequestExceptionReason:()=>ePt,InvalidScopeException:()=>ox,InvalidScopeException$:()=>pQe,SSOOIDC:()=>ok,SSOOIDCClient:()=>lx,SSOOIDCServiceException:()=>An,SSOOIDCServiceException$:()=>sQe,SlowDownException:()=>ix,SlowDownException$:()=>fQe,UnauthorizedClientException:()=>ax,UnauthorizedClientException$:()=>mQe,UnsupportedGrantTypeException:()=>cx,UnsupportedGrantTypeException$:()=>AQe,__Client:()=>zn,errorTypeRegistries:()=>l9});var m9=g(()=>{d9();_Qe();QQe();Ce();nk();DQe();c9();kQe();rk()});var FQe=w(dx=>{var{setTokenFeature:tPt}=(yt(),Z(Ca)),{getBearerTokenEnvKey:rPt}=(Yn(),Z(wD)),{TokenProviderError:ba,getSSOTokenFilepath:nPt,parseKnownFiles:sPt,getProfileName:oPt,loadSsoSessionData:iPt,getSSOTokenFromFile:aPt,memoize:cPt,chain:lPt}=(gt(),Z(Qo)),{promises:uPt}=require("node:fs"),dPt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new ba("Please pass 'signingName' to compute environment variable key",{logger:t});let r=rPt(e);if(!(r in process.env))throw new ba(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return tPt(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),pPt=300*1e3,A9="To refresh this SSO session run 'aws sso login' with the corresponding profile.",fPt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(m9(),Z(f9)),s=i(a=>e.clientConfig?.[a]??e.parentClientConfig?.[a]??r?.[a],"coalesce");return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},"getSsoOidcClient"),mPt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(m9(),Z(f9));return(await fPt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),LQe=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new ba(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${A9}`,!1)},"validateTokenKey"),{writeFile:APt}=uPt,hPt=i((t,e)=>{let r=nPt(t),n=JSON.stringify(e,null,2);return APt(r,n)},"writeSSOTokenToFile"),OQe=new Map,ik=new Map,MQe=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await sPt(t),n=oPt({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new ba(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new ba(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=ik.get(o);if(a)return await a;let l=(await iPt(t))[o];if(!l)throw new ba(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let y of["sso_start_url","sso_region"])if(!l[y])throw new ba(`Sso session '${o}' is missing required property '${y}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await aPt(o)}catch{throw new ba(`The SSO session token associated with profile=${n} was not found or is invalid. ${A9}`,!1)}vm("accessToken",d.accessToken),vm("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:f}=d,m={token:p,expiration:new Date(f)};if(m.expiration.getTime()-Date.now()>pPt)return m;let A=ik.get(o);if(A)return await A;let h=OQe.get(o)??0;if(Date.now()-h<30*1e3)return LQe(m),m;vm("clientId",d.clientId,!0),vm("clientSecret",d.clientSecret,!0),vm("refreshToken",d.refreshToken,!0);let E=(async()=>{try{OQe.set(o,Date.now());let y=await mPt(d,u,t,e);vm("accessToken",y.accessToken),vm("expiresIn",y.expiresIn);let I=new Date(Date.now()+y.expiresIn*1e3);try{await hPt(o,{...d,accessToken:y.accessToken,expiresAt:I.toISOString(),refreshToken:y.refreshToken})}catch{}return{token:y.accessToken,expiration:I}}catch{return LQe(m),m}})();ik.set(o,E);try{return await E}finally{ik.delete(o)}},"fromSso"),gPt=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new ba("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),yPt=i((t={})=>cPt(lPt(MQe(t),async()=>{throw new ba("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0),"nodeProvider");dx.fromEnvSigningName=dPt;dx.fromSso=MQe;dx.fromStatic=gPt;dx.nodeProvider=yPt});function EPt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function CPt(t){return{schemeId:"smithy.api#noAuth"}}var UQe,qQe,GQe,h9=g(()=>{Yn();Ce();UQe=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(EPt,"createAwsAuthSigv4HttpAuthOption");i(CPt,"createSmithyApiNoAuthHttpAuthOption");qQe=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(CPt(t)):e.push(EPt(t)),e},"defaultSSOHttpAuthSchemeProvider"),GQe=i(t=>{let e=pl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var $Qe,HQe,g9=g(()=>{$Qe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),HQe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var px,_m,ak,zQe,JQe,ck,y9,VQe,E9,Wy,WQe,YQe,IPt,Js,wPt,jQe,KQe=g(()=>{vt();px="ref",_m=-1,ak=!0,zQe="isSet",JQe="PartitionResult",ck="booleanEquals",y9="getAttr",VQe={[px]:"Endpoint"},E9={[px]:JQe},Wy={},WQe=[{[px]:"Region"}],YQe={conditions:[[zQe,[VQe]],[zQe,WQe],["aws.partition",WQe,JQe],[ck,[{[px]:"UseFIPS"},ak]],[ck,[{[px]:"UseDualStack"},ak]],[ck,[{fn:y9,argv:[E9,"supportsDualStack"]},ak]],[ck,[{fn:y9,argv:[E9,"supportsFIPS"]},ak]],["stringEquals",[{fn:y9,argv:[E9,"name"]},"aws-us-gov"]]],results:[[_m],[_m,"Invalid Configuration: FIPS and custom endpoint are not supported"],[_m,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[VQe,Wy],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Wy],[_m,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Wy],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Wy],[_m,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Wy],[_m,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Wy],[_m,"Invalid Configuration: Missing Region"]]},IPt=2,Js=1e8,wPt=new Int32Array([-1,1,-1,0,13,3,1,4,Js+12,2,5,Js+12,3,8,6,4,7,Js+11,5,Js+9,Js+10,4,11,9,6,10,Js+8,7,Js+6,Js+7,5,12,Js+5,6,Js+4,Js+5,3,Js+1,14,4,Js+2,Js+3]),jQe=wi.from(wPt,IPt,YQe.conditions,YQe.results)});var SPt,XQe,ZQe=g(()=>{yt();vt();KQe();SPt=new Si({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),XQe=i((t,e={})=>SPt.get(t,()=>Yc(jQe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Vs.aws=Ea});var Ba,lk=g(()=>{Ce();Ba=class t extends Ci{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var fx,mx,Ax,hx,C9=g(()=>{lk();fx=class t extends Ba{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mx=class t extends Ba{static{i(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Ax=class t extends Ba{static{i(this,"TooManyRequestsException")}static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hx=class t extends Ba{static{i(this,"UnauthorizedException")}static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var xPt,bPt,BPt,RPt,NPt,TPt,PPt,vPt,_Pt,QPt,DPt,kPt,LPt,OPt,MPt,uk,dk,FPt,UPt,pk,qPt,eDe,fk,GPt,$Pt,HPt,tDe,zPt,VPt,WPt,_i,rDe,nDe,gx,sDe,oDe,iDe,aDe,I9,YPt,JPt,jPt,cDe,lDe,uDe,w9,mk=g(()=>{We();C9();lk();xPt="AccessTokenType",bPt="GetRoleCredentials",BPt="GetRoleCredentialsRequest",RPt="GetRoleCredentialsResponse",NPt="InvalidRequestException",TPt="RoleCredentials",PPt="ResourceNotFoundException",vPt="SecretAccessKeyType",_Pt="SessionTokenType",QPt="TooManyRequestsException",DPt="UnauthorizedException",kPt="accountId",LPt="accessKeyId",OPt="accessToken",MPt="account_id",uk="client",dk="error",FPt="expiration",UPt="http",pk="httpError",qPt="httpHeader",eDe="httpQuery",fk="message",GPt="roleCredentials",$Pt="roleName",HPt="role_name",tDe="smithy.ts.sdk.synthetic.com.amazonaws.sso",zPt="secretAccessKey",VPt="sessionToken",WPt="x-amz-sso_bearer_token",_i="com.amazonaws.sso",rDe=new ht(tDe),nDe=[-3,tDe,"SSOServiceException",0,[],[]];rDe.registerError(nDe,Ba);gx=new ht(_i),sDe=[-3,_i,NPt,{[dk]:uk,[pk]:400},[fk],[0]];gx.registerError(sDe,fx);oDe=[-3,_i,PPt,{[dk]:uk,[pk]:404},[fk],[0]];gx.registerError(oDe,mx);iDe=[-3,_i,QPt,{[dk]:uk,[pk]:429},[fk],[0]];gx.registerError(iDe,Ax);aDe=[-3,_i,DPt,{[dk]:uk,[pk]:401},[fk],[0]];gx.registerError(aDe,hx);I9=[rDe,gx],YPt=[0,_i,xPt,8,0],JPt=[0,_i,vPt,8,0],jPt=[0,_i,_Pt,8,0],cDe=[3,_i,BPt,0,[$Pt,kPt,OPt],[[0,{[eDe]:HPt}],[0,{[eDe]:MPt}],[()=>YPt,{[qPt]:WPt}]],3],lDe=[3,_i,RPt,0,[GPt],[[()=>uDe,0]]],uDe=[3,_i,TPt,0,[LPt,zPt,VPt,FPt],[0,[()=>JPt,0],[()=>jPt,0],1]],w9=[9,_i,bPt,{[UPt]:["GET","/federation/credentials",200]},()=>cDe,()=>lDe]});var dDe,pDe=g(()=>{Yn();Tm();Es();fu();Ce();Se();Ie();h9();ZQe();mk();dDe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??mr,base64Encoder:t?.base64Encoder??Pt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??XQe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??qQe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Wn}],logger:t?.logger??new zs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:I9,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??fa,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var Ak,fDe,mDe=g(()=>{HS();yt();Yn();Ce();gt();Oo();Ie();Ak=R(gu());pDe();fDe=i(t=>{Lc(process.version);let e=Vc(t),r=i(()=>e().then(kc),"defaultConfigProvider"),n=dDe(t);_c(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??_e(Ia,s),bodyLengthChecker:t?.bodyLengthChecker??Uc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ya({serviceId:n.serviceId,clientVersion:op.version}),maxAttempts:t?.maxAttempts??_e(tl,t),region:t?.region??_e(Rn,{...ys,...s}),requestHandler:Ak.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??_e({...nl,default:i(async()=>(await r()).retryMode||Bi,"default")},t),streamCollector:t?.streamCollector??Ak.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??_e(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??_e(zc,s),userAgentAppId:t?.userAgentAppId??_e(ll,s)}},"getRuntimeConfig")});var ADe,hDe,gDe=g(()=>{ADe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),hDe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var yDe,EDe=g(()=>{yt();Ce();Se();gDe();yDe=i((t,e)=>{let r=Object.assign(ul(t),la(t),Jc(t),ADe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,dl(r),Oc(r),jc(r),hDe(r))},"resolveRuntimeExtensions")});var yx,S9=g(()=>{yt();Es();Ce();gt();vt();Se();Oo();We();h9();g9();mDe();EDe();yx=class extends zn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=fDe(e||{});super(r),this.initConfig=r;let n=$Qe(r),s=al(n),o=rl(s),a=_o(o),c=a,l=lu(c),u=GQe(l),d=yDe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Qc(this.config)),this.middlewareStack.use(cl(this.config)),this.middlewareStack.use(Au(this.config)),this.middlewareStack.use(Kc(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(il(this.config)),this.middlewareStack.use(ha(this.config,{httpAuthSchemeParametersProvider:UQe,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(ga(this.config))}destroy(){super.destroy()}}});var CDe,IDe,wDe,SDe=g(()=>{Ce();vt();g9();CDe=Mc(HQe,"SWBPortalService","SSOClient",uu),IDe={},wDe=i((t,e,r,n)=>[],"_mw0")});var Ex,x9=g(()=>{SDe();mk();Ex=class extends CDe(IDe,wDe,"GetRoleCredentials",w9){static{i(this,"GetRoleCredentialsCommand")}}});var KPt,hk,xDe=g(()=>{Ce();x9();S9();KPt={GetRoleCredentialsCommand:Ex},hk=class extends yx{static{i(this,"SSO")}};Dc(KPt,hk)});var bDe=g(()=>{x9()});var BDe=g(()=>{});var RDe={};Mr(RDe,{$Command:()=>hs,GetRoleCredentials$:()=>w9,GetRoleCredentialsCommand:()=>Ex,GetRoleCredentialsRequest$:()=>cDe,GetRoleCredentialsResponse$:()=>lDe,InvalidRequestException:()=>fx,InvalidRequestException$:()=>sDe,ResourceNotFoundException:()=>mx,ResourceNotFoundException$:()=>oDe,RoleCredentials$:()=>uDe,SSO:()=>hk,SSOClient:()=>yx,SSOServiceException:()=>Ba,SSOServiceException$:()=>nDe,TooManyRequestsException:()=>Ax,TooManyRequestsException$:()=>iDe,UnauthorizedException:()=>hx,UnauthorizedException$:()=>aDe,__Client:()=>zn,errorTypeRegistries:()=>I9});var NDe=g(()=>{S9();xDe();bDe();Ce();mk();C9();BDe();lk()});var TDe=w(b9=>{var{GetRoleCredentialsCommand:XPt,SSOClient:ZPt}=(NDe(),Z(RDe));b9.GetRoleCredentialsCommand=XPt;b9.SSOClient=ZPt});var B9=w(gk=>{var{CredentialsProviderError:Ra,getSSOTokenFromFile:evt,getProfileName:tvt,parseKnownFiles:rvt,loadSsoSessionData:nvt}=(gt(),Z(Qo)),{setCredentialFeature:PDe}=(yt(),Z(Ca)),{fromSso:svt}=FQe(),_De=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),Cx=!1,vDe=i(async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:s,ssoClient:o,clientConfig:a,parentClientConfig:c,callerClientConfig:l,profile:u,filepath:d,configFilepath:p,ignoreCache:f,logger:m})=>{let A,h="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fe=await svt({profile:u,filepath:d,configFilepath:p,ignoreCache:f,clientConfig:a,parentClientConfig:c,logger:m})({callerClientConfig:l});A={accessToken:fe.token,expiresAt:new Date(fe.expiration).toISOString()}}catch(fe){throw new Ra(fe.message,{tryNextLink:Cx,logger:m})}else try{A=await evt(t)}catch{throw new Ra(`The SSO session associated with this profile is invalid. ${h}`,{tryNextLink:Cx,logger:m})}if(new Date(A.expiresAt).getTime()-Date.now()<=0)throw new Ra(`The SSO session associated with this profile has expired. ${h}`,{tryNextLink:Cx,logger:m});let{accessToken:E}=A,{SSOClient:y,GetRoleCredentialsCommand:I}=TDe(),x=o||new y(Object.assign({},a??{},{logger:a?.logger??l?.logger??c?.logger,region:a?.region??n,userAgentAppId:a?.userAgentAppId??l?.userAgentAppId??c?.userAgentAppId})),b;try{b=await x.send(new I({accountId:r,roleName:s,accessToken:E}))}catch(fe){throw new Ra(fe,{tryNextLink:Cx,logger:m})}let{roleCredentials:{accessKeyId:N,secretAccessKey:v,sessionToken:_,expiration:J,credentialScope:ve,accountId:Qe}={}}=b;if(!N||!v||!_||!J)throw new Ra("SSO returns an invalid temporary credential.",{tryNextLink:Cx,logger:m});let Fe={accessKeyId:N,secretAccessKey:v,sessionToken:_,expiration:new Date(J),...ve&&{credentialScope:ve},...Qe&&{accountId:Qe}};return e?PDe(Fe,"CREDENTIALS_SSO","s"):PDe(Fe,"CREDENTIALS_SSO_LEGACY","u"),Fe},"resolveSSOCredentials"),QDe=i((t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:s,sso_role_name:o}=t;if(!r||!n||!s||!o)throw new Ra(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),ovt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=tvt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await rvt(t))[l];if(!d)throw new Ra(`Profile ${l} was not found.`,{logger:t.logger});if(!_De(d))throw new Ra(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let y=(await nvt(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==y.sso_region)throw new Ra("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==y.sso_start_url)throw new Ra("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=y.sso_region,d.sso_start_url=y.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:A,sso_session:h}=QDe(d,t.logger);return vDe({ssoStartUrl:p,ssoSession:h,ssoAccountId:f,ssoRegion:m,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Ra('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return vDe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");gk.fromSSO=ovt;gk.isSsoProfile=_De;gk.validateSsoProfile=QDe});var T9=w(Ek=>{var{SignatureV4:ivt,signatureV4aContainer:DDe}=p6(),Ix={CrtSignerV4:null},R9="X-Amz-S3session-Token",kDe=R9.toLowerCase(),yk=class extends ivt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=LDe(r);e.headers[kDe]=r.sessionToken;let o=this;return ODe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=LDe(r);return delete e.headers[kDe],e.headers[R9]=r.sessionToken,e.query=e.query??{},e.query[R9]=r.sessionToken,ODe(this,s),this.presign(e,n)}};function LDe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(LDe,"getCredentialsWithoutSessionToken");function ODe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(ODe,"setSingleOverride");var N9=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof Ix.CrtSignerV4=="function"?"crt":typeof DDe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new yk(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=Ix.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Ix.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Ix.CrtSignerV4,r=DDe.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};Ek.SignatureV4MultiRegion=N9;Ek.SignatureV4SignWithCredentials=yk;Ek.signatureV4CrtContainer=Ix});var Jy,Qm,wx,MDe,VDe,Sx,Pn,P9,FDe,UDe,qDe,GDe,$De,vn,v9,Yy,HDe,zDe,avt,pt,cvt,WDe,YDe=g(()=>{vt();Jy="ref",Qm=-1,wx=!0,MDe="isSet",VDe="PartitionResult",Sx="booleanEquals",Pn="stringEquals",P9="getAttr",FDe="us-east-1",UDe="sigv4",qDe="sts",GDe="https://sts.{Region}.{PartitionResult#dnsSuffix}",$De={[Jy]:"Endpoint"},vn={[Jy]:"Region"},v9={[Jy]:VDe},Yy={},HDe=[vn],zDe={conditions:[[MDe,[$De]],[MDe,HDe],["aws.partition",HDe,VDe],[Sx,[{[Jy]:"UseFIPS"},wx]],[Sx,[{[Jy]:"UseDualStack"},wx]],[Pn,[vn,"aws-global"]],[Sx,[{[Jy]:"UseGlobalEndpoint"},wx]],[Pn,[vn,"eu-central-1"]],[Sx,[{fn:P9,argv:[v9,"supportsDualStack"]},wx]],[Sx,[{fn:P9,argv:[v9,"supportsFIPS"]},wx]],[Pn,[vn,"ap-south-1"]],[Pn,[vn,"eu-north-1"]],[Pn,[vn,"eu-west-1"]],[Pn,[vn,"eu-west-2"]],[Pn,[vn,"eu-west-3"]],[Pn,[vn,"sa-east-1"]],[Pn,[vn,FDe]],[Pn,[vn,"us-east-2"]],[Pn,[vn,"us-west-2"]],[Pn,[vn,"us-west-1"]],[Pn,[vn,"ca-central-1"]],[Pn,[vn,"ap-southeast-1"]],[Pn,[vn,"ap-northeast-1"]],[Pn,[vn,"ap-southeast-2"]],[Pn,[{fn:P9,argv:[v9,"name"]},"aws-us-gov"]]],results:[[Qm],["https://sts.amazonaws.com",{authSchemes:[{name:UDe,signingName:qDe,signingRegion:FDe}]}],[GDe,{authSchemes:[{name:UDe,signingName:qDe,signingRegion:"{Region}"}]}],[Qm,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qm,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[$De,Yy],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yy],[Qm,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Yy],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Yy],[Qm,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Yy],[Qm,"DualStack is enabled but this partition does not support DualStack"],[GDe,Yy],[Qm,"Invalid Configuration: Missing Region"]]},avt=2,pt=1e8,cvt=new Int32Array([-1,1,-1,0,30,3,1,4,pt+14,2,5,pt+14,3,25,6,4,24,7,5,pt+1,8,6,9,pt+13,7,pt+1,10,10,pt+1,11,11,pt+1,12,12,pt+1,13,13,pt+1,14,14,pt+1,15,15,pt+1,16,16,pt+1,17,17,pt+1,18,18,pt+1,19,19,pt+1,20,20,pt+1,21,21,pt+1,22,22,pt+1,23,23,pt+1,pt+2,8,pt+11,pt+12,4,28,26,9,27,pt+10,24,pt+8,pt+9,8,29,pt+7,9,pt+6,pt+7,3,pt+3,31,4,pt+4,pt+5]),WDe=wi.from(cvt,avt,zDe.conditions,zDe.results)});var lvt,Ck,_9=g(()=>{yt();vt();YDe();lvt=new Si({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ck=i((t,e={})=>lvt.get(t,()=>Yc(WDe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Vs.aws=Ea});function KDe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Q9(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function XDe(t){return{schemeId:"smithy.api#noAuth"}}var JDe,uvt,dvt,jDe,pvt,fvt,ZDe,eke,D9=g(()=>{Yn();JDe=R(T9());Ce();vt();_9();uvt=i(t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await t(e,r,n),o=xt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await uS(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),dvt=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),jDe=uvt(dvt);i(KDe,"createAwsAuthSigv4HttpAuthOption");i(Q9,"createAwsAuthSigv4aHttpAuthOption");i(XDe,"createSmithyApiNoAuthHttpAuthOption");pvt=i((t,e,r)=>i(s=>{let a=t(s).properties?.authSchemes;if(!a)return e(s);let c=[];for(let l of a){let{name:u,properties:d={},...p}=l,f=u.toLowerCase();u!==f&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let E=a.find(y=>{let I=y.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(JDe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&E)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let A=r[m];if(!A)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let h=A(s);h.schemeId=m,h.signingProperties={...h.signingProperties||{},...p,...d},c.push(h)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),fvt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(XDe(t)),e.push(Q9(t))):(e.push(KDe(t)),e.push(Q9(t))),e},"_defaultSTSHttpAuthSchemeProvider"),ZDe=pvt(Ck,fvt,{"aws.auth#sigv4":KDe,"aws.auth#sigv4a":Q9,"smithy.api#noAuth":XDe}),eke=i(t=>{let e=pl(t),r=LS(e);return Object.assign(r,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var tke,rke,k9=g(()=>{tke=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),rke={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var js,Ik=g(()=>{Ce();js=class t extends Ci{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var xx,bx,Bx,Rx,Nx,Tx,Px,L9=g(()=>{Ik();xx=class t extends js{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bx=class t extends js{static{i(this,"MalformedPolicyDocumentException")}static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Bx=class t extends js{static{i(this,"PackedPolicyTooLargeException")}static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Rx=class t extends js{static{i(this,"RegionDisabledException")}static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Nx=class t extends js{static{i(this,"IDPRejectedClaimException")}static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Tx=class t extends js{static{i(this,"InvalidIdentityTokenException")}static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Px=class t extends js{static{i(this,"IDPCommunicationErrorException")}static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var mvt,Avt,hvt,gvt,yvt,Evt,O9,Cvt,Ivt,wvt,Svt,M9,xvt,nke,bvt,Bvt,Rvt,Nvt,Tvt,Pvt,vvt,_vt,ske,oke,ike,Qvt,Dvt,kvt,Lvt,Ovt,Mvt,ake,Fvt,Uvt,cke,qvt,lke,Gvt,$vt,F9,Hvt,zvt,uke,dke,Vvt,Wvt,Yvt,Jvt,jvt,Kvt,Xvt,Zvt,Dm,km,e_t,Lm,Om,Mm,t_t,pke,r_t,Yt,fke,mke,up,Ake,hke,gke,yke,Eke,Cke,Ike,U9,n_t,s_t,q9,wke,Ske,xke,bke,G9,Bke,Rke,Nke,Tke,o_t,i_t,$9,H9,vx=g(()=>{We();L9();Ik();mvt="Arn",Avt="AccessKeyId",hvt="AssumeRole",gvt="AssumedRoleId",yvt="AssumeRoleRequest",Evt="AssumeRoleResponse",O9="AssumedRoleUser",Cvt="AssumeRoleWithWebIdentity",Ivt="AssumeRoleWithWebIdentityRequest",wvt="AssumeRoleWithWebIdentityResponse",Svt="Audience",M9="Credentials",xvt="ContextAssertion",nke="DurationSeconds",bvt="Expiration",Bvt="ExternalId",Rvt="ExpiredTokenException",Nvt="IDPCommunicationErrorException",Tvt="IDPRejectedClaimException",Pvt="InvalidIdentityTokenException",vvt="Key",_vt="MalformedPolicyDocumentException",ske="MinimumSessionTokenSize",oke="Policy",ike="PolicyArns",Qvt="ProviderArn",Dvt="ProvidedContexts",kvt="ProvidedContextsListType",Lvt="ProvidedContext",Ovt="PolicyDescriptorType",Mvt="ProviderId",ake="PackedPolicySize",Fvt="PackedPolicyTooLargeException",Uvt="Provider",cke="RoleArn",qvt="RegionDisabledException",lke="RoleSessionName",Gvt="SecretAccessKey",$vt="SubjectFromWebIdentityToken",F9="SourceIdentity",Hvt="SerialNumber",zvt="SessionToken",uke="SessionTokenSize",dke="SessionTokenUtilization",Vvt="Tags",Wvt="TokenCode",Yvt="TransitiveTagKeys",Jvt="Tag",jvt="Value",Kvt="WebIdentityToken",Xvt="arn",Zvt="accessKeySecretType",Dm="awsQueryError",km="client",e_t="clientTokenType",Lm="error",Om="httpError",Mm="message",t_t="policyDescriptorListType",pke="smithy.ts.sdk.synthetic.com.amazonaws.sts",r_t="tagListType",Yt="com.amazonaws.sts",fke=new ht(pke),mke=[-3,pke,"STSServiceException",0,[],[]];fke.registerError(mke,js);up=new ht(Yt),Ake=[-3,Yt,Rvt,{[Dm]:["ExpiredTokenException",400],[Lm]:km,[Om]:400},[Mm],[0]];up.registerError(Ake,xx);hke=[-3,Yt,Nvt,{[Dm]:["IDPCommunicationError",400],[Lm]:km,[Om]:400},[Mm],[0]];up.registerError(hke,Px);gke=[-3,Yt,Tvt,{[Dm]:["IDPRejectedClaim",403],[Lm]:km,[Om]:403},[Mm],[0]];up.registerError(gke,Nx);yke=[-3,Yt,Pvt,{[Dm]:["InvalidIdentityToken",400],[Lm]:km,[Om]:400},[Mm],[0]];up.registerError(yke,Tx);Eke=[-3,Yt,_vt,{[Dm]:["MalformedPolicyDocument",400],[Lm]:km,[Om]:400},[Mm],[0]];up.registerError(Eke,bx);Cke=[-3,Yt,Fvt,{[Dm]:["PackedPolicyTooLarge",400],[Lm]:km,[Om]:400},[Mm],[0]];up.registerError(Cke,Bx);Ike=[-3,Yt,qvt,{[Dm]:["RegionDisabledException",403],[Lm]:km,[Om]:403},[Mm],[0]];up.registerError(Ike,Rx);U9=[fke,up],n_t=[0,Yt,Zvt,8,0],s_t=[0,Yt,e_t,8,0],q9=[3,Yt,O9,0,[gvt,mvt],[0,0],2],wke=[3,Yt,yvt,0,[cke,lke,ike,oke,nke,Vvt,Yvt,Bvt,Hvt,Wvt,F9,Dvt,ske],[0,0,()=>Tke,0,1,()=>i_t,64,0,0,0,0,()=>o_t,1],2],Ske=[3,Yt,Evt,0,[M9,O9,ake,F9,dke,uke],[[()=>G9,0],()=>q9,1,0,1,1]],xke=[3,Yt,Ivt,0,[cke,lke,Kvt,Mvt,ike,oke,nke,ske],[0,0,[()=>s_t,0],0,()=>Tke,0,1,1],3],bke=[3,Yt,wvt,0,[M9,$vt,O9,ake,Uvt,Svt,F9,dke,uke],[[()=>G9,0],0,()=>q9,1,0,0,0,1,1]],G9=[3,Yt,M9,0,[Avt,Gvt,zvt,bvt],[0,[()=>n_t,0],0,4],4],Bke=[3,Yt,Ovt,0,[Xvt],[0]],Rke=[3,Yt,Lvt,0,[Qvt,xvt],[0,0]],Nke=[3,Yt,Jvt,0,[vvt,jvt],[0,0],2],Tke=[1,Yt,t_t,0,()=>Bke],o_t=[1,Yt,kvt,0,()=>Rke],i_t=[1,Yt,r_t,0,()=>Nke],$9=[9,Yt,hvt,0,()=>wke,()=>Ske],H9=[9,Yt,Cvt,0,()=>xke,()=>bke]});var Pke,vke,_ke=g(()=>{Yn();Tm();Pke=R(T9());Es();fu();Ce();Se();Ie();D9();_9();vx();vke=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??mr,base64Encoder:t?.base64Encoder??Pt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ck,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ZDe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new hu},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Wn}],logger:t?.logger??new zs,protocol:t?.protocol??lp,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:U9,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??fa,signerConstructor:t?.signerConstructor??Pke.SignatureV4MultiRegion,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var wk,Qke,Dke=g(()=>{HS();yt();Yn();Es();Ce();gt();Oo();Ie();wk=R(gu());_ke();Qke=i(t=>{Lc(process.version);let e=Vc(t),r=i(()=>e().then(kc),"defaultConfigProvider"),n=vke(t);_c(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??_e(Ia,s),bodyLengthChecker:t?.bodyLengthChecker??Uc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ya({serviceId:n.serviceId,clientVersion:op.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4")||(async a=>await t.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new pn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new hu},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Wn}],maxAttempts:t?.maxAttempts??_e(tl,t),region:t?.region??_e(Rn,{...ys,...s}),requestHandler:wk.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??_e({...nl,default:i(async()=>(await r()).retryMode||Bi,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??_e(OS,s),streamCollector:t?.streamCollector??wk.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??_e(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??_e(zc,s),userAgentAppId:t?.userAgentAppId??_e(ll,s)}},"getRuntimeConfig")});var kke,Lke,Oke=g(()=>{kke=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Lke=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var Mke,Fke=g(()=>{yt();Ce();Se();Oke();Mke=i((t,e)=>{let r=Object.assign(ul(t),la(t),Jc(t),kke(t));return e.forEach(n=>n.configure(r)),Object.assign(t,dl(r),Oc(r),jc(r),Lke(r))},"resolveRuntimeExtensions")});var dp,Sk=g(()=>{yt();Es();Ce();gt();vt();Se();Oo();We();D9();k9();Dke();Fke();dp=class extends zn{static{i(this,"STSClient")}config;constructor(...[e]){let r=Qke(e||{});super(r),this.initConfig=r;let n=tke(r),s=al(n),o=rl(s),a=_o(o),c=a,l=lu(c),u=eke(l),d=Mke(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Qc(this.config)),this.middlewareStack.use(cl(this.config)),this.middlewareStack.use(Au(this.config)),this.middlewareStack.use(Kc(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(il(this.config)),this.middlewareStack.use(ha(this.config,{httpAuthSchemeParametersProvider:jDe,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(ga(this.config))}destroy(){super.destroy()}}});var xk,bk,Bk,z9=g(()=>{Ce();vt();k9();xk=Mc(rke,"AWSSecurityTokenServiceV20110615","STSClient",uu),bk={},Bk=i((t,e,r,n)=>[],"_mw0")});var Fm,Rk=g(()=>{z9();vx();Fm=class extends xk(bk,Bk,"AssumeRole",$9){static{i(this,"AssumeRoleCommand")}}});var Um,Nk=g(()=>{z9();vx();Um=class extends xk(bk,Bk,"AssumeRoleWithWebIdentity",H9){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var a_t,Tk,Uke=g(()=>{Ce();Rk();Nk();Sk();a_t={AssumeRoleCommand:Fm,AssumeRoleWithWebIdentityCommand:Um},Tk=class extends dp{static{i(this,"STS")}};Dc(a_t,Tk)});var qke=g(()=>{Rk();Nk()});var Gke=g(()=>{});var $ke,Hke,zke,Vke,Wke,Yke=g(()=>{yt();Rk();Nk();$ke=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),Hke=i(async(t,e,r,n={})=>{let s=typeof t=="function"?await t():t,o=typeof e=="function"?await e():e,a="",c=s??o??(a=await uD(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),zke=i((t,e)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:d=t?.parentClientConfig?.logger,profile:p=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:A,userAgentAppId:h=t?.parentClientConfig?.userAgentAppId}=t,E=await Hke(f,t?.parentClientConfig?.region,A,{logger:d,profile:p}),y=!Wke(m);r=new e({...t,userAgentAppId:h,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:E,requestHandler:y?m:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Fm(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=$ke(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return Bd(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),Vke=i((t,e)=>{let r;return async n=>{if(!r){let{logger:l=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:d,requestHandler:p=t?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=t?.parentClientConfig?.userAgentAppId}=t,A=await Hke(d,t?.parentClientConfig?.region,f,{logger:l,profile:u}),h=!Wke(p);r=new e({...t,userAgentAppId:m,profile:u,region:A,requestHandler:h?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Um(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=$ke(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&Bd(c,"RESOLVED_ACCOUNT_ID","T"),Bd(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),Wke=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var Jke,jke,Kke,c_t,Xke=g(()=>{Yke();Sk();Jke=i((t,e)=>e?class extends t{static{i(this,"CustomizableSTSClient")}constructor(n){super(n);for(let s of e)this.middlewareStack.use(s)}}:t,"getCustomizableStsClientCtor"),jke=i((t={},e)=>zke(t,Jke(dp,e)),"getDefaultRoleAssumer"),Kke=i((t={},e)=>Vke(t,Jke(dp,e)),"getDefaultRoleAssumerWithWebIdentity"),c_t=i(t=>e=>t({roleAssumer:jke(e),roleAssumerWithWebIdentity:Kke(e),...e}),"decorateDefaultCredentialProvider")});var V9={};Mr(V9,{$Command:()=>hs,AssumeRole$:()=>$9,AssumeRoleCommand:()=>Fm,AssumeRoleRequest$:()=>wke,AssumeRoleResponse$:()=>Ske,AssumeRoleWithWebIdentity$:()=>H9,AssumeRoleWithWebIdentityCommand:()=>Um,AssumeRoleWithWebIdentityRequest$:()=>xke,AssumeRoleWithWebIdentityResponse$:()=>bke,AssumedRoleUser$:()=>q9,Credentials$:()=>G9,ExpiredTokenException:()=>xx,ExpiredTokenException$:()=>Ake,IDPCommunicationErrorException:()=>Px,IDPCommunicationErrorException$:()=>hke,IDPRejectedClaimException:()=>Nx,IDPRejectedClaimException$:()=>gke,InvalidIdentityTokenException:()=>Tx,InvalidIdentityTokenException$:()=>yke,MalformedPolicyDocumentException:()=>bx,MalformedPolicyDocumentException$:()=>Eke,PackedPolicyTooLargeException:()=>Bx,PackedPolicyTooLargeException$:()=>Cke,PolicyDescriptorType$:()=>Bke,ProvidedContext$:()=>Rke,RegionDisabledException:()=>Rx,RegionDisabledException$:()=>Ike,STS:()=>Tk,STSClient:()=>dp,STSServiceException:()=>js,STSServiceException$:()=>mke,Tag$:()=>Nke,__Client:()=>zn,decorateDefaultCredentialProvider:()=>c_t,errorTypeRegistries:()=>U9,getDefaultRoleAssumer:()=>jke,getDefaultRoleAssumerWithWebIdentity:()=>Kke});var W9=g(()=>{Sk();Uke();qke();Ce();vx();L9();Gke();Xke();Ik()});function l_t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function u_t(t){return{schemeId:"smithy.api#noAuth"}}var Zke,eLe,tLe,Y9=g(()=>{Yn();Ce();Zke=i(async(t,e,r)=>({operation:xt(e).operation,region:await bt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(l_t,"createAwsAuthSigv4HttpAuthOption");i(u_t,"createSmithyApiNoAuthHttpAuthOption");eLe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(u_t(t)):e.push(l_t(t)),e},"defaultSigninHttpAuthSchemeProvider"),tLe=i(t=>{let e=pl(t);return Object.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var rLe,nLe,J9=g(()=>{rLe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),nLe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var mp,pp,sLe,jy,oLe,Ky,iLe,K9,Eu,j9,aLe,cLe,fp,pLe,lLe,Pk,Jn,uLe,dLe,d_t,tt,p_t,fLe,mLe=g(()=>{vt();mp="ref",pp=-1,sLe=!1,jy=!0,oLe="isSet",Ky="booleanEquals",iLe="coalesce",K9="PartitionResult",Eu="stringEquals",j9="getAttr",aLe="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",cLe={[mp]:"Endpoint"},fp={fn:j9,argv:[{[mp]:K9},"name"]},pLe={[mp]:"Region"},lLe={[mp]:K9},Pk={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Jn={},uLe=[pLe],dLe={conditions:[[oLe,uLe],[Ky,[{fn:iLe,argv:[{[mp]:"IsControlPlane"},sLe]},jy]],[oLe,[cLe]],["aws.partition",uLe,K9],[Ky,[{[mp]:"UseFIPS"},jy]],[Eu,[fp,"aws"]],[Ky,[{fn:iLe,argv:[{[mp]:"IsOAuthEndpoint"},sLe]},jy]],[Ky,[{[mp]:"UseDualStack"},jy]],[Eu,[fp,"aws-cn"]],[Eu,[pLe,"us-gov-west-1"]],[Eu,[fp,"aws-us-gov"]],[Ky,[{fn:j9,argv:[lLe,"supportsFIPS"]},jy]],[Eu,[fp,"aws-iso"]],[Eu,[fp,"aws-iso-b"]],[Eu,[fp,"aws-iso-f"]],[Eu,[fp,"aws-iso-e"]],[Eu,[fp,"aws-eusc"]],[Ky,[{fn:j9,argv:[lLe,"supportsDualStack"]},jy]]],results:[[pp],["https://signin.{Region}.api.aws",Pk],["https://signin.{Region}.api.amazonwebservices.com.cn",Pk],[aLe,Pk],[pp,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Pk],["https://{Region}.signin.aws.amazon.com",Jn],["https://{Region}.signin.amazonaws.cn",Jn],["https://{Region}.signin.amazonaws-us-gov.com",Jn],["https://{Region}.signin.c2shome.ic.gov",Jn],["https://{Region}.signin.sc2shome.sgov.gov",Jn],["https://{Region}.signin.csphome.hci.ic.gov",Jn],["https://{Region}.signin.csphome.adc-e.uk",Jn],["https://{Region}.signin.amazonaws-eusc.eu",Jn],["https://signin-fips.amazonaws-us-gov.com",Jn],["https://{Region}.signin-fips.amazonaws-us-gov.com",Jn],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Jn],[pp,"Invalid Configuration: FIPS and custom endpoint are not supported"],[pp,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[cLe,Jn],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jn],[pp,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Jn],[pp,"FIPS is enabled but this partition does not support FIPS"],[aLe,Jn],[pp,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Jn],[pp,"Invalid Configuration: Missing Region"]]},d_t=2,tt=1e8,p_t=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,tt+27,6,tt+4,tt+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,tt+7,13,10,tt+8,14,12,tt+9,15,13,tt+10,16,14,tt+11,17,15,tt+12,18,16,tt+13,tt+16,6,tt+5,20,7,21,tt+6,17,tt+24,tt+25,6,tt+4,23,7,27,24,9,tt+14,25,10,tt+15,26,11,tt+22,tt+23,11,28,tt+21,17,tt+20,tt+21,2,35,30,3,39,31,4,32,tt+27,6,tt+4,33,7,tt+27,34,9,tt+14,tt+27,3,39,36,4,38,37,7,tt+18,tt+19,6,tt+4,tt+17,5,tt+1,40,8,tt+2,tt+3]),fLe=wi.from(p_t,d_t,dLe.conditions,dLe.results)});var f_t,ALe,hLe=g(()=>{yt();vt();mLe();f_t=new Si({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),ALe=i((t,e={})=>f_t.get(t,()=>Yc(fLe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Vs.aws=Ea});var Na,vk=g(()=>{Ce();Na=class t extends Ci{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var _x,Qx,Dx,kx,X9=g(()=>{vk();_x=class t extends Na{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Qx=class t extends Na{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Dx=class t extends Na{static{i(this,"TooManyRequestsError")}static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},kx=class t extends Na{static{i(this,"ValidationException")}static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var m_t,A_t,h_t,g_t,y_t,E_t,C_t,I_t,w_t,S_t,x_t,b_t,B_t,R_t,N_t,gLe,Z9,T_t,nK,yLe,ELe,P_t,Ap,eK,v_t,tK,__t,xLe,sK,CLe,_n,Qk,Q_t,_k,ILe,bLe,wLe,SLe,D_t,k_t,L_t,rK,O_t,jn,BLe,RLe,Lx,NLe,TLe,PLe,vLe,oK,M_t,_Le,QLe,DLe,kLe,LLe,OLe,MLe,FLe,iK,aK,Ox=g(()=>{We();X9();vk();m_t="AccessDeniedException",A_t="AccessToken",h_t="CreateOAuth2Token",g_t="CreateOAuth2TokenRequest",y_t="CreateOAuth2TokenRequestBody",E_t="CreateOAuth2TokenResponseBody",C_t="CreateOAuth2TokenResponse",I_t="CreateOAuth2TokenWithIAM",w_t="CreateOAuth2TokenWithIAMRequest",S_t="CreateOAuth2TokenWithIAMResponse",x_t="InternalServerException",b_t="OAuthAccessToken",B_t="RefreshToken",R_t="TooManyRequestsError",N_t="ValidationException",gLe="accessKeyId",Z9="accessToken",T_t="access_token",nK="client",yLe="clientId",ELe="codeVerifier",P_t="code",Ap="error",eK="expiresIn",v_t="expires_in",tK="grantType",__t="grant_type",xLe="http",sK="httpError",CLe="idToken",_n="jsonName",Qk="message",Q_t="resource",_k="refreshToken",ILe="redirectUri",bLe="smithy.ts.sdk.synthetic.com.amazonaws.signin",wLe="secretAccessKey",SLe="sessionToken",D_t="server",k_t="tokenInput",L_t="tokenOutput",rK="tokenType",O_t="token_type",jn="com.amazonaws.signin",BLe=new ht(bLe),RLe=[-3,bLe,"SigninServiceException",0,[],[]];BLe.registerError(RLe,Na);Lx=new ht(jn),NLe=[-3,jn,m_t,{[Ap]:nK},[Ap,Qk],[0,0],2];Lx.registerError(NLe,_x);TLe=[-3,jn,x_t,{[Ap]:D_t,[sK]:500},[Ap,Qk],[0,0],2];Lx.registerError(TLe,Qx);PLe=[-3,jn,R_t,{[Ap]:nK,[sK]:429},[Ap,Qk],[0,0],2];Lx.registerError(PLe,Dx);vLe=[-3,jn,N_t,{[Ap]:nK,[sK]:400},[Ap,Qk],[0,0],2];Lx.registerError(vLe,kx);oK=[BLe,Lx],M_t=[0,jn,b_t,8,0],_Le=[0,jn,B_t,8,0],QLe=[3,jn,A_t,8,[gLe,wLe,SLe],[[0,{[_n]:gLe}],[0,{[_n]:wLe}],[0,{[_n]:SLe}]],3],DLe=[3,jn,g_t,0,[k_t],[[()=>kLe,16]],1],kLe=[3,jn,y_t,0,[yLe,tK,P_t,ILe,ELe,_k],[[0,{[_n]:yLe}],[0,{[_n]:tK}],0,[0,{[_n]:ILe}],[0,{[_n]:ELe}],[()=>_Le,{[_n]:_k}]],2],LLe=[3,jn,C_t,0,[L_t],[[()=>OLe,16]],1],OLe=[3,jn,E_t,0,[Z9,rK,eK,_k,CLe],[[()=>QLe,{[_n]:Z9}],[0,{[_n]:rK}],[1,{[_n]:eK}],[()=>_Le,{[_n]:_k}],[0,{[_n]:CLe}]],4],MLe=[3,jn,w_t,0,[tK,Q_t],[[0,{[_n]:__t}],0],2],FLe=[3,jn,S_t,0,[Z9,rK,eK],[[()=>M_t,{[_n]:T_t}],[0,{[_n]:O_t}],[1,{[_n]:v_t}]],3],iK=[9,jn,h_t,{[xLe]:["POST","/v1/token",200]},()=>DLe,()=>LLe],aK=[9,jn,I_t,{[xLe]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>MLe,()=>FLe]});var ULe,qLe=g(()=>{Yn();Tm();Es();fu();Ce();Se();Ie();Y9();hLe();Ox();ULe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??mr,base64Encoder:t?.base64Encoder??Pt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??ALe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??eLe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Wn}],logger:t?.logger??new zs,protocol:t?.protocol??ml,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:oK,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??fa,urlParser:t?.urlParser??Bn,utf8Decoder:t?.utf8Decoder??Yr,utf8Encoder:t?.utf8Encoder??Mt}),"getRuntimeConfig")});var Dk,GLe,$Le=g(()=>{HS();yt();Yn();Ce();gt();Oo();Ie();Dk=R(gu());qLe();GLe=i(t=>{Lc(process.version);let e=Vc(t),r=i(()=>e().then(kc),"defaultConfigProvider"),n=ULe(t);_c(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??_e(Ia,s),bodyLengthChecker:t?.bodyLengthChecker??Uc,defaultUserAgentProvider:t?.defaultUserAgentProvider??ya({serviceId:n.serviceId,clientVersion:op.version}),maxAttempts:t?.maxAttempts??_e(tl,t),region:t?.region??_e(Rn,{...ys,...s}),requestHandler:Dk.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??_e({...nl,default:i(async()=>(await r()).retryMode||Bi,"default")},t),streamCollector:t?.streamCollector??Dk.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??_e(Hc,s),useFipsEndpoint:t?.useFipsEndpoint??_e(zc,s),userAgentAppId:t?.userAgentAppId??_e(ll,s)}},"getRuntimeConfig")});var HLe,zLe,VLe=g(()=>{HLe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),zLe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var WLe,YLe=g(()=>{yt();Ce();Se();VLe();WLe=i((t,e)=>{let r=Object.assign(ul(t),la(t),Jc(t),HLe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,dl(r),Oc(r),jc(r),zLe(r))},"resolveRuntimeExtensions")});var Mx,cK=g(()=>{yt();Es();Ce();gt();vt();Se();Oo();We();Y9();J9();$Le();YLe();Mx=class extends zn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=GLe(e||{});super(r),this.initConfig=r;let n=rLe(r),s=al(n),o=rl(s),a=_o(o),c=a,l=lu(c),u=tLe(l),d=WLe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Qc(this.config)),this.middlewareStack.use(cl(this.config)),this.middlewareStack.use(Au(this.config)),this.middlewareStack.use(Kc(this.config)),this.middlewareStack.use(sl(this.config)),this.middlewareStack.use(ol(this.config)),this.middlewareStack.use(il(this.config)),this.middlewareStack.use(ha(this.config,{httpAuthSchemeParametersProvider:Zke,identityProviderConfigProvider:i(async p=>new Mo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(ga(this.config))}destroy(){super.destroy()}}});var kk,JLe,jLe,Lk,lK=g(()=>{Ce();vt();J9();kk=Mc(nLe,"Signin","SigninClient",uu),JLe={IsControlPlane:{type:"staticContextParams",value:!1}},jLe={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},Lk=i((t,e,r,n)=>[],"_mw0")});var Fx,uK=g(()=>{lK();Ox();Fx=class extends kk(JLe,Lk,"CreateOAuth2Token",iK){static{i(this,"CreateOAuth2TokenCommand")}}});var Ux,dK=g(()=>{lK();Ox();Ux=class extends kk(jLe,Lk,"CreateOAuth2TokenWithIAM",aK){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var F_t,Ok,KLe=g(()=>{Ce();uK();dK();cK();F_t={CreateOAuth2TokenCommand:Fx,CreateOAuth2TokenWithIAMCommand:Ux},Ok=class extends Mx{static{i(this,"Signin")}};Dc(F_t,Ok)});var XLe=g(()=>{uK();dK()});var U_t,ZLe=g(()=>{U_t={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var eOe=g(()=>{});var tOe={};Mr(tOe,{$Command:()=>hs,AccessDeniedException:()=>_x,AccessDeniedException$:()=>NLe,AccessToken$:()=>QLe,CreateOAuth2Token$:()=>iK,CreateOAuth2TokenCommand:()=>Fx,CreateOAuth2TokenRequest$:()=>DLe,CreateOAuth2TokenRequestBody$:()=>kLe,CreateOAuth2TokenResponse$:()=>LLe,CreateOAuth2TokenResponseBody$:()=>OLe,CreateOAuth2TokenWithIAM$:()=>aK,CreateOAuth2TokenWithIAMCommand:()=>Ux,CreateOAuth2TokenWithIAMRequest$:()=>MLe,CreateOAuth2TokenWithIAMResponse$:()=>FLe,InternalServerException:()=>Qx,InternalServerException$:()=>TLe,OAuth2ErrorCode:()=>U_t,Signin:()=>Ok,SigninClient:()=>Mx,SigninServiceException:()=>Na,SigninServiceException$:()=>RLe,TooManyRequestsError:()=>Dx,TooManyRequestsError$:()=>PLe,ValidationException:()=>kx,ValidationException$:()=>vLe,__Client:()=>zn,errorTypeRegistries:()=>oK});var rOe=g(()=>{cK();KLe();XLe();Ce();Ox();ZLe();X9();eOe();vk()});var oOe=w(sOe=>{var{setCredentialFeature:q_t}=(yt(),Z(Ca)),{CredentialsProviderError:hp,parseKnownFiles:G_t,getProfileName:$_t}=(gt(),Z(Qo)),{HttpRequest:H_t}=(Se(),Z(Kd)),{createHash:z_t,createPrivateKey:V_t,createPublicKey:W_t,sign:Y_t}=require("node:crypto"),{promises:pK}=require("node:fs"),{homedir:J_t}=require("node:os"),{dirname:j_t,join:nOe}=require("node:path"),fK=class t{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new hp(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),s=new Date(r.accessToken.expiresAt).getTime(),o=new Date(e.accessToken.expiresAt).getTime(),a=s<=n&&o>n?e:r;if(new Date(a.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(a.accessToken);let{SigninClient:l,CreateOAuth2TokenCommand:u}=(rOe(),Z(tOe)),{logger:d,userAgentAppId:p}=this.callerClientConfig??{},m=i(y=>y?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,A=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,h=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:A,requestHandler:m,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(h.middlewareStack);let E={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let y=await h.send(new u(E)),{accessKeyId:I,secretAccessKey:x,sessionToken:b}=y.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:v}=y.tokenOutput??{};if(!I||!x||!b||!N)throw new hp("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let _=(v??900)*1e3,J=new Date(Date.now()+_),ve={...a,accessToken:{...a.accessToken,accessKeyId:I,secretAccessKey:x,sessionToken:b,expiresAt:J.toISOString()},refreshToken:N};return await this.saveToken(ve),this.toCredentials(ve.accessToken)}catch(y){if(y.name==="AccessDeniedException"){let x=y.error,b;switch(x){case"TOKEN_EXPIRED":b="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":b="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":b="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:b=`Failed to refresh token: ${String(y)}. Please re-authenticate using \`aws login\``}throw new hp(b,{logger:this.logger,tryNextLink:!1})}if(new Date(a.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(y)}. Using existing token until expiry.`),this.toCredentials(a.accessToken);throw new hp(`Failed to refresh token: ${String(y)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await pK.readFile(e,"utf8"),n=JSON.parse(r),s=["accessToken","clientId","refreshToken","dpopKey"].filter(o=>!n[o]);if(n.accessToken?.accountId||s.push("accountId"),s.length>0)throw new hp(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new hp(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=j_t(r);try{await pK.mkdir(n,{recursive:!0})}catch{}await pK.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??nOe(J_t(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=z_t("sha256").update(r).digest("hex");return nOe(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],s=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let o=e[r++],a=e.subarray(r,r+o);s=s[0]===0?s.subarray(1):s,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-s.length),s]),l=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,l])}createDPoPInterceptor(e){e.add(r=>async n=>{if(H_t.isInstance(n.request)){let s=n.request,o=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,a=await this.generateDpop(s.method,o);s.headers={...s.headers,DPoP:a}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let s=V_t({key:n.dpopKey,format:"pem",type:"sec1"}),a=W_t(s).export({format:"der",type:"spki"}),c=-1;for(let I=0;Iasync({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await G_t(t||{}),n=$_t({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new hp(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new fK(s,t,e).loadCredentials();return q_t(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");sOe.fromLoginCredentials=K_t});var AK=w(iOe=>{var{externalDataInterceptor:X_t,CredentialsProviderError:mK,parseKnownFiles:Z_t,getProfileName:eQt}=(gt(),Z(Qo)),{exec:tQt}=require("node:child_process"),{promisify:rQt}=require("node:util"),{setCredentialFeature:nQt}=(yt(),Z(Ca)),sQt=i((t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let o=new Date;if(new Date(e.Expiration){let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=rQt(X_t?.getTokenRecord?.().exec??tQt);try{let{stdout:a}=await o(s),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return sQt(t,c,e)}catch(a){throw new mK(a.message,{logger:r})}}else throw new mK(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new mK(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),iQt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await Z_t(t);return oQt(eQt({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");iOe.fromProcess=iQt});var gK=w(hK=>{var{setCredentialFeature:aQt}=(yt(),Z(Ca)),{CredentialsProviderError:cQt,externalDataInterceptor:lQt}=(gt(),Z(Qo)),{readFileSync:uQt}=require("node:fs"),cOe=i(t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:s,providerId:o,policyArns:a,policy:c,durationSeconds:l}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:d}=(W9(),Z(V9));u=d({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:o,PolicyArns:a,Policy:c,DurationSeconds:l})},"fromWebToken"),aOe="AWS_WEB_IDENTITY_TOKEN_FILE",dQt="AWS_ROLE_ARN",pQt="AWS_ROLE_SESSION_NAME",fQt=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[aOe],n=t?.roleArn??process.env[dQt],s=t?.roleSessionName??process.env[pQt];if(!r||!n)throw new cQt("Web identity configuration not specified",{logger:t.logger});let o=await cOe({...t,webIdentityToken:lQt?.getTokenRecord?.()[r]??uQt(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[aOe]&&aQt(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");hK.fromTokenFile=fQt;hK.fromWebToken=cOe});var AOe=w(mOe=>{var{CredentialsProviderError:Mk,chain:mQt,getProfileName:pOe,parseKnownFiles:AQt}=(gt(),Z(Qo)),{setCredentialFeature:Cu}=(yt(),Z(Ca)),hQt=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=T6(),{fromContainerMetadata:a}=xD();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>mQt(o(s??{}),a(s))().then(yK)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=xD();return async()=>o(s)().then(yK)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=h6();return async()=>o(s)().then(yK)},"Environment")};if(t in n)return n[t];throw new Mk(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),yK=i(t=>Cu(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),gQt=i((t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(yQt(t,{profile:e,logger:r})||EQt(t,{profile:e,logger:r})),"isAssumeRoleProfile"),yQt=i((t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},"isAssumeRoleWithSourceProfile"),EQt=i((t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},"isCredentialSourceProfile"),CQt=i(async(t,e,r,n,s={},o)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=e[t],{source_profile:c,region:l}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=(W9(),Z(V9));r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:l??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(c&&c in s)throw new Mk(`Detected a cycle attempting to resolve credentials for profile ${pOe(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${t}]`}`);let u=c?o(c,e,r,n,{...s,[c]:!0},lOe(e[c]??{})):(await hQt(a.credential_source,t,r.logger)(r))();if(lOe(a))return u.then(d=>Cu(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:p}=a;if(p){if(!r.mfaCodeProvider)throw new Mk(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=p,d.TokenCode=await r.mfaCodeProvider(p)}let f=await u;return r.roleAssumer(f,d).then(m=>Cu(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),lOe=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),IQt=i(t=>!!(t&&t.login_session),"isLoginProfile"),wQt=i(async(t,e,r)=>{let{fromLoginCredentials:n}=oOe(),s=await n({...e,profile:t})({callerClientConfig:r});return Cu(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),SQt=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),xQt=i(async(t,e)=>{let{fromProcess:r}=AK(),n=await r({...t,profile:e})();return Cu(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),bQt=i(async(t,e,r={},n)=>{let{fromSSO:s}=B9();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Cu(o,"CREDENTIALS_PROFILE_SSO","r"):Cu(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),BQt=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),uOe=i(t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,"isStaticCredsProfile"),dOe=i(async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return Cu(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),RQt=i(t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,"isWebIdentityProfile"),NQt=i(async(t,e,r)=>{let{fromTokenFile:n}=gK(),s=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return Cu(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),fOe=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&uOe(a))return dOe(a,r);if(o||gQt(a,{profile:t,logger:r.logger}))return CQt(t,e,r,n,s,fOe);if(uOe(a))return dOe(a,r);if(RQt(a))return NQt(a,r,n);if(SQt(a))return xQt(r,t);if(BQt(a))return await bQt(t,a,r,n);if(IQt(a))return wQt(t,r,n);throw new Mk(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),TQt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await AQt(t);return fOe(pOe({profile:t.profile??e?.profile}),r,t,e)},"fromIni");mOe.fromIni=TQt});var EK=w(Uk=>{var{ENV_KEY:PQt,ENV_SECRET:vQt,fromEnv:_Qt}=h6(),{chain:QQt,CredentialsProviderError:Fk,ENV_PROFILE:DQt}=(gt(),Z(Qo)),hOe="AWS_EC2_METADATA_DISABLED",kQt=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=xD();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=T6();return QQt(o(t),n(t))}return process.env[hOe]&&process.env[hOe]!=="false"?async()=>{throw new Fk("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function LQt(t,e){let r=OQt(t),n,s,o,a,c=i(async l=>{if(l?.forceRefresh)return a||(a=r(l).then(u=>{o=u}).finally(()=>{a=void 0})),await a,o;if(o?.expiration&&o?.expiration?.getTime(){o=u}).catch(()=>{}).finally(()=>{s=void 0}));else return n=r(l).then(u=>{o=u}).finally(()=>{n=void 0}),c(l);return o},"provider");return c}i(LQt,"memoizeChain");var OQt=i(t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(s){if(r=s,s?.tryNextLink)continue;throw s}throw r},"internalCreateChain"),gOe=!1,MQt=i((t={})=>LQt([async()=>{if(t.profile??process.env[DQt])throw process.env[PQt]&&process.env[vQt]&&(gOe||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: Multiple credential sources detected: Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. This SDK will proceed with the AWS_PROFILE value. @@ -142,88 +141,89 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht However, a future version may change this behavior to prefer the ENV static credentials. Please ensure that your environment only sets either the AWS_PROFILE or the AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. -`),KLe=!0)),new _k("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),E_t(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new _k("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=y9();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=JLe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=aK();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=lK();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await w_t(t))()),async()=>{throw new _k("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],XLe),"defaultProvider"),B_t=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),XLe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");Qk.credentialsTreatedAsExpired=XLe;Qk.credentialsWillNeedRefresh=B_t;Qk.defaultProvider=b_t});var Y2e=w(C=>{var{awsEndpointFunctions:R_t,emitWarningIfUnsupportedVersion:N_t,createDefaultUserAgentProvider:T_t,NODE_APP_ID_CONFIG_OPTIONS:v_t,getAwsRegionExtensionConfiguration:P_t,resolveAwsRegionExtensionConfiguration:__t,resolveUserAgentConfig:Q_t,resolveHostHeaderConfig:D_t,getUserAgentPlugin:k_t,getHostHeaderPlugin:L_t,getLoggerPlugin:O_t,getRecursionDetectionPlugin:M_t}=(Et(),ee(ya)),{getHttpAuthSchemeEndpointRuleSetPlugin:F_t,DefaultIdentityProviderConfig:U_t,getHttpSigningPlugin:q_t,createPaginator:Ff}=(ys(),ee(x5)),{normalizeProvider:sOe,getSmithyContext:G_t,ServiceException:H_t,NoOpLogger:$_t,emitWarningIfUnsupportedVersion:z_t,loadConfigsForDefaultMode:V_t,getDefaultExtensionConfiguration:W_t,resolveDefaultRuntimeConfig:Y_t,Client:oOe,makeBuilder:J_t,createWaiter:RO,checkExceptions:iOe,WaiterState:Wy,createAggregatedClient:j_t}=(we(),ee(Dg)),{Command:K_t}=(we(),ee(Dg));C.$Command=K_t;C.__Client=oOe;var{resolveDefaultsModeConfig:X_t,loadConfig:Lf,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Z_t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:eQt,NODE_REGION_CONFIG_OPTIONS:tQt,NODE_REGION_CONFIG_FILE_OPTIONS:rQt,resolveRegionConfig:nQt}=(yt(),ee(Qo)),{BinaryDecisionDiagram:sQt,EndpointCache:oQt,decideEndpoint:iQt,customEndpointFunctions:aQt,resolveEndpointConfig:cQt,getEndpointPlugin:lQt}=(Pt(),ee($J)),{parseUrl:uQt,getHttpHandlerExtensionConfiguration:dQt,resolveHttpHandlerRuntimeConfig:pQt,getContentLengthPlugin:mQt}=(be(),ee(Jd)),{DEFAULT_RETRY_MODE:fQt,NODE_RETRY_MODE_CONFIG_OPTIONS:AQt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:hQt,resolveRetryConfig:gQt,getRetryPlugin:yQt}=(Oo(),ee(c5)),{TypeRegistry:aOe,getSchemaSerdePlugin:EQt}=(Ye(),ee(S8)),{resolveAwsSdkSigV4Config:CQt,AwsSdkSigV4Signer:IQt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:wQt}=(Wn(),ee(AD)),{defaultProvider:SQt}=dK(),{toUtf8:xQt,fromUtf8:bQt,toBase64:BQt,fromBase64:RQt,calculateBodyLength:NQt}=(Se(),ee(mf)),{streamCollector:TQt,NodeHttpHandler:vQt}=hu(),{AwsJson1_1Protocol:PQt}=(xf(),ee(K6)),{Sha256:_Qt}=(pu(),ee(Aj)),QQt=i(async(t,e,r)=>({operation:G_t(e).operation,region:await sOe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function DQt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(DQt,"createAwsAuthSigv4HttpAuthOption");var kQt=i(t=>{let e=[];switch(t.operation){default:e.push(DQt(t))}return e},"defaultECRHttpAuthSchemeProvider"),LQt=i(t=>{let e=CQt(t);return Object.assign(e,{authSchemePreference:sOe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),OQt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),MQt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},FQt="3.1153.0",UQt={version:FQt},Yy="ref",Of=-1,Dk=!0,ZLe="isSet",mK="PartitionResult",Ap="stringEquals",kk="booleanEquals",pK="getAttr",eOe={[Yy]:"Endpoint"},hp={fn:pK,argv:[{[Yy]:mK},"name"]},tOe={[Yy]:mK},Mf={},rOe=[{[Yy]:"Region"}],nOe={conditions:[[ZLe,[eOe]],[ZLe,rOe],["aws.partition",rOe,mK],[Ap,[hp,"aws-eusc"]],[Ap,[hp,"aws-iso-f"]],[Ap,[hp,"aws-iso-e"]],[Ap,[hp,"aws-iso-b"]],[Ap,[hp,"aws-iso"]],[Ap,[hp,"aws-cn"]],[Ap,[hp,"aws-us-gov"]],[Ap,[hp,"aws"]],[kk,[{[Yy]:"UseFIPS"},Dk]],[kk,[{fn:pK,argv:[tOe,"supportsFIPS"]},Dk]],[kk,[{[Yy]:"UseDualStack"},Dk]],[kk,[{fn:pK,argv:[tOe,"supportsDualStack"]},Dk]]],results:[[Of],[Of,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Of,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[eOe,Mf],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Mf],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Mf],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Mf],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Mf],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Mf],[Of,"FIPS and DualStack are enabled, but this partition does not support one or both"],[Of,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Mf],[Of,"DualStack is enabled but this partition does not support DualStack"],[Of,"Invalid Configuration: Missing Region"]]},qQt=2,Qn=1e8,GQt=new Int32Array([-1,1,-1,0,23,3,1,4,Qn+13,2,5,Qn+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,Qn+4,14,Qn+11,Qn+12,12,18,17,13,Qn+9,Qn+10,13,19,Qn+6,14,Qn+8,Qn+9,11,22,21,13,Qn+5,Qn+4,13,Qn+7,Qn+6,11,Qn+1,24,13,Qn+2,Qn+3]),HQt=sQt.from(GQt,qQt,nOe.conditions,nOe.results),$Qt=new oQt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),zQt=i((t,e={})=>$Qt.get(t,()=>iQt(HQt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");aQt.aws=R_t;var ye=class t extends H_t{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},Lk=class t extends ye{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecr#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Ok=class t extends ye{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Mk=class t extends ye{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecr#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Fk=class t extends ye{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecr#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Uk=class t extends ye{static{i(this,"UnableToGetUpstreamImageException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamImageException";name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qk=class t extends ye{static{i(this,"ValidationException")}static shapeId="com.amazonaws.ecr#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Gk=class t extends ye{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecr#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Hk=class t extends ye{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecr#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},$k=class t extends ye{static{i(this,"KmsException")}static shapeId="com.amazonaws.ecr#KmsException";name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.kmsError=e.kmsError}},zk=class t extends ye{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecr#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vk=class t extends ye{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecr#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wk=class t extends ye{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecr#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yk=class t extends ye{static{i(this,"PullThroughCacheRuleAlreadyExistsException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException";name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Jk=class t extends ye{static{i(this,"SecretNotFoundException")}static shapeId="com.amazonaws.ecr#SecretNotFoundException";name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jk=class t extends ye{static{i(this,"UnableToAccessSecretException")}static shapeId="com.amazonaws.ecr#UnableToAccessSecretException";name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kk=class t extends ye{static{i(this,"UnableToDecryptSecretValueException")}static shapeId="com.amazonaws.ecr#UnableToDecryptSecretValueException";name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xk=class t extends ye{static{i(this,"UnsupportedUpstreamRegistryException")}static shapeId="com.amazonaws.ecr#UnsupportedUpstreamRegistryException";name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zk=class t extends ye{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecr#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eL=class t extends ye{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecr#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tL=class t extends ye{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecr#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rL=class t extends ye{static{i(this,"TemplateAlreadyExistsException")}static shapeId="com.amazonaws.ecr#TemplateAlreadyExistsException";name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nL=class t extends ye{static{i(this,"LifecyclePolicyNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyNotFoundException";name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sL=class t extends ye{static{i(this,"PullThroughCacheRuleNotFoundException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleNotFoundException";name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oL=class t extends ye{static{i(this,"RegistryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RegistryPolicyNotFoundException";name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iL=class t extends ye{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecr#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aL=class t extends ye{static{i(this,"TemplateNotFoundException")}static shapeId="com.amazonaws.ecr#TemplateNotFoundException";name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cL=class t extends ye{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lL=class t extends ye{static{i(this,"SigningConfigurationNotFoundException")}static shapeId="com.amazonaws.ecr#SigningConfigurationNotFoundException";name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uL=class t extends ye{static{i(this,"ExclusionNotFoundException")}static shapeId="com.amazonaws.ecr#ExclusionNotFoundException";name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dL=class t extends ye{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecr#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pL=class t extends ye{static{i(this,"ScanNotFoundException")}static shapeId="com.amazonaws.ecr#ScanNotFoundException";name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mL=class t extends ye{static{i(this,"LayerInaccessibleException")}static shapeId="com.amazonaws.ecr#LayerInaccessibleException";name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fL=class t extends ye{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecr#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},AL=class t extends ye{static{i(this,"UnableToGetUpstreamLayerException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamLayerException";name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hL=class t extends ye{static{i(this,"LifecyclePolicyPreviewNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException";name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},gL=class t extends ye{static{i(this,"UnableToListUpstreamImageReferrersException")}static shapeId="com.amazonaws.ecr#UnableToListUpstreamImageReferrersException";name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(e){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},yL=class t extends ye{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},EL=class t extends ye{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecr#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CL=class t extends ye{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},IL=class t extends ye{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecr#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wL=class t extends ye{static{i(this,"BlockedByOrganizationPolicyException")}static shapeId="com.amazonaws.ecr#BlockedByOrganizationPolicyException";name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},SL=class t extends ye{static{i(this,"ExclusionAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ExclusionAlreadyExistsException";name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},xL=class t extends ye{static{i(this,"ImageArchivedException")}static shapeId="com.amazonaws.ecr#ImageArchivedException";name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bL=class t extends ye{static{i(this,"UnsupportedImageTypeException")}static shapeId="com.amazonaws.ecr#UnsupportedImageTypeException";name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},BL=class t extends ye{static{i(this,"LifecyclePolicyPreviewInProgressException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException";name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},RL=class t extends ye{static{i(this,"ImageStorageClassUpdateNotSupportedException")}static shapeId="com.amazonaws.ecr#ImageStorageClassUpdateNotSupportedException";name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},NL=class t extends ye{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecr#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},VQt="Attribute",WQt="AuthorizationData",YQt="AuthorizationDataList",JQt="AwsEcrContainerImageDetails",jQt="AttributeList",KQt="BlockedByOrganizationPolicyException",XQt="BatchCheckLayerAvailability",ZQt="BatchCheckLayerAvailabilityRequest",eDt="BatchCheckLayerAvailabilityResponse",tDt="BatchDeleteImage",rDt="BatchDeleteImageRequest",nDt="BatchDeleteImageResponse",sDt="BatchGetImage",oDt="BatchGetImageRequest",iDt="BatchGetImageResponse",aDt="BatchGetRepositoryScanningConfiguration",cDt="BatchGetRepositoryScanningConfigurationRequest",lDt="BatchGetRepositoryScanningConfigurationResponse",uDt="CompleteLayerUpload",dDt="CompleteLayerUploadRequest",pDt="CompleteLayerUploadResponse",mDt="CreatePullThroughCacheRule",fDt="CreatePullThroughCacheRuleRequest",ADt="CreatePullThroughCacheRuleResponse",hDt="CreateRepository",gDt="CreateRepositoryCreationTemplate",yDt="CreateRepositoryCreationTemplateRequest",EDt="CreateRepositoryCreationTemplateResponse",CDt="CreateRepositoryRequest",IDt="CreateRepositoryResponse",wDt="CvssScore",SDt="CvssScoreAdjustment",xDt="CvssScoreAdjustmentList",bDt="CvssScoreDetails",BDt="CvssScoreList",RDt="DescribeImages",NDt="DescribeImagesFilter",TDt="DescribeImagesRequest",vDt="DescribeImageReplicationStatus",PDt="DescribeImageReplicationStatusRequest",_Dt="DescribeImageReplicationStatusResponse",QDt="DescribeImagesResponse",DDt="DescribeImageScanFindings",kDt="DescribeImageScanFindingsRequest",LDt="DescribeImageScanFindingsResponse",ODt="DescribeImageSigningStatus",MDt="DescribeImageSigningStatusRequest",FDt="DescribeImageSigningStatusResponse",UDt="DeleteLifecyclePolicy",qDt="DeleteLifecyclePolicyRequest",GDt="DeleteLifecyclePolicyResponse",HDt="DeletePullThroughCacheRule",$Dt="DeletePullThroughCacheRuleRequest",zDt="DeletePullThroughCacheRuleResponse",VDt="DescribePullThroughCacheRulesRequest",WDt="DescribePullThroughCacheRulesResponse",YDt="DescribePullThroughCacheRules",JDt="DeregisterPullTimeUpdateExclusion",jDt="DeregisterPullTimeUpdateExclusionRequest",KDt="DeregisterPullTimeUpdateExclusionResponse",XDt="DeleteRepository",ZDt="DeleteRepositoryCreationTemplate",ekt="DeleteRepositoryCreationTemplateRequest",tkt="DeleteRepositoryCreationTemplateResponse",rkt="DescribeRepositoryCreationTemplatesRequest",nkt="DescribeRepositoryCreationTemplatesResponse",skt="DescribeRepositoryCreationTemplates",okt="DeleteRegistryPolicy",ikt="DeleteRegistryPolicyRequest",akt="DeleteRegistryPolicyResponse",ckt="DeleteRepositoryPolicyRequest",lkt="DeleteRepositoryPolicyResponse",ukt="DeleteRepositoryPolicy",dkt="DeleteRepositoryRequest",pkt="DeleteRepositoryResponse",mkt="DescribeRegistryRequest",fkt="DescribeRegistryResponse",Akt="DescribeRepositoriesRequest",hkt="DescribeRepositoriesResponse",gkt="DescribeRegistry",ykt="DescribeRepositories",Ekt="DeleteSigningConfiguration",Ckt="DeleteSigningConfigurationRequest",Ikt="DeleteSigningConfigurationResponse",wkt="ExclusionAlreadyExistsException",Skt="EncryptionConfiguration",xkt="EncryptionConfigurationForRepositoryCreationTemplate",bkt="EnhancedImageScanFinding",Bkt="EnhancedImageScanFindingList",Rkt="ExclusionNotFoundException",Nkt="EmptyUploadException",Tkt="GetAccountSetting",vkt="GetAccountSettingRequest",Pkt="GetAccountSettingResponse",_kt="GetAuthorizationToken",Qkt="GetAuthorizationTokenRequest",Dkt="GetAuthorizationTokenResponse",kkt="GetDownloadUrlForLayer",Lkt="GetDownloadUrlForLayerRequest",Okt="GetDownloadUrlForLayerResponse",Mkt="GetLifecyclePolicy",Fkt="GetLifecyclePolicyPreview",Ukt="GetLifecyclePolicyPreviewRequest",qkt="GetLifecyclePolicyPreviewResponse",Gkt="GetLifecyclePolicyRequest",Hkt="GetLifecyclePolicyResponse",$kt="GetRegistryPolicy",zkt="GetRegistryPolicyRequest",Vkt="GetRegistryPolicyResponse",Wkt="GetRepositoryPolicyRequest",Ykt="GetRepositoryPolicyResponse",Jkt="GetRepositoryPolicy",jkt="GetRegistryScanningConfiguration",Kkt="GetRegistryScanningConfigurationRequest",Xkt="GetRegistryScanningConfigurationResponse",Zkt="GetSigningConfiguration",eLt="GetSigningConfigurationRequest",tLt="GetSigningConfigurationResponse",rLt="Image",nLt="ImageArchivedException",sLt="ImageAlreadyExistsException",oLt="ImageDetail",iLt="ImageDigestDoesNotMatchException",aLt="ImageDetailList",cLt="ImageFailure",lLt="ImageFailureList",uLt="ImageIdentifier",dLt="ImageIdentifierList",pLt="ImageList",mLt="InvalidLayerException",fLt="InvalidLayerPartException",ALt="InitiateLayerUpload",hLt="InitiateLayerUploadRequest",gLt="InitiateLayerUploadResponse",yLt="ImageNotFoundException",ELt="InvalidParameterException",CLt="ImageReferrer",ILt="ImageReferrerList",wLt="ImageReplicationStatus",SLt="ImageReplicationStatusList",xLt="ImageScanningConfiguration",bLt="ImageStorageClassUpdateNotSupportedException",BLt="ImageScanFinding",RLt="ImageScanFindingList",NLt="ImageScanFindingsSummary",TLt="ImageScanFindings",vLt="ImageScanStatus",PLt="ImageSigningStatusList",_Lt="ImageSigningStatus",QLt="ImageTagAlreadyExistsException",DLt="ImageTagMutabilityExclusionFilter",kLt="ImageTagMutabilityExclusionFilters",LLt="InvalidTagParameterException",OLt="Key",MLt="KmsException",FLt="Layer",ULt="LayerAlreadyExistsException",qLt="LimitExceededException",GLt="LayerFailure",HLt="LayerFailureList",$Lt="ListImages",zLt="LayerInaccessibleException",VLt="ListImagesFilter",WLt="ListImagesRequest",YLt="ListImageReferrersFilter",JLt="ListImageReferrersRequest",jLt="ListImageReferrersResponse",KLt="ListImagesResponse",XLt="ListImageReferrers",ZLt="LayerList",eOt="LayersNotFoundException",tOt="LifecyclePolicyNotFoundException",rOt="LifecyclePolicyPreviewFilter",nOt="LifecyclePolicyPreviewInProgressException",sOt="LifecyclePolicyPreviewNotFoundException",oOt="LifecyclePolicyPreviewResult",iOt="LifecyclePolicyPreviewResultList",aOt="LifecyclePolicyPreviewSummary",cOt="LifecyclePolicyRuleAction",lOt="LayerPartTooSmallException",uOt="ListPullTimeUpdateExclusions",dOt="ListPullTimeUpdateExclusionsRequest",pOt="ListPullTimeUpdateExclusionsResponse",mOt="ListTagsForResource",fOt="ListTagsForResourceRequest",AOt="ListTagsForResourceResponse",hOt="PutAccountSetting",gOt="PutAccountSettingRequest",yOt="PutAccountSettingResponse",EOt="PutImage",COt="PutImageRequest",IOt="PutImageResponse",wOt="PutImageScanningConfiguration",SOt="PutImageScanningConfigurationRequest",xOt="PutImageScanningConfigurationResponse",bOt="PutImageTagMutability",BOt="PutImageTagMutabilityRequest",ROt="PutImageTagMutabilityResponse",NOt="PutLifecyclePolicy",TOt="PutLifecyclePolicyRequest",vOt="PutLifecyclePolicyResponse",POt="PutReplicationConfiguration",_Ot="PutReplicationConfigurationRequest",QOt="PutReplicationConfigurationResponse",DOt="PutRegistryPolicy",kOt="PutRegistryPolicyRequest",LOt="PutRegistryPolicyResponse",OOt="PutRegistryScanningConfiguration",MOt="PutRegistryScanningConfigurationRequest",FOt="PutRegistryScanningConfigurationResponse",UOt="PutSigningConfiguration",qOt="PutSigningConfigurationRequest",GOt="PutSigningConfigurationResponse",HOt="PullThroughCacheRule",$Ot="PullThroughCacheRuleAlreadyExistsException",zOt="PullThroughCacheRuleList",VOt="PullThroughCacheRuleNotFoundException",WOt="PackageVulnerabilityDetails",YOt="Recommendation",JOt="RepositoryAlreadyExistsException",jOt="ReplicationConfiguration",KOt="RepositoryCreationTemplate",XOt="RepositoryCreationTemplateList",ZOt="ReplicationDestination",eMt="ReplicationDestinationList",tMt="ResourceDetails",rMt="RepositoryFilter",nMt="RepositoryFilterList",sMt="ReferencedImagesNotFoundException",oMt="RepositoryList",iMt="ResourceList",aMt="RepositoryNotEmptyException",cMt="RepositoryNotFoundException",lMt="RegistryPolicyNotFoundException",uMt="RepositoryPolicyNotFoundException",dMt="RegisterPullTimeUpdateExclusion",pMt="RegisterPullTimeUpdateExclusionRequest",mMt="RegisterPullTimeUpdateExclusionResponse",fMt="ReplicationRule",AMt="ReplicationRuleList",hMt="RegistryScanningConfiguration",gMt="RepositoryScanningConfigurationFailure",yMt="RepositoryScanningConfigurationFailureList",EMt="RepositoryScanningConfigurationList",CMt="RepositoryScanningConfiguration",IMt="RegistryScanningRule",wMt="RegistryScanningRuleList",SMt="Remediation",xMt="Repository",bMt="Resource",BMt="SigningConfiguration",RMt="SigningConfigurationNotFoundException",NMt="ScoreDetails",TMt="ServerException",vMt="SubjectIdentifier",PMt="StartImageScan",_Mt="StartImageScanRequest",QMt="StartImageScanResponse",DMt="StartLifecyclePolicyPreview",kMt="StartLifecyclePolicyPreviewRequest",LMt="StartLifecyclePolicyPreviewResponse",OMt="ScanNotFoundException",MMt="SecretNotFoundException",FMt="SigningRule",UMt="ScanningRepositoryFilter",qMt="ScanningRepositoryFilterList",GMt="SigningRepositoryFilterList",HMt="SigningRepositoryFilter",$Mt="SigningRuleList",zMt="SetRepositoryPolicy",VMt="SetRepositoryPolicyRequest",WMt="SetRepositoryPolicyResponse",YMt="Tag",JMt="TemplateAlreadyExistsException",jMt="TransitioningImageTotalCount",KMt="TransitioningImageTotalCounts",XMt="TagList",ZMt="TooManyTagsException",eFt="TemplateNotFoundException",tFt="TagResource",rFt="TagResourceRequest",nFt="TagResourceResponse",sFt="UpdateImageStorageClass",oFt="UpdateImageStorageClassRequest",iFt="UpdateImageStorageClassResponse",aFt="UnsupportedImageTypeException",cFt="UploadLayerPart",lFt="UploadLayerPartRequest",uFt="UploadLayerPartResponse",dFt="UploadNotFoundException",pFt="UpdatePullThroughCacheRule",mFt="UpdatePullThroughCacheRuleRequest",fFt="UpdatePullThroughCacheRuleResponse",AFt="UntagResource",hFt="UpdateRepositoryCreationTemplate",gFt="UpdateRepositoryCreationTemplateRequest",yFt="UpdateRepositoryCreationTemplateResponse",EFt="UntagResourceRequest",CFt="UntagResourceResponse",IFt="UnableToAccessSecretException",wFt="UnableToDecryptSecretValueException",SFt="UnableToGetUpstreamImageException",xFt="UnableToGetUpstreamLayerException",bFt="UnableToListUpstreamImageReferrersException",BFt="UnsupportedUpstreamRegistryException",RFt="Value",NFt="ValidationException",TFt="VulnerablePackage",vFt="VulnerablePackagesList",PFt="ValidatePullThroughCacheRule",_Ft="ValidatePullThroughCacheRuleRequest",QFt="ValidatePullThroughCacheRuleResponse",DFt="architecture",kFt="awsAccountId",LFt="authorizationData",OFt="awsEcrContainerImage",fK="appliedFor",MFt="acceptedMediaTypes",FFt="artifactMediaType",UFt="appliedRulePriority",cOe="artifactStatus",qFt="appliedScanFilters",GFt="authorizationToken",HFt="artifactType",$Ft="artifactTypes",zFt="action",VFt="adjustments",WFt="annotations",YFt="arch",JFt="attributes",jFt="author",KFt="baseScore",Qe="client",Uf="credentialArn",Ky="createdAt",hl="customRoleArn",lOe="cvss",Xy="description",XFt="downloadUrl",ZFt="destinations",eUt="details",tUt="digest",ve="error",rUt="expiresAt",nUt="exploitAvailable",Fx="encryptionConfiguration",sUt="enhancedFindings",oUt="expiringImageTotalCount",Cu="ecrRepositoryPrefix",iUt="ecrRepositoryPrefixes",uOe="encryptionType",aUt="epoch",NO="failures",cUt="findingArn",lUt="fixAvailable",Ux="failureCode",uUt="fixedInVersion",dUt="firstObservedAt",pUt="filePath",TO="failureReason",dOe="findingSeverityCounts",vO="filterType",mUt="failure",gp="filter",fUt="findings",pOe="force",AUt="httpError",hUt="images",gUt="imageDetails",qx="imageDigest",yUt="imageHash",Zy="imageIds",Pi="imageId",mOe="imageManifest",AK="imageManifestMediaType",fOe="imagePushedAt",PO="imageStatus",_O="imageScanningConfiguration",AOe="imageScanCompletedAt",EUt="imageScanFindings",CUt="imageScanFindingsSummary",IUt="imageSizeInBytes",hK="imageScanStatus",gK="imageTags",wUt="imageTotalCount",qf="imageTagMutability",Gf="imageTagMutabilityExclusionFilters",hOe="imageTag",SUt="inUseCount",xUt="isValid",bUt="id",BUt="image",RUt="key",NUt="kmsError",gOe="kmsKey",TUt="layers",vUt="layerAvailability",PUt="lastArchivedAt",_Ut="lastActivatedAt",QUt="lastByteReceived",yOe="layerDigests",Gx="layerDigest",EOe="lastEvaluatedAt",DUt="lastInUseAt",kUt="lastObservedAt",yK="lifecyclePolicy",LUt="layerPartBlob",Hf="lifecyclePolicyText",OUt="lastRecordedPullTime",MUt="layerSize",FUt="lastValidByteReceived",Pe="message",Iu="maxResults",COe="mediaType",UUt="metric",eE="name",hn="nextToken",qUt="platform",GUt="pushedAt",QO="principalArn",HUt="proxyEndpoint",$Ut="partFirstByte",zUt="partLastByte",VUt="packageManager",WUt="previewResults",YUt="partSize",yp="policyText",JUt="pullThroughCacheRules",jUt="pullTimeUpdateExclusions",KUt="packageVulnerabilityDetails",DO="prefix",XUt="prefixes",ZUt="registry",EK="resourceArn",IOe="repositoryArn",CK="replicationConfiguration",IK="repositoryCreationTemplate",e1t="repositoryCreationTemplates",wK="repositoryFilters",H="registryId",t1t="registryIds",he="repositoryName",wOe="repositoryNames",SK="repositoryPolicy",r1t="replicationStatuses",n1t="registryScanningConfiguration",xK="resourceTags",s1t="referenceUrls",o1t="repositoryUri",i1t="relatedVulnerabilities",SOe="repository",a1t="reason",c1t="recommendation",l1t="referrers",xOe="region",u1t="release",d1t="remediation",p1t="repositories",m1t="resources",kO="rules",bOe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",f1t="scanningConfigurations",A1t="scanningConfiguration",LO="signingConfiguration",h1t="storageClass",g1t="scoreDetails",BOe="scanFrequency",y1t="subjectId",E1t="sourceLayerHash",C1t="subjectManifestDigest",ROe="scanOnPush",NOe="signingProfileArn",I1t="scoreSource",w1t="signingStatuses",TOe="scanType",S1t="sourceUrl",vOe="scoringVector",POe="score",x1t="server",_Oe="severity",b1t="size",QOe="source",tE="status",B1t="summary",OO="tags",R1t="transitioningImageTotalCounts",N1t="tagKeys",bK="tagStatus",BK="targetStorageClass",T1t="text",v1t="title",RK="type",P1t="uri",MO="updatedAt",rE="uploadId",NK="upstreamRegistry",nE="upstreamRepositoryPrefix",Hx="upstreamRegistryUrl",_1t="url",FO="value",Q1t="vendorCreatedAt",D1t="vulnerabilityId",k1t="vulnerablePackages",L1t="vendorSeverity",DOe="vulnerabilitySourceUpdatedAt",O1t="vendorUpdatedAt",TK="version",S="com.amazonaws.ecr",kOe=new aOe(bOe),LOe=[-3,bOe,"ECRServiceException",0,[],[]];kOe.registerError(LOe,ye);var Re=new aOe(S),OOe=[-3,S,KQt,{[ve]:Qe},[Pe],[0]];Re.registerError(OOe,wL);var MOe=[-3,S,Nkt,{[ve]:Qe},[Pe],[0]];Re.registerError(MOe,Gk);var FOe=[-3,S,wkt,{[ve]:Qe},[Pe],[0]];Re.registerError(FOe,SL);var UOe=[-3,S,Rkt,{[ve]:Qe},[Pe],[0]];Re.registerError(UOe,uL);var qOe=[-3,S,sLt,{[ve]:Qe},[Pe],[0]];Re.registerError(qOe,yL);var GOe=[-3,S,nLt,{[ve]:Qe},[Pe],[0]];Re.registerError(GOe,xL);var HOe=[-3,S,iLt,{[ve]:Qe},[Pe],[0]];Re.registerError(HOe,EL);var $Oe=[-3,S,yLt,{[ve]:Qe},[Pe],[0]];Re.registerError($Oe,dL);var zOe=[-3,S,bLt,{[ve]:Qe},[Pe],[0]];Re.registerError(zOe,RL);var VOe=[-3,S,QLt,{[ve]:Qe},[Pe],[0]];Re.registerError(VOe,CL);var WOe=[-3,S,mLt,{[ve]:Qe},[Pe],[0]];Re.registerError(WOe,Hk);var YOe=[-3,S,fLt,{[ve]:Qe},[H,he,rE,FUt,Pe],[0,0,0,1,0]];Re.registerError(YOe,NL);var JOe=[-3,S,ELt,{[ve]:Qe},[Pe],[0]];Re.registerError(JOe,Lk);var jOe=[-3,S,LLt,{[ve]:Qe},[Pe],[0]];Re.registerError(jOe,Zk);var KOe=[-3,S,MLt,{[ve]:Qe},[Pe,NUt],[0,0]];Re.registerError(KOe,$k);var XOe=[-3,S,ULt,{[ve]:Qe},[Pe],[0]];Re.registerError(XOe,zk);var ZOe=[-3,S,zLt,{[ve]:Qe},[Pe],[0]];Re.registerError(ZOe,mL);var eMe=[-3,S,lOt,{[ve]:Qe},[Pe],[0]];Re.registerError(eMe,Vk);var tMe=[-3,S,eOt,{[ve]:Qe},[Pe],[0]];Re.registerError(tMe,fL);var rMe=[-3,S,tOt,{[ve]:Qe},[Pe],[0]];Re.registerError(rMe,nL);var nMe=[-3,S,nOt,{[ve]:Qe},[Pe],[0]];Re.registerError(nMe,BL);var sMe=[-3,S,sOt,{[ve]:Qe},[Pe],[0]];Re.registerError(sMe,hL);var oMe=[-3,S,qLt,{[ve]:Qe},[Pe],[0]];Re.registerError(oMe,Fk);var iMe=[-3,S,$Ot,{[ve]:Qe},[Pe],[0]];Re.registerError(iMe,Yk);var aMe=[-3,S,VOt,{[ve]:Qe},[Pe],[0]];Re.registerError(aMe,sL);var cMe=[-3,S,sMt,{[ve]:Qe},[Pe],[0]];Re.registerError(cMe,IL);var lMe=[-3,S,lMt,{[ve]:Qe},[Pe],[0]];Re.registerError(lMe,oL);var uMe=[-3,S,JOt,{[ve]:Qe},[Pe],[0]];Re.registerError(uMe,eL);var dMe=[-3,S,aMt,{[ve]:Qe},[Pe],[0]];Re.registerError(dMe,iL);var pMe=[-3,S,cMt,{[ve]:Qe},[Pe],[0]];Re.registerError(pMe,Ok);var mMe=[-3,S,uMt,{[ve]:Qe},[Pe],[0]];Re.registerError(mMe,cL);var fMe=[-3,S,OMt,{[ve]:Qe},[Pe],[0]];Re.registerError(fMe,pL);var AMe=[-3,S,MMt,{[ve]:Qe},[Pe],[0]];Re.registerError(AMe,Jk);var hMe=[-3,S,TMt,{[ve]:x1t},[Pe],[0]];Re.registerError(hMe,Mk);var gMe=[-3,S,RMt,{[ve]:Qe},[Pe],[0]];Re.registerError(gMe,lL);var yMe=[-3,S,JMt,{[ve]:Qe},[Pe],[0]];Re.registerError(yMe,rL);var EMe=[-3,S,eFt,{[ve]:Qe},[Pe],[0]];Re.registerError(EMe,aL);var CMe=[-3,S,ZMt,{[ve]:Qe},[Pe],[0]];Re.registerError(CMe,tL);var IMe=[-3,S,IFt,{[ve]:Qe},[Pe],[0]];Re.registerError(IMe,jk);var wMe=[-3,S,wFt,{[ve]:Qe},[Pe],[0]];Re.registerError(wMe,Kk);var SMe=[-3,S,SFt,{[ve]:Qe},[Pe],[0]];Re.registerError(SMe,Uk);var xMe=[-3,S,xFt,{[ve]:Qe},[Pe],[0]];Re.registerError(xMe,AL);var bMe=[-3,S,bFt,{[ve]:Qe},[Pe],[0]];Re.registerError(bMe,gL);var BMe=[-3,S,aFt,{[ve]:Qe},[Pe],[0]];Re.registerError(BMe,bL);var RMe=[-3,S,BFt,{[ve]:Qe},[Pe],[0]];Re.registerError(RMe,Xk);var NMe=[-3,S,dFt,{[ve]:Qe},[Pe],[0]];Re.registerError(NMe,Wk);var TMe=[-3,S,NFt,{[ve]:Qe,[AUt]:400},[Pe],[0]];Re.registerError(TMe,qk);var vMe=[kOe,Re],PMe=[3,S,VQt,0,[RUt,FO],[0,0],1],_Me=[3,S,WQt,0,[GFt,rUt,HUt],[0,4,0]],QMe=[3,S,JQt,0,[DFt,jFt,yUt,gK,qUt,GUt,DUt,SUt,ZUt,he],[0,0,0,64,0,4,4,1,0,0]],DMe=[3,S,ZQt,0,[he,yOe,H],[0,64,0],2],kMe=[3,S,eDt,0,[TUt,NO],[()=>j1t,()=>J1t]],LMe=[3,S,rDt,0,[he,Zy,H],[0,()=>sE,0],2],OMe=[3,S,nDt,0,[Zy,NO],[()=>sE,()=>v1e]],MMe=[3,S,oDt,0,[he,Zy,H,MFt],[0,()=>sE,0,64],2],FMe=[3,S,iDt,0,[hUt,NO],[()=>$1t,()=>v1e]],UMe=[3,S,cDt,0,[wOe],[64],1],qMe=[3,S,lDt,0,[f1t,NO],[()=>o2t,()=>s2t]],GMe=[3,S,dDt,0,[he,rE,yOe,H],[0,0,64,0],3],HMe=[3,S,pDt,0,[H,he,rE,Gx],[0,0,0,0]],$Me=[3,S,fDt,0,[Cu,Hx,H,NK,Uf,hl,nE],[0,0,0,0,0,0,0],2],zMe=[3,S,ADt,0,[Cu,Hx,Ky,H,NK,Uf,hl,nE],[0,0,4,0,0,0,0,0]],VMe=[3,S,yDt,0,[D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_2e=[9,S,sFt,0,()=>E1e,()=>C1e],Q2e=[9,S,pFt,0,()=>I1e,()=>w1e],D2e=[9,S,hFt,0,()=>S1e,()=>x1e],k2e=[9,S,cFt,0,()=>b1e,()=>B1e],L2e=[9,S,PFt,0,()=>R1e,()=>N1e],d2t=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??RQt,base64Encoder:t?.base64Encoder??BQt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??zQt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??kQt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new IQt}],logger:t?.logger??new $_t,protocol:t?.protocol??PQt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:vMe,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??_Qt,urlParser:t?.urlParser??uQt,utf8Decoder:t?.utf8Decoder??bQt,utf8Encoder:t?.utf8Encoder??xQt}),"getRuntimeConfig$1"),p2t=i(t=>{z_t(process.version);let e=X_t(t),r=i(()=>e().then(V_t),"defaultConfigProvider"),n=d2t(t);N_t(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Lf(wQt,s),bodyLengthChecker:t?.bodyLengthChecker??NQt,credentialDefaultProvider:t?.credentialDefaultProvider??SQt,defaultUserAgentProvider:t?.defaultUserAgentProvider??T_t({serviceId:n.serviceId,clientVersion:UQt.version}),maxAttempts:t?.maxAttempts??Lf(hQt,t),region:t?.region??Lf(tQt,{...rQt,...s}),requestHandler:vQt.create(t?.requestHandler??r),retryMode:t?.retryMode??Lf({...AQt,default:i(async()=>(await r()).retryMode||fQt,"default")},t),streamCollector:t?.streamCollector??TQt,useDualstackEndpoint:t?.useDualstackEndpoint??Lf(eQt,s),useFipsEndpoint:t?.useFipsEndpoint??Lf(Z_t,s),userAgentAppId:t?.userAgentAppId??Lf(v_t,s)}},"getRuntimeConfig"),m2t=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),f2t=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),A2t=i((t,e)=>{let r=Object.assign(P_t(t),W_t(t),dQt(t),m2t(t));return e.forEach(n=>n.configure(r)),Object.assign(t,__t(r),Y_t(r),pQt(r),f2t(r))},"resolveRuntimeExtensions"),Ra=class extends oOe{static{i(this,"ECRClient")}config;constructor(...[e]){let r=p2t(e||{});super(r),this.initConfig=r;let n=OQt(r),s=Q_t(n),o=gQt(s),a=nQt(o),c=D_t(a),l=cQt(c),u=LQt(l),d=A2t(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(EQt(this.config)),this.middlewareStack.use(k_t(this.config)),this.middlewareStack.use(yQt(this.config)),this.middlewareStack.use(mQt(this.config)),this.middlewareStack.use(L_t(this.config)),this.middlewareStack.use(O_t(this.config)),this.middlewareStack.use(M_t(this.config)),this.middlewareStack.use(F_t(this.config,{httpAuthSchemeParametersProvider:QQt,identityProviderConfigProvider:i(async p=>new U_t({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(q_t(this.config))}destroy(){super.destroy()}},ne=J_t(MQt,"AmazonEC2ContainerRegistry_V20150921","ECRClient",lQt),se={},oe=i((t,e,r,n)=>[],"_mw0"),TL=class extends ne(se,oe,"BatchCheckLayerAvailability",Q1e){static{i(this,"BatchCheckLayerAvailabilityCommand")}},vL=class extends ne(se,oe,"BatchDeleteImage",D1e){static{i(this,"BatchDeleteImageCommand")}},PL=class extends ne(se,oe,"BatchGetImage",k1e){static{i(this,"BatchGetImageCommand")}},_L=class extends ne(se,oe,"BatchGetRepositoryScanningConfiguration",L1e){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},QL=class extends ne(se,oe,"CompleteLayerUpload",O1e){static{i(this,"CompleteLayerUploadCommand")}},DL=class extends ne(se,oe,"CreatePullThroughCacheRule",M1e){static{i(this,"CreatePullThroughCacheRuleCommand")}},kL=class extends ne(se,oe,"CreateRepository",F1e){static{i(this,"CreateRepositoryCommand")}},LL=class extends ne(se,oe,"CreateRepositoryCreationTemplate",U1e){static{i(this,"CreateRepositoryCreationTemplateCommand")}},OL=class extends ne(se,oe,"DeleteLifecyclePolicy",q1e){static{i(this,"DeleteLifecyclePolicyCommand")}},ML=class extends ne(se,oe,"DeletePullThroughCacheRule",G1e){static{i(this,"DeletePullThroughCacheRuleCommand")}},FL=class extends ne(se,oe,"DeleteRegistryPolicy",H1e){static{i(this,"DeleteRegistryPolicyCommand")}},UL=class extends ne(se,oe,"DeleteRepository",$1e){static{i(this,"DeleteRepositoryCommand")}},qL=class extends ne(se,oe,"DeleteRepositoryCreationTemplate",z1e){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},GL=class extends ne(se,oe,"DeleteRepositoryPolicy",V1e){static{i(this,"DeleteRepositoryPolicyCommand")}},HL=class extends ne(se,oe,"DeleteSigningConfiguration",W1e){static{i(this,"DeleteSigningConfigurationCommand")}},$L=class extends ne(se,oe,"DeregisterPullTimeUpdateExclusion",Y1e){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},zL=class extends ne(se,oe,"DescribeImageReplicationStatus",J1e){static{i(this,"DescribeImageReplicationStatusCommand")}},Jy=class extends ne(se,oe,"DescribeImageScanFindings",K1e){static{i(this,"DescribeImageScanFindingsCommand")}},Dx=class extends ne(se,oe,"DescribeImages",j1e){static{i(this,"DescribeImagesCommand")}},VL=class extends ne(se,oe,"DescribeImageSigningStatus",X1e){static{i(this,"DescribeImageSigningStatusCommand")}},kx=class extends ne(se,oe,"DescribePullThroughCacheRules",Z1e){static{i(this,"DescribePullThroughCacheRulesCommand")}},WL=class extends ne(se,oe,"DescribeRegistry",e2e){static{i(this,"DescribeRegistryCommand")}},Lx=class extends ne(se,oe,"DescribeRepositories",t2e){static{i(this,"DescribeRepositoriesCommand")}},Ox=class extends ne(se,oe,"DescribeRepositoryCreationTemplates",r2e){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},YL=class extends ne(se,oe,"GetAccountSetting",n2e){static{i(this,"GetAccountSettingCommand")}},JL=class extends ne(se,oe,"GetAuthorizationToken",s2e){static{i(this,"GetAuthorizationTokenCommand")}},jL=class extends ne(se,oe,"GetDownloadUrlForLayer",o2e){static{i(this,"GetDownloadUrlForLayerCommand")}},KL=class extends ne(se,oe,"GetLifecyclePolicy",i2e){static{i(this,"GetLifecyclePolicyCommand")}},jy=class extends ne(se,oe,"GetLifecyclePolicyPreview",a2e){static{i(this,"GetLifecyclePolicyPreviewCommand")}},XL=class extends ne(se,oe,"GetRegistryPolicy",c2e){static{i(this,"GetRegistryPolicyCommand")}},ZL=class extends ne(se,oe,"GetRegistryScanningConfiguration",l2e){static{i(this,"GetRegistryScanningConfigurationCommand")}},eO=class extends ne(se,oe,"GetRepositoryPolicy",u2e){static{i(this,"GetRepositoryPolicyCommand")}},tO=class extends ne(se,oe,"GetSigningConfiguration",d2e){static{i(this,"GetSigningConfigurationCommand")}},rO=class extends ne(se,oe,"InitiateLayerUpload",p2e){static{i(this,"InitiateLayerUploadCommand")}},nO=class extends ne(se,oe,"ListImageReferrers",m2e){static{i(this,"ListImageReferrersCommand")}},Mx=class extends ne(se,oe,"ListImages",f2e){static{i(this,"ListImagesCommand")}},sO=class extends ne(se,oe,"ListPullTimeUpdateExclusions",A2e){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},oO=class extends ne(se,oe,"ListTagsForResource",h2e){static{i(this,"ListTagsForResourceCommand")}},iO=class extends ne(se,oe,"PutAccountSetting",g2e){static{i(this,"PutAccountSettingCommand")}},aO=class extends ne(se,oe,"PutImage",y2e){static{i(this,"PutImageCommand")}},cO=class extends ne(se,oe,"PutImageScanningConfiguration",E2e){static{i(this,"PutImageScanningConfigurationCommand")}},lO=class extends ne(se,oe,"PutImageTagMutability",C2e){static{i(this,"PutImageTagMutabilityCommand")}},uO=class extends ne(se,oe,"PutLifecyclePolicy",I2e){static{i(this,"PutLifecyclePolicyCommand")}},dO=class extends ne(se,oe,"PutRegistryPolicy",w2e){static{i(this,"PutRegistryPolicyCommand")}},pO=class extends ne(se,oe,"PutRegistryScanningConfiguration",S2e){static{i(this,"PutRegistryScanningConfigurationCommand")}},mO=class extends ne(se,oe,"PutReplicationConfiguration",x2e){static{i(this,"PutReplicationConfigurationCommand")}},fO=class extends ne(se,oe,"PutSigningConfiguration",b2e){static{i(this,"PutSigningConfigurationCommand")}},AO=class extends ne(se,oe,"RegisterPullTimeUpdateExclusion",B2e){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},hO=class extends ne(se,oe,"SetRepositoryPolicy",R2e){static{i(this,"SetRepositoryPolicyCommand")}},gO=class extends ne(se,oe,"StartImageScan",N2e){static{i(this,"StartImageScanCommand")}},yO=class extends ne(se,oe,"StartLifecyclePolicyPreview",T2e){static{i(this,"StartLifecyclePolicyPreviewCommand")}},EO=class extends ne(se,oe,"TagResource",v2e){static{i(this,"TagResourceCommand")}},CO=class extends ne(se,oe,"UntagResource",P2e){static{i(this,"UntagResourceCommand")}},IO=class extends ne(se,oe,"UpdateImageStorageClass",_2e){static{i(this,"UpdateImageStorageClassCommand")}},wO=class extends ne(se,oe,"UpdatePullThroughCacheRule",Q2e){static{i(this,"UpdatePullThroughCacheRuleCommand")}},SO=class extends ne(se,oe,"UpdateRepositoryCreationTemplate",D2e){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},xO=class extends ne(se,oe,"UploadLayerPart",k2e){static{i(this,"UploadLayerPartCommand")}},bO=class extends ne(se,oe,"ValidatePullThroughCacheRule",L2e){static{i(this,"ValidatePullThroughCacheRuleCommand")}},O2e=Ff(Ra,Jy,"nextToken","nextToken","maxResults"),M2e=Ff(Ra,Dx,"nextToken","nextToken","maxResults"),F2e=Ff(Ra,kx,"nextToken","nextToken","maxResults"),U2e=Ff(Ra,Lx,"nextToken","nextToken","maxResults"),q2e=Ff(Ra,Ox,"nextToken","nextToken","maxResults"),G2e=Ff(Ra,jy,"nextToken","nextToken","maxResults"),H2e=Ff(Ra,Mx,"nextToken","nextToken","maxResults"),$2e=i(async(t,e)=>{let r;try{let n=await t.send(new Jy(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:Wy.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:Wy.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Wy.RETRY,reason:r}},"checkState$1"),h2t=i(async(t,e)=>RO({...{minDelay:5,maxDelay:120},...t},e,$2e),"waitForImageScanComplete"),z2e=i(async(t,e)=>{let n=await RO({...{minDelay:5,maxDelay:120},...t},e,$2e);return iOe(n)},"waitUntilImageScanComplete"),V2e=i(async(t,e)=>{let r;try{let n=await t.send(new jy(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:Wy.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:Wy.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Wy.RETRY,reason:r}},"checkState"),g2t=i(async(t,e)=>RO({...{minDelay:5,maxDelay:120},...t},e,V2e),"waitForLifecyclePolicyPreviewComplete"),W2e=i(async(t,e)=>{let n=await RO({...{minDelay:5,maxDelay:120},...t},e,V2e);return iOe(n)},"waitUntilLifecyclePolicyPreviewComplete"),y2t={BatchCheckLayerAvailabilityCommand:TL,BatchDeleteImageCommand:vL,BatchGetImageCommand:PL,BatchGetRepositoryScanningConfigurationCommand:_L,CompleteLayerUploadCommand:QL,CreatePullThroughCacheRuleCommand:DL,CreateRepositoryCommand:kL,CreateRepositoryCreationTemplateCommand:LL,DeleteLifecyclePolicyCommand:OL,DeletePullThroughCacheRuleCommand:ML,DeleteRegistryPolicyCommand:FL,DeleteRepositoryCommand:UL,DeleteRepositoryCreationTemplateCommand:qL,DeleteRepositoryPolicyCommand:GL,DeleteSigningConfigurationCommand:HL,DeregisterPullTimeUpdateExclusionCommand:$L,DescribeImageReplicationStatusCommand:zL,DescribeImagesCommand:Dx,DescribeImageScanFindingsCommand:Jy,DescribeImageSigningStatusCommand:VL,DescribePullThroughCacheRulesCommand:kx,DescribeRegistryCommand:WL,DescribeRepositoriesCommand:Lx,DescribeRepositoryCreationTemplatesCommand:Ox,GetAccountSettingCommand:YL,GetAuthorizationTokenCommand:JL,GetDownloadUrlForLayerCommand:jL,GetLifecyclePolicyCommand:KL,GetLifecyclePolicyPreviewCommand:jy,GetRegistryPolicyCommand:XL,GetRegistryScanningConfigurationCommand:ZL,GetRepositoryPolicyCommand:eO,GetSigningConfigurationCommand:tO,InitiateLayerUploadCommand:rO,ListImageReferrersCommand:nO,ListImagesCommand:Mx,ListPullTimeUpdateExclusionsCommand:sO,ListTagsForResourceCommand:oO,PutAccountSettingCommand:iO,PutImageCommand:aO,PutImageScanningConfigurationCommand:cO,PutImageTagMutabilityCommand:lO,PutLifecyclePolicyCommand:uO,PutRegistryPolicyCommand:dO,PutRegistryScanningConfigurationCommand:pO,PutReplicationConfigurationCommand:mO,PutSigningConfigurationCommand:fO,RegisterPullTimeUpdateExclusionCommand:AO,SetRepositoryPolicyCommand:hO,StartImageScanCommand:gO,StartLifecyclePolicyPreviewCommand:yO,TagResourceCommand:EO,UntagResourceCommand:CO,UpdateImageStorageClassCommand:IO,UpdatePullThroughCacheRuleCommand:wO,UpdateRepositoryCreationTemplateCommand:SO,UploadLayerPartCommand:xO,ValidatePullThroughCacheRuleCommand:bO},E2t={paginateDescribeImages:M2e,paginateDescribeImageScanFindings:O2e,paginateDescribePullThroughCacheRules:F2e,paginateDescribeRepositories:U2e,paginateDescribeRepositoryCreationTemplates:q2e,paginateGetLifecyclePolicyPreview:G2e,paginateListImages:H2e},C2t={waitUntilImageScanComplete:z2e,waitUntilLifecyclePolicyPreviewComplete:W2e},BO=class extends Ra{static{i(this,"ECR")}};j_t(y2t,BO,{paginators:E2t,waiters:C2t});var I2t={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},w2t={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},S2t={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},x2t={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},b2t={WILDCARD:"WILDCARD"},B2t={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},R2t={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"},N2t={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},T2t={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},v2t={WILDCARD:"WILDCARD"},P2t={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},_2t={WILDCARD_MATCH:"WILDCARD_MATCH"},Q2t={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},D2t={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},k2t={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},L2t={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},O2t={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"},M2t={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},F2t={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},U2t={PREFIX_MATCH:"PREFIX_MATCH"},q2t={ARCHIVE:"ARCHIVE"},G2t={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},H2t={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},$2t={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},z2t={BASIC:"BASIC",ENHANCED:"ENHANCED"},V2t={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},W2t={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},Y2t={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};C.ArtifactStatus=W2t;C.ArtifactStatusFilter=V2t;C.Attribute$=PMe;C.AuthorizationData$=_Me;C.AwsEcrContainerImageDetails$=QMe;C.BatchCheckLayerAvailability$=Q1e;C.BatchCheckLayerAvailabilityCommand=TL;C.BatchCheckLayerAvailabilityRequest$=DMe;C.BatchCheckLayerAvailabilityResponse$=kMe;C.BatchDeleteImage$=D1e;C.BatchDeleteImageCommand=vL;C.BatchDeleteImageRequest$=LMe;C.BatchDeleteImageResponse$=OMe;C.BatchGetImage$=k1e;C.BatchGetImageCommand=PL;C.BatchGetImageRequest$=MMe;C.BatchGetImageResponse$=FMe;C.BatchGetRepositoryScanningConfiguration$=L1e;C.BatchGetRepositoryScanningConfigurationCommand=_L;C.BatchGetRepositoryScanningConfigurationRequest$=UMe;C.BatchGetRepositoryScanningConfigurationResponse$=qMe;C.BlockedByOrganizationPolicyException=wL;C.BlockedByOrganizationPolicyException$=OOe;C.CompleteLayerUpload$=O1e;C.CompleteLayerUploadCommand=QL;C.CompleteLayerUploadRequest$=GMe;C.CompleteLayerUploadResponse$=HMe;C.CreatePullThroughCacheRule$=M1e;C.CreatePullThroughCacheRuleCommand=DL;C.CreatePullThroughCacheRuleRequest$=$Me;C.CreatePullThroughCacheRuleResponse$=zMe;C.CreateRepository$=F1e;C.CreateRepositoryCommand=kL;C.CreateRepositoryCreationTemplate$=U1e;C.CreateRepositoryCreationTemplateCommand=LL;C.CreateRepositoryCreationTemplateRequest$=VMe;C.CreateRepositoryCreationTemplateResponse$=WMe;C.CreateRepositoryRequest$=YMe;C.CreateRepositoryResponse$=JMe;C.CvssScore$=jMe;C.CvssScoreAdjustment$=KMe;C.CvssScoreDetails$=XMe;C.DeleteLifecyclePolicy$=q1e;C.DeleteLifecyclePolicyCommand=OL;C.DeleteLifecyclePolicyRequest$=ZMe;C.DeleteLifecyclePolicyResponse$=eFe;C.DeletePullThroughCacheRule$=G1e;C.DeletePullThroughCacheRuleCommand=ML;C.DeletePullThroughCacheRuleRequest$=tFe;C.DeletePullThroughCacheRuleResponse$=rFe;C.DeleteRegistryPolicy$=H1e;C.DeleteRegistryPolicyCommand=FL;C.DeleteRegistryPolicyRequest$=nFe;C.DeleteRegistryPolicyResponse$=sFe;C.DeleteRepository$=$1e;C.DeleteRepositoryCommand=UL;C.DeleteRepositoryCreationTemplate$=z1e;C.DeleteRepositoryCreationTemplateCommand=qL;C.DeleteRepositoryCreationTemplateRequest$=oFe;C.DeleteRepositoryCreationTemplateResponse$=iFe;C.DeleteRepositoryPolicy$=V1e;C.DeleteRepositoryPolicyCommand=GL;C.DeleteRepositoryPolicyRequest$=aFe;C.DeleteRepositoryPolicyResponse$=cFe;C.DeleteRepositoryRequest$=lFe;C.DeleteRepositoryResponse$=uFe;C.DeleteSigningConfiguration$=W1e;C.DeleteSigningConfigurationCommand=HL;C.DeleteSigningConfigurationRequest$=dFe;C.DeleteSigningConfigurationResponse$=pFe;C.DeregisterPullTimeUpdateExclusion$=Y1e;C.DeregisterPullTimeUpdateExclusionCommand=$L;C.DeregisterPullTimeUpdateExclusionRequest$=mFe;C.DeregisterPullTimeUpdateExclusionResponse$=fFe;C.DescribeImageReplicationStatus$=J1e;C.DescribeImageReplicationStatusCommand=zL;C.DescribeImageReplicationStatusRequest$=AFe;C.DescribeImageReplicationStatusResponse$=hFe;C.DescribeImageScanFindings$=K1e;C.DescribeImageScanFindingsCommand=Jy;C.DescribeImageScanFindingsRequest$=gFe;C.DescribeImageScanFindingsResponse$=yFe;C.DescribeImageSigningStatus$=X1e;C.DescribeImageSigningStatusCommand=VL;C.DescribeImageSigningStatusRequest$=CFe;C.DescribeImageSigningStatusResponse$=IFe;C.DescribeImages$=j1e;C.DescribeImagesCommand=Dx;C.DescribeImagesFilter$=EFe;C.DescribeImagesRequest$=wFe;C.DescribeImagesResponse$=SFe;C.DescribePullThroughCacheRules$=Z1e;C.DescribePullThroughCacheRulesCommand=kx;C.DescribePullThroughCacheRulesRequest$=xFe;C.DescribePullThroughCacheRulesResponse$=bFe;C.DescribeRegistry$=e2e;C.DescribeRegistryCommand=WL;C.DescribeRegistryRequest$=BFe;C.DescribeRegistryResponse$=RFe;C.DescribeRepositories$=t2e;C.DescribeRepositoriesCommand=Lx;C.DescribeRepositoriesRequest$=NFe;C.DescribeRepositoriesResponse$=TFe;C.DescribeRepositoryCreationTemplates$=r2e;C.DescribeRepositoryCreationTemplatesCommand=Ox;C.DescribeRepositoryCreationTemplatesRequest$=vFe;C.DescribeRepositoryCreationTemplatesResponse$=PFe;C.ECR=BO;C.ECRClient=Ra;C.ECRServiceException=ye;C.ECRServiceException$=LOe;C.EmptyUploadException=Gk;C.EmptyUploadException$=MOe;C.EncryptionConfiguration$=vK;C.EncryptionConfigurationForRepositoryCreationTemplate$=UO;C.EncryptionType=N2t;C.EnhancedImageScanFinding$=_Fe;C.ExclusionAlreadyExistsException=SL;C.ExclusionAlreadyExistsException$=FOe;C.ExclusionNotFoundException=uL;C.ExclusionNotFoundException$=UOe;C.FindingSeverity=L2t;C.GetAccountSetting$=n2e;C.GetAccountSettingCommand=YL;C.GetAccountSettingRequest$=QFe;C.GetAccountSettingResponse$=DFe;C.GetAuthorizationToken$=s2e;C.GetAuthorizationTokenCommand=JL;C.GetAuthorizationTokenRequest$=kFe;C.GetAuthorizationTokenResponse$=LFe;C.GetDownloadUrlForLayer$=o2e;C.GetDownloadUrlForLayerCommand=jL;C.GetDownloadUrlForLayerRequest$=OFe;C.GetDownloadUrlForLayerResponse$=MFe;C.GetLifecyclePolicy$=i2e;C.GetLifecyclePolicyCommand=KL;C.GetLifecyclePolicyPreview$=a2e;C.GetLifecyclePolicyPreviewCommand=jy;C.GetLifecyclePolicyPreviewRequest$=FFe;C.GetLifecyclePolicyPreviewResponse$=UFe;C.GetLifecyclePolicyRequest$=qFe;C.GetLifecyclePolicyResponse$=GFe;C.GetRegistryPolicy$=c2e;C.GetRegistryPolicyCommand=XL;C.GetRegistryPolicyRequest$=HFe;C.GetRegistryPolicyResponse$=$Fe;C.GetRegistryScanningConfiguration$=l2e;C.GetRegistryScanningConfigurationCommand=ZL;C.GetRegistryScanningConfigurationRequest$=zFe;C.GetRegistryScanningConfigurationResponse$=VFe;C.GetRepositoryPolicy$=u2e;C.GetRepositoryPolicyCommand=eO;C.GetRepositoryPolicyRequest$=WFe;C.GetRepositoryPolicyResponse$=YFe;C.GetSigningConfiguration$=d2e;C.GetSigningConfigurationCommand=tO;C.GetSigningConfigurationRequest$=JFe;C.GetSigningConfigurationResponse$=jFe;C.Image$=PK;C.ImageActionType=G2t;C.ImageAlreadyExistsException=yL;C.ImageAlreadyExistsException$=qOe;C.ImageArchivedException=xL;C.ImageArchivedException$=GOe;C.ImageDetail$=KFe;C.ImageDigestDoesNotMatchException=EL;C.ImageDigestDoesNotMatchException$=HOe;C.ImageFailure$=XFe;C.ImageFailureCode=S2t;C.ImageIdentifier$=Ys;C.ImageNotFoundException=dL;C.ImageNotFoundException$=$Oe;C.ImageReferrer$=ZFe;C.ImageReplicationStatus$=eUe;C.ImageScanFinding$=tUe;C.ImageScanFindings$=rUe;C.ImageScanFindingsSummary$=nUe;C.ImageScanStatus$=qO;C.ImageScanningConfiguration$=$x;C.ImageSigningStatus$=sUe;C.ImageStatus=M2t;C.ImageStatusFilter=D2t;C.ImageStorageClassUpdateNotSupportedException=RL;C.ImageStorageClassUpdateNotSupportedException$=zOe;C.ImageTagAlreadyExistsException=CL;C.ImageTagAlreadyExistsException$=VOe;C.ImageTagMutability=T2t;C.ImageTagMutabilityExclusionFilter$=oUe;C.ImageTagMutabilityExclusionFilterType=v2t;C.InitiateLayerUpload$=p2e;C.InitiateLayerUploadCommand=rO;C.InitiateLayerUploadRequest$=iUe;C.InitiateLayerUploadResponse$=aUe;C.InvalidLayerException=Hk;C.InvalidLayerException$=WOe;C.InvalidLayerPartException=NL;C.InvalidLayerPartException$=YOe;C.InvalidParameterException=Lk;C.InvalidParameterException$=JOe;C.InvalidTagParameterException=Zk;C.InvalidTagParameterException$=jOe;C.KmsException=$k;C.KmsException$=KOe;C.Layer$=cUe;C.LayerAlreadyExistsException=zk;C.LayerAlreadyExistsException$=XOe;C.LayerAvailability=w2t;C.LayerFailure$=lUe;C.LayerFailureCode=I2t;C.LayerInaccessibleException=mL;C.LayerInaccessibleException$=ZOe;C.LayerPartTooSmallException=Vk;C.LayerPartTooSmallException$=eMe;C.LayersNotFoundException=fL;C.LayersNotFoundException$=tMe;C.LifecyclePolicyNotFoundException=nL;C.LifecyclePolicyNotFoundException$=rMe;C.LifecyclePolicyPreviewFilter$=uUe;C.LifecyclePolicyPreviewInProgressException=BL;C.LifecyclePolicyPreviewInProgressException$=nMe;C.LifecyclePolicyPreviewNotFoundException=hL;C.LifecyclePolicyPreviewNotFoundException$=sMe;C.LifecyclePolicyPreviewResult$=dUe;C.LifecyclePolicyPreviewStatus=$2t;C.LifecyclePolicyPreviewSummary$=pUe;C.LifecyclePolicyRuleAction$=mUe;C.LifecyclePolicyStorageClass=H2t;C.LifecyclePolicyTargetStorageClass=q2t;C.LimitExceededException=Fk;C.LimitExceededException$=oMe;C.ListImageReferrers$=m2e;C.ListImageReferrersCommand=nO;C.ListImageReferrersFilter$=fUe;C.ListImageReferrersRequest$=AUe;C.ListImageReferrersResponse$=hUe;C.ListImages$=f2e;C.ListImagesCommand=Mx;C.ListImagesFilter$=gUe;C.ListImagesRequest$=yUe;C.ListImagesResponse$=EUe;C.ListPullTimeUpdateExclusions$=A2e;C.ListPullTimeUpdateExclusionsCommand=sO;C.ListPullTimeUpdateExclusionsRequest$=CUe;C.ListPullTimeUpdateExclusionsResponse$=IUe;C.ListTagsForResource$=h2e;C.ListTagsForResourceCommand=oO;C.ListTagsForResourceRequest$=wUe;C.ListTagsForResourceResponse$=SUe;C.PackageVulnerabilityDetails$=xUe;C.PullThroughCacheRule$=bUe;C.PullThroughCacheRuleAlreadyExistsException=Yk;C.PullThroughCacheRuleAlreadyExistsException$=iMe;C.PullThroughCacheRuleNotFoundException=sL;C.PullThroughCacheRuleNotFoundException$=aMe;C.PutAccountSetting$=g2e;C.PutAccountSettingCommand=iO;C.PutAccountSettingRequest$=BUe;C.PutAccountSettingResponse$=RUe;C.PutImage$=y2e;C.PutImageCommand=aO;C.PutImageRequest$=NUe;C.PutImageResponse$=TUe;C.PutImageScanningConfiguration$=E2e;C.PutImageScanningConfigurationCommand=cO;C.PutImageScanningConfigurationRequest$=vUe;C.PutImageScanningConfigurationResponse$=PUe;C.PutImageTagMutability$=C2e;C.PutImageTagMutabilityCommand=lO;C.PutImageTagMutabilityRequest$=_Ue;C.PutImageTagMutabilityResponse$=QUe;C.PutLifecyclePolicy$=I2e;C.PutLifecyclePolicyCommand=uO;C.PutLifecyclePolicyRequest$=DUe;C.PutLifecyclePolicyResponse$=kUe;C.PutRegistryPolicy$=w2e;C.PutRegistryPolicyCommand=dO;C.PutRegistryPolicyRequest$=LUe;C.PutRegistryPolicyResponse$=OUe;C.PutRegistryScanningConfiguration$=S2e;C.PutRegistryScanningConfigurationCommand=pO;C.PutRegistryScanningConfigurationRequest$=MUe;C.PutRegistryScanningConfigurationResponse$=FUe;C.PutReplicationConfiguration$=x2e;C.PutReplicationConfigurationCommand=mO;C.PutReplicationConfigurationRequest$=UUe;C.PutReplicationConfigurationResponse$=qUe;C.PutSigningConfiguration$=b2e;C.PutSigningConfigurationCommand=fO;C.PutSigningConfigurationRequest$=GUe;C.PutSigningConfigurationResponse$=HUe;C.RCTAppliedFor=P2t;C.Recommendation$=$Ue;C.ReferencedImagesNotFoundException=IL;C.ReferencedImagesNotFoundException$=cMe;C.RegisterPullTimeUpdateExclusion$=B2e;C.RegisterPullTimeUpdateExclusionCommand=AO;C.RegisterPullTimeUpdateExclusionRequest$=zUe;C.RegisterPullTimeUpdateExclusionResponse$=VUe;C.RegistryPolicyNotFoundException=oL;C.RegistryPolicyNotFoundException$=lMe;C.RegistryScanningConfiguration$=_K;C.RegistryScanningRule$=WUe;C.Remediation$=YUe;C.ReplicationConfiguration$=GO;C.ReplicationDestination$=JUe;C.ReplicationRule$=jUe;C.ReplicationStatus=Q2t;C.Repository$=HO;C.RepositoryAlreadyExistsException=eL;C.RepositoryAlreadyExistsException$=uMe;C.RepositoryCreationTemplate$=zx;C.RepositoryFilter$=KUe;C.RepositoryFilterType=U2t;C.RepositoryNotEmptyException=iL;C.RepositoryNotEmptyException$=dMe;C.RepositoryNotFoundException=Ok;C.RepositoryNotFoundException$=pMe;C.RepositoryPolicyNotFoundException=cL;C.RepositoryPolicyNotFoundException$=mMe;C.RepositoryScanningConfiguration$=XUe;C.RepositoryScanningConfigurationFailure$=ZUe;C.Resource$=e1e;C.ResourceDetails$=t1e;C.ScanFrequency=B2t;C.ScanNotFoundException=pL;C.ScanNotFoundException$=fMe;C.ScanStatus=O2t;C.ScanType=z2t;C.ScanningConfigurationFailureCode=x2t;C.ScanningRepositoryFilter$=r1e;C.ScanningRepositoryFilterType=b2t;C.ScoreDetails$=n1e;C.SecretNotFoundException=Jk;C.SecretNotFoundException$=AMe;C.ServerException=Mk;C.ServerException$=hMe;C.SetRepositoryPolicy$=R2e;C.SetRepositoryPolicyCommand=hO;C.SetRepositoryPolicyRequest$=s1e;C.SetRepositoryPolicyResponse$=o1e;C.SigningConfiguration$=Vx;C.SigningConfigurationNotFoundException=lL;C.SigningConfigurationNotFoundException$=gMe;C.SigningRepositoryFilter$=i1e;C.SigningRepositoryFilterType=_2t;C.SigningRule$=a1e;C.SigningStatus=F2t;C.StartImageScan$=N2e;C.StartImageScanCommand=gO;C.StartImageScanRequest$=c1e;C.StartImageScanResponse$=l1e;C.StartLifecyclePolicyPreview$=T2e;C.StartLifecyclePolicyPreviewCommand=yO;C.StartLifecyclePolicyPreviewRequest$=u1e;C.StartLifecyclePolicyPreviewResponse$=d1e;C.SubjectIdentifier$=p1e;C.Tag$=m1e;C.TagResource$=v2e;C.TagResourceCommand=EO;C.TagResourceRequest$=f1e;C.TagResourceResponse$=A1e;C.TagStatus=k2t;C.TargetStorageClass=Y2t;C.TemplateAlreadyExistsException=rL;C.TemplateAlreadyExistsException$=yMe;C.TemplateNotFoundException=aL;C.TemplateNotFoundException$=EMe;C.TooManyTagsException=tL;C.TooManyTagsException$=CMe;C.TransitioningImageTotalCount$=h1e;C.UnableToAccessSecretException=jk;C.UnableToAccessSecretException$=IMe;C.UnableToDecryptSecretValueException=Kk;C.UnableToDecryptSecretValueException$=wMe;C.UnableToGetUpstreamImageException=Uk;C.UnableToGetUpstreamImageException$=SMe;C.UnableToGetUpstreamLayerException=AL;C.UnableToGetUpstreamLayerException$=xMe;C.UnableToListUpstreamImageReferrersException=gL;C.UnableToListUpstreamImageReferrersException$=bMe;C.UnsupportedImageTypeException=bL;C.UnsupportedImageTypeException$=BMe;C.UnsupportedUpstreamRegistryException=Xk;C.UnsupportedUpstreamRegistryException$=RMe;C.UntagResource$=P2e;C.UntagResourceCommand=CO;C.UntagResourceRequest$=g1e;C.UntagResourceResponse$=y1e;C.UpdateImageStorageClass$=_2e;C.UpdateImageStorageClassCommand=IO;C.UpdateImageStorageClassRequest$=E1e;C.UpdateImageStorageClassResponse$=C1e;C.UpdatePullThroughCacheRule$=Q2e;C.UpdatePullThroughCacheRuleCommand=wO;C.UpdatePullThroughCacheRuleRequest$=I1e;C.UpdatePullThroughCacheRuleResponse$=w1e;C.UpdateRepositoryCreationTemplate$=D2e;C.UpdateRepositoryCreationTemplateCommand=SO;C.UpdateRepositoryCreationTemplateRequest$=S1e;C.UpdateRepositoryCreationTemplateResponse$=x1e;C.UploadLayerPart$=k2e;C.UploadLayerPartCommand=xO;C.UploadLayerPartRequest$=b1e;C.UploadLayerPartResponse$=B1e;C.UploadNotFoundException=Wk;C.UploadNotFoundException$=NMe;C.UpstreamRegistry=R2t;C.ValidatePullThroughCacheRule$=L2e;C.ValidatePullThroughCacheRuleCommand=bO;C.ValidatePullThroughCacheRuleRequest$=R1e;C.ValidatePullThroughCacheRuleResponse$=N1e;C.ValidationException=qk;C.ValidationException$=TMe;C.VulnerablePackage$=T1e;C.errorTypeRegistries=vMe;C.paginateDescribeImageScanFindings=O2e;C.paginateDescribeImages=M2e;C.paginateDescribePullThroughCacheRules=F2e;C.paginateDescribeRepositories=U2e;C.paginateDescribeRepositoryCreationTemplates=q2e;C.paginateGetLifecyclePolicyPreview=G2e;C.paginateListImages=H2e;C.waitForImageScanComplete=h2t;C.waitForLifecyclePolicyPreviewComplete=g2t;C.waitUntilImageScanComplete=z2e;C.waitUntilLifecyclePolicyPreviewComplete=W2e});var BHe=w(B=>{var{awsEndpointFunctions:J2t,emitWarningIfUnsupportedVersion:j2t,createDefaultUserAgentProvider:K2t,NODE_APP_ID_CONFIG_OPTIONS:X2t,getAwsRegionExtensionConfiguration:Z2t,resolveAwsRegionExtensionConfiguration:eqt,resolveUserAgentConfig:tqt,resolveHostHeaderConfig:rqt,getUserAgentPlugin:nqt,getHostHeaderPlugin:sqt,getLoggerPlugin:oqt,getRecursionDetectionPlugin:iqt}=(Et(),ee(ya)),{getHttpAuthSchemeEndpointRuleSetPlugin:aqt,DefaultIdentityProviderConfig:cqt,getHttpSigningPlugin:lqt,createPaginator:LM}=(ys(),ee(x5)),{normalizeProvider:Z2e,getSmithyContext:uqt,ServiceException:dqt,NoOpLogger:pqt,emitWarningIfUnsupportedVersion:mqt,loadConfigsForDefaultMode:fqt,getDefaultExtensionConfiguration:Aqt,resolveDefaultRuntimeConfig:hqt,Client:eqe,makeBuilder:gqt,createAggregatedClient:yqt}=(we(),ee(Dg)),{Command:Eqt}=(we(),ee(Dg));B.$Command=Eqt;B.__Client=eqe;var{resolveDefaultsModeConfig:Cqt,loadConfig:zf,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Iqt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:wqt,NODE_REGION_CONFIG_OPTIONS:Sqt,NODE_REGION_CONFIG_FILE_OPTIONS:xqt,resolveRegionConfig:bqt}=(yt(),ee(Qo)),{BinaryDecisionDiagram:Bqt,EndpointCache:Rqt,decideEndpoint:Nqt,customEndpointFunctions:Tqt,resolveEndpointConfig:vqt,getEndpointPlugin:Pqt}=(Pt(),ee($J)),{parseUrl:_qt,getHttpHandlerExtensionConfiguration:Qqt,resolveHttpHandlerRuntimeConfig:Dqt,getContentLengthPlugin:kqt}=(be(),ee(Jd)),{DEFAULT_RETRY_MODE:Lqt,NODE_RETRY_MODE_CONFIG_OPTIONS:Oqt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Mqt,resolveRetryConfig:Fqt,getRetryPlugin:Uqt}=(Oo(),ee(c5)),{TypeRegistry:tqe,getSchemaSerdePlugin:qqt}=(Ye(),ee(S8)),{resolveAwsSdkSigV4Config:Gqt,AwsSdkSigV4Signer:Hqt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:$qt}=(Wn(),ee(AD)),{defaultProvider:zqt}=dK(),{toUtf8:Vqt,fromUtf8:Wqt,toBase64:Yqt,fromBase64:Jqt,calculateBodyLength:jqt}=(Se(),ee(mf)),{streamCollector:Kqt,NodeHttpHandler:Xqt}=hu(),{AwsJson1_1Protocol:Zqt}=(xf(),ee(K6)),{Sha256:eGt}=(pu(),ee(Aj)),tGt=i(async(t,e,r)=>({operation:uqt(e).operation,region:await Z2e(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function rGt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(rGt,"createAwsAuthSigv4HttpAuthOption");var nGt=i(t=>{let e=[];switch(t.operation){default:e.push(rGt(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),sGt=i(t=>{let e=Gqt(t);return Object.assign(e,{authSchemePreference:Z2e(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),oGt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),iGt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},aGt="3.1153.0",cGt={version:aGt},Wx="ref",Vf=-1,$O=!0,J2e="isSet",rqe="PartitionResult",zO="booleanEquals",QK="getAttr",j2e={[Wx]:"Endpoint"},DK={[Wx]:rqe},iE={},K2e=[{[Wx]:"Region"}],X2e={conditions:[[J2e,[j2e]],[J2e,K2e],["aws.partition",K2e,rqe],[zO,[{[Wx]:"UseFIPS"},$O]],[zO,[{[Wx]:"UseDualStack"},$O]],[zO,[{fn:QK,argv:[DK,"supportsDualStack"]},$O]],[zO,[{fn:QK,argv:[DK,"supportsFIPS"]},$O]],["stringEquals",[{fn:QK,argv:[DK,"name"]},"aws"]]],results:[[Vf],[Vf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Vf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[j2e,iE],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",iE],[Vf,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",iE],[Vf,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",iE],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",iE],[Vf,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",iE],[Vf,"Invalid Configuration: Missing Region"]]},lGt=2,Js=1e8,uGt=new Int32Array([-1,1,-1,0,13,3,1,4,Js+12,2,5,Js+12,3,9,6,4,7,Js+11,5,8,Js+10,7,Js+8,Js+9,4,11,10,6,Js+6,Js+7,5,12,Js+5,6,Js+4,Js+5,3,Js+1,14,4,Js+2,Js+3]),dGt=Bqt.from(uGt,lGt,X2e.conditions,X2e.results),pGt=new Rqt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),mGt=i((t,e={})=>pGt.get(t,()=>Nqt(dGt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Tqt.aws=J2t;var Bt=class t extends dqt{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},VO=class t extends Bt{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WO=class t extends Bt{static{i(this,"RegistryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RegistryNotFoundException";name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YO=class t extends Bt{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JO=class t extends Bt{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecrpublic#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},jO=class t extends Bt{static{i(this,"UnsupportedCommandException")}static shapeId="com.amazonaws.ecrpublic#UnsupportedCommandException";name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KO=class t extends Bt{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecrpublic#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XO=class t extends Bt{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZO=class t extends Bt{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eM=class t extends Bt{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecrpublic#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tM=class t extends Bt{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecrpublic#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rM=class t extends Bt{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nM=class t extends Bt{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecrpublic#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sM=class t extends Bt{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oM=class t extends Bt{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecrpublic#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iM=class t extends Bt{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aM=class t extends Bt{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cM=class t extends Bt{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lM=class t extends Bt{static{i(this,"RepositoryCatalogDataNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException";name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uM=class t extends Bt{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dM=class t extends Bt{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pM=class t extends Bt{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mM=class t extends Bt{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},fM=class t extends Bt{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecrpublic#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},AM=class t extends Bt{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fGt="AuthorizationData",AGt="BatchCheckLayerAvailability",hGt="BatchCheckLayerAvailabilityRequest",gGt="BatchCheckLayerAvailabilityResponse",yGt="BatchDeleteImage",EGt="BatchDeleteImageRequest",CGt="BatchDeleteImageResponse",IGt="CompleteLayerUpload",wGt="CompleteLayerUploadRequest",SGt="CompleteLayerUploadResponse",xGt="CreateRepository",bGt="CreateRepositoryRequest",BGt="CreateRepositoryResponse",RGt="DescribeImages",NGt="DescribeImagesRequest",TGt="DescribeImagesResponse",vGt="DescribeImageTags",PGt="DescribeImageTagsRequest",_Gt="DescribeImageTagsResponse",QGt="DeleteRepository",DGt="DeleteRepositoryPolicy",kGt="DeleteRepositoryPolicyRequest",LGt="DeleteRepositoryPolicyResponse",OGt="DeleteRepositoryRequest",MGt="DeleteRepositoryResponse",FGt="DescribeRegistriesRequest",UGt="DescribeRegistriesResponse",qGt="DescribeRepositoriesRequest",GGt="DescribeRepositoriesResponse",HGt="DescribeRegistries",$Gt="DescribeRepositories",zGt="EmptyUploadException",VGt="GetAuthorizationToken",WGt="GetAuthorizationTokenRequest",YGt="GetAuthorizationTokenResponse",JGt="GetRegistryCatalogData",jGt="GetRegistryCatalogDataRequest",KGt="GetRegistryCatalogDataResponse",XGt="GetRepositoryCatalogDataRequest",ZGt="GetRepositoryCatalogDataResponse",eHt="GetRepositoryCatalogData",tHt="GetRepositoryPolicy",rHt="GetRepositoryPolicyRequest",nHt="GetRepositoryPolicyResponse",sHt="Image",oHt="ImageAlreadyExistsException",iHt="ImageDetail",aHt="ImageDigestDoesNotMatchException",cHt="ImageDetailList",lHt="ImageFailure",uHt="ImageFailureList",dHt="ImageIdentifier",pHt="ImageIdentifierList",mHt="InvalidLayerException",fHt="InvalidLayerPartException",AHt="InitiateLayerUpload",hHt="InitiateLayerUploadRequest",gHt="InitiateLayerUploadResponse",yHt="ImageNotFoundException",EHt="InvalidParameterException",CHt="ImageTagAlreadyExistsException",IHt="ImageTagDetail",wHt="ImageTagDetailList",SHt="InvalidTagParameterException",xHt="Key",bHt="Layer",BHt="LayerAlreadyExistsException",RHt="LimitExceededException",NHt="LayerFailure",THt="LayerFailureList",vHt="LayerList",PHt="LayersNotFoundException",_Ht="LayerPartTooSmallException",QHt="ListTagsForResource",DHt="ListTagsForResourceRequest",kHt="ListTagsForResourceResponse",LHt="PutImage",OHt="PutImageRequest",MHt="PutImageResponse",FHt="PutRegistryCatalogData",UHt="PutRegistryCatalogDataRequest",qHt="PutRegistryCatalogDataResponse",GHt="PutRepositoryCatalogDataRequest",HHt="PutRepositoryCatalogDataResponse",$Ht="PutRepositoryCatalogData",zHt="Registry",VHt="RegistryAlias",WHt="RepositoryAlreadyExistsException",YHt="RegistryAliasList",JHt="RegistryCatalogData",jHt="RepositoryCatalogDataInput",KHt="RepositoryCatalogDataNotFoundException",XHt="RepositoryCatalogData",ZHt="ReferencedImageDetail",e$t="ReferencedImagesNotFoundException",t$t="RegistryList",r$t="RepositoryList",n$t="RepositoryNotEmptyException",s$t="RegistryNotFoundException",o$t="RepositoryNotFoundException",i$t="RepositoryPolicyNotFoundException",a$t="Repository",c$t="ServerException",l$t="SetRepositoryPolicy",u$t="SetRepositoryPolicyRequest",d$t="SetRepositoryPolicyResponse",p$t="Tag",m$t="TagList",f$t="TooManyTagsException",A$t="TagResource",h$t="TagResourceRequest",g$t="TagResourceResponse",y$t="UnsupportedCommandException",E$t="UploadLayerPart",C$t="UploadLayerPartRequest",I$t="UploadLayerPartResponse",w$t="UploadNotFoundException",S$t="UntagResource",x$t="UntagResourceRequest",b$t="UntagResourceResponse",B$t="Value",R$t="aliases",N$t="authorizationData",nqe="artifactMediaType",T$t="authorizationToken",sqe="aboutText",oqe="architectures",er="client",iqe="createdAt",Xx="catalogData",aqe="description",cqe="displayName",v$t="defaultRegistryAlias",Jt="error",P$t="expiresAt",lqe="failures",uqe="failureCode",dqe="failureReason",pqe="force",_$t="image",Q$t="imageDetails",OM="imageDigest",D$t="imageDetail",kK="imageIds",mqe="imageId",fqe="imageManifest",MM="imageManifestMediaType",Aqe="imagePushedAt",hqe="imageSizeInBytes",k$t="imageTags",L$t="imageTagDetails",LK="imageTag",O$t="layers",M$t="layerAvailability",F$t="lastByteReceived",gqe="layerDigests",OK="layerDigest",U$t="logoImageBlob",q$t="layerPartBlob",G$t="layerSize",H$t="logoUrl",$$t="lastValidByteReceived",jt="message",z$t="marketplaceCertified",FM="maxResults",V$t="mediaType",W$t="name",Cp="nextToken",yqe="operatingSystems",Y$t="partFirstByte",J$t="partLastByte",j$t="primaryRegistryAlias",K$t="partSize",UM="policyText",Eqe="repository",MK="resourceArn",X$t="registryArn",Z$t="repositoryArn",Cqe="registryCatalogData",Ft="registryId",Kt="repositoryName",ezt="repositoryNames",tzt="registryUri",rzt="repositoryUri",nzt="registries",szt="repositories",Iqe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",ozt="server",izt="status",FK="tags",azt="tagKeys",aE="uploadId",wqe="usageText",czt="verified",v="com.amazonaws.ecrpublic",Sqe=new tqe(Iqe),xqe=[-3,Iqe,"ECRPUBLICServiceException",0,[],[]];Sqe.registerError(xqe,Bt);var Ut=new tqe(v),bqe=[-3,v,zGt,{[Jt]:er},[jt],[0]];Ut.registerError(bqe,KO);var Bqe=[-3,v,oHt,{[Jt]:er},[jt],[0]];Ut.registerError(Bqe,uM);var Rqe=[-3,v,aHt,{[Jt]:er},[jt],[0]];Ut.registerError(Rqe,dM);var Nqe=[-3,v,yHt,{[Jt]:er},[jt],[0]];Ut.registerError(Nqe,cM);var Tqe=[-3,v,CHt,{[Jt]:er},[jt],[0]];Ut.registerError(Tqe,pM);var vqe=[-3,v,mHt,{[Jt]:er},[jt],[0]];Ut.registerError(vqe,XO);var Pqe=[-3,v,fHt,{[Jt]:er},[Ft,Kt,aE,$$t,jt],[0,0,0,1,0]];Ut.registerError(Pqe,mM);var _qe=[-3,v,EHt,{[Jt]:er},[jt],[0]];Ut.registerError(_qe,VO);var Qqe=[-3,v,SHt,{[Jt]:er},[jt],[0]];Ut.registerError(Qqe,rM);var Dqe=[-3,v,BHt,{[Jt]:er},[jt],[0]];Ut.registerError(Dqe,ZO);var kqe=[-3,v,_Ht,{[Jt]:er},[jt],[0]];Ut.registerError(kqe,eM);var Lqe=[-3,v,PHt,{[Jt]:er},[jt],[0]];Ut.registerError(Lqe,fM);var Oqe=[-3,v,RHt,{[Jt]:er},[jt],[0]];Ut.registerError(Oqe,nM);var Mqe=[-3,v,e$t,{[Jt]:er},[jt],[0]];Ut.registerError(Mqe,AM);var Fqe=[-3,v,s$t,{[Jt]:er},[jt],[0]];Ut.registerError(Fqe,WO);var Uqe=[-3,v,WHt,{[Jt]:er},[jt],[0]];Ut.registerError(Uqe,sM);var qqe=[-3,v,KHt,{[Jt]:er},[jt],[0]];Ut.registerError(qqe,lM);var Gqe=[-3,v,n$t,{[Jt]:er},[jt],[0]];Ut.registerError(Gqe,iM);var Hqe=[-3,v,o$t,{[Jt]:er},[jt],[0]];Ut.registerError(Hqe,YO);var $qe=[-3,v,i$t,{[Jt]:er},[jt],[0]];Ut.registerError($qe,aM);var zqe=[-3,v,c$t,{[Jt]:ozt},[jt],[0]];Ut.registerError(zqe,JO);var Vqe=[-3,v,f$t,{[Jt]:er},[jt],[0]];Ut.registerError(Vqe,oM);var Wqe=[-3,v,y$t,{[Jt]:er},[jt],[0]];Ut.registerError(Wqe,jO);var Yqe=[-3,v,w$t,{[Jt]:er},[jt],[0]];Ut.registerError(Yqe,tM);var Jqe=[Sqe,Ut],jqe=[3,v,fGt,0,[T$t,P$t],[0,4]],Kqe=[3,v,hGt,0,[Kt,gqe,Ft],[0,64,0],2],Xqe=[3,v,gGt,0,[O$t,lqe],[()=>mzt,()=>pzt]],Zqe=[3,v,EGt,0,[Kt,kK,Ft],[0,()=>GK,0],2],eGe=[3,v,CGt,0,[kK,lqe],[()=>GK,()=>uzt]],tGe=[3,v,wGt,0,[Kt,aE,gqe,Ft],[0,0,64,0],3],rGe=[3,v,SGt,0,[Ft,Kt,aE,OK],[0,0,0,0]],nGe=[3,v,bGt,0,[Kt,Xx,FK],[0,()=>qK,()=>HK],1],sGe=[3,v,BGt,0,[Eqe,Xx],[()=>GM,()=>HM]],oGe=[3,v,kGt,0,[Kt,Ft],[0,0],1],iGe=[3,v,LGt,0,[Ft,Kt,UM],[0,0,0]],aGe=[3,v,OGt,0,[Kt,Ft,pqe],[0,0,2],1],cGe=[3,v,MGt,0,[Eqe],[()=>GM]],lGe=[3,v,NGt,0,[Kt,Ft,kK,Cp,FM],[0,0,()=>GK,0,1],1],uGe=[3,v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=>sGe],nHe=[9,v,QGt,0,()=>aGe,()=>cGe],sHe=[9,v,DGt,0,()=>oGe,()=>iGe],oHe=[9,v,RGt,0,()=>lGe,()=>uGe],iHe=[9,v,vGt,0,()=>dGe,()=>pGe],aHe=[9,v,HGt,0,()=>mGe,()=>fGe],cHe=[9,v,$Gt,0,()=>AGe,()=>hGe],lHe=[9,v,VGt,0,()=>gGe,()=>yGe],uHe=[9,v,JGt,0,()=>EGe,()=>CGe],dHe=[9,v,eHt,0,()=>IGe,()=>wGe],pHe=[9,v,tHt,0,()=>SGe,()=>xGe],mHe=[9,v,AHt,0,()=>TGe,()=>vGe],fHe=[9,v,QHt,0,()=>QGe,()=>DGe],AHe=[9,v,LHt,0,()=>kGe,()=>LGe],hHe=[9,v,FHt,0,()=>OGe,()=>MGe],gHe=[9,v,$Ht,0,()=>FGe,()=>UGe],yHe=[9,v,l$t,0,()=>$Ge,()=>zGe],EHe=[9,v,A$t,0,()=>WGe,()=>YGe],CHe=[9,v,S$t,0,()=>JGe,()=>jGe],IHe=[9,v,E$t,0,()=>KGe,()=>XGe],gzt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??Jqt,base64Encoder:t?.base64Encoder??Yqt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mGt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??nGt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Hqt}],logger:t?.logger??new pqt,protocol:t?.protocol??Zqt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:Jqe,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??eGt,urlParser:t?.urlParser??_qt,utf8Decoder:t?.utf8Decoder??Wqt,utf8Encoder:t?.utf8Encoder??Vqt}),"getRuntimeConfig$1"),yzt=i(t=>{mqt(process.version);let e=Cqt(t),r=i(()=>e().then(fqt),"defaultConfigProvider"),n=gzt(t);j2t(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??zf($qt,s),bodyLengthChecker:t?.bodyLengthChecker??jqt,credentialDefaultProvider:t?.credentialDefaultProvider??zqt,defaultUserAgentProvider:t?.defaultUserAgentProvider??K2t({serviceId:n.serviceId,clientVersion:cGt.version}),maxAttempts:t?.maxAttempts??zf(Mqt,t),region:t?.region??zf(Sqt,{...xqt,...s}),requestHandler:Xqt.create(t?.requestHandler??r),retryMode:t?.retryMode??zf({...Oqt,default:i(async()=>(await r()).retryMode||Lqt,"default")},t),streamCollector:t?.streamCollector??Kqt,useDualstackEndpoint:t?.useDualstackEndpoint??zf(wqt,s),useFipsEndpoint:t?.useFipsEndpoint??zf(Iqt,s),userAgentAppId:t?.userAgentAppId??zf(X2t,s)}},"getRuntimeConfig"),Ezt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Czt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),Izt=i((t,e)=>{let r=Object.assign(Z2t(t),Aqt(t),Qqt(t),Ezt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,eqt(r),hqt(r),Dqt(r),Czt(r))},"resolveRuntimeExtensions"),Ep=class extends eqe{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=yzt(e||{});super(r),this.initConfig=r;let n=oGt(r),s=tqt(n),o=Fqt(s),a=bqt(o),c=rqt(a),l=vqt(c),u=sGt(l),d=Izt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(qqt(this.config)),this.middlewareStack.use(nqt(this.config)),this.middlewareStack.use(Uqt(this.config)),this.middlewareStack.use(kqt(this.config)),this.middlewareStack.use(sqt(this.config)),this.middlewareStack.use(oqt(this.config)),this.middlewareStack.use(iqt(this.config)),this.middlewareStack.use(aqt(this.config,{httpAuthSchemeParametersProvider:tGt,identityProviderConfigProvider:i(async p=>new cqt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(lqt(this.config))}destroy(){super.destroy()}},tr=gqt(iGt,"SpencerFrontendService","ECRPUBLICClient",Pqt),rr={},nr=i((t,e,r,n)=>[],"_mw0"),hM=class extends tr(rr,nr,"BatchCheckLayerAvailability",ZGe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},gM=class extends tr(rr,nr,"BatchDeleteImage",eHe){static{i(this,"BatchDeleteImageCommand")}},yM=class extends tr(rr,nr,"CompleteLayerUpload",tHe){static{i(this,"CompleteLayerUploadCommand")}},EM=class extends tr(rr,nr,"CreateRepository",rHe){static{i(this,"CreateRepositoryCommand")}},CM=class extends tr(rr,nr,"DeleteRepository",nHe){static{i(this,"DeleteRepositoryCommand")}},IM=class extends tr(rr,nr,"DeleteRepositoryPolicy",sHe){static{i(this,"DeleteRepositoryPolicyCommand")}},Yx=class extends tr(rr,nr,"DescribeImages",oHe){static{i(this,"DescribeImagesCommand")}},Jx=class extends tr(rr,nr,"DescribeImageTags",iHe){static{i(this,"DescribeImageTagsCommand")}},jx=class extends tr(rr,nr,"DescribeRegistries",aHe){static{i(this,"DescribeRegistriesCommand")}},Kx=class extends tr(rr,nr,"DescribeRepositories",cHe){static{i(this,"DescribeRepositoriesCommand")}},wM=class extends tr(rr,nr,"GetAuthorizationToken",lHe){static{i(this,"GetAuthorizationTokenCommand")}},SM=class extends tr(rr,nr,"GetRegistryCatalogData",uHe){static{i(this,"GetRegistryCatalogDataCommand")}},xM=class extends tr(rr,nr,"GetRepositoryCatalogData",dHe){static{i(this,"GetRepositoryCatalogDataCommand")}},bM=class extends tr(rr,nr,"GetRepositoryPolicy",pHe){static{i(this,"GetRepositoryPolicyCommand")}},BM=class extends tr(rr,nr,"InitiateLayerUpload",mHe){static{i(this,"InitiateLayerUploadCommand")}},RM=class extends tr(rr,nr,"ListTagsForResource",fHe){static{i(this,"ListTagsForResourceCommand")}},NM=class extends tr(rr,nr,"PutImage",AHe){static{i(this,"PutImageCommand")}},TM=class extends tr(rr,nr,"PutRegistryCatalogData",hHe){static{i(this,"PutRegistryCatalogDataCommand")}},vM=class extends tr(rr,nr,"PutRepositoryCatalogData",gHe){static{i(this,"PutRepositoryCatalogDataCommand")}},PM=class extends tr(rr,nr,"SetRepositoryPolicy",yHe){static{i(this,"SetRepositoryPolicyCommand")}},_M=class extends tr(rr,nr,"TagResource",EHe){static{i(this,"TagResourceCommand")}},QM=class extends tr(rr,nr,"UntagResource",CHe){static{i(this,"UntagResourceCommand")}},DM=class extends tr(rr,nr,"UploadLayerPart",IHe){static{i(this,"UploadLayerPartCommand")}},wHe=LM(Ep,Yx,"nextToken","nextToken","maxResults"),SHe=LM(Ep,Jx,"nextToken","nextToken","maxResults"),xHe=LM(Ep,jx,"nextToken","nextToken","maxResults"),bHe=LM(Ep,Kx,"nextToken","nextToken","maxResults"),wzt={BatchCheckLayerAvailabilityCommand:hM,BatchDeleteImageCommand:gM,CompleteLayerUploadCommand:yM,CreateRepositoryCommand:EM,DeleteRepositoryCommand:CM,DeleteRepositoryPolicyCommand:IM,DescribeImagesCommand:Yx,DescribeImageTagsCommand:Jx,DescribeRegistriesCommand:jx,DescribeRepositoriesCommand:Kx,GetAuthorizationTokenCommand:wM,GetRegistryCatalogDataCommand:SM,GetRepositoryCatalogDataCommand:xM,GetRepositoryPolicyCommand:bM,InitiateLayerUploadCommand:BM,ListTagsForResourceCommand:RM,PutImageCommand:NM,PutRegistryCatalogDataCommand:TM,PutRepositoryCatalogDataCommand:vM,SetRepositoryPolicyCommand:PM,TagResourceCommand:_M,UntagResourceCommand:QM,UploadLayerPartCommand:DM},Szt={paginateDescribeImages:wHe,paginateDescribeImageTags:SHe,paginateDescribeRegistries:xHe,paginateDescribeRepositories:bHe},kM=class extends Ep{static{i(this,"ECRPUBLIC")}};yqt(wzt,kM,{paginators:Szt});var xzt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},bzt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},Bzt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},Rzt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=jqe;B.BatchCheckLayerAvailability$=ZGe;B.BatchCheckLayerAvailabilityCommand=hM;B.BatchCheckLayerAvailabilityRequest$=Kqe;B.BatchCheckLayerAvailabilityResponse$=Xqe;B.BatchDeleteImage$=eHe;B.BatchDeleteImageCommand=gM;B.BatchDeleteImageRequest$=Zqe;B.BatchDeleteImageResponse$=eGe;B.CompleteLayerUpload$=tHe;B.CompleteLayerUploadCommand=yM;B.CompleteLayerUploadRequest$=tGe;B.CompleteLayerUploadResponse$=rGe;B.CreateRepository$=rHe;B.CreateRepositoryCommand=EM;B.CreateRepositoryRequest$=nGe;B.CreateRepositoryResponse$=sGe;B.DeleteRepository$=nHe;B.DeleteRepositoryCommand=CM;B.DeleteRepositoryPolicy$=sHe;B.DeleteRepositoryPolicyCommand=IM;B.DeleteRepositoryPolicyRequest$=oGe;B.DeleteRepositoryPolicyResponse$=iGe;B.DeleteRepositoryRequest$=aGe;B.DeleteRepositoryResponse$=cGe;B.DescribeImageTags$=iHe;B.DescribeImageTagsCommand=Jx;B.DescribeImageTagsRequest$=dGe;B.DescribeImageTagsResponse$=pGe;B.DescribeImages$=oHe;B.DescribeImagesCommand=Yx;B.DescribeImagesRequest$=lGe;B.DescribeImagesResponse$=uGe;B.DescribeRegistries$=aHe;B.DescribeRegistriesCommand=jx;B.DescribeRegistriesRequest$=mGe;B.DescribeRegistriesResponse$=fGe;B.DescribeRepositories$=cHe;B.DescribeRepositoriesCommand=Kx;B.DescribeRepositoriesRequest$=AGe;B.DescribeRepositoriesResponse$=hGe;B.ECRPUBLIC=kM;B.ECRPUBLICClient=Ep;B.ECRPUBLICServiceException=Bt;B.ECRPUBLICServiceException$=xqe;B.EmptyUploadException=KO;B.EmptyUploadException$=bqe;B.GetAuthorizationToken$=lHe;B.GetAuthorizationTokenCommand=wM;B.GetAuthorizationTokenRequest$=gGe;B.GetAuthorizationTokenResponse$=yGe;B.GetRegistryCatalogData$=uHe;B.GetRegistryCatalogDataCommand=SM;B.GetRegistryCatalogDataRequest$=EGe;B.GetRegistryCatalogDataResponse$=CGe;B.GetRepositoryCatalogData$=dHe;B.GetRepositoryCatalogDataCommand=xM;B.GetRepositoryCatalogDataRequest$=IGe;B.GetRepositoryCatalogDataResponse$=wGe;B.GetRepositoryPolicy$=pHe;B.GetRepositoryPolicyCommand=bM;B.GetRepositoryPolicyRequest$=SGe;B.GetRepositoryPolicyResponse$=xGe;B.Image$=bGe;B.ImageAlreadyExistsException=uM;B.ImageAlreadyExistsException$=Bqe;B.ImageDetail$=BGe;B.ImageDigestDoesNotMatchException=dM;B.ImageDigestDoesNotMatchException$=Rqe;B.ImageFailure$=RGe;B.ImageFailureCode=Bzt;B.ImageIdentifier$=qM;B.ImageNotFoundException=cM;B.ImageNotFoundException$=Nqe;B.ImageTagAlreadyExistsException=pM;B.ImageTagAlreadyExistsException$=Tqe;B.ImageTagDetail$=NGe;B.InitiateLayerUpload$=mHe;B.InitiateLayerUploadCommand=BM;B.InitiateLayerUploadRequest$=TGe;B.InitiateLayerUploadResponse$=vGe;B.InvalidLayerException=XO;B.InvalidLayerException$=vqe;B.InvalidLayerPartException=mM;B.InvalidLayerPartException$=Pqe;B.InvalidParameterException=VO;B.InvalidParameterException$=_qe;B.InvalidTagParameterException=rM;B.InvalidTagParameterException$=Qqe;B.Layer$=PGe;B.LayerAlreadyExistsException=ZO;B.LayerAlreadyExistsException$=Dqe;B.LayerAvailability=bzt;B.LayerFailure$=_Ge;B.LayerFailureCode=xzt;B.LayerPartTooSmallException=eM;B.LayerPartTooSmallException$=kqe;B.LayersNotFoundException=fM;B.LayersNotFoundException$=Lqe;B.LimitExceededException=nM;B.LimitExceededException$=Oqe;B.ListTagsForResource$=fHe;B.ListTagsForResourceCommand=RM;B.ListTagsForResourceRequest$=QGe;B.ListTagsForResourceResponse$=DGe;B.PutImage$=AHe;B.PutImageCommand=NM;B.PutImageRequest$=kGe;B.PutImageResponse$=LGe;B.PutRegistryCatalogData$=hHe;B.PutRegistryCatalogDataCommand=TM;B.PutRegistryCatalogDataRequest$=OGe;B.PutRegistryCatalogDataResponse$=MGe;B.PutRepositoryCatalogData$=gHe;B.PutRepositoryCatalogDataCommand=vM;B.PutRepositoryCatalogDataRequest$=FGe;B.PutRepositoryCatalogDataResponse$=UGe;B.ReferencedImageDetail$=qGe;B.ReferencedImagesNotFoundException=AM;B.ReferencedImagesNotFoundException$=Mqe;B.Registry$=GGe;B.RegistryAlias$=HGe;B.RegistryAliasStatus=Rzt;B.RegistryCatalogData$=UK;B.RegistryNotFoundException=WO;B.RegistryNotFoundException$=Fqe;B.Repository$=GM;B.RepositoryAlreadyExistsException=sM;B.RepositoryAlreadyExistsException$=Uqe;B.RepositoryCatalogData$=HM;B.RepositoryCatalogDataInput$=qK;B.RepositoryCatalogDataNotFoundException=lM;B.RepositoryCatalogDataNotFoundException$=qqe;B.RepositoryNotEmptyException=iM;B.RepositoryNotEmptyException$=Gqe;B.RepositoryNotFoundException=YO;B.RepositoryNotFoundException$=Hqe;B.RepositoryPolicyNotFoundException=aM;B.RepositoryPolicyNotFoundException$=$qe;B.ServerException=JO;B.ServerException$=zqe;B.SetRepositoryPolicy$=yHe;B.SetRepositoryPolicyCommand=PM;B.SetRepositoryPolicyRequest$=$Ge;B.SetRepositoryPolicyResponse$=zGe;B.Tag$=VGe;B.TagResource$=EHe;B.TagResourceCommand=_M;B.TagResourceRequest$=WGe;B.TagResourceResponse$=YGe;B.TooManyTagsException=oM;B.TooManyTagsException$=Vqe;B.UnsupportedCommandException=jO;B.UnsupportedCommandException$=Wqe;B.UntagResource$=CHe;B.UntagResourceCommand=QM;B.UntagResourceRequest$=JGe;B.UntagResourceResponse$=jGe;B.UploadLayerPart$=IHe;B.UploadLayerPartCommand=DM;B.UploadLayerPartRequest$=KGe;B.UploadLayerPartResponse$=XGe;B.UploadNotFoundException=tM;B.UploadNotFoundException$=Yqe;B.errorTypeRegistries=Jqe;B.paginateDescribeImageTags=SHe;B.paginateDescribeImages=wHe;B.paginateDescribeRegistries=xHe;B.paginateDescribeRepositories=bHe});var Wzt={};Fr(Wzt,{main:()=>s$e});module.exports=ee(Wzt);var eX=R(require("os"),1);function Su(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Su,"toCommandValue");function jM(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}i(jM,"toCommandProperties");function wp(t,e,r){let n=new KM(t,e,r);process.stdout.write(n.toString()+eX.EOL)}i(wp,"issueCommand");function XM(t,e=""){wp(t,{},e)}i(XM,"issue");var ZK="::",KM=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=ZK+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${d$e(s)}`)}}return e+=`${ZK}${u$e(this.message)}`,e}};function u$e(t){return Su(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(u$e,"escapeData");function d$e(t){return Su(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(d$e,"escapeProperty");var tX=R(require("crypto"),1),sb=R(require("fs"),1),nb=R(require("os"),1);function rX(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!sb.existsSync(r))throw new Error(`Missing file at path: ${r}`);sb.appendFileSync(r,`${Su(e)}${nb.EOL}`,{encoding:"utf8"})}i(rX,"issueFileCommand");function nX(t,e){let r=`ghadelimiter_${tX.randomUUID()}`,n=Su(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${nb.EOL}${n}${nb.EOL}${r}`}i(nX,"prepareKeyValueMessage");var tie=R(require("os"),1);var fC=R(require("http"),1),v2=R(require("https"),1);function ZM(t){let e=t.protocol==="https:";if(p$e(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new ob(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new ob(`http://${r}`)}else return}i(ZM,"getProxyUrl");function p$e(t){if(!t.hostname)return!1;let e=t.hostname;if(m$e(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(p$e,"checkBypass");function m$e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(m$e,"isLoopbackAddress");var ob=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Gu=R(Jf(),1),Qoe=R(Kp(),1);var Er=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},zo;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(zo||(zo={}));var Zn;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zn||(Zn={}));var _l;(function(t){t.ApplicationJson="application/json"})(_l||(_l={}));var GKe=[zo.MovedPermanently,zo.ResourceMoved,zo.SeeOther,zo.TemporaryRedirect,zo.PermanentRedirect],HKe=[zo.BadGateway,zo.ServiceUnavailable,zo.GatewayTimeout],$Ke=["OPTIONS","GET","DELETE","HEAD"],zKe=10,VKe=5,N2=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},T2=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Er(this,void 0,void 0,function*(){return new Promise(e=>Er(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Er(this,void 0,void 0,function*(){return new Promise(e=>Er(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var rB=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Er(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Er(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Er(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Er(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Er(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Er(this,arguments,void 0,function*(r,n={}){n[Zn.Accept]=this._getExistingOrDefaultHeader(n,Zn.Accept,_l.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Zn.Accept]=this._getExistingOrDefaultHeader(o,Zn.Accept,_l.ApplicationJson),o[Zn.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,_l.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Zn.Accept]=this._getExistingOrDefaultHeader(o,Zn.Accept,_l.ApplicationJson),o[Zn.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,_l.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Zn.Accept]=this._getExistingOrDefaultHeader(o,Zn.Accept,_l.ApplicationJson),o[Zn.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,_l.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Er(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&$Ke.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===zo.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&GKe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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.");if(yield u.readBody(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!HKe.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new T2(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=ZM(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?v2:fC;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},mC(this.requestOptions.headers),mC(e||{})):mC(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=mC(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=mC(this.requestOptions.headers)[Zn.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Zn.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=ZM(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||fC.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?Gu.httpsOverHttps:Gu.httpsOverHttp:l=u?Gu.httpOverHttps:Gu.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new v2.Agent(c):new fC.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new Qoe.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Er(this,void 0,void 0,function*(){e=Math.min(zKe,e);let r=VKe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Er(this,void 0,void 0,function*(){return new Promise((n,s)=>Er(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===zo.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new N2(d,o);p.result=a.result,s(p)}else n(a)}))})}},mC=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var WKe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var nB=class{static{i(this,"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!1}handleAuthentication(){return WKe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Doe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},sB=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new rB("actions/oidc-client",[new nB(t.getRequestToken())],n)}static getRequestToken(){let 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(){let 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 Doe(this,void 0,void 0,function*(){var r;let o=(r=(yield t.createHttpClient().getJson(e).catch(a=>{throw new Error(`Failed to get ID Token. +`),gOe=!0)),new Fk("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),_Qt(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new Fk("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=B9();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=AOe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=AK();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=gK();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await kQt(t))()),async()=>{throw new Fk("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],yOe),"defaultProvider"),FQt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),yOe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");Uk.credentialsTreatedAsExpired=yOe;Uk.credentialsWillNeedRefresh=FQt;Uk.defaultProvider=MQt});var mqe=w(C=>{var{awsEndpointFunctions:UQt,emitWarningIfUnsupportedVersion:qQt,createDefaultUserAgentProvider:GQt,NODE_APP_ID_CONFIG_OPTIONS:$Qt,getAwsRegionExtensionConfiguration:HQt,resolveAwsRegionExtensionConfiguration:zQt,resolveUserAgentConfig:VQt,resolveHostHeaderConfig:WQt,getUserAgentPlugin:YQt,getHostHeaderPlugin:JQt,getLoggerPlugin:jQt,getRecursionDetectionPlugin:KQt}=(yt(),Z(Ca)),{getHttpAuthSchemeEndpointRuleSetPlugin:XQt,DefaultIdentityProviderConfig:ZQt,getHttpSigningPlugin:eDt,createPaginator:Hm}=(Es(),Z(_5)),{normalizeProvider:xOe,getSmithyContext:tDt,ServiceException:rDt,NoOpLogger:nDt,emitWarningIfUnsupportedVersion:sDt,loadConfigsForDefaultMode:oDt,getDefaultExtensionConfiguration:iDt,resolveDefaultRuntimeConfig:aDt,Client:bOe,makeBuilder:cDt,createWaiter:DO,checkExceptions:BOe,WaiterState:Xy,createAggregatedClient:lDt}=(Ce(),Z(Fg)),{Command:uDt}=(Ce(),Z(Fg));C.$Command=uDt;C.__Client=bOe;var{resolveDefaultsModeConfig:dDt,loadConfig:qm,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:pDt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:fDt,NODE_REGION_CONFIG_OPTIONS:mDt,NODE_REGION_CONFIG_FILE_OPTIONS:ADt,resolveRegionConfig:hDt}=(gt(),Z(Qo)),{BinaryDecisionDiagram:gDt,EndpointCache:yDt,decideEndpoint:EDt,customEndpointFunctions:CDt,resolveEndpointConfig:IDt,getEndpointPlugin:wDt}=(vt(),Z(XJ)),{parseUrl:SDt,getHttpHandlerExtensionConfiguration:xDt,resolveHttpHandlerRuntimeConfig:bDt,getContentLengthPlugin:BDt}=(Se(),Z(Kd)),{DEFAULT_RETRY_MODE:RDt,NODE_RETRY_MODE_CONFIG_OPTIONS:NDt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:TDt,resolveRetryConfig:PDt,getRetryPlugin:vDt}=(Oo(),Z(h5)),{TypeRegistry:ROe,getSchemaSerdePlugin:_Dt}=(We(),Z(v8)),{resolveAwsSdkSigV4Config:QDt,AwsSdkSigV4Signer:DDt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:kDt}=(Yn(),Z(wD)),{defaultProvider:LDt}=EK(),{toUtf8:ODt,fromUtf8:MDt,toBase64:FDt,fromBase64:UDt,calculateBodyLength:qDt}=(Ie(),Z(ym)),{streamCollector:GDt,NodeHttpHandler:$Dt}=gu(),{AwsJson1_1Protocol:HDt}=(Tm(),Z(o9)),{Sha256:zDt}=(fu(),Z(Sj)),VDt=i(async(t,e,r)=>({operation:tDt(e).operation,region:await xOe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function WDt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(WDt,"createAwsAuthSigv4HttpAuthOption");var YDt=i(t=>{let e=[];switch(t.operation){default:e.push(WDt(t))}return e},"defaultECRHttpAuthSchemeProvider"),JDt=i(t=>{let e=QDt(t);return Object.assign(e,{authSchemePreference:xOe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),jDt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),KDt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},XDt="3.1153.0",ZDt={version:XDt},Zy="ref",Gm=-1,qk=!0,EOe="isSet",IK="PartitionResult",gp="stringEquals",Gk="booleanEquals",CK="getAttr",COe={[Zy]:"Endpoint"},yp={fn:CK,argv:[{[Zy]:IK},"name"]},IOe={[Zy]:IK},$m={},wOe=[{[Zy]:"Region"}],SOe={conditions:[[EOe,[COe]],[EOe,wOe],["aws.partition",wOe,IK],[gp,[yp,"aws-eusc"]],[gp,[yp,"aws-iso-f"]],[gp,[yp,"aws-iso-e"]],[gp,[yp,"aws-iso-b"]],[gp,[yp,"aws-iso"]],[gp,[yp,"aws-cn"]],[gp,[yp,"aws-us-gov"]],[gp,[yp,"aws"]],[Gk,[{[Zy]:"UseFIPS"},qk]],[Gk,[{fn:CK,argv:[IOe,"supportsFIPS"]},qk]],[Gk,[{[Zy]:"UseDualStack"},qk]],[Gk,[{fn:CK,argv:[IOe,"supportsDualStack"]},qk]]],results:[[Gm],[Gm,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Gm,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[COe,$m],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",$m],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",$m],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",$m],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$m],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$m],[Gm,"FIPS and DualStack are enabled, but this partition does not support one or both"],[Gm,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",$m],[Gm,"DualStack is enabled but this partition does not support DualStack"],[Gm,"Invalid Configuration: Missing Region"]]},ekt=2,Qn=1e8,tkt=new Int32Array([-1,1,-1,0,23,3,1,4,Qn+13,2,5,Qn+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,Qn+4,14,Qn+11,Qn+12,12,18,17,13,Qn+9,Qn+10,13,19,Qn+6,14,Qn+8,Qn+9,11,22,21,13,Qn+5,Qn+4,13,Qn+7,Qn+6,11,Qn+1,24,13,Qn+2,Qn+3]),rkt=gDt.from(tkt,ekt,SOe.conditions,SOe.results),nkt=new yDt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),skt=i((t,e={})=>nkt.get(t,()=>EDt(rkt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");CDt.aws=UQt;var ge=class t extends rDt{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},$k=class t extends ge{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecr#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Hk=class t extends ge{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zk=class t extends ge{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecr#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Vk=class t extends ge{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecr#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wk=class t extends ge{static{i(this,"UnableToGetUpstreamImageException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamImageException";name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yk=class t extends ge{static{i(this,"ValidationException")}static shapeId="com.amazonaws.ecr#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Jk=class t extends ge{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecr#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jk=class t extends ge{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecr#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kk=class t extends ge{static{i(this,"KmsException")}static shapeId="com.amazonaws.ecr#KmsException";name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.kmsError=e.kmsError}},Xk=class t extends ge{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecr#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zk=class t extends ge{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecr#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eL=class t extends ge{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecr#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tL=class t extends ge{static{i(this,"PullThroughCacheRuleAlreadyExistsException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException";name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rL=class t extends ge{static{i(this,"SecretNotFoundException")}static shapeId="com.amazonaws.ecr#SecretNotFoundException";name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nL=class t extends ge{static{i(this,"UnableToAccessSecretException")}static shapeId="com.amazonaws.ecr#UnableToAccessSecretException";name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sL=class t extends ge{static{i(this,"UnableToDecryptSecretValueException")}static shapeId="com.amazonaws.ecr#UnableToDecryptSecretValueException";name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oL=class t extends ge{static{i(this,"UnsupportedUpstreamRegistryException")}static shapeId="com.amazonaws.ecr#UnsupportedUpstreamRegistryException";name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iL=class t extends ge{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecr#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aL=class t extends ge{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecr#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cL=class t extends ge{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecr#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lL=class t extends ge{static{i(this,"TemplateAlreadyExistsException")}static shapeId="com.amazonaws.ecr#TemplateAlreadyExistsException";name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uL=class t extends ge{static{i(this,"LifecyclePolicyNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyNotFoundException";name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dL=class t extends ge{static{i(this,"PullThroughCacheRuleNotFoundException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleNotFoundException";name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pL=class t extends ge{static{i(this,"RegistryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RegistryPolicyNotFoundException";name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fL=class t extends ge{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecr#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mL=class t extends ge{static{i(this,"TemplateNotFoundException")}static shapeId="com.amazonaws.ecr#TemplateNotFoundException";name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},AL=class t extends ge{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hL=class t extends ge{static{i(this,"SigningConfigurationNotFoundException")}static shapeId="com.amazonaws.ecr#SigningConfigurationNotFoundException";name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},gL=class t extends ge{static{i(this,"ExclusionNotFoundException")}static shapeId="com.amazonaws.ecr#ExclusionNotFoundException";name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},yL=class t extends ge{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecr#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},EL=class t extends ge{static{i(this,"ScanNotFoundException")}static shapeId="com.amazonaws.ecr#ScanNotFoundException";name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CL=class t extends ge{static{i(this,"LayerInaccessibleException")}static shapeId="com.amazonaws.ecr#LayerInaccessibleException";name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},IL=class t extends ge{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecr#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wL=class t extends ge{static{i(this,"UnableToGetUpstreamLayerException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamLayerException";name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},SL=class t extends ge{static{i(this,"LifecyclePolicyPreviewNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException";name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},xL=class t extends ge{static{i(this,"UnableToListUpstreamImageReferrersException")}static shapeId="com.amazonaws.ecr#UnableToListUpstreamImageReferrersException";name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(e){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bL=class t extends ge{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},BL=class t extends ge{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecr#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},RL=class t extends ge{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},NL=class t extends ge{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecr#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},TL=class t extends ge{static{i(this,"BlockedByOrganizationPolicyException")}static shapeId="com.amazonaws.ecr#BlockedByOrganizationPolicyException";name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},PL=class t extends ge{static{i(this,"ExclusionAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ExclusionAlreadyExistsException";name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},vL=class t extends ge{static{i(this,"ImageArchivedException")}static shapeId="com.amazonaws.ecr#ImageArchivedException";name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},_L=class t extends ge{static{i(this,"UnsupportedImageTypeException")}static shapeId="com.amazonaws.ecr#UnsupportedImageTypeException";name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QL=class t extends ge{static{i(this,"LifecyclePolicyPreviewInProgressException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException";name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},DL=class t extends ge{static{i(this,"ImageStorageClassUpdateNotSupportedException")}static shapeId="com.amazonaws.ecr#ImageStorageClassUpdateNotSupportedException";name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},kL=class t extends ge{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecr#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},okt="Attribute",ikt="AuthorizationData",akt="AuthorizationDataList",ckt="AwsEcrContainerImageDetails",lkt="AttributeList",ukt="BlockedByOrganizationPolicyException",dkt="BatchCheckLayerAvailability",pkt="BatchCheckLayerAvailabilityRequest",fkt="BatchCheckLayerAvailabilityResponse",mkt="BatchDeleteImage",Akt="BatchDeleteImageRequest",hkt="BatchDeleteImageResponse",gkt="BatchGetImage",ykt="BatchGetImageRequest",Ekt="BatchGetImageResponse",Ckt="BatchGetRepositoryScanningConfiguration",Ikt="BatchGetRepositoryScanningConfigurationRequest",wkt="BatchGetRepositoryScanningConfigurationResponse",Skt="CompleteLayerUpload",xkt="CompleteLayerUploadRequest",bkt="CompleteLayerUploadResponse",Bkt="CreatePullThroughCacheRule",Rkt="CreatePullThroughCacheRuleRequest",Nkt="CreatePullThroughCacheRuleResponse",Tkt="CreateRepository",Pkt="CreateRepositoryCreationTemplate",vkt="CreateRepositoryCreationTemplateRequest",_kt="CreateRepositoryCreationTemplateResponse",Qkt="CreateRepositoryRequest",Dkt="CreateRepositoryResponse",kkt="CvssScore",Lkt="CvssScoreAdjustment",Okt="CvssScoreAdjustmentList",Mkt="CvssScoreDetails",Fkt="CvssScoreList",Ukt="DescribeImages",qkt="DescribeImagesFilter",Gkt="DescribeImagesRequest",$kt="DescribeImageReplicationStatus",Hkt="DescribeImageReplicationStatusRequest",zkt="DescribeImageReplicationStatusResponse",Vkt="DescribeImagesResponse",Wkt="DescribeImageScanFindings",Ykt="DescribeImageScanFindingsRequest",Jkt="DescribeImageScanFindingsResponse",jkt="DescribeImageSigningStatus",Kkt="DescribeImageSigningStatusRequest",Xkt="DescribeImageSigningStatusResponse",Zkt="DeleteLifecyclePolicy",eLt="DeleteLifecyclePolicyRequest",tLt="DeleteLifecyclePolicyResponse",rLt="DeletePullThroughCacheRule",nLt="DeletePullThroughCacheRuleRequest",sLt="DeletePullThroughCacheRuleResponse",oLt="DescribePullThroughCacheRulesRequest",iLt="DescribePullThroughCacheRulesResponse",aLt="DescribePullThroughCacheRules",cLt="DeregisterPullTimeUpdateExclusion",lLt="DeregisterPullTimeUpdateExclusionRequest",uLt="DeregisterPullTimeUpdateExclusionResponse",dLt="DeleteRepository",pLt="DeleteRepositoryCreationTemplate",fLt="DeleteRepositoryCreationTemplateRequest",mLt="DeleteRepositoryCreationTemplateResponse",ALt="DescribeRepositoryCreationTemplatesRequest",hLt="DescribeRepositoryCreationTemplatesResponse",gLt="DescribeRepositoryCreationTemplates",yLt="DeleteRegistryPolicy",ELt="DeleteRegistryPolicyRequest",CLt="DeleteRegistryPolicyResponse",ILt="DeleteRepositoryPolicyRequest",wLt="DeleteRepositoryPolicyResponse",SLt="DeleteRepositoryPolicy",xLt="DeleteRepositoryRequest",bLt="DeleteRepositoryResponse",BLt="DescribeRegistryRequest",RLt="DescribeRegistryResponse",NLt="DescribeRepositoriesRequest",TLt="DescribeRepositoriesResponse",PLt="DescribeRegistry",vLt="DescribeRepositories",_Lt="DeleteSigningConfiguration",QLt="DeleteSigningConfigurationRequest",DLt="DeleteSigningConfigurationResponse",kLt="ExclusionAlreadyExistsException",LLt="EncryptionConfiguration",OLt="EncryptionConfigurationForRepositoryCreationTemplate",MLt="EnhancedImageScanFinding",FLt="EnhancedImageScanFindingList",ULt="ExclusionNotFoundException",qLt="EmptyUploadException",GLt="GetAccountSetting",$Lt="GetAccountSettingRequest",HLt="GetAccountSettingResponse",zLt="GetAuthorizationToken",VLt="GetAuthorizationTokenRequest",WLt="GetAuthorizationTokenResponse",YLt="GetDownloadUrlForLayer",JLt="GetDownloadUrlForLayerRequest",jLt="GetDownloadUrlForLayerResponse",KLt="GetLifecyclePolicy",XLt="GetLifecyclePolicyPreview",ZLt="GetLifecyclePolicyPreviewRequest",eOt="GetLifecyclePolicyPreviewResponse",tOt="GetLifecyclePolicyRequest",rOt="GetLifecyclePolicyResponse",nOt="GetRegistryPolicy",sOt="GetRegistryPolicyRequest",oOt="GetRegistryPolicyResponse",iOt="GetRepositoryPolicyRequest",aOt="GetRepositoryPolicyResponse",cOt="GetRepositoryPolicy",lOt="GetRegistryScanningConfiguration",uOt="GetRegistryScanningConfigurationRequest",dOt="GetRegistryScanningConfigurationResponse",pOt="GetSigningConfiguration",fOt="GetSigningConfigurationRequest",mOt="GetSigningConfigurationResponse",AOt="Image",hOt="ImageArchivedException",gOt="ImageAlreadyExistsException",yOt="ImageDetail",EOt="ImageDigestDoesNotMatchException",COt="ImageDetailList",IOt="ImageFailure",wOt="ImageFailureList",SOt="ImageIdentifier",xOt="ImageIdentifierList",bOt="ImageList",BOt="InvalidLayerException",ROt="InvalidLayerPartException",NOt="InitiateLayerUpload",TOt="InitiateLayerUploadRequest",POt="InitiateLayerUploadResponse",vOt="ImageNotFoundException",_Ot="InvalidParameterException",QOt="ImageReferrer",DOt="ImageReferrerList",kOt="ImageReplicationStatus",LOt="ImageReplicationStatusList",OOt="ImageScanningConfiguration",MOt="ImageStorageClassUpdateNotSupportedException",FOt="ImageScanFinding",UOt="ImageScanFindingList",qOt="ImageScanFindingsSummary",GOt="ImageScanFindings",$Ot="ImageScanStatus",HOt="ImageSigningStatusList",zOt="ImageSigningStatus",VOt="ImageTagAlreadyExistsException",WOt="ImageTagMutabilityExclusionFilter",YOt="ImageTagMutabilityExclusionFilters",JOt="InvalidTagParameterException",jOt="Key",KOt="KmsException",XOt="Layer",ZOt="LayerAlreadyExistsException",eMt="LimitExceededException",tMt="LayerFailure",rMt="LayerFailureList",nMt="ListImages",sMt="LayerInaccessibleException",oMt="ListImagesFilter",iMt="ListImagesRequest",aMt="ListImageReferrersFilter",cMt="ListImageReferrersRequest",lMt="ListImageReferrersResponse",uMt="ListImagesResponse",dMt="ListImageReferrers",pMt="LayerList",fMt="LayersNotFoundException",mMt="LifecyclePolicyNotFoundException",AMt="LifecyclePolicyPreviewFilter",hMt="LifecyclePolicyPreviewInProgressException",gMt="LifecyclePolicyPreviewNotFoundException",yMt="LifecyclePolicyPreviewResult",EMt="LifecyclePolicyPreviewResultList",CMt="LifecyclePolicyPreviewSummary",IMt="LifecyclePolicyRuleAction",wMt="LayerPartTooSmallException",SMt="ListPullTimeUpdateExclusions",xMt="ListPullTimeUpdateExclusionsRequest",bMt="ListPullTimeUpdateExclusionsResponse",BMt="ListTagsForResource",RMt="ListTagsForResourceRequest",NMt="ListTagsForResourceResponse",TMt="PutAccountSetting",PMt="PutAccountSettingRequest",vMt="PutAccountSettingResponse",_Mt="PutImage",QMt="PutImageRequest",DMt="PutImageResponse",kMt="PutImageScanningConfiguration",LMt="PutImageScanningConfigurationRequest",OMt="PutImageScanningConfigurationResponse",MMt="PutImageTagMutability",FMt="PutImageTagMutabilityRequest",UMt="PutImageTagMutabilityResponse",qMt="PutLifecyclePolicy",GMt="PutLifecyclePolicyRequest",$Mt="PutLifecyclePolicyResponse",HMt="PutReplicationConfiguration",zMt="PutReplicationConfigurationRequest",VMt="PutReplicationConfigurationResponse",WMt="PutRegistryPolicy",YMt="PutRegistryPolicyRequest",JMt="PutRegistryPolicyResponse",jMt="PutRegistryScanningConfiguration",KMt="PutRegistryScanningConfigurationRequest",XMt="PutRegistryScanningConfigurationResponse",ZMt="PutSigningConfiguration",eFt="PutSigningConfigurationRequest",tFt="PutSigningConfigurationResponse",rFt="PullThroughCacheRule",nFt="PullThroughCacheRuleAlreadyExistsException",sFt="PullThroughCacheRuleList",oFt="PullThroughCacheRuleNotFoundException",iFt="PackageVulnerabilityDetails",aFt="Recommendation",cFt="RepositoryAlreadyExistsException",lFt="ReplicationConfiguration",uFt="RepositoryCreationTemplate",dFt="RepositoryCreationTemplateList",pFt="ReplicationDestination",fFt="ReplicationDestinationList",mFt="ResourceDetails",AFt="RepositoryFilter",hFt="RepositoryFilterList",gFt="ReferencedImagesNotFoundException",yFt="RepositoryList",EFt="ResourceList",CFt="RepositoryNotEmptyException",IFt="RepositoryNotFoundException",wFt="RegistryPolicyNotFoundException",SFt="RepositoryPolicyNotFoundException",xFt="RegisterPullTimeUpdateExclusion",bFt="RegisterPullTimeUpdateExclusionRequest",BFt="RegisterPullTimeUpdateExclusionResponse",RFt="ReplicationRule",NFt="ReplicationRuleList",TFt="RegistryScanningConfiguration",PFt="RepositoryScanningConfigurationFailure",vFt="RepositoryScanningConfigurationFailureList",_Ft="RepositoryScanningConfigurationList",QFt="RepositoryScanningConfiguration",DFt="RegistryScanningRule",kFt="RegistryScanningRuleList",LFt="Remediation",OFt="Repository",MFt="Resource",FFt="SigningConfiguration",UFt="SigningConfigurationNotFoundException",qFt="ScoreDetails",GFt="ServerException",$Ft="SubjectIdentifier",HFt="StartImageScan",zFt="StartImageScanRequest",VFt="StartImageScanResponse",WFt="StartLifecyclePolicyPreview",YFt="StartLifecyclePolicyPreviewRequest",JFt="StartLifecyclePolicyPreviewResponse",jFt="ScanNotFoundException",KFt="SecretNotFoundException",XFt="SigningRule",ZFt="ScanningRepositoryFilter",eUt="ScanningRepositoryFilterList",tUt="SigningRepositoryFilterList",rUt="SigningRepositoryFilter",nUt="SigningRuleList",sUt="SetRepositoryPolicy",oUt="SetRepositoryPolicyRequest",iUt="SetRepositoryPolicyResponse",aUt="Tag",cUt="TemplateAlreadyExistsException",lUt="TransitioningImageTotalCount",uUt="TransitioningImageTotalCounts",dUt="TagList",pUt="TooManyTagsException",fUt="TemplateNotFoundException",mUt="TagResource",AUt="TagResourceRequest",hUt="TagResourceResponse",gUt="UpdateImageStorageClass",yUt="UpdateImageStorageClassRequest",EUt="UpdateImageStorageClassResponse",CUt="UnsupportedImageTypeException",IUt="UploadLayerPart",wUt="UploadLayerPartRequest",SUt="UploadLayerPartResponse",xUt="UploadNotFoundException",bUt="UpdatePullThroughCacheRule",BUt="UpdatePullThroughCacheRuleRequest",RUt="UpdatePullThroughCacheRuleResponse",NUt="UntagResource",TUt="UpdateRepositoryCreationTemplate",PUt="UpdateRepositoryCreationTemplateRequest",vUt="UpdateRepositoryCreationTemplateResponse",_Ut="UntagResourceRequest",QUt="UntagResourceResponse",DUt="UnableToAccessSecretException",kUt="UnableToDecryptSecretValueException",LUt="UnableToGetUpstreamImageException",OUt="UnableToGetUpstreamLayerException",MUt="UnableToListUpstreamImageReferrersException",FUt="UnsupportedUpstreamRegistryException",UUt="Value",qUt="ValidationException",GUt="VulnerablePackage",$Ut="VulnerablePackagesList",HUt="ValidatePullThroughCacheRule",zUt="ValidatePullThroughCacheRuleRequest",VUt="ValidatePullThroughCacheRuleResponse",WUt="architecture",YUt="awsAccountId",JUt="authorizationData",jUt="awsEcrContainerImage",wK="appliedFor",KUt="acceptedMediaTypes",XUt="artifactMediaType",ZUt="appliedRulePriority",NOe="artifactStatus",e1t="appliedScanFilters",t1t="authorizationToken",r1t="artifactType",n1t="artifactTypes",s1t="action",o1t="adjustments",i1t="annotations",a1t="arch",c1t="attributes",l1t="author",u1t="baseScore",Pe="client",zm="credentialArn",rE="createdAt",gl="customRoleArn",TOe="cvss",nE="description",d1t="downloadUrl",p1t="destinations",f1t="details",m1t="digest",Ne="error",A1t="expiresAt",h1t="exploitAvailable",Vx="encryptionConfiguration",g1t="enhancedFindings",y1t="expiringImageTotalCount",Iu="ecrRepositoryPrefix",E1t="ecrRepositoryPrefixes",POe="encryptionType",C1t="epoch",kO="failures",I1t="findingArn",w1t="fixAvailable",Wx="failureCode",S1t="fixedInVersion",x1t="firstObservedAt",b1t="filePath",LO="failureReason",vOe="findingSeverityCounts",OO="filterType",B1t="failure",Ep="filter",R1t="findings",_Oe="force",N1t="httpError",T1t="images",P1t="imageDetails",Yx="imageDigest",v1t="imageHash",sE="imageIds",Qi="imageId",QOe="imageManifest",SK="imageManifestMediaType",DOe="imagePushedAt",MO="imageStatus",FO="imageScanningConfiguration",kOe="imageScanCompletedAt",_1t="imageScanFindings",Q1t="imageScanFindingsSummary",D1t="imageSizeInBytes",xK="imageScanStatus",bK="imageTags",k1t="imageTotalCount",Vm="imageTagMutability",Wm="imageTagMutabilityExclusionFilters",LOe="imageTag",L1t="inUseCount",O1t="isValid",M1t="id",F1t="image",U1t="key",q1t="kmsError",OOe="kmsKey",G1t="layers",$1t="layerAvailability",H1t="lastArchivedAt",z1t="lastActivatedAt",V1t="lastByteReceived",MOe="layerDigests",Jx="layerDigest",FOe="lastEvaluatedAt",W1t="lastInUseAt",Y1t="lastObservedAt",BK="lifecyclePolicy",J1t="layerPartBlob",Ym="lifecyclePolicyText",j1t="lastRecordedPullTime",K1t="layerSize",X1t="lastValidByteReceived",Te="message",wu="maxResults",UOe="mediaType",Z1t="metric",oE="name",hn="nextToken",e2t="platform",t2t="pushedAt",UO="principalArn",r2t="proxyEndpoint",n2t="partFirstByte",s2t="partLastByte",o2t="packageManager",i2t="previewResults",a2t="partSize",Cp="policyText",c2t="pullThroughCacheRules",l2t="pullTimeUpdateExclusions",u2t="packageVulnerabilityDetails",qO="prefix",d2t="prefixes",p2t="registry",RK="resourceArn",qOe="repositoryArn",NK="replicationConfiguration",TK="repositoryCreationTemplate",f2t="repositoryCreationTemplates",PK="repositoryFilters",G="registryId",m2t="registryIds",he="repositoryName",GOe="repositoryNames",vK="repositoryPolicy",A2t="replicationStatuses",h2t="registryScanningConfiguration",_K="resourceTags",g2t="referenceUrls",y2t="repositoryUri",E2t="relatedVulnerabilities",$Oe="repository",C2t="reason",I2t="recommendation",w2t="referrers",HOe="region",S2t="release",x2t="remediation",b2t="repositories",B2t="resources",GO="rules",zOe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",R2t="scanningConfigurations",N2t="scanningConfiguration",$O="signingConfiguration",T2t="storageClass",P2t="scoreDetails",VOe="scanFrequency",v2t="subjectId",_2t="sourceLayerHash",Q2t="subjectManifestDigest",WOe="scanOnPush",YOe="signingProfileArn",D2t="scoreSource",k2t="signingStatuses",JOe="scanType",L2t="sourceUrl",jOe="scoringVector",KOe="score",O2t="server",XOe="severity",M2t="size",ZOe="source",iE="status",F2t="summary",HO="tags",U2t="transitioningImageTotalCounts",q2t="tagKeys",QK="tagStatus",DK="targetStorageClass",G2t="text",$2t="title",kK="type",H2t="uri",zO="updatedAt",aE="uploadId",LK="upstreamRegistry",cE="upstreamRepositoryPrefix",jx="upstreamRegistryUrl",z2t="url",VO="value",V2t="vendorCreatedAt",W2t="vulnerabilityId",Y2t="vulnerablePackages",J2t="vendorSeverity",eMe="vulnerabilitySourceUpdatedAt",j2t="vendorUpdatedAt",OK="version",S="com.amazonaws.ecr",tMe=new ROe(zOe),rMe=[-3,zOe,"ECRServiceException",0,[],[]];tMe.registerError(rMe,ge);var be=new ROe(S),nMe=[-3,S,ukt,{[Ne]:Pe},[Te],[0]];be.registerError(nMe,TL);var sMe=[-3,S,qLt,{[Ne]:Pe},[Te],[0]];be.registerError(sMe,Jk);var oMe=[-3,S,kLt,{[Ne]:Pe},[Te],[0]];be.registerError(oMe,PL);var iMe=[-3,S,ULt,{[Ne]:Pe},[Te],[0]];be.registerError(iMe,gL);var aMe=[-3,S,gOt,{[Ne]:Pe},[Te],[0]];be.registerError(aMe,bL);var cMe=[-3,S,hOt,{[Ne]:Pe},[Te],[0]];be.registerError(cMe,vL);var lMe=[-3,S,EOt,{[Ne]:Pe},[Te],[0]];be.registerError(lMe,BL);var uMe=[-3,S,vOt,{[Ne]:Pe},[Te],[0]];be.registerError(uMe,yL);var dMe=[-3,S,MOt,{[Ne]:Pe},[Te],[0]];be.registerError(dMe,DL);var pMe=[-3,S,VOt,{[Ne]:Pe},[Te],[0]];be.registerError(pMe,RL);var fMe=[-3,S,BOt,{[Ne]:Pe},[Te],[0]];be.registerError(fMe,jk);var mMe=[-3,S,ROt,{[Ne]:Pe},[G,he,aE,X1t,Te],[0,0,0,1,0]];be.registerError(mMe,kL);var AMe=[-3,S,_Ot,{[Ne]:Pe},[Te],[0]];be.registerError(AMe,$k);var hMe=[-3,S,JOt,{[Ne]:Pe},[Te],[0]];be.registerError(hMe,iL);var gMe=[-3,S,KOt,{[Ne]:Pe},[Te,q1t],[0,0]];be.registerError(gMe,Kk);var yMe=[-3,S,ZOt,{[Ne]:Pe},[Te],[0]];be.registerError(yMe,Xk);var EMe=[-3,S,sMt,{[Ne]:Pe},[Te],[0]];be.registerError(EMe,CL);var CMe=[-3,S,wMt,{[Ne]:Pe},[Te],[0]];be.registerError(CMe,Zk);var IMe=[-3,S,fMt,{[Ne]:Pe},[Te],[0]];be.registerError(IMe,IL);var wMe=[-3,S,mMt,{[Ne]:Pe},[Te],[0]];be.registerError(wMe,uL);var SMe=[-3,S,hMt,{[Ne]:Pe},[Te],[0]];be.registerError(SMe,QL);var xMe=[-3,S,gMt,{[Ne]:Pe},[Te],[0]];be.registerError(xMe,SL);var bMe=[-3,S,eMt,{[Ne]:Pe},[Te],[0]];be.registerError(bMe,Vk);var BMe=[-3,S,nFt,{[Ne]:Pe},[Te],[0]];be.registerError(BMe,tL);var RMe=[-3,S,oFt,{[Ne]:Pe},[Te],[0]];be.registerError(RMe,dL);var NMe=[-3,S,gFt,{[Ne]:Pe},[Te],[0]];be.registerError(NMe,NL);var TMe=[-3,S,wFt,{[Ne]:Pe},[Te],[0]];be.registerError(TMe,pL);var PMe=[-3,S,cFt,{[Ne]:Pe},[Te],[0]];be.registerError(PMe,aL);var vMe=[-3,S,CFt,{[Ne]:Pe},[Te],[0]];be.registerError(vMe,fL);var _Me=[-3,S,IFt,{[Ne]:Pe},[Te],[0]];be.registerError(_Me,Hk);var QMe=[-3,S,SFt,{[Ne]:Pe},[Te],[0]];be.registerError(QMe,AL);var DMe=[-3,S,jFt,{[Ne]:Pe},[Te],[0]];be.registerError(DMe,EL);var kMe=[-3,S,KFt,{[Ne]:Pe},[Te],[0]];be.registerError(kMe,rL);var LMe=[-3,S,GFt,{[Ne]:O2t},[Te],[0]];be.registerError(LMe,zk);var OMe=[-3,S,UFt,{[Ne]:Pe},[Te],[0]];be.registerError(OMe,hL);var MMe=[-3,S,cUt,{[Ne]:Pe},[Te],[0]];be.registerError(MMe,lL);var FMe=[-3,S,fUt,{[Ne]:Pe},[Te],[0]];be.registerError(FMe,mL);var UMe=[-3,S,pUt,{[Ne]:Pe},[Te],[0]];be.registerError(UMe,cL);var qMe=[-3,S,DUt,{[Ne]:Pe},[Te],[0]];be.registerError(qMe,nL);var GMe=[-3,S,kUt,{[Ne]:Pe},[Te],[0]];be.registerError(GMe,sL);var $Me=[-3,S,LUt,{[Ne]:Pe},[Te],[0]];be.registerError($Me,Wk);var HMe=[-3,S,OUt,{[Ne]:Pe},[Te],[0]];be.registerError(HMe,wL);var zMe=[-3,S,MUt,{[Ne]:Pe},[Te],[0]];be.registerError(zMe,xL);var VMe=[-3,S,CUt,{[Ne]:Pe},[Te],[0]];be.registerError(VMe,_L);var WMe=[-3,S,FUt,{[Ne]:Pe},[Te],[0]];be.registerError(WMe,oL);var YMe=[-3,S,xUt,{[Ne]:Pe},[Te],[0]];be.registerError(YMe,eL);var JMe=[-3,S,qUt,{[Ne]:Pe,[N1t]:400},[Te],[0]];be.registerError(JMe,Yk);var jMe=[tMe,be],KMe=[3,S,okt,0,[U1t,VO],[0,0],1],XMe=[3,S,ikt,0,[t1t,A1t,r2t],[0,4,0]],ZMe=[3,S,ckt,0,[WUt,l1t,v1t,bK,e2t,t2t,W1t,L1t,p2t,he],[0,0,0,64,0,4,4,1,0,0]],eFe=[3,S,pkt,0,[he,MOe,G],[0,64,0],2],tFe=[3,S,fkt,0,[G1t,kO],[()=>lqt,()=>cqt]],rFe=[3,S,Akt,0,[he,sE,G],[0,()=>lE,0],2],nFe=[3,S,hkt,0,[sE,kO],[()=>lE,()=>j1e]],sFe=[3,S,yk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9,S,kMt,0,()=>jUe,()=>KUe],U2e=[9,S,MMt,0,()=>XUe,()=>ZUe],q2e=[9,S,qMt,0,()=>e1e,()=>t1e],G2e=[9,S,WMt,0,()=>r1e,()=>n1e],$2e=[9,S,jMt,0,()=>s1e,()=>o1e],H2e=[9,S,HMt,0,()=>i1e,()=>a1e],z2e=[9,S,ZMt,0,()=>c1e,()=>l1e],V2e=[9,S,xFt,0,()=>d1e,()=>p1e],W2e=[9,S,sUt,0,()=>x1e,()=>b1e],Y2e=[9,S,HFt,0,()=>N1e,()=>T1e],J2e=[9,S,WFt,0,()=>P1e,()=>v1e],j2e=[9,S,mUt,0,()=>D1e,()=>k1e],K2e=[9,S,NUt,0,()=>O1e,()=>M1e],X2e=[9,S,gUt,0,()=>F1e,()=>U1e],Z2e=[9,S,bUt,0,()=>q1e,()=>G1e],eqe=[9,S,TUt,0,()=>$1e,()=>H1e],tqe=[9,S,IUt,0,()=>z1e,()=>V1e],rqe=[9,S,HUt,0,()=>W1e,()=>Y1e],xqt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??UDt,base64Encoder:t?.base64Encoder??FDt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??skt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??YDt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new DDt}],logger:t?.logger??new nDt,protocol:t?.protocol??HDt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:jMe,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??zDt,urlParser:t?.urlParser??SDt,utf8Decoder:t?.utf8Decoder??MDt,utf8Encoder:t?.utf8Encoder??ODt}),"getRuntimeConfig$1"),bqt=i(t=>{sDt(process.version);let e=dDt(t),r=i(()=>e().then(oDt),"defaultConfigProvider"),n=xqt(t);qQt(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??qm(kDt,s),bodyLengthChecker:t?.bodyLengthChecker??qDt,credentialDefaultProvider:t?.credentialDefaultProvider??LDt,defaultUserAgentProvider:t?.defaultUserAgentProvider??GQt({serviceId:n.serviceId,clientVersion:ZDt.version}),maxAttempts:t?.maxAttempts??qm(TDt,t),region:t?.region??qm(mDt,{...ADt,...s}),requestHandler:$Dt.create(t?.requestHandler??r),retryMode:t?.retryMode??qm({...NDt,default:i(async()=>(await r()).retryMode||RDt,"default")},t),streamCollector:t?.streamCollector??GDt,useDualstackEndpoint:t?.useDualstackEndpoint??qm(fDt,s),useFipsEndpoint:t?.useFipsEndpoint??qm(pDt,s),userAgentAppId:t?.userAgentAppId??qm($Qt,s)}},"getRuntimeConfig"),Bqt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Rqt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),Nqt=i((t,e)=>{let r=Object.assign(HQt(t),iDt(t),xDt(t),Bqt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,zQt(r),aDt(r),bDt(r),Rqt(r))},"resolveRuntimeExtensions"),Ta=class extends bOe{static{i(this,"ECRClient")}config;constructor(...[e]){let r=bqt(e||{});super(r),this.initConfig=r;let n=jDt(r),s=VQt(n),o=PDt(s),a=hDt(o),c=WQt(a),l=IDt(c),u=JDt(l),d=Nqt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(_Dt(this.config)),this.middlewareStack.use(YQt(this.config)),this.middlewareStack.use(vDt(this.config)),this.middlewareStack.use(BDt(this.config)),this.middlewareStack.use(JQt(this.config)),this.middlewareStack.use(jQt(this.config)),this.middlewareStack.use(KQt(this.config)),this.middlewareStack.use(XQt(this.config,{httpAuthSchemeParametersProvider:VDt,identityProviderConfigProvider:i(async p=>new ZQt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(eDt(this.config))}destroy(){super.destroy()}},ne=cDt(KDt,"AmazonEC2ContainerRegistry_V20150921","ECRClient",wDt),se={},oe=i((t,e,r,n)=>[],"_mw0"),LL=class extends ne(se,oe,"BatchCheckLayerAvailability",Z1e){static{i(this,"BatchCheckLayerAvailabilityCommand")}},OL=class extends ne(se,oe,"BatchDeleteImage",e2e){static{i(this,"BatchDeleteImageCommand")}},ML=class extends ne(se,oe,"BatchGetImage",t2e){static{i(this,"BatchGetImageCommand")}},FL=class extends ne(se,oe,"BatchGetRepositoryScanningConfiguration",r2e){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},UL=class extends ne(se,oe,"CompleteLayerUpload",n2e){static{i(this,"CompleteLayerUploadCommand")}},qL=class extends ne(se,oe,"CreatePullThroughCacheRule",s2e){static{i(this,"CreatePullThroughCacheRuleCommand")}},GL=class extends ne(se,oe,"CreateRepository",o2e){static{i(this,"CreateRepositoryCommand")}},$L=class extends ne(se,oe,"CreateRepositoryCreationTemplate",i2e){static{i(this,"CreateRepositoryCreationTemplateCommand")}},HL=class extends ne(se,oe,"DeleteLifecyclePolicy",a2e){static{i(this,"DeleteLifecyclePolicyCommand")}},zL=class extends ne(se,oe,"DeletePullThroughCacheRule",c2e){static{i(this,"DeletePullThroughCacheRuleCommand")}},VL=class extends ne(se,oe,"DeleteRegistryPolicy",l2e){static{i(this,"DeleteRegistryPolicyCommand")}},WL=class extends ne(se,oe,"DeleteRepository",u2e){static{i(this,"DeleteRepositoryCommand")}},YL=class extends ne(se,oe,"DeleteRepositoryCreationTemplate",d2e){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},JL=class extends ne(se,oe,"DeleteRepositoryPolicy",p2e){static{i(this,"DeleteRepositoryPolicyCommand")}},jL=class extends ne(se,oe,"DeleteSigningConfiguration",f2e){static{i(this,"DeleteSigningConfigurationCommand")}},KL=class extends ne(se,oe,"DeregisterPullTimeUpdateExclusion",m2e){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},XL=class extends ne(se,oe,"DescribeImageReplicationStatus",A2e){static{i(this,"DescribeImageReplicationStatusCommand")}},eE=class extends ne(se,oe,"DescribeImageScanFindings",g2e){static{i(this,"DescribeImageScanFindingsCommand")}},qx=class extends ne(se,oe,"DescribeImages",h2e){static{i(this,"DescribeImagesCommand")}},ZL=class extends ne(se,oe,"DescribeImageSigningStatus",y2e){static{i(this,"DescribeImageSigningStatusCommand")}},Gx=class extends ne(se,oe,"DescribePullThroughCacheRules",E2e){static{i(this,"DescribePullThroughCacheRulesCommand")}},eO=class extends ne(se,oe,"DescribeRegistry",C2e){static{i(this,"DescribeRegistryCommand")}},$x=class extends ne(se,oe,"DescribeRepositories",I2e){static{i(this,"DescribeRepositoriesCommand")}},Hx=class extends ne(se,oe,"DescribeRepositoryCreationTemplates",w2e){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},tO=class extends ne(se,oe,"GetAccountSetting",S2e){static{i(this,"GetAccountSettingCommand")}},rO=class extends ne(se,oe,"GetAuthorizationToken",x2e){static{i(this,"GetAuthorizationTokenCommand")}},nO=class extends ne(se,oe,"GetDownloadUrlForLayer",b2e){static{i(this,"GetDownloadUrlForLayerCommand")}},sO=class extends ne(se,oe,"GetLifecyclePolicy",B2e){static{i(this,"GetLifecyclePolicyCommand")}},tE=class extends ne(se,oe,"GetLifecyclePolicyPreview",R2e){static{i(this,"GetLifecyclePolicyPreviewCommand")}},oO=class extends ne(se,oe,"GetRegistryPolicy",N2e){static{i(this,"GetRegistryPolicyCommand")}},iO=class extends ne(se,oe,"GetRegistryScanningConfiguration",T2e){static{i(this,"GetRegistryScanningConfigurationCommand")}},aO=class extends ne(se,oe,"GetRepositoryPolicy",P2e){static{i(this,"GetRepositoryPolicyCommand")}},cO=class extends ne(se,oe,"GetSigningConfiguration",v2e){static{i(this,"GetSigningConfigurationCommand")}},lO=class extends ne(se,oe,"InitiateLayerUpload",_2e){static{i(this,"InitiateLayerUploadCommand")}},uO=class extends ne(se,oe,"ListImageReferrers",Q2e){static{i(this,"ListImageReferrersCommand")}},zx=class extends ne(se,oe,"ListImages",D2e){static{i(this,"ListImagesCommand")}},dO=class extends ne(se,oe,"ListPullTimeUpdateExclusions",k2e){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},pO=class extends ne(se,oe,"ListTagsForResource",L2e){static{i(this,"ListTagsForResourceCommand")}},fO=class extends ne(se,oe,"PutAccountSetting",O2e){static{i(this,"PutAccountSettingCommand")}},mO=class extends ne(se,oe,"PutImage",M2e){static{i(this,"PutImageCommand")}},AO=class extends ne(se,oe,"PutImageScanningConfiguration",F2e){static{i(this,"PutImageScanningConfigurationCommand")}},hO=class extends ne(se,oe,"PutImageTagMutability",U2e){static{i(this,"PutImageTagMutabilityCommand")}},gO=class extends ne(se,oe,"PutLifecyclePolicy",q2e){static{i(this,"PutLifecyclePolicyCommand")}},yO=class extends ne(se,oe,"PutRegistryPolicy",G2e){static{i(this,"PutRegistryPolicyCommand")}},EO=class extends ne(se,oe,"PutRegistryScanningConfiguration",$2e){static{i(this,"PutRegistryScanningConfigurationCommand")}},CO=class extends ne(se,oe,"PutReplicationConfiguration",H2e){static{i(this,"PutReplicationConfigurationCommand")}},IO=class extends ne(se,oe,"PutSigningConfiguration",z2e){static{i(this,"PutSigningConfigurationCommand")}},wO=class extends ne(se,oe,"RegisterPullTimeUpdateExclusion",V2e){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},SO=class extends ne(se,oe,"SetRepositoryPolicy",W2e){static{i(this,"SetRepositoryPolicyCommand")}},xO=class extends ne(se,oe,"StartImageScan",Y2e){static{i(this,"StartImageScanCommand")}},bO=class extends ne(se,oe,"StartLifecyclePolicyPreview",J2e){static{i(this,"StartLifecyclePolicyPreviewCommand")}},BO=class extends ne(se,oe,"TagResource",j2e){static{i(this,"TagResourceCommand")}},RO=class extends ne(se,oe,"UntagResource",K2e){static{i(this,"UntagResourceCommand")}},NO=class extends ne(se,oe,"UpdateImageStorageClass",X2e){static{i(this,"UpdateImageStorageClassCommand")}},TO=class extends ne(se,oe,"UpdatePullThroughCacheRule",Z2e){static{i(this,"UpdatePullThroughCacheRuleCommand")}},PO=class extends ne(se,oe,"UpdateRepositoryCreationTemplate",eqe){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},vO=class extends ne(se,oe,"UploadLayerPart",tqe){static{i(this,"UploadLayerPartCommand")}},_O=class extends ne(se,oe,"ValidatePullThroughCacheRule",rqe){static{i(this,"ValidatePullThroughCacheRuleCommand")}},nqe=Hm(Ta,eE,"nextToken","nextToken","maxResults"),sqe=Hm(Ta,qx,"nextToken","nextToken","maxResults"),oqe=Hm(Ta,Gx,"nextToken","nextToken","maxResults"),iqe=Hm(Ta,$x,"nextToken","nextToken","maxResults"),aqe=Hm(Ta,Hx,"nextToken","nextToken","maxResults"),cqe=Hm(Ta,tE,"nextToken","nextToken","maxResults"),lqe=Hm(Ta,zx,"nextToken","nextToken","maxResults"),uqe=i(async(t,e)=>{let r;try{let n=await t.send(new eE(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:Xy.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:Xy.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Xy.RETRY,reason:r}},"checkState$1"),Tqt=i(async(t,e)=>DO({...{minDelay:5,maxDelay:120},...t},e,uqe),"waitForImageScanComplete"),dqe=i(async(t,e)=>{let n=await DO({...{minDelay:5,maxDelay:120},...t},e,uqe);return BOe(n)},"waitUntilImageScanComplete"),pqe=i(async(t,e)=>{let r;try{let n=await t.send(new tE(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:Xy.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:Xy.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Xy.RETRY,reason:r}},"checkState"),Pqt=i(async(t,e)=>DO({...{minDelay:5,maxDelay:120},...t},e,pqe),"waitForLifecyclePolicyPreviewComplete"),fqe=i(async(t,e)=>{let n=await DO({...{minDelay:5,maxDelay:120},...t},e,pqe);return BOe(n)},"waitUntilLifecyclePolicyPreviewComplete"),vqt={BatchCheckLayerAvailabilityCommand:LL,BatchDeleteImageCommand:OL,BatchGetImageCommand:ML,BatchGetRepositoryScanningConfigurationCommand:FL,CompleteLayerUploadCommand:UL,CreatePullThroughCacheRuleCommand:qL,CreateRepositoryCommand:GL,CreateRepositoryCreationTemplateCommand:$L,DeleteLifecyclePolicyCommand:HL,DeletePullThroughCacheRuleCommand:zL,DeleteRegistryPolicyCommand:VL,DeleteRepositoryCommand:WL,DeleteRepositoryCreationTemplateCommand:YL,DeleteRepositoryPolicyCommand:JL,DeleteSigningConfigurationCommand:jL,DeregisterPullTimeUpdateExclusionCommand:KL,DescribeImageReplicationStatusCommand:XL,DescribeImagesCommand:qx,DescribeImageScanFindingsCommand:eE,DescribeImageSigningStatusCommand:ZL,DescribePullThroughCacheRulesCommand:Gx,DescribeRegistryCommand:eO,DescribeRepositoriesCommand:$x,DescribeRepositoryCreationTemplatesCommand:Hx,GetAccountSettingCommand:tO,GetAuthorizationTokenCommand:rO,GetDownloadUrlForLayerCommand:nO,GetLifecyclePolicyCommand:sO,GetLifecyclePolicyPreviewCommand:tE,GetRegistryPolicyCommand:oO,GetRegistryScanningConfigurationCommand:iO,GetRepositoryPolicyCommand:aO,GetSigningConfigurationCommand:cO,InitiateLayerUploadCommand:lO,ListImageReferrersCommand:uO,ListImagesCommand:zx,ListPullTimeUpdateExclusionsCommand:dO,ListTagsForResourceCommand:pO,PutAccountSettingCommand:fO,PutImageCommand:mO,PutImageScanningConfigurationCommand:AO,PutImageTagMutabilityCommand:hO,PutLifecyclePolicyCommand:gO,PutRegistryPolicyCommand:yO,PutRegistryScanningConfigurationCommand:EO,PutReplicationConfigurationCommand:CO,PutSigningConfigurationCommand:IO,RegisterPullTimeUpdateExclusionCommand:wO,SetRepositoryPolicyCommand:SO,StartImageScanCommand:xO,StartLifecyclePolicyPreviewCommand:bO,TagResourceCommand:BO,UntagResourceCommand:RO,UpdateImageStorageClassCommand:NO,UpdatePullThroughCacheRuleCommand:TO,UpdateRepositoryCreationTemplateCommand:PO,UploadLayerPartCommand:vO,ValidatePullThroughCacheRuleCommand:_O},_qt={paginateDescribeImages:sqe,paginateDescribeImageScanFindings:nqe,paginateDescribePullThroughCacheRules:oqe,paginateDescribeRepositories:iqe,paginateDescribeRepositoryCreationTemplates:aqe,paginateGetLifecyclePolicyPreview:cqe,paginateListImages:lqe},Qqt={waitUntilImageScanComplete:dqe,waitUntilLifecyclePolicyPreviewComplete:fqe},QO=class extends Ta{static{i(this,"ECR")}};lDt(vqt,QO,{paginators:_qt,waiters:Qqt});var Dqt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},kqt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},Lqt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},Oqt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},Mqt={WILDCARD:"WILDCARD"},Fqt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},Uqt={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"},qqt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},Gqt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},$qt={WILDCARD:"WILDCARD"},Hqt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},zqt={WILDCARD_MATCH:"WILDCARD_MATCH"},Vqt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Wqt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},Yqt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},Jqt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},jqt={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"},Kqt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},Xqt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Zqt={PREFIX_MATCH:"PREFIX_MATCH"},eGt={ARCHIVE:"ARCHIVE"},tGt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},rGt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},nGt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},sGt={BASIC:"BASIC",ENHANCED:"ENHANCED"},oGt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},iGt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},aGt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};C.ArtifactStatus=iGt;C.ArtifactStatusFilter=oGt;C.Attribute$=KMe;C.AuthorizationData$=XMe;C.AwsEcrContainerImageDetails$=ZMe;C.BatchCheckLayerAvailability$=Z1e;C.BatchCheckLayerAvailabilityCommand=LL;C.BatchCheckLayerAvailabilityRequest$=eFe;C.BatchCheckLayerAvailabilityResponse$=tFe;C.BatchDeleteImage$=e2e;C.BatchDeleteImageCommand=OL;C.BatchDeleteImageRequest$=rFe;C.BatchDeleteImageResponse$=nFe;C.BatchGetImage$=t2e;C.BatchGetImageCommand=ML;C.BatchGetImageRequest$=sFe;C.BatchGetImageResponse$=oFe;C.BatchGetRepositoryScanningConfiguration$=r2e;C.BatchGetRepositoryScanningConfigurationCommand=FL;C.BatchGetRepositoryScanningConfigurationRequest$=iFe;C.BatchGetRepositoryScanningConfigurationResponse$=aFe;C.BlockedByOrganizationPolicyException=TL;C.BlockedByOrganizationPolicyException$=nMe;C.CompleteLayerUpload$=n2e;C.CompleteLayerUploadCommand=UL;C.CompleteLayerUploadRequest$=cFe;C.CompleteLayerUploadResponse$=lFe;C.CreatePullThroughCacheRule$=s2e;C.CreatePullThroughCacheRuleCommand=qL;C.CreatePullThroughCacheRuleRequest$=uFe;C.CreatePullThroughCacheRuleResponse$=dFe;C.CreateRepository$=o2e;C.CreateRepositoryCommand=GL;C.CreateRepositoryCreationTemplate$=i2e;C.CreateRepositoryCreationTemplateCommand=$L;C.CreateRepositoryCreationTemplateRequest$=pFe;C.CreateRepositoryCreationTemplateResponse$=fFe;C.CreateRepositoryRequest$=mFe;C.CreateRepositoryResponse$=AFe;C.CvssScore$=hFe;C.CvssScoreAdjustment$=gFe;C.CvssScoreDetails$=yFe;C.DeleteLifecyclePolicy$=a2e;C.DeleteLifecyclePolicyCommand=HL;C.DeleteLifecyclePolicyRequest$=EFe;C.DeleteLifecyclePolicyResponse$=CFe;C.DeletePullThroughCacheRule$=c2e;C.DeletePullThroughCacheRuleCommand=zL;C.DeletePullThroughCacheRuleRequest$=IFe;C.DeletePullThroughCacheRuleResponse$=wFe;C.DeleteRegistryPolicy$=l2e;C.DeleteRegistryPolicyCommand=VL;C.DeleteRegistryPolicyRequest$=SFe;C.DeleteRegistryPolicyResponse$=xFe;C.DeleteRepository$=u2e;C.DeleteRepositoryCommand=WL;C.DeleteRepositoryCreationTemplate$=d2e;C.DeleteRepositoryCreationTemplateCommand=YL;C.DeleteRepositoryCreationTemplateRequest$=bFe;C.DeleteRepositoryCreationTemplateResponse$=BFe;C.DeleteRepositoryPolicy$=p2e;C.DeleteRepositoryPolicyCommand=JL;C.DeleteRepositoryPolicyRequest$=RFe;C.DeleteRepositoryPolicyResponse$=NFe;C.DeleteRepositoryRequest$=TFe;C.DeleteRepositoryResponse$=PFe;C.DeleteSigningConfiguration$=f2e;C.DeleteSigningConfigurationCommand=jL;C.DeleteSigningConfigurationRequest$=vFe;C.DeleteSigningConfigurationResponse$=_Fe;C.DeregisterPullTimeUpdateExclusion$=m2e;C.DeregisterPullTimeUpdateExclusionCommand=KL;C.DeregisterPullTimeUpdateExclusionRequest$=QFe;C.DeregisterPullTimeUpdateExclusionResponse$=DFe;C.DescribeImageReplicationStatus$=A2e;C.DescribeImageReplicationStatusCommand=XL;C.DescribeImageReplicationStatusRequest$=kFe;C.DescribeImageReplicationStatusResponse$=LFe;C.DescribeImageScanFindings$=g2e;C.DescribeImageScanFindingsCommand=eE;C.DescribeImageScanFindingsRequest$=OFe;C.DescribeImageScanFindingsResponse$=MFe;C.DescribeImageSigningStatus$=y2e;C.DescribeImageSigningStatusCommand=ZL;C.DescribeImageSigningStatusRequest$=UFe;C.DescribeImageSigningStatusResponse$=qFe;C.DescribeImages$=h2e;C.DescribeImagesCommand=qx;C.DescribeImagesFilter$=FFe;C.DescribeImagesRequest$=GFe;C.DescribeImagesResponse$=$Fe;C.DescribePullThroughCacheRules$=E2e;C.DescribePullThroughCacheRulesCommand=Gx;C.DescribePullThroughCacheRulesRequest$=HFe;C.DescribePullThroughCacheRulesResponse$=zFe;C.DescribeRegistry$=C2e;C.DescribeRegistryCommand=eO;C.DescribeRegistryRequest$=VFe;C.DescribeRegistryResponse$=WFe;C.DescribeRepositories$=I2e;C.DescribeRepositoriesCommand=$x;C.DescribeRepositoriesRequest$=YFe;C.DescribeRepositoriesResponse$=JFe;C.DescribeRepositoryCreationTemplates$=w2e;C.DescribeRepositoryCreationTemplatesCommand=Hx;C.DescribeRepositoryCreationTemplatesRequest$=jFe;C.DescribeRepositoryCreationTemplatesResponse$=KFe;C.ECR=QO;C.ECRClient=Ta;C.ECRServiceException=ge;C.ECRServiceException$=rMe;C.EmptyUploadException=Jk;C.EmptyUploadException$=sMe;C.EncryptionConfiguration$=MK;C.EncryptionConfigurationForRepositoryCreationTemplate$=WO;C.EncryptionType=qqt;C.EnhancedImageScanFinding$=XFe;C.ExclusionAlreadyExistsException=PL;C.ExclusionAlreadyExistsException$=oMe;C.ExclusionNotFoundException=gL;C.ExclusionNotFoundException$=iMe;C.FindingSeverity=Jqt;C.GetAccountSetting$=S2e;C.GetAccountSettingCommand=tO;C.GetAccountSettingRequest$=ZFe;C.GetAccountSettingResponse$=eUe;C.GetAuthorizationToken$=x2e;C.GetAuthorizationTokenCommand=rO;C.GetAuthorizationTokenRequest$=tUe;C.GetAuthorizationTokenResponse$=rUe;C.GetDownloadUrlForLayer$=b2e;C.GetDownloadUrlForLayerCommand=nO;C.GetDownloadUrlForLayerRequest$=nUe;C.GetDownloadUrlForLayerResponse$=sUe;C.GetLifecyclePolicy$=B2e;C.GetLifecyclePolicyCommand=sO;C.GetLifecyclePolicyPreview$=R2e;C.GetLifecyclePolicyPreviewCommand=tE;C.GetLifecyclePolicyPreviewRequest$=oUe;C.GetLifecyclePolicyPreviewResponse$=iUe;C.GetLifecyclePolicyRequest$=aUe;C.GetLifecyclePolicyResponse$=cUe;C.GetRegistryPolicy$=N2e;C.GetRegistryPolicyCommand=oO;C.GetRegistryPolicyRequest$=lUe;C.GetRegistryPolicyResponse$=uUe;C.GetRegistryScanningConfiguration$=T2e;C.GetRegistryScanningConfigurationCommand=iO;C.GetRegistryScanningConfigurationRequest$=dUe;C.GetRegistryScanningConfigurationResponse$=pUe;C.GetRepositoryPolicy$=P2e;C.GetRepositoryPolicyCommand=aO;C.GetRepositoryPolicyRequest$=fUe;C.GetRepositoryPolicyResponse$=mUe;C.GetSigningConfiguration$=v2e;C.GetSigningConfigurationCommand=cO;C.GetSigningConfigurationRequest$=AUe;C.GetSigningConfigurationResponse$=hUe;C.Image$=FK;C.ImageActionType=tGt;C.ImageAlreadyExistsException=bL;C.ImageAlreadyExistsException$=aMe;C.ImageArchivedException=vL;C.ImageArchivedException$=cMe;C.ImageDetail$=gUe;C.ImageDigestDoesNotMatchException=BL;C.ImageDigestDoesNotMatchException$=lMe;C.ImageFailure$=yUe;C.ImageFailureCode=Lqt;C.ImageIdentifier$=Ks;C.ImageNotFoundException=yL;C.ImageNotFoundException$=uMe;C.ImageReferrer$=EUe;C.ImageReplicationStatus$=CUe;C.ImageScanFinding$=IUe;C.ImageScanFindings$=wUe;C.ImageScanFindingsSummary$=SUe;C.ImageScanStatus$=YO;C.ImageScanningConfiguration$=Kx;C.ImageSigningStatus$=xUe;C.ImageStatus=Kqt;C.ImageStatusFilter=Wqt;C.ImageStorageClassUpdateNotSupportedException=DL;C.ImageStorageClassUpdateNotSupportedException$=dMe;C.ImageTagAlreadyExistsException=RL;C.ImageTagAlreadyExistsException$=pMe;C.ImageTagMutability=Gqt;C.ImageTagMutabilityExclusionFilter$=bUe;C.ImageTagMutabilityExclusionFilterType=$qt;C.InitiateLayerUpload$=_2e;C.InitiateLayerUploadCommand=lO;C.InitiateLayerUploadRequest$=BUe;C.InitiateLayerUploadResponse$=RUe;C.InvalidLayerException=jk;C.InvalidLayerException$=fMe;C.InvalidLayerPartException=kL;C.InvalidLayerPartException$=mMe;C.InvalidParameterException=$k;C.InvalidParameterException$=AMe;C.InvalidTagParameterException=iL;C.InvalidTagParameterException$=hMe;C.KmsException=Kk;C.KmsException$=gMe;C.Layer$=NUe;C.LayerAlreadyExistsException=Xk;C.LayerAlreadyExistsException$=yMe;C.LayerAvailability=kqt;C.LayerFailure$=TUe;C.LayerFailureCode=Dqt;C.LayerInaccessibleException=CL;C.LayerInaccessibleException$=EMe;C.LayerPartTooSmallException=Zk;C.LayerPartTooSmallException$=CMe;C.LayersNotFoundException=IL;C.LayersNotFoundException$=IMe;C.LifecyclePolicyNotFoundException=uL;C.LifecyclePolicyNotFoundException$=wMe;C.LifecyclePolicyPreviewFilter$=PUe;C.LifecyclePolicyPreviewInProgressException=QL;C.LifecyclePolicyPreviewInProgressException$=SMe;C.LifecyclePolicyPreviewNotFoundException=SL;C.LifecyclePolicyPreviewNotFoundException$=xMe;C.LifecyclePolicyPreviewResult$=vUe;C.LifecyclePolicyPreviewStatus=nGt;C.LifecyclePolicyPreviewSummary$=_Ue;C.LifecyclePolicyRuleAction$=QUe;C.LifecyclePolicyStorageClass=rGt;C.LifecyclePolicyTargetStorageClass=eGt;C.LimitExceededException=Vk;C.LimitExceededException$=bMe;C.ListImageReferrers$=Q2e;C.ListImageReferrersCommand=uO;C.ListImageReferrersFilter$=DUe;C.ListImageReferrersRequest$=kUe;C.ListImageReferrersResponse$=LUe;C.ListImages$=D2e;C.ListImagesCommand=zx;C.ListImagesFilter$=OUe;C.ListImagesRequest$=MUe;C.ListImagesResponse$=FUe;C.ListPullTimeUpdateExclusions$=k2e;C.ListPullTimeUpdateExclusionsCommand=dO;C.ListPullTimeUpdateExclusionsRequest$=UUe;C.ListPullTimeUpdateExclusionsResponse$=qUe;C.ListTagsForResource$=L2e;C.ListTagsForResourceCommand=pO;C.ListTagsForResourceRequest$=GUe;C.ListTagsForResourceResponse$=$Ue;C.PackageVulnerabilityDetails$=HUe;C.PullThroughCacheRule$=zUe;C.PullThroughCacheRuleAlreadyExistsException=tL;C.PullThroughCacheRuleAlreadyExistsException$=BMe;C.PullThroughCacheRuleNotFoundException=dL;C.PullThroughCacheRuleNotFoundException$=RMe;C.PutAccountSetting$=O2e;C.PutAccountSettingCommand=fO;C.PutAccountSettingRequest$=VUe;C.PutAccountSettingResponse$=WUe;C.PutImage$=M2e;C.PutImageCommand=mO;C.PutImageRequest$=YUe;C.PutImageResponse$=JUe;C.PutImageScanningConfiguration$=F2e;C.PutImageScanningConfigurationCommand=AO;C.PutImageScanningConfigurationRequest$=jUe;C.PutImageScanningConfigurationResponse$=KUe;C.PutImageTagMutability$=U2e;C.PutImageTagMutabilityCommand=hO;C.PutImageTagMutabilityRequest$=XUe;C.PutImageTagMutabilityResponse$=ZUe;C.PutLifecyclePolicy$=q2e;C.PutLifecyclePolicyCommand=gO;C.PutLifecyclePolicyRequest$=e1e;C.PutLifecyclePolicyResponse$=t1e;C.PutRegistryPolicy$=G2e;C.PutRegistryPolicyCommand=yO;C.PutRegistryPolicyRequest$=r1e;C.PutRegistryPolicyResponse$=n1e;C.PutRegistryScanningConfiguration$=$2e;C.PutRegistryScanningConfigurationCommand=EO;C.PutRegistryScanningConfigurationRequest$=s1e;C.PutRegistryScanningConfigurationResponse$=o1e;C.PutReplicationConfiguration$=H2e;C.PutReplicationConfigurationCommand=CO;C.PutReplicationConfigurationRequest$=i1e;C.PutReplicationConfigurationResponse$=a1e;C.PutSigningConfiguration$=z2e;C.PutSigningConfigurationCommand=IO;C.PutSigningConfigurationRequest$=c1e;C.PutSigningConfigurationResponse$=l1e;C.RCTAppliedFor=Hqt;C.Recommendation$=u1e;C.ReferencedImagesNotFoundException=NL;C.ReferencedImagesNotFoundException$=NMe;C.RegisterPullTimeUpdateExclusion$=V2e;C.RegisterPullTimeUpdateExclusionCommand=wO;C.RegisterPullTimeUpdateExclusionRequest$=d1e;C.RegisterPullTimeUpdateExclusionResponse$=p1e;C.RegistryPolicyNotFoundException=pL;C.RegistryPolicyNotFoundException$=TMe;C.RegistryScanningConfiguration$=UK;C.RegistryScanningRule$=f1e;C.Remediation$=m1e;C.ReplicationConfiguration$=JO;C.ReplicationDestination$=A1e;C.ReplicationRule$=h1e;C.ReplicationStatus=Vqt;C.Repository$=jO;C.RepositoryAlreadyExistsException=aL;C.RepositoryAlreadyExistsException$=PMe;C.RepositoryCreationTemplate$=Xx;C.RepositoryFilter$=g1e;C.RepositoryFilterType=Zqt;C.RepositoryNotEmptyException=fL;C.RepositoryNotEmptyException$=vMe;C.RepositoryNotFoundException=Hk;C.RepositoryNotFoundException$=_Me;C.RepositoryPolicyNotFoundException=AL;C.RepositoryPolicyNotFoundException$=QMe;C.RepositoryScanningConfiguration$=y1e;C.RepositoryScanningConfigurationFailure$=E1e;C.Resource$=C1e;C.ResourceDetails$=I1e;C.ScanFrequency=Fqt;C.ScanNotFoundException=EL;C.ScanNotFoundException$=DMe;C.ScanStatus=jqt;C.ScanType=sGt;C.ScanningConfigurationFailureCode=Oqt;C.ScanningRepositoryFilter$=w1e;C.ScanningRepositoryFilterType=Mqt;C.ScoreDetails$=S1e;C.SecretNotFoundException=rL;C.SecretNotFoundException$=kMe;C.ServerException=zk;C.ServerException$=LMe;C.SetRepositoryPolicy$=W2e;C.SetRepositoryPolicyCommand=SO;C.SetRepositoryPolicyRequest$=x1e;C.SetRepositoryPolicyResponse$=b1e;C.SigningConfiguration$=Zx;C.SigningConfigurationNotFoundException=hL;C.SigningConfigurationNotFoundException$=OMe;C.SigningRepositoryFilter$=B1e;C.SigningRepositoryFilterType=zqt;C.SigningRule$=R1e;C.SigningStatus=Xqt;C.StartImageScan$=Y2e;C.StartImageScanCommand=xO;C.StartImageScanRequest$=N1e;C.StartImageScanResponse$=T1e;C.StartLifecyclePolicyPreview$=J2e;C.StartLifecyclePolicyPreviewCommand=bO;C.StartLifecyclePolicyPreviewRequest$=P1e;C.StartLifecyclePolicyPreviewResponse$=v1e;C.SubjectIdentifier$=_1e;C.Tag$=Q1e;C.TagResource$=j2e;C.TagResourceCommand=BO;C.TagResourceRequest$=D1e;C.TagResourceResponse$=k1e;C.TagStatus=Yqt;C.TargetStorageClass=aGt;C.TemplateAlreadyExistsException=lL;C.TemplateAlreadyExistsException$=MMe;C.TemplateNotFoundException=mL;C.TemplateNotFoundException$=FMe;C.TooManyTagsException=cL;C.TooManyTagsException$=UMe;C.TransitioningImageTotalCount$=L1e;C.UnableToAccessSecretException=nL;C.UnableToAccessSecretException$=qMe;C.UnableToDecryptSecretValueException=sL;C.UnableToDecryptSecretValueException$=GMe;C.UnableToGetUpstreamImageException=Wk;C.UnableToGetUpstreamImageException$=$Me;C.UnableToGetUpstreamLayerException=wL;C.UnableToGetUpstreamLayerException$=HMe;C.UnableToListUpstreamImageReferrersException=xL;C.UnableToListUpstreamImageReferrersException$=zMe;C.UnsupportedImageTypeException=_L;C.UnsupportedImageTypeException$=VMe;C.UnsupportedUpstreamRegistryException=oL;C.UnsupportedUpstreamRegistryException$=WMe;C.UntagResource$=K2e;C.UntagResourceCommand=RO;C.UntagResourceRequest$=O1e;C.UntagResourceResponse$=M1e;C.UpdateImageStorageClass$=X2e;C.UpdateImageStorageClassCommand=NO;C.UpdateImageStorageClassRequest$=F1e;C.UpdateImageStorageClassResponse$=U1e;C.UpdatePullThroughCacheRule$=Z2e;C.UpdatePullThroughCacheRuleCommand=TO;C.UpdatePullThroughCacheRuleRequest$=q1e;C.UpdatePullThroughCacheRuleResponse$=G1e;C.UpdateRepositoryCreationTemplate$=eqe;C.UpdateRepositoryCreationTemplateCommand=PO;C.UpdateRepositoryCreationTemplateRequest$=$1e;C.UpdateRepositoryCreationTemplateResponse$=H1e;C.UploadLayerPart$=tqe;C.UploadLayerPartCommand=vO;C.UploadLayerPartRequest$=z1e;C.UploadLayerPartResponse$=V1e;C.UploadNotFoundException=eL;C.UploadNotFoundException$=YMe;C.UpstreamRegistry=Uqt;C.ValidatePullThroughCacheRule$=rqe;C.ValidatePullThroughCacheRuleCommand=_O;C.ValidatePullThroughCacheRuleRequest$=W1e;C.ValidatePullThroughCacheRuleResponse$=Y1e;C.ValidationException=Yk;C.ValidationException$=JMe;C.VulnerablePackage$=J1e;C.errorTypeRegistries=jMe;C.paginateDescribeImageScanFindings=nqe;C.paginateDescribeImages=sqe;C.paginateDescribePullThroughCacheRules=oqe;C.paginateDescribeRepositories=iqe;C.paginateDescribeRepositoryCreationTemplates=aqe;C.paginateGetLifecyclePolicyPreview=cqe;C.paginateListImages=lqe;C.waitForImageScanComplete=Tqt;C.waitForLifecyclePolicyPreviewComplete=Pqt;C.waitUntilImageScanComplete=dqe;C.waitUntilLifecyclePolicyPreviewComplete=fqe});var V$e=w(B=>{var{awsEndpointFunctions:cGt,emitWarningIfUnsupportedVersion:lGt,createDefaultUserAgentProvider:uGt,NODE_APP_ID_CONFIG_OPTIONS:dGt,getAwsRegionExtensionConfiguration:pGt,resolveAwsRegionExtensionConfiguration:fGt,resolveUserAgentConfig:mGt,resolveHostHeaderConfig:AGt,getUserAgentPlugin:hGt,getHostHeaderPlugin:gGt,getLoggerPlugin:yGt,getRecursionDetectionPlugin:EGt}=(yt(),Z(Ca)),{getHttpAuthSchemeEndpointRuleSetPlugin:CGt,DefaultIdentityProviderConfig:IGt,getHttpSigningPlugin:wGt,createPaginator:$M}=(Es(),Z(_5)),{normalizeProvider:Eqe,getSmithyContext:SGt,ServiceException:xGt,NoOpLogger:bGt,emitWarningIfUnsupportedVersion:BGt,loadConfigsForDefaultMode:RGt,getDefaultExtensionConfiguration:NGt,resolveDefaultRuntimeConfig:TGt,Client:Cqe,makeBuilder:PGt,createAggregatedClient:vGt}=(Ce(),Z(Fg)),{Command:_Gt}=(Ce(),Z(Fg));B.$Command=_Gt;B.__Client=Cqe;var{resolveDefaultsModeConfig:QGt,loadConfig:jm,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:DGt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:kGt,NODE_REGION_CONFIG_OPTIONS:LGt,NODE_REGION_CONFIG_FILE_OPTIONS:OGt,resolveRegionConfig:MGt}=(gt(),Z(Qo)),{BinaryDecisionDiagram:FGt,EndpointCache:UGt,decideEndpoint:qGt,customEndpointFunctions:GGt,resolveEndpointConfig:$Gt,getEndpointPlugin:HGt}=(vt(),Z(XJ)),{parseUrl:zGt,getHttpHandlerExtensionConfiguration:VGt,resolveHttpHandlerRuntimeConfig:WGt,getContentLengthPlugin:YGt}=(Se(),Z(Kd)),{DEFAULT_RETRY_MODE:JGt,NODE_RETRY_MODE_CONFIG_OPTIONS:jGt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:KGt,resolveRetryConfig:XGt,getRetryPlugin:ZGt}=(Oo(),Z(h5)),{TypeRegistry:Iqe,getSchemaSerdePlugin:e$t}=(We(),Z(v8)),{resolveAwsSdkSigV4Config:t$t,AwsSdkSigV4Signer:r$t,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:n$t}=(Yn(),Z(wD)),{defaultProvider:s$t}=EK(),{toUtf8:o$t,fromUtf8:i$t,toBase64:a$t,fromBase64:c$t,calculateBodyLength:l$t}=(Ie(),Z(ym)),{streamCollector:u$t,NodeHttpHandler:d$t}=gu(),{AwsJson1_1Protocol:p$t}=(Tm(),Z(o9)),{Sha256:f$t}=(fu(),Z(Sj)),m$t=i(async(t,e,r)=>({operation:SGt(e).operation,region:await Eqe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function A$t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(A$t,"createAwsAuthSigv4HttpAuthOption");var h$t=i(t=>{let e=[];switch(t.operation){default:e.push(A$t(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),g$t=i(t=>{let e=t$t(t);return Object.assign(e,{authSchemePreference:Eqe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),y$t=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),E$t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},C$t="3.1153.0",I$t={version:C$t},eb="ref",Km=-1,KO=!0,Aqe="isSet",wqe="PartitionResult",XO="booleanEquals",qK="getAttr",hqe={[eb]:"Endpoint"},GK={[eb]:wqe},dE={},gqe=[{[eb]:"Region"}],yqe={conditions:[[Aqe,[hqe]],[Aqe,gqe],["aws.partition",gqe,wqe],[XO,[{[eb]:"UseFIPS"},KO]],[XO,[{[eb]:"UseDualStack"},KO]],[XO,[{fn:qK,argv:[GK,"supportsDualStack"]},KO]],[XO,[{fn:qK,argv:[GK,"supportsFIPS"]},KO]],["stringEquals",[{fn:qK,argv:[GK,"name"]},"aws"]]],results:[[Km],[Km,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Km,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[hqe,dE],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",dE],[Km,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",dE],[Km,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",dE],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",dE],[Km,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",dE],[Km,"Invalid Configuration: Missing Region"]]},w$t=2,Xs=1e8,S$t=new Int32Array([-1,1,-1,0,13,3,1,4,Xs+12,2,5,Xs+12,3,9,6,4,7,Xs+11,5,8,Xs+10,7,Xs+8,Xs+9,4,11,10,6,Xs+6,Xs+7,5,12,Xs+5,6,Xs+4,Xs+5,3,Xs+1,14,4,Xs+2,Xs+3]),x$t=FGt.from(S$t,w$t,yqe.conditions,yqe.results),b$t=new UGt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),B$t=i((t,e={})=>b$t.get(t,()=>qGt(x$t,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");GGt.aws=cGt;var Bt=class t extends xGt{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},ZO=class t extends Bt{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eM=class t extends Bt{static{i(this,"RegistryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RegistryNotFoundException";name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tM=class t extends Bt{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rM=class t extends Bt{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecrpublic#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},nM=class t extends Bt{static{i(this,"UnsupportedCommandException")}static shapeId="com.amazonaws.ecrpublic#UnsupportedCommandException";name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sM=class t extends Bt{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecrpublic#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oM=class t extends Bt{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iM=class t extends Bt{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aM=class t extends Bt{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecrpublic#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cM=class t extends Bt{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecrpublic#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lM=class t extends Bt{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uM=class t extends Bt{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecrpublic#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dM=class t extends Bt{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pM=class t extends Bt{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecrpublic#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fM=class t extends Bt{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mM=class t extends Bt{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},AM=class t extends Bt{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hM=class t extends Bt{static{i(this,"RepositoryCatalogDataNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException";name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},gM=class t extends Bt{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},yM=class t extends Bt{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},EM=class t extends Bt{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CM=class t extends Bt{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},IM=class t extends Bt{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecrpublic#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wM=class t extends Bt{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},R$t="AuthorizationData",N$t="BatchCheckLayerAvailability",T$t="BatchCheckLayerAvailabilityRequest",P$t="BatchCheckLayerAvailabilityResponse",v$t="BatchDeleteImage",_$t="BatchDeleteImageRequest",Q$t="BatchDeleteImageResponse",D$t="CompleteLayerUpload",k$t="CompleteLayerUploadRequest",L$t="CompleteLayerUploadResponse",O$t="CreateRepository",M$t="CreateRepositoryRequest",F$t="CreateRepositoryResponse",U$t="DescribeImages",q$t="DescribeImagesRequest",G$t="DescribeImagesResponse",$$t="DescribeImageTags",H$t="DescribeImageTagsRequest",z$t="DescribeImageTagsResponse",V$t="DeleteRepository",W$t="DeleteRepositoryPolicy",Y$t="DeleteRepositoryPolicyRequest",J$t="DeleteRepositoryPolicyResponse",j$t="DeleteRepositoryRequest",K$t="DeleteRepositoryResponse",X$t="DescribeRegistriesRequest",Z$t="DescribeRegistriesResponse",eHt="DescribeRepositoriesRequest",tHt="DescribeRepositoriesResponse",rHt="DescribeRegistries",nHt="DescribeRepositories",sHt="EmptyUploadException",oHt="GetAuthorizationToken",iHt="GetAuthorizationTokenRequest",aHt="GetAuthorizationTokenResponse",cHt="GetRegistryCatalogData",lHt="GetRegistryCatalogDataRequest",uHt="GetRegistryCatalogDataResponse",dHt="GetRepositoryCatalogDataRequest",pHt="GetRepositoryCatalogDataResponse",fHt="GetRepositoryCatalogData",mHt="GetRepositoryPolicy",AHt="GetRepositoryPolicyRequest",hHt="GetRepositoryPolicyResponse",gHt="Image",yHt="ImageAlreadyExistsException",EHt="ImageDetail",CHt="ImageDigestDoesNotMatchException",IHt="ImageDetailList",wHt="ImageFailure",SHt="ImageFailureList",xHt="ImageIdentifier",bHt="ImageIdentifierList",BHt="InvalidLayerException",RHt="InvalidLayerPartException",NHt="InitiateLayerUpload",THt="InitiateLayerUploadRequest",PHt="InitiateLayerUploadResponse",vHt="ImageNotFoundException",_Ht="InvalidParameterException",QHt="ImageTagAlreadyExistsException",DHt="ImageTagDetail",kHt="ImageTagDetailList",LHt="InvalidTagParameterException",OHt="Key",MHt="Layer",FHt="LayerAlreadyExistsException",UHt="LimitExceededException",qHt="LayerFailure",GHt="LayerFailureList",$Ht="LayerList",HHt="LayersNotFoundException",zHt="LayerPartTooSmallException",VHt="ListTagsForResource",WHt="ListTagsForResourceRequest",YHt="ListTagsForResourceResponse",JHt="PutImage",jHt="PutImageRequest",KHt="PutImageResponse",XHt="PutRegistryCatalogData",ZHt="PutRegistryCatalogDataRequest",ezt="PutRegistryCatalogDataResponse",tzt="PutRepositoryCatalogDataRequest",rzt="PutRepositoryCatalogDataResponse",nzt="PutRepositoryCatalogData",szt="Registry",ozt="RegistryAlias",izt="RepositoryAlreadyExistsException",azt="RegistryAliasList",czt="RegistryCatalogData",lzt="RepositoryCatalogDataInput",uzt="RepositoryCatalogDataNotFoundException",dzt="RepositoryCatalogData",pzt="ReferencedImageDetail",fzt="ReferencedImagesNotFoundException",mzt="RegistryList",Azt="RepositoryList",hzt="RepositoryNotEmptyException",gzt="RegistryNotFoundException",yzt="RepositoryNotFoundException",Ezt="RepositoryPolicyNotFoundException",Czt="Repository",Izt="ServerException",wzt="SetRepositoryPolicy",Szt="SetRepositoryPolicyRequest",xzt="SetRepositoryPolicyResponse",bzt="Tag",Bzt="TagList",Rzt="TooManyTagsException",Nzt="TagResource",Tzt="TagResourceRequest",Pzt="TagResourceResponse",vzt="UnsupportedCommandException",_zt="UploadLayerPart",Qzt="UploadLayerPartRequest",Dzt="UploadLayerPartResponse",kzt="UploadNotFoundException",Lzt="UntagResource",Ozt="UntagResourceRequest",Mzt="UntagResourceResponse",Fzt="Value",Uzt="aliases",qzt="authorizationData",Sqe="artifactMediaType",Gzt="authorizationToken",xqe="aboutText",bqe="architectures",er="client",Bqe="createdAt",ob="catalogData",Rqe="description",Nqe="displayName",$zt="defaultRegistryAlias",Jt="error",Hzt="expiresAt",Tqe="failures",Pqe="failureCode",vqe="failureReason",_qe="force",zzt="image",Vzt="imageDetails",HM="imageDigest",Wzt="imageDetail",$K="imageIds",Qqe="imageId",Dqe="imageManifest",zM="imageManifestMediaType",kqe="imagePushedAt",Lqe="imageSizeInBytes",Yzt="imageTags",Jzt="imageTagDetails",HK="imageTag",jzt="layers",Kzt="layerAvailability",Xzt="lastByteReceived",Oqe="layerDigests",zK="layerDigest",Zzt="logoImageBlob",e3t="layerPartBlob",t3t="layerSize",r3t="logoUrl",n3t="lastValidByteReceived",jt="message",s3t="marketplaceCertified",VM="maxResults",o3t="mediaType",i3t="name",wp="nextToken",Mqe="operatingSystems",a3t="partFirstByte",c3t="partLastByte",l3t="primaryRegistryAlias",u3t="partSize",WM="policyText",Fqe="repository",VK="resourceArn",d3t="registryArn",p3t="repositoryArn",Uqe="registryCatalogData",Ft="registryId",Kt="repositoryName",f3t="repositoryNames",m3t="registryUri",A3t="repositoryUri",h3t="registries",g3t="repositories",qqe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",y3t="server",E3t="status",WK="tags",C3t="tagKeys",pE="uploadId",Gqe="usageText",I3t="verified",P="com.amazonaws.ecrpublic",$qe=new Iqe(qqe),Hqe=[-3,qqe,"ECRPUBLICServiceException",0,[],[]];$qe.registerError(Hqe,Bt);var Ut=new Iqe(P),zqe=[-3,P,sHt,{[Jt]:er},[jt],[0]];Ut.registerError(zqe,sM);var Vqe=[-3,P,yHt,{[Jt]:er},[jt],[0]];Ut.registerError(Vqe,gM);var Wqe=[-3,P,CHt,{[Jt]:er},[jt],[0]];Ut.registerError(Wqe,yM);var Yqe=[-3,P,vHt,{[Jt]:er},[jt],[0]];Ut.registerError(Yqe,AM);var Jqe=[-3,P,QHt,{[Jt]:er},[jt],[0]];Ut.registerError(Jqe,EM);var jqe=[-3,P,BHt,{[Jt]:er},[jt],[0]];Ut.registerError(jqe,oM);var Kqe=[-3,P,RHt,{[Jt]:er},[Ft,Kt,pE,n3t,jt],[0,0,0,1,0]];Ut.registerError(Kqe,CM);var Xqe=[-3,P,_Ht,{[Jt]:er},[jt],[0]];Ut.registerError(Xqe,ZO);var Zqe=[-3,P,LHt,{[Jt]:er},[jt],[0]];Ut.registerError(Zqe,lM);var eGe=[-3,P,FHt,{[Jt]:er},[jt],[0]];Ut.registerError(eGe,iM);var tGe=[-3,P,zHt,{[Jt]:er},[jt],[0]];Ut.registerError(tGe,aM);var rGe=[-3,P,HHt,{[Jt]:er},[jt],[0]];Ut.registerError(rGe,IM);var nGe=[-3,P,UHt,{[Jt]:er},[jt],[0]];Ut.registerError(nGe,uM);var sGe=[-3,P,fzt,{[Jt]:er},[jt],[0]];Ut.registerError(sGe,wM);var oGe=[-3,P,gzt,{[Jt]:er},[jt],[0]];Ut.registerError(oGe,eM);var iGe=[-3,P,izt,{[Jt]:er},[jt],[0]];Ut.registerError(iGe,dM);var aGe=[-3,P,uzt,{[Jt]:er},[jt],[0]];Ut.registerError(aGe,hM);var cGe=[-3,P,hzt,{[Jt]:er},[jt],[0]];Ut.registerError(cGe,fM);var lGe=[-3,P,yzt,{[Jt]:er},[jt],[0]];Ut.registerError(lGe,tM);var uGe=[-3,P,Ezt,{[Jt]:er},[jt],[0]];Ut.registerError(uGe,mM);var dGe=[-3,P,Izt,{[Jt]:y3t},[jt],[0]];Ut.registerError(dGe,rM);var pGe=[-3,P,Rzt,{[Jt]:er},[jt],[0]];Ut.registerError(pGe,pM);var fGe=[-3,P,vzt,{[Jt]:er},[jt],[0]];Ut.registerError(fGe,nM);var mGe=[-3,P,kzt,{[Jt]:er},[jt],[0]];Ut.registerError(mGe,cM);var AGe=[$qe,Ut],hGe=[3,P,R$t,0,[Gzt,Hzt],[0,4]],gGe=[3,P,T$t,0,[Kt,Oqe,Ft],[0,64,0],2],yGe=[3,P,P$t,0,[jzt,Tqe],[()=>B3t,()=>b3t]],EGe=[3,P,_$t,0,[Kt,$K,Ft],[0,()=>jK,0],2],CGe=[3,P,Q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,a3t,c3t,e3t,Ft],[0,0,1,1,21,0],5],y$e=[3,P,Dzt,0,[Ft,Kt,pE,Xzt],[0,0,0,1]],w3t=[1,P,IHt,0,()=>VGe],S3t=[1,P,SHt,0,()=>WGe],jK=[1,P,bHt,0,()=>YM],x3t=[1,P,kHt,0,()=>YGe],b3t=[1,P,GHt,0,()=>XGe],B3t=[1,P,$Ht,0,()=>KGe],R3t=[1,P,azt,0,()=>l$e],N3t=[1,P,mzt,0,()=>c$e],T3t=[1,P,Azt,0,()=>JM],KK=[1,P,Bzt,0,()=>p$e],E$e=[9,P,N$t,0,()=>gGe,()=>yGe],C$e=[9,P,v$t,0,()=>EGe,()=>CGe],I$e=[9,P,D$t,0,()=>IGe,()=>wGe],w$e=[9,P,O$t,0,()=>SGe,()=>xGe],S$e=[9,P,V$t,0,()=>RGe,()=>NGe],x$e=[9,P,W$t,0,()=>bGe,()=>BGe],b$e=[9,P,U$t,0,()=>TGe,()=>PGe],B$e=[9,P,$$t,0,()=>vGe,()=>_Ge],R$e=[9,P,rHt,0,()=>QGe,()=>DGe],N$e=[9,P,nHt,0,()=>kGe,()=>LGe],T$e=[9,P,oHt,0,()=>OGe,()=>MGe],P$e=[9,P,cHt,0,()=>FGe,()=>UGe],v$e=[9,P,fHt,0,()=>qGe,()=>GGe],_$e=[9,P,mHt,0,()=>$Ge,()=>HGe],Q$e=[9,P,NHt,0,()=>JGe,()=>jGe],D$e=[9,P,VHt,0,()=>ZGe,()=>e$e],k$e=[9,P,JHt,0,()=>t$e,()=>r$e],L$e=[9,P,XHt,0,()=>n$e,()=>s$e],O$e=[9,P,nzt,0,()=>o$e,()=>i$e],M$e=[9,P,wzt,0,()=>u$e,()=>d$e],F$e=[9,P,Nzt,0,()=>f$e,()=>m$e],U$e=[9,P,Lzt,0,()=>A$e,()=>h$e],q$e=[9,P,_zt,0,()=>g$e,()=>y$e],P3t=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??c$t,base64Encoder:t?.base64Encoder??a$t,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??B$t,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??h$t,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new r$t}],logger:t?.logger??new bGt,protocol:t?.protocol??p$t,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:AGe,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??f$t,urlParser:t?.urlParser??zGt,utf8Decoder:t?.utf8Decoder??i$t,utf8Encoder:t?.utf8Encoder??o$t}),"getRuntimeConfig$1"),v3t=i(t=>{BGt(process.version);let e=QGt(t),r=i(()=>e().then(RGt),"defaultConfigProvider"),n=P3t(t);lGt(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??jm(n$t,s),bodyLengthChecker:t?.bodyLengthChecker??l$t,credentialDefaultProvider:t?.credentialDefaultProvider??s$t,defaultUserAgentProvider:t?.defaultUserAgentProvider??uGt({serviceId:n.serviceId,clientVersion:I$t.version}),maxAttempts:t?.maxAttempts??jm(KGt,t),region:t?.region??jm(LGt,{...OGt,...s}),requestHandler:d$t.create(t?.requestHandler??r),retryMode:t?.retryMode??jm({...jGt,default:i(async()=>(await r()).retryMode||JGt,"default")},t),streamCollector:t?.streamCollector??u$t,useDualstackEndpoint:t?.useDualstackEndpoint??jm(kGt,s),useFipsEndpoint:t?.useFipsEndpoint??jm(DGt,s),userAgentAppId:t?.userAgentAppId??jm(dGt,s)}},"getRuntimeConfig"),_3t=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Q3t=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),D3t=i((t,e)=>{let r=Object.assign(pGt(t),NGt(t),VGt(t),_3t(t));return e.forEach(n=>n.configure(r)),Object.assign(t,fGt(r),TGt(r),WGt(r),Q3t(r))},"resolveRuntimeExtensions"),Ip=class extends Cqe{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=v3t(e||{});super(r),this.initConfig=r;let n=y$t(r),s=mGt(n),o=XGt(s),a=MGt(o),c=AGt(a),l=$Gt(c),u=g$t(l),d=D3t(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(e$t(this.config)),this.middlewareStack.use(hGt(this.config)),this.middlewareStack.use(ZGt(this.config)),this.middlewareStack.use(YGt(this.config)),this.middlewareStack.use(gGt(this.config)),this.middlewareStack.use(yGt(this.config)),this.middlewareStack.use(EGt(this.config)),this.middlewareStack.use(CGt(this.config,{httpAuthSchemeParametersProvider:m$t,identityProviderConfigProvider:i(async p=>new IGt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(wGt(this.config))}destroy(){super.destroy()}},tr=PGt(E$t,"SpencerFrontendService","ECRPUBLICClient",HGt),rr={},nr=i((t,e,r,n)=>[],"_mw0"),SM=class extends tr(rr,nr,"BatchCheckLayerAvailability",E$e){static{i(this,"BatchCheckLayerAvailabilityCommand")}},xM=class extends tr(rr,nr,"BatchDeleteImage",C$e){static{i(this,"BatchDeleteImageCommand")}},bM=class extends tr(rr,nr,"CompleteLayerUpload",I$e){static{i(this,"CompleteLayerUploadCommand")}},BM=class extends tr(rr,nr,"CreateRepository",w$e){static{i(this,"CreateRepositoryCommand")}},RM=class extends tr(rr,nr,"DeleteRepository",S$e){static{i(this,"DeleteRepositoryCommand")}},NM=class extends tr(rr,nr,"DeleteRepositoryPolicy",x$e){static{i(this,"DeleteRepositoryPolicyCommand")}},tb=class extends tr(rr,nr,"DescribeImages",b$e){static{i(this,"DescribeImagesCommand")}},rb=class extends tr(rr,nr,"DescribeImageTags",B$e){static{i(this,"DescribeImageTagsCommand")}},nb=class extends tr(rr,nr,"DescribeRegistries",R$e){static{i(this,"DescribeRegistriesCommand")}},sb=class extends tr(rr,nr,"DescribeRepositories",N$e){static{i(this,"DescribeRepositoriesCommand")}},TM=class extends tr(rr,nr,"GetAuthorizationToken",T$e){static{i(this,"GetAuthorizationTokenCommand")}},PM=class extends tr(rr,nr,"GetRegistryCatalogData",P$e){static{i(this,"GetRegistryCatalogDataCommand")}},vM=class extends tr(rr,nr,"GetRepositoryCatalogData",v$e){static{i(this,"GetRepositoryCatalogDataCommand")}},_M=class extends tr(rr,nr,"GetRepositoryPolicy",_$e){static{i(this,"GetRepositoryPolicyCommand")}},QM=class extends tr(rr,nr,"InitiateLayerUpload",Q$e){static{i(this,"InitiateLayerUploadCommand")}},DM=class extends tr(rr,nr,"ListTagsForResource",D$e){static{i(this,"ListTagsForResourceCommand")}},kM=class extends tr(rr,nr,"PutImage",k$e){static{i(this,"PutImageCommand")}},LM=class extends tr(rr,nr,"PutRegistryCatalogData",L$e){static{i(this,"PutRegistryCatalogDataCommand")}},OM=class extends tr(rr,nr,"PutRepositoryCatalogData",O$e){static{i(this,"PutRepositoryCatalogDataCommand")}},MM=class extends tr(rr,nr,"SetRepositoryPolicy",M$e){static{i(this,"SetRepositoryPolicyCommand")}},FM=class extends tr(rr,nr,"TagResource",F$e){static{i(this,"TagResourceCommand")}},UM=class extends tr(rr,nr,"UntagResource",U$e){static{i(this,"UntagResourceCommand")}},qM=class extends tr(rr,nr,"UploadLayerPart",q$e){static{i(this,"UploadLayerPartCommand")}},G$e=$M(Ip,tb,"nextToken","nextToken","maxResults"),$$e=$M(Ip,rb,"nextToken","nextToken","maxResults"),H$e=$M(Ip,nb,"nextToken","nextToken","maxResults"),z$e=$M(Ip,sb,"nextToken","nextToken","maxResults"),k3t={BatchCheckLayerAvailabilityCommand:SM,BatchDeleteImageCommand:xM,CompleteLayerUploadCommand:bM,CreateRepositoryCommand:BM,DeleteRepositoryCommand:RM,DeleteRepositoryPolicyCommand:NM,DescribeImagesCommand:tb,DescribeImageTagsCommand:rb,DescribeRegistriesCommand:nb,DescribeRepositoriesCommand:sb,GetAuthorizationTokenCommand:TM,GetRegistryCatalogDataCommand:PM,GetRepositoryCatalogDataCommand:vM,GetRepositoryPolicyCommand:_M,InitiateLayerUploadCommand:QM,ListTagsForResourceCommand:DM,PutImageCommand:kM,PutRegistryCatalogDataCommand:LM,PutRepositoryCatalogDataCommand:OM,SetRepositoryPolicyCommand:MM,TagResourceCommand:FM,UntagResourceCommand:UM,UploadLayerPartCommand:qM},L3t={paginateDescribeImages:G$e,paginateDescribeImageTags:$$e,paginateDescribeRegistries:H$e,paginateDescribeRepositories:z$e},GM=class extends Ip{static{i(this,"ECRPUBLIC")}};vGt(k3t,GM,{paginators:L3t});var O3t={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},M3t={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},F3t={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},U3t={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=hGe;B.BatchCheckLayerAvailability$=E$e;B.BatchCheckLayerAvailabilityCommand=SM;B.BatchCheckLayerAvailabilityRequest$=gGe;B.BatchCheckLayerAvailabilityResponse$=yGe;B.BatchDeleteImage$=C$e;B.BatchDeleteImageCommand=xM;B.BatchDeleteImageRequest$=EGe;B.BatchDeleteImageResponse$=CGe;B.CompleteLayerUpload$=I$e;B.CompleteLayerUploadCommand=bM;B.CompleteLayerUploadRequest$=IGe;B.CompleteLayerUploadResponse$=wGe;B.CreateRepository$=w$e;B.CreateRepositoryCommand=BM;B.CreateRepositoryRequest$=SGe;B.CreateRepositoryResponse$=xGe;B.DeleteRepository$=S$e;B.DeleteRepositoryCommand=RM;B.DeleteRepositoryPolicy$=x$e;B.DeleteRepositoryPolicyCommand=NM;B.DeleteRepositoryPolicyRequest$=bGe;B.DeleteRepositoryPolicyResponse$=BGe;B.DeleteRepositoryRequest$=RGe;B.DeleteRepositoryResponse$=NGe;B.DescribeImageTags$=B$e;B.DescribeImageTagsCommand=rb;B.DescribeImageTagsRequest$=vGe;B.DescribeImageTagsResponse$=_Ge;B.DescribeImages$=b$e;B.DescribeImagesCommand=tb;B.DescribeImagesRequest$=TGe;B.DescribeImagesResponse$=PGe;B.DescribeRegistries$=R$e;B.DescribeRegistriesCommand=nb;B.DescribeRegistriesRequest$=QGe;B.DescribeRegistriesResponse$=DGe;B.DescribeRepositories$=N$e;B.DescribeRepositoriesCommand=sb;B.DescribeRepositoriesRequest$=kGe;B.DescribeRepositoriesResponse$=LGe;B.ECRPUBLIC=GM;B.ECRPUBLICClient=Ip;B.ECRPUBLICServiceException=Bt;B.ECRPUBLICServiceException$=Hqe;B.EmptyUploadException=sM;B.EmptyUploadException$=zqe;B.GetAuthorizationToken$=T$e;B.GetAuthorizationTokenCommand=TM;B.GetAuthorizationTokenRequest$=OGe;B.GetAuthorizationTokenResponse$=MGe;B.GetRegistryCatalogData$=P$e;B.GetRegistryCatalogDataCommand=PM;B.GetRegistryCatalogDataRequest$=FGe;B.GetRegistryCatalogDataResponse$=UGe;B.GetRepositoryCatalogData$=v$e;B.GetRepositoryCatalogDataCommand=vM;B.GetRepositoryCatalogDataRequest$=qGe;B.GetRepositoryCatalogDataResponse$=GGe;B.GetRepositoryPolicy$=_$e;B.GetRepositoryPolicyCommand=_M;B.GetRepositoryPolicyRequest$=$Ge;B.GetRepositoryPolicyResponse$=HGe;B.Image$=zGe;B.ImageAlreadyExistsException=gM;B.ImageAlreadyExistsException$=Vqe;B.ImageDetail$=VGe;B.ImageDigestDoesNotMatchException=yM;B.ImageDigestDoesNotMatchException$=Wqe;B.ImageFailure$=WGe;B.ImageFailureCode=F3t;B.ImageIdentifier$=YM;B.ImageNotFoundException=AM;B.ImageNotFoundException$=Yqe;B.ImageTagAlreadyExistsException=EM;B.ImageTagAlreadyExistsException$=Jqe;B.ImageTagDetail$=YGe;B.InitiateLayerUpload$=Q$e;B.InitiateLayerUploadCommand=QM;B.InitiateLayerUploadRequest$=JGe;B.InitiateLayerUploadResponse$=jGe;B.InvalidLayerException=oM;B.InvalidLayerException$=jqe;B.InvalidLayerPartException=CM;B.InvalidLayerPartException$=Kqe;B.InvalidParameterException=ZO;B.InvalidParameterException$=Xqe;B.InvalidTagParameterException=lM;B.InvalidTagParameterException$=Zqe;B.Layer$=KGe;B.LayerAlreadyExistsException=iM;B.LayerAlreadyExistsException$=eGe;B.LayerAvailability=M3t;B.LayerFailure$=XGe;B.LayerFailureCode=O3t;B.LayerPartTooSmallException=aM;B.LayerPartTooSmallException$=tGe;B.LayersNotFoundException=IM;B.LayersNotFoundException$=rGe;B.LimitExceededException=uM;B.LimitExceededException$=nGe;B.ListTagsForResource$=D$e;B.ListTagsForResourceCommand=DM;B.ListTagsForResourceRequest$=ZGe;B.ListTagsForResourceResponse$=e$e;B.PutImage$=k$e;B.PutImageCommand=kM;B.PutImageRequest$=t$e;B.PutImageResponse$=r$e;B.PutRegistryCatalogData$=L$e;B.PutRegistryCatalogDataCommand=LM;B.PutRegistryCatalogDataRequest$=n$e;B.PutRegistryCatalogDataResponse$=s$e;B.PutRepositoryCatalogData$=O$e;B.PutRepositoryCatalogDataCommand=OM;B.PutRepositoryCatalogDataRequest$=o$e;B.PutRepositoryCatalogDataResponse$=i$e;B.ReferencedImageDetail$=a$e;B.ReferencedImagesNotFoundException=wM;B.ReferencedImagesNotFoundException$=sGe;B.Registry$=c$e;B.RegistryAlias$=l$e;B.RegistryAliasStatus=U3t;B.RegistryCatalogData$=YK;B.RegistryNotFoundException=eM;B.RegistryNotFoundException$=oGe;B.Repository$=JM;B.RepositoryAlreadyExistsException=dM;B.RepositoryAlreadyExistsException$=iGe;B.RepositoryCatalogData$=jM;B.RepositoryCatalogDataInput$=JK;B.RepositoryCatalogDataNotFoundException=hM;B.RepositoryCatalogDataNotFoundException$=aGe;B.RepositoryNotEmptyException=fM;B.RepositoryNotEmptyException$=cGe;B.RepositoryNotFoundException=tM;B.RepositoryNotFoundException$=lGe;B.RepositoryPolicyNotFoundException=mM;B.RepositoryPolicyNotFoundException$=uGe;B.ServerException=rM;B.ServerException$=dGe;B.SetRepositoryPolicy$=M$e;B.SetRepositoryPolicyCommand=MM;B.SetRepositoryPolicyRequest$=u$e;B.SetRepositoryPolicyResponse$=d$e;B.Tag$=p$e;B.TagResource$=F$e;B.TagResourceCommand=FM;B.TagResourceRequest$=f$e;B.TagResourceResponse$=m$e;B.TooManyTagsException=pM;B.TooManyTagsException$=pGe;B.UnsupportedCommandException=nM;B.UnsupportedCommandException$=fGe;B.UntagResource$=U$e;B.UntagResourceCommand=UM;B.UntagResourceRequest$=A$e;B.UntagResourceResponse$=h$e;B.UploadLayerPart$=q$e;B.UploadLayerPartCommand=qM;B.UploadLayerPartRequest$=g$e;B.UploadLayerPartResponse$=y$e;B.UploadNotFoundException=cM;B.UploadNotFoundException$=mGe;B.errorTypeRegistries=AGe;B.paginateDescribeImageTags=$$e;B.paginateDescribeImages=G$e;B.paginateDescribeRegistries=H$e;B.paginateDescribeRepositories=z$e});var iVt={};Mr(iVt,{main:()=>xHe});module.exports=Z(iVt);var cX=R(require("os"),1);function xu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(xu,"toCommandValue");function nF(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}i(nF,"toCommandProperties");function bp(t,e,r){let n=new sF(t,e,r);process.stdout.write(n.toString()+cX.EOL)}i(bp,"issueCommand");function oF(t,e=""){bp(t,{},e)}i(oF,"issue");var aX="::",sF=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=aX+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${vHe(s)}`)}}return e+=`${aX}${PHe(this.message)}`,e}};function PHe(t){return xu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(PHe,"escapeData");function vHe(t){return xu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(vHe,"escapeProperty");var lX=R(require("crypto"),1),pb=R(require("fs"),1),db=R(require("os"),1);function uX(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!pb.existsSync(r))throw new Error(`Missing file at path: ${r}`);pb.appendFileSync(r,`${xu(e)}${db.EOL}`,{encoding:"utf8"})}i(uX,"issueFileCommand");function dX(t,e){let r=`ghadelimiter_${lX.randomUUID()}`,n=xu(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${db.EOL}${n}${db.EOL}${r}`}i(dX,"prepareKeyValueMessage");var lie=R(require("os"),1);var EC=R(require("http"),1),O2=R(require("https"),1);function iF(t){let e=t.protocol==="https:";if(_He(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new fb(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new fb(`http://${r}`)}else return}i(iF,"getProxyUrl");function _He(t){if(!t.hostname)return!1;let e=t.hostname;if(QHe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(_He,"checkBypass");function QHe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(QHe,"isLoopbackAddress");var fb=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var $u=R(eA(),1),qoe=R(ef(),1);var Er=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},zo;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(zo||(zo={}));var es;(function(t){t.Accept="accept",t.ContentType="content-type"})(es||(es={}));var Dl;(function(t){t.ApplicationJson="application/json"})(Dl||(Dl={}));var cXe=[zo.MovedPermanently,zo.ResourceMoved,zo.SeeOther,zo.TemporaryRedirect,zo.PermanentRedirect],lXe=[zo.BadGateway,zo.ServiceUnavailable,zo.GatewayTimeout],uXe=["OPTIONS","GET","DELETE","HEAD"],dXe=10,pXe=5,k2=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},L2=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Er(this,void 0,void 0,function*(){return new Promise(e=>Er(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Er(this,void 0,void 0,function*(){return new Promise(e=>Er(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var uB=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Er(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Er(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Er(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Er(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Er(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Er(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Er(this,arguments,void 0,function*(r,n={}){n[es.Accept]=this._getExistingOrDefaultHeader(n,es.Accept,Dl.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[es.Accept]=this._getExistingOrDefaultHeader(o,es.Accept,Dl.ApplicationJson),o[es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Dl.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[es.Accept]=this._getExistingOrDefaultHeader(o,es.Accept,Dl.ApplicationJson),o[es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Dl.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Er(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[es.Accept]=this._getExistingOrDefaultHeader(o,es.Accept,Dl.ApplicationJson),o[es.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Dl.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Er(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&uXe.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===zo.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&cXe.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.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.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!lXe.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new L2(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=iF(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?O2:EC;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},yC(this.requestOptions.headers),yC(e||{})):yC(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=yC(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=yC(this.requestOptions.headers)[es.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[es.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=iF(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||EC.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?$u.httpsOverHttps:$u.httpsOverHttp:l=u?$u.httpOverHttps:$u.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new O2.Agent(c):new EC.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new qoe.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Er(this,void 0,void 0,function*(){e=Math.min(dXe,e);let r=pXe*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Er(this,void 0,void 0,function*(){return new Promise((n,s)=>Er(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===zo.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new k2(d,o);p.result=a.result,s(p)}else n(a)}))})}},yC=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var fXe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var dB=class{static{i(this,"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!1}handleAuthentication(){return fXe(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Goe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},pB=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new uB("actions/oidc-client",[new dB(t.getRequestToken())],n)}static getRequestToken(){let 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(){let 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 Goe(this,void 0,void 0,function*(){var r;let o=(r=(yield t.createHttpClient().getJson(e).catch(a=>{throw new Error(`Failed to get ID Token. Error Code : ${a.statusCode} - Error Message: ${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return Doe(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`ID token url is ${r}`);let n=yield t.getCall(r);return Ln(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var Loe=require("os"),AC=require("fs");var P2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:YKe,appendFile:JKe,writeFile:jKe}=AC.promises,koe="GITHUB_STEP_SUMMARY";var _2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return P2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[koe];if(!e)throw new Error(`Unable to find environment variable for $${koe}. Check if your runtime environment supports job summaries.`);try{yield YKe(e,AC.constants.R_OK|AC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return P2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?jKe:JKe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return P2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Loe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},MWt=new _2;var G2=R(require("os"),1);var q2=require("string_decoder");var gC=R(require("os"),1),U2=R(require("events"),1),Joe=R(require("child_process"),1),joe=R(require("path"),1);var $oe=require("assert"),co=R(require("path"),1);var hC=R(require("fs"),1),Hu=R(require("path"),1);var Q2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:D2,copyFile:Moe,lstat:oB,mkdir:Foe,open:HWt,readdir:k2,rename:KKe,rm:Uoe,rmdir:$Wt,stat:Xp,symlink:qoe,unlink:L2}=hC.promises,qa=process.platform==="win32";function Goe(t){return Q2(this,void 0,void 0,function*(){let e=yield hC.promises.readlink(t);return qa&&!e.endsWith("\\")?`${e}\\`:e})}i(Goe,"readlink");var zWt=hC.constants.O_RDONLY;function zA(t){return Q2(this,void 0,void 0,function*(){try{yield Xp(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(zA,"exists");function iB(t){if(t=XKe(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return qa?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(iB,"isRooted");function O2(t,e){return Q2(this,void 0,void 0,function*(){let r;try{r=yield Xp(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(qa){let s=Hu.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(Ooe(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield Xp(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(qa){try{let o=Hu.dirname(t),a=Hu.basename(t).toUpperCase();for(let c of yield k2(o))if(a===c.toUpperCase()){t=Hu.join(o,c);break}}catch(o){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${o}`)}return t}else if(Ooe(r))return t}}return""})}i(O2,"tryGetExecutablePath");function XKe(t){return t=t||"",qa?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(XKe,"normalizeSeparators");function Ooe(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}i(Ooe,"isUnixExecutable");var Zp=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function zoe(t,e){return Zp(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=eXe(s),l=(yield zA(n))?yield Xp(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?co.join(n,co.basename(r)):n;if(!(yield zA(r)))throw new Error(`no such file or directory: ${r}`);if((yield Xp(r)).isDirectory())if(a)yield Voe(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(co.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Woe(r,u,o)}})}i(zoe,"cp");function M2(t){return Zp(this,void 0,void 0,function*(){if(qa&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Uoe(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(M2,"rmRF");function em(t){return Zp(this,void 0,void 0,function*(){(0,$oe.ok)(t,"a path argument must be provided"),yield Foe(t,{recursive:!0})})}i(em,"mkdirP");function Bs(t,e){return Zp(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Bs(t,!1);if(!n)throw qa?new Error(`Unable to locate executable file: ${t}. 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.`):new Error(`Unable to locate executable file: ${t}. 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 n}let r=yield ZKe(t);return r&&r.length>0?r[0]:""})}i(Bs,"which");function ZKe(t){return Zp(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(qa&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(co.delimiter))s&&e.push(s);if(iB(t)){let s=yield O2(t,e);return s?[s]:[]}if(t.includes(co.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(co.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield O2(co.join(s,t),e);o&&n.push(o)}return n})}i(ZKe,"findInPath");function eXe(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}i(eXe,"readCopyOptions");function Voe(t,e,r,n){return Zp(this,void 0,void 0,function*(){if(r>=255)return;r++,yield em(e);let s=yield k2(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield oB(a)).isDirectory()?yield Voe(a,c,r,n):yield Woe(a,c,n)}yield D2(e,(yield Xp(t)).mode)})}i(Voe,"cpDirRecursive");function Woe(t,e,r){return Zp(this,void 0,void 0,function*(){if((yield oB(t)).isSymbolicLink()){try{yield oB(e),yield L2(e)}catch(s){s.code==="EPERM"&&(yield D2(e,"0666"),yield L2(e))}let n=yield Goe(t);yield qoe(n,e,qa?"junction":null)}else(!(yield zA(e))||r)&&(yield Moe(t,e))})}i(Woe,"copyFile");var Koe=require("timers");var Yoe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},aB=process.platform==="win32",cB=class extends U2.EventEmitter{static{i(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),s=this._getSpawnArgs(e),o=r?"":"[command]";if(aB)if(this._isCmdFile()){o+=n;for(let a of s)o+=` ${a}`}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(let a of s)o+=` ${a}`}else{o+=this._windowsQuoteCmdArg(n);for(let a of s)o+=` ${this._windowsQuoteCmdArg(a)}`}else{o+=n;for(let a of s)o+=` ${a}`}return o}_processLineBuffer(e,r,n){try{let s=r+e.toString(),o=s.indexOf(gC.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+gC.EOL.length),o=s.indexOf(gC.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return aB&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(aB&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let 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'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let s='"',o=!0;for(let a=e.length;a>0;a--)s+=e[a-1],o&&e[a-1]==="\\"?s+="\\":e[a-1]==='"'?(o=!0,s+='"'):o=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let s=e.length;s>0;s--)r+=e[s-1],n&&e[s-1]==="\\"?r+="\\":e[s-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return Yoe(this,void 0,void 0,function*(){return!iB(this.toolPath)&&(this.toolPath.includes("/")||aB&&this.toolPath.includes("\\"))&&(this.toolPath=joe.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Bs(this.toolPath,!0),new Promise((e,r)=>Yoe(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+gC.EOL);let s=new F2(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield zA(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=Joe.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{s.processError=u.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),a.on("exit",u=>{s.processExitCode=u,s.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),s.CheckComplete()}),a.on("close",u=>{s.processExitCode=u,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function Xoe(t){let e=[],r=!1,n=!1,s="";function o(a){n&&a!=='"'&&(s+="\\"),s+=a,n=!1}i(o,"append");for(let a=0;a0&&(e.push(s),s="");continue}o(c)}return s.length>0&&e.push(s.trim()),e}i(Xoe,"argStringToArray");var F2=class t extends U2.EventEmitter{static{i(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Koe.setTimeout)(t.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(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}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`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(r)}e._setResult()}}};var Zoe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function $u(t,e,r){return Zoe(this,void 0,void 0,function*(){let n=Xoe(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=n[0];return e=n.slice(1).concat(e||[]),new cB(s,e,r).exec()})}i($u,"exec");function yC(t,e,r){return Zoe(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new q2.StringDecoder("utf8"),l=new q2.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(s=r?.listeners)===null||s===void 0?void 0:s.stderr,p=i(h=>{a+=l.write(h),d&&d(h)},"stdErrListener"),m=i(h=>{o+=c.write(h),u&&u(h)},"stdOutListener"),f=Object.assign(Object.assign({},r?.listeners),{stdout:m,stderr:p}),A=yield $u(t,e,Object.assign(Object.assign({},r),{listeners:f}));return o+=c.end(),a+=l.end(),{exitCode:A,stdout:o,stderr:a}})}i(yC,"getExecOutput");var KWt=G2.default.platform(),XWt=G2.default.arch();var eie=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},H2;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(H2||(H2={}));function Ln(t){wp("add-mask",{},t)}i(Ln,"setSecret");function qi(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}i(qi,"getInput");function rie(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=qi(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(rie,"getBooleanInput");function nie(t){process.exitCode=H2.Failure,WA(t)}i(nie,"setFailed");function tm(){return process.env.RUNNER_DEBUG==="1"}i(tm,"isDebug");function T(t){wp("debug",{},t)}i(T,"debug");function WA(t,e={}){wp("error",jM(e),t instanceof Error?t.toString():t)}i(WA,"error");function Cr(t,e={}){wp("warning",jM(e),t instanceof Error?t.toString():t)}i(Cr,"warning");function ge(t){process.stdout.write(t+tie.EOL)}i(ge,"info");function nXe(t){XM("group",t)}i(nXe,"startGroup");function sXe(){XM("endgroup")}i(sXe,"endGroup");function CC(t,e){return eie(this,void 0,void 0,function*(){nXe(t);let r;try{r=yield e()}finally{sXe()}return r})}i(CC,"group");function rm(t,e){if(process.env.GITHUB_STATE||"")return rX("STATE",nX(t,e));wp("save-state",{name:t},Su(e))}i(rm,"saveState");function sie(t){return process.env[`STATE_${t}`]||""}i(sie,"getState");function oie(t){return eie(this,void 0,void 0,function*(){return yield sB.getIDToken(t)})}i(oie,"getIDToken");var fv=R(require("fs"),1),V4=R(require("os"),1),W4=R(require("path"),1);var aie=R(require("os"),1);function IC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(IC,"toCommandValue");function cie(t,e,r){let n=new $2(t,e,r);process.stdout.write(n.toString()+aie.EOL)}i(cie,"issueCommand");var iie="::",$2=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=iie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${iXe(s)}`)}}return e+=`${iie}${oXe(this.message)}`,e}};function oXe(t){return IC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(oXe,"escapeData");function iXe(t){return IC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(iXe,"escapeProperty");var lB=R(Jf(),1),cXe=R(Kp(),1);var Ga;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ga||(Ga={}));var lie;(function(t){t.Accept="accept",t.ContentType="content-type"})(lie||(lie={}));var uie;(function(t){t.ApplicationJson="application/json"})(uie||(uie={}));var SYt=[Ga.MovedPermanently,Ga.ResourceMoved,Ga.SeeOther,Ga.TemporaryRedirect,Ga.PermanentRedirect],xYt=[Ga.BadGateway,Ga.ServiceUnavailable,Ga.GatewayTimeout];var pie=require("os"),wC=require("fs");var z2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:dXe,appendFile:pXe,writeFile:mXe}=wC.promises,die="GITHUB_STEP_SUMMARY";var V2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return z2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[die];if(!e)throw new Error(`Unable to find environment variable for $${die}. Check if your runtime environment supports job summaries.`);try{yield dXe(e,wC.constants.R_OK|wC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return z2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?mXe:pXe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return z2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(pie.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},kYt=new V2;var W2=R(require("os"),1);var UYt=W2.default.platform(),qYt=W2.default.arch();var mie;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(mie||(mie={}));function es(t){cie("debug",{},t)}i(es,"debug");var Rs=R(require("fs"),1);var det=R(mq(),1);var wB=R(require("os"),1),zu=R(require("path"),1);var Yo=R(mq(),1);var sce=require("assert");var nce=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var YJt=process.platform==="win32",JJt=process.platform==="darwin";function fq(t,e,r,n){return nce(this,void 0,void 0,function*(){if(r=Yo.clean(r)||r,n=n||wB.arch(),es(`Caching tool ${e} ${r} ${n}`),es(`source dir: ${t}`),!Rs.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield fet(e,r,n);for(let o of Rs.readdirSync(t)){let a=zu.join(t,o);yield zoe(a,s,{recursive:!0})}return Aet(e,r,n),s})}i(fq,"cacheDir");function oce(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||wB.arch(),!ice(e)){let s=met(t,r);e=het(s,e)}let n="";if(e){e=Yo.clean(e)||"";let s=zu.join(SB(),t,e,r);es(`checking cache: ${s}`),Rs.existsSync(s)&&Rs.existsSync(`${s}.complete`)?(es(`Found tool in cache ${t} ${e} ${r}`),n=s):es("not found")}return n}i(oce,"find");function met(t,e){let r=[];e=e||wB.arch();let n=zu.join(SB(),t);if(Rs.existsSync(n)){let s=Rs.readdirSync(n);for(let o of s)if(ice(o)){let a=zu.join(n,o,e||"");Rs.existsSync(a)&&Rs.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(met,"findAllVersions");function fet(t,e,r){return nce(this,void 0,void 0,function*(){let n=zu.join(SB(),t,Yo.clean(e)||e,r||"");es(`destination ${n}`);let s=`${n}.complete`;return yield M2(n),yield M2(s),yield em(n),n})}i(fet,"_createToolPath");function Aet(t,e,r){let s=`${zu.join(SB(),t,Yo.clean(e)||e,r||"")}.complete`;Rs.writeFileSync(s,""),es("finished caching tool")}i(Aet,"_completeToolPath");function ice(t){let e=Yo.clean(t)||"";es(`isExplicit: ${e}`);let r=Yo.valid(e)!=null;return es(`explicit? ${r}`),r}i(ice,"isExplicitVersion");function het(t,e){let r="";es(`evaluating ${t.length} versions`),t=t.sort((n,s)=>Yo.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(Yo.satisfies(s,e)){r=s;break}}return r?es(`matched: ${r}`):es("match not found"),r}i(het,"evaluateVersions");function SB(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,sce.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(SB,"_getCacheDirectory");var dw=R(require("path"),1);var cce=R(require("os"),1);function vC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(vC,"toCommandValue");function lce(t,e,r){let n=new Aq(t,e,r);process.stdout.write(n.toString()+cce.EOL)}i(lce,"issueCommand");var ace="::",Aq=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=ace+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Eet(s)}`)}}return e+=`${ace}${yet(this.message)}`,e}};function yet(t){return vC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(yet,"escapeData");function Eet(t){return vC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Eet,"escapeProperty");var xB=R(Jf(),1),Iet=R(Kp(),1);var $a;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})($a||($a={}));var uce;(function(t){t.Accept="accept",t.ContentType="content-type"})(uce||(uce={}));var dce;(function(t){t.ApplicationJson="application/json"})(dce||(dce={}));var ajt=[$a.MovedPermanently,$a.ResourceMoved,$a.SeeOther,$a.TemporaryRedirect,$a.PermanentRedirect],cjt=[$a.BadGateway,$a.ServiceUnavailable,$a.GatewayTimeout];var mce=require("os"),PC=require("fs");var hq=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:wet,appendFile:xet,writeFile:bet}=PC.promises,pce="GITHUB_STEP_SUMMARY";var gq=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return hq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[pce];if(!e)throw new Error(`Unable to find environment variable for $${pce}. Check if your runtime environment supports job summaries.`);try{yield wet(e,PC.constants.R_OK|PC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return hq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?bet:xet)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return hq(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(mce.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,m)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Ijt=new gq;var yq=R(require("os"),1);var Bjt=yq.default.platform(),Rjt=yq.default.arch();var fce;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(fce||(fce={}));function Jo(t){lce("debug",{},t)}i(Jo,"debug");var XA=R(require("fs"),1);function Cq(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Jo(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Jo(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Jo(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Jo(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,Jo(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(Cq,"getOptions");var TB=R(require("path"),1);var JA=R(require("path"),1),Vu=R(require("assert"),1);var Wu=process.platform==="win32";function Dl(t){if(t=Ql(t),Wu&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=JA.dirname(t);return Wu&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Ql(e)),e}i(Dl,"dirname");function bB(t,e){if((0,Vu.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Vu.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),_C(e))return e;if(Wu){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Vu.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Gi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Vu.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return(0,Vu.default)(_C(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Wu&&t.endsWith("\\")||(t+=JA.sep),t+e}i(bB,"ensureAbsoluteRoot");function _C(t){return(0,Vu.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Gi(t),Wu?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(_C,"hasAbsoluteRoot");function QC(t){return(0,Vu.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=Gi(t),Wu?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(QC,"hasRoot");function Gi(t){return t=t||"",Wu?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(Gi,"normalizeSeparators");function Ql(t){return t?(t=Gi(t),!t.endsWith(JA.sep)||t===JA.sep||Wu&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(Ql,"safeTrimTrailingSeparator");var Hi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Hi||(Hi={}));var Ace=process.platform==="win32";function wq(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Ace?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=Ace?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=Dl(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=Dl(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(wq,"getSearchPaths");function hce(t,e){let r=Hi.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(hce,"match");function gce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(gce,"partialMatch");var Fce=R(require("os"),1),KA=R(require("path"),1);var Ju=R(require("assert"),1),Uce=R(Mce(),1);var om=R(require("path"),1);var jA=R(require("assert"),1);var jet=process.platform==="win32",im=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,jA.default)(e,"Parameter 'itemPath' must not be empty"),e=Ql(e),!QC(e))this.segments=e.split(om.sep);else{let r=e,n=Dl(r);for(;n!==r;){let s=om.basename(r);this.segments.unshift(s),r=n,n=Dl(r)}this.segments.unshift(r)}else{(0,jA.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;rt.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new im(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),kl?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:kl,nocomment:!0,noext:!0,nonegate:!0};o=kl?o.replace(/\\/g,"/"):o,this.minimatch=new Ket(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Gi(e),!e.endsWith(KA.sep)&&this.isImplicitPattern===!1&&(e=`${e}${KA.sep}`)):e=Ql(e),this.minimatch.match(e)?this.trailingSeparator?Hi.Directory:Hi.All:Hi.None}partialMatch(e){return e=Ql(e),Dl(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(kl?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(kl?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Ju.default)(e,"pattern cannot be empty");let n=new im(e).segments.map(s=>t.getLiteral(s));if((0,Ju.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Ju.default)(!QC(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Gi(e),e==="."||e.startsWith(`.${KA.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${KA.sep}`))r=r||Fce.homedir(),(0,Ju.default)(r,"Unable to determine HOME directory"),(0,Ju.default)(_C(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(kl&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=bB("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(kl&&(e==="\\"||e.match(/^\\[^\\]/))){let s=bB("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=bB(t.globEscape(process.cwd()),e);return Gi(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(o.length>1)return"";if(o){r+=o,n=a;continue}}}}r+=s}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var OC=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var Rq=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Xet=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},ju=function(t){return this instanceof ju?(this.v=t,this):new ju(t)},Zet=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(f){return function(A){return Promise.resolve(A).then(f,p)}}function c(f,A){n[f]&&(s[f]=function(h){return new Promise(function(E,y){o.push([f,h,E,y])>1||l(f,h)})},A&&(s[f]=A(s[f])))}function l(f,A){try{u(n[f](A))}catch(h){m(o[0][3],h)}}function u(f){f.value instanceof ju?Promise.resolve(f.value.v).then(d,p):m(o[0][2],f)}function d(f){l("next",f)}function p(f){l("throw",f)}function m(f,A){f(A),o.shift(),o.length&&l(o[0][0],o[0][1])}},ett=process.platform==="win32",NB=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=Cq(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Rq(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=Xet(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){s=l.value,a=!1;let u=s;o.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return o})}globGenerator(){return Zet(this,arguments,i(function*(){let r=Cq(this.options),n=[];for(let a of this.patterns)n.push(a),r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")&&n.push(new LC(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of wq(n)){Jo(`Search path '${a}'`);try{yield ju(XA.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new OC(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=hce(n,a.path),l=!!c||gce(n,a.path);if(!c&&!l)continue;let u=yield ju(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&TB.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&Hi.Directory&&r.matchDirectories)yield yield ju(a.path);else if(!l)continue;let d=a.level+1,p=(yield ju(XA.promises.readdir(a.path))).map(m=>new OC(TB.join(a.path,m),d));s.push(...p.reverse())}else c&Hi.File&&(yield yield ju(a.path))}},"globGenerator_1"))}static create(e,r){return Rq(this,void 0,void 0,function*(){let n=new t(r);ett&&(e=e.replace(/\r\n/g,` + Error Message: ${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return Goe(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`ID token url is ${r}`);let n=yield t.getCall(r);return Ln(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var Hoe=require("os"),CC=require("fs");var M2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:mXe,appendFile:AXe,writeFile:hXe}=CC.promises,$oe="GITHUB_STEP_SUMMARY";var F2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return M2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[$oe];if(!e)throw new Error(`Unable to find environment variable for $${$oe}. Check if your runtime environment supports job summaries.`);try{yield mXe(e,CC.constants.R_OK|CC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return M2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?hXe:AXe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return M2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Hoe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},KYt=new F2;var Y2=R(require("os"),1);var W2=require("string_decoder");var SC=R(require("os"),1),V2=R(require("events"),1),nie=R(require("child_process"),1),sie=R(require("path"),1);var Xoe=require("assert"),uo=R(require("path"),1);var IC=R(require("fs"),1),Hu=R(require("path"),1);var U2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{chmod:q2,copyFile:Voe,lstat:fB,mkdir:Woe,open:r8t,readdir:G2,rename:gXe,rm:Yoe,rmdir:n8t,stat:tf,symlink:Joe,unlink:$2}=IC.promises,qa=process.platform==="win32";function joe(t){return U2(this,void 0,void 0,function*(){let e=yield IC.promises.readlink(t);return qa&&!e.endsWith("\\")?`${e}\\`:e})}i(joe,"readlink");var s8t=IC.constants.O_RDONLY;function jA(t){return U2(this,void 0,void 0,function*(){try{yield tf(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(jA,"exists");function mB(t){if(t=yXe(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return qa?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(mB,"isRooted");function H2(t,e){return U2(this,void 0,void 0,function*(){let r;try{r=yield tf(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(qa){let s=Hu.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(zoe(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield tf(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(qa){try{let o=Hu.dirname(t),a=Hu.basename(t).toUpperCase();for(let c of yield G2(o))if(a===c.toUpperCase()){t=Hu.join(o,c);break}}catch(o){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${o}`)}return t}else if(zoe(r))return t}}return""})}i(H2,"tryGetExecutablePath");function yXe(t){return t=t||"",qa?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(yXe,"normalizeSeparators");function zoe(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}i(zoe,"isUnixExecutable");var rf=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Zoe(t,e){return rf(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=CXe(s),l=(yield jA(n))?yield tf(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?uo.join(n,uo.basename(r)):n;if(!(yield jA(r)))throw new Error(`no such file or directory: ${r}`);if((yield tf(r)).isDirectory())if(a)yield eie(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(uo.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield tie(r,u,o)}})}i(Zoe,"cp");function wC(t){return rf(this,void 0,void 0,function*(){if(qa&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Yoe(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(wC,"rmRF");function nf(t){return rf(this,void 0,void 0,function*(){(0,Xoe.ok)(t,"a path argument must be provided"),yield Woe(t,{recursive:!0})})}i(nf,"mkdirP");function Rs(t,e){return rf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Rs(t,!1);if(!n)throw qa?new Error(`Unable to locate executable file: ${t}. 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.`):new Error(`Unable to locate executable file: ${t}. 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 n}let r=yield EXe(t);return r&&r.length>0?r[0]:""})}i(Rs,"which");function EXe(t){return rf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(qa&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(uo.delimiter))s&&e.push(s);if(mB(t)){let s=yield H2(t,e);return s?[s]:[]}if(t.includes(uo.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(uo.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield H2(uo.join(s,t),e);o&&n.push(o)}return n})}i(EXe,"findInPath");function CXe(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}i(CXe,"readCopyOptions");function eie(t,e,r,n){return rf(this,void 0,void 0,function*(){if(r>=255)return;r++,yield nf(e);let s=yield G2(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield fB(a)).isDirectory()?yield eie(a,c,r,n):yield tie(a,c,n)}yield q2(e,(yield tf(t)).mode)})}i(eie,"cpDirRecursive");function tie(t,e,r){return rf(this,void 0,void 0,function*(){if((yield fB(t)).isSymbolicLink()){try{yield fB(e),yield $2(e)}catch(s){s.code==="EPERM"&&(yield q2(e,"0666"),yield $2(e))}let n=yield joe(t);yield Joe(n,e,qa?"junction":null)}else(!(yield jA(e))||r)&&(yield Voe(t,e))})}i(tie,"copyFile");var oie=require("timers");var rie=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},AB=process.platform==="win32",hB=class extends V2.EventEmitter{static{i(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),s=this._getSpawnArgs(e),o=r?"":"[command]";if(AB)if(this._isCmdFile()){o+=n;for(let a of s)o+=` ${a}`}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(let a of s)o+=` ${a}`}else{o+=this._windowsQuoteCmdArg(n);for(let a of s)o+=` ${this._windowsQuoteCmdArg(a)}`}else{o+=n;for(let a of s)o+=` ${a}`}return o}_processLineBuffer(e,r,n){try{let s=r+e.toString(),o=s.indexOf(SC.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+SC.EOL.length),o=s.indexOf(SC.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return AB&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(AB&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let 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'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let s='"',o=!0;for(let a=e.length;a>0;a--)s+=e[a-1],o&&e[a-1]==="\\"?s+="\\":e[a-1]==='"'?(o=!0,s+='"'):o=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let s=e.length;s>0;s--)r+=e[s-1],n&&e[s-1]==="\\"?r+="\\":e[s-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return rie(this,void 0,void 0,function*(){return!mB(this.toolPath)&&(this.toolPath.includes("/")||AB&&this.toolPath.includes("\\"))&&(this.toolPath=sie.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Rs(this.toolPath,!0),new Promise((e,r)=>rie(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+SC.EOL);let s=new z2(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield jA(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=nie.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{s.processError=u.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),a.on("exit",u=>{s.processExitCode=u,s.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),s.CheckComplete()}),a.on("close",u=>{s.processExitCode=u,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function iie(t){let e=[],r=!1,n=!1,s="";function o(a){n&&a!=='"'&&(s+="\\"),s+=a,n=!1}i(o,"append");for(let a=0;a0&&(e.push(s),s="");continue}o(c)}return s.length>0&&e.push(s.trim()),e}i(iie,"argStringToArray");var z2=class t extends V2.EventEmitter{static{i(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,oie.setTimeout)(t.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(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}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`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(r)}e._setResult()}}};var aie=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function zu(t,e,r){return aie(this,void 0,void 0,function*(){let n=iie(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=n[0];return e=n.slice(1).concat(e||[]),new hB(s,e,r).exec()})}i(zu,"exec");function xC(t,e,r){return aie(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new W2.StringDecoder("utf8"),l=new W2.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(s=r?.listeners)===null||s===void 0?void 0:s.stderr,p=i(h=>{a+=l.write(h),d&&d(h)},"stdErrListener"),f=i(h=>{o+=c.write(h),u&&u(h)},"stdOutListener"),m=Object.assign(Object.assign({},r?.listeners),{stdout:f,stderr:p}),A=yield zu(t,e,Object.assign(Object.assign({},r),{listeners:m}));return o+=c.end(),a+=l.end(),{exitCode:A,stdout:o,stderr:a}})}i(xC,"getExecOutput");var u8t=Y2.default.platform(),d8t=Y2.default.arch();var cie=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},J2;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(J2||(J2={}));function Ln(t){bp("add-mask",{},t)}i(Ln,"setSecret");function $i(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}i($i,"getInput");function uie(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=$i(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(uie,"getBooleanInput");function die(t){process.exitCode=J2.Failure,XA(t)}i(die,"setFailed");function sf(){return process.env.RUNNER_DEBUG==="1"}i(sf,"isDebug");function T(t){bp("debug",{},t)}i(T,"debug");function XA(t,e={}){bp("error",nF(e),t instanceof Error?t.toString():t)}i(XA,"error");function or(t,e={}){bp("warning",nF(e),t instanceof Error?t.toString():t)}i(or,"warning");function ae(t){process.stdout.write(t+lie.EOL)}i(ae,"info");function SXe(t){oF("group",t)}i(SXe,"startGroup");function xXe(){oF("endgroup")}i(xXe,"endGroup");function BC(t,e){return cie(this,void 0,void 0,function*(){SXe(t);let r;try{r=yield e()}finally{xXe()}return r})}i(BC,"group");function of(t,e){if(process.env.GITHUB_STATE||"")return uX("STATE",dX(t,e));bp("save-state",{name:t},xu(e))}i(of,"saveState");function pie(t){return process.env[`STATE_${t}`]||""}i(pie,"getState");function fie(t){return cie(this,void 0,void 0,function*(){return yield pB.getIDToken(t)})}i(fie,"getIDToken");var yw=R(require("fs"),1),eW=R(require("os"),1),tW=R(require("path"),1);var Aie=R(require("os"),1);function RC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(RC,"toCommandValue");function hie(t,e,r){let n=new j2(t,e,r);process.stdout.write(n.toString()+Aie.EOL)}i(hie,"issueCommand");var mie="::",j2=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=mie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${BXe(s)}`)}}return e+=`${mie}${bXe(this.message)}`,e}};function bXe(t){return RC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(bXe,"escapeData");function BXe(t){return RC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(BXe,"escapeProperty");var gB=R(eA(),1),NXe=R(ef(),1);var Ga;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ga||(Ga={}));var gie;(function(t){t.Accept="accept",t.ContentType="content-type"})(gie||(gie={}));var yie;(function(t){t.ApplicationJson="application/json"})(yie||(yie={}));var L8t=[Ga.MovedPermanently,Ga.ResourceMoved,Ga.SeeOther,Ga.TemporaryRedirect,Ga.PermanentRedirect],O8t=[Ga.BadGateway,Ga.ServiceUnavailable,Ga.GatewayTimeout];var Cie=require("os"),NC=require("fs");var K2=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:vXe,appendFile:_Xe,writeFile:QXe}=NC.promises,Eie="GITHUB_STEP_SUMMARY";var X2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return K2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Eie];if(!e)throw new Error(`Unable to find environment variable for $${Eie}. Check if your runtime environment supports job summaries.`);try{yield vXe(e,NC.constants.R_OK|NC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return K2(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?QXe:_Xe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return K2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Cie.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Y8t=new X2;var Z2=R(require("os"),1);var Z8t=Z2.default.platform(),eJt=Z2.default.arch();var Iie;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Iie||(Iie={}));function ts(t){hie("debug",{},t)}i(ts,"debug");var Ns=R(require("fs"),1);var _et=R(Eq(),1);var PB=R(require("os"),1),Vu=R(require("path"),1);var Yo=R(Eq(),1);var pce=require("assert");var dce=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var a5t=process.platform==="win32",c5t=process.platform==="darwin";function fce(t,e,r,n){return dce(this,void 0,void 0,function*(){if(r=Yo.clean(r)||r,n=n||PB.arch(),ts(`Caching tool ${e} ${r} ${n}`),ts(`source dir: ${t}`),!Ns.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield ket(e,r,n);for(let o of Ns.readdirSync(t)){let a=Vu.join(t,o);yield Zoe(a,s,{recursive:!0})}return Let(e,r,n),s})}i(fce,"cacheDir");function mce(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||PB.arch(),!Ace(e)){let s=Det(t,r);e=Oet(s,e)}let n="";if(e){e=Yo.clean(e)||"";let s=Vu.join(vB(),t,e,r);ts(`checking cache: ${s}`),Ns.existsSync(s)&&Ns.existsSync(`${s}.complete`)?(ts(`Found tool in cache ${t} ${e} ${r}`),n=s):ts("not found")}return n}i(mce,"find");function Det(t,e){let r=[];e=e||PB.arch();let n=Vu.join(vB(),t);if(Ns.existsSync(n)){let s=Ns.readdirSync(n);for(let o of s)if(Ace(o)){let a=Vu.join(n,o,e||"");Ns.existsSync(a)&&Ns.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(Det,"findAllVersions");function ket(t,e,r){return dce(this,void 0,void 0,function*(){let n=Vu.join(vB(),t,Yo.clean(e)||e,r||"");ts(`destination ${n}`);let s=`${n}.complete`;return yield wC(n),yield wC(s),yield nf(n),n})}i(ket,"_createToolPath");function Let(t,e,r){let s=`${Vu.join(vB(),t,Yo.clean(e)||e,r||"")}.complete`;Ns.writeFileSync(s,""),ts("finished caching tool")}i(Let,"_completeToolPath");function Ace(t){let e=Yo.clean(t)||"";ts(`isExplicit: ${e}`);let r=Yo.valid(e)!=null;return ts(`explicit? ${r}`),r}i(Ace,"isExplicitVersion");function Oet(t,e){let r="";ts(`evaluating ${t.length} versions`),t=t.sort((n,s)=>Yo.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(Yo.satisfies(s,e)){r=s;break}}return r?ts(`matched: ${r}`):ts("match not found"),r}i(Oet,"evaluateVersions");function vB(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,pce.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(vB,"_getCacheDirectory");var gw=R(require("path"),1);var gce=R(require("os"),1);function LC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(LC,"toCommandValue");function yce(t,e,r){let n=new Cq(t,e,r);process.stdout.write(n.toString()+gce.EOL)}i(yce,"issueCommand");var hce="::",Cq=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=hce+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Uet(s)}`)}}return e+=`${hce}${Fet(this.message)}`,e}};function Fet(t){return LC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Fet,"escapeData");function Uet(t){return LC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Uet,"escapeProperty");var _B=R(eA(),1),Get=R(ef(),1);var Ha;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Ha||(Ha={}));var Ece;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ece||(Ece={}));var Cce;(function(t){t.ApplicationJson="application/json"})(Cce||(Cce={}));var C5t=[Ha.MovedPermanently,Ha.ResourceMoved,Ha.SeeOther,Ha.TemporaryRedirect,Ha.PermanentRedirect],I5t=[Ha.BadGateway,Ha.ServiceUnavailable,Ha.GatewayTimeout];var wce=require("os"),OC=require("fs");var Iq=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:$et,appendFile:Het,writeFile:zet}=OC.promises,Ice="GITHUB_STEP_SUMMARY";var wq=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return Iq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Ice];if(!e)throw new Error(`Unable to find environment variable for $${Ice}. Check if your runtime environment supports job summaries.`);try{yield $et(e,OC.constants.R_OK|OC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}`:`<${e}${s}>`}write(e){return Iq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?zet:Het)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Iq(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(wce.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},D5t=new wq;var Sq=R(require("os"),1);var F5t=Sq.default.platform(),U5t=Sq.default.arch();var Sce;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Sce||(Sce={}));function Jo(t){yce("debug",{},t)}i(Jo,"debug");var nh=R(require("fs"),1);function bq(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Jo(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Jo(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Jo(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Jo(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,Jo(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(bq,"getOptions");var LB=R(require("path"),1);var eh=R(require("path"),1),Wu=R(require("assert"),1);var Yu=process.platform==="win32";function Ll(t){if(t=kl(t),Yu&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=eh.dirname(t);return Yu&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=kl(e)),e}i(Ll,"dirname");function QB(t,e){if((0,Wu.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Wu.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),MC(e))return e;if(Yu){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Wu.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Hi(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Wu.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return(0,Wu.default)(MC(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Yu&&t.endsWith("\\")||(t+=eh.sep),t+e}i(QB,"ensureAbsoluteRoot");function MC(t){return(0,Wu.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Hi(t),Yu?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(MC,"hasAbsoluteRoot");function FC(t){return(0,Wu.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=Hi(t),Yu?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(FC,"hasRoot");function Hi(t){return t=t||"",Yu?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(Hi,"normalizeSeparators");function kl(t){return t?(t=Hi(t),!t.endsWith(eh.sep)||t===eh.sep||Yu&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(kl,"safeTrimTrailingSeparator");var zi;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(zi||(zi={}));var xce=process.platform==="win32";function Rq(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=xce?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=xce?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=Ll(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=Ll(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(Rq,"getSearchPaths");function bce(t,e){let r=zi.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(bce,"match");function Bce(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(Bce,"partialMatch");var zce=R(require("os"),1),rh=R(require("path"),1);var Ku=R(require("assert"),1);var Nq=i((t,e,r)=>{let n=t instanceof RegExp?Rce(t,r):t,s=e instanceof RegExp?Rce(e,r):e,o=n!==null&&s!=null&&Jet(n,s,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+s.length)}},"balanced"),Rce=i((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),Jet=i((t,e,r)=>{let n,s,o,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],o=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let p=n.pop();p!==void 0&&(c=[p,u])}else s=n.pop(),s!==void 0&&s=0?l:u}n.length&&a!==void 0&&(c=[o,a])}return c},"range");var Nce="\0SLASH"+Math.random()+"\0",Tce="\0OPEN"+Math.random()+"\0",_q="\0CLOSE"+Math.random()+"\0",Pce="\0COMMA"+Math.random()+"\0",vce="\0PERIOD"+Math.random()+"\0",jet=new RegExp(Nce,"g"),Ket=new RegExp(Tce,"g"),Xet=new RegExp(_q,"g"),Zet=new RegExp(Pce,"g"),ett=new RegExp(vce,"g"),ttt=/\\\\/g,rtt=/\\{/g,ntt=/\\}/g,stt=/\\,/g,ott=/\\\./g,itt=1e5,att=4e6,ctt=1e3,ltt=1e3;function Tq(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(Tq,"numeric");function utt(t){return t.replace(ttt,Nce).replace(rtt,Tce).replace(ntt,_q).replace(stt,Pce).replace(ott,vce)}i(utt,"escapeBraces");function dtt(t){return t.replace(jet,"\\").replace(Ket,"{").replace(Xet,"}").replace(Zet,",").replace(ett,".")}i(dtt,"unescapeBraces");function Pq(t,e){for(let r=0;r=e}i(htt,"gte");function UC(t,e,r,n,s,o){let a=[],c=0;for(let l=0;l=n)return a;let d=t[l]+e+r[u];if(!(o&&!d)){if(c+d.length>s)return a;a.push(d),c+=d.length}}return a}i(UC,"combine");function gtt(t,e,r,n){let s=t.split(/\.\./),o=[];if(s[0]===void 0||s[1]===void 0)return o;let a=Tq(s[0]),c=Tq(s[1]),l=Math.max(s[0].length,s[1].length),u=s.length===3&&s[2]!==void 0?Math.max(Math.abs(Tq(s[2])),1):1,d=Att;c0){let y=new Array(E+1).join("0");A<0?h="-"+y+h.slice(1):h=y+h}}if(m+h.length>n)break;o.push(h),m+=h.length}return o}i(gtt,"expandSequence");function vq(t,e,r,n,s,o,a){if(s>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let p=Nq("{","}",t);if(!p)return UC(c,t,[""],e,r,u);let f=p.pre;if(/\$$/.test(f)){if(c=UC(c,f+"{"+p.body+"}",[""],e,r,u&&!p.post.length),d=!1,!p.post.length)break;t=p.post;continue}let m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body),A=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),h=m||A,E=p.body.indexOf(",")>=0;if(!h&&!E){if(l=e||b+J.length>r)break e;y.push(J),b+=J.length}}}}if(c=UC(c,f,y,e,r,u&&!p.post.length),!p.post.length)break;t=p.post}return c}i(vq,"expand_");var qC=i(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var ytt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},GC=i(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),Ett=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),Qce=i(t=>t.join(""),"rangesToString"),Dce=i((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],s=[],o=r+1,a=!1,c=!1,l=!1,u=!1,d=r,p="";e:for(;op?n.push(GC(p)+"-"+GC(h)):h===p&&n.push(GC(h)),p="",o++;continue}if(t.startsWith("-]",o+1)){n.push(GC(h+"-")),o+=2;continue}if(t.startsWith("-",o+1)){p=h,o+=2;continue}n.push(GC(h)),o++}if(dr?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");var Ts,Ctt=new Set(["!","?","+","*","@"]),Qq=i(t=>Ctt.has(t),"isExtglobType"),kce=i(t=>Qq(t.type),"isExtglobAST"),Itt=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),wtt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Stt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Lce=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),xtt="(?!(?:^|/)\\.\\.?(?:$|/))",DB="(?!\\.)",btt=new Set(["[","."]),Btt=new Set(["..","."]),Rtt=new Set("().*{}+?[]^$\\!"),Ntt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Dq="[^/]",Oce=Dq+"*?",Mce=Dq+"+?",Ttt=0,cf=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#s;#o;#i;#a=!1;#l;#c;#u=!1;id=++Ttt;get depth(){return(this.#s?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#s?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,r,n={}){this.type=e,e&&(this.#t=!0),this.#s=r,this.#e=this.#s?this.#s.#e:this,this.#l=this.#e===this?n:this.#e.#l,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#a&&this.#i.push(this),this.#o=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#c=this.#r.map(e=>String(e)).join("")}#g(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let r=e,n=r.#s;for(;n;){for(let s=r.#o+1;!n.type&&stypeof r=="string"?r:r.toJSON()):[this.type,...this.#r.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#s?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#o===0)return!0;let e=this.#s;for(let r=0;rtypeof m!="string"),u=this.#r.map(m=>{let[A,h,E,y]=typeof m=="string"?Ts.#S(m,this.#t,l):m.toRegExpSource(e);return this.#t=this.#t||E,this.#n=this.#n||y,A}).join(""),d="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&Btt.has(this.#r[0]))){let A=btt,h=r&&A.has(u.charAt(0))||u.startsWith("\\.")&&A.has(u.charAt(2))||u.startsWith("\\.\\.")&&A.has(u.charAt(4)),E=!r&&!e&&A.has(u.charAt(0));d=h?xtt:E?DB:""}let p="";return this.isEnd()&&this.#e.#a&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[d+u+p,Ju(u),this.#t=!!this.#t,this.#n]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#h(r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString(),u=this;return u.#r=[l],u.type=null,u.#t=void 0,[l,Ju(this.toString()),!1,!1]}let a=!n||e||r||!DB?"":this.#h(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let c="";if(this.type==="!"&&this.#u)c=(this.isStart()&&!r?DB:"")+Mce;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?DB:"")+Oce+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=s+o+l}return[c,Ju(o),this.#t=!!this.#t,this.#n]}#f(){if(kce(this)){let e=0,r=!1;do{r=!0;for(let n=0;n{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,s,o,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(e,r,n=!1){let s=!1,o="",a=!1,c=!1;for(let l=0;lr?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var ss=i((t,e,r={})=>(qC(e),!r.nocomment&&e.charAt(0)==="#"?!1:new ju(e,r).match(t)),"minimatch"),Ptt=/^\*+([^+@!?*[(]*)$/,vtt=i(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),_tt=i(t=>e=>e.endsWith(t),"starDotExtTestDot"),Qtt=i(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),Dtt=i(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),ktt=/^\*+\.\*+$/,Ltt=i(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),Ott=i(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),Mtt=/^\.\*+$/,Ftt=i(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),Utt=/^\*+$/,qtt=i(t=>t.length!==0&&!t.startsWith("."),"starTest"),Gtt=i(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),$tt=/^\?+([^+@!?*[(]*)?$/,Htt=i(([t,e=""])=>{let r=qce([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),ztt=i(([t,e=""])=>{let r=Gce([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),Vtt=i(([t,e=""])=>{let r=Gce([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),Wtt=i(([t,e=""])=>{let r=qce([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),qce=i(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Gce=i(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),$ce=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Fce={win32:{sep:"\\"},posix:{sep:"/"}},Ytt=$ce==="win32"?Fce.win32.sep:Fce.posix.sep;ss.sep=Ytt;var Fn=Symbol("globstar **");ss.GLOBSTAR=Fn;var Jtt="[^/]",jtt=Jtt+"*?",Ktt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Xtt="(?:(?!(?:\\/|^)\\.).)*?",Ztt=i((t,e={})=>r=>ss(r,t,e),"filter");ss.filter=Ztt;var jo=i((t,e={})=>Object.assign({},t,e),"ext"),ert=i(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ss;let e=ss;return Object.assign(i((n,s,o={})=>e(n,s,jo(t,o)),"m"),{Minimatch:class extends e.Minimatch{static{i(this,"Minimatch")}constructor(s,o={}){super(s,jo(t,o))}static defaults(s){return e.defaults(jo(t,s)).Minimatch}},AST:class extends e.AST{static{i(this,"AST")}constructor(s,o,a={}){super(s,o,jo(t,a))}static fromGlob(s,o={}){return e.AST.fromGlob(s,jo(t,o))}},unescape:i((n,s={})=>e.unescape(n,jo(t,s)),"unescape"),escape:i((n,s={})=>e.escape(n,jo(t,s)),"escape"),filter:i((n,s={})=>e.filter(n,jo(t,s)),"filter"),defaults:i(n=>e.defaults(jo(t,n)),"defaults"),makeRe:i((n,s={})=>e.makeRe(n,jo(t,s)),"makeRe"),braceExpand:i((n,s={})=>e.braceExpand(n,jo(t,s)),"braceExpand"),match:i((n,s,o={})=>e.match(n,s,jo(t,o)),"match"),sep:e.sep,GLOBSTAR:Fn})},"defaults");ss.defaults=ert;var Hce=i((t,e={})=>(qC(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:_ce(t,{max:e.braceExpandMax})),"braceExpand");ss.braceExpand=Hce;var trt=i((t,e={})=>new ju(t,e).makeRe(),"makeRe");ss.makeRe=trt;var rrt=i((t,e,r={})=>{let n=new ju(e,r);return t=t.filter(s=>n.match(s)),n.options.nonull&&!t.length&&t.push(e),t},"match");ss.match=rrt;var Uce=/[?*]|[+@!]\(.*?\)|\[|\]/,nrt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),ju=class{static{i(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){qC(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||$ce,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((o,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!Uce.test(o[2]))&&!Uce.test(o[3]),u=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(d=>this.parse(d))];if(u)return[o[0],...o.slice(1).map(d=>this.parse(d))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let s=n;for(;r[s+1]==="**";)s++;s!==n&&r.splice(n,s-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,s)=>{let o=n[n.length-1];return s==="**"&&o==="**"?n:s===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(s),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;ss&&n.splice(s+1,a-s);let c=n[s+1],l=n[s+2],u=n[s+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(s,1);let d=n.slice(0);d[s]="**",e.push(d),s--}if(!this.preserveMultipleSlashes){for(let a=1;ar.length)}partsMatch(e,r,n=!1){let s=0,o=0,a=[],c="";for(;s=2&&(e=this.levelTwoFileOptimize(e)),r.includes(Fn)?this.#e(e,r,n,s,o):this.#n(e,r,n,s,o)}#e(e,r,n,s,o){let a=r.indexOf(Fn,o),c=r.lastIndexOf(Fn),[l,u,d]=n?[r.slice(o,a),r.slice(a+1),[]]:[r.slice(o,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let I=e.slice(s,s+l.length);if(!this.#n(I,l,n,0,0))return!1;s+=l.length,o+=l.length}let p=0;if(d.length){if(d.length+s>e.length)return!1;let I=e.length-d.length;if(this.#n(e,d,n,I,0))p=d.length;else{if(e[e.length-1]!==""||s+d.length===e.length||(I--,!this.#n(e,d,n,I,0)))return!1;p=d.length+1}}if(!u.length){let I=!!p;for(let x=s;x{let u=l.map(p=>{if(p instanceof RegExp)for(let f of p.flags.split(""))s.add(f);return typeof p=="string"?nrt(p):p===Fn?Fn:p._src});u.forEach((p,f)=>{let m=u[f+1],A=u[f-1];p!==Fn||A===Fn||(A===void 0?m!==void 0&&m!==Fn?u[f+1]="(?:\\/|"+n+"\\/)?"+m:u[f]=n:m===void 0?u[f-1]=A+"(?:\\/|\\/"+n+")?":m!==Fn&&(u[f-1]=A+"(?:\\/|\\/"+n+"\\/)"+m,u[f+1]=Fn))});let d=u.filter(p=>p!==Fn);if(this.partial&&d.length>=1){let p=[];for(let f=1;f<=d.length;f++)p.push(d.slice(0,f).join("/"));return"(?:"+p.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];o="^"+a+o+c+"$",this.partial&&(o="^(?:\\/|"+a+o.slice(1,-1)+c+")$"),this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let o=this.set;this.debug(this.pattern,"set",o);let a=s[s.length-1];if(!a)for(let c=s.length-2;!a&&c>=0;c--)a=s[c];for(let c of o){let l=s;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ss.defaults(e).Minimatch}};ss.AST=cf;ss.Minimatch=ju;ss.escape=kq;ss.unescape=Ju;var lf=R(require("path"),1);var th=R(require("assert"),1);var srt=process.platform==="win32",uf=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,th.default)(e,"Parameter 'itemPath' must not be empty"),e=kl(e),!FC(e))this.segments=e.split(lf.sep);else{let r=e,n=Ll(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Ll(r)}this.segments.unshift(r)}else{(0,th.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;rt.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new uf(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),Ol?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:Ol,nocomment:!0,noext:!0,nonegate:!0};o=Ol?o.replace(/\\/g,"/"):o,this.minimatch=new ju(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Hi(e),!e.endsWith(rh.sep)&&this.isImplicitPattern===!1&&(e=`${e}${rh.sep}`)):e=kl(e),this.minimatch.match(e)?this.trailingSeparator?zi.Directory:zi.All:zi.None}partialMatch(e){return e=kl(e),Ll(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Ol?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Ol?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Ku.default)(e,"pattern cannot be empty");let n=new uf(e).segments.map(s=>t.getLiteral(s));if((0,Ku.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Ku.default)(!FC(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Hi(e),e==="."||e.startsWith(`.${rh.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${rh.sep}`))r=r||zce.homedir(),(0,Ku.default)(r,"Unable to determine HOME directory"),(0,Ku.default)(MC(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(Ol&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=QB("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(Ol&&(e==="\\"||e.match(/^\\[^\\]/))){let s=QB("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=QB(t.globEscape(process.cwd()),e);return Hi(e)}static getLiteral(e){let r="";for(let n=0;n=0){if(o.length>1)return"";if(o){r+=o,n=a;continue}}}}r+=s}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var HC=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var Lq=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},ort=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},Xu=function(t){return this instanceof Xu?(this.v=t,this):new Xu(t)},irt=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(m){return function(A){return Promise.resolve(A).then(m,p)}}function c(m,A){n[m]&&(s[m]=function(h){return new Promise(function(E,y){o.push([m,h,E,y])>1||l(m,h)})},A&&(s[m]=A(s[m])))}function l(m,A){try{u(n[m](A))}catch(h){f(o[0][3],h)}}function u(m){m.value instanceof Xu?Promise.resolve(m.value.v).then(d,p):f(o[0][2],m)}function d(m){l("next",m)}function p(m){l("throw",m)}function f(m,A){m(A),o.shift(),o.length&&l(o[0][0],o[0][1])}},art=process.platform==="win32",kB=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=bq(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Lq(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=ort(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){s=l.value,a=!1;let u=s;o.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return o})}globGenerator(){return irt(this,arguments,i(function*(){let r=bq(this.options),n=[];for(let a of this.patterns)n.push(a),r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")&&n.push(new $C(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of Rq(n)){Jo(`Search path '${a}'`);try{yield Xu(nh.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new HC(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=bce(n,a.path),l=!!c||Bce(n,a.path);if(!c&&!l)continue;let u=yield Xu(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&LB.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&zi.Directory&&r.matchDirectories)yield yield Xu(a.path);else if(!l)continue;let d=a.level+1,p=(yield Xu(nh.promises.readdir(a.path))).map(f=>new HC(LB.join(a.path,f),d));s.push(...p.reverse())}else c&zi.File&&(yield yield Xu(a.path))}},"globGenerator_1"))}static create(e,r){return Lq(this,void 0,void 0,function*(){let n=new t(r);art&&(e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `));let s=e.split(` -`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new LC(o));return n.searchPaths.push(...wq(n.patterns)),n})}static stat(e,r,n){return Rq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield XA.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Jo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield XA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield XA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){Jo(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var ttt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function qce(t,e){return ttt(this,void 0,void 0,function*(){return yield NB.create(t,e)})}i(qce,"create");var zB=R(require("crypto"),1),rh=R(require("fs"),1),am=R(require("path"),1),Due=R(_ue(),1),kue=R(require("util"),1);var HC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(HC||(HC={}));var os;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(os||(os={}));var uo;(function(t){t.GNU="gnu",t.BSD="bsd"})(uo||(uo={}));var GB=2,HB=5e3,Yq=5e3,Jq=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Que=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,$C="cache.tar",jq="manifest.txt",s9t=10*Math.pow(1024,3),$B="cache read denied:";var th=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},cst=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},lst="1.0";function zC(){return th(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=am.join(n,"actions","temp")}let r=am.join(e,zB.randomUUID());return yield em(r),r})}i(zC,"createTempDirectory");function Va(t){return rh.statSync(t).size}i(Va,"getArchiveFileSizeInBytes");function Kq(t){return th(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield qce(t.join(` -`),{implicitDescendants:!1});try{for(var u=!0,d=cst(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let f=am.relative(c,s).replace(new RegExp(`\\${am.sep}`,"g"),"/");T(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(m){r={error:m}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(Kq,"resolvePaths");function VC(t){return th(this,void 0,void 0,function*(){return kue.promisify(rh.unlink)(t)})}i(VC,"unlinkFile");function Lue(t){return th(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield $u(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}i(Lue,"getVersion");function WC(){return th(this,void 0,void 0,function*(){let t=yield Lue("zstd",["--quiet"]),e=Due.clean(t);return T(`zstd version: ${e}`),t===""?os.Gzip:os.ZstdWithoutLong})}i(WC,"getCompressionMethod");function Xu(t){return t===os.Gzip?HC.Gzip:HC.Zstd}i(Xu,"getCacheFileName");function Oue(){return th(this,void 0,void 0,function*(){return rh.existsSync(Jq)?Jq:(yield Lue("tar")).toLowerCase().includes("gnu tar")?Bs("tar"):""})}i(Oue,"getGnuTarPathOnWindows");function Xq(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(Xq,"assertDefined");function nh(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(lst),zB.createHash("sha256").update(n.join("|")).digest("hex")}i(nh,"getCacheVersion");function Mue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(Mue,"getRuntimeToken");var JC=R(require("http"),1),tG=R(require("https"),1);function Zq(t){let e=t.protocol==="https:";if(ust(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new WB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new WB(`http://${r}`)}else return}i(Zq,"getProxyUrl");function ust(t){if(!t.hostname)return!1;let e=t.hostname;if(dst(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(ust,"checkBypass");function dst(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(dst,"isLoopbackAddress");var WB=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Zu=R(Jf(),1),Fue=R(Kp(),1);var Ir=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},At;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(At||(At={}));var is;(function(t){t.Accept="accept",t.ContentType="content-type"})(is||(is={}));var Ll;(function(t){t.ApplicationJson="application/json"})(Ll||(Ll={}));var mst=[At.MovedPermanently,At.ResourceMoved,At.SeeOther,At.TemporaryRedirect,At.PermanentRedirect],fst=[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout],Ast=["OPTIONS","GET","DELETE","HEAD"],hst=10,gst=5,Wa=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},eG=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Ir(this,void 0,void 0,function*(){return new Promise(e=>Ir(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Ir(this,void 0,void 0,function*(){return new Promise(e=>Ir(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var po=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Ir(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Ir(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Ir(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Ir(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Ir(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Ir(this,arguments,void 0,function*(r,n={}){n[is.Accept]=this._getExistingOrDefaultHeader(n,is.Accept,Ll.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[is.Accept]=this._getExistingOrDefaultHeader(o,is.Accept,Ll.ApplicationJson),o[is.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ll.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[is.Accept]=this._getExistingOrDefaultHeader(o,is.Accept,Ll.ApplicationJson),o[is.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ll.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[is.Accept]=this._getExistingOrDefaultHeader(o,is.Accept,Ll.ApplicationJson),o[is.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ll.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Ir(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&Ast.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===At.Unauthorized){let p;for(let m of this.handlers)if(m.canHandleAuthentication(u)){p=m;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&mst.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let m=new URL(p);if(o.protocol==="https:"&&o.protocol!==m.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.");if(yield u.readBody(),m.hostname!==o.hostname)for(let f in s)f.toLowerCase()==="authorization"&&delete s[f];a=this._prepareRequest(e,m,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!fst.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new eG(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=Zq(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?tG:JC;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},YC(this.requestOptions.headers),YC(e||{})):YC(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=YC(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=YC(this.requestOptions.headers)[is.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[is.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=Zq(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||JC.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?Zu.httpsOverHttps:Zu.httpsOverHttp:l=u?Zu.httpOverHttps:Zu.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new tG.Agent(c):new JC.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new Fue.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Ir(this,void 0,void 0,function*(){e=Math.min(hst,e);let r=gst*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Ir(this,void 0,void 0,function*(){return new Promise((n,s)=>Ir(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===At.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let m=new Date(p);if(!isNaN(m.valueOf()))return m}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new Wa(d,o);p.result=a.result,s(p)}else n(a)}))})}},YC=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var yst=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var sh=class{static{i(this,"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!1}handleAuthentication(){return yst(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Dh=R(require("fs"),1),hhe=require("url");var Ya=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var que=require("node:os"),Gue=R(require("node:util"),1),Hue=R(require("node:process"),1);function $ue(t,...e){Hue.default.stderr.write(`${Gue.default.format(t,...e)}${que.EOL}`)}i($ue,"log");var zue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Wue,rG=[],nG=[],YB=[];zue&&sG(zue);var Yue=Object.assign(t=>Jue(t),{enable:sG,enabled:oG,disable:Est,log:$ue});function sG(t){Wue=t,rG=[],nG=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?nG.push(r.substring(1)):rG.push(r);for(let r of YB)r.enabled=oG(r.namespace)}i(sG,"enable");function oG(t){if(t.endsWith("*"))return!0;for(let e of nG)if(Vue(t,e))return!1;for(let e of rG)if(Vue(t,e))return!0;return!1}i(oG,"enabled");function Vue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let m=[],f="";for(let A of e)A==="*"&&f==="*"||(f=A,m.push(A));r=m.join("")}let n=0,s=0,o=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(s=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else return!1;let u=n===t.length,d=s===r.length,p=s===r.length-1&&r[s]==="*";return u&&(d||p)}i(Vue,"namespaceMatches");function Est(){let t=Wue||"";return sG(""),t}i(Est,"disable");function Jue(t){let e=Object.assign(r,{enabled:oG(t),destroy:Cst,log:Yue.log,namespace:t,extend:Ist});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),YB.push(e),e}i(Jue,"createDebugger");function Cst(){let t=YB.indexOf(this);return t>=0?(YB.splice(t,1),!0):!1}i(Cst,"destroy");function Ist(t){let e=Jue(`${this.namespace}:${t}`);return e.log=this.log,e}i(Ist,"extend");var oh=Yue;var iG=["verbose","info","warning","error"],jue={verbose:400,info:300,warning:200,error:100};function Kue(t,e){e.log=(...r)=>{t.log(...r)}}i(Kue,"patchLogMethod");function Xue(t){return iG.includes(t)}i(Xue,"isTypeSpecRuntimeLogLevel");function JB(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=oh(t.namespace);s.log=(...d)=>{oh.log(...d)};function o(d){if(d&&!Xue(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${iG.join(",")}`);n=d;let p=[];for(let m of e)a(m)&&p.push(m.namespace);oh.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(Xue(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${iG.join(", ")}.`));function a(d){return!!(n&&jue[d.level]<=jue[n])}i(a,"shouldEnable");function c(d,p){let m=Object.assign(d.extend(p),{level:p});if(Kue(d,m),a(m)){let f=oh.disable();oh.enable(f+","+m.namespace)}return e.add(m),m}i(c,"createLogger");function l(){return n}i(l,"contextGetLogLevel");function u(d){let p=s.extend(d);return Kue(s,p),{error:c(p,"error"),warning:c(p,"warning"),info:c(p,"info"),verbose:c(p,"verbose")}}return i(u,"contextCreateClientLogger"),{setLogLevel:o,getLogLevel:l,createClientLogger:u,logger:s}}i(JB,"createLoggerContext");var Zue=JB({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),wst=Zue.logger;function jC(t){return Zue.createClientLogger(t)}i(jC,"createClientLogger");function jB(t){return t.toLowerCase()}i(jB,"normalizeName");function*Sst(t){for(let e of t.values())yield[e.name,e.value]}i(Sst,"headerIterator");var aG=class{static{i(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(jB(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(jB(e))?.value}has(e){return this._headersMap.has(jB(e))}delete(e){this._headersMap.delete(jB(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of this._headersMap)r[n]=s.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return Sst(this._headersMap)}};function mo(t){return new aG(t)}i(mo,"createHttpHeaders");function cm(){return crypto.randomUUID()}i(cm,"randomUUID");var cG=class{static{i(this,"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??mo(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||cm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function KB(t){return new cG(t)}i(KB,"createPipelineRequest");var ede=new Set(["Deserialize","Serialize","Retry","Sign"]),lG=class t{static{i(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!ede.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!ede.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((o,a)=>c=>a.sendRequest(c,o),o=>e.sendRequest(o))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(A){return{name:A,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}i(n,"createPhase");let s=n("Serialize"),o=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[s,o,a,c,l];function d(A){return A==="Retry"?c:A==="Serialize"?s:A==="Deserialize"?a:A==="Sign"?l:o}i(d,"getPhase");for(let A of this._policies){let h=A.policy,E=A.options,y=h.name;if(r.has(y))throw new Error("Duplicate policy names not allowed in pipeline");let I={policy:h,dependsOn:new Set,dependants:new Set};E.afterPhase&&(I.afterPhase=d(E.afterPhase),I.afterPhase.hasAfterPolicies=!0),r.set(y,I),d(E.phase).policies.add(I)}for(let A of this._policies){let{policy:h,options:E}=A,y=h.name,I=r.get(y);if(!I)throw new Error(`Missing node for policy ${y}`);if(E.afterPolicies)for(let x of E.afterPolicies){let b=r.get(x);b&&(I.dependsOn.add(b),b.dependants.add(I))}if(E.beforePolicies)for(let x of E.beforePolicies){let b=r.get(x);b&&(b.dependsOn.add(I),I.dependants.add(b))}}function p(A){A.hasRun=!0;for(let h of A.policies)if(!(h.afterPhase&&(!h.afterPhase.hasRun||h.afterPhase.policies.size))&&h.dependsOn.size===0){e.push(h.policy);for(let E of h.dependants)E.dependsOn.delete(h);r.delete(h.policy.name),A.policies.delete(h)}}i(p,"walkPhase");function m(){for(let A of u){if(p(A),A.policies.size>0&&A!==o){o.hasRun||p(o);return}A.hasAfterPolicies&&p(o)}}i(m,"walkPhases");let f=0;for(;r.size>0;){f++;let A=e.length;if(m(),e.length<=A&&f>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function XB(){return lG.create()}i(XB,"createEmptyPipeline");function ih(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(ih,"isObject");function lm(t){if(ih(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(lm,"isError");var tde=require("node:util"),rde=tde.inspect.custom;var uG="REDACTED",xst=["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"],bst=["api-version"],$i=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=xst.concat(e),r=bst.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,s)=>{if(s instanceof Error)return{...s,name:s.name,message:s.message};if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||ih(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,uG);return r.toString()}sanitizeHeaders(e){let r={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=e[n]:r[n]=uG;return r}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let r={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=e[n]:r[n]=uG;return r}};var Bst=new $i,as=class t extends Error{static{i(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,rde,{value:i(()=>`RestError: ${this.message} - ${Bst.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function ZB(t){return t instanceof as?!0:lm(t)&&t.name==="RestError"}i(ZB,"isRestError");function Ns(t,e){return Buffer.from(t,e)}i(Ns,"stringToUint8Array");var eR=R(require("node:http"),1),tR=R(require("node:https"),1),dG=R(require("node:zlib"),1),sde=require("node:stream");var Xo=jC("ts-http-runtime");var Rst={};function KC(t){return t&&typeof t.pipe=="function"}i(KC,"isReadableStream");function nde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(nde,"isStreamComplete");function ode(t){return t&&typeof t.byteLength=="number"}i(ode,"isArrayBuffer");var rR=class extends sde.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},pG=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ya("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new $i;Xo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Pst(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,h=new rR(A);h.on("error",E=>{Xo.error("Error in upload progress",E)}),KC(c)?c.pipe(h):h.end(c),c=h}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Nst(u),m={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),m;l=a?Tst(u,d):u;let f=e.onDownloadProgress;if(f){let A=new rR(f);A.on("error",h=>{Xo.error("Error in download progress",h)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await vst(l),m}finally{if(e.abortSignal&&n){let u=Promise.resolve();KC(c)&&(u=nde(c));let d=Promise.resolve();KC(l)&&(d=nde(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Xo.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?eR.default.request(c,l):tR.default.request(c,l);d.once("error",p=>{u(new as(p.message,{code:p.code??as.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new Ya("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&KC(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):ode(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Xo.error("Unrecognized body type",n),u(new as("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?eR.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new eR.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return tR.default.globalAgent;let s=e.tlsSettings??Rst,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Xo.info("No cached TLS Agent exist, creating a new Agent"),o=new tR.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Nst(t){let e=mo();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(Nst,"getResponseHeaders");function Tst(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=dG.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=dG.default.createInflate();return t.pipe(n),n}return t}i(Tst,"getDecodedResponseStream");function vst(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new as(`Error reading response as text: ${s.message}`,{code:as.PARSE_ERROR}))})})}i(vst,"streamToText");function Pst(t){return t?Buffer.isBuffer(t)?t.length:KC(t)?null:ode(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(Pst,"getBodyLength");function ide(){return new pG}i(ide,"createNodeHttpClient");function nR(){return ide()}i(nR,"createDefaultHttpClient");var mG="logPolicy";function sR(t={}){let e=t.logger??Xo.info,r=new $i({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:mG,async sendRequest(n,s){if(!e.enabled)return s(n);e(`Request: ${r.sanitize(n)}`);let o=await s(n);return e(`Response status code: ${o.status}`),e(`Headers: ${r.sanitize(o.headers)}`),o}}}i(sR,"logPolicy");var oR="redirectPolicy",ade=["GET","HEAD"];function iR(t={}){let{maxRetries:e=20}=t;return{name:oR,async sendRequest(r,n){let s=await n(r);return cde(n,s,e)}}}i(iR,"redirectPolicy");async function cde(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&ade.includes(s.method)||o===302&&ade.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new Ya(r?.abortErrorMsg?r?.abortErrorMsg:_st)),"rejectOnAbort"),l=i(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=i(()=>(o&&clearTimeout(o),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();o=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}i(dde,"delay");function pde(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(pde,"parseHeaderValueAsNumber");var fG="Retry-After",Qst=["retry-after-ms","x-ms-retry-after-ms",fG];function mde(t){if(t&&[429,503].includes(t.status))try{for(let s of Qst){let o=pde(t,s);if(o===0||o)return o*(s===fG?1e3:1)}let e=t.headers.get(fG);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(mde,"getRetryAfterInMs");function fde(t){return Number.isFinite(mde(t))}i(fde,"isThrottlingRetryResponse");function AG(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=mde(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(AG,"throttlingRetryStrategy");var Dst=1e3,kst=1e3*64;function uR(t={}){let e=t.retryDelayInMs??Dst,r=t.maxRetryDelayInMs??kst;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=Ost(o),c=a&&t.ignoreSystemErrors,l=Lst(s),u=l&&t.ignoreHttpStatusCodes;return s&&(fde(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:lR(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(uR,"exponentialRetryStrategy");function Lst(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(Lst,"isExponentialRetryResponse");function Ost(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(Ost,"isSystemError");var Mst=jC("ts-http-runtime retryPolicy"),Fst="retryPolicy";function dm(t,e={maxRetries:3}){let r=e.logger||Mst;return{name:Fst,async sendRequest(n,s){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),o=await s(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;o=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new Ya;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(o)return o;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:o,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:p,retryAfterInMs:m,redirectTo:f}=d;if(p)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,p),p;if(m||m===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${m}`),await dde(m,void 0,{abortSignal:n.abortSignal});continue e}if(f){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${f}`),n.url=f;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return r.info("None of the retry strategies could work with the received response. Returning it."),o}}}}i(dm,"retryPolicy");var hG="defaultRetryPolicy";function dR(t={}){return{name:hG,sendRequest:dm([AG(),uR(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(dR,"defaultRetryPolicy");var Ade=typeof window<"u"&&typeof window.document<"u",hde=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),gde=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",yde=typeof Bun<"u"&&typeof Bun.version<"u",pm=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var Ede=typeof navigator<"u"&&navigator?.product==="ReactNative";var gG="formDataPolicy";function Ust(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(Ust,"formDataToFormDataMap");function pR(){return{name:gG,async sendRequest(t,e){if(pm&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=Ust(t.body),t.body=void 0),t.formData){let r=t.headers.get("Content-Type");r&&r.indexOf("application/x-www-form-urlencoded")!==-1?t.body=qst(t.formData):await Gst(t.formData,t),t.formData=void 0}return e(t)}}}i(pR,"formDataPolicy");function qst(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.append(r,s.toString());else e.append(r,n.toString());return e.toString()}i(qst,"wwwFormUrlEncode");async function Gst(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[s,o]of Object.entries(t))for(let a of Array.isArray(o)?o:[o])if(typeof a=="string")n.push({headers:mo({"Content-Disposition":`form-data; name="${s}"`}),body:Ns(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${s}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=mo();l.set("Content-Disposition",`form-data; name="${s}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}i(Gst,"prepareFormData");var npe=R($de(),1),spe=R(Zde(),1);var jot="HTTPS_PROXY",Kot="HTTP_PROXY",Xot="ALL_PROXY",Zot="NO_PROXY",xG="proxyPolicy",epe=[],ope=!1,eit=new Map;function IR(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(IR,"getEnvironmentValue");function ipe(){if(!process)return;let t=IR(jot),e=IR(Xot),r=IR(Kot);return t||e||r}i(ipe,"loadEnvironmentProxyValue");function tit(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let o of e)o[0]==="."?(n.endsWith(o)||n.length===o.length-1&&n===o.slice(1))&&(s=!0):n===o&&(s=!0);return r?.set(n,s),s}i(tit,"isBypassed");function rit(){let t=IR(Zot);return ope=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(rit,"loadNoProxy");function bG(t){if(!t&&(t=ipe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}i(bG,"getDefaultProxySettings");function nit(){let t=ipe();return t?new URL(t):void 0}i(nit,"getDefaultProxySettingsInternal");function tpe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}i(tpe,"getUrlFromProxySettings");function rpe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Xo.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let o=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new spe.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new npe.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(rpe,"setProxyAgentOnRequest");function wR(t,e){ope||epe.push(...rit());let r=t?tpe(t):nit(),n={};return{name:xG,async sendRequest(s,o){return!s.proxySettings&&r&&!tit(s.url,e?.customNoProxyList??epe,e?.customNoProxyList?void 0:eit)?rpe(s,n,r):s.proxySettings&&rpe(s,n,tpe(s.proxySettings)),o(s)}}}i(wR,"proxyPolicy");var BG="agentPolicy";function SR(t){return{name:BG,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(SR,"agentPolicy");var RG="tlsPolicy";function xR(t){return{name:RG,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(xR,"tlsPolicy");function bR(t){return typeof t.stream=="function"}i(bR,"isBlob");var BR=require("stream");async function*ape(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(ape,"streamAsyncIterator");function sit(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=ape.bind(t)),t.values||(t.values=ape.bind(t))}i(sit,"makeAsyncIterable");function cpe(t){return t instanceof ReadableStream?(sit(t),BR.Readable.fromWeb(t)):t}i(cpe,"ensureNodeStream");function oit(t){return t instanceof Uint8Array?BR.Readable.from(Buffer.from(t)):bR(t)?cpe(t.stream()):cpe(t)}i(oit,"toStream");async function lpe(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(oit);return BR.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(lpe,"concat");function iit(){return`----AzSDKFormBoundary${cm()}`}i(iit,"generateBoundary");function ait(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r -`;return e}i(ait,"encodeHeaders");function cit(t){return t instanceof Uint8Array?t.byteLength:bR(t)?t.size===-1?void 0:t.size:void 0}i(cit,"getLength");function lit(t){let e=0;for(let r of t){let n=cit(r);if(n===void 0)return;e+=n}return e}i(lit,"getTotalLength");async function uit(t,e,r){let n=[Ns(`--${r}`,"utf-8"),...e.flatMap(o=>[Ns(`\r -`,"utf-8"),Ns(ait(o.headers),"utf-8"),Ns(`\r -`,"utf-8"),o.body,Ns(`\r ---${r}`,"utf-8")]),Ns(`--\r +`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new $C(o));return n.searchPaths.push(...Rq(n.patterns)),n})}static stat(e,r,n){return Lq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield nh.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Jo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield nh.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield nh.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){Jo(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var crt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Vce(t,e){return crt(this,void 0,void 0,function*(){return yield kB.create(t,e)})}i(Vce,"create");var XB=R(require("crypto"),1),ah=R(require("fs"),1),df=R(require("path"),1),Fue=R(Oue(),1),Uue=R(require("util"),1);var jC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(jC||(jC={}));var is;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(is||(is={}));var po;(function(t){t.GNU="gnu",t.BSD="bsd"})(po||(po={}));var JB=2,jB=5e3,nG=5e3,sG=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,KC="cache.tar",oG="manifest.txt",UKt=10*Math.pow(1024,3),KB="cache read denied:";var ih=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},got=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},yot="1.0";function pf(){return ih(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=df.join(n,"actions","temp")}let r=df.join(e,XB.randomUUID());return yield nf(r),r})}i(pf,"createTempDirectory");function Va(t){return ah.statSync(t).size}i(Va,"getArchiveFileSizeInBytes");function iG(t){return ih(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield Vce(t.join(` +`),{implicitDescendants:!1});try{for(var u=!0,d=got(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=df.relative(c,s).replace(new RegExp(`\\${df.sep}`,"g"),"/");T(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(f){r={error:f}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(iG,"resolvePaths");function XC(t){return ih(this,void 0,void 0,function*(){return Uue.promisify(ah.unlink)(t)})}i(XC,"unlinkFile");function que(t){return ih(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield zu(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}i(que,"getVersion");function ZC(){return ih(this,void 0,void 0,function*(){let t=yield que("zstd",["--quiet"]),e=Fue.clean(t);return T(`zstd version: ${e}`),t===""?is.Gzip:is.ZstdWithoutLong})}i(ZC,"getCompressionMethod");function ed(t){return t===is.Gzip?jC.Gzip:jC.Zstd}i(ed,"getCacheFileName");function Gue(){return ih(this,void 0,void 0,function*(){return ah.existsSync(sG)?sG:(yield que("tar")).toLowerCase().includes("gnu tar")?Rs("tar"):""})}i(Gue,"getGnuTarPathOnWindows");function aG(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(aG,"assertDefined");function ch(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(yot),XB.createHash("sha256").update(n.join("|")).digest("hex")}i(ch,"getCacheVersion");function $ue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i($ue,"getRuntimeToken");var tI=R(require("http"),1),uG=R(require("https"),1);function cG(t){let e=t.protocol==="https:";if(Eot(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new eR(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new eR(`http://${r}`)}else return}i(cG,"getProxyUrl");function Eot(t){if(!t.hostname)return!1;let e=t.hostname;if(Cot(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(Eot,"checkBypass");function Cot(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Cot,"isLoopbackAddress");var eR=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var td=R(eA(),1),Hue=R(ef(),1);var Ir=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},mt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(mt||(mt={}));var as;(function(t){t.Accept="accept",t.ContentType="content-type"})(as||(as={}));var Ml;(function(t){t.ApplicationJson="application/json"})(Ml||(Ml={}));var wot=[mt.MovedPermanently,mt.ResourceMoved,mt.SeeOther,mt.TemporaryRedirect,mt.PermanentRedirect],Sot=[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout],xot=["OPTIONS","GET","DELETE","HEAD"],bot=10,Bot=5,Wa=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},lG=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Ir(this,void 0,void 0,function*(){return new Promise(e=>Ir(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Ir(this,void 0,void 0,function*(){return new Promise(e=>Ir(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var fo=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Ir(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Ir(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Ir(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Ir(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Ir(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Ir(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Ir(this,arguments,void 0,function*(r,n={}){n[as.Accept]=this._getExistingOrDefaultHeader(n,as.Accept,Ml.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[as.Accept]=this._getExistingOrDefaultHeader(o,as.Accept,Ml.ApplicationJson),o[as.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ml.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[as.Accept]=this._getExistingOrDefaultHeader(o,as.Accept,Ml.ApplicationJson),o[as.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ml.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Ir(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[as.Accept]=this._getExistingOrDefaultHeader(o,as.Accept,Ml.ApplicationJson),o[as.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Ml.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Ir(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&xot.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===mt.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&wot.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.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.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!Sot.includes(u.message.statusCode))return u;l+=1,l{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new lG(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=cG(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?uG:tI;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},eI(this.requestOptions.headers),eI(e||{})):eI(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=eI(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=eI(this.requestOptions.headers)[as.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[as.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=cG(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||tI.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?td.httpsOverHttps:td.httpsOverHttp:l=u?td.httpOverHttps:td.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new uG.Agent(c):new tI.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new Hue.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Ir(this,void 0,void 0,function*(){e=Math.min(bot,e);let r=Bot*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Ir(this,void 0,void 0,function*(){return new Promise((n,s)=>Ir(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===mt.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new Wa(d,o);p.result=a.result,s(p)}else n(a)}))})}},eI=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Rot=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};var lh=class{static{i(this,"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!1}handleAuthentication(){return Rot(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Fh=R(require("fs"),1),Ihe=require("url");var Ya=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Vue=require("node:os"),Wue=R(require("node:util"),1),Yue=R(require("node:process"),1);function Jue(t,...e){Yue.default.stderr.write(`${Wue.default.format(t,...e)}${Vue.EOL}`)}i(Jue,"log");var jue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Xue,dG=[],pG=[],tR=[];jue&&fG(jue);var Zue=Object.assign(t=>ede(t),{enable:fG,enabled:mG,disable:Not,log:Jue});function fG(t){Xue=t,dG=[],pG=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?pG.push(r.substring(1)):dG.push(r);for(let r of tR)r.enabled=mG(r.namespace)}i(fG,"enable");function mG(t){if(t.endsWith("*"))return!0;for(let e of pG)if(Kue(t,e))return!1;for(let e of dG)if(Kue(t,e))return!0;return!1}i(mG,"enabled");function Kue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let f=[],m="";for(let A of e)A==="*"&&m==="*"||(m=A,f.push(A));r=f.join("")}let n=0,s=0,o=r.length,a=t.length,c=-1,l=-1;for(;n=0){if(s=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else return!1;let u=n===t.length,d=s===r.length,p=s===r.length-1&&r[s]==="*";return u&&(d||p)}i(Kue,"namespaceMatches");function Not(){let t=Xue||"";return fG(""),t}i(Not,"disable");function ede(t){let e=Object.assign(r,{enabled:mG(t),destroy:Tot,log:Zue.log,namespace:t,extend:Pot});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),tR.push(e),e}i(ede,"createDebugger");function Tot(){let t=tR.indexOf(this);return t>=0?(tR.splice(t,1),!0):!1}i(Tot,"destroy");function Pot(t){let e=ede(`${this.namespace}:${t}`);return e.log=this.log,e}i(Pot,"extend");var uh=Zue;var AG=["verbose","info","warning","error"],tde={verbose:400,info:300,warning:200,error:100};function rde(t,e){e.log=(...r)=>{t.log(...r)}}i(rde,"patchLogMethod");function nde(t){return AG.includes(t)}i(nde,"isTypeSpecRuntimeLogLevel");function rR(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=uh(t.namespace);s.log=(...d)=>{uh.log(...d)};function o(d){if(d&&!nde(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${AG.join(",")}`);n=d;let p=[];for(let f of e)a(f)&&p.push(f.namespace);uh.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(nde(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${AG.join(", ")}.`));function a(d){return!!(n&&tde[d.level]<=tde[n])}i(a,"shouldEnable");function c(d,p){let f=Object.assign(d.extend(p),{level:p});if(rde(d,f),a(f)){let m=uh.disable();uh.enable(m+","+f.namespace)}return e.add(f),f}i(c,"createLogger");function l(){return n}i(l,"contextGetLogLevel");function u(d){let p=s.extend(d);return rde(s,p),{error:c(p,"error"),warning:c(p,"warning"),info:c(p,"info"),verbose:c(p,"verbose")}}return i(u,"contextCreateClientLogger"),{setLogLevel:o,getLogLevel:l,createClientLogger:u,logger:s}}i(rR,"createLoggerContext");var sde=rR({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),vot=sde.logger;function rI(t){return sde.createClientLogger(t)}i(rI,"createClientLogger");function nR(t){return t.toLowerCase()}i(nR,"normalizeName");function*_ot(t){for(let e of t.values())yield[e.name,e.value]}i(_ot,"headerIterator");var hG=class{static{i(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(nR(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(nR(e))?.value}has(e){return this._headersMap.has(nR(e))}delete(e){this._headersMap.delete(nR(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of this._headersMap)r[n]=s.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return _ot(this._headersMap)}};function mo(t){return new hG(t)}i(mo,"createHttpHeaders");function ff(){return crypto.randomUUID()}i(ff,"randomUUID");var gG=class{static{i(this,"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??mo(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||ff(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function sR(t){return new gG(t)}i(sR,"createPipelineRequest");var ode=new Set(["Deserialize","Serialize","Retry","Sign"]),yG=class t{static{i(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!ode.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!ode.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((o,a)=>c=>a.sendRequest(c,o),o=>e.sendRequest(o))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(A){return{name:A,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}i(n,"createPhase");let s=n("Serialize"),o=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[s,o,a,c,l];function d(A){return A==="Retry"?c:A==="Serialize"?s:A==="Deserialize"?a:A==="Sign"?l:o}i(d,"getPhase");for(let A of this._policies){let h=A.policy,E=A.options,y=h.name;if(r.has(y))throw new Error("Duplicate policy names not allowed in pipeline");let I={policy:h,dependsOn:new Set,dependants:new Set};E.afterPhase&&(I.afterPhase=d(E.afterPhase),I.afterPhase.hasAfterPolicies=!0),r.set(y,I),d(E.phase).policies.add(I)}for(let A of this._policies){let{policy:h,options:E}=A,y=h.name,I=r.get(y);if(!I)throw new Error(`Missing node for policy ${y}`);if(E.afterPolicies)for(let x of E.afterPolicies){let b=r.get(x);b&&(I.dependsOn.add(b),b.dependants.add(I))}if(E.beforePolicies)for(let x of E.beforePolicies){let b=r.get(x);b&&(b.dependsOn.add(I),I.dependants.add(b))}}function p(A){A.hasRun=!0;for(let h of A.policies)if(!(h.afterPhase&&(!h.afterPhase.hasRun||h.afterPhase.policies.size))&&h.dependsOn.size===0){e.push(h.policy);for(let E of h.dependants)E.dependsOn.delete(h);r.delete(h.policy.name),A.policies.delete(h)}}i(p,"walkPhase");function f(){for(let A of u){if(p(A),A.policies.size>0&&A!==o){o.hasRun||p(o);return}A.hasAfterPolicies&&p(o)}}i(f,"walkPhases");let m=0;for(;r.size>0;){m++;let A=e.length;if(f(),e.length<=A&&m>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function oR(){return yG.create()}i(oR,"createEmptyPipeline");function dh(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(dh,"isObject");function mf(t){if(dh(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(mf,"isError");var ide=require("node:util"),ade=ide.inspect.custom;var EG="REDACTED",Qot=["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"],Dot=["api-version"],Vi=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=Qot.concat(e),r=Dot.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,s)=>{if(s instanceof Error)return{...s,name:s.name,message:s.message};if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||dh(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,EG);return r.toString()}sanitizeHeaders(e){let r={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=e[n]:r[n]=EG;return r}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let r={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=e[n]:r[n]=EG;return r}};var kot=new Vi,cs=class t extends Error{static{i(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,ade,{value:i(()=>`RestError: ${this.message} + ${kot.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function iR(t){return t instanceof cs?!0:mf(t)&&t.name==="RestError"}i(iR,"isRestError");function Ps(t,e){return Buffer.from(t,e)}i(Ps,"stringToUint8Array");var aR=R(require("node:http"),1),cR=R(require("node:https"),1),CG=R(require("node:zlib"),1),lde=require("node:stream");var Zo=rI("ts-http-runtime");var Lot={};function nI(t){return t&&typeof t.pipe=="function"}i(nI,"isReadableStream");function cde(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(cde,"isStreamComplete");function ude(t){return t&&typeof t.byteLength=="number"}i(ude,"isArrayBuffer");var lR=class extends lde.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},IG=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ya("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Vi;Zo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Uot(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,h=new lR(A);h.on("error",E=>{Zo.error("Error in upload progress",E)}),nI(c)?c.pipe(h):h.end(c),c=h}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Oot(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?Mot(u,d):u;let m=e.onDownloadProgress;if(m){let A=new lR(m);A.on("error",h=>{Zo.error("Error in download progress",h)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await Fot(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();nI(c)&&(u=cde(c));let d=Promise.resolve();nI(l)&&(d=cde(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Zo.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?aR.default.request(c,l):cR.default.request(c,l);d.once("error",p=>{u(new cs(p.message,{code:p.code??cs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new Ya("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&nI(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):ude(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Zo.error("Unrecognized body type",n),u(new cs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?aR.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new aR.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return cR.default.globalAgent;let s=e.tlsSettings??Lot,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Zo.info("No cached TLS Agent exist, creating a new Agent"),o=new cR.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Oot(t){let e=mo();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(Oot,"getResponseHeaders");function Mot(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=CG.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=CG.default.createInflate();return t.pipe(n),n}return t}i(Mot,"getDecodedResponseStream");function Fot(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new cs(`Error reading response as text: ${s.message}`,{code:cs.PARSE_ERROR}))})})}i(Fot,"streamToText");function Uot(t){return t?Buffer.isBuffer(t)?t.length:nI(t)?null:ude(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(Uot,"getBodyLength");function dde(){return new IG}i(dde,"createNodeHttpClient");function uR(){return dde()}i(uR,"createDefaultHttpClient");var wG="logPolicy";function dR(t={}){let e=t.logger??Zo.info,r=new Vi({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:wG,async sendRequest(n,s){if(!e.enabled)return s(n);e(`Request: ${r.sanitize(n)}`);let o=await s(n);return e(`Response status code: ${o.status}`),e(`Headers: ${r.sanitize(o.headers)}`),o}}}i(dR,"logPolicy");var pR="redirectPolicy",pde=["GET","HEAD"];function fR(t={}){let{maxRetries:e=20}=t;return{name:pR,async sendRequest(r,n){let s=await n(r);return fde(n,s,e)}}}i(fR,"redirectPolicy");async function fde(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&pde.includes(s.method)||o===302&&pde.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new Ya(r?.abortErrorMsg?r?.abortErrorMsg:qot)),"rejectOnAbort"),l=i(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=i(()=>(o&&clearTimeout(o),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();o=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}i(hde,"delay");function gde(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(gde,"parseHeaderValueAsNumber");var SG="Retry-After",Got=["retry-after-ms","x-ms-retry-after-ms",SG];function yde(t){if(t&&[429,503].includes(t.status))try{for(let s of Got){let o=gde(t,s);if(o===0||o)return o*(s===SG?1e3:1)}let e=t.headers.get(SG);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(yde,"getRetryAfterInMs");function Ede(t){return Number.isFinite(yde(t))}i(Ede,"isThrottlingRetryResponse");function xG(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=yde(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(xG,"throttlingRetryStrategy");var $ot=1e3,Hot=1e3*64;function gR(t={}){let e=t.retryDelayInMs??$ot,r=t.maxRetryDelayInMs??Hot;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=Vot(o),c=a&&t.ignoreSystemErrors,l=zot(s),u=l&&t.ignoreHttpStatusCodes;return s&&(Ede(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:hR(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(gR,"exponentialRetryStrategy");function zot(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(zot,"isExponentialRetryResponse");function Vot(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(Vot,"isSystemError");var Wot=rI("ts-http-runtime retryPolicy"),Yot="retryPolicy";function hf(t,e={maxRetries:3}){let r=e.logger||Wot;return{name:Yot,async sendRequest(n,s){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),o=await s(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;o=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new Ya;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(o)return o;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:o,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:p,retryAfterInMs:f,redirectTo:m}=d;if(p)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,p),p;if(f||f===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${f}`),await hde(f,void 0,{abortSignal:n.abortSignal});continue e}if(m){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${m}`),n.url=m;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return r.info("None of the retry strategies could work with the received response. Returning it."),o}}}}i(hf,"retryPolicy");var bG="defaultRetryPolicy";function yR(t={}){return{name:bG,sendRequest:hf([xG(),gR(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(yR,"defaultRetryPolicy");var Cde=typeof window<"u"&&typeof window.document<"u",Ide=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),wde=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Sde=typeof Bun<"u"&&typeof Bun.version<"u",gf=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var xde=typeof navigator<"u"&&navigator?.product==="ReactNative";var BG="formDataPolicy";function Jot(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(Jot,"formDataToFormDataMap");function ER(){return{name:BG,async sendRequest(t,e){if(gf&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=Jot(t.body),t.body=void 0),t.formData){let r=t.headers.get("Content-Type");r&&r.indexOf("application/x-www-form-urlencoded")!==-1?t.body=jot(t.formData):await Kot(t.formData,t),t.formData=void 0}return e(t)}}}i(ER,"formDataPolicy");function jot(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.append(r,s.toString());else e.append(r,n.toString());return e.toString()}i(jot,"wwwFormUrlEncode");async function Kot(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[s,o]of Object.entries(t))for(let a of Array.isArray(o)?o:[o])if(typeof a=="string")n.push({headers:mo({"Content-Disposition":`form-data; name="${s}"`}),body:Ps(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${s}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=mo();l.set("Content-Disposition",`form-data; name="${s}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}i(Kot,"prepareFormData");var cpe=R(Jde(),1),lpe=R(spe(),1);var oat="HTTPS_PROXY",iat="HTTP_PROXY",aat="ALL_PROXY",cat="NO_PROXY",QG="proxyPolicy",ope=[],upe=!1,lat=new Map;function NR(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(NR,"getEnvironmentValue");function dpe(){if(!process)return;let t=NR(oat),e=NR(aat),r=NR(iat);return t||e||r}i(dpe,"loadEnvironmentProxyValue");function uat(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let o of e)o[0]==="."?(n.endsWith(o)||n.length===o.length-1&&n===o.slice(1))&&(s=!0):n===o&&(s=!0);return r?.set(n,s),s}i(uat,"isBypassed");function dat(){let t=NR(cat);return upe=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(dat,"loadNoProxy");function DG(t){if(!t&&(t=dpe(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}i(DG,"getDefaultProxySettings");function pat(){let t=dpe();return t?new URL(t):void 0}i(pat,"getDefaultProxySettingsInternal");function ipe(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}i(ipe,"getUrlFromProxySettings");function ape(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Zo.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let o=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new lpe.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new cpe.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(ape,"setProxyAgentOnRequest");function TR(t,e){upe||ope.push(...dat());let r=t?ipe(t):pat(),n={};return{name:QG,async sendRequest(s,o){return!s.proxySettings&&r&&!uat(s.url,e?.customNoProxyList??ope,e?.customNoProxyList?void 0:lat)?ape(s,n,r):s.proxySettings&&ape(s,n,ipe(s.proxySettings)),o(s)}}}i(TR,"proxyPolicy");var kG="agentPolicy";function PR(t){return{name:kG,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(PR,"agentPolicy");var LG="tlsPolicy";function vR(t){return{name:LG,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(vR,"tlsPolicy");function _R(t){return typeof t.stream=="function"}i(_R,"isBlob");var QR=require("stream");async function*ppe(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(ppe,"streamAsyncIterator");function fat(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=ppe.bind(t)),t.values||(t.values=ppe.bind(t))}i(fat,"makeAsyncIterable");function fpe(t){return t instanceof ReadableStream?(fat(t),QR.Readable.fromWeb(t)):t}i(fpe,"ensureNodeStream");function mat(t){return t instanceof Uint8Array?QR.Readable.from(Buffer.from(t)):_R(t)?fpe(t.stream()):fpe(t)}i(mat,"toStream");async function mpe(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(mat);return QR.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(mpe,"concat");function Aat(){return`----AzSDKFormBoundary${ff()}`}i(Aat,"generateBoundary");function hat(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r +`;return e}i(hat,"encodeHeaders");function gat(t){return t instanceof Uint8Array?t.byteLength:_R(t)?t.size===-1?void 0:t.size:void 0}i(gat,"getLength");function yat(t){let e=0;for(let r of t){let n=gat(r);if(n===void 0)return;e+=n}return e}i(yat,"getTotalLength");async function Eat(t,e,r){let n=[Ps(`--${r}`,"utf-8"),...e.flatMap(o=>[Ps(`\r +`,"utf-8"),Ps(hat(o.headers),"utf-8"),Ps(`\r +`,"utf-8"),o.body,Ps(`\r +--${r}`,"utf-8")]),Ps(`--\r \r -`,"utf-8")],s=lit(n);s&&t.headers.set("Content-Length",s),t.body=await lpe(n)}i(uit,"buildRequestBody");var eI="multipartPolicy",dit=70,pit=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function mit(t){if(t.length>dit)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!pit.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(mit,"assertValidBoundary");function RR(){return{name:eI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?mit(r):r=iit(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await uit(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(RR,"multipartPolicy");function NR(){return XB()}i(NR,"createEmptyPipeline");var upe=JB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ter=upe.logger;function Ka(t){return upe.createClientLogger(t)}i(Ka,"createClientLogger");var Xa=Ka("core-rest-pipeline");function vG(t={}){return sR({logger:Xa.info,...t})}i(vG,"logPolicy");var PG=oR;function _G(t={}){return iR(t)}i(_G,"redirectPolicy");var TR=R(require("node:os"),1),vR=R(require("node:process"),1);function dpe(){return"User-Agent"}i(dpe,"getHeaderName");async function ppe(t){if(vR.default&&vR.default.versions){let e=`${TR.default.type()} ${TR.default.release()}; ${TR.default.arch()}`,r=vR.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(ppe,"setPlatformSpecificData");var PR="1.22.2";function Iit(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(Iit,"getUserAgentString");function mpe(){return dpe()}i(mpe,"getUserAgentHeaderName");async function _R(t){let e=new Map;e.set("core-rest-pipeline",PR),await ppe(e);let r=Iit(e);return t?`${t} ${r}`:r}i(_R,"getUserAgentValue");var fpe=mpe(),Ape="userAgentPolicy";function QG(t={}){let e=_R(t.userAgentPrefix);return{name:Ape,async sendRequest(r,n){return r.headers.has(fpe)||r.headers.set(fpe,await e),n(r)}}}i(QG,"userAgentPolicy");var go=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function DG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new go(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(DG,"createAbortablePromise");var Bit="The delay was aborted.";function tI(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return DG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Bit})}i(tI,"delay");function td(t){if(lm(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(td,"getErrorMessage");function hpe(t){return lm(t)}i(hpe,"isError");function ph(){return cm()}i(ph,"randomUUID");var ut=pm;var gpe=Symbol("rawContent");function LG(t){return typeof t[gpe]=="function"}i(LG,"hasRawContent");function ype(t){return LG(t)?t[gpe]():t}i(ype,"getRawContent");var QR=eI;function OG(){let t=RR();return{name:QR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)LG(n.body)&&(n.body=ype(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(OG,"multipartPolicy");var MG=aR;function FG(){return cR()}i(FG,"decompressResponsePolicy");function UG(t={}){return dR(t)}i(UG,"defaultRetryPolicy");function qG(){return pR()}i(qG,"formDataPolicy");function rd(t){return bG(t)}i(rd,"getDefaultProxySettings");function GG(t,e){return wR(t,e)}i(GG,"proxyPolicy");var Epe="setClientRequestIdPolicy";function HG(t="x-ms-client-request-id"){return{name:Epe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(HG,"setClientRequestIdPolicy");function $G(t){return SR(t)}i($G,"agentPolicy");function zG(t){return xR(t)}i(zG,"tlsPolicy");var mh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Cpe(t={}){let e=new VG(t.parentContext);return t.span&&(e=e.setValue(mh.span,t.span)),t.namespace&&(e=e.setValue(mh.namespace,t.namespace)),e}i(Cpe,"createTracingContext");var VG=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var wpe=R(Ipe(),1),kR=wpe.state;function Rit(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(Rit,"createDefaultTracingSpan");function Nit(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:Rit(),tracingContext:Cpe({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(Nit,"createDefaultInstrumenter");function rI(){return kR.instrumenterImplementation||(kR.instrumenterImplementation=Nit()),kR.instrumenterImplementation}i(rI,"getInstrumenter");function nI(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let m=rI().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),f=m.tracingContext,A=m.span;f.getValue(mh.namespace)||(f=f.setValue(mh.namespace,e)),A.setAttribute("az.namespace",f.getValue(mh.namespace));let h=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:f}});return{span:A,updatedOptions:h}}i(s,"startSpan");async function o(u,d,p,m){let{span:f,updatedOptions:A}=s(u,d,m);try{let h=await a(A.tracingOptions.tracingContext,()=>Promise.resolve(p(A,f)));return f.setStatus({status:"success"}),h}catch(h){throw f.setStatus({status:"error",error:h}),h}finally{f.end()}}i(o,"withSpan");function a(u,d,...p){return rI().withContext(u,d,...p)}i(a,"withContext");function c(u){return rI().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return rI().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(nI,"createTracingClient");var Ol=as;function Am(t){return ZB(t)}i(Am,"isRestError");var Spe="tracingPolicy";function WG(t={}){let e=_R(t.userAgentPrefix),r=new $i({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=Tit();return{name:Spe,async sendRequest(s,o){if(!n)return o(s);let a=await e,c={"http.url":r.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=vit(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return _it(l,d),d}catch(d){throw Pit(l,d),d}}}}i(WG,"tracingPolicy");function Tit(){try{return nI({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:PR})}catch(t){Xa.warning(`Error when creating the TracingClient: ${td(t)}`);return}}i(Tit,"tryCreateTracingClient");function vit(t,e,r){try{let{span:n,updatedOptions:s}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let o=t.createRequestHeaders(s.tracingOptions.tracingContext);for(let[a,c]of Object.entries(o))e.headers.set(a,c);return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(n){Xa.warning(`Skipping creating a tracing span due to an error: ${td(n)}`);return}}i(vit,"tryCreateSpan");function Pit(t,e){try{t.setStatus({status:"error",error:hpe(e)?e:void 0}),Am(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Xa.warning(`Skipping tracing span processing due to an error: ${td(r)}`)}}i(Pit,"tryProcessError");function _it(t,e){try{t.setAttribute("http.status_code",e.status);let r=e.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),e.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){Xa.warning(`Skipping tracing span processing due to an error: ${td(r)}`)}}i(_it,"tryProcessResponse");function LR(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",s),r=!1)}i(n,"cleanup");function s(){e.abort(t.reason),n()}return i(s,"listener"),t.addEventListener("abort",s),{abortSignal:e.signal,cleanup:n}}i(LR,"wrapAbortSignalLike");var Qit="wrapAbortSignalLikePolicy";function xpe(){return{name:Qit,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=LR(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(xpe,"wrapAbortSignalLikePolicy");function YG(t){let e=NR();return ut&&(t.agent&&e.addPolicy($G(t.agent)),t.tlsOptions&&e.addPolicy(zG(t.tlsOptions)),e.addPolicy(GG(t.proxyOptions)),e.addPolicy(FG())),e.addPolicy(xpe()),e.addPolicy(qG(),{beforePolicies:[QR]}),e.addPolicy(QG(t.userAgentOptions)),e.addPolicy(HG(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(OG(),{afterPhase:"Deserialize"}),e.addPolicy(UG(t.retryOptions),{phase:"Retry"}),e.addPolicy(WG({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),ut&&e.addPolicy(_G(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(vG(t.loggingOptions),{afterPhase:"Sign"}),e}i(YG,"createPipelineFromOptions");function sI(){let t=nR();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?LR(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(sI,"createDefaultHttpClient");function Ml(t){return mo(t)}i(Ml,"createHttpHeaders");function oI(t){return KB(t)}i(oI,"createPipelineRequest");var Pnr=Ka("core-rest-pipeline retryPolicy");var Dit={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function kit(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),o.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(p=>(r=null,n=p,s=u.tenantId,n)).catch(p=>{throw r=null,n=null,s=void 0,p})),r}return i(c,"refresh"),async(l,u)=>{let d=!!u.claims,p=s!==u.tenantId;return d&&(n=null),p||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}i(JG,"createTokenCycler");var Npe="bearerTokenAuthenticationPolicy";async function OR(t,e){try{return[await e(t),void 0]}catch(r){if(Am(r)&&r.response)return[r.response,r];throw r}}i(OR,"trySendRequest");async function Lit(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(e,s);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}i(Lit,"defaultAuthorizeRequest");function bpe(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(bpe,"isChallengeResponse");async function Bpe(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}i(Bpe,"authorizeRequestOnCaeChallenge");function fh(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||Xa,o={authorizeRequest:n?.authorizeRequest?.bind(n)??Lit,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?JG(e):()=>Promise.resolve(null);return{name:Npe,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await o.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:s});let u,d,p;if([u,d]=await OR(c,l),bpe(u)){let m=Rpe(u.headers.get("WWW-Authenticate"));if(m){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await Bpe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await OR(c,l))}else if(o.authorizeRequestOnChallenge&&(p=await o.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:s}),p&&([u,d]=await OR(c,l)),bpe(u)&&(m=Rpe(u.headers.get("WWW-Authenticate")),m))){let f;try{f=atob(m)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${m}`),u}p=await Bpe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},f),p&&([u,d]=await OR(c,l))}}if(d)throw d;return u}}}i(fh,"bearerTokenAuthenticationPolicy");function Oit(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],s;for(;(s=e.exec(t))!==null;){let o=s[1],a=s[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:o,params:c})}return n}i(Oit,"parseChallenges");function Rpe(t){return t?Oit(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(Rpe,"getCaeChallengeClaims");function yo(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(yo,"isTokenCredential");var jG="DisableKeepAlivePolicy";function Tpe(){return{name:jG,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(Tpe,"createDisableKeepAlivePolicy");function vpe(t){return t.getOrderedPolicies().some(e=>e.name===jG)}i(vpe,"pipelineContainsDisableKeepAlivePolicy");function KG(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(KG,"encodeByteArray");function XG(t){return Buffer.from(t,"base64")}i(XG,"decodeString");function Fit(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}i(Fit,"isPrimitiveBody");var Uit=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ppe(t){return Uit.test(t)}i(Ppe,"isDuration");var qit=/^[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 _pe(t){return qit.test(t)}i(_pe,"isValidUuid");function Git(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}i(Git,"handleNullableResponseAndWrappableBody");function ZG(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,s=!!n?.nullable,o=n?.type.name;if(o==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=o==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(o==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return s&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Git({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:Fit(t.parsedBody,o)})}i(ZG,"flattenResponse");var eH=class{static{i(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let s=i((o,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${o}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:o,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:p,MinLength:m,MultipleOf:f,Pattern:A,UniqueItems:h}=e.constraints;if(o!==void 0&&r>=o&&s("ExclusiveMaximum",o),a!==void 0&&r<=a&&s("ExclusiveMinimum",a),c!==void 0&&r>c&&s("InclusiveMaximum",c),l!==void 0&&ru&&s("MaxItems",u),d!==void 0&&r.length>d&&s("MaxLength",d),p!==void 0&&r.lengthI.indexOf(E)!==y)&&s("UniqueItems",h)}}serialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=Yit(c,n,r):c.match(/^Enum$/i)!==null?a=Jit(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=Xit(c,r,n):c.match(/^ByteArray$/i)!==null?a=jit(n,r):c.match(/^Base64Url$/i)!==null?a=Kit(n,r):c.match(/^Sequence$/i)!==null?a=Zit(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=eat(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=rat(this,e,r,n,!!this.isXML,o)),a}deserialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"},ignoreUnknownProperties:s.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=sat(this,e,r,n,o);else{if(this.isXML){let l=o.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=Wit(r):c.match(/^ByteArray$/i)!==null?a=XG(r):c.match(/^Base64Url$/i)!==null?a=zit(r):c.match(/^Sequence$/i)!==null?a=iat(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=oat(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Eo(t={},e=!1){return new eH(t,e)}i(Eo,"createSerializer");function Hit(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(Hit,"trimEnd");function $it(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=KG(t);return Hit(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i($it,"bufferToBase64Url");function zit(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),XG(t)}}i(zit,"base64UrlToByteArray");function tH(t){let e=[],r="";if(t){let n=t.split(".");for(let s of n)s.charAt(s.length-1)==="\\"?r+=s.substr(0,s.length-1)+".":(r+=s,e.push(r),r="")}return e}i(tH,"splitSerializeName");function Vit(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(Vit,"dateToUnixTime");function Wit(t){if(t)return new Date(t*1e3)}i(Wit,"unixTimeToDate");function Yit(t,e,r){if(r!=null){if(t.match(/^Number$/i)!==null){if(typeof r!="number")throw new Error(`${e} with value ${r} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof r.valueOf()!="string")throw new Error(`${e} with value "${r}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()=="string"&&_pe(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}i(Yit,"serializeBasicTypes");function Jit(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(s=>typeof s.valueOf()=="string"?s.toLowerCase()===r.toLowerCase():s===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}i(Jit,"serializeEnumType");function jit(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=KG(e)}return e}i(jit,"serializeByteArrayType");function Kit(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=$it(e)}return e}i(Kit,"serializeBase64UrlType");function Xit(t,e,r){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=Vit(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Ppe(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(Xit,"serializeDateTypes");function Zit(t,e,r,n,s,o){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;lm!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',o))}return a}return r}i(rat,"serializeCompositeType");function Lpe(t,e,r,n){if(!r||!t.xmlNamespace)return e;let o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=o,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=o,a}i(Lpe,"getXmlObjectValue");function nat(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(nat,"isSpecialXmlProperty");function sat(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";MR(t,e)&&(e=Ope(t,e,r,"serializedName"));let a=kpe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],m=tH(a[d].serializedName);l.push(m[0]);let{serializedName:f,xmlName:A,xmlElementName:h}=p,E=n;f!==""&&f!==void 0&&(E=n+"."+f);let y=p.headerCollectionPrefix;if(y){let I={};for(let x of Object.keys(r))x.startsWith(y)&&(I[x.substring(y.length)]=t.deserialize(p.type.value,r[x],E,s)),l.push(x);c[d]=I}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][A],E,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let I=h||A||f;if(p.xmlIsWrapped){let b=r[A]?.[h]??[];c[d]=t.deserialize(p,b,E,s),l.push(A)}else{let x=r[I];c[d]=t.deserialize(p,x,E,s),l.push(I)}}else{let I,x=r,b=0;for(let _ of m){if(!x)break;b++,x=x[_]}x===null&&b{for(let m in a)if(tH(a[m].serializedName)[0]===p)return!1;return!0},"isAdditionalProperty");for(let p in r)d(p)&&(c[p]=t.deserialize(u,r[p],n+'["'+p+'"]',s))}else if(r&&!s.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!nat(d,s)&&(c[d]=r[d]);return c}i(sat,"deserializeCompositeType");function oat(t,e,r,n,s){let o=e.type.value;if(!o||typeof o!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(o,r[c],n,s);return a}return r}i(oat,"deserializeDictionaryType");function iat(t,e,r,n,s){let o=e.type.element;if(!o||typeof o!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),o.type.name==="Composite"&&o.type.className&&(o=t.modelMappers[o.type.className]??o);let a=[];for(let c=0;c0)if(s.isConstant)o=s.defaultValue;else{let a=Upe(t,n);!a.propertyFound&&r&&(a=Upe(r,n));let c=!1;a.propertyFound||(c=s.required||n[0]==="options"&&n.length===2),o=c?s.defaultValue:a.propertyValue}}else{s.required&&(o={});for(let a in n){let c=s.type.modelProperties[a],l=n[a],u=sd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(sd,"getOperationArgumentValueFromParameter");function Upe(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}i(mat,"deserializeResponseBody");function fat(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(fat,"isOperationSpecEmpty");function Aat(t,e,r,n){let s=200<=t.status&&t.status<300;if(fat(e)?s:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new Ol(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,m;if(u){let A=p;if(e.isXML&&u.type.name===Za.Sequence){A=[];let h=u.xmlElementName;typeof p=="object"&&h&&(A=p[h])}m=e.serializer.deserialize(u,A,"error.response.parsedBody",n)}let f=p.error||m||p;l.code=f.code,f.message&&(l.message=f.message),u&&(l.response.parsedBody=m)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}i(Aat,"handleErrorResponse");async function hat(t,e,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let o=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(o),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!s)throw new Error("Parsing XML not supported.");let l=await s(o,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||Ol.PARSE_ERROR;throw new Ol(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(hat,"parse");function Hpe(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Za.Stream&&e.add(Number(r))}return e}i(Hpe,"getStreamingResponseStatusCodes");function ec(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}i(ec,"getPathStringFromParameter");var $pe="serializationPolicy";function UR(t={}){let e=t.stringifyXML;return{name:$pe,async sendRequest(r,n){let s=Fl(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(gat(r,a,o),yat(r,a,o,e)),n(r)}}}i(UR,"serializationPolicy");function gat(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=sd(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,ec(s));let a=s.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(o))t.headers.set(a+c,o[c]);else t.headers.set(s.mapper.serializedName||ec(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(gat,"serializeHeaders");function yat(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let s=e.options?.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}},a=o.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=sd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:m,xmlNamespacePrefix:f,nullable:A}=c,h=c.type.name;try{if(t.body!==void 0&&t.body!==null||A&&t.body===null||l){let E=ec(r.requestBody);t.body=r.serializer.serialize(c,t.body,E,o);let y=h===Za.Stream;if(r.isXML){let I=f?`xmlns:${f}`:"xmlns",x=Eat(m,I,h,t.body,o);h===Za.Sequence?t.body=n(Cat(x,p||d||u,I,m),{rootName:d||u,xmlCharKey:a}):y||(t.body=n(x,{rootName:d||u,xmlCharKey:a}))}else{if(h===Za.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;y||(t.body=JSON.stringify(t.body))}}}catch(E){throw new Error(`Error "${E.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=sd(e,c);if(l!=null){let u=c.mapper.serializedName||ec(c);t.formData[u]=r.serializer.serialize(c.mapper,l,ec(c),o)}}}}i(yat,"serializeRequestBody");function Eat(t,e,r,n,s){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let o={};return o[s.xml.xmlCharKey]=n,o["$"]={[e]:t},o}return n}i(Eat,"getXmlValueWithNamespace");function Cat(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let s={[e]:t};return s["$"]={[r]:n},s}i(Cat,"prepareXMLRootList");function iI(t={}){let e=YG(t??{});return t.credentialOptions&&e.addPolicy(fh({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(UR(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(nH(t.deserializationOptions),{phase:"Deserialize"}),e}i(iI,"createClientPipeline");var sH;function zpe(){return sH||(sH=sI()),sH}i(zpe,"getCachedDefaultHttpClient");var Iat={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Wpe(t,e,r,n){let s=wat(e,r,n),o=!1,a=Vpe(t,s);if(e.path){let u=Vpe(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),Sat(u)?(a=u,o=!0):a=xat(a,u)}let{queryParams:c,sequenceParams:l}=bat(e,r,n);return a=Rat(a,c,l,o),a}i(Wpe,"getRequestUrl");function Vpe(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(Vpe,"replaceAll");function wat(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=sd(e,s,r),a=ec(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(wat,"calculateUrlReplacements");function Sat(t){return t.includes("://")}i(Sat,"isAbsoluteUrl");function xat(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let s=e.indexOf("?");if(s!==-1){let o=e.substring(0,s),a=e.substring(s+1);n=n+o,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}i(xat,"appendPath");function bat(t,e,r){let n=new Map,s=new Set;if(t.queryParameters?.length)for(let o of t.queryParameters){o.mapper.type.name==="Sequence"&&o.mapper.serializedName&&s.add(o.mapper.serializedName);let a=sd(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,ec(o));let c=o.collectionFormat?Iat[o.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),o.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(o.collectionFormat==="SSV"||o.collectionFormat==="TSV")&&(a=a.join(c)),o.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(o.collectionFormat==="CSV"||o.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(o.mapper.serializedName||ec(o),a)}}return{queryParams:n,sequenceParams:s}}i(bat,"calculateQueryParameters");function Bat(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[s,o]=n.split("=",2),a=e.get(s);a?Array.isArray(a)?a.push(o):e.set(s,[a,o]):e.set(s,o)}return e}i(Bat,"simpleParseQueryParams");function Rat(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=Bat(s.search);for(let[c,l]of e){let u=o.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);o.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&o.set(c,[u,l]),n||o.set(c,l)):o.set(c,l)}let a=[];for(let[c,l]of o)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return s.search=a.length?`?${a.join("&")}`:"",s.toString()}i(Rat,"appendQueryParams");var oH=Ka("core-client");var aI=class{static{i(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&oH.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||zpe(),this.pipeline=e.pipeline||Nat(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let s=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:s})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.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.");let s=Wpe(n,r,e,this),o=oI({url:s});o.method=r.httpMethod;let a=Fl(o);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&o.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),l.abortSignal&&(o.abortSignal=l.abortSignal),l.tracingOptions&&(o.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=Hpe(r));try{let u=await this.sendRequest(o),d=ZG(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,p=ZG(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function Nat(t){let e=Tat(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return iI({...t,credentialOptions:r})}i(Nat,"createDefaultPipeline");function Tat(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}i(Tat,"getCredentialScopes");var Ype={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function vat(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}i(vat,"isUuid");var qR=i(async t=>{let e=kat(t.request),r=Qat(t.response);if(r){let n=Dat(r),s=_at(t,n),o=Pat(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(Ype.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function Pat(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&vat(n))return n}i(Pat,"extractTenantId");function _at(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Ype.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(_at,"buildScopes");function Qat(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(Qat,"getChallenge");function Dat(t){return`${t.slice(7).trim()} `.split(" ").filter(s=>s).map(s=>(([o,a])=>({[o]:a}))(s.trim().split("="))).reduce((s,o)=>({...s,...o}),{})}i(Dat,"parseChallenge");function kat(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(kat,"requestToOptions");var Jpe=Symbol("Original PipelineRequest"),Lat=Symbol.for("@azure/core-client original request");function lI(t,e={}){let n=t[Jpe],s=Ml(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=oI({url:t.url,method:t.method,headers:s,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(o[Lat]=e.originalRequest),o}}i(lI,"toPipelineRequest");function hm(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:uI(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(s,o,a){return o===Jpe?t:o==="clone"?()=>hm(lI(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(s,o,a)},set(s,o,a,c){return o==="keepAlive"&&(t.disableKeepAlive=!a),typeof o=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(o)&&(t[o]=a),Reflect.set(s,o,a,c)}}):n}i(hm,"toWebResourceLike");function uI(t){return new iH(t.toJSON({preserveCase:!0}))}i(uI,"toHttpHeadersLike");function cI(t){return t.toLowerCase()}i(cI,"getHeaderKey");var iH=class t{static{i(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[cI(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[cI(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[cI(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[cI(e)],r}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let r in this._headersMap)e.push(this._headersMap[r]);return e}headerNames(){let e=[],r=this.headersArray();for(let n=0;n{let r=await t.sendRequest(hm(e,{createProxy:!0}));return HR(r)},"sendRequest")}}i(lH,"convertHttpClient");var Xpe=":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",Fat=Xpe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Uat="["+Xpe+"]["+Fat+"]*",qat=new RegExp("^"+Uat+"$");function $R(t,e){let r=[],n=e.exec(t);for(;n;){let s=[];s.startIndex=e.lastIndex-n[0].length;let o=n.length;for(let a=0;a"u")},"isName");function Zpe(t){return typeof t<"u"}i(Zpe,"isExist");var pI=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],zR=["__proto__","constructor","prototype"];var Gat={allowBooleanAttributes:!1,unpairedTags:[]};function VR(t,e){e=Object.assign({},Gat,e);let r=[],n=!1,s=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let o=0;o"&&t[o]!==" "&&t[o]!==" "&&t[o]!==` -`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!jat(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",wr("InvalidTag",p,cs(t,o))}let u=zat(t,o);if(u===!1)return wr("InvalidAttr","Attributes for '"+l+"' have open quote.",cs(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=nme(d,e);if(m===!0)n=!0;else return wr(m.err.code,m.err.msg,cs(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return wr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",cs(t,a));if(r.length===0)return wr("InvalidTag","Closing tag '"+l+"' has not been opened.",cs(t,a));{let p=r.pop();if(l!==p.tagName){let m=cs(t,p.tagStartPos);return wr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",cs(t,a))}r.length==0&&(s=!0)}}else return wr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",cs(t,o));else{let p=nme(d,e);if(p!==!0)return wr(p.err.code,p.err.msg,cs(t,o-d.length+p.err.line));if(s===!0)return wr("InvalidXml","Multiple possible root nodes found.",cs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return wr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return wr("InvalidXml","Start tag expected.",1);return!0}i(VR,"validate");function eme(t){return t===" "||t===" "||t===` -`||t==="\r"}i(eme,"isWhiteSpace");function tme(t,e){let r=e;for(;e5&&n==="xml")return wr("InvalidXml","XML declaration allowed only at the start of the document.",cs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(tme,"readPI");function rme(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e"){e+=2;break}}return e}i(rme,"readCommentAndCDATA");var Hat='"',$at="'";function zat(t,e){let r="",n="",s=!1;for(;e"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(zat,"readAttributeStr");var Vat=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function nme(t,e){let r=$R(t,Vat),n={};for(let s=0;s",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},ome={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},ime={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},ame={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},cme={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},lme={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},ume={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},dme={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},pme={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},mme={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},WR={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},fme={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},Ame={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},Kat={...sme,...ome,...ime,...ame,...cme,...lme,...ume,...dme,...pme,...mme,...WR,...fme,...Ame},fI={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},dH={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Xat=new Set("!?\\\\/[]$%{}^&*()<>|+");function hme(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Xat.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(hme,"validateEntityName");function pH(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(pH,"mergeEntityMaps");var gm="external",YR="base",mH="all";function Zat(t){return!t||t===gm?new Set([gm]):t===mH?new Set([mH]):t===YR?new Set([YR]):Array.isArray(t)?new Set(t):new Set([gm])}i(Zat,"parseLimitTiers");var Ps=Object.freeze({allow:0,leave:1,remove:2,throw:3}),ect=new Set([9,10,13]);function tct(t){if(!t)return{xmlVersion:1,onLevel:Ps.allow,nullLevel:Ps.remove};let e=t.xmlVersion===1.1?1.1:1,r=Ps[t.onNCR]??Ps.allow,n=Ps[t.nullNCR]??Ps.remove,s=Math.max(n,Ps.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(tct,"parseNCRConfig");var hh=class{static{i(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=Zat(this._limit.applyLimitsTo??gm),this._numericAllowed=e.numericAllowed??!0,this._baseMap=pH(fI,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=tct(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(e){if(e)for(let r of Object.keys(e))hme(r);this._externalMap=pH(e)}addExternalEntity(e,r){hme(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=pH(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let m=e.slice(a+1,p);if(m.length===0){a++;continue}let f,A;if(this._removeSet.has(m))f="",A===void 0&&(A=gm);else if(this._leaveSet.has(m)){a++;continue}else if(m.charCodeAt(0)===35){let h=this._resolveNCR(m);if(h===void 0){a++;continue}f=h,A=YR}else{let h=this._resolveName(m);f=h?.value,A=h?.tier}if(f===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(f),o=p+1,a=o,u&&this._tierCounts(A)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let h=f.length-(m.length+2);if(h>0&&(this._expandedLength+=h,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!ect.has(e)?Ps.remove:-1}_applyNCRAction(e,r,n){switch(e){case Ps.allow:return String.fromCodePoint(n);case Ps.remove:return"";case Ps.leave:return;case Ps.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let s=this._classifyNCR(n);if(!this._numericAllowed&&spI.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),rct={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:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:gme};function nct(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(pI.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(zR.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(nct,"validatePropertyName");function yme(t,e){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:yme(!0)}i(yme,"normalizeProcessEntities");var Eme=i(function(t){let e=Object.assign({},rct,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&nct(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=gme),e.processEntities=yme(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e},"buildOptions");var JR;typeof Symbol!="function"?JR="@@xmlMetadata":JR=Symbol("XML Node Metadata");var _s=class{static{i(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][JR]={startIndex:r})}static getMetaDataSymbol(){return JR}};var Cme=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",sct=Cme+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",Ime=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",oct=Ime+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",wme=i((t,e,r="")=>{let n=t.replace(":",""),s=e.replace(":",""),o=`[${n}][${s}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${o}$`,r),qName:new RegExp(`^${o}(?::${o})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),ict=wme(Cme,sct),act=wme(Ime,oct,"u"),cct=i((t="1.0")=>t==="1.1"?act:ict,"getRegexes");var ym=i((t,{xmlVersion:e="1.0"}={})=>cct(e).qName.test(t),"qName");var hI=class{static{i(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),s=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let o=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${s+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,s++}}else if(a&&Em(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Em(e,"!ATTLIST",r))r+=8;else if(a&&Em(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Em(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:l+=e[r];if(o!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=Qs(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${s}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[s,o,r]}readNotationExp(e,r){r=Qs(e,r);let n=r;for(;r{for(;e1||o.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${s}${a}`?l:t;let d=o?a:r;return o?d===u||s+d===u?l:t:d===u||d===s+u?l:t}}else return t}}else return gct(t,Number(r),e)}i(AH,"toNumber");var fct=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Act(t,e,r){if(!r.eNotation)return t;let n=e.match(fct);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?t[a.length+1]===o:t[a.length]===o;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}i(Act,"resolveEnotation");function hct(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}i(hct,"trimZeros");function fH(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}i(fH,"parse_int");function gct(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}i(gct,"handleInfinity");function hH(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(hH,"getIgnoreAttributesFn");var Co=class{static{i(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(s=>s.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(s=>s.attrName!==void 0),this._hasPositionSelector=this.segments.some(s=>s.position!==void 0)}_parse(e){let r=[],n=0,s="";for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let r=this._matcher.path;if(r.length!==0)return r[r.length-1].values?.[e]}hasAttr(e){let r=this._matcher.path;if(r.length===0)return!1;let n=r[r.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,r=!0){return this._matcher.toString(e,r)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},tc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new gH(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);let o=this.siblingStacks[s],a=n?`${n}:${e}`:e,c=o.get(a)||0,l=0;for(let d of o.values())l+=d;o.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let o=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=o,o}return this.path.map(o=>r&&o.namespace?`${o.namespace}:${o.tag}`:o.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r=0&&r>=0;){let s=e[n];if(s.type==="deep-wildcard"){if(n--,n<0)return!0;let o=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(o,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(s,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let s=r.counter??0;if(e.position==="first"&&s!==0)return!1;if(e.position==="odd"&&s%2!==1)return!1;if(e.position==="even"&&s%2!==0)return!1;if(e.position==="nth"&&s!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function yct(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let s in r)if(s.startsWith(e.attributeNamePrefix)){let o=s.substring(e.attributeNamePrefix.length);n[o]=r[s]}else n[s]=r[s];return n}i(yct,"extractRawAttributes");function Ect(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}i(Ect,"extractNamespace");var gI=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=xct,this.parseTextData=Cct,this.resolveNameSpace=Ict,this.buildAttributesMap=Sct,this.isItStopNode=Nct,this.replaceEntitiesValue=Bct,this.readStopNodeData=Pct,this.saveTextToParentTag=Rct,this.addChild=bct,this.ignoreAttributesFn=hH(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...fI};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...dH,...WR}),this.entityDecoder=new hh({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new tc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new gh;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,s,o);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?CH(t,c.parseTagValue,c.numberParseOptions):t}}i(Cct,"parseTextData");function Ict(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}i(Ict,"resolveNameSpace");var wct=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Sct(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=$R(t,wct),a=o.length,c={},l=new Array(a),u=!1,d={};for(let f=0;f",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=yH(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=EH(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new _s(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=yh(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=yh(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=EH(t,c,s.removeNSPrefix);if(!d){let P=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${P}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:f}=yH(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),A=p!==f);let I=null,x={},b;b=Ect(m),p!==e.tagname&&this.matcher.push(p,{},b),p!==f&&A&&(I=this.buildAttributesMap(f,this.matcher,p),I&&(x=yct(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let P="";if(y)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let G=this.readStopNodeData(t,m,h+1);if(!G)throw new Error(`Unexpected end of ${m}`);c=G.i,P=G.tagContent}let _=new _s(p);I&&(_[":@"]=I),_.add(s.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,N)}else{if(y){({tagName:p,tagExp:f}=yH(s.transformTagName,p,f,s));let P=new _s(p);I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let P=new _s(p);I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let P=new _s(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),r=P}n="",c=h}}}else n+=t[c];return e.child},"parseXml");function bct(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(bct,"addChild");function Bct(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(Bct,"replaceEntitiesValue");function Rct(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(Rct,"saveTextToParentTag");function Nct(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(Nct,"isItStopNode");function Tct(t,e,r=">"){let n=0,s=t.length,o=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(s--,s===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=yh(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=yh(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=yh(t,"]]>",r,"StopNode is not closed.")-2;else{let c=EH(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(Pct,"readStopNodeData");function CH(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:AH(t,r)}else return Zpe(t)?t:""}i(CH,"parseValue");function yH(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=Sme(e,n),{tagName:e,tagExp:r}}i(yH,"transformTagName");function Sme(t,e){if(zR.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return pI.includes(t)?e.onDangerousProperty(t):t}i(Sme,"sanitizeName");var IH=_s.getMetaDataSymbol();function _ct(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let s=n.substring(e.length);r[s]=t[n]}else r[n]=t[n];return r}i(_ct,"stripAttributePrefix");function wH(t,e,r,n){return xme(t,e,r,n)}i(wH,"prettify");function xme(t,e,r,n){let s,o={};for(let a=0;a0&&(o[e.textNodeName]=s):s!==void 0&&(o[e.textNodeName]=s),o}i(xme,"compress");function Qct(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(KR,"safeCdata");function od(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(od,"escapeAttribute");var Lct=` -`;function Oct(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bH(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(Oct,"detectXmlVersionFromArray");function Bme(t,e,r,n,s){return!r.sanitizeName||ym(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Bme,"resolveTagName");function xH(t,e){let r="";e.format&&(r=Lct);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;ae.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=SH(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(m===e.commentPropName){let x=u[d][0][e.textNodeName],b=jR(x);a+=r+``,c=!0,n.pop();continue}else if(m[0]==="?"){let x=bme(u[":@"],e,A,n,o);a+=(m==="?xml"?"":r)+`<${m}${x}?>`,c=!0,n.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let E=bme(u[":@"],e,A,n,o),y=r+`<${m}${E}`,I;A?I=Nme(u[d],e):I=Rme(u[d],e,h,n,s,o),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=y+"/>":I&&I.endsWith(">")?a+=y+`>${I}${r}`:(a+=y+">",I&&r!==""&&(I.includes("/>")||I.includes("`),c=!0,n.pop()}return a}i(Rme,"arrToStr");function Mct(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=od(t[s]),n=!0}return n?r:null}i(Mct,"extractAttributeValues");function Nme(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${o}${a}>${c}`}}}return r}i(Nme,"getRawContent");function Fct(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${od(s)}"`}return r}i(Fct,"attr_to_str_raw");function bH(t){let e=Object.keys(t);for(let r=0;r0&&e.processEntities)for(let r=0;r{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(BH,"getIgnoreAttributesFn");var qct={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),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,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ds(t){if(this.options=Object.assign({},qct,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,"utf-8")],s=yat(n);s&&t.headers.set("Content-Length",s),t.body=await mpe(n)}i(Eat,"buildRequestBody");var iI="multipartPolicy",Cat=70,Iat=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function wat(t){if(t.length>Cat)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Iat.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(wat,"assertValidBoundary");function DR(){return{name:iI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?wat(r):r=Aat(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await Eat(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(DR,"multipartPolicy");function kR(){return oR()}i(kR,"createEmptyPipeline");var Ape=rR({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Otr=Ape.logger;function Ka(t){return Ape.createClientLogger(t)}i(Ka,"createClientLogger");var Xa=Ka("core-rest-pipeline");function FG(t={}){return dR({logger:Xa.info,...t})}i(FG,"logPolicy");var UG=pR;function qG(t={}){return fR(t)}i(qG,"redirectPolicy");var LR=R(require("node:os"),1),OR=R(require("node:process"),1);function hpe(){return"User-Agent"}i(hpe,"getHeaderName");async function gpe(t){if(OR.default&&OR.default.versions){let e=`${LR.default.type()} ${LR.default.release()}; ${LR.default.arch()}`,r=OR.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(gpe,"setPlatformSpecificData");var MR="1.22.2";function Pat(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(Pat,"getUserAgentString");function ype(){return hpe()}i(ype,"getUserAgentHeaderName");async function FR(t){let e=new Map;e.set("core-rest-pipeline",MR),await gpe(e);let r=Pat(e);return t?`${t} ${r}`:r}i(FR,"getUserAgentValue");var Epe=ype(),Cpe="userAgentPolicy";function GG(t={}){let e=FR(t.userAgentPrefix);return{name:Cpe,async sendRequest(r,n){return r.headers.has(Epe)||r.headers.set(Epe,await e),n(r)}}}i(GG,"userAgentPolicy");var yo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function $G(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new yo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i($G,"createAbortablePromise");var kat="The delay was aborted.";function aI(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return $G(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??kat})}i(aI,"delay");function nd(t){if(mf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(nd,"getErrorMessage");function Ipe(t){return mf(t)}i(Ipe,"isError");function gh(){return ff()}i(gh,"randomUUID");var ut=gf;var wpe=Symbol("rawContent");function zG(t){return typeof t[wpe]=="function"}i(zG,"hasRawContent");function Spe(t){return zG(t)?t[wpe]():t}i(Spe,"getRawContent");var UR=iI;function VG(){let t=DR();return{name:UR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)zG(n.body)&&(n.body=Spe(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(VG,"multipartPolicy");var WG=mR;function YG(){return AR()}i(YG,"decompressResponsePolicy");function JG(t={}){return yR(t)}i(JG,"defaultRetryPolicy");function jG(){return ER()}i(jG,"formDataPolicy");function sd(t){return DG(t)}i(sd,"getDefaultProxySettings");function KG(t,e){return TR(t,e)}i(KG,"proxyPolicy");var xpe="setClientRequestIdPolicy";function XG(t="x-ms-client-request-id"){return{name:xpe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(XG,"setClientRequestIdPolicy");function ZG(t){return PR(t)}i(ZG,"agentPolicy");function e$(t){return vR(t)}i(e$,"tlsPolicy");var yh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function bpe(t={}){let e=new t$(t.parentContext);return t.span&&(e=e.setValue(yh.span,t.span)),t.namespace&&(e=e.setValue(yh.namespace,t.namespace)),e}i(bpe,"createTracingContext");var t$=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Rpe=R(Bpe(),1),GR=Rpe.state;function Lat(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(Lat,"createDefaultTracingSpan");function Oat(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:Lat(),tracingContext:bpe({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(Oat,"createDefaultInstrumenter");function cI(){return GR.instrumenterImplementation||(GR.instrumenterImplementation=Oat()),GR.instrumenterImplementation}i(cI,"getInstrumenter");function lI(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let f=cI().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),m=f.tracingContext,A=f.span;m.getValue(yh.namespace)||(m=m.setValue(yh.namespace,e)),A.setAttribute("az.namespace",m.getValue(yh.namespace));let h=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:m}});return{span:A,updatedOptions:h}}i(s,"startSpan");async function o(u,d,p,f){let{span:m,updatedOptions:A}=s(u,d,f);try{let h=await a(A.tracingOptions.tracingContext,()=>Promise.resolve(p(A,m)));return m.setStatus({status:"success"}),h}catch(h){throw m.setStatus({status:"error",error:h}),h}finally{m.end()}}i(o,"withSpan");function a(u,d,...p){return cI().withContext(u,d,...p)}i(a,"withContext");function c(u){return cI().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return cI().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(lI,"createTracingClient");var Fl=cs;function Cf(t){return iR(t)}i(Cf,"isRestError");var Npe="tracingPolicy";function r$(t={}){let e=FR(t.userAgentPrefix),r=new Vi({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=Mat();return{name:Npe,async sendRequest(s,o){if(!n)return o(s);let a=await e,c={"http.url":r.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=Fat(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return qat(l,d),d}catch(d){throw Uat(l,d),d}}}}i(r$,"tracingPolicy");function Mat(){try{return lI({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:MR})}catch(t){Xa.warning(`Error when creating the TracingClient: ${nd(t)}`);return}}i(Mat,"tryCreateTracingClient");function Fat(t,e,r){try{let{span:n,updatedOptions:s}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let o=t.createRequestHeaders(s.tracingOptions.tracingContext);for(let[a,c]of Object.entries(o))e.headers.set(a,c);return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(n){Xa.warning(`Skipping creating a tracing span due to an error: ${nd(n)}`);return}}i(Fat,"tryCreateSpan");function Uat(t,e){try{t.setStatus({status:"error",error:Ipe(e)?e:void 0}),Cf(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Xa.warning(`Skipping tracing span processing due to an error: ${nd(r)}`)}}i(Uat,"tryProcessError");function qat(t,e){try{t.setAttribute("http.status_code",e.status);let r=e.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),e.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){Xa.warning(`Skipping tracing span processing due to an error: ${nd(r)}`)}}i(qat,"tryProcessResponse");function $R(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",s),r=!1)}i(n,"cleanup");function s(){e.abort(t.reason),n()}return i(s,"listener"),t.addEventListener("abort",s),{abortSignal:e.signal,cleanup:n}}i($R,"wrapAbortSignalLike");var Gat="wrapAbortSignalLikePolicy";function Tpe(){return{name:Gat,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=$R(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(Tpe,"wrapAbortSignalLikePolicy");function n$(t){let e=kR();return ut&&(t.agent&&e.addPolicy(ZG(t.agent)),t.tlsOptions&&e.addPolicy(e$(t.tlsOptions)),e.addPolicy(KG(t.proxyOptions)),e.addPolicy(YG())),e.addPolicy(Tpe()),e.addPolicy(jG(),{beforePolicies:[UR]}),e.addPolicy(GG(t.userAgentOptions)),e.addPolicy(XG(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(VG(),{afterPhase:"Deserialize"}),e.addPolicy(JG(t.retryOptions),{phase:"Retry"}),e.addPolicy(r$({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),ut&&e.addPolicy(qG(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(FG(t.loggingOptions),{afterPhase:"Sign"}),e}i(n$,"createPipelineFromOptions");function uI(){let t=uR();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?$R(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(uI,"createDefaultHttpClient");function Ul(t){return mo(t)}i(Ul,"createHttpHeaders");function dI(t){return sR(t)}i(dI,"createPipelineRequest");var mor=Ka("core-rest-pipeline retryPolicy");var $at={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Hat(t,e,r){async function n(){if(Date.now()t.getToken(l,u),"tryGetAccessToken"),o.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(p=>(r=null,n=p,s=u.tenantId,n)).catch(p=>{throw r=null,n=null,s=void 0,p})),r}return i(c,"refresh"),async(l,u)=>{let d=!!u.claims,p=s!==u.tenantId;return d&&(n=null),p||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}i(s$,"createTokenCycler");var Qpe="bearerTokenAuthenticationPolicy";async function HR(t,e){try{return[await e(t),void 0]}catch(r){if(Cf(r)&&r.response)return[r.response,r];throw r}}i(HR,"trySendRequest");async function zat(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(e,s);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}i(zat,"defaultAuthorizeRequest");function Ppe(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(Ppe,"isChallengeResponse");async function vpe(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}i(vpe,"authorizeRequestOnCaeChallenge");function Eh(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||Xa,o={authorizeRequest:n?.authorizeRequest?.bind(n)??zat,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?s$(e):()=>Promise.resolve(null);return{name:Qpe,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await o.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:s});let u,d,p;if([u,d]=await HR(c,l),Ppe(u)){let f=_pe(u.headers.get("WWW-Authenticate"));if(f){let m;try{m=atob(f)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`),u}p=await vpe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await HR(c,l))}else if(o.authorizeRequestOnChallenge&&(p=await o.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:s}),p&&([u,d]=await HR(c,l)),Ppe(u)&&(f=_pe(u.headers.get("WWW-Authenticate")),f))){let m;try{m=atob(f)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`),u}p=await vpe({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await HR(c,l))}}if(d)throw d;return u}}}i(Eh,"bearerTokenAuthenticationPolicy");function Vat(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],s;for(;(s=e.exec(t))!==null;){let o=s[1],a=s[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:o,params:c})}return n}i(Vat,"parseChallenges");function _pe(t){return t?Vat(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(_pe,"getCaeChallengeClaims");function Eo(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(Eo,"isTokenCredential");var o$="DisableKeepAlivePolicy";function Dpe(){return{name:o$,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(Dpe,"createDisableKeepAlivePolicy");function kpe(t){return t.getOrderedPolicies().some(e=>e.name===o$)}i(kpe,"pipelineContainsDisableKeepAlivePolicy");function i$(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(i$,"encodeByteArray");function a$(t){return Buffer.from(t,"base64")}i(a$,"decodeString");function Yat(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}i(Yat,"isPrimitiveBody");var Jat=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lpe(t){return Jat.test(t)}i(Lpe,"isDuration");var jat=/^[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 Ope(t){return jat.test(t)}i(Ope,"isValidUuid");function Kat(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}i(Kat,"handleNullableResponseAndWrappableBody");function c$(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,s=!!n?.nullable,o=n?.type.name;if(o==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=o==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(o==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return s&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Kat({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:Yat(t.parsedBody,o)})}i(c$,"flattenResponse");var l$=class{static{i(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let s=i((o,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${o}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:o,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:p,MinLength:f,MultipleOf:m,Pattern:A,UniqueItems:h}=e.constraints;if(o!==void 0&&r>=o&&s("ExclusiveMaximum",o),a!==void 0&&r<=a&&s("ExclusiveMinimum",a),c!==void 0&&r>c&&s("InclusiveMaximum",c),l!==void 0&&ru&&s("MaxItems",u),d!==void 0&&r.length>d&&s("MaxLength",d),p!==void 0&&r.lengthI.indexOf(E)!==y)&&s("UniqueItems",h)}}serialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=nct(c,n,r):c.match(/^Enum$/i)!==null?a=sct(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=act(c,r,n):c.match(/^ByteArray$/i)!==null?a=oct(n,r):c.match(/^Base64Url$/i)!==null?a=ict(n,r):c.match(/^Sequence$/i)!==null?a=cct(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=lct(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=dct(this,e,r,n,!!this.isXML,o)),a}deserialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"},ignoreUnknownProperties:s.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=fct(this,e,r,n,o);else{if(this.isXML){let l=o.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=rct(r):c.match(/^ByteArray$/i)!==null?a=a$(r):c.match(/^Base64Url$/i)!==null?a=ect(r):c.match(/^Sequence$/i)!==null?a=Act(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=mct(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Co(t={},e=!1){return new l$(t,e)}i(Co,"createSerializer");function Xat(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(Xat,"trimEnd");function Zat(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=i$(t);return Xat(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(Zat,"bufferToBase64Url");function ect(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),a$(t)}}i(ect,"base64UrlToByteArray");function u$(t){let e=[],r="";if(t){let n=t.split(".");for(let s of n)s.charAt(s.length-1)==="\\"?r+=s.substr(0,s.length-1)+".":(r+=s,e.push(r),r="")}return e}i(u$,"splitSerializeName");function tct(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(tct,"dateToUnixTime");function rct(t){if(t)return new Date(t*1e3)}i(rct,"unixTimeToDate");function nct(t,e,r){if(r!=null){if(t.match(/^Number$/i)!==null){if(typeof r!="number")throw new Error(`${e} with value ${r} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof r.valueOf()!="string")throw new Error(`${e} with value "${r}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()=="string"&&Ope(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}i(nct,"serializeBasicTypes");function sct(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(s=>typeof s.valueOf()=="string"?s.toLowerCase()===r.toLowerCase():s===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}i(sct,"serializeEnumType");function oct(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=i$(e)}return e}i(oct,"serializeByteArrayType");function ict(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Zat(e)}return e}i(ict,"serializeBase64UrlType");function act(t,e,r){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=tct(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Lpe(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(act,"serializeDateTypes");function cct(t,e,r,n,s,o){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;lf!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',o))}return a}return r}i(dct,"serializeCompositeType");function qpe(t,e,r,n){if(!r||!t.xmlNamespace)return e;let o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=o,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=o,a}i(qpe,"getXmlObjectValue");function pct(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(pct,"isSpecialXmlProperty");function fct(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";zR(t,e)&&(e=Gpe(t,e,r,"serializedName"));let a=Upe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],f=u$(a[d].serializedName);l.push(f[0]);let{serializedName:m,xmlName:A,xmlElementName:h}=p,E=n;m!==""&&m!==void 0&&(E=n+"."+m);let y=p.headerCollectionPrefix;if(y){let I={};for(let x of Object.keys(r))x.startsWith(y)&&(I[x.substring(y.length)]=t.deserialize(p.type.value,r[x],E,s)),l.push(x);c[d]=I}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][A],E,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let I=h||A||m;if(p.xmlIsWrapped){let b=r[A]?.[h]??[];c[d]=t.deserialize(p,b,E,s),l.push(A)}else{let x=r[I];c[d]=t.deserialize(p,x,E,s),l.push(I)}}else{let I,x=r,b=0;for(let _ of f){if(!x)break;b++,x=x[_]}x===null&&b{for(let f in a)if(u$(a[f].serializedName)[0]===p)return!1;return!0},"isAdditionalProperty");for(let p in r)d(p)&&(c[p]=t.deserialize(u,r[p],n+'["'+p+'"]',s))}else if(r&&!s.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!pct(d,s)&&(c[d]=r[d]);return c}i(fct,"deserializeCompositeType");function mct(t,e,r,n,s){let o=e.type.value;if(!o||typeof o!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(o,r[c],n,s);return a}return r}i(mct,"deserializeDictionaryType");function Act(t,e,r,n,s){let o=e.type.element;if(!o||typeof o!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),o.type.name==="Composite"&&o.type.className&&(o=t.modelMappers[o.type.className]??o);let a=[];for(let c=0;c0)if(s.isConstant)o=s.defaultValue;else{let a=zpe(t,n);!a.propertyFound&&r&&(a=zpe(r,n));let c=!1;a.propertyFound||(c=s.required||n[0]==="options"&&n.length===2),o=c?s.defaultValue:a.propertyValue}}else{s.required&&(o={});for(let a in n){let c=s.type.modelProperties[a],l=n[a],u=id(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(id,"getOperationArgumentValueFromParameter");function zpe(t,e){let r={propertyFound:!1},n=0;for(;n=200&&r.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}i(wct,"deserializeResponseBody");function Sct(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(Sct,"isOperationSpecEmpty");function xct(t,e,r,n){let s=200<=t.status&&t.status<300;if(Sct(e)?s:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new Fl(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,f;if(u){let A=p;if(e.isXML&&u.type.name===Za.Sequence){A=[];let h=u.xmlElementName;typeof p=="object"&&h&&(A=p[h])}f=e.serializer.deserialize(u,A,"error.response.parsedBody",n)}let m=p.error||f||p;l.code=m.code,m.message&&(l.message=m.message),u&&(l.response.parsedBody=f)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}i(xct,"handleErrorResponse");async function bct(t,e,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let o=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(o),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!s)throw new Error("Parsing XML not supported.");let l=await s(o,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||Fl.PARSE_ERROR;throw new Fl(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(bct,"parse");function Ype(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Za.Stream&&e.add(Number(r))}return e}i(Ype,"getStreamingResponseStatusCodes");function ec(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}i(ec,"getPathStringFromParameter");var Jpe="serializationPolicy";function WR(t={}){let e=t.stringifyXML;return{name:Jpe,async sendRequest(r,n){let s=ql(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(Bct(r,a,o),Rct(r,a,o,e)),n(r)}}}i(WR,"serializationPolicy");function Bct(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=id(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,ec(s));let a=s.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(o))t.headers.set(a+c,o[c]);else t.headers.set(s.mapper.serializedName||ec(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(Bct,"serializeHeaders");function Rct(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let s=e.options?.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}},a=o.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=id(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:f,xmlNamespacePrefix:m,nullable:A}=c,h=c.type.name;try{if(t.body!==void 0&&t.body!==null||A&&t.body===null||l){let E=ec(r.requestBody);t.body=r.serializer.serialize(c,t.body,E,o);let y=h===Za.Stream;if(r.isXML){let I=m?`xmlns:${m}`:"xmlns",x=Nct(f,I,h,t.body,o);h===Za.Sequence?t.body=n(Tct(x,p||d||u,I,f),{rootName:d||u,xmlCharKey:a}):y||(t.body=n(x,{rootName:d||u,xmlCharKey:a}))}else{if(h===Za.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;y||(t.body=JSON.stringify(t.body))}}}catch(E){throw new Error(`Error "${E.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=id(e,c);if(l!=null){let u=c.mapper.serializedName||ec(c);t.formData[u]=r.serializer.serialize(c.mapper,l,ec(c),o)}}}}i(Rct,"serializeRequestBody");function Nct(t,e,r,n,s){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let o={};return o[s.xml.xmlCharKey]=n,o["$"]={[e]:t},o}return n}i(Nct,"getXmlValueWithNamespace");function Tct(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let s={[e]:t};return s["$"]={[r]:n},s}i(Tct,"prepareXMLRootList");function pI(t={}){let e=n$(t??{});return t.credentialOptions&&e.addPolicy(Eh({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(WR(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(p$(t.deserializationOptions),{phase:"Deserialize"}),e}i(pI,"createClientPipeline");var f$;function jpe(){return f$||(f$=uI()),f$}i(jpe,"getCachedDefaultHttpClient");var Pct={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Xpe(t,e,r,n){let s=vct(e,r,n),o=!1,a=Kpe(t,s);if(e.path){let u=Kpe(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),_ct(u)?(a=u,o=!0):a=Qct(a,u)}let{queryParams:c,sequenceParams:l}=Dct(e,r,n);return a=Lct(a,c,l,o),a}i(Xpe,"getRequestUrl");function Kpe(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(Kpe,"replaceAll");function vct(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=id(e,s,r),a=ec(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(vct,"calculateUrlReplacements");function _ct(t){return t.includes("://")}i(_ct,"isAbsoluteUrl");function Qct(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let s=e.indexOf("?");if(s!==-1){let o=e.substring(0,s),a=e.substring(s+1);n=n+o,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}i(Qct,"appendPath");function Dct(t,e,r){let n=new Map,s=new Set;if(t.queryParameters?.length)for(let o of t.queryParameters){o.mapper.type.name==="Sequence"&&o.mapper.serializedName&&s.add(o.mapper.serializedName);let a=id(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,ec(o));let c=o.collectionFormat?Pct[o.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),o.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(o.collectionFormat==="SSV"||o.collectionFormat==="TSV")&&(a=a.join(c)),o.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(o.collectionFormat==="CSV"||o.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(o.mapper.serializedName||ec(o),a)}}return{queryParams:n,sequenceParams:s}}i(Dct,"calculateQueryParameters");function kct(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[s,o]=n.split("=",2),a=e.get(s);a?Array.isArray(a)?a.push(o):e.set(s,[a,o]):e.set(s,o)}return e}i(kct,"simpleParseQueryParams");function Lct(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=kct(s.search);for(let[c,l]of e){let u=o.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);o.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&o.set(c,[u,l]),n||o.set(c,l)):o.set(c,l)}let a=[];for(let[c,l]of o)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return s.search=a.length?`?${a.join("&")}`:"",s.toString()}i(Lct,"appendQueryParams");var m$=Ka("core-client");var fI=class{static{i(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&m$.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||jpe(),this.pipeline=e.pipeline||Oct(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let s=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:s})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.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.");let s=Xpe(n,r,e,this),o=dI({url:s});o.method=r.httpMethod;let a=ql(o);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&o.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),l.abortSignal&&(o.abortSignal=l.abortSignal),l.tracingOptions&&(o.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=Ype(r));try{let u=await this.sendRequest(o),d=c$(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,p=c$(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function Oct(t){let e=Mct(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return pI({...t,credentialOptions:r})}i(Oct,"createDefaultPipeline");function Mct(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}i(Mct,"getCredentialScopes");var Zpe={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Fct(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}i(Fct,"isUuid");var YR=i(async t=>{let e=Hct(t.request),r=Gct(t.response);if(r){let n=$ct(r),s=qct(t,n),o=Uct(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(Zpe.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function Uct(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Fct(n))return n}i(Uct,"extractTenantId");function qct(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Zpe.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(qct,"buildScopes");function Gct(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(Gct,"getChallenge");function $ct(t){return`${t.slice(7).trim()} `.split(" ").filter(s=>s).map(s=>(([o,a])=>({[o]:a}))(s.trim().split("="))).reduce((s,o)=>({...s,...o}),{})}i($ct,"parseChallenge");function Hct(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(Hct,"requestToOptions");var efe=Symbol("Original PipelineRequest"),zct=Symbol.for("@azure/core-client original request");function AI(t,e={}){let n=t[efe],s=Ul(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=dI({url:t.url,method:t.method,headers:s,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(o[zct]=e.originalRequest),o}}i(AI,"toPipelineRequest");function If(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:hI(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(s,o,a){return o===efe?t:o==="clone"?()=>If(AI(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(s,o,a)},set(s,o,a,c){return o==="keepAlive"&&(t.disableKeepAlive=!a),typeof o=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(o)&&(t[o]=a),Reflect.set(s,o,a,c)}}):n}i(If,"toWebResourceLike");function hI(t){return new A$(t.toJSON({preserveCase:!0}))}i(hI,"toHttpHeadersLike");function mI(t){return t.toLowerCase()}i(mI,"getHeaderKey");var A$=class t{static{i(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[mI(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[mI(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[mI(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[mI(e)],r}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let r in this._headersMap)e.push(this._headersMap[r]);return e}headerNames(){let e=[],r=this.headersArray();for(let n=0;n{let r=await t.sendRequest(If(e,{createProxy:!0}));return jR(r)},"sendRequest")}}i(y$,"convertHttpClient");var nfe=":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",Yct=nfe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Jct="["+nfe+"]["+Yct+"]*",jct=new RegExp("^"+Jct+"$");function KR(t,e){let r=[],n=e.exec(t);for(;n;){let s=[];s.startIndex=e.lastIndex-n[0].length;let o=n.length;for(let a=0;a"u")},"isName");function sfe(t){return typeof t<"u"}i(sfe,"isExist");var yI=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],XR=["__proto__","constructor","prototype"];var Kct={allowBooleanAttributes:!1,unpairedTags:[]};function ZR(t,e){e=Object.assign({},Kct,e);let r=[],n=!1,s=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let o=0;o"&&t[o]!==" "&&t[o]!==" "&&t[o]!==` +`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!olt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",wr("InvalidTag",p,ls(t,o))}let u=elt(t,o);if(u===!1)return wr("InvalidAttr","Attributes for '"+l+"' have open quote.",ls(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let f=cfe(d,e);if(f===!0)n=!0;else return wr(f.err.code,f.err.msg,ls(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return wr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ls(t,a));if(r.length===0)return wr("InvalidTag","Closing tag '"+l+"' has not been opened.",ls(t,a));{let p=r.pop();if(l!==p.tagName){let f=ls(t,p.tagStartPos);return wr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ls(t,a))}r.length==0&&(s=!0)}}else return wr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ls(t,o));else{let p=cfe(d,e);if(p!==!0)return wr(p.err.code,p.err.msg,ls(t,o-d.length+p.err.line));if(s===!0)return wr("InvalidXml","Multiple possible root nodes found.",ls(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return wr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return wr("InvalidXml","Start tag expected.",1);return!0}i(ZR,"validate");function ofe(t){return t===" "||t===" "||t===` +`||t==="\r"}i(ofe,"isWhiteSpace");function ife(t,e){let r=e;for(;e5&&n==="xml")return wr("InvalidXml","XML declaration allowed only at the start of the document.",ls(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(ife,"readPI");function afe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e"){e+=2;break}}return e}i(afe,"readCommentAndCDATA");var Xct='"',Zct="'";function elt(t,e){let r="",n="",s=!1;for(;e"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}i(elt,"readAttributeStr");var tlt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cfe(t,e){let r=KR(t,tlt),n={};for(let s=0;s",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},ufe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},dfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},pfe={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},ffe={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},mfe={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},Afe={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},hfe={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},gfe={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},yfe={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},eN={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},Efe={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},Cfe={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},ilt={...lfe,...ufe,...dfe,...pfe,...ffe,...mfe,...Afe,...hfe,...gfe,...yfe,...eN,...Efe,...Cfe},CI={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},C$={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var alt=new Set("!?\\\\/[]$%{}^&*()<>|+");function Ife(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(alt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(Ife,"validateEntityName");function I$(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(I$,"mergeEntityMaps");var wf="external",tN="base",w$="all";function clt(t){return!t||t===wf?new Set([wf]):t===w$?new Set([w$]):t===tN?new Set([tN]):Array.isArray(t)?new Set(t):new Set([wf])}i(clt,"parseLimitTiers");var Qs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),llt=new Set([9,10,13]);function ult(t){if(!t)return{xmlVersion:1,onLevel:Qs.allow,nullLevel:Qs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Qs[t.onNCR]??Qs.allow,n=Qs[t.nullNCR]??Qs.remove,s=Math.max(n,Qs.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(ult,"parseNCRConfig");var Ih=class{static{i(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=clt(this._limit.applyLimitsTo??wf),this._numericAllowed=e.numericAllowed??!0,this._baseMap=I$(CI,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=ult(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(e){if(e)for(let r of Object.keys(e))Ife(r);this._externalMap=I$(e)}addExternalEntity(e,r){Ife(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=I$(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let r=e,n=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a=s||e.charCodeAt(p)!==59){a++;continue}let f=e.slice(a+1,p);if(f.length===0){a++;continue}let m,A;if(this._removeSet.has(f))m="",A===void 0&&(A=wf);else if(this._leaveSet.has(f)){a++;continue}else if(f.charCodeAt(0)===35){let h=this._resolveNCR(f);if(h===void 0){a++;continue}m=h,A=tN}else{let h=this._resolveName(f);m=h?.value,A=h?.tier}if(m===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(m),o=p+1,a=o,u&&this._tierCounts(A)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let h=m.length-(f.length+2);if(h>0&&(this._expandedLength+=h,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!llt.has(e)?Qs.remove:-1}_applyNCRAction(e,r,n){switch(e){case Qs.allow:return String.fromCodePoint(n);case Qs.remove:return"";case Qs.leave:return;case Qs.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let s=this._classifyNCR(n);if(!this._numericAllowed&&syI.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),dlt={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:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:wfe};function plt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(yI.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(XR.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(plt,"validatePropertyName");function Sfe(t,e){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:Sfe(!0)}i(Sfe,"normalizeProcessEntities");var xfe=i(function(t){let e=Object.assign({},dlt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&plt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=wfe),e.processEntities=Sfe(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e},"buildOptions");var rN;typeof Symbol!="function"?rN="@@xmlMetadata":rN=Symbol("XML Node Metadata");var Ds=class{static{i(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][rN]={startIndex:r})}static getMetaDataSymbol(){return rN}};var bfe=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",flt=bfe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",Bfe=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",mlt=Bfe+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",Rfe=i((t,e,r="")=>{let n=t.replace(":",""),s=e.replace(":",""),o=`[${n}][${s}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${o}$`,r),qName:new RegExp(`^${o}(?::${o})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),Alt=Rfe(bfe,flt),hlt=Rfe(Bfe,mlt,"u"),glt=i((t="1.0")=>t==="1.1"?hlt:Alt,"getRegexes");var Sf=i((t,{xmlVersion:e="1.0"}={})=>glt(e).qName.test(t),"qName");var wI=class{static{i(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),s=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let o=1,a=!1,c=!1,l="";for(;r=this.options.maxEntityCount)throw new Error(`Entity count (${s+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[u]=d,s++}}else if(a&&xf(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&xf(e,"!ATTLIST",r))r+=8;else if(a&&xf(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(xf(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:l+=e[r];if(o!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=ks(e,r);let n=r;for(;rthis.options.maxEntitySize)throw new Error(`Entity "${s}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[s,o,r]}readNotationExp(e,r){r=ks(e,r);let n=r;for(;r{for(;e1||o.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${s}${a}`?l:t;let d=o?a:r;return o?d===u||s+d===u?l:t:d===u||d===s+u?l:t}}else return t}}else return Blt(t,Number(r),e)}i(x$,"toNumber");var Slt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function xlt(t,e,r){if(!r.eNotation)return t;let n=e.match(Slt);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?t[a.length+1]===o:t[a.length]===o;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(e):a.length>0?r.leadingZeros&&!c?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}i(xlt,"resolveEnotation");function blt(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}i(blt,"trimZeros");function S$(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}i(S$,"parse_int");function Blt(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}i(Blt,"handleInfinity");function b$(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(b$,"getIgnoreAttributesFn");var Io=class{static{i(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(s=>s.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(s=>s.attrName!==void 0),this._hasPositionSelector=this.segments.some(s=>s.position!==void 0)}_parse(e){let r=[],n=0,s="";for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let r=this._matcher.path;if(r.length!==0)return r[r.length-1].values?.[e]}hasAttr(e){let r=this._matcher.path;if(r.length===0)return!1;let n=r[r.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,r=!0){return this._matcher.toString(e,r)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},tc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new B$(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);let o=this.siblingStacks[s],a=n?`${n}:${e}`:e,c=o.get(a)||0,l=0;for(let d of o.values())l+=d;o.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let o=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=o,o}return this.path.map(o=>r&&o.namespace?`${o.namespace}:${o.tag}`:o.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r=0&&r>=0;){let s=e[n];if(s.type==="deep-wildcard"){if(n--,n<0)return!0;let o=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(o,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(s,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let s=r.counter??0;if(e.position==="first"&&s!==0)return!1;if(e.position==="odd"&&s%2!==1)return!1;if(e.position==="even"&&s%2!==0)return!1;if(e.position==="nth"&&s!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function Rlt(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let s in r)if(s.startsWith(e.attributeNamePrefix)){let o=s.substring(e.attributeNamePrefix.length);n[o]=r[s]}else n[s]=r[s];return n}i(Rlt,"extractRawAttributes");function Nlt(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}i(Nlt,"extractNamespace");var SI=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Qlt,this.parseTextData=Tlt,this.resolveNameSpace=Plt,this.buildAttributesMap=_lt,this.isItStopNode=Olt,this.replaceEntitiesValue=klt,this.readStopNodeData=Ult,this.saveTextToParentTag=Llt,this.addChild=Dlt,this.ignoreAttributesFn=b$(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...CI};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...C$,...eN}),this.entityDecoder=new Ih({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new tc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new wh;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,s,o);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?T$(t,c.parseTagValue,c.numberParseOptions):t}}i(Tlt,"parseTextData");function Plt(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}i(Plt,"resolveNameSpace");var vlt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function _lt(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=KR(t,vlt),a=o.length,c={},l=new Array(a),u=!1,d={};for(let m=0;m",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=R$(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: `);f&&s.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=N$(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new Ds(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Sh(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Sh(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=N$(t,c,s.removeNSPrefix);if(!d){let v=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${v}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:m}=R$(s.transformTagName,p,m,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(y=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),A=p!==m);let I=null,x={},b;b=Nlt(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&A&&(I=this.buildAttributesMap(m,this.matcher,p),I&&(x=Rlt(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let v="";if(y)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let J=this.readStopNodeData(t,f,h+1);if(!J)throw new Error(`Unexpected end of ${f}`);c=J.i,v=J.tagContent}let _=new Ds(p);I&&(_[":@"]=I),_.add(s.textNodeName,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,N)}else{if(y){({tagName:p,tagExp:m}=R$(s.transformTagName,p,m,s));let v=new Ds(p);I&&(v[":@"]=I),this.addChild(r,v,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let v=new Ds(p);I&&(v[":@"]=I),this.addChild(r,v,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let v=new Ds(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(v[":@"]=I),this.addChild(r,v,this.readonlyMatcher,N),r=v}n="",c=h}}}else n+=t[c];return e.child},"parseXml");function Dlt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(Dlt,"addChild");function klt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(klt,"replaceEntitiesValue");function Llt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(Llt,"saveTextToParentTag");function Olt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(Olt,"isItStopNode");function Mlt(t,e,r=">"){let n=0,s=t.length,o=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(s--,s===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=Sh(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=Sh(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=Sh(t,"]]>",r,"StopNode is not closed.")-2;else{let c=N$(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(Ult,"readStopNodeData");function T$(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:x$(t,r)}else return sfe(t)?t:""}i(T$,"parseValue");function R$(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=Nfe(e,n),{tagName:e,tagExp:r}}i(R$,"transformTagName");function Nfe(t,e){if(XR.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return yI.includes(t)?e.onDangerousProperty(t):t}i(Nfe,"sanitizeName");var P$=Ds.getMetaDataSymbol();function qlt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let s=n.substring(e.length);r[s]=t[n]}else r[n]=t[n];return r}i(qlt,"stripAttributePrefix");function v$(t,e,r,n){return Tfe(t,e,r,n)}i(v$,"prettify");function Tfe(t,e,r,n){let s,o={};for(let a=0;a0&&(o[e.textNodeName]=s):s!==void 0&&(o[e.textNodeName]=s),o}i(Tfe,"compress");function Glt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(sN,"safeCdata");function ad(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(ad,"escapeAttribute");var zlt=` +`;function Vlt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(D$(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(Vlt,"detectXmlVersionFromArray");function vfe(t,e,r,n,s){return!r.sanitizeName||Sf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(vfe,"resolveTagName");function Q$(t,e){let r="";e.format&&(r=zlt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;ae.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=_$(l,e),l}return""}for(let l=0;l`,c=!1,n.pop();continue}else if(f===e.commentPropName){let x=u[d][0][e.textNodeName],b=nN(x);a+=r+``,c=!0,n.pop();continue}else if(f[0]==="?"){let x=Pfe(u[":@"],e,A,n,o);a+=(f==="?xml"?"":r)+`<${f}${x}?>`,c=!0,n.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let E=Pfe(u[":@"],e,A,n,o),y=r+`<${f}${E}`,I;A?I=Qfe(u[d],e):I=_fe(u[d],e,h,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=y+"/>":I&&I.endsWith(">")?a+=y+`>${I}${r}`:(a+=y+">",I&&r!==""&&(I.includes("/>")||I.includes("`),c=!0,n.pop()}return a}i(_fe,"arrToStr");function Wlt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=ad(t[s]),n=!0}return n?r:null}i(Wlt,"extractAttributeValues");function Qfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n`:r+=`<${o}${a}>${c}`}}}return r}i(Qfe,"getRawContent");function Ylt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${ad(s)}"`}return r}i(Ylt,"attr_to_str_raw");function D$(t){let e=Object.keys(t);for(let r=0;r0&&e.processEntities)for(let r=0;r{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(k$,"getIgnoreAttributesFn");var jlt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),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,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ls(t){if(this.options=Object.assign({},jlt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ds,"Builder");function Gct(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(Gct,"detectXmlVersionFromObj");function RH(t,e,r,n,s){return!r.sanitizeName||ym(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(RH,"resolveTagName");Ds.prototype.build=function(t){if(this.options.preserveOrder)return xH(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new tc,r=Gct(t,this.options);return this.j2x(t,0,e,r).val}};Ds.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:RH(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let m=RH(p,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(m)}else{r.push(d);let m=this.checkStopNode(r);if(r.pop(),m){let f=""+t[l];f===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+f+""u"))if(h===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(h,e+1,r,n);r.pop(),m+=E.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else m+=this.processTextOrObjNode(h,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,h);E=this.replaceEntitiesValue(E),m+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+h;y===""?m+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:m+=this.indentate(e)+"<"+d+">"+y+"${s}`;else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s),a=this.buildAttributesForStopNode(s);o===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${o}`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${s}`}else e+=`<${r}>${n}`}return e};Ds.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,o=r[n];o===!0&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+o+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let s=t[r];s===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+s+'"'}}return e};Ds.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=""+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};Ds.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let o=jR(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),o===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(let e=0;e${n.build(s)}`.replace(/\n/g,"")}i(XR,"stringifyXML");async function TH(t,e={}){if(!t)throw new Error("Document is empty");let r=Tme.validate(t);if(r!==!0)throw r;let s=new Eh(Wct(e)).parse(t);if(s["?xml"]&&delete s["?xml"],!e.includeRoot)for(let o of Object.keys(s)){let a=s[o];return typeof a=="object"?Object.assign({},a):a}return s}i(TH,"parseXML");var ZR=Ka("storage-blob");var kme=require("events");var Qme=require("node:stream");var eN=class extends Qme.Readable{static{i(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let s=0;for(let o of this.buffers)s+=o.byteLength;if(s=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;ne-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===o?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var Dme=R(require("node:buffer"),1);var tN=Dme.default.constants.MAX_LENGTH,rN=class{static{i(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let s=Math.ceil(e/tN);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new eN(this.buffers,this.size)}};var nN=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new kme.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,s,o,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(o<=0)throw new RangeError(`concurrency must be larger than 0, current is ${o}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=s,this.concurrency=o,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(r)}else{if(this.unresolvedLength>=this.bufferSize)return;e()}})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new rN(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let r=e.size;this.executingOutgoingHandlers++,this.offset+=r;try{await this.outgoingHandler(()=>e.getReadableStream(),r,this.offset-r)}catch(n){this.emitter.emit("error",n);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};var vH;function PH(){return vH||(vH=sI()),vH}i(PH,"getCachedDefaultHttpClient");var rc=class{static{i(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var Ul={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Te={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"};function id(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(id,"setURLParameter");function sN(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(sN,"setURLHost");function oN(t){try{return new URL(t).pathname}catch{return}}i(oN,"getURLPath");function iN(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(s=>{let o=s.indexOf("="),a=s.lastIndexOf("=");return o>0&&o===a&&a{let o,a=i(()=>{o!==void 0&&clearTimeout(o),s(r)},"abortHandler");o=setTimeout(i(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}i(aN,"delay");var yI=class extends rc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return ut?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=id(e.url,Ul.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Te.COOKIE),e.headers.remove(Te.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var EI=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new yI(e,r)}};var Cm=class extends rc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var CI=class extends Cm{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Im=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var $t=class extends Im{static{i(this,"AnonymousCredential")}create(e,r){return new CI(e,r)}};var Lme=require("node:crypto");var Yct=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]),Jct=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]),jct=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 cN(t,e){return Kct(t,e)?-1:1}i(cN,"compareHeader");function Kct(t,e){let r=[Yct,Jct,jct],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set(Te.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Te.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Te.CONTENT_ENCODING),this.getHeaderValueToSign(e,Te.CONTENT_LENGTH),this.getHeaderValueToSign(e,Te.CONTENT_MD5),this.getHeaderValueToSign(e,Te.CONTENT_TYPE),this.getHeaderValueToSign(e,Te.DATE),this.getHeaderValueToSign(e,Te.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Te.IF_MATCH),this.getHeaderValueToSign(e,Te.IF_NONE_MATCH),this.getHeaderValueToSign(e,Te.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Te.RANGE)].join(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ls,"Builder");function Klt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(Klt,"detectXmlVersionFromObj");function L$(t,e,r,n,s){return!r.sanitizeName||Sf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(L$,"resolveTagName");Ls.prototype.build=function(t){if(this.options.preserveOrder)return Q$(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new tc,r=Klt(t,this.options);return this.j2x(t,0,e,r).val}};Ls.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:L$(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let f=L$(p,!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(f)}else{r.push(d);let f=this.checkStopNode(r);if(r.pop(),f){let m=""+t[l];m===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+m+""u"))if(h===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(h,e+1,r,n);r.pop(),f+=E.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(m+=E.attrStr)}else f+=this.processTextOrObjNode(h,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,h);E=this.replaceEntitiesValue(E),f+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+h;y===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+y+"${s}`;else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s),a=this.buildAttributesForStopNode(s);o===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${o}`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${s}`}else e+=`<${r}>${n}`}return e};Ls.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,o=r[n];o===!0&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+o+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let s=t[r];s===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+s+'"'}}return e};Ls.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s=""+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};Ls.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let o=nN(t);return this.indentate(n)+``+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),o===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(let e=0;e${n.build(s)}`.replace(/\n/g,"")}i(oN,"stringifyXML");async function M$(t,e={}){if(!t)throw new Error("Document is empty");let r=Dfe.validate(t);if(r!==!0)throw r;let s=new xh(rut(e)).parse(t);if(s["?xml"]&&delete s["?xml"],!e.includeRoot)for(let o of Object.keys(s)){let a=s[o];return typeof a=="object"?Object.assign({},a):a}return s}i(M$,"parseXML");var iN=Ka("storage-blob");var Ufe=require("events");var Mfe=require("node:stream");var aN=class extends Mfe.Readable{static{i(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let s=0;for(let o of this.buffers)s+=o.byteLength;if(s=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;ne-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===o?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var Ffe=R(require("node:buffer"),1);var cN=Ffe.default.constants.MAX_LENGTH,lN=class{static{i(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let s=Math.ceil(e/cN);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new aN(this.buffers,this.size)}};var uN=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Ufe.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,s,o,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(o<=0)throw new RangeError(`concurrency must be larger than 0, current is ${o}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=s,this.concurrency=o,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(r)}else{if(this.unresolvedLength>=this.bufferSize)return;e()}})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new lN(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let r=e.size;this.executingOutgoingHandlers++,this.offset+=r;try{await this.outgoingHandler(()=>e.getReadableStream(),r,this.offset-r)}catch(n){this.emitter.emit("error",n);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};var F$;function U$(){return F$||(F$=uI()),F$}i(U$,"getCachedDefaultHttpClient");var rc=class{static{i(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var Gl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Re={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"};function cd(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(cd,"setURLParameter");function dN(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(dN,"setURLHost");function pN(t){try{return new URL(t).pathname}catch{return}}i(pN,"getURLPath");function fN(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(s=>{let o=s.indexOf("="),a=s.lastIndexOf("=");return o>0&&o===a&&a{let o,a=i(()=>{o!==void 0&&clearTimeout(o),s(r)},"abortHandler");o=setTimeout(i(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}i(mN,"delay");var xI=class extends rc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return ut?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=cd(e.url,Gl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Re.COOKIE),e.headers.remove(Re.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var bI=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new xI(e,r)}};var bf=class extends rc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var BI=class extends bf{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Bf=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var Ht=class extends Bf{static{i(this,"AnonymousCredential")}create(e,r){return new BI(e,r)}};var qfe=require("node:crypto");var nut=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]),sut=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]),out=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 AN(t,e){return iut(t,e)?-1:1}i(AN,"compareHeader");function iut(t,e){let r=[nut,sut,out],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set(Re.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Re.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Re.CONTENT_ENCODING),this.getHeaderValueToSign(e,Re.CONTENT_LENGTH),this.getHeaderValueToSign(e,Re.CONTENT_MD5),this.getHeaderValueToSign(e,Re.CONTENT_TYPE),this.getHeaderValueToSign(e,Re.DATE),this.getHeaderValueToSign(e,Re.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Re.IF_MATCH),this.getHeaderValueToSign(e,Re.IF_NONE_MATCH),this.getHeaderValueToSign(e,Re.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Re.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Te.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Te.PREFIX_FOR_STORAGE));r.sort((s,o)=>cN(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()} -`}),n}getCanonicalizedResourceString(e){let r=oN(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=iN(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=` -${c}:${decodeURIComponent(o[c])}`}return n}};var ir=class extends Im{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new II(e,r,this)}computeHMACSHA256(e){return(0,Lme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var qr=Ka("storage-common");var ri;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ri||(ri={}));var ad={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ri.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xct=new go("The operation was aborted."),wI=class extends rc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=ad){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ad.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ad.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ad.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ad.maxRetryDelayInMs):ad.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ad.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ad.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=sN(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=id(s.url,Ul.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(qr.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(qr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return qr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return qr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return qr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return qr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Te.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(qr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case ri.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ri.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return qr.info(`RetryPolicy: Delay for ${s}ms`),aN(s,n,Xct)}};var SI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new wI(e,r,this.retryOptions)}};var Zct="storageBrowserPolicy";function Ome(){return{name:Zct,async sendRequest(t,e){return ut||((t.method==="GET"||t.method==="HEAD")&&(t.url=id(t.url,Ul.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Te.COOKIE),t.headers.delete(Te.CONTENT_LENGTH)),e(t)}}}i(Ome,"storageBrowserPolicy");var elt="StorageCorrectContentLengthPolicy";function Mme(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:elt,async sendRequest(e,r){return t(e),r(e)}}}i(Mme,"storageCorrectContentLengthPolicy");var tlt="storageRetryPolicy",Ch={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ri.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rlt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],nlt=new go("The operation was aborted.");function Fme(t={}){let e=t.retryPolicyType??Ch.retryPolicyType,r=t.maxTries??Ch.maxTries,n=t.retryDelayInMs??Ch.retryDelayInMs,s=t.maxRetryDelayInMs??Ch.maxRetryDelayInMs,o=t.secondaryHost??Ch.secondaryHost,a=t.tryTimeoutInMs??Ch.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:m}){if(d>=r)return qr.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(m){for(let f of rlt)if(m.name.toUpperCase().includes(f)||m.message.toUpperCase().includes(f)||m.code&&m.code.toString().toUpperCase()===f)return qr.info(`RetryPolicy: Network error ${f} found, will retry.`),!0;if(m?.code==="PARSE_ERROR"&&m?.message.startsWith('Error "Error: Unclosed root tag'))return qr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(p||m){let f=p?.status??m?.statusCode??0;if(!u&&f===404)return qr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(f===503||f===500)return qr.info(`RetryPolicy: Will retry for status code ${f}.`),!0}if(p&&p?.status>=400){let f=p.headers.get(Te.X_MS_CopySourceErrorCode);if(f!==void 0)switch(f){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}i(c,"shouldRetry");function l(u,d){let p=0;if(u)switch(e){case ri.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case ri.FIXED:p=n;break}else p=Math.random()*1e3;return qr.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:tlt,async sendRequest(u,d){a&&(u.url=id(u.url,Ul.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,m=o?sN(u.url,o):void 0,f=!1,A=1,h=!0,E,y;for(;h;){let I=f||!m||!["GET","HEAD","OPTIONS"].includes(u.method)||A%2===1;u.url=I?p:m,E=void 0,y=void 0;try{qr.info(`RetryPolicy: =====> Try=${A} ${I?"Primary":"Secondary"}`),E=await d(u),f=f||!I&&E.status===404}catch(x){if(Am(x))qr.error(`RetryPolicy: Caught error, message: ${x.message}, code: ${x.code}`),y=x;else throw qr.error(`RetryPolicy: Caught error, message: ${td(x)}`),x}h=c({isPrimaryRetry:I,attempt:A,response:E,error:y}),h&&await aN(l(I,A),u.abortSignal,nlt),A++}if(E)return E;throw y??new Ol("RetryPolicy failed without known error.")}}}i(Fme,"storageRetryPolicy");var Ume=require("node:crypto");var slt="storageSharedKeyCredentialPolicy";function _H(t){function e(o){o.headers.set(Te.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(Te.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,Te.CONTENT_LANGUAGE),r(o,Te.CONTENT_ENCODING),r(o,Te.CONTENT_LENGTH),r(o,Te.CONTENT_MD5),r(o,Te.CONTENT_TYPE),r(o,Te.DATE),r(o,Te.IF_MODIFIED_SINCE),r(o,Te.IF_MATCH),r(o,Te.IF_NONE_MATCH),r(o,Te.IF_UNMODIFIED_SINCE),r(o,Te.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Re.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE));r.sort((s,o)=>AN(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()} +`}),n}getCanonicalizedResourceString(e){let r=pN(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=fN(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=` +${c}:${decodeURIComponent(o[c])}`}return n}};var ir=class extends Bf{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new RI(e,r,this)}computeHMACSHA256(e){return(0,qfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var qr=Ka("storage-common");var ni;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ni||(ni={}));var ld={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ni.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},aut=new yo("The operation was aborted."),NI=class extends rc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=ld){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ld.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ld.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ld.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ld.maxRetryDelayInMs):ld.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ld.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ld.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=dN(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=cd(s.url,Gl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(qr.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(qr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return qr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return qr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return qr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return qr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(qr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case ni.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ni.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return qr.info(`RetryPolicy: Delay for ${s}ms`),mN(s,n,aut)}};var TI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new NI(e,r,this.retryOptions)}};var cut="storageBrowserPolicy";function Gfe(){return{name:cut,async sendRequest(t,e){return ut||((t.method==="GET"||t.method==="HEAD")&&(t.url=cd(t.url,Gl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(Gfe,"storageBrowserPolicy");var lut="StorageCorrectContentLengthPolicy";function $fe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:lut,async sendRequest(e,r){return t(e),r(e)}}}i($fe,"storageCorrectContentLengthPolicy");var uut="storageRetryPolicy",bh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ni.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},dut=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],put=new yo("The operation was aborted.");function Hfe(t={}){let e=t.retryPolicyType??bh.retryPolicyType,r=t.maxTries??bh.maxTries,n=t.retryDelayInMs??bh.retryDelayInMs,s=t.maxRetryDelayInMs??bh.maxRetryDelayInMs,o=t.secondaryHost??bh.secondaryHost,a=t.tryTimeoutInMs??bh.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return qr.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(f){for(let m of dut)if(f.name.toUpperCase().includes(m)||f.message.toUpperCase().includes(m)||f.code&&f.code.toString().toUpperCase()===m)return qr.info(`RetryPolicy: Network error ${m} found, will retry.`),!0;if(f?.code==="PARSE_ERROR"&&f?.message.startsWith('Error "Error: Unclosed root tag'))return qr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(p||f){let m=p?.status??f?.statusCode??0;if(!u&&m===404)return qr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(m===503||m===500)return qr.info(`RetryPolicy: Will retry for status code ${m}.`),!0}if(p&&p?.status>=400){let m=p.headers.get(Re.X_MS_CopySourceErrorCode);if(m!==void 0)switch(m){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}i(c,"shouldRetry");function l(u,d){let p=0;if(u)switch(e){case ni.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case ni.FIXED:p=n;break}else p=Math.random()*1e3;return qr.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:uut,async sendRequest(u,d){a&&(u.url=cd(u.url,Gl.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,f=o?dN(u.url,o):void 0,m=!1,A=1,h=!0,E,y;for(;h;){let I=m||!f||!["GET","HEAD","OPTIONS"].includes(u.method)||A%2===1;u.url=I?p:f,E=void 0,y=void 0;try{qr.info(`RetryPolicy: =====> Try=${A} ${I?"Primary":"Secondary"}`),E=await d(u),m=m||!I&&E.status===404}catch(x){if(Cf(x))qr.error(`RetryPolicy: Caught error, message: ${x.message}, code: ${x.code}`),y=x;else throw qr.error(`RetryPolicy: Caught error, message: ${nd(x)}`),x}h=c({isPrimaryRetry:I,attempt:A,response:E,error:y}),h&&await mN(l(I,A),u.abortSignal,put),A++}if(E)return E;throw y??new Fl("RetryPolicy failed without known error.")}}}i(Hfe,"storageRetryPolicy");var zfe=require("node:crypto");var fut="storageSharedKeyCredentialPolicy";function q$(t){function e(o){o.headers.set(Re.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(Re.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,Re.CONTENT_LANGUAGE),r(o,Re.CONTENT_ENCODING),r(o,Re.CONTENT_LENGTH),r(o,Re.CONTENT_MD5),r(o,Re.CONTENT_TYPE),r(o,Re.DATE),r(o,Re.IF_MODIFIED_SINCE),r(o,Re.IF_MATCH),r(o,Re.IF_NONE_MATCH),r(o,Re.IF_UNMODIFIED_SINCE),r(o,Re.RANGE)].join(` `)+` -`+n(o)+s(o),c=(0,Ume.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Te.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Te.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Te.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>cN(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()} -`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=oN(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=iN(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=` -${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:slt,async sendRequest(o,a){return e(o),a(o)}}}i(_H,"storageSharedKeyCredentialPolicy");var olt="storageRequestFailureDetailsParserPolicy";function qme(){return{name:olt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. -`),r}}}}i(qme,"storageRequestFailureDetailsParserPolicy");var Gme=require("node:crypto");var lN=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Gme.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var uN="12.31.0",dN="2026-02-06";var pN="https://storage.azure.com/.default",ql={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var zi="",QH="*",ilt=1*1024*1024;var alt=4*ilt;var Hme="AES256",$me="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",zme=["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"],Vme=["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"],Wme="BlobUsesCustomerSpecifiedEncryption",Yme="BlobDoesNotUseCustomerSpecifiedEncryption",Jme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Gl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Gl,"isPipelineLike");var xI=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Sr(t,e={}){t||(t=new $t);let r=new xI([],e);return r._credential=t,r}i(Sr,"newPipeline");function clt(t){let e=[llt,jme,ult,dlt,plt,mlt,Alt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>flt(s));return{wrappedPolicies:cH(r),afterRetry:n}}}}i(clt,"processDownlevelPipeline");function DH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?lH(e):PH(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${uN}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=iI({...r,loggingOptions:{additionalAllowedHeaderNames:zme,additionalAllowedQueryParameters:Vme,logger:ZR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:XR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:TH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:MG}),s.addPolicy(Mme()),s.addPolicy(Fme(r.retryOptions),{phase:"Retry"}),s.addPolicy(qme()),s.addPolicy(Ome());let c=clt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=kH(t);yo(l)?s.addPolicy(fh({credential:l,scopes:r.audience??pN,challengeCallbacks:{authorizeRequestOnChallenge:qR}}),{phase:"Sign"}):l instanceof ir&&s.addPolicy(_H({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(DH,"getCoreClientOptions");function kH(t){if(t._credential)return t._credential;let e=new $t;for(let r of t.factories)if(yo(r.credential))e=r.credential;else if(jme(r))return r;return e}i(kH,"getCredentialFromPipeline");function jme(t){return t instanceof ir?!0:t.constructor.name==="StorageSharedKeyCredential"}i(jme,"isStorageSharedKeyCredential");function llt(t){return t instanceof $t?!0:t.constructor.name==="AnonymousCredential"}i(llt,"isAnonymousCredential");function ult(t){return yo(t.credential)}i(ult,"isCoreHttpBearerTokenFactory");function dlt(t){return t instanceof EI?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(dlt,"isStorageBrowserPolicyFactory");function plt(t){return t instanceof SI?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(plt,"isStorageRetryPolicyFactory");function mlt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(mlt,"isStorageTelemetryPolicyFactory");function flt(t){return t.constructor.name==="InjectorPolicyFactory"}i(flt,"isInjectorPolicyFactory");function Alt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:i(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},o=t.create(r,n).constructor.name;return e.some(a=>o.startsWith(a))}i(Alt,"isCoreHttpPolicyFactory");var Kme;(function(t){t.AES256="AES256"})(Kme||(Kme={}));var Xme;(function(t){t.Backup="backup"})(Xme||(Xme={}));var Zme;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Zme||(Zme={}));var efe;(function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"})(efe||(efe={}));var Io={};Fr(Io,{AccessPolicy:()=>Rlt,AppendBlobAppendBlockExceptionHeaders:()=>t3,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>n3,AppendBlobAppendBlockFromUrlHeaders:()=>r3,AppendBlobAppendBlockHeaders:()=>e3,AppendBlobCreateExceptionHeaders:()=>Zz,AppendBlobCreateHeaders:()=>Xz,AppendBlobSealExceptionHeaders:()=>o3,AppendBlobSealHeaders:()=>s3,ArrowConfiguration:()=>qlt,ArrowField:()=>Glt,BlobAbortCopyFromURLExceptionHeaders:()=>bz,BlobAbortCopyFromURLHeaders:()=>xz,BlobAcquireLeaseExceptionHeaders:()=>lz,BlobAcquireLeaseHeaders:()=>cz,BlobBreakLeaseExceptionHeaders:()=>gz,BlobBreakLeaseHeaders:()=>hz,BlobChangeLeaseExceptionHeaders:()=>Az,BlobChangeLeaseHeaders:()=>fz,BlobCopyFromURLExceptionHeaders:()=>Sz,BlobCopyFromURLHeaders:()=>wz,BlobCreateSnapshotExceptionHeaders:()=>Ez,BlobCreateSnapshotHeaders:()=>yz,BlobDeleteExceptionHeaders:()=>W$,BlobDeleteHeaders:()=>V$,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>nz,BlobDeleteImmutabilityPolicyHeaders:()=>rz,BlobDownloadExceptionHeaders:()=>H$,BlobDownloadHeaders:()=>fN,BlobFlatListSegment:()=>Nlt,BlobGetAccountInfoExceptionHeaders:()=>Nz,BlobGetAccountInfoHeaders:()=>Rz,BlobGetPropertiesExceptionHeaders:()=>z$,BlobGetPropertiesHeaders:()=>$$,BlobGetTagsExceptionHeaders:()=>Pz,BlobGetTagsHeaders:()=>vz,BlobHierarchyListSegment:()=>_lt,BlobItemInternal:()=>Tlt,BlobName:()=>vlt,BlobPrefix:()=>Qlt,BlobPropertiesInternal:()=>Plt,BlobQueryExceptionHeaders:()=>Tz,BlobQueryHeaders:()=>hN,BlobReleaseLeaseExceptionHeaders:()=>dz,BlobReleaseLeaseHeaders:()=>uz,BlobRenewLeaseExceptionHeaders:()=>mz,BlobRenewLeaseHeaders:()=>pz,BlobServiceProperties:()=>bI,BlobServiceStatistics:()=>LH,BlobSetExpiryExceptionHeaders:()=>K$,BlobSetExpiryHeaders:()=>j$,BlobSetHttpHeadersExceptionHeaders:()=>Z$,BlobSetHttpHeadersHeaders:()=>X$,BlobSetImmutabilityPolicyExceptionHeaders:()=>tz,BlobSetImmutabilityPolicyHeaders:()=>ez,BlobSetLegalHoldExceptionHeaders:()=>oz,BlobSetLegalHoldHeaders:()=>sz,BlobSetMetadataExceptionHeaders:()=>az,BlobSetMetadataHeaders:()=>iz,BlobSetTagsExceptionHeaders:()=>Qz,BlobSetTagsHeaders:()=>_z,BlobSetTierExceptionHeaders:()=>Bz,BlobSetTierHeaders:()=>AN,BlobStartCopyFromURLExceptionHeaders:()=>Iz,BlobStartCopyFromURLHeaders:()=>Cz,BlobTag:()=>blt,BlobTags:()=>RI,BlobUndeleteExceptionHeaders:()=>J$,BlobUndeleteHeaders:()=>Y$,Block:()=>Dlt,BlockBlobCommitBlockListExceptionHeaders:()=>A3,BlockBlobCommitBlockListHeaders:()=>f3,BlockBlobGetBlockListExceptionHeaders:()=>g3,BlockBlobGetBlockListHeaders:()=>h3,BlockBlobPutBlobFromUrlExceptionHeaders:()=>l3,BlockBlobPutBlobFromUrlHeaders:()=>c3,BlockBlobStageBlockExceptionHeaders:()=>d3,BlockBlobStageBlockFromURLExceptionHeaders:()=>m3,BlockBlobStageBlockFromURLHeaders:()=>p3,BlockBlobStageBlockHeaders:()=>u3,BlockBlobUploadExceptionHeaders:()=>a3,BlockBlobUploadHeaders:()=>i3,BlockList:()=>HH,BlockLookupList:()=>GH,ClearRange:()=>Llt,ContainerAcquireLeaseExceptionHeaders:()=>N$,ContainerAcquireLeaseHeaders:()=>R$,ContainerBreakLeaseExceptionHeaders:()=>D$,ContainerBreakLeaseHeaders:()=>Q$,ContainerChangeLeaseExceptionHeaders:()=>L$,ContainerChangeLeaseHeaders:()=>k$,ContainerCreateExceptionHeaders:()=>c$,ContainerCreateHeaders:()=>a$,ContainerDeleteExceptionHeaders:()=>p$,ContainerDeleteHeaders:()=>d$,ContainerFilterBlobsExceptionHeaders:()=>B$,ContainerFilterBlobsHeaders:()=>b$,ContainerGetAccessPolicyExceptionHeaders:()=>h$,ContainerGetAccessPolicyHeaders:()=>A$,ContainerGetAccountInfoExceptionHeaders:()=>G$,ContainerGetAccountInfoHeaders:()=>q$,ContainerGetPropertiesExceptionHeaders:()=>u$,ContainerGetPropertiesHeaders:()=>l$,ContainerItem:()=>wlt,ContainerListBlobFlatSegmentExceptionHeaders:()=>M$,ContainerListBlobFlatSegmentHeaders:()=>O$,ContainerListBlobHierarchySegmentExceptionHeaders:()=>U$,ContainerListBlobHierarchySegmentHeaders:()=>F$,ContainerProperties:()=>Slt,ContainerReleaseLeaseExceptionHeaders:()=>v$,ContainerReleaseLeaseHeaders:()=>T$,ContainerRenameExceptionHeaders:()=>w$,ContainerRenameHeaders:()=>I$,ContainerRenewLeaseExceptionHeaders:()=>_$,ContainerRenewLeaseHeaders:()=>P$,ContainerRestoreExceptionHeaders:()=>C$,ContainerRestoreHeaders:()=>E$,ContainerSetAccessPolicyExceptionHeaders:()=>y$,ContainerSetAccessPolicyHeaders:()=>g$,ContainerSetMetadataExceptionHeaders:()=>f$,ContainerSetMetadataHeaders:()=>m$,ContainerSubmitBatchExceptionHeaders:()=>x$,ContainerSubmitBatchHeaders:()=>S$,CorsRule:()=>Elt,DelimitedTextConfiguration:()=>Flt,FilterBlobItem:()=>xlt,FilterBlobSegment:()=>BI,GeoReplication:()=>Ilt,JsonTextConfiguration:()=>Ult,KeyInfo:()=>MH,ListBlobsFlatSegmentResponse:()=>UH,ListBlobsHierarchySegmentResponse:()=>qH,ListContainersSegmentResponse:()=>OH,Logging:()=>hlt,Metrics:()=>ylt,PageBlobClearPagesExceptionHeaders:()=>Fz,PageBlobClearPagesHeaders:()=>Mz,PageBlobCopyIncrementalExceptionHeaders:()=>Kz,PageBlobCopyIncrementalHeaders:()=>jz,PageBlobCreateExceptionHeaders:()=>kz,PageBlobCreateHeaders:()=>Dz,PageBlobGetPageRangesDiffExceptionHeaders:()=>zz,PageBlobGetPageRangesDiffHeaders:()=>$z,PageBlobGetPageRangesExceptionHeaders:()=>Hz,PageBlobGetPageRangesHeaders:()=>Gz,PageBlobResizeExceptionHeaders:()=>Wz,PageBlobResizeHeaders:()=>Vz,PageBlobUpdateSequenceNumberExceptionHeaders:()=>Jz,PageBlobUpdateSequenceNumberHeaders:()=>Yz,PageBlobUploadPagesExceptionHeaders:()=>Oz,PageBlobUploadPagesFromURLExceptionHeaders:()=>qz,PageBlobUploadPagesFromURLHeaders:()=>Uz,PageBlobUploadPagesHeaders:()=>Lz,PageList:()=>mN,PageRange:()=>klt,QueryFormat:()=>Mlt,QueryRequest:()=>$H,QuerySerialization:()=>Olt,RetentionPolicy:()=>glt,ServiceFilterBlobsExceptionHeaders:()=>i$,ServiceFilterBlobsHeaders:()=>o$,ServiceGetAccountInfoExceptionHeaders:()=>r$,ServiceGetAccountInfoHeaders:()=>t$,ServiceGetPropertiesExceptionHeaders:()=>YH,ServiceGetPropertiesHeaders:()=>WH,ServiceGetStatisticsExceptionHeaders:()=>jH,ServiceGetStatisticsHeaders:()=>JH,ServiceGetUserDelegationKeyExceptionHeaders:()=>e$,ServiceGetUserDelegationKeyHeaders:()=>ZH,ServiceListContainersSegmentExceptionHeaders:()=>XH,ServiceListContainersSegmentHeaders:()=>KH,ServiceSetPropertiesExceptionHeaders:()=>VH,ServiceSetPropertiesHeaders:()=>zH,ServiceSubmitBatchExceptionHeaders:()=>s$,ServiceSubmitBatchHeaders:()=>n$,SignedIdentifier:()=>Blt,StaticWebsite:()=>Clt,StorageError:()=>O,UserDelegationKey:()=>FH});var bI={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},hlt={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},glt={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},ylt={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Elt={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},Clt={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},O={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"}}}}},LH={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Ilt={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},OH={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},wlt={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},Slt={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},MH={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},FH={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},BI={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},xlt={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},RI={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},blt={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},Blt={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},Rlt={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"}}}}},UH={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Nlt={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Tlt={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},vlt={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},Plt={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},qH={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},_lt={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Qlt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},GH={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"}}}}}}},HH={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},Dlt={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},mN={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"}}}}},klt={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},Llt={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},$H={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},Olt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},Mlt={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Flt={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"}}}}},Ult={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},qlt={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},Glt={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},zH={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"}}}}},VH={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WH={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"}}}}},YH={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JH={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"}}}}},jH={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KH={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"}}}}},XH={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZH={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"}}}}},e$={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t$={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"}}}}},r$={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n$={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"}}}}},s$={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},o$={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"}}}}},i$={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a$={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"}}}}},c$={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l$={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"}}}}},u$={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d$={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"}}}}},p$={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m$={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"}}}}},f$={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A$={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"}}}}},h$={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g$={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"}}}}},y$={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},E$={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"}}}}},C$={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I$={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"}}}}},w$={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S$={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"}}}}},x$={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b$={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"}}}}},B$={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R$={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"}}}}},N$={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T$={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"}}}}},v$={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P$={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"}}}}},_$={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q$={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"}}}}},D$={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k$={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"}}}}},L$={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O$={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"}}}}},M$={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},F$={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"}}}}},U$={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q$={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"}}}}},G$={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fN={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"}}}}},H$={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$$={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"}}}}},z$={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V$={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"}}}}},W$={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y$={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"}}}}},J$={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j$={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"}}}}},K$={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},X$={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"}}}}},Z$={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ez={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"]}}}}},tz={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rz={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"}}}}},nz={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sz={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"}}}}},oz={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iz={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"}}}}},az={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cz={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"}}}}},lz={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uz={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"}}}}},dz={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pz={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"}}}}},mz={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fz={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"}}}}},Az={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hz={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"}}}}},gz={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yz={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"}}}}},Ez={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Cz={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"}}}}},Iz={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"}}}}},wz={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Sz={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"}}}}},xz={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"}}}}},bz={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AN={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"}}}}},Bz={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Rz={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"}}}}},Nz={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hN={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"}}}}},Tz={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vz={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"}}}}},Pz={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_z={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"}}}}},Qz={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Dz={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"}}}}},kz={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Lz={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"}}}}},Oz={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Mz={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"}}}}},Fz={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Uz={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"}}}}},qz={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"}}}}},Gz={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"}}}}},Hz={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$z={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"}}}}},zz={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Vz={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"}}}}},Wz={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Yz={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"}}}}},Jz={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jz={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"}}}}},Kz={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Xz={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"}}}}},Zz={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e3={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"}}}}},t3={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},r3={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"}}}}},n3={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"}}}}},s3={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"}}}}},o3={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i3={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"}}}}},a3={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},c3={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"}}}}},l3={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"}}}}},u3={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"}}}}},d3={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},p3={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"}}}}},m3={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"}}}}},f3={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"}}}}},A3={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h3={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"}}}}},g3={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var nc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},tfe={parameterPath:"blobServiceProperties",mapper:bI},ni={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},M={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},NI={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},si={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},F={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},U={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},q={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},j={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},rfe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},TI={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vI={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},sc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},oc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},nfe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},sfe={parameterPath:"keyInfo",mapper:MH},ofe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ih={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},gN={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},yN={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},en={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},EN={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},CN={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},IN={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},tn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Fn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},y3={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},ife={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},afe={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},He={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Me={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Fe={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},wN={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},E3={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},cfe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},SN={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lfe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},ufe={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},dfe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},pfe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},mfe={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},oi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},xN={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},bN={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},BN={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},RN={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},cd={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},NN={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},TN={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},vN={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},PN={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},_N={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},C3={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"},I3={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},ffe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ls={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},ic={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},wm={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Afe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},hfe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},ar={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},cr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},lr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},nt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},st={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Ke={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},gfe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},yfe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},Efe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Cfe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},Ife={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},ac={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},cc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},lc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},uc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},dc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},pc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},w3={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Vi={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Wi={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},wfe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Sfe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Dr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},xfe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hl={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"]}}},S3={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},mc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},fc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Ac={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},hc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},QN={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Sm={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Yi={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},bfe={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},gc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Bfe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},$l={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},zl={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},DN={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},Vl={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},Rfe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Nfe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},Tfe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},vfe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Pfe={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},_fe={parameterPath:["options","queryRequest"],mapper:$H},Qfe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},x3={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},b3={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},B3={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},R3={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},N3={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},Dfe={parameterPath:["options","tags"],mapper:RI},ii={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},yc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},kfe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},T3={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},v3={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},xm={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},bm={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Bm={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},kN={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},P3={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},LN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},ON={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},MN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},Lfe={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},wh={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Ofe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Sh={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},Mfe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},_3={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ffe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},Ufe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},qfe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Gfe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hfe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},Q3={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},D3={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},FN={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},UN={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},$fe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},k3={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},zfe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},L3={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},O3={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Vfe={parameterPath:"blocks",mapper:GH},M3={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Wfe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var qN=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Hlt)}getProperties(e){return this.client.sendOperationRequest({options:e},$lt)}getStatistics(e){return this.client.sendOperationRequest({options:e},zlt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Vlt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},Wlt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Ylt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},Jlt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},jlt)}},ld=Eo(Io,!0),Hlt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:zH},default:{bodyMapper:O,headersMapper:VH}},requestBody:tfe,queryParameters:[NI,si,F],urlParameters:[M],headerParameters:[nc,ni,U,q],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ld},$lt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:bI,headersMapper:WH},default:{bodyMapper:O,headersMapper:YH}},queryParameters:[NI,si,F],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:ld},zlt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:LH,headersMapper:JH},default:{bodyMapper:O,headersMapper:jH}},queryParameters:[NI,F,rfe],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:ld},Vlt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:OH,headersMapper:KH},default:{bodyMapper:O,headersMapper:XH}},queryParameters:[F,TI,vI,sc,oc,nfe],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:ld},Wlt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:FH,headersMapper:ZH},default:{bodyMapper:O,headersMapper:e$}},requestBody:sfe,queryParameters:[NI,F,ofe],urlParameters:[M],headerParameters:[nc,ni,U,q],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ld},Ylt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:t$},default:{bodyMapper:O,headersMapper:r$}},queryParameters:[si,F,Ih],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:ld},Jlt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:n$},default:{bodyMapper:O,headersMapper:s$}},requestBody:gN,queryParameters:[F,yN],urlParameters:[M],headerParameters:[ni,U,q,en,EN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ld},jlt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:BI,headersMapper:o$},default:{bodyMapper:O,headersMapper:i$}},queryParameters:[F,sc,oc,CN,IN],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:ld};var GN=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Klt)}getProperties(e){return this.client.sendOperationRequest({options:e},Xlt)}delete(e){return this.client.sendOperationRequest({options:e},Zlt)}setMetadata(e){return this.client.sendOperationRequest({options:e},eut)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},tut)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},rut)}restore(e){return this.client.sendOperationRequest({options:e},nut)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},sut)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},out)}filterBlobs(e){return this.client.sendOperationRequest({options:e},iut)}acquireLease(e){return this.client.sendOperationRequest({options:e},aut)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},cut)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},lut)}breakLease(e){return this.client.sendOperationRequest({options:e},uut)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},dut)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},put)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},mut)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},fut)}},rn=Eo(Io,!0),Klt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:a$},default:{bodyMapper:O,headersMapper:c$}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,Fn,y3,ife,afe],isXML:!0,serializer:rn},Xlt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:l$},default:{bodyMapper:O,headersMapper:u$}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,He],isXML:!0,serializer:rn},Zlt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d$},default:{bodyMapper:O,headersMapper:p$}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe],isXML:!0,serializer:rn},eut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:m$},default:{bodyMapper:O,headersMapper:f$}},queryParameters:[F,tn,wN],urlParameters:[M],headerParameters:[U,q,j,Fn,He,Me],isXML:!0,serializer:rn},tut={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:A$},default:{bodyMapper:O,headersMapper:h$}},queryParameters:[F,tn,E3],urlParameters:[M],headerParameters:[U,q,j,He],isXML:!0,serializer:rn},rut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:g$},default:{bodyMapper:O,headersMapper:y$}},requestBody:cfe,queryParameters:[F,tn,E3],urlParameters:[M],headerParameters:[nc,ni,U,q,y3,He,Me,Fe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:rn},nut={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:E$},default:{bodyMapper:O,headersMapper:C$}},queryParameters:[F,tn,SN],urlParameters:[M],headerParameters:[U,q,j,lfe,ufe],isXML:!0,serializer:rn},sut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:I$},default:{bodyMapper:O,headersMapper:w$}},queryParameters:[F,tn,dfe],urlParameters:[M],headerParameters:[U,q,j,pfe,mfe],isXML:!0,serializer:rn},out={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:S$},default:{bodyMapper:O,headersMapper:x$}},requestBody:gN,queryParameters:[F,yN,tn],urlParameters:[M],headerParameters:[ni,U,q,en,EN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:rn},iut={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:BI,headersMapper:b$},default:{bodyMapper:O,headersMapper:B$}},queryParameters:[F,sc,oc,CN,IN,tn],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},aut={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:R$},default:{bodyMapper:O,headersMapper:N$}},queryParameters:[F,tn,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,xN,bN,BN],isXML:!0,serializer:rn},cut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:T$},default:{bodyMapper:O,headersMapper:v$}},queryParameters:[F,tn,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,RN,cd],isXML:!0,serializer:rn},lut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:P$},default:{bodyMapper:O,headersMapper:_$}},queryParameters:[F,tn,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,cd,NN],isXML:!0,serializer:rn},uut={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Q$},default:{bodyMapper:O,headersMapper:D$}},queryParameters:[F,tn,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,TN,vN],isXML:!0,serializer:rn},dut={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:k$},default:{bodyMapper:O,headersMapper:L$}},queryParameters:[F,tn,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,cd,PN,_N],isXML:!0,serializer:rn},put={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:UH,headersMapper:O$},default:{bodyMapper:O,headersMapper:M$}},queryParameters:[F,TI,vI,sc,oc,tn,C3,I3],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},mut={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:qH,headersMapper:F$},default:{bodyMapper:O,headersMapper:U$}},queryParameters:[F,TI,vI,sc,oc,tn,C3,I3,ffe],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},fut={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:q$},default:{bodyMapper:O,headersMapper:G$}},queryParameters:[si,F,Ih],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn};var HN=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},Aut)}getProperties(e){return this.client.sendOperationRequest({options:e},hut)}delete(e){return this.client.sendOperationRequest({options:e},gut)}undelete(e){return this.client.sendOperationRequest({options:e},yut)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},Eut)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Cut)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Iut)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},wut)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},Sut)}setMetadata(e){return this.client.sendOperationRequest({options:e},xut)}acquireLease(e){return this.client.sendOperationRequest({options:e},but)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},But)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Rut)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Nut)}breakLease(e){return this.client.sendOperationRequest({options:e},Tut)}createSnapshot(e){return this.client.sendOperationRequest({options:e},vut)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Put)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},_ut)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},Qut)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},Dut)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},kut)}query(e){return this.client.sendOperationRequest({options:e},Lut)}getTags(e){return this.client.sendOperationRequest({options:e},Out)}setTags(e){return this.client.sendOperationRequest({options:e},Mut)}},zt=Eo(Io,!0),Aut={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:fN},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:fN},default:{bodyMapper:O,headersMapper:H$}},queryParameters:[F,ls,ic],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,wm,Afe,hfe,ar,cr,lr,nt,st,Ke],isXML:!0,serializer:zt},hut={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:$$},default:{bodyMapper:O,headersMapper:z$}},queryParameters:[F,ls,ic],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,ar,cr,lr,nt,st,Ke],isXML:!0,serializer:zt},gut={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:V$},default:{bodyMapper:O,headersMapper:W$}},queryParameters:[F,ls,ic,yfe],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,nt,st,Ke,gfe],isXML:!0,serializer:zt},yut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Y$},default:{bodyMapper:O,headersMapper:J$}},queryParameters:[F,SN],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},Eut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:j$},default:{bodyMapper:O,headersMapper:K$}},queryParameters:[F,Efe],urlParameters:[M],headerParameters:[U,q,j,Cfe,Ife],isXML:!0,serializer:zt},Cut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:X$},default:{bodyMapper:O,headersMapper:Z$}},queryParameters:[si,F],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,nt,st,Ke,ac,cc,lc,uc,dc,pc],isXML:!0,serializer:zt},Iut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ez},default:{bodyMapper:O,headersMapper:tz}},queryParameters:[F,ls,ic,w3],urlParameters:[M],headerParameters:[U,q,j,Fe,Vi,Wi],isXML:!0,serializer:zt},wut={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:rz},default:{bodyMapper:O,headersMapper:nz}},queryParameters:[F,ls,ic,w3],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},Sut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:sz},default:{bodyMapper:O,headersMapper:oz}},queryParameters:[F,ls,ic,wfe],urlParameters:[M],headerParameters:[U,q,j,Sfe],isXML:!0,serializer:zt},xut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:iz},default:{bodyMapper:O,headersMapper:az}},queryParameters:[F,wN],urlParameters:[M],headerParameters:[U,q,j,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr],isXML:!0,serializer:zt},but={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cz},default:{bodyMapper:O,headersMapper:lz}},queryParameters:[F,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,xN,bN,BN,nt,st,Ke],isXML:!0,serializer:zt},But={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uz},default:{bodyMapper:O,headersMapper:dz}},queryParameters:[F,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,RN,cd,nt,st,Ke],isXML:!0,serializer:zt},Rut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:pz},default:{bodyMapper:O,headersMapper:mz}},queryParameters:[F,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,cd,NN,nt,st,Ke],isXML:!0,serializer:zt},Nut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fz},default:{bodyMapper:O,headersMapper:Az}},queryParameters:[F,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,cd,PN,_N,nt,st,Ke],isXML:!0,serializer:zt},Tut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:hz},default:{bodyMapper:O,headersMapper:gz}},queryParameters:[F,oi],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,TN,vN,nt,st,Ke],isXML:!0,serializer:zt},vut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:yz},default:{bodyMapper:O,headersMapper:Ez}},queryParameters:[F,xfe],urlParameters:[M],headerParameters:[U,q,j,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr],isXML:!0,serializer:zt},Put={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Cz},default:{bodyMapper:O,headersMapper:Iz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,Fn,He,Me,Fe,nt,st,Ke,Vi,Wi,Hl,S3,mc,fc,Ac,hc,QN,Sm,Yi,bfe,gc],isXML:!0,serializer:zt},_ut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wz},default:{bodyMapper:O,headersMapper:Sz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,Fn,He,Me,Fe,nt,st,Ke,Vi,Wi,Dr,Hl,mc,fc,Ac,hc,Sm,Yi,gc,Bfe,$l,zl,DN,Vl],isXML:!0,serializer:zt},Qut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:xz},default:{bodyMapper:O,headersMapper:bz}},queryParameters:[F,Rfe,Tfe],urlParameters:[M],headerParameters:[U,q,j,He,Nfe],isXML:!0,serializer:zt},Dut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:AN},202:{headersMapper:AN},default:{bodyMapper:O,headersMapper:Bz}},queryParameters:[F,ls,ic,vfe],urlParameters:[M],headerParameters:[U,q,j,He,Ke,S3,Pfe],isXML:!0,serializer:zt},kut={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Rz},default:{bodyMapper:O,headersMapper:Nz}},queryParameters:[si,F,Ih],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},Lut={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:hN},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:hN},default:{bodyMapper:O,headersMapper:Tz}},requestBody:_fe,queryParameters:[F,ls,Qfe],urlParameters:[M],headerParameters:[nc,ni,U,q,He,Me,Fe,ar,cr,lr,nt,st,Ke],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:zt},Out={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:RI,headersMapper:vz},default:{bodyMapper:O,headersMapper:Pz}},queryParameters:[F,ls,ic,x3],urlParameters:[M],headerParameters:[U,q,j,He,Ke,b3,B3,R3,N3],isXML:!0,serializer:zt},Mut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:_z},default:{bodyMapper:O,headersMapper:Qz}},requestBody:Dfe,queryParameters:[F,ic,x3],urlParameters:[M],headerParameters:[nc,ni,U,q,He,Ke,b3,B3,R3,N3,ii,yc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:zt};var $N=class{static{i(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},Fut)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Uut)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},qut)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},Gut)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Hut)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},$ut)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},zut)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},Vut)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Wut)}},Wl=Eo(Io,!0),Fut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dz},default:{bodyMapper:O,headersMapper:kz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,ac,cc,lc,uc,dc,pc,Vi,Wi,Dr,Hl,Yi,gc,kfe,T3,v3],isXML:!0,serializer:Wl},Uut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Lz},default:{bodyMapper:O,headersMapper:Oz}},requestBody:bm,queryParameters:[F,kN],urlParameters:[M],headerParameters:[U,q,en,He,Me,Fe,wm,ar,cr,lr,nt,st,Ke,Dr,ii,yc,xm,Bm,P3,LN,ON,MN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Wl},qut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mz},default:{bodyMapper:O,headersMapper:Fz}},queryParameters:[F,kN],urlParameters:[M],headerParameters:[U,q,j,en,He,Me,Fe,wm,ar,cr,lr,nt,st,Ke,Dr,LN,ON,MN,Lfe],isXML:!0,serializer:Wl},Gut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Uz},default:{bodyMapper:O,headersMapper:qz}},queryParameters:[F,kN],urlParameters:[M],headerParameters:[U,q,j,en,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr,mc,fc,Ac,hc,$l,zl,Vl,P3,LN,ON,MN,wh,Ofe,Sh,Mfe],isXML:!0,serializer:Wl},Hut={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:mN,headersMapper:Gz},default:{bodyMapper:O,headersMapper:Hz}},queryParameters:[F,sc,oc,ls,_3],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,wm,nt,st,Ke],isXML:!0,serializer:Wl},$ut={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:mN,headersMapper:$z},default:{bodyMapper:O,headersMapper:zz}},queryParameters:[F,sc,oc,ls,_3,Ffe],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,wm,nt,st,Ke,Ufe],isXML:!0,serializer:Wl},zut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Vz},default:{bodyMapper:O,headersMapper:Wz}},queryParameters:[si,F],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr,T3],isXML:!0,serializer:Wl},Vut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Yz},default:{bodyMapper:O,headersMapper:Jz}},queryParameters:[si,F],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,nt,st,Ke,v3,qfe],isXML:!0,serializer:Wl},Wut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:jz},default:{bodyMapper:O,headersMapper:Kz}},queryParameters:[F,Gfe],urlParameters:[M],headerParameters:[U,q,j,Me,Fe,nt,st,Ke,Sm],isXML:!0,serializer:Wl};var zN=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},Yut)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Jut)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},jut)}seal(e){return this.client.sendOperationRequest({options:e},Kut)}},VN=Eo(Io,!0),Yut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Xz},default:{bodyMapper:O,headersMapper:Zz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,ac,cc,lc,uc,dc,pc,Vi,Wi,Dr,Yi,gc,Hfe],isXML:!0,serializer:VN},Jut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:e3},default:{bodyMapper:O,headersMapper:t3}},requestBody:bm,queryParameters:[F,Q3],urlParameters:[M],headerParameters:[U,q,en,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr,ii,yc,xm,Bm,D3,FN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:VN},jut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:r3},default:{bodyMapper:O,headersMapper:n3}},queryParameters:[F,Q3],urlParameters:[M],headerParameters:[U,q,j,en,He,Me,Fe,ar,cr,lr,nt,st,Ke,Dr,mc,fc,Ac,hc,$l,zl,Vl,ii,wh,Sh,D3,FN,UN],isXML:!0,serializer:VN},Kut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:s3},default:{bodyMapper:O,headersMapper:o3}},queryParameters:[F,$fe],urlParameters:[M],headerParameters:[U,q,j,He,Me,Fe,nt,st,FN],isXML:!0,serializer:VN};var WN=class{static{i(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Xut)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},Zut)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},edt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},tdt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},rdt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},ndt)}},bh=Eo(Io,!0),Xut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:i3},default:{bodyMapper:O,headersMapper:a3}},requestBody:bm,queryParameters:[F],urlParameters:[M],headerParameters:[U,q,en,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,ac,cc,lc,uc,dc,pc,Vi,Wi,Dr,Hl,Yi,gc,ii,yc,xm,Bm,k3],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:bh},Zut={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:c3},default:{bodyMapper:O,headersMapper:l3}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,ac,cc,lc,uc,dc,pc,Dr,Hl,mc,fc,Ac,hc,QN,Sm,Yi,$l,zl,DN,Vl,ii,k3,zfe],isXML:!0,serializer:bh},edt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:u3},default:{bodyMapper:O,headersMapper:d3}},requestBody:bm,queryParameters:[F,L3,O3],urlParameters:[M],headerParameters:[U,q,en,He,ar,cr,lr,Dr,ii,yc,xm,Bm],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:bh},tdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:p3},default:{bodyMapper:O,headersMapper:m3}},queryParameters:[F,L3,O3],urlParameters:[M],headerParameters:[U,q,j,en,He,ar,cr,lr,Dr,mc,fc,Ac,hc,$l,zl,Vl,wh,Sh,UN],isXML:!0,serializer:bh},rdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:f3},default:{bodyMapper:O,headersMapper:A3}},requestBody:Vfe,queryParameters:[F,M3],urlParameters:[M],headerParameters:[nc,ni,U,q,Fn,He,Me,Fe,ar,cr,lr,nt,st,Ke,ac,cc,lc,uc,dc,pc,Vi,Wi,Dr,Hl,Yi,gc,ii,yc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:bh},ndt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:HH,headersMapper:h3},default:{bodyMapper:O,headersMapper:g3}},queryParameters:[F,ls,M3,Wfe],urlParameters:[M],headerParameters:[U,q,j,He,Ke],isXML:!0,serializer:bh};var PI=class extends dI{static{i(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},s="azsdk-js-azure-storage-blob/12.30.0",o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,a={...n,...r,userAgentOptions:{userAgentPrefix:o},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new qN(this),this.container=new GN(this),this.blob=new HN(this),this.pageBlob=new $N(this),this.appendBlob=new zN(this),this.blockBlob=new WN(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var _I=class extends PI{static{i(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function Jfe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=odt(r),e.pathname=r,e.toString()}i(Jfe,"escapeURLPath");function sdt(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}i(sdt,"getProxyUriFromDevConnString");function Rm(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Rm,"getValueInConnString");function Nm(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=sdt(t),t=$me);let r=Rm(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",s="",o=Buffer.from("accountKey","base64"),a="";if(s=Rm(t,"AccountName"),o=Buffer.from(Rm(t,"AccountKey"),"base64"),!r){n=Rm(t,"DefaultEndpointsProtocol");let c=n.toLowerCase();if(c!=="https"&&c!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(a=Rm(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${s}.blob.${a}`}if(s){if(o.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:s,accountKey:o,proxyUri:e}}else{let n=Rm(t,"SharedAccessSignature"),s=Rm(t,"AccountName");if(s||(s=G3(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:s,accountSas:n}}}i(Nm,"extractConnectionStringParts");function odt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(odt,"escape");function Gr(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}i(Gr,"appendToURLPath");function Bh(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Bh,"setURLParameter");function F3(t,e){return new URL(t).searchParams.get(e)??void 0}i(F3,"getURLParameter");function jfe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(jfe,"getURLScheme");function QI(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(QI,"appendToURLQuery");function dt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(dt,"truncatedISO8061Date");function idt(t){return ut?Buffer.from(t).toString("base64"):btoa(t)}i(idt,"base64encode");function U3(t,e){t.length>42&&(t=t.slice(0,42));let o=t+adt(e.toString(),48-t.length,"0");return idt(o)}i(U3,"generateBlockID");function adt(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}i(adt,"padStart");function q3(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(q3,"iEqual");function G3(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:YN(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(G3,"getAccountNameFromUrl");function YN(t){let e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&Jme.includes(t.port)}i(YN,"isIpEndpointStyle");function ud(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}i(ud,"toBlobTagsString");function Kfe(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}i(Kfe,"toBlobTags");function JN(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(JN,"toTags");function H3(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}i(H3,"toQuerySerialization");function jN(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),s="or-";n[0].startsWith(s)&&(n[0]=n[0].substring(s.length));let o={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(o):e.push({policyId:n[0],rules:[o]})}return e}i(jN,"parseObjectReplicationRecord");function Rh(t){return t?t.scheme+" "+t.value:void 0}i(Rh,"httpAuthorizationToString");function*$3(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,s=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function DI(t,e,r){return kI(t,e,r).sasQueryParameters}i(DI,"generateBlobSASQueryParameters");function kI(t,e,r){let n=t.version?t.version:dN,s=e instanceof ir?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new lN(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?udt(t,s):n>="2025-07-05"?fdt(t,o):mdt(t,o);if(n>="2018-11-09")return s!==void 0?ldt(t,s):n>="2020-02-10"?pdt(t,o):ddt(t,o);if(n>="2015-04-05"){if(s!==void 0)return cdt(t,s);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'.")}i(kI,"generateBlobSASQueryParametersInternal");function cdt(t,e){if(t=vm(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c";t.blobName&&(r="b");let n;t.permissions&&(t.blobName?n=Ec.parse(t.permissions.toString()).toString():n=Cc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ji(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(cdt,"generateBlobSASQueryParameters20150405");function ldt(t,e){if(t=vm(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(ldt,"generateBlobSASQueryParameters20181109");function udt(t,e){if(t=vm(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(udt,"generateBlobSASQueryParameters20201206");function ddt(t,e){if(t=vm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(ddt,"generateBlobSASQueryParametersUDK20181109");function pdt(t,e){if(t=vm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(pdt,"generateBlobSASQueryParametersUDK20200210");function mdt(t,e){if(t=vm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(mdt,"generateBlobSASQueryParametersUDK20201206");function fdt(t,e){if(t=vm(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` -`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new ji(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(fdt,"generateBlobSASQueryParametersUDK20250705");function Tm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Tm,"getCanonicalName");function vm(t){let e=t.version?t.version:dN;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(vm,"SASSignatureValuesSanityCheckAndAutofill");var LI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=ph()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zi||r.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 te.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zi||r.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 te.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==zi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==zi||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 te.withSpan("BlobLeaseClient-releaseLease",e,async r=>de(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==zi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==zi||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 te.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions}))}async breakLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zi||r.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 te.withSpan("BlobLeaseClient-breakLease",r,async n=>{let s={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return de(await this._containerOrBlobOperation.breakLease(s))})}};var Zfe=require("node:stream");var KN=class extends Zfe.Readable{static{i(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,s,o={}){super({highWaterMark:o.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+s-1,this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,this.onProgress=o.onProgress,this.options=o,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=i(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=i(()=>{let e=new go("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=i(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=r,this.setSourceEventHandlers()}).catch(r=>{this.destroy(r)})):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}`)):this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))},"sourceErrorOrEndHandler");_destroy(e,r){this.removeSourceEventHandlers(),this.source.destroy(),r(e===null?void 0:e)}};var XN=class{static{i(this,"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 ut?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new KN(this.originalResponse.readableStreamBody,r,n,s,o)}};var oAe=require("node:stream");var z3=new Uint8Array([79,98,106,1]),eAe="avro.codec",tAe="avro.schema";var Xt=class t{static{i(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let s=await e.read(r,{abortSignal:n.abortSignal});if(s.length!==r)throw new Error("Hit stream end.");return s}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,s=0,o,a,c;do o=await t.readByte(e,r),a=o&128,n|=(o&127)<Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let s=await t.readString(e,n),o=await r(e,n);return{key:s,value:o}}static async readMap(e,r,n={}){let s=i((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),o=await t.readArray(e,s,n),a={};for(let c of o)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let s=[];for(let o=await t.readLong(e,n);o!==0;o=await t.readLong(e,n))for(o<0&&(await t.readLong(e,n),o=-o);o--;){let a=await r(e,n);s.push(a)}return s}},Pm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Pm||(Pm={}));var nn;(function(t){t.NULL="null",t.BOOLEAN="boolean",t.INT="int",t.LONG="long",t.FLOAT="float",t.DOUBLE="double",t.BYTES="bytes",t.STRING="string"})(nn||(nn={}));var Yl=class t{static{i(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case nn.NULL:case nn.BOOLEAN:case nn.INT:case nn.LONG:case nn.FLOAT:case nn.DOUBLE:case nn.BYTES:case nn.STRING:return new V3(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new Y3(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Pm.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}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let s of e.fields)n[s.name]=t.fromSchema(s.type);return new j3(n,e.name);case Pm.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 W3(e.symbols);case Pm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new J3(t.fromSchema(e.values));case Pm.ARRAY:case Pm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},V3=class extends Yl{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case nn.NULL:return Xt.readNull();case nn.BOOLEAN:return Xt.readBoolean(e,r);case nn.INT:return Xt.readInt(e,r);case nn.LONG:return Xt.readLong(e,r);case nn.FLOAT:return Xt.readFloat(e,r);case nn.DOUBLE:return Xt.readDouble(e,r);case nn.BYTES:return Xt.readBytes(e,r);case nn.STRING:return Xt.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},W3=class extends Yl{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await Xt.readInt(e,r);return this._symbols[n]}},Y3=class extends Yl{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await Xt.readInt(e,r);return this._types[n].read(e,r)}},J3=class extends Yl{static{i(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=i((s,o)=>this._itemType.read(s,o),"readItemMethod");return Xt.readMap(e,n,r)}},j3=class extends Yl{static{i(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let s in this._fields)Object.prototype.hasOwnProperty.call(this._fields,s)&&(n[s]=await this._fields[s].read(e,r));return n}};function K3(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r0)for(let o=0;o0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let r=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let n=await Xt.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!K3(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await Xt.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await Xt.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var MI=class{static{i(this,"AvroReadable")}};var sAe=require("buffer");var nAe=new go("Reading from the avro stream was aborted."),FI=class extends MI{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?sAe.Buffer.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,r={}){if(r.abortSignal?.aborted)throw nAe;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.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((s,o)=>{let a=i(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=i(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),s(this.toUint8Array(d)))},"readableCallback"),l=i(()=>{a(),o()},"rejectCallback"),u=i(()=>{a(),o(nAe)},"abortHandler");this._readable.on("readable",c),this._readable.once("error",l),this._readable.once("end",l),this._readable.once("close",l),r.abortSignal&&r.abortSignal.addEventListener("abort",u)})}};var ZN=class extends oAe.Readable{static{i(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new OI(new FI(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let s=r.data;if(!(s instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(s))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let s=r.bytesScanned;if(typeof s!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:s})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let s=r.totalBytes;if(typeof s!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:s})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let s=r.fatal;if(typeof s!="boolean")throw Error("Invalid fatal in avro error record.");let o=r.name;if(typeof o!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:o,isFatal:s,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var eT=class{static{i(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return ut?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new ZN(this.originalResponse.readableStreamBody,r)}};var X3;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(X3||(X3={}));var Z3;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(Z3||(Z3={}));function dd(t){if(t!==void 0)return t}i(dd,"toAccessTier");function Hr(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Hme)}i(Hr,"ensureCpkIfSpecified");var eV;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(eV||(eV={}));function tT(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}i(tT,"rangeResponseFromModel");var $Ae=R(HAe(),1);var dT=class extends $Ae.Poller{static{i(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:s=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=HI({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return tI(this.intervalInMs)}},Xdt=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?HI(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,HI(r)):(r.isCancelled=!0,HI(r))},"cancel"),Zdt=i(async function(e={}){let r=this.state,{blobClient:n,copySource:s,startCopyFromURLOptions:o}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(s,o);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return HI(r)},"update"),ept=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function HI(t){return{state:{...t},cancel:Xdt,toString:ept,update:Zdt}}i(HI,"makeBlobBeginCopyFromURLPollOperation");function ks(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}i(ks,"rangeToString");var zAe=require("events");var $I;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})($I||($I={}));var zI=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=$I.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new zAe.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(r){this.emitter.emit("error",r)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,r)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=$I.Error,r(n)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit("finish");return}for(;this.actives{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(o>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,s));let p=o+d.length>a?a-o:d.length;e.fill(d.slice(0,p),r+o,r+o+p),o+=p}),t.on("end",()=>{clearTimeout(u),o{clearTimeout(u),l(d)})})}i(WAe,"streamToBuffer");async function YAe(t,e){return new Promise((r,n)=>{let s=pT.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(YAe,"readStreamToLocalFile");var JAe=VAe.default.promisify(pT.default.stat),jAe=pT.default.createReadStream;var Jl=class t extends Nh{static{i(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,s){s=s||{};let o,a;if(Gl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof $t||yo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Sr(new $t,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Nm(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=rd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new $t,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=F3(this.url,ql.Parameters.SNAPSHOT),this._versionId=F3(this.url,ql.Parameters.VERSIONID)}withSnapshot(e){return new t(Bh(this.url,ql.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Bh(this.url,ql.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new fT(this.url,this.pipeline)}getBlockBlobClient(){return new Ph(this.url,this.pipeline)}getPageBlobClient(){return new AT(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Hr(n.customerProvidedKey,this.isHttps),te.withSpan("BlobClient-download",n,async s=>{let o=de(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:ut?void 0:n.onProgress},range:e===0&&!r?void 0:ks({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:jN(o.objectReplicationRules)};if(!ut)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),o.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new XN(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:ks({count:e+o.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return te.withSpan("BlobClient-exists",e,async r=>{try{return Hr(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===Wme||n.details.errorCode===Yme))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},Hr(e.customerProvidedKey,this.isHttps),te.withSpan("BlobClient-getProperties",e,async r=>{let n=de(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:jN(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},te.withSpan("BlobClient-delete",e,async r=>de(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async deleteIfExists(e={}){return te.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=de(await this.delete(r));return{succeeded:!0,...n,_response:n._response}}catch(n){if(n.details?.errorCode==="BlobNotFound")return{succeeded:!1,...n.response?.parsedHeaders,_response:n.response};throw n}})}async undelete(e={}){return te.withSpan("BlobClient-undelete",e,async r=>de(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},Hr(r.customerProvidedKey,this.isHttps),te.withSpan("BlobClient-setHTTPHeaders",r,async n=>de(await this.blobContext.setHttpHeaders({abortSignal:r.abortSignal,blobHttpHeaders:e,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,r={}){return r.conditions=r.conditions||{},Hr(r.customerProvidedKey,this.isHttps),te.withSpan("BlobClient-setMetadata",r,async n=>de(await this.blobContext.setMetadata({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,r={}){return te.withSpan("BlobClient-setTags",r,async n=>de(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:Kfe(e)})))}async getTags(e={}){return te.withSpan("BlobClient-getTags",e,async r=>{let n=de(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,tags:JN({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new LI(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Hr(e.customerProvidedKey,this.isHttps),te.withSpan("BlobClient-createSnapshot",e,async r=>de(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:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:i((...o)=>this.abortCopyFromURL(...o),"abortCopyFromURL"),getProperties:i((...o)=>this.getProperties(...o),"getProperties"),startCopyFromURL:i((...o)=>this.startCopyFromURL(...o),"startCopyFromURL")},s=new dT({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await s.poll(),s}async abortCopyFromURL(e,r={}){return te.withSpan("BlobClient-abortCopyFromURL",r,async n=>de(await this.blobContext.abortCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},te.withSpan("BlobClient-syncCopyFromURL",r,async n=>de(await this.blobContext.copyFromURL(e,{abortSignal:r.abortSignal,metadata:r.metadata,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:r.sourceContentMD5,copySourceAuthorization:Rh(r.sourceAuthorization),tier:dd(r.tier),blobTagsString:ud(r.tags),immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,encryptionScope:r.encryptionScope,copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,r={}){return te.withSpan("BlobClient-setAccessTier",r,async n=>de(await this.blobContext.setTier(dd(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,s={}){let o,a=0,c=0,l=s;e instanceof Buffer?(o=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),te.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let f=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=f.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${f.contentLength}`)}if(!o)try{o=Buffer.alloc(c)}catch(f){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${f.message}`)}if(o.length{let A=a+c;f+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await YAe(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}else if(YN(n)){let s=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=s[2],r=s[4]}else{let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return te.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},de(await this.blobContext.startCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions.ifMatch,sourceIfModifiedSince:r.sourceConditions.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions.ifUnmodifiedSince,sourceIfTags:r.sourceConditions.tagConditions},immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,rehydratePriority:r.rehydratePriority,tier:dd(r.tier),blobTagsString:ud(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof ir))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=DI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(QI(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof ir))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return kI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let s=DI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(QI(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return kI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return te.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>de(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return te.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>de(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return te.withSpan("BlobClient-setLegalHold",r,async n=>de(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return te.withSpan("BlobClient-getAccountInfo",e,async r=>de(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},fT=class t extends Jl{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Gl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof $t||yo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,o=Sr(new $t,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Nm(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=rd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new $t,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(Bh(this.url,ql.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Hr(e.customerProvidedKey,this.isHttps),te.withSpan("AppendBlobClient-create",e,async r=>de(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:ud(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:QH};return te.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=de(await this.create({...n,conditions:r}));return{succeeded:!0,...s,_response:s._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async seal(e={}){return e.conditions=e.conditions||{},te.withSpan("AppendBlobClient-seal",e,async r=>de(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async appendBlock(e,r,n={}){return n.conditions=n.conditions||{},Hr(n.customerProvidedKey,this.isHttps),te.withSpan("AppendBlobClient-appendBlock",n,async s=>de(await this.appendBlobContext.appendBlock(r,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:s.tracingOptions})))}async appendBlockFromURL(e,r,n,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},Hr(s.customerProvidedKey,this.isHttps),te.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>de(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:ks({offset:r,count:n}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:Rh(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},Ph=class t extends Jl{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Gl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof $t||yo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Sr(new $t,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Nm(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=rd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new $t,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(Bh(this.url,ql.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(Hr(r.customerProvidedKey,this.isHttps),!ut)throw new Error("This operation currently is only supported in Node.js.");return te.withSpan("BlockBlobClient-query",r,async n=>{let s=de(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:H3(r.inputTextConfiguration),outputSerialization:H3(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new eT(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},Hr(n.customerProvidedKey,this.isHttps),te.withSpan("BlockBlobClient-upload",n,async s=>de(await this.blockBlobContext.upload(r,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:dd(n.tier),blobTagsString:ud(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},Hr(r.customerProvidedKey,this.isHttps),te.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>de(await this.blockBlobContext.putBlobFromUrl(0,e,{...r,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince,sourceIfTags:r.sourceConditions?.tagConditions},cpkInfo:r.customerProvidedKey,copySourceAuthorization:Rh(r.sourceAuthorization),tier:dd(r.tier),blobTagsString:ud(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return Hr(s.customerProvidedKey,this.isHttps),te.withSpan("BlockBlobClient-stageBlock",s,async o=>de(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,r,n=0,s,o={}){return Hr(o.customerProvidedKey,this.isHttps),te.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>de(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!s?void 0:ks({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Rh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},Hr(r.customerProvidedKey,this.isHttps),te.withSpan("BlockBlobClient-commitBlockList",r,async n=>de(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:dd(r.tier),blobTagsString:ud(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return te.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=de(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s})}async uploadData(e,r={}){return te.withSpan("BlockBlobClient-uploadData",r,async n=>{if(ut){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,n)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)}})}async uploadBrowserData(e,r={}){return te.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)})}async uploadSeekableInternal(e,r,n={}){let s=n.blockSize??0;if(s<0||s>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let o=n.maxSingleShotSize??268435456;if(o<0||o>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(s===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>o&&(s=Math.ceil(r/5e4),s<4194304&&(s=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),te.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=o)return de(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/s)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=ph(),d=0,p=new zI(n.concurrency);for(let m=0;m{let f=U3(u,m),A=s*m,E=(m===c-1?r:A+s)-A;l.push(f),await this.stageBlock(f,e(A,E),E,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=E,n.onProgress&&n.onProgress({loadedBytes:d})});return await p.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return te.withSpan("BlockBlobClient-uploadFile",r,async n=>{let s=(await JAe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>jAe(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,s={}){return s.blobHTTPHeaders||(s.blobHTTPHeaders={}),s.conditions||(s.conditions={}),te.withSpan("BlockBlobClient-uploadStream",s,async o=>{let a=0,c=ph(),l=0,u=[];return await new nN(e,r,n,async(p,m)=>{let f=U3(c,a);u.push(f),a++,await this.stageBlock(f,p,m,{customerProvidedKey:s.customerProvidedKey,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions}),l+=m,s.onProgress&&s.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),de(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},AT=class t extends Jl{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Gl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof $t||yo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,o=Sr(new $t,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Nm(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=rd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new $t,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(Bh(this.url,ql.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},Hr(r.customerProvidedKey,this.isHttps),te.withSpan("PageBlobClient-create",r,async n=>de(await this.pageBlobContext.create(0,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,blobSequenceNumber:r.blobSequenceNumber,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:dd(r.tier),blobTagsString:ud(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return te.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:QH},o=de(await this.create(e,{...r,conditions:s,tracingOptions:n.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async uploadPages(e,r,n,s={}){return s.conditions=s.conditions||{},Hr(s.customerProvidedKey,this.isHttps),te.withSpan("PageBlobClient-uploadPages",s,async o=>de(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:ks({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async uploadPagesFromURL(e,r,n,s,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},Hr(o.customerProvidedKey,this.isHttps),te.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>de(await this.pageBlobContext.uploadPagesFromURL(e,ks({offset:r,count:s}),0,ks({offset:n,count:s}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Rh(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},te.withSpan("PageBlobClient-clearPages",n,async s=>de(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:ks({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},te.withSpan("PageBlobClient-getPageRanges",n,async s=>{let o=de(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:ks({offset:e,count:r}),tracingOptions:s.tracingOptions}));return tT(o)})}async listPageRangesSegment(e=0,r,n,s={}){return te.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>de(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:ks({offset:e,count:r}),marker:n,maxPageSize:s.maxPageSize,tracingOptions:o.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,s={}){let o;if(n||n===void 0)do o=await this.listPageRangesSegment(e,r,n,s),n=o.continuationToken,yield await o;while(n)}async*listPageRangeItems(e=0,r,n={}){let s;for await(let o of this.listPageRangeItemSegments(e,r,s,n))yield*$3(o)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let s=this.listPageRangeItems(e,r,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:i((o={})=>this.listPageRangeItemSegments(e,r,o.continuationToken,{maxPageSize:o.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,s={}){return s.conditions=s.conditions||{},te.withSpan("PageBlobClient-getPageRangesDiff",s,async o=>{let a=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:ks({offset:e,count:r}),tracingOptions:o.tracingOptions}));return tT(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return te.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>de(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:ks({offset:e,count:r}),marker:s,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,s,o){let a;if(s||s===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,s,o),s=a.continuationToken,yield await a;while(s)}async*listPageRangeDiffItems(e,r,n,s){let o;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,o,s))yield*$3(a)}listPageRangesDiff(e,r,n,s={}){s.conditions=s.conditions||{};let o=this.listPageRangeDiffItems(e,r,n,{...s});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:i((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,s={}){return s.conditions=s.conditions||{},te.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",s,async o=>{let a=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:ks({offset:e,count:r}),tracingOptions:o.tracingOptions}));return tT(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},te.withSpan("PageBlobClient-resize",r,async n=>de(await this.pageBlobContext.resize(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,r,n={}){return n.conditions=n.conditions||{},te.withSpan("PageBlobClient-updateSequenceNumber",n,async s=>de(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions})))}async startCopyIncremental(e,r={}){return te.withSpan("PageBlobClient-startCopyIncremental",r,async n=>de(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var KAe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(KAe||(KAe={}));var XAe;(function(t){t.AES256="AES256"})(XAe||(XAe={}));var hT=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var _h=class extends Error{static{i(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} -If 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(r),this.code=e,this.name="NetworkError"}};_h.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Dm=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More 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`),this.name="UsageError"}};Dm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var VI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var dpt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},IV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ge(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ZAe(t,e,r){return dpt(this,void 0,void 0,function*(){var n;let s=new Jl(t),o=s.getBlockBlobClient(),a=new IV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new hT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Cr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(ZAe,"uploadCacheArchiveSDK");var the=R(require("buffer"),1),Ic=R(require("fs"),1),rhe=R(require("stream"),1),nhe=R(require("util"),1);var gT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function yT(t){return t?t>=200&&t<300:!1}i(yT,"isSuccessStatusCode");function ppt(t){return t?t>=500:!0}i(ppt,"isServerErrorStatusCode");function mpt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(mpt,"isRetryableStatusCode");function fpt(t){return gT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(fpt,"sleep");function ehe(t,e,r){return gT(this,arguments,void 0,function*(n,s,o,a=GB,c=HB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(A){l&&(p=l(A)),f=!0,u=A.message}if(p&&(m=o(p),!ppt(m)))return p;if(m&&(f=mpt(m),u=`Cache service responded with ${m}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){T(`${n} - Error is not retryable`);break}yield fpt(c),d++}throw Error(`${n} failed: ${u}`)})}i(ehe,"retry");function WI(t,e){return gT(this,arguments,void 0,function*(r,n,s=GB,o=HB){return yield ehe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Wa)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(WI,"retryTypedResponse");function Qh(t,e){return gT(this,arguments,void 0,function*(r,n,s=GB,o=HB){return yield ehe(r,n,a=>a.message.statusCode,s,o)})}i(Qh,"retryHttpClientResponse");var ai=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Apt(t,e){return ai(this,void 0,void 0,function*(){yield nhe.promisify(rhe.pipeline)(t.message,e)})}i(Apt,"pipeResponseToStream");var ET=class{static{i(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`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;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ge(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function CT(t,e){return ai(this,void 0,void 0,function*(){let r=Ic.createWriteStream(e),n=new po("actions/cache"),s=yield Qh("downloadCache",()=>ai(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(Yq,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${Yq} ms`)}),yield Apt(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=Va(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else T("Unable to validate download, no Content-Length header")})}i(CT,"downloadCacheHttpClient");function she(t,e,r){return ai(this,void 0,void 0,function*(){var n;let s=yield Ic.promises.open(e,"w"),o=new po("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Qh("downloadCacheMetadata",()=>ai(this,void 0,void 0,function*(){return yield o.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let I=0;Iai(this,void 0,void 0,function*(){return yield hpt(o,t,I,x)}),"promiseGetter")})}u.reverse();let p=0,m=0,f=new ET(l);f.startDisplayTimer();let A=f.onProgress(),h=[],E,y=i(()=>ai(this,void 0,void 0,function*(){let I=yield Promise.race(Object.values(h));yield s.write(I.buffer,0,I.count,I.offset),p--,delete h[I.offset],m+=I.count,A({loadedBytes:m})}),"waitAndWrite");for(;E=u.pop();)h[E.offset]=E.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield y());for(;p>0;)yield y()}finally{o.dispose(),yield s.close()}})}i(she,"downloadCacheHttpClientConcurrent");function hpt(t,e,r,n){return ai(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield ihe(3e4,gpt(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(o>=5)throw a;o++}})}i(hpt,"downloadSegmentRetry");function gpt(t,e,r,n){return ai(this,void 0,void 0,function*(){let s=yield Qh("downloadCachePart",()=>ai(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!s.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield s.readBodyBuffer()}})}i(gpt,"downloadSegment");function ohe(t,e,r){return ai(this,void 0,void 0,function*(){var n;let s=new Ph(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield s.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)T("Unable to determine content length, downloading file with http-client..."),yield CT(t,e);else{let c=Math.min(134217728,the.constants.MAX_LENGTH),l=new ET(a),u=Ic.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,p=d.signal;for(;!l.isDone();){let m=l.segmentOffset+l.segmentSize,f=Math.min(c,a-m);l.nextSegment(f);let A=yield ihe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(m,f,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(A==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(A)&&Ic.writeFileSync(u,A)}}finally{l.stopDisplayTimer(),Ic.closeSync(u)}}})}i(ohe,"downloadCacheStorageSDK");var ihe=i((t,e)=>ai(void 0,void 0,void 0,function*(){let r,n=new Promise(s=>{r=setTimeout(()=>s("timeout"),t)});return Promise.race([e,n]).then(s=>(clearTimeout(r),s))}),"promiseWithTimeout");function wV(t){let e={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:33554432};return t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.uploadConcurrency=="number"&&(e.uploadConcurrency=t.uploadConcurrency),typeof t.uploadChunkSize=="number"&&(e.uploadChunkSize=t.uploadChunkSize)),e.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?e.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),e.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?e.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Upload concurrency: ${e.uploadConcurrency}`),T(`Upload chunk size: ${e.uploadChunkSize}`),e}i(wV,"getUploadOptions");function ahe(t){let e={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.concurrentBlobDownloads=="boolean"&&(e.concurrentBlobDownloads=t.concurrentBlobDownloads),typeof t.downloadConcurrency=="number"&&(e.downloadConcurrency=t.downloadConcurrency),typeof t.timeoutInMs=="number"&&(e.timeoutInMs=t.timeoutInMs),typeof t.segmentTimeoutInMs=="number"&&(e.segmentTimeoutInMs=t.segmentTimeoutInMs),typeof t.lookupOnly=="boolean"&&(e.lookupOnly=t.lookupOnly));let r=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return r&&!isNaN(Number(r))&&isFinite(Number(r))&&(e.segmentTimeoutInMs=Number(r)*60*1e3),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Download concurrency: ${e.downloadConcurrency}`),T(`Request timeout (ms): ${e.timeoutInMs}`),T(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),T(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),T(`Lookup only: ${e.lookupOnly}`),e}i(ahe,"getDownloadOptions");function SV(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}i(SV,"isGhes");function YI(){return SV()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(YI,"getCacheServiceVersion");var che=["none","read","write","write-only"];function xV(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(xV,"getCacheMode");function lhe(t){return che.includes(t)?t==="read"||t==="write":!0}i(lhe,"isCacheReadable");function uhe(t){return che.includes(t)?t==="write"||t==="write-only":!0}i(uhe,"isCacheWritable");function IT(){let t=YI();switch(t){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: ${t}`)}}i(IT,"getCacheServiceURL");var fhe=R(mhe(),1);function wT(){return`@actions/cache-${fhe.version}`}i(wT,"getUserAgentString");var Ls=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function JI(t){let e=IT();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return T(`Resource Url: ${r}`),r}i(JI,"getCacheApiUrl");function Cpt(t,e){return`${t};api-version=${e}`}i(Cpt,"createAcceptHeader");function Ipt(){return{headers:{Accept:Cpt("application/json","6.0-preview.1")}}}i(Ipt,"getRequestOptions");function bV(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new sh(t);return new po(wT(),[e],Ipt())}i(bV,"createHttpClient");function ghe(t,e,r){return Ls(this,void 0,void 0,function*(){var n;let s=bV(),o=nh(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield WI("getCacheEntry",()=>Ls(this,void 0,void 0,function*(){return s.getJson(JI(a))}));if(c.statusCode===204)return tm()&&(yield wpt(t[0],s,o)),null;if(!yT(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes($B)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return Ln(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(ghe,"getCacheEntry");function wpt(t,e,r){return Ls(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield WI("listCache",()=>Ls(this,void 0,void 0,function*(){return e.getJson(JI(n))}));if(s.statusCode===200){let o=s.result,a=o?.totalCount;if(a&&a>0){T(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key -Other caches with similar key:`);for(let c of o?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(wpt,"printCachesListForDiagnostics");function BV(t,e,r){return Ls(this,void 0,void 0,function*(){let n=new hhe.URL(t),s=ahe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ohe(t,e,s):s.concurrentBlobDownloads?yield she(t,e,s):yield CT(t,e):yield CT(t,e)})}i(BV,"downloadCache");function yhe(t,e,r){return Ls(this,void 0,void 0,function*(){let n=bV(),s=nh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield WI("reserveCache",()=>Ls(this,void 0,void 0,function*(){return n.postJson(JI("caches"),o)}))})}i(yhe,"reserveCache");function Ahe(t,e){return`bytes ${t}-${e}/*`}i(Ahe,"getContentRange");function Spt(t,e,r,n,s){return Ls(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ahe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":Ahe(n,s)},a=yield Qh(`uploadChunk (start: ${n}, end: ${s})`,()=>Ls(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!yT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Spt,"uploadChunk");function xpt(t,e,r,n){return Ls(this,void 0,void 0,function*(){let s=Va(r),o=JI(`caches/${e.toString()}`),a=Dh.openSync(r,"r"),c=wV(n),l=Xq("uploadConcurrency",c.uploadConcurrency),u=Xq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ls(this,void 0,void 0,function*(){for(;pDh.createReadStream(r,{fd:a,start:f,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),f,A)}})))}finally{Dh.closeSync(a)}})}i(xpt,"uploadFile");function bpt(t,e,r){return Ls(this,void 0,void 0,function*(){let n={size:r};return yield WI("commitCache",()=>Ls(this,void 0,void 0,function*(){return t.postJson(JI(`caches/${e.toString()}`),n)}))})}i(bpt,"commitCache");function RV(t,e,r,n){return Ls(this,void 0,void 0,function*(){if(wV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ZAe(r,e,n)}else{let o=bV();T("Upload cache"),yield xpt(o,t,e,n),T("Commiting cache");let a=Va(e);ge(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield bpt(o,t,a);if(!yT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ge("Cache saved successfully")}})}i(RV,"saveCache");var pge=R(oge(),1),Br=R(br(),1),So=R(br(),1),Fm=R(br(),1),Um=R(br(),1),qm=R(br(),1);var I4=R(br(),1),w4=R(br(),1),lge=R(br(),1),uge=R(br(),1),dge=R(br(),1);var y4=R(br(),1),E4=R(br(),1),ige=R(br(),1),age=R(br(),1),cge=R(br(),1);var C4=class extends cge.MessageType{static{i(this,"CacheScope$Type")}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){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,age.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ige.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posav,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,uge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,lge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,Um.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{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){let r={key:"",sizeBytes:"0",version:""};return globalThis.Object.defineProperty(r,Um.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{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){let r={key:"",restoreKeys:[],version:""};return globalThis.Object.defineProperty(r,Um.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Fm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posP4.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=_4.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>Q4.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=D4.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>k4.fromJson(s,{ignoreUnknownFields:!0}))}};function mge(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ln(r),Ln(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(mge,"maskSigUrl");function fge(t){if(typeof t!="object"||t===null){T("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&mge(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&mge(t.signed_download_url)}i(fge,"maskSecretUrls");var lv=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},L4=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=Mue();this.baseUrl=IT(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new po(e,[new sh(o)])}request(e,r,n,s){return lv(this,void 0,void 0,function*(){let o=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;T(`[Request] ${r} ${o}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>lv(this,void 0,void 0,function*(){return this.httpClient.post(o,JSON.stringify(s),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return lv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&Cr(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new VI(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof Dm||c instanceof VI)throw c;if(_h.isNetworkErrorCode(c?.code))throw new _h(c?.code);o=!0,n=c.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ge(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[At.BadGateway,At.GatewayTimeout,At.InternalServerError,At.ServiceUnavailable].includes(e):!1}sleep(e){return lv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function O4(t){let e=new L4(wT(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new cv(e)}i(O4,"internalCacheTwirpClient");var uv=require("fs"),xo=R(require("path"),1);var Kl=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ad=process.platform==="win32";function kft(){return Kl(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Oue(),e=Que;if(t)return{path:t,type:uo.GNU};if((0,uv.existsSync)(e))return{path:e,type:uo.BSD};break}case"darwin":{let t=yield Bs("gtar",!1);return t?{path:t,type:uo.GNU}:{path:yield Bs("tar",!0),type:uo.BSD}}default:break}return{path:yield Bs("tar",!0),type:uo.GNU}})}i(kft,"getTarPath");function Lft(t,e,r){return Kl(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=Xu(s),u="cache.tar",d=Age(),p=n.type===uo.BSD&&s!==os.Gzip&&Ad;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),"--files-from",jq);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${xo.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),"-P");break}if(n.type===uo.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(Lft,"getTarArgs");function M4(t,e){return Kl(this,arguments,void 0,function*(r,n,s=""){let o,a=yield kft(),c=yield Lft(a,r,n,s),l=n!=="create"?yield Oft(a,r,s):yield Mft(a,r),u=a.type===uo.BSD&&r!==os.Gzip&&Ad;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],u?o:[o.join(" ")]})}i(M4,"getCommands");function Age(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(Age,"getWorkingDirectory");function Oft(t,e,r){return Kl(this,void 0,void 0,function*(){let n=t.type===uo.BSD&&e!==os.Gzip&&Ad;switch(e){case os.Zstd:return n?["zstd -d --long=30 --force -o",$C,r.replace(new RegExp(`\\${xo.sep}`,"g"),"/")]:["--use-compress-program",Ad?'"zstd -d --long=30"':"unzstd --long=30"];case os.ZstdWithoutLong:return n?["zstd -d --force -o",$C,r.replace(new RegExp(`\\${xo.sep}`,"g"),"/")]:["--use-compress-program",Ad?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(Oft,"getDecompressionProgram");function Mft(t,e){return Kl(this,void 0,void 0,function*(){let r=Xu(e),n=t.type===uo.BSD&&e!==os.Gzip&&Ad;switch(e){case os.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),$C]:["--use-compress-program",Ad?'"zstd -T0 --long=30"':"zstdmt --long=30"];case os.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${xo.sep}`,"g"),"/"),$C]:["--use-compress-program",Ad?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(Mft,"getCompressionProgram");function F4(t,e){return Kl(this,void 0,void 0,function*(){for(let r of t)try{yield $u(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}i(F4,"execCommands");function uw(t,e){return Kl(this,void 0,void 0,function*(){let r=yield M4(e,"list",t);yield F4(r)})}i(uw,"listTar");function U4(t,e){return Kl(this,void 0,void 0,function*(){let r=Age();yield em(r);let n=yield M4(e,"extract",t);yield F4(n)})}i(U4,"extractTar");function q4(t,e,r){return Kl(this,void 0,void 0,function*(){(0,uv.writeFileSync)(xo.join(t,jq),e.join(` -`));let n=yield M4(r,"create");yield F4(n,t)})}i(q4,"createTar");var jh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Zi=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Gm=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},G4="cache write denied:",dv=class t extends Gm{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},hge=$B,pv=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},mv=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function gge(t){if(!t||t.length===0)throw new Zi("Path Validation Error: At least one directory or file path is required")}i(gge,"checkPaths");function H4(t){if(t.length>512)throw new Zi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Zi(`Key Validation Error: ${t} cannot contain commas.`)}i(H4,"checkKey");function $4(){return YI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i($4,"isFeatureAvailable");function yge(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=YI();T(`Cache service version: ${u}`),gge(s);let d=xV();if(!lhe(d)){ge(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield Uft(s,o,a,c,l):yield Fft(s,o,a,c,l)})}i(yge,"restoreCache");function Fft(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Zi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)H4(f);let p=yield WC(),m="";try{let f;try{f=yield ghe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let E=(u=h?.message)!==null&&u!==void 0?u:"";throw E.includes(hge)?new pv(E):h}if(!f?.archiveLocation)return;if(c?.lookupOnly)return ge("Lookup only - skipping download"),f.cacheKey;m=dw.join(yield zC(),Xu(p)),T(`Archive Path: ${m}`),yield BV(f.archiveLocation,m,c),tm()&&(yield uw(m,p));let A=Va(m);return ge(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield U4(m,p),ge("Cache restored successfully"),f.cacheKey}catch(f){let A=f;if(A.name===Zi.name)throw f;A instanceof Wa&&typeof A.statusCode=="number"&&A.statusCode>=500?WA(`Failed to restore: ${f.message}`):Cr(`Failed to restore: ${f.message}`)}finally{try{yield VC(m)}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(Fft,"restoreCacheV1");function Uft(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Zi("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)H4(m);let p="";try{let m=O4(),f=yield WC(),A={key:o,restoreKeys:a,version:nh(s,f,l)},h;try{h=yield m.GetCacheEntryDownloadURL(A)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(hge)?new pv(x):I}if(!h.ok){T(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==h.matchedKey?ge(`Cache hit for restore-key: ${h.matchedKey}`):ge(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return ge("Lookup only - skipping download"),h.matchedKey;p=dw.join(yield zC(),Xu(f)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield BV(h.signedDownloadUrl,p,c);let y=Va(p);return ge(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),tm()&&(yield uw(p,f)),yield U4(p,f),ge("Cache restored successfully"),h.matchedKey}catch(m){let f=m;if(f.name===Zi.name)throw m;f instanceof Wa&&typeof f.statusCode=="number"&&f.statusCode>=500?WA(`Failed to restore: ${m.message}`):Cr(`Failed to restore: ${m.message}`)}finally{try{p&&(yield VC(p))}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(Uft,"restoreCacheV2");function z4(t,e,r){return jh(this,arguments,void 0,function*(n,s,o,a=!1){let c=YI();T(`Cache service version: ${c}`),gge(n),H4(s);let l=xV();return uhe(l)?c==="v2"?yield Gft(n,s,o,a):yield qft(n,s,o,a):(ge(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),T(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}i(z4,"saveCache");function qft(t,e,r){return jh(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,m;let f=yield WC(),A=-1,h=yield Kq(n);if(T("Cache Paths:"),T(`${JSON.stringify(h)}`),h.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.");let E=yield zC(),y=dw.join(E,Xu(f));T(`Archive Path: ${y}`);try{yield q4(E,h,f),tm()&&(yield uw(y,f));let I=10*1024*1024*1024,x=Va(y);if(T(`File Size: ${x}`),x>I&&!SV())throw new Error(`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let b=yield yhe(s,n,{compressionMethod:f,enableCrossOsArchive:a,cacheSize:x});if(!((c=b?.result)===null||c===void 0)&&c.cacheId)A=(l=b?.result)===null||l===void 0?void 0:l.cacheId;else{if(b?.statusCode===400)throw new Error((d=(u=b?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the data cap limit, not saving cache.`);{let N=(p=b?.error)===null||p===void 0?void 0:p.message;throw N?.startsWith(G4)?new dv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Gm(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(m=b?.error)===null||m===void 0?void 0:m.message}`)}}T(`Saving Cache (ID: ${A})`),yield RV(A,y,"",o)}catch(I){let x=I;if(x.name===Zi.name)throw I;x.name===Gm.name?ge(`Failed to save: ${x.message}`):x instanceof Wa&&typeof x.statusCode=="number"&&x.statusCode>=500?WA(`Failed to save: ${x.message}`):Cr(`Failed to save: ${x.message}`)}finally{try{yield VC(y)}catch(I){T(`Failed to delete archive: ${I}`)}}return A})}i(qft,"saveCacheV1");function Gft(t,e,r){return jh(this,arguments,void 0,function*(n,s,o,a=!1){var c;o=Object.assign(Object.assign({},o),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield WC(),u=O4(),d=-1,p=yield Kq(n);if(T("Cache Paths:"),T(`${JSON.stringify(p)}`),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.");let m=yield zC(),f=dw.join(m,Xu(l));T(`Archive Path: ${f}`);try{yield q4(m,p,l),tm()&&(yield uw(f,l));let A=Va(f);T(`File Size: ${A}`),o.archiveSizeBytes=A,T("Reserving Cache");let h=nh(n,l,a),E={key:s,version:h},y;try{let b=yield u.CreateCacheEntry(E);if(!b.ok)throw b.message&&!b.message.startsWith(G4)&&Cr(`Cache reservation failed: ${b.message}`),new Error(b.message||"Response was not ok");y=b.signedUploadUrl}catch(b){T(`Failed to reserve cache: ${b}`);let N=(c=b?.message)!==null&&c!==void 0?c:"";throw N.startsWith(G4)?new dv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Gm(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${f}`),yield RV(d,f,y,o);let I={key:s,version:h,sizeBytes:`${A}`},x=yield u.FinalizeCacheEntryUpload(I);if(T(`FinalizeCacheEntryUploadResponse: ${x.ok}`),!x.ok)throw x.message?new mv(x.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(x.entryId)}catch(A){let h=A;if(h.name===Zi.name)throw A;h.name===Gm.name?ge(`Failed to save: ${h.message}`):h.name===mv.name?Cr(h.message):h instanceof Wa&&typeof h.statusCode=="number"&&h.statusCode>=500?WA(`Failed to save: ${h.message}`):Cr(`Failed to save: ${h.message}`)}finally{try{yield VC(f)}catch(A){T(`Failed to delete archive: ${A}`)}}return d})}i(Gft,"saveCacheV2");var Ege=R(require("util"),1);var Kh=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=Ege.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=W4.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=W4.default.join(this.cacheDir,this.opts.cacheFile),fv.default.existsSync(this.cacheDir)||fv.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){T(`Cache.save ${e}`);let n=this.copyToCache(e),s=await fq(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());if(T(`Cache.save cached to hosted tool cache ${s}`),!this.ghaNoCache&&$4())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await z4([this.cacheDir],this.ghaCacheKey)}catch(o){Cr(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),rm(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=oce(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return ge(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&$4()){if(T("GitHub Actions cache feature available"),await yge([this.cacheDir],this.ghaCacheKey))return ge(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),e=await fq(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform()),ge(`Cached to hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`)}else this.ghaNoCache?ge("GitHub Actions cache disabled"):ge("GitHub Actions cache feature not available")}catch(e){Cr(`Failed to restore cache: ${e}`)}return""}static async post(){let e=sie(t.POST_CACHE_KEY);if(!e)return ge("State not set"),Promise.resolve(void 0);let r;try{r=JSON.parse(e)}catch(n){throw new Error(`Failed to parse cache post state: ${n}`)}if(!r.dir||!r.key)throw new Error(`Invalid cache post state: ${e}`);try{ge(`Caching ${r.key} to GitHub Actions cache`),await z4([r.dir],r.key)}catch(n){Cr(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ge(`Copying ${e} to ${this.cachePath}`),fv.default.copyFileSync(e,this.cachePath),this.cachePath}platform(){let e=process.config.variables.arm_version;return`${V4.default.platform()}-${V4.default.arch()}${e?"v"+e:""}`}};var Cge=!!process.env.STATE_isPost;Cge||rm("isPost","true");async function Ige(t,e){if(Cge)e&&await e(),await CC("Post cache",async()=>{await Kh.post()});else try{await t()}catch(r){nie(r.message)}}i(Ige,"run");var rf=R(require("path"),1);var at=Symbol("NOT_RESOLVED");function qn(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}i(qn,"defineScalarTag");function iW(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i(iW,"defineSequenceTag");function yv(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i(yv,"defineMappingTag");var zft=qn("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),Vft=["","~","null","Null","NULL"],Wft=qn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>Vft.indexOf(t)!==-1?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),Yft=qn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),Jft=["","~","null","Null","NULL"],jft=qn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>Jft.indexOf(t)!==-1?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),Kft=["true","True","TRUE"],Xft=["false","False","FALSE"],Zft=qn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>Kft.indexOf(t)!==-1?!0:Xft.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),eAt=["true"],tAt=["false"],rAt=qn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>eAt.indexOf(t)!==-1?!0:tAt.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),nAt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],sAt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],oAt=qn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>nAt.indexOf(t)!==-1?!0:sAt.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),iAt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),aAt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function cAt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(cAt,"parseYamlInteger$2");function lAt(t,e){if(e){if(!aAt.test(t))return at}else if(!iAt.test(t))return at;let r=cAt(t);return Number.isFinite(r)?r:at}i(lAt,"resolveYamlInteger$2");var Lge=qn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:lAt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),uAt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),dAt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function pAt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(pAt,"parseYamlInteger$1");function mAt(t,e){if(e){if(!dAt.test(t))return at}else if(!uAt.test(t))return at;let r=pAt(t);return Number.isFinite(r)?r:at}i(mAt,"resolveYamlInteger$1");var fAt=qn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:mAt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),AAt=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function hAt(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let s of e.split(":"))n=n*60+Number(s);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}i(hAt,"parseYamlInteger");function gAt(t){if(!AAt.test(t))return at;let e=hAt(t);return Number.isFinite(e)?e:at}i(gAt,"resolveYamlInteger");var eW=qn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:gAt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),yAt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),EAt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function CAt(t){if(!yAt.test(t))return at;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||EAt.test(t)?n:at}i(CAt,"resolveYamlFloat$2");function IAt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(IAt,"representYamlFloat$2");var Oge=qn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:CAt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:IAt}),wAt=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),SAt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xAt(t,e){if(e){if(!SAt.test(t))return at;let n=t.toLowerCase(),s=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let o=s*parseFloat(n);return Number.isFinite(o)?o:at}if(!wAt.test(t))return at;let r=Number(t);return Number.isFinite(r)?r:at}i(xAt,"resolveYamlFloat$1");function bAt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(bAt,"representYamlFloat$1");var BAt=qn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:xAt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:bAt}),RAt=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),NAt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function TAt(t){if(!RAt.test(t))return at;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let s of e.split(":"))n=n*60+Number(s);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||NAt.test(t)?n:at}i(TAt,"resolveYamlFloat");function vAt(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(vAt,"representYamlFloat");var tW=qn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:TAt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:vAt}),PAt=qn("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":at,"resolve"),identify:i(()=>!1,"identify")}),_At=/^[A-Za-z0-9+/]*={0,2}$/;function QAt(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!_At.test(e))return at;let r=atob(e),n=new Uint8Array(r.length);for(let s=0;sObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:DAt}),LAt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),OAt=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 wge(t,e,r,n=0,s=0,o=0,a=0){let c=new Date(Date.UTC(t,e,r,n,s,o,a));return c.setUTCFullYear(t,e,r),c}i(wge,"makeUtcDate");function MAt(t){let e=LAt.exec(t);if(e===null&&(e=OAt.exec(t)),e===null)return at;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=wge(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?at:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return at;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=wge(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return at;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return at;let m=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-m:m))}return u}i(MAt,"resolveYamlTimestamp");var FAt=qn("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:MAt,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),UAt=iW("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function Ev(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(Ev,"isPlainObject");function Sge(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(Sge,"pick");var qAt=iW("tag:yaml.org,2002:omap",{create:i(()=>({list:[],seen:new Set}),"create"),addItem:i((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(Ev(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:i(t=>t.list,"finalize"),identify:i(()=>!1,"identify")}),GAt=iW("tag:yaml.org,2002:pairs",{create:i(()=>[],"create"),addItem:i((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:i(()=>!1,"identify")}),HAt=yv("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:Ev,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:i((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),$At=yv("tag:yaml.org,2002:set",{create:i(()=>new Set,"create"),identify:i(t=>t instanceof Set,"identify"),represent:i(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:i((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i(()=>null,"get")});function zAt(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(zAt,"createTagDefinitionMap");function VAt(){return{scalar:[],sequence:[],mapping:[]}}i(VAt,"createTagDefinitionListMap");function WAt(t){let e=[];for(let r of t){let n=e.length;for(let s=0;sd.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let p of d.implicitFirstChars)c.add(p);let l=new Map;for(let d of c)l.set(d,n.filter(p=>p.implicitFirstChars===null||p.implicitFirstChars.indexOf(d)!==-1));let u=s.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=s.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=s.mapping["tag:yaml.org,2002:map"],this.exact=s,this.prefix=o}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let s of r){let o=s.resolve(e,!1,s.tagName);if(o!==at)return{value:o,tag:s}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new Mge([...this.tags,...r])}},aW=new Cv([zft,UAt,HAt]),tEr=new Cv([...aW.tags,Yft,rAt,fAt,BAt]),YAt=new Cv([...aW.tags,Wft,Zft,Lge,Oge]),JAt=new Cv([...aW.tags,jft,oAt,eW,tW,FAt,PAt,kAt,qAt,GAt,$At]),jAt=JAt.withTags({...eW,resolve:i((t,e,r)=>{let n=eW.resolve(t,e,r);return n===at?Lge.resolve(t,e,r):n},"resolve")},{...tW,resolve:i((t,e,r)=>{let n=tW.resolve(t,e,r);return n===at?Oge.resolve(t,e,r):n},"resolve")}),rEr=yv("tag:yaml.org,2002:map",{create:i(()=>new Map,"create"),addPair:i((t,e,r)=>(t.set(e,r),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i((t,e)=>t.get(e),"get"),identify:i(t=>t instanceof Map||Ev(t),"identify"),represent:i(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function xge(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:Ev,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{let n=xge(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:i((t,e)=>{let r=xge(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),KAt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Y4(t,e,r,n,s){let o="",a="",c=Math.floor(s/2)-1;return n-e>c&&(o=" ... ",e=n-c+o.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+o.length}}i(Y4,"getLine");function J4(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(J4,"padStart");function XAt(t,e){if(!t.buffer)return null;let r={...KAt,...e},n=/\r?\n|\r|\0/g,s=[0],o=[],a,c=-1;for(;a=n.exec(t.buffer);)o.push(a.index),s.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let l="",u=Math.min(t.line+r.linesAfter,o.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let m=1;m<=r.linesBefore&&!(c-m<0);m++){let f=Y4(t.buffer,s[c-m],o[c-m],t.position-(s[c]-s[c-m]),d);l=`${" ".repeat(r.indent)}${J4((t.line-m+1).toString(),u)} | ${f.str} -${l}`}let p=Y4(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${J4((t.line+1).toString(),u)} | ${p.str} +`+n(o)+s(o),c=(0,zfe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Re.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>AN(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()} +`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=pN(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=fN(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let f=p.toLowerCase();u[f]=l[p],d.push(f)}d.sort();for(let p of d)c+=` +${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:fut,async sendRequest(o,a){return e(o),a(o)}}}i(q$,"storageSharedKeyCredentialPolicy");var mut="storageRequestFailureDetailsParserPolicy";function Vfe(){return{name:mut,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information. +`),r}}}}i(Vfe,"storageRequestFailureDetailsParserPolicy");var Wfe=require("node:crypto");var hN=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Wfe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var gN="12.31.0",yN="2026-02-06";var EN="https://storage.azure.com/.default",$l={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Wi="",G$="*",Aut=1*1024*1024;var hut=4*Aut;var Yfe="AES256",Jfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",jfe=["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"],Kfe=["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"],Xfe="BlobUsesCustomerSpecifiedEncryption",Zfe="BlobDoesNotUseCustomerSpecifiedEncryption",eme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Hl(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Hl,"isPipelineLike");var PI=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Sr(t,e={}){t||(t=new Ht);let r=new PI([],e);return r._credential=t,r}i(Sr,"newPipeline");function gut(t){let e=[yut,tme,Eut,Cut,Iut,wut,xut];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Sut(s));return{wrappedPolicies:g$(r),afterRetry:n}}}}i(gut,"processDownlevelPipeline");function $$(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?y$(e):U$(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${gN}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=pI({...r,loggingOptions:{additionalAllowedHeaderNames:jfe,additionalAllowedQueryParameters:Kfe,logger:iN.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:oN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M$,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:WG}),s.addPolicy($fe()),s.addPolicy(Hfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Vfe()),s.addPolicy(Gfe());let c=gut(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=H$(t);Eo(l)?s.addPolicy(Eh({credential:l,scopes:r.audience??EN,challengeCallbacks:{authorizeRequestOnChallenge:YR}}),{phase:"Sign"}):l instanceof ir&&s.addPolicy(q$({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i($$,"getCoreClientOptions");function H$(t){if(t._credential)return t._credential;let e=new Ht;for(let r of t.factories)if(Eo(r.credential))e=r.credential;else if(tme(r))return r;return e}i(H$,"getCredentialFromPipeline");function tme(t){return t instanceof ir?!0:t.constructor.name==="StorageSharedKeyCredential"}i(tme,"isStorageSharedKeyCredential");function yut(t){return t instanceof Ht?!0:t.constructor.name==="AnonymousCredential"}i(yut,"isAnonymousCredential");function Eut(t){return Eo(t.credential)}i(Eut,"isCoreHttpBearerTokenFactory");function Cut(t){return t instanceof bI?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(Cut,"isStorageBrowserPolicyFactory");function Iut(t){return t instanceof TI?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(Iut,"isStorageRetryPolicyFactory");function wut(t){return t.constructor.name==="TelemetryPolicyFactory"}i(wut,"isStorageTelemetryPolicyFactory");function Sut(t){return t.constructor.name==="InjectorPolicyFactory"}i(Sut,"isInjectorPolicyFactory");function xut(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:i(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},o=t.create(r,n).constructor.name;return e.some(a=>o.startsWith(a))}i(xut,"isCoreHttpPolicyFactory");var rme;(function(t){t.AES256="AES256"})(rme||(rme={}));var nme;(function(t){t.Backup="backup"})(nme||(nme={}));var sme;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(sme||(sme={}));var ome;(function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"})(ome||(ome={}));var wo={};Mr(wo,{AccessPolicy:()=>Lut,AppendBlobAppendBlockExceptionHeaders:()=>u3,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>p3,AppendBlobAppendBlockFromUrlHeaders:()=>d3,AppendBlobAppendBlockHeaders:()=>l3,AppendBlobCreateExceptionHeaders:()=>c3,AppendBlobCreateHeaders:()=>a3,AppendBlobSealExceptionHeaders:()=>m3,AppendBlobSealHeaders:()=>f3,ArrowConfiguration:()=>jut,ArrowField:()=>Kut,BlobAbortCopyFromURLExceptionHeaders:()=>Dz,BlobAbortCopyFromURLHeaders:()=>Qz,BlobAcquireLeaseExceptionHeaders:()=>yz,BlobAcquireLeaseHeaders:()=>gz,BlobBreakLeaseExceptionHeaders:()=>Bz,BlobBreakLeaseHeaders:()=>bz,BlobChangeLeaseExceptionHeaders:()=>xz,BlobChangeLeaseHeaders:()=>Sz,BlobCopyFromURLExceptionHeaders:()=>_z,BlobCopyFromURLHeaders:()=>vz,BlobCreateSnapshotExceptionHeaders:()=>Nz,BlobCreateSnapshotHeaders:()=>Rz,BlobDeleteExceptionHeaders:()=>rz,BlobDeleteHeaders:()=>tz,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>pz,BlobDeleteImmutabilityPolicyHeaders:()=>dz,BlobDownloadExceptionHeaders:()=>XH,BlobDownloadHeaders:()=>IN,BlobFlatListSegment:()=>Out,BlobGetAccountInfoExceptionHeaders:()=>Oz,BlobGetAccountInfoHeaders:()=>Lz,BlobGetPropertiesExceptionHeaders:()=>ez,BlobGetPropertiesHeaders:()=>ZH,BlobGetTagsExceptionHeaders:()=>Uz,BlobGetTagsHeaders:()=>Fz,BlobHierarchyListSegment:()=>qut,BlobItemInternal:()=>Mut,BlobName:()=>Fut,BlobPrefix:()=>Gut,BlobPropertiesInternal:()=>Uut,BlobQueryExceptionHeaders:()=>Mz,BlobQueryHeaders:()=>SN,BlobReleaseLeaseExceptionHeaders:()=>Cz,BlobReleaseLeaseHeaders:()=>Ez,BlobRenewLeaseExceptionHeaders:()=>wz,BlobRenewLeaseHeaders:()=>Iz,BlobServiceProperties:()=>vI,BlobServiceStatistics:()=>z$,BlobSetExpiryExceptionHeaders:()=>iz,BlobSetExpiryHeaders:()=>oz,BlobSetHttpHeadersExceptionHeaders:()=>cz,BlobSetHttpHeadersHeaders:()=>az,BlobSetImmutabilityPolicyExceptionHeaders:()=>uz,BlobSetImmutabilityPolicyHeaders:()=>lz,BlobSetLegalHoldExceptionHeaders:()=>mz,BlobSetLegalHoldHeaders:()=>fz,BlobSetMetadataExceptionHeaders:()=>hz,BlobSetMetadataHeaders:()=>Az,BlobSetTagsExceptionHeaders:()=>Gz,BlobSetTagsHeaders:()=>qz,BlobSetTierExceptionHeaders:()=>kz,BlobSetTierHeaders:()=>wN,BlobStartCopyFromURLExceptionHeaders:()=>Pz,BlobStartCopyFromURLHeaders:()=>Tz,BlobTag:()=>Dut,BlobTags:()=>QI,BlobUndeleteExceptionHeaders:()=>sz,BlobUndeleteHeaders:()=>nz,Block:()=>$ut,BlockBlobCommitBlockListExceptionHeaders:()=>x3,BlockBlobCommitBlockListHeaders:()=>S3,BlockBlobGetBlockListExceptionHeaders:()=>B3,BlockBlobGetBlockListHeaders:()=>b3,BlockBlobPutBlobFromUrlExceptionHeaders:()=>y3,BlockBlobPutBlobFromUrlHeaders:()=>g3,BlockBlobStageBlockExceptionHeaders:()=>C3,BlockBlobStageBlockFromURLExceptionHeaders:()=>w3,BlockBlobStageBlockFromURLHeaders:()=>I3,BlockBlobStageBlockHeaders:()=>E3,BlockBlobUploadExceptionHeaders:()=>h3,BlockBlobUploadHeaders:()=>A3,BlockList:()=>X$,BlockLookupList:()=>K$,ClearRange:()=>zut,ContainerAcquireLeaseExceptionHeaders:()=>OH,ContainerAcquireLeaseHeaders:()=>LH,ContainerBreakLeaseExceptionHeaders:()=>$H,ContainerBreakLeaseHeaders:()=>GH,ContainerChangeLeaseExceptionHeaders:()=>zH,ContainerChangeLeaseHeaders:()=>HH,ContainerCreateExceptionHeaders:()=>gH,ContainerCreateHeaders:()=>hH,ContainerDeleteExceptionHeaders:()=>IH,ContainerDeleteHeaders:()=>CH,ContainerFilterBlobsExceptionHeaders:()=>kH,ContainerFilterBlobsHeaders:()=>DH,ContainerGetAccessPolicyExceptionHeaders:()=>bH,ContainerGetAccessPolicyHeaders:()=>xH,ContainerGetAccountInfoExceptionHeaders:()=>KH,ContainerGetAccountInfoHeaders:()=>jH,ContainerGetPropertiesExceptionHeaders:()=>EH,ContainerGetPropertiesHeaders:()=>yH,ContainerItem:()=>vut,ContainerListBlobFlatSegmentExceptionHeaders:()=>WH,ContainerListBlobFlatSegmentHeaders:()=>VH,ContainerListBlobHierarchySegmentExceptionHeaders:()=>JH,ContainerListBlobHierarchySegmentHeaders:()=>YH,ContainerProperties:()=>_ut,ContainerReleaseLeaseExceptionHeaders:()=>FH,ContainerReleaseLeaseHeaders:()=>MH,ContainerRenameExceptionHeaders:()=>vH,ContainerRenameHeaders:()=>PH,ContainerRenewLeaseExceptionHeaders:()=>qH,ContainerRenewLeaseHeaders:()=>UH,ContainerRestoreExceptionHeaders:()=>TH,ContainerRestoreHeaders:()=>NH,ContainerSetAccessPolicyExceptionHeaders:()=>RH,ContainerSetAccessPolicyHeaders:()=>BH,ContainerSetMetadataExceptionHeaders:()=>SH,ContainerSetMetadataHeaders:()=>wH,ContainerSubmitBatchExceptionHeaders:()=>QH,ContainerSubmitBatchHeaders:()=>_H,CorsRule:()=>Nut,DelimitedTextConfiguration:()=>Yut,FilterBlobItem:()=>Qut,FilterBlobSegment:()=>_I,GeoReplication:()=>Put,JsonTextConfiguration:()=>Jut,KeyInfo:()=>W$,ListBlobsFlatSegmentResponse:()=>J$,ListBlobsHierarchySegmentResponse:()=>j$,ListContainersSegmentResponse:()=>V$,Logging:()=>but,Metrics:()=>Rut,PageBlobClearPagesExceptionHeaders:()=>Yz,PageBlobClearPagesHeaders:()=>Wz,PageBlobCopyIncrementalExceptionHeaders:()=>i3,PageBlobCopyIncrementalHeaders:()=>o3,PageBlobCreateExceptionHeaders:()=>Hz,PageBlobCreateHeaders:()=>$z,PageBlobGetPageRangesDiffExceptionHeaders:()=>e3,PageBlobGetPageRangesDiffHeaders:()=>Zz,PageBlobGetPageRangesExceptionHeaders:()=>Xz,PageBlobGetPageRangesHeaders:()=>Kz,PageBlobResizeExceptionHeaders:()=>r3,PageBlobResizeHeaders:()=>t3,PageBlobUpdateSequenceNumberExceptionHeaders:()=>s3,PageBlobUpdateSequenceNumberHeaders:()=>n3,PageBlobUploadPagesExceptionHeaders:()=>Vz,PageBlobUploadPagesFromURLExceptionHeaders:()=>jz,PageBlobUploadPagesFromURLHeaders:()=>Jz,PageBlobUploadPagesHeaders:()=>zz,PageList:()=>CN,PageRange:()=>Hut,QueryFormat:()=>Wut,QueryRequest:()=>Z$,QuerySerialization:()=>Vut,RetentionPolicy:()=>But,ServiceFilterBlobsExceptionHeaders:()=>AH,ServiceFilterBlobsHeaders:()=>mH,ServiceGetAccountInfoExceptionHeaders:()=>dH,ServiceGetAccountInfoHeaders:()=>uH,ServiceGetPropertiesExceptionHeaders:()=>nH,ServiceGetPropertiesHeaders:()=>rH,ServiceGetStatisticsExceptionHeaders:()=>oH,ServiceGetStatisticsHeaders:()=>sH,ServiceGetUserDelegationKeyExceptionHeaders:()=>lH,ServiceGetUserDelegationKeyHeaders:()=>cH,ServiceListContainersSegmentExceptionHeaders:()=>aH,ServiceListContainersSegmentHeaders:()=>iH,ServiceSetPropertiesExceptionHeaders:()=>tH,ServiceSetPropertiesHeaders:()=>eH,ServiceSubmitBatchExceptionHeaders:()=>fH,ServiceSubmitBatchHeaders:()=>pH,SignedIdentifier:()=>kut,StaticWebsite:()=>Tut,StorageError:()=>O,UserDelegationKey:()=>Y$});var vI={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},but={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},But={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},Rut={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Nut={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},Tut={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},O={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"}}}}},z$={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},Put={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},V$={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},vut={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},_ut={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},W$={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},Y$={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},_I={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Qut={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},QI={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},Dut={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},kut={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},Lut={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"}}}}},J$={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Out={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Mut={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},Fut={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},Uut={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},j$={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},qut={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},Gut={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},K$={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"}}}}}}},X$={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},$ut={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},CN={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"}}}}},Hut={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},zut={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},Z$={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},Vut={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},Wut={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},Yut={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"}}}}},Jut={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},jut={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},Kut={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},eH={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"}}}}},tH={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rH={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"}}}}},nH={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sH={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"}}}}},oH={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iH={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"}}}}},aH={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cH={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"}}}}},lH={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uH={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"}}}}},dH={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pH={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"}}}}},fH={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mH={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"}}}}},AH={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hH={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"}}}}},gH={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yH={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"}}}}},EH={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CH={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"}}}}},IH={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wH={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"}}}}},SH={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xH={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"}}}}},bH={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BH={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"}}}}},RH={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NH={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"}}}}},TH={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PH={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"}}}}},vH={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_H={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"}}}}},QH={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DH={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"}}}}},kH={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LH={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"}}}}},OH={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MH={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"}}}}},FH={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UH={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"}}}}},qH={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GH={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"}}}}},$H={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HH={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"}}}}},zH={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VH={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"}}}}},WH={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YH={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"}}}}},JH={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jH={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"}}}}},KH={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IN={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"}}}}},XH={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZH={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"}}}}},ez={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tz={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"}}}}},rz={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nz={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"}}}}},sz={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},oz={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"}}}}},iz={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},az={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"}}}}},cz={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lz={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"]}}}}},uz={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dz={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"}}}}},pz={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fz={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"}}}}},mz={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Az={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"}}}}},hz={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gz={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"}}}}},yz={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Ez={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"}}}}},Cz={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Iz={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"}}}}},wz={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Sz={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"}}}}},xz={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bz={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"}}}}},Bz={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Rz={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"}}}}},Nz={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Tz={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"}}}}},Pz={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"}}}}},vz={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_z={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"}}}}},Qz={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"}}}}},Dz={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wN={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"}}}}},kz={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Lz={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"}}}}},Oz={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SN={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"}}}}},Mz={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Fz={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"}}}}},Uz={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qz={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"}}}}},Gz={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$z={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"}}}}},Hz={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zz={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"}}}}},Vz={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Wz={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"}}}}},Yz={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Jz={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"}}}}},jz={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"}}}}},Kz={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"}}}}},Xz={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Zz={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"}}}}},e3={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t3={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"}}}}},r3={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n3={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"}}}}},s3={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},o3={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"}}}}},i3={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a3={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"}}}}},c3={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l3={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"}}}}},u3={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d3={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"}}}}},p3={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"}}}}},f3={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"}}}}},m3={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A3={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"}}}}},h3={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g3={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"}}}}},y3={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"}}}}},E3={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"}}}}},C3={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I3={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"}}}}},w3={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"}}}}},S3={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"}}}}},x3={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b3={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"}}}}},B3={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var nc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},ime={parameterPath:"blobServiceProperties",mapper:vI},si={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},M={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},DI={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},oi={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},F={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},U={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},q={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},j={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},ame={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},kI={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},LI={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},sc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},oc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},cme={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},lme={parameterPath:"keyInfo",mapper:W$},ume={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Bh={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},xN={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},bN={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},en={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},BN={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},RN={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},NN={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},tn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Un={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},R3={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},dme={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},pme={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},Ge={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Le={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Oe={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},TN={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},N3={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},fme={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},PN={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},mme={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},Ame={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},hme={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gme={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},yme={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},ii={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vN={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},_N={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},QN={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},DN={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},ud={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},kN={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},LN={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},ON={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},MN={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},FN={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},T3={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"},P3={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},Eme={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},us={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},ic={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Rf={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Cme={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},Ime={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},ar={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},cr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},lr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},nt={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},st={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},je={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},wme={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},Sme={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},xme={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bme={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},Bme={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},ac={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},cc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},lc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},uc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},dc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},pc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},v3={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Yi={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Ji={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},Rme={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Nme={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},_r={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},Tme={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zl={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"]}}},_3={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},fc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},mc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Ac={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},hc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},UN={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Nf={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ji={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},Pme={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},gc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},vme={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Vl={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Wl={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},qN={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},Yl={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},_me={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Qme={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},Dme={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},kme={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Lme={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},Ome={parameterPath:["options","queryRequest"],mapper:Z$},Mme={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Q3={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},D3={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},k3={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},L3={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},O3={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},Fme={parameterPath:["options","tags"],mapper:QI},ai={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},yc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},Ume={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},M3={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},F3={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Tf={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Pf={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},vf={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},GN={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},U3={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},$N={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},HN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},zN={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},qme={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Rh={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Gme={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Nh={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},$me={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},q3={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Hme={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},zme={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},Vme={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},Wme={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Yme={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},G3={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$3={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},VN={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},WN={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},Jme={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},H3={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},jme={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},z3={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},V3={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},Kme={parameterPath:"blocks",mapper:K$},W3={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Xme={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var YN=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},Xut)}getProperties(e){return this.client.sendOperationRequest({options:e},Zut)}getStatistics(e){return this.client.sendOperationRequest({options:e},edt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},tdt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},rdt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ndt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},sdt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},odt)}},dd=Co(wo,!0),Xut={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:eH},default:{bodyMapper:O,headersMapper:tH}},requestBody:ime,queryParameters:[DI,oi,F],urlParameters:[M],headerParameters:[nc,si,U,q],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dd},Zut={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:vI,headersMapper:rH},default:{bodyMapper:O,headersMapper:nH}},queryParameters:[DI,oi,F],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:dd},edt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:z$,headersMapper:sH},default:{bodyMapper:O,headersMapper:oH}},queryParameters:[DI,F,ame],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:dd},tdt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:V$,headersMapper:iH},default:{bodyMapper:O,headersMapper:aH}},queryParameters:[F,kI,LI,sc,oc,cme],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:dd},rdt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Y$,headersMapper:cH},default:{bodyMapper:O,headersMapper:lH}},requestBody:lme,queryParameters:[DI,F,ume],urlParameters:[M],headerParameters:[nc,si,U,q],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dd},ndt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:uH},default:{bodyMapper:O,headersMapper:dH}},queryParameters:[oi,F,Bh],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:dd},sdt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:pH},default:{bodyMapper:O,headersMapper:fH}},requestBody:xN,queryParameters:[F,bN],urlParameters:[M],headerParameters:[si,U,q,en,BN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:dd},odt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:_I,headersMapper:mH},default:{bodyMapper:O,headersMapper:AH}},queryParameters:[F,sc,oc,RN,NN],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:dd};var JN=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},idt)}getProperties(e){return this.client.sendOperationRequest({options:e},adt)}delete(e){return this.client.sendOperationRequest({options:e},cdt)}setMetadata(e){return this.client.sendOperationRequest({options:e},ldt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},udt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},ddt)}restore(e){return this.client.sendOperationRequest({options:e},pdt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},fdt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},mdt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Adt)}acquireLease(e){return this.client.sendOperationRequest({options:e},hdt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},gdt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},ydt)}breakLease(e){return this.client.sendOperationRequest({options:e},Edt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Cdt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Idt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},wdt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Sdt)}},rn=Co(wo,!0),idt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:hH},default:{bodyMapper:O,headersMapper:gH}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,Un,R3,dme,pme],isXML:!0,serializer:rn},adt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:yH},default:{bodyMapper:O,headersMapper:EH}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,Ge],isXML:!0,serializer:rn},cdt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:CH},default:{bodyMapper:O,headersMapper:IH}},queryParameters:[F,tn],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe],isXML:!0,serializer:rn},ldt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:wH},default:{bodyMapper:O,headersMapper:SH}},queryParameters:[F,tn,TN],urlParameters:[M],headerParameters:[U,q,j,Un,Ge,Le],isXML:!0,serializer:rn},udt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:xH},default:{bodyMapper:O,headersMapper:bH}},queryParameters:[F,tn,N3],urlParameters:[M],headerParameters:[U,q,j,Ge],isXML:!0,serializer:rn},ddt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:BH},default:{bodyMapper:O,headersMapper:RH}},requestBody:fme,queryParameters:[F,tn,N3],urlParameters:[M],headerParameters:[nc,si,U,q,R3,Ge,Le,Oe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:rn},pdt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:NH},default:{bodyMapper:O,headersMapper:TH}},queryParameters:[F,tn,PN],urlParameters:[M],headerParameters:[U,q,j,mme,Ame],isXML:!0,serializer:rn},fdt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:PH},default:{bodyMapper:O,headersMapper:vH}},queryParameters:[F,tn,hme],urlParameters:[M],headerParameters:[U,q,j,gme,yme],isXML:!0,serializer:rn},mdt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:_H},default:{bodyMapper:O,headersMapper:QH}},requestBody:xN,queryParameters:[F,bN,tn],urlParameters:[M],headerParameters:[si,U,q,en,BN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:rn},Adt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:_I,headersMapper:DH},default:{bodyMapper:O,headersMapper:kH}},queryParameters:[F,sc,oc,RN,NN,tn],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},hdt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:LH},default:{bodyMapper:O,headersMapper:OH}},queryParameters:[F,tn,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,vN,_N,QN],isXML:!0,serializer:rn},gdt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:MH},default:{bodyMapper:O,headersMapper:FH}},queryParameters:[F,tn,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,DN,ud],isXML:!0,serializer:rn},ydt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:UH},default:{bodyMapper:O,headersMapper:qH}},queryParameters:[F,tn,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,ud,kN],isXML:!0,serializer:rn},Edt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:GH},default:{bodyMapper:O,headersMapper:$H}},queryParameters:[F,tn,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,LN,ON],isXML:!0,serializer:rn},Cdt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:HH},default:{bodyMapper:O,headersMapper:zH}},queryParameters:[F,tn,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,ud,MN,FN],isXML:!0,serializer:rn},Idt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:J$,headersMapper:VH},default:{bodyMapper:O,headersMapper:WH}},queryParameters:[F,kI,LI,sc,oc,tn,T3,P3],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},wdt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:j$,headersMapper:YH},default:{bodyMapper:O,headersMapper:JH}},queryParameters:[F,kI,LI,sc,oc,tn,T3,P3,Eme],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn},Sdt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:jH},default:{bodyMapper:O,headersMapper:KH}},queryParameters:[oi,F,Bh],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:rn};var jN=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},xdt)}getProperties(e){return this.client.sendOperationRequest({options:e},bdt)}delete(e){return this.client.sendOperationRequest({options:e},Bdt)}undelete(e){return this.client.sendOperationRequest({options:e},Rdt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},Ndt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},Tdt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},Pdt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},vdt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},_dt)}setMetadata(e){return this.client.sendOperationRequest({options:e},Qdt)}acquireLease(e){return this.client.sendOperationRequest({options:e},Ddt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},kdt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},Ldt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},Odt)}breakLease(e){return this.client.sendOperationRequest({options:e},Mdt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Fdt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},Udt)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},qdt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},Gdt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},$dt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Hdt)}query(e){return this.client.sendOperationRequest({options:e},zdt)}getTags(e){return this.client.sendOperationRequest({options:e},Vdt)}setTags(e){return this.client.sendOperationRequest({options:e},Wdt)}},zt=Co(wo,!0),xdt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IN},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IN},default:{bodyMapper:O,headersMapper:XH}},queryParameters:[F,us,ic],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,Rf,Cme,Ime,ar,cr,lr,nt,st,je],isXML:!0,serializer:zt},bdt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ZH},default:{bodyMapper:O,headersMapper:ez}},queryParameters:[F,us,ic],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,ar,cr,lr,nt,st,je],isXML:!0,serializer:zt},Bdt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:tz},default:{bodyMapper:O,headersMapper:rz}},queryParameters:[F,us,ic,Sme],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,nt,st,je,wme],isXML:!0,serializer:zt},Rdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nz},default:{bodyMapper:O,headersMapper:sz}},queryParameters:[F,PN],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},Ndt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oz},default:{bodyMapper:O,headersMapper:iz}},queryParameters:[F,xme],urlParameters:[M],headerParameters:[U,q,j,bme,Bme],isXML:!0,serializer:zt},Tdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:az},default:{bodyMapper:O,headersMapper:cz}},queryParameters:[oi,F],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,nt,st,je,ac,cc,lc,uc,dc,pc],isXML:!0,serializer:zt},Pdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:lz},default:{bodyMapper:O,headersMapper:uz}},queryParameters:[F,us,ic,v3],urlParameters:[M],headerParameters:[U,q,j,Oe,Yi,Ji],isXML:!0,serializer:zt},vdt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:dz},default:{bodyMapper:O,headersMapper:pz}},queryParameters:[F,us,ic,v3],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},_dt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fz},default:{bodyMapper:O,headersMapper:mz}},queryParameters:[F,us,ic,Rme],urlParameters:[M],headerParameters:[U,q,j,Nme],isXML:!0,serializer:zt},Qdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Az},default:{bodyMapper:O,headersMapper:hz}},queryParameters:[F,TN],urlParameters:[M],headerParameters:[U,q,j,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r],isXML:!0,serializer:zt},Ddt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gz},default:{bodyMapper:O,headersMapper:yz}},queryParameters:[F,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,vN,_N,QN,nt,st,je],isXML:!0,serializer:zt},kdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ez},default:{bodyMapper:O,headersMapper:Cz}},queryParameters:[F,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,DN,ud,nt,st,je],isXML:!0,serializer:zt},Ldt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Iz},default:{bodyMapper:O,headersMapper:wz}},queryParameters:[F,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,ud,kN,nt,st,je],isXML:!0,serializer:zt},Odt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Sz},default:{bodyMapper:O,headersMapper:xz}},queryParameters:[F,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,ud,MN,FN,nt,st,je],isXML:!0,serializer:zt},Mdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:bz},default:{bodyMapper:O,headersMapper:Bz}},queryParameters:[F,ii],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,LN,ON,nt,st,je],isXML:!0,serializer:zt},Fdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rz},default:{bodyMapper:O,headersMapper:Nz}},queryParameters:[F,Tme],urlParameters:[M],headerParameters:[U,q,j,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r],isXML:!0,serializer:zt},Udt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Tz},default:{bodyMapper:O,headersMapper:Pz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,Un,Ge,Le,Oe,nt,st,je,Yi,Ji,zl,_3,fc,mc,Ac,hc,UN,Nf,ji,Pme,gc],isXML:!0,serializer:zt},qdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:vz},default:{bodyMapper:O,headersMapper:_z}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,Un,Ge,Le,Oe,nt,st,je,Yi,Ji,_r,zl,fc,mc,Ac,hc,Nf,ji,gc,vme,Vl,Wl,qN,Yl],isXML:!0,serializer:zt},Gdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Qz},default:{bodyMapper:O,headersMapper:Dz}},queryParameters:[F,_me,Dme],urlParameters:[M],headerParameters:[U,q,j,Ge,Qme],isXML:!0,serializer:zt},$dt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wN},202:{headersMapper:wN},default:{bodyMapper:O,headersMapper:kz}},queryParameters:[F,us,ic,kme],urlParameters:[M],headerParameters:[U,q,j,Ge,je,_3,Lme],isXML:!0,serializer:zt},Hdt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Lz},default:{bodyMapper:O,headersMapper:Oz}},queryParameters:[oi,F,Bh],urlParameters:[M],headerParameters:[U,q,j],isXML:!0,serializer:zt},zdt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:SN},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:SN},default:{bodyMapper:O,headersMapper:Mz}},requestBody:Ome,queryParameters:[F,us,Mme],urlParameters:[M],headerParameters:[nc,si,U,q,Ge,Le,Oe,ar,cr,lr,nt,st,je],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:zt},Vdt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:QI,headersMapper:Fz},default:{bodyMapper:O,headersMapper:Uz}},queryParameters:[F,us,ic,Q3],urlParameters:[M],headerParameters:[U,q,j,Ge,je,D3,k3,L3,O3],isXML:!0,serializer:zt},Wdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:qz},default:{bodyMapper:O,headersMapper:Gz}},requestBody:Fme,queryParameters:[F,ic,Q3],urlParameters:[M],headerParameters:[nc,si,U,q,Ge,je,D3,k3,L3,O3,ai,yc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:zt};var KN=class{static{i(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},Ydt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},Jdt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},jdt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},Kdt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Xdt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Zdt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},ept)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},tpt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},rpt)}},Jl=Co(wo,!0),Ydt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:$z},default:{bodyMapper:O,headersMapper:Hz}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,ac,cc,lc,uc,dc,pc,Yi,Ji,_r,zl,ji,gc,Ume,M3,F3],isXML:!0,serializer:Jl},Jdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zz},default:{bodyMapper:O,headersMapper:Vz}},requestBody:Pf,queryParameters:[F,GN],urlParameters:[M],headerParameters:[U,q,en,Ge,Le,Oe,Rf,ar,cr,lr,nt,st,je,_r,ai,yc,Tf,vf,U3,$N,HN,zN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Jl},jdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Wz},default:{bodyMapper:O,headersMapper:Yz}},queryParameters:[F,GN],urlParameters:[M],headerParameters:[U,q,j,en,Ge,Le,Oe,Rf,ar,cr,lr,nt,st,je,_r,$N,HN,zN,qme],isXML:!0,serializer:Jl},Kdt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Jz},default:{bodyMapper:O,headersMapper:jz}},queryParameters:[F,GN],urlParameters:[M],headerParameters:[U,q,j,en,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r,fc,mc,Ac,hc,Vl,Wl,Yl,U3,$N,HN,zN,Rh,Gme,Nh,$me],isXML:!0,serializer:Jl},Xdt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:CN,headersMapper:Kz},default:{bodyMapper:O,headersMapper:Xz}},queryParameters:[F,sc,oc,us,q3],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,Rf,nt,st,je],isXML:!0,serializer:Jl},Zdt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:CN,headersMapper:Zz},default:{bodyMapper:O,headersMapper:e3}},queryParameters:[F,sc,oc,us,q3,Hme],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,Rf,nt,st,je,zme],isXML:!0,serializer:Jl},ept={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:t3},default:{bodyMapper:O,headersMapper:r3}},queryParameters:[oi,F],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r,M3],isXML:!0,serializer:Jl},tpt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:n3},default:{bodyMapper:O,headersMapper:s3}},queryParameters:[oi,F],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,nt,st,je,F3,Vme],isXML:!0,serializer:Jl},rpt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:o3},default:{bodyMapper:O,headersMapper:i3}},queryParameters:[F,Wme],urlParameters:[M],headerParameters:[U,q,j,Le,Oe,nt,st,je,Nf],isXML:!0,serializer:Jl};var XN=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},npt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},spt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},opt)}seal(e){return this.client.sendOperationRequest({options:e},ipt)}},ZN=Co(wo,!0),npt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:a3},default:{bodyMapper:O,headersMapper:c3}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,ac,cc,lc,uc,dc,pc,Yi,Ji,_r,ji,gc,Yme],isXML:!0,serializer:ZN},spt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:l3},default:{bodyMapper:O,headersMapper:u3}},requestBody:Pf,queryParameters:[F,G3],urlParameters:[M],headerParameters:[U,q,en,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r,ai,yc,Tf,vf,$3,VN],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:ZN},opt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d3},default:{bodyMapper:O,headersMapper:p3}},queryParameters:[F,G3],urlParameters:[M],headerParameters:[U,q,j,en,Ge,Le,Oe,ar,cr,lr,nt,st,je,_r,fc,mc,Ac,hc,Vl,Wl,Yl,ai,Rh,Nh,$3,VN,WN],isXML:!0,serializer:ZN},ipt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:f3},default:{bodyMapper:O,headersMapper:m3}},queryParameters:[F,Jme],urlParameters:[M],headerParameters:[U,q,j,Ge,Le,Oe,nt,st,VN],isXML:!0,serializer:ZN};var eT=class{static{i(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},apt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},cpt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},lpt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},upt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},dpt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},ppt)}},Ph=Co(wo,!0),apt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:A3},default:{bodyMapper:O,headersMapper:h3}},requestBody:Pf,queryParameters:[F],urlParameters:[M],headerParameters:[U,q,en,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,ac,cc,lc,uc,dc,pc,Yi,Ji,_r,zl,ji,gc,ai,yc,Tf,vf,H3],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Ph},cpt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:g3},default:{bodyMapper:O,headersMapper:y3}},queryParameters:[F],urlParameters:[M],headerParameters:[U,q,j,en,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,ac,cc,lc,uc,dc,pc,_r,zl,fc,mc,Ac,hc,UN,Nf,ji,Vl,Wl,qN,Yl,ai,H3,jme],isXML:!0,serializer:Ph},lpt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:E3},default:{bodyMapper:O,headersMapper:C3}},requestBody:Pf,queryParameters:[F,z3,V3],urlParameters:[M],headerParameters:[U,q,en,Ge,ar,cr,lr,_r,ai,yc,Tf,vf],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Ph},upt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:I3},default:{bodyMapper:O,headersMapper:w3}},queryParameters:[F,z3,V3],urlParameters:[M],headerParameters:[U,q,j,en,Ge,ar,cr,lr,_r,fc,mc,Ac,hc,Vl,Wl,Yl,Rh,Nh,WN],isXML:!0,serializer:Ph},dpt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:S3},default:{bodyMapper:O,headersMapper:x3}},requestBody:Kme,queryParameters:[F,W3],urlParameters:[M],headerParameters:[nc,si,U,q,Un,Ge,Le,Oe,ar,cr,lr,nt,st,je,ac,cc,lc,uc,dc,pc,Yi,Ji,_r,zl,ji,gc,ai,yc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ph},ppt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:X$,headersMapper:b3},default:{bodyMapper:O,headersMapper:B3}},queryParameters:[F,us,W3,Xme],urlParameters:[M],headerParameters:[U,q,j,Ge,je],isXML:!0,serializer:Ph};var OI=class extends gI{static{i(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},s="azsdk-js-azure-storage-blob/12.30.0",o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,a={...n,...r,userAgentOptions:{userAgentPrefix:o},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new YN(this),this.container=new JN(this),this.blob=new jN(this),this.pageBlob=new KN(this),this.appendBlob=new XN(this),this.blockBlob=new eT(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var MI=class extends OI{static{i(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function eAe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=mpt(r),e.pathname=r,e.toString()}i(eAe,"escapeURLPath");function fpt(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}i(fpt,"getProxyUriFromDevConnString");function _f(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(_f,"getValueInConnString");function Qf(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=fpt(t),t=Jfe);let r=_f(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",s="",o=Buffer.from("accountKey","base64"),a="";if(s=_f(t,"AccountName"),o=Buffer.from(_f(t,"AccountKey"),"base64"),!r){n=_f(t,"DefaultEndpointsProtocol");let c=n.toLowerCase();if(c!=="https"&&c!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(a=_f(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${s}.blob.${a}`}if(s){if(o.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:s,accountKey:o,proxyUri:e}}else{let n=_f(t,"SharedAccessSignature"),s=_f(t,"AccountName");if(s||(s=K3(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:s,accountSas:n}}}i(Qf,"extractConnectionStringParts");function mpt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(mpt,"escape");function Gr(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}i(Gr,"appendToURLPath");function vh(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(vh,"setURLParameter");function Y3(t,e){return new URL(t).searchParams.get(e)??void 0}i(Y3,"getURLParameter");function tAe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(tAe,"getURLScheme");function FI(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(FI,"appendToURLQuery");function dt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(dt,"truncatedISO8061Date");function Apt(t){return ut?Buffer.from(t).toString("base64"):btoa(t)}i(Apt,"base64encode");function J3(t,e){t.length>42&&(t=t.slice(0,42));let o=t+hpt(e.toString(),48-t.length,"0");return Apt(o)}i(J3,"generateBlockID");function hpt(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}i(hpt,"padStart");function j3(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(j3,"iEqual");function K3(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:tT(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(K3,"getAccountNameFromUrl");function tT(t){let e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&eme.includes(t.port)}i(tT,"isIpEndpointStyle");function pd(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}i(pd,"toBlobTagsString");function rAe(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}i(rAe,"toBlobTags");function rT(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(rT,"toTags");function X3(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}i(X3,"toQuerySerialization");function nT(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),s="or-";n[0].startsWith(s)&&(n[0]=n[0].substring(s.length));let o={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(o):e.push({policyId:n[0],rules:[o]})}return e}i(nT,"parseObjectReplicationRecord");function _h(t){return t?t.scheme+" "+t.value:void 0}i(_h,"httpAuthorizationToString");function*Z3(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,s=0;for(;n0&&n.length>0&&e.push(`${r}=${n}`))}};function UI(t,e,r){return qI(t,e,r).sasQueryParameters}i(UI,"generateBlobSASQueryParameters");function qI(t,e,r){let n=t.version?t.version:yN,s=e instanceof ir?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new hN(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?Ept(t,s):n>="2025-07-05"?Spt(t,o):wpt(t,o);if(n>="2018-11-09")return s!==void 0?ypt(t,s):n>="2020-02-10"?Ipt(t,o):Cpt(t,o);if(n>="2015-04-05"){if(s!==void 0)return gpt(t,s);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'.")}i(qI,"generateBlobSASQueryParametersInternal");function gpt(t,e){if(t=kf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c";t.blobName&&(r="b");let n;t.permissions&&(t.blobName?n=Ec.parse(t.permissions.toString()).toString():n=Cc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Xi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(gpt,"generateBlobSASQueryParameters20150405");function ypt(t,e){if(t=kf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(ypt,"generateBlobSASQueryParameters20181109");function Ept(t,e){if(t=kf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(Ept,"generateBlobSASQueryParameters20201206");function Cpt(t,e){if(t=kf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(Cpt,"generateBlobSASQueryParametersUDK20181109");function Ipt(t,e){if(t=kf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(Ipt,"generateBlobSASQueryParametersUDK20200210");function wpt(t,e){if(t=kf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(wpt,"generateBlobSASQueryParametersUDK20201206");function Spt(t,e){if(t=kf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Df(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(` +`),a=e.computeHMACSHA256(o);return{sasQueryParameters:new Xi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(Spt,"generateBlobSASQueryParametersUDK20250705");function Df(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Df,"getCanonicalName");function kf(t){let e=t.version?t.version:yN;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(kf,"SASSignatureValuesSanityCheckAndAutofill");var GI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=gh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wi||r.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 ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wi||r.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 ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wi||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 ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>ue(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wi||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 ee.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions}))}async breakLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wi||r.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 ee.withSpan("BlobLeaseClient-breakLease",r,async n=>{let s={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return ue(await this._containerOrBlobOperation.breakLease(s))})}};var sAe=require("node:stream");var sT=class extends sAe.Readable{static{i(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,s,o={}){super({highWaterMark:o.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+s-1,this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,this.onProgress=o.onProgress,this.options=o,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=i(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=i(()=>{let e=new yo("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=i(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=r,this.setSourceEventHandlers()}).catch(r=>{this.destroy(r)})):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}`)):this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))},"sourceErrorOrEndHandler");_destroy(e,r){this.removeSourceEventHandlers(),this.source.destroy(),r(e===null?void 0:e)}};var oT=class{static{i(this,"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 ut?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new sT(this.originalResponse.readableStreamBody,r,n,s,o)}};var uAe=require("node:stream");var eV=new Uint8Array([79,98,106,1]),oAe="avro.codec",iAe="avro.schema";var Xt=class t{static{i(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let s=await e.read(r,{abortSignal:n.abortSignal});if(s.length!==r)throw new Error("Hit stream end.");return s}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,s=0,o,a,c;do o=await t.readByte(e,r),a=o&128,n|=(o&127)<Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let s=await t.readString(e,n),o=await r(e,n);return{key:s,value:o}}static async readMap(e,r,n={}){let s=i((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),o=await t.readArray(e,s,n),a={};for(let c of o)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let s=[];for(let o=await t.readLong(e,n);o!==0;o=await t.readLong(e,n))for(o<0&&(await t.readLong(e,n),o=-o);o--;){let a=await r(e,n);s.push(a)}return s}},Lf;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Lf||(Lf={}));var nn;(function(t){t.NULL="null",t.BOOLEAN="boolean",t.INT="int",t.LONG="long",t.FLOAT="float",t.DOUBLE="double",t.BYTES="bytes",t.STRING="string"})(nn||(nn={}));var jl=class t{static{i(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case nn.NULL:case nn.BOOLEAN:case nn.INT:case nn.LONG:case nn.FLOAT:case nn.DOUBLE:case nn.BYTES:case nn.STRING:return new tV(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new nV(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Lf.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}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let s of e.fields)n[s.name]=t.fromSchema(s.type);return new oV(n,e.name);case Lf.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 rV(e.symbols);case Lf.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new sV(t.fromSchema(e.values));case Lf.ARRAY:case Lf.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},tV=class extends jl{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case nn.NULL:return Xt.readNull();case nn.BOOLEAN:return Xt.readBoolean(e,r);case nn.INT:return Xt.readInt(e,r);case nn.LONG:return Xt.readLong(e,r);case nn.FLOAT:return Xt.readFloat(e,r);case nn.DOUBLE:return Xt.readDouble(e,r);case nn.BYTES:return Xt.readBytes(e,r);case nn.STRING:return Xt.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},rV=class extends jl{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await Xt.readInt(e,r);return this._symbols[n]}},nV=class extends jl{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await Xt.readInt(e,r);return this._types[n].read(e,r)}},sV=class extends jl{static{i(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=i((s,o)=>this._itemType.read(s,o),"readItemMethod");return Xt.readMap(e,n,r)}},oV=class extends jl{static{i(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let s in this._fields)Object.prototype.hasOwnProperty.call(this._fields,s)&&(n[s]=await this._fields[s].read(e,r));return n}};function iV(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r0)for(let o=0;o0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let r=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let n=await Xt.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!iV(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await Xt.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await Xt.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var HI=class{static{i(this,"AvroReadable")}};var lAe=require("buffer");var cAe=new yo("Reading from the avro stream was aborted."),zI=class extends HI{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?lAe.Buffer.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,r={}){if(r.abortSignal?.aborted)throw cAe;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.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((s,o)=>{let a=i(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=i(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),s(this.toUint8Array(d)))},"readableCallback"),l=i(()=>{a(),o()},"rejectCallback"),u=i(()=>{a(),o(cAe)},"abortHandler");this._readable.on("readable",c),this._readable.once("error",l),this._readable.once("end",l),this._readable.once("close",l),r.abortSignal&&r.abortSignal.addEventListener("abort",u)})}};var iT=class extends uAe.Readable{static{i(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new $I(new zI(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let s=r.data;if(!(s instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(s))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let s=r.bytesScanned;if(typeof s!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:s})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let s=r.totalBytes;if(typeof s!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:s})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let s=r.fatal;if(typeof s!="boolean")throw Error("Invalid fatal in avro error record.");let o=r.name;if(typeof o!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:o,isFatal:s,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var aT=class{static{i(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return ut?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new iT(this.originalResponse.readableStreamBody,r)}};var aV;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(aV||(aV={}));var cV;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(cV||(cV={}));function fd(t){if(t!==void 0)return t}i(fd,"toAccessTier");function $r(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Yfe)}i($r,"ensureCpkIfSpecified");var lV;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(lV||(lV={}));function cT(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}i(cT,"rangeResponseFromModel");var JAe=R(YAe(),1);var yT=class extends JAe.Poller{static{i(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:s=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=JI({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return aI(this.intervalInMs)}},aft=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?JI(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,JI(r)):(r.isCancelled=!0,JI(r))},"cancel"),cft=i(async function(e={}){let r=this.state,{blobClient:n,copySource:s,startCopyFromURLOptions:o}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(s,o);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return JI(r)},"update"),lft=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function JI(t){return{state:{...t},cancel:aft,toString:lft,update:cft}}i(JI,"makeBlobBeginCopyFromURLPollOperation");function Os(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}i(Os,"rangeToString");var jAe=require("events");var jI;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(jI||(jI={}));var KI=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=jI.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new jAe.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(r){this.emitter.emit("error",r)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,r)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=jI.Error,r(n)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit("finish");return}for(;this.actives{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(o>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,s));let p=o+d.length>a?a-o:d.length;e.fill(d.slice(0,p),r+o,r+o+p),o+=p}),t.on("end",()=>{clearTimeout(u),o{clearTimeout(u),l(d)})})}i(XAe,"streamToBuffer");async function ZAe(t,e){return new Promise((r,n)=>{let s=ET.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(ZAe,"readStreamToLocalFile");var ehe=KAe.default.promisify(ET.default.stat),the=ET.default.createReadStream;var Kl=class t extends Qh{static{i(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,s){s=s||{};let o,a;if(Hl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof Ht||Eo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Sr(new Ht,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Qf(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=sd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new Ht,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=Y3(this.url,$l.Parameters.SNAPSHOT),this._versionId=Y3(this.url,$l.Parameters.VERSIONID)}withSnapshot(e){return new t(vh(this.url,$l.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(vh(this.url,$l.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new IT(this.url,this.pipeline)}getBlockBlobClient(){return new Lh(this.url,this.pipeline)}getPageBlobClient(){return new wT(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},$r(n.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-download",n,async s=>{let o=ue(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:ut?void 0:n.onProgress},range:e===0&&!r?void 0:Os({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:nT(o.objectReplicationRules)};if(!ut)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),o.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new oT(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Os({count:e+o.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return ee.withSpan("BlobClient-exists",e,async r=>{try{return $r(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===Xfe||n.details.errorCode===Zfe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},$r(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-getProperties",e,async r=>{let n=ue(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:nT(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ee.withSpan("BlobClient-delete",e,async r=>ue(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async deleteIfExists(e={}){return ee.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=ue(await this.delete(r));return{succeeded:!0,...n,_response:n._response}}catch(n){if(n.details?.errorCode==="BlobNotFound")return{succeeded:!1,...n.response?.parsedHeaders,_response:n.response};throw n}})}async undelete(e={}){return ee.withSpan("BlobClient-undelete",e,async r=>ue(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},$r(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setHTTPHeaders",r,async n=>ue(await this.blobContext.setHttpHeaders({abortSignal:r.abortSignal,blobHttpHeaders:e,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,r={}){return r.conditions=r.conditions||{},$r(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setMetadata",r,async n=>ue(await this.blobContext.setMetadata({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,r={}){return ee.withSpan("BlobClient-setTags",r,async n=>ue(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:rAe(e)})))}async getTags(e={}){return ee.withSpan("BlobClient-getTags",e,async r=>{let n=ue(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,tags:rT({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new GI(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},$r(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-createSnapshot",e,async r=>ue(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:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:i((...o)=>this.abortCopyFromURL(...o),"abortCopyFromURL"),getProperties:i((...o)=>this.getProperties(...o),"getProperties"),startCopyFromURL:i((...o)=>this.startCopyFromURL(...o),"startCopyFromURL")},s=new yT({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await s.poll(),s}async abortCopyFromURL(e,r={}){return ee.withSpan("BlobClient-abortCopyFromURL",r,async n=>ue(await this.blobContext.abortCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},ee.withSpan("BlobClient-syncCopyFromURL",r,async n=>ue(await this.blobContext.copyFromURL(e,{abortSignal:r.abortSignal,metadata:r.metadata,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:r.sourceContentMD5,copySourceAuthorization:_h(r.sourceAuthorization),tier:fd(r.tier),blobTagsString:pd(r.tags),immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,encryptionScope:r.encryptionScope,copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,r={}){return ee.withSpan("BlobClient-setAccessTier",r,async n=>ue(await this.blobContext.setTier(fd(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,s={}){let o,a=0,c=0,l=s;e instanceof Buffer?(o=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),ee.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let m=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=m.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${m.contentLength}`)}if(!o)try{o=Buffer.alloc(c)}catch(m){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${m.message}`)}if(o.length{let A=a+c;m+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await ZAe(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}else if(tT(n)){let s=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=s[2],r=s[4]}else{let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return ee.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},ue(await this.blobContext.startCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions.ifMatch,sourceIfModifiedSince:r.sourceConditions.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions.ifUnmodifiedSince,sourceIfTags:r.sourceConditions.tagConditions},immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,rehydratePriority:r.rehydratePriority,tier:fd(r.tier),blobTagsString:pd(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof ir))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=UI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(FI(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof ir))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return qI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let s=UI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(FI(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return qI({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ee.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>ue(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ee.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>ue(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return ee.withSpan("BlobClient-setLegalHold",r,async n=>ue(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ee.withSpan("BlobClient-getAccountInfo",e,async r=>ue(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},IT=class t extends Kl{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Hl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof Ht||Eo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,o=Sr(new Ht,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Qf(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=sd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new Ht,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(vh(this.url,$l.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},$r(e.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-create",e,async r=>ue(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:pd(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:G$};return ee.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=ue(await this.create({...n,conditions:r}));return{succeeded:!0,...s,_response:s._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async seal(e={}){return e.conditions=e.conditions||{},ee.withSpan("AppendBlobClient-seal",e,async r=>ue(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async appendBlock(e,r,n={}){return n.conditions=n.conditions||{},$r(n.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlock",n,async s=>ue(await this.appendBlobContext.appendBlock(r,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:s.tracingOptions})))}async appendBlockFromURL(e,r,n,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},$r(s.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>ue(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Os({offset:r,count:n}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:_h(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},Lh=class t extends Kl{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Hl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof Ht||Eo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Sr(new Ht,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Qf(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=sd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new Ht,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(vh(this.url,$l.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if($r(r.customerProvidedKey,this.isHttps),!ut)throw new Error("This operation currently is only supported in Node.js.");return ee.withSpan("BlockBlobClient-query",r,async n=>{let s=ue(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:X3(r.inputTextConfiguration),outputSerialization:X3(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new aT(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},$r(n.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-upload",n,async s=>ue(await this.blockBlobContext.upload(r,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:fd(n.tier),blobTagsString:pd(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},$r(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>ue(await this.blockBlobContext.putBlobFromUrl(0,e,{...r,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince,sourceIfTags:r.sourceConditions?.tagConditions},cpkInfo:r.customerProvidedKey,copySourceAuthorization:_h(r.sourceAuthorization),tier:fd(r.tier),blobTagsString:pd(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return $r(s.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlock",s,async o=>ue(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,r,n=0,s,o={}){return $r(o.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>ue(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!s?void 0:Os({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:_h(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},$r(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-commitBlockList",r,async n=>ue(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:fd(r.tier),blobTagsString:pd(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ee.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=ue(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s})}async uploadData(e,r={}){return ee.withSpan("BlockBlobClient-uploadData",r,async n=>{if(ut){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,n)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)}})}async uploadBrowserData(e,r={}){return ee.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)})}async uploadSeekableInternal(e,r,n={}){let s=n.blockSize??0;if(s<0||s>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let o=n.maxSingleShotSize??268435456;if(o<0||o>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(s===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>o&&(s=Math.ceil(r/5e4),s<4194304&&(s=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),ee.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=o)return ue(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/s)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=gh(),d=0,p=new KI(n.concurrency);for(let f=0;f{let m=J3(u,f),A=s*f,E=(f===c-1?r:A+s)-A;l.push(m),await this.stageBlock(m,e(A,E),E,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=E,n.onProgress&&n.onProgress({loadedBytes:d})});return await p.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return ee.withSpan("BlockBlobClient-uploadFile",r,async n=>{let s=(await ehe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>the(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,s={}){return s.blobHTTPHeaders||(s.blobHTTPHeaders={}),s.conditions||(s.conditions={}),ee.withSpan("BlockBlobClient-uploadStream",s,async o=>{let a=0,c=gh(),l=0,u=[];return await new uN(e,r,n,async(p,f)=>{let m=J3(c,a);u.push(m),a++,await this.stageBlock(m,p,f,{customerProvidedKey:s.customerProvidedKey,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions}),l+=f,s.onProgress&&s.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),ue(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},wT=class t extends Kl{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Hl(r))a=e,o=r;else if(ut&&r instanceof ir||r instanceof Ht||Eo(r))a=e,s=n,o=Sr(r,s);else if(!r&&typeof r!="string")a=e,o=Sr(new Ht,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Qf(e);if(u.kind==="AccountConnString")if(ut){let d=new ir(u.accountName,u.accountKey);a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=sd(u.proxyUri)),o=Sr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Gr(Gr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Sr(new Ht,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(vh(this.url,$l.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},$r(r.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-create",r,async n=>ue(await this.pageBlobContext.create(0,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,blobSequenceNumber:r.blobSequenceNumber,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:fd(r.tier),blobTagsString:pd(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:G$},o=ue(await this.create(e,{...r,conditions:s,tracingOptions:n.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async uploadPages(e,r,n,s={}){return s.conditions=s.conditions||{},$r(s.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPages",s,async o=>ue(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:Os({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async uploadPagesFromURL(e,r,n,s,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},$r(o.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>ue(await this.pageBlobContext.uploadPagesFromURL(e,Os({offset:r,count:s}),0,Os({offset:n,count:s}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:_h(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-clearPages",n,async s=>ue(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Os({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-getPageRanges",n,async s=>{let o=ue(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Os({offset:e,count:r}),tracingOptions:s.tracingOptions}));return cT(o)})}async listPageRangesSegment(e=0,r,n,s={}){return ee.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>ue(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:Os({offset:e,count:r}),marker:n,maxPageSize:s.maxPageSize,tracingOptions:o.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,s={}){let o;if(n||n===void 0)do o=await this.listPageRangesSegment(e,r,n,s),n=o.continuationToken,yield await o;while(n)}async*listPageRangeItems(e=0,r,n={}){let s;for await(let o of this.listPageRangeItemSegments(e,r,s,n))yield*Z3(o)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let s=this.listPageRangeItems(e,r,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:i((o={})=>this.listPageRangeItemSegments(e,r,o.continuationToken,{maxPageSize:o.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,s={}){return s.conditions=s.conditions||{},ee.withSpan("PageBlobClient-getPageRangesDiff",s,async o=>{let a=ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Os({offset:e,count:r}),tracingOptions:o.tracingOptions}));return cT(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return ee.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:Os({offset:e,count:r}),marker:s,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,s,o){let a;if(s||s===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,s,o),s=a.continuationToken,yield await a;while(s)}async*listPageRangeDiffItems(e,r,n,s){let o;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,o,s))yield*Z3(a)}listPageRangesDiff(e,r,n,s={}){s.conditions=s.conditions||{};let o=this.listPageRangeDiffItems(e,r,n,{...s});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:i((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,s={}){return s.conditions=s.conditions||{},ee.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",s,async o=>{let a=ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Os({offset:e,count:r}),tracingOptions:o.tracingOptions}));return cT(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ee.withSpan("PageBlobClient-resize",r,async n=>ue(await this.pageBlobContext.resize(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-updateSequenceNumber",n,async s=>ue(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions})))}async startCopyIncremental(e,r={}){return ee.withSpan("PageBlobClient-startCopyIncremental",r,async n=>ue(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var rhe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(rhe||(rhe={}));var nhe;(function(t){t.AES256="AES256"})(nhe||(nhe={}));var ST=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Oh=class extends Error{static{i(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e} +If 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(r),this.code=e,this.name="NetworkError"}};Oh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ff=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More 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`),this.name="UsageError"}};Ff.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var XI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Cft=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},PV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ae(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function she(t,e,r){return Cft(this,void 0,void 0,function*(){var n;let s=new Kl(t),o=s.getBlockBlobClient(),a=new PV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new ST(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw or(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(she,"uploadCacheArchiveSDK");var ihe=R(require("buffer"),1),Ic=R(require("fs"),1),ahe=R(require("stream"),1),che=R(require("util"),1);var xT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function bT(t){return t?t>=200&&t<300:!1}i(bT,"isSuccessStatusCode");function Ift(t){return t?t>=500:!0}i(Ift,"isServerErrorStatusCode");function wft(t){return t?[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout].includes(t):!1}i(wft,"isRetryableStatusCode");function Sft(t){return xT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Sft,"sleep");function ohe(t,e,r){return xT(this,arguments,void 0,function*(n,s,o,a=JB,c=jB,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(A){l&&(p=l(A)),m=!0,u=A.message}if(p&&(f=o(p),!Ift(f)))return p;if(f&&(m=wft(f),u=`Cache service responded with ${f}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!m){T(`${n} - Error is not retryable`);break}yield Sft(c),d++}throw Error(`${n} failed: ${u}`)})}i(ohe,"retry");function ZI(t,e){return xT(this,arguments,void 0,function*(r,n,s=JB,o=jB){return yield ohe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Wa)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(ZI,"retryTypedResponse");function Mh(t,e){return xT(this,arguments,void 0,function*(r,n,s=JB,o=jB){return yield ohe(r,n,a=>a.message.statusCode,s,o)})}i(Mh,"retryHttpClientResponse");var ci=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function xft(t,e){return ci(this,void 0,void 0,function*(){yield che.promisify(ahe.pipeline)(t.message,e)})}i(xft,"pipeResponseToStream");var BT=class{static{i(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`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;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ae(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function RT(t,e){return ci(this,void 0,void 0,function*(){let r=Ic.createWriteStream(e),n=new fo("actions/cache"),s=yield Mh("downloadCache",()=>ci(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(nG,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${nG} ms`)}),yield xft(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=Va(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else T("Unable to validate download, no Content-Length header")})}i(RT,"downloadCacheHttpClient");function lhe(t,e,r){return ci(this,void 0,void 0,function*(){var n;let s=yield Ic.promises.open(e,"w"),o=new fo("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Mh("downloadCacheMetadata",()=>ci(this,void 0,void 0,function*(){return yield o.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let I=0;Ici(this,void 0,void 0,function*(){return yield bft(o,t,I,x)}),"promiseGetter")})}u.reverse();let p=0,f=0,m=new BT(l);m.startDisplayTimer();let A=m.onProgress(),h=[],E,y=i(()=>ci(this,void 0,void 0,function*(){let I=yield Promise.race(Object.values(h));yield s.write(I.buffer,0,I.count,I.offset),p--,delete h[I.offset],f+=I.count,A({loadedBytes:f})}),"waitAndWrite");for(;E=u.pop();)h[E.offset]=E.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield y());for(;p>0;)yield y()}finally{o.dispose(),yield s.close()}})}i(lhe,"downloadCacheHttpClientConcurrent");function bft(t,e,r,n){return ci(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield dhe(3e4,Bft(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(o>=5)throw a;o++}})}i(bft,"downloadSegmentRetry");function Bft(t,e,r,n){return ci(this,void 0,void 0,function*(){let s=yield Mh("downloadCachePart",()=>ci(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!s.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield s.readBodyBuffer()}})}i(Bft,"downloadSegment");function uhe(t,e,r){return ci(this,void 0,void 0,function*(){var n;let s=new Lh(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield s.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)T("Unable to determine content length, downloading file with http-client..."),yield RT(t,e);else{let c=Math.min(134217728,ihe.constants.MAX_LENGTH),l=new BT(a),u=Ic.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,p=d.signal;for(;!l.isDone();){let f=l.segmentOffset+l.segmentSize,m=Math.min(c,a-f);l.nextSegment(m);let A=yield dhe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(f,m,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(A==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(A)&&Ic.writeFileSync(u,A)}}finally{l.stopDisplayTimer(),Ic.closeSync(u)}}})}i(uhe,"downloadCacheStorageSDK");var dhe=i((t,e)=>ci(void 0,void 0,void 0,function*(){let r,n=new Promise(s=>{r=setTimeout(()=>s("timeout"),t)});return Promise.race([e,n]).then(s=>(clearTimeout(r),s))}),"promiseWithTimeout");function vV(t){let e={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:33554432};return t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.uploadConcurrency=="number"&&(e.uploadConcurrency=t.uploadConcurrency),typeof t.uploadChunkSize=="number"&&(e.uploadChunkSize=t.uploadChunkSize)),e.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?e.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),e.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?e.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Upload concurrency: ${e.uploadConcurrency}`),T(`Upload chunk size: ${e.uploadChunkSize}`),e}i(vV,"getUploadOptions");function phe(t){let e={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.concurrentBlobDownloads=="boolean"&&(e.concurrentBlobDownloads=t.concurrentBlobDownloads),typeof t.downloadConcurrency=="number"&&(e.downloadConcurrency=t.downloadConcurrency),typeof t.timeoutInMs=="number"&&(e.timeoutInMs=t.timeoutInMs),typeof t.segmentTimeoutInMs=="number"&&(e.segmentTimeoutInMs=t.segmentTimeoutInMs),typeof t.lookupOnly=="boolean"&&(e.lookupOnly=t.lookupOnly));let r=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return r&&!isNaN(Number(r))&&isFinite(Number(r))&&(e.segmentTimeoutInMs=Number(r)*60*1e3),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Download concurrency: ${e.downloadConcurrency}`),T(`Request timeout (ms): ${e.timeoutInMs}`),T(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),T(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),T(`Lookup only: ${e.lookupOnly}`),e}i(phe,"getDownloadOptions");function _V(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}i(_V,"isGhes");function ew(){return _V()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(ew,"getCacheServiceVersion");var fhe=["none","read","write","write-only"];function QV(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(QV,"getCacheMode");function mhe(t){return fhe.includes(t)?t==="read"||t==="write":!0}i(mhe,"isCacheReadable");function Ahe(t){return fhe.includes(t)?t==="write"||t==="write-only":!0}i(Ahe,"isCacheWritable");function NT(){let t=ew();switch(t){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: ${t}`)}}i(NT,"getCacheServiceURL");var Ehe=R(yhe(),1);function TT(){return`@actions/cache-${Ehe.version}`}i(TT,"getUserAgentString");var Ms=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function tw(t){let e=NT();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return T(`Resource Url: ${r}`),r}i(tw,"getCacheApiUrl");function Tft(t,e){return`${t};api-version=${e}`}i(Tft,"createAcceptHeader");function Pft(){return{headers:{Accept:Tft("application/json","6.0-preview.1")}}}i(Pft,"getRequestOptions");function DV(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new lh(t);return new fo(TT(),[e],Pft())}i(DV,"createHttpClient");function whe(t,e,r){return Ms(this,void 0,void 0,function*(){var n;let s=DV(),o=ch(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield ZI("getCacheEntry",()=>Ms(this,void 0,void 0,function*(){return s.getJson(tw(a))}));if(c.statusCode===204)return sf()&&(yield vft(t[0],s,o)),null;if(!bT(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(KB)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return Ln(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(whe,"getCacheEntry");function vft(t,e,r){return Ms(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield ZI("listCache",()=>Ms(this,void 0,void 0,function*(){return e.getJson(tw(n))}));if(s.statusCode===200){let o=s.result,a=o?.totalCount;if(a&&a>0){T(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key +Other caches with similar key:`);for(let c of o?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(vft,"printCachesListForDiagnostics");function kV(t,e,r){return Ms(this,void 0,void 0,function*(){let n=new Ihe.URL(t),s=phe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield uhe(t,e,s):s.concurrentBlobDownloads?yield lhe(t,e,s):yield RT(t,e):yield RT(t,e)})}i(kV,"downloadCache");function She(t,e,r){return Ms(this,void 0,void 0,function*(){let n=DV(),s=ch(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield ZI("reserveCache",()=>Ms(this,void 0,void 0,function*(){return n.postJson(tw("caches"),o)}))})}i(She,"reserveCache");function Che(t,e){return`bytes ${t}-${e}/*`}i(Che,"getContentRange");function _ft(t,e,r,n,s){return Ms(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Che(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":Che(n,s)},a=yield Mh(`uploadChunk (start: ${n}, end: ${s})`,()=>Ms(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!bT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(_ft,"uploadChunk");function Qft(t,e,r,n){return Ms(this,void 0,void 0,function*(){let s=Va(r),o=tw(`caches/${e.toString()}`),a=Fh.openSync(r,"r"),c=vV(n),l=aG("uploadConcurrency",c.uploadConcurrency),u=aG("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ms(this,void 0,void 0,function*(){for(;pFh.createReadStream(r,{fd:a,start:m,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),m,A)}})))}finally{Fh.closeSync(a)}})}i(Qft,"uploadFile");function Dft(t,e,r){return Ms(this,void 0,void 0,function*(){let n={size:r};return yield ZI("commitCache",()=>Ms(this,void 0,void 0,function*(){return t.postJson(tw(`caches/${e.toString()}`),n)}))})}i(Dft,"commitCache");function LV(t,e,r,n){return Ms(this,void 0,void 0,function*(){if(vV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield she(r,e,n)}else{let o=DV();T("Upload cache"),yield Qft(o,t,e,n),T("Commiting cache");let a=Va(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Dft(o,t,a);if(!bT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(LV,"saveCache");var gge=R(uge(),1),Br=R(br(),1),xo=R(br(),1),Hf=R(br(),1),zf=R(br(),1),Vf=R(br(),1);var P4=R(br(),1),v4=R(br(),1),mge=R(br(),1),Age=R(br(),1),hge=R(br(),1);var R4=R(br(),1),N4=R(br(),1),dge=R(br(),1),pge=R(br(),1),fge=R(br(),1);var T4=class extends fge.MessageType{static{i(this,"CacheScope$Type")}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){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,pge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posmP,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Age.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,zf.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hf.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{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){let r={key:"",sizeBytes:"0",version:""};return globalThis.Object.defineProperty(r,zf.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hf.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posBc,"T")},{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){let r={key:"",restoreKeys:[],version:""};return globalThis.Object.defineProperty(r,zf.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Hf.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posU4.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=q4.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>G4.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=$4.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>H4.fromJson(s,{ignoreUnknownFields:!0}))}};function yge(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ln(r),Ln(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(yge,"maskSigUrl");function Ege(t){if(typeof t!="object"||t===null){T("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&yge(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&yge(t.signed_download_url)}i(Ege,"maskSecretUrls");var hP=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},z4=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=$ue();this.baseUrl=NT(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new fo(e,[new lh(o)])}request(e,r,n,s){return hP(this,void 0,void 0,function*(){let o=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;T(`[Request] ${r} ${o}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>hP(this,void 0,void 0,function*(){return this.httpClient.post(o,JSON.stringify(s),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return hP(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&or(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new XI(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof Ff||c instanceof XI)throw c;if(Oh.isNetworkErrorCode(c?.code))throw new Oh(c?.code);o=!0,n=c.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ae(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[mt.BadGateway,mt.GatewayTimeout,mt.InternalServerError,mt.ServiceUnavailable].includes(e):!1}sleep(e){return hP(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function V4(t){let e=new z4(TT(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new AP(e)}i(V4,"internalCacheTwirpClient");var gP=require("fs"),qs=R(require("path"),1);var Rc=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},gd=process.platform==="win32";function HAt(){return Rc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Gue(),e=Mue;if(t)return{path:t,type:po.GNU};if((0,gP.existsSync)(e))return{path:e,type:po.BSD};break}case"darwin":{let t=yield Rs("gtar",!1);return t?{path:t,type:po.GNU}:{path:yield Rs("tar",!0),type:po.BSD}}default:break}return{path:yield Rs("tar",!0),type:po.GNU}})}i(HAt,"getTarPath");function zAt(t,e,r){return Rc(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=ed(s),u="cache.tar",d=Ige(),p=n.type===po.BSD&&s!==is.Gzip&&gd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),"--files-from",oG);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),"-P","-C",p?W4(d):d.replace(new RegExp(`\\${qs.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),"-P");break}if(n.type===po.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(zAt,"getTarArgs");function Cge(t,e){return Rc(this,arguments,void 0,function*(r,n,s=""){let o,a=yield HAt(),c=yield zAt(a,r,n,s),l=n!=="create"?yield VAt(a,r,s):yield WAt(a,r),u=a.type===po.BSD&&r!==is.Gzip&&gd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],{commands:u?o:[o.join(" ")],requiresTempDirectory:u&&n!=="create"}})}i(Cge,"getCommands");function Ige(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(Ige,"getWorkingDirectory");function W4(t){return`"${qs.resolve(t).replace(new RegExp(`\\${qs.sep}`,"g"),"/")}"`}i(W4,"quoteAbsolutePath");function VAt(t,e,r){return Rc(this,void 0,void 0,function*(){let n=t.type===po.BSD&&e!==is.Gzip&&gd;switch(e){case is.Zstd:return n?["zstd -d --long=30 --force -o",KC,W4(r)]:["--use-compress-program",gd?'"zstd -d --long=30"':"unzstd --long=30"];case is.ZstdWithoutLong:return n?["zstd -d --force -o",KC,W4(r)]:["--use-compress-program",gd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(VAt,"getDecompressionProgram");function WAt(t,e){return Rc(this,void 0,void 0,function*(){let r=ed(e),n=t.type===po.BSD&&e!==is.Gzip&&gd;switch(e){case is.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),KC]:["--use-compress-program",gd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case is.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${qs.sep}`,"g"),"/"),KC]:["--use-compress-program",gd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(WAt,"getCompressionProgram");function wge(t,e){return Rc(this,void 0,void 0,function*(){for(let r of t)try{yield zu(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}i(wge,"execCommands");function Sge(t,e,r){return Rc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:s}=yield Cge(e,r,t),o=s?yield pf():void 0;try{yield wge(n,o)}finally{if(o)try{yield wC(o)}catch(a){T(`Failed to delete temporary tar directory: ${a}`)}}})}i(Sge,"execReadCommands");function hw(t,e){return Rc(this,void 0,void 0,function*(){yield Sge(t,e,"list")})}i(hw,"listTar");function Y4(t,e){return Rc(this,void 0,void 0,function*(){let r=Ige();yield nf(r),yield Sge(t,e,"extract")})}i(Y4,"extractTar");function J4(t,e,r){return Rc(this,void 0,void 0,function*(){(0,gP.writeFileSync)(qs.join(t,oG),e.join(` +`));let{commands:n}=yield Cge(r,"create");yield wge(n,t)})}i(J4,"createTar");var tg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},ta=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Wf=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},j4="cache write denied:",yP=class t extends Wf{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},xge=KB,EP=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},CP=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function bge(t){if(!t||t.length===0)throw new ta("Path Validation Error: At least one directory or file path is required")}i(bge,"checkPaths");function K4(t){if(t.length>512)throw new ta(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ta(`Key Validation Error: ${t} cannot contain commas.`)}i(K4,"checkKey");function X4(){return ew()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(X4,"isFeatureAvailable");function Bge(t,e,r,n){return tg(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=ew();T(`Cache service version: ${u}`),bge(s);let d=QV();if(!mhe(d)){ae(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield JAt(s,o,a,c,l):yield YAt(s,o,a,c,l)})}i(Bge,"restoreCache");function YAt(t,e,r,n){return tg(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)K4(m);let p=yield ZC(),f="";try{let m;try{m=yield whe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let E=(u=h?.message)!==null&&u!==void 0?u:"";throw E.includes(xge)?new EP(E):h}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=gw.join(yield pf(),ed(p)),T(`Archive Path: ${f}`),yield kV(m.archiveLocation,f,c),sf()&&(yield hw(f,p));let A=Va(f);return ae(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield Y4(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let A=m;if(A.name===ta.name)throw m;A instanceof Wa&&typeof A.statusCode=="number"&&A.statusCode>=500?XA(`Failed to restore: ${m.message}`):or(`Failed to restore: ${m.message}`)}finally{try{yield XC(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(YAt,"restoreCacheV1");function JAt(t,e,r,n){return tg(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ta("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)K4(f);let p="";try{let f=V4(),m=yield ZC(),A={key:o,restoreKeys:a,version:ch(s,m,l)},h;try{h=yield f.GetCacheEntryDownloadURL(A)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(xge)?new EP(x):I}if(!h.ok){T(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==h.matchedKey?ae(`Cache hit for restore-key: ${h.matchedKey}`):ae(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),h.matchedKey;p=gw.join(yield pf(),ed(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield kV(h.signedDownloadUrl,p,c);let y=Va(p);return ae(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),sf()&&(yield hw(p,m)),yield Y4(p,m),ae("Cache restored successfully"),h.matchedKey}catch(f){let m=f;if(m.name===ta.name)throw f;m instanceof Wa&&typeof m.statusCode=="number"&&m.statusCode>=500?XA(`Failed to restore: ${f.message}`):or(`Failed to restore: ${f.message}`)}finally{try{p&&(yield XC(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(JAt,"restoreCacheV2");function Z4(t,e,r){return tg(this,arguments,void 0,function*(n,s,o,a=!1){let c=ew();T(`Cache service version: ${c}`),bge(n),K4(s);let l=QV();return Ahe(l)?c==="v2"?yield KAt(n,s,o,a):yield jAt(n,s,o,a):(ae(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),T(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}i(Z4,"saveCache");function jAt(t,e,r){return tg(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,f;let m=yield ZC(),A=-1,h=yield iG(n);if(T("Cache Paths:"),T(`${JSON.stringify(h)}`),h.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.");let E=yield pf(),y=gw.join(E,ed(m));T(`Archive Path: ${y}`);try{yield J4(E,h,m),sf()&&(yield hw(y,m));let I=10*1024*1024*1024,x=Va(y);if(T(`File Size: ${x}`),x>I&&!_V())throw new Error(`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let b=yield She(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:x});if(!((c=b?.result)===null||c===void 0)&&c.cacheId)A=(l=b?.result)===null||l===void 0?void 0:l.cacheId;else{if(b?.statusCode===400)throw new Error((d=(u=b?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the data cap limit, not saving cache.`);{let N=(p=b?.error)===null||p===void 0?void 0:p.message;throw N?.startsWith(j4)?new yP(`Unable to reserve cache with key ${s}. More details: ${N}`):new Wf(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(f=b?.error)===null||f===void 0?void 0:f.message}`)}}T(`Saving Cache (ID: ${A})`),yield LV(A,y,"",o)}catch(I){let x=I;if(x.name===ta.name)throw I;x.name===Wf.name?ae(`Failed to save: ${x.message}`):x instanceof Wa&&typeof x.statusCode=="number"&&x.statusCode>=500?XA(`Failed to save: ${x.message}`):or(`Failed to save: ${x.message}`)}finally{try{yield XC(y)}catch(I){T(`Failed to delete archive: ${I}`)}}return A})}i(jAt,"saveCacheV1");function KAt(t,e,r){return tg(this,arguments,void 0,function*(n,s,o,a=!1){var c;o=Object.assign(Object.assign({},o),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield ZC(),u=V4(),d=-1,p=yield iG(n);if(T("Cache Paths:"),T(`${JSON.stringify(p)}`),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.");let f=yield pf(),m=gw.join(f,ed(l));T(`Archive Path: ${m}`);try{yield J4(f,p,l),sf()&&(yield hw(m,l));let A=Va(m);T(`File Size: ${A}`),o.archiveSizeBytes=A,T("Reserving Cache");let h=ch(n,l,a),E={key:s,version:h},y;try{let b=yield u.CreateCacheEntry(E);if(!b.ok)throw b.message&&!b.message.startsWith(j4)&&or(`Cache reservation failed: ${b.message}`),new Error(b.message||"Response was not ok");y=b.signedUploadUrl}catch(b){T(`Failed to reserve cache: ${b}`);let N=(c=b?.message)!==null&&c!==void 0?c:"";throw N.startsWith(j4)?new yP(`Unable to reserve cache with key ${s}. More details: ${N}`):new Wf(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${m}`),yield LV(d,m,y,o);let I={key:s,version:h,sizeBytes:`${A}`},x=yield u.FinalizeCacheEntryUpload(I);if(T(`FinalizeCacheEntryUploadResponse: ${x.ok}`),!x.ok)throw x.message?new CP(x.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(x.entryId)}catch(A){let h=A;if(h.name===ta.name)throw A;h.name===Wf.name?ae(`Failed to save: ${h.message}`):h.name===CP.name?or(h.message):h instanceof Wa&&typeof h.statusCode=="number"&&h.statusCode>=500?XA(`Failed to save: ${h.message}`):or(`Failed to save: ${h.message}`)}finally{try{yield XC(m)}catch(A){T(`Failed to delete archive: ${A}`)}}return d})}i(KAt,"saveCacheV2");var Rge=R(require("util"),1);var rg=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=Rge.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=tW.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=tW.default.join(this.cacheDir,this.opts.cacheFile),yw.default.existsSync(this.cacheDir)||yw.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){T(`Cache.save ${e}`);let n=this.copyToCache(e),s=await this.cacheToHostedToolCache();if(s&&T(`Cache.save cached to hosted tool cache ${s}`),!this.ghaNoCache&&X4())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await Z4([this.cacheDir],this.ghaCacheKey)}catch(o){or(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),of(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=mce(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return ae(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&X4()){if(T("GitHub Actions cache feature available"),await Bge([this.cacheDir],this.ghaCacheKey)){if(ae(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!yw.default.existsSync(this.cachePath))return or(`Cache file ${this.cachePath} does not exist`),"";let r=await this.cacheToHostedToolCache();return r&&ae(`Cached to hosted tool cache ${r}`),this.cachePath}}else this.ghaNoCache?ae("GitHub Actions cache disabled"):ae("GitHub Actions cache feature not available")}catch(e){or(`Failed to restore cache: ${e}`)}return""}static async post(){let e=pie(t.POST_CACHE_KEY);if(!e)return ae("State not set"),Promise.resolve(void 0);let r;try{r=JSON.parse(e)}catch(n){throw new Error(`Failed to parse cache post state: ${n}`)}if(!r.dir||!r.key)throw new Error(`Invalid cache post state: ${e}`);try{ae(`Caching ${r.key} to GitHub Actions cache`),await Z4([r.dir],r.key)}catch(n){or(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ae(`Copying ${e} to ${this.cachePath}`),yw.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await fce(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform())}catch(e){ae(`Failed to cache to hosted tool cache: ${e}`)}return""}platform(){let e=process.config.variables.arm_version;return`${eW.default.platform()}-${eW.default.arch()}${e?"v"+e:""}`}};var Nge=!!process.env.STATE_isPost;Nge||of("isPost","true");async function Tge(t,e){if(Nge)e&&await e(),await BC("Post cache",async()=>{await rg.post()});else try{await t()}catch(r){die(r.message)}}i(Tge,"run");var cm=R(require("path"),1);var at=Symbol("NOT_RESOLVED");function Gn(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}i(Gn,"defineScalarTag");function mW(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i(mW,"defineSequenceTag");function xP(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i(xP,"defineMappingTag");var eht=Gn("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),tht=["","~","null","Null","NULL"],rht=Gn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>tht.indexOf(t)!==-1?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),nht=Gn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),sht=["","~","null","Null","NULL"],oht=Gn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>sht.indexOf(t)!==-1?null:at,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),iht=["true","True","TRUE"],aht=["false","False","FALSE"],cht=Gn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>iht.indexOf(t)!==-1?!0:aht.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),lht=["true"],uht=["false"],dht=Gn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>lht.indexOf(t)!==-1?!0:uht.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),pht=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],fht=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],mht=Gn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>pht.indexOf(t)!==-1?!0:fht.indexOf(t)!==-1?!1:at,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),Aht=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),hht=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ght(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(ght,"parseYamlInteger$2");function yht(t,e){if(e){if(!hht.test(t))return at}else if(!Aht.test(t))return at;let r=ght(t);return Number.isFinite(r)?r:at}i(yht,"resolveYamlInteger$2");var Hge=Gn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:yht,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Eht=new RegExp("^-?(?:0|[1-9][0-9]*)$"),Cht=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Iht(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(Iht,"parseYamlInteger$1");function wht(t,e){if(e){if(!Cht.test(t))return at}else if(!Eht.test(t))return at;let r=Iht(t);return Number.isFinite(r)?r:at}i(wht,"resolveYamlInteger$1");var Sht=Gn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:wht,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),xht=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function bht(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let s of e.split(":"))n=n*60+Number(s);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}i(bht,"parseYamlInteger");function Bht(t){if(!xht.test(t))return at;let e=bht(t);return Number.isFinite(e)?e:at}i(Bht,"resolveYamlInteger");var cW=Gn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Bht,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Rht=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Nht=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Tht(t){if(!Rht.test(t))return at;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||Nht.test(t)?n:at}i(Tht,"resolveYamlFloat$2");function Pht(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(Pht,"representYamlFloat$2");var zge=Gn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Tht,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Pht}),vht=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),_ht=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Qht(t,e){if(e){if(!_ht.test(t))return at;let n=t.toLowerCase(),s=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let o=s*parseFloat(n);return Number.isFinite(o)?o:at}if(!vht.test(t))return at;let r=Number(t);return Number.isFinite(r)?r:at}i(Qht,"resolveYamlFloat$1");function Dht(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(Dht,"representYamlFloat$1");var kht=Gn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Qht,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Dht}),Lht=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Oht=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Mht(t){if(!Lht.test(t))return at;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let s of e.split(":"))n=n*60+Number(s);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||Oht.test(t)?n:at}i(Mht,"resolveYamlFloat");function Fht(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(Fht,"representYamlFloat");var lW=Gn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Mht,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Fht}),Uht=Gn("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":at,"resolve"),identify:i(()=>!1,"identify")}),qht=/^[A-Za-z0-9+/]*={0,2}$/;function Ght(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!qht.test(e))return at;let r=atob(e),n=new Uint8Array(r.length);for(let s=0;sObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:$ht}),zht=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vht=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 Pge(t,e,r,n=0,s=0,o=0,a=0){let c=new Date(Date.UTC(t,e,r,n,s,o,a));return c.setUTCFullYear(t,e,r),c}i(Pge,"makeUtcDate");function Wht(t){let e=zht.exec(t);if(e===null&&(e=Vht.exec(t)),e===null)return at;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=Pge(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?at:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return at;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=Pge(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return at;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return at;let f=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-f:f))}return u}i(Wht,"resolveYamlTimestamp");var Yht=Gn("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:Wht,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),Jht=mW("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function bP(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(bP,"isPlainObject");function vge(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(vge,"pick");var jht=mW("tag:yaml.org,2002:omap",{create:i(()=>({list:[],seen:new Set}),"create"),addItem:i((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(bP(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:i(t=>t.list,"finalize"),identify:i(()=>!1,"identify")}),Kht=mW("tag:yaml.org,2002:pairs",{create:i(()=>[],"create"),addItem:i((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:i(()=>!1,"identify")}),Xht=xP("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:bP,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:i((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),Zht=xP("tag:yaml.org,2002:set",{create:i(()=>new Set,"create"),identify:i(t=>t instanceof Set,"identify"),represent:i(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:i((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i(()=>null,"get")});function egt(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(egt,"createTagDefinitionMap");function tgt(){return{scalar:[],sequence:[],mapping:[]}}i(tgt,"createTagDefinitionListMap");function rgt(t){let e=[];for(let r of t){let n=e.length;for(let s=0;sd.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let p of d.implicitFirstChars)c.add(p);let l=new Map;for(let d of c)l.set(d,n.filter(p=>p.implicitFirstChars===null||p.implicitFirstChars.indexOf(d)!==-1));let u=s.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=s.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=s.mapping["tag:yaml.org,2002:map"],this.exact=s,this.prefix=o}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let s of r){let o=s.resolve(e,!1,s.tagName);if(o!==at)return{value:o,tag:s}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new Vge([...this.tags,...r])}},AW=new BP([eht,Jht,Xht]),OCr=new BP([...AW.tags,nht,dht,Sht,kht]),ngt=new BP([...AW.tags,rht,cht,Hge,zge]),sgt=new BP([...AW.tags,oht,mht,cW,lW,Yht,Uht,Hht,jht,Kht,Zht]),ogt=sgt.withTags({...cW,resolve:i((t,e,r)=>{let n=cW.resolve(t,e,r);return n===at?Hge.resolve(t,e,r):n},"resolve")},{...lW,resolve:i((t,e,r)=>{let n=lW.resolve(t,e,r);return n===at?zge.resolve(t,e,r):n},"resolve")}),MCr=xP("tag:yaml.org,2002:map",{create:i(()=>new Map,"create"),addPair:i((t,e,r)=>(t.set(e,r),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i((t,e)=>t.get(e),"get"),identify:i(t=>t instanceof Map||bP(t),"identify"),represent:i(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function _ge(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:bP,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{let n=_ge(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:i((t,e)=>{let r=_ge(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),igt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function rW(t,e,r,n,s){let o="",a="",c=Math.floor(s/2)-1;return n-e>c&&(o=" ... ",e=n-c+o.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+o.length}}i(rW,"getLine");function nW(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(nW,"padStart");function agt(t,e){if(!t.buffer)return null;let r={...igt,...e},n=/\r?\n|\r|\0/g,s=[0],o=[],a,c=-1;for(;a=n.exec(t.buffer);)o.push(a.index),s.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let l="",u=Math.min(t.line+r.linesAfter,o.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let f=1;f<=r.linesBefore&&!(c-f<0);f++){let m=rW(t.buffer,s[c-f],o[c-f],t.position-(s[c]-s[c-f]),d);l=`${" ".repeat(r.indent)}${nW((t.line-f+1).toString(),u)} | ${m.str} +${l}`}let p=rW(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${nW((t.line+1).toString(),u)} | ${p.str} `,l+=`${"-".repeat(r.indent+u+3+p.pos)}^ -`;for(let m=1;m<=r.linesAfter&&!(c+m>=o.length);m++){let f=Y4(t.buffer,s[c+m],o[c+m],t.position-(s[c]-s[c+m]),d);l+=`${" ".repeat(r.indent)}${J4((t.line+m+1).toString(),u)} | ${f.str} -`}return l.replace(/\n$/,"")}i(XAt,"makeSnippet");function bge(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=` +`;for(let f=1;f<=r.linesAfter&&!(c+f>=o.length);f++){let m=rW(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${nW((t.line+f+1).toString(),u)} | ${m.str} +`}return l.replace(/\n$/,"")}i(agt,"makeSnippet");function Qge(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=` -${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i(bge,"formatError");var Hm=class Fge extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=bge(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${bge(this,e)}`}static throwAt(e,r,n,s=""){let o=0,a=0;for(let l=0;l>10)+55296,(t-65536&1023)+56320)}i(eht,"charFromCodepoint");function tht(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(tht,"fromHexCode$1");function rht(t){return t===120?2:t===117?4:8}i(rht,"escapedHexLen$1");function Av(t,e,r){let n=0;for(;e0;u--){s++;let p=tht(t.charCodeAt(s));d=(d<<4)+p}n+=eht(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=Av(t,s,r);n+=cW(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(oht,"getDoubleQuotedValue");function Rge(t,e,r,n,s,o){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,` +${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i(Qge,"formatError");var Yf=class Wge extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Qge(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Qge(this,e)}`}static throwAt(e,r,n,s=""){let o=0,a=0;for(let l=0;l>10)+55296,(t-65536&1023)+56320)}i(lgt,"charFromCodepoint");function ugt(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(ugt,"fromHexCode$1");function dgt(t){return t===120?2:t===117?4:8}i(dgt,"escapedHexLen$1");function IP(t,e,r){let n=0;for(;e0;u--){s++;let p=ugt(t.charCodeAt(s));d=(d<<4)+p}n+=lgt(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=IP(t,s,r);n+=hW(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(mgt,"getDoubleQuotedValue");function kge(t,e,r,n,s,o){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,` `),l=c===""?[]:(c.endsWith(` `)?c.slice(0,-1):c).split(` -`),u="",d=!1,p=0,m=!1;for(let f of l){let A=0;for(;A=f.length){p++;continue}let h=f.slice(a),E=h.charCodeAt(0);o?E===32||E===9?(m=!0,u+=` -`.repeat(d?1+p:p)):m?(m=!1,u+=` +`),u="",d=!1,p=0,f=!1;for(let m of l){let A=0;for(;A=m.length){p++;continue}let h=m.slice(a),E=h.charCodeAt(0);o?E===32||E===9?(f=!0,u+=` +`.repeat(d?1+p:p)):f?(f=!1,u+=` `.repeat(p+1)):p===0?d&&(u+=" "):u+=` `.repeat(p):u+=` `.repeat(d?1+p:p),u+=h,d=!0,p=0}return s===bo.KEEP?u+=` `.repeat(d?1+p:p):s!==bo.STRIP&&d&&(u+=` -`),u}i(Rge,"getBlockValue");function iht(t,e){if(e.valueStart===ZAt)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Xe.SINGLE_QUOTED:return sht(t,r,n);case Xe.DOUBLE_QUOTED:return oht(t,r,n);case Xe.LITERAL_BLOCK:return Rge(t,r,n,e.indent,e.chomping,!1);case Xe.FOLDED_BLOCK:return Rge(t,r,n,e.indent,e.chomping,!0);default:return nht(t,r,n)}}i(iht,"getScalarValue");var aht=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),cht="-#;/?:@&=+$_.~*'()",sEr=cht+"!,[]";function j4(t){let e="",r=0;for(;r=192){let s=n<224?1:n<240?2:3;for(n&=(1<<6-s)-1;s-- >0;)n=n<<6|parseInt(t.slice(r+1,r+3),16)&63,r+=3}n<65536?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023))}return e}i(j4,"tagPercentDecode");function Gge(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return j4(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return j4(e?.[n]??aht[n]??n)+j4(t.slice(n.length))}i(Gge,"tagNameFull");var Xh=-1,lht="tag:yaml.org,2002:merge",lW={filename:"",schema:YAt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function uht(t){return"tagStart"in t&&t.tagStart!==Xh?t.tagStart:"anchorStart"in t&&t.anchorStart!==Xh?t.anchorStart:"valueStart"in t&&t.valueStart!==Xh?t.valueStart:"start"in t?t.start:0}i(uht,"eventPosition$1");function wn(t,e){Hm.throwAt(t.source,t.position,e,t.filename)}i(wn,"throwError$1");function Hge(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Hm)throw s;Hm.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(Hge,"finalizeCollection");function dht(t,e){let r=iht(t.source,e),n=e.tagStart===Xh?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=Gge(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===at&&wn(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(o)??t.schema.lookupSequenceTag(o);if(c){r!==""&&wn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:Hge(t,t.position,c,l),tag:c}}wn(t,`unknown scalar tag !<${o}>`)}return e.style===Xe.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(dht,"constructScalar");function Nge(t,e,r){let n=e.tagStart===Xh?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:Gge(n,t.tagHandlers)}i(Nge,"collectionTagName");function $ge(t){return t.nodeKind==="mapping"}i($ge,"isMappingTag");function Tge(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&wn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(Tge,"chargeMergeWork");function vge(t,e,r,n){Tge(t);for(let s of n.keys(r)){if(Tge(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&wn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(vge,"mergeKeys");function pht(t,e,r,n){if(t.position=e.keyPosition,$ge(n))vge(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&wn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||wn(t,"cannot merge mappings; the provided source object is unacceptable"),vge(t,e,s,o)}}else wn(t,"cannot merge mappings; the provided source object is unacceptable")}i(pht,"mergeSource");function mht(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){pht(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&wn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&wn(t,o),e.overridable?.delete(r)}i(mht,"addMappingValue");function K4(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){$ge(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&wn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,mht(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===lht}i(K4,"addValue");function X4(t,e,r,n,s){if(e.anchorStart!==Xh){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(X4,"storeAnchor");function fht(t,e){let r={...lW,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex`);let a=o.create(s),c=X4(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case Zt.MAPPING:{let s=Nge(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||wn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=X4(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:a,tag:o,anchor:c,key:void 0,keyPosition:r.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Zt.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&wn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||wn(r,`unidentified alias "${s}"`),o.isValueFinal||wn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),K4(r,o.value,o.tag);break}case Zt.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,wn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:Hge(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),K4(r,o,s.tag)}break}}}return r.documents}i(fht,"constructFromEvents");var ct=-1,zge=Object.prototype.hasOwnProperty,rg=1,Vge=2,Wge=3,hv=4,Aht=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hht=/[,\[\]{}]/,Yge=/^(?:!|!!|![0-9A-Za-z-]+!)$/,rW=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Jge=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,ght=new RegExp(`^(?:${rW})*$`),yht=new RegExp(`^(?:${Jge})+$`),Eht=new RegExp(`^(?:!(?:${rW})*|${Jge}(?:${rW})*)$`),uW={filename:"",maxDepth:100};function Cht(t,e,r){t.events.push({type:Zt.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(Cht,"addDocumentEvent");function jge(t,e,r,n,s,o,a){t.events.push({type:Zt.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(jge,"addSequenceEvent");function Kge(t,e,r,n,s,o,a){t.events.push({type:Zt.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(Kge,"addMappingEvent");function Pge(t,e){t.events.splice(e.eventsLength,0,{type:Zt.MAPPING,start:e.position,anchorStart:ct,anchorEnd:ct,tagStart:ct,tagEnd:ct,style:hd.FLOW})}i(Pge,"insertFlowPairMappingEvent");function og(t,e,r,n,s,o,a,c,l=bo.CLIP,u=-1,d=!1){t.events.push({type:Zt.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(og,"addScalarEvent");function Iht(t,e,r){t.events.push({type:Zt.ALIAS,anchorStart:e,anchorEnd:r})}i(Iht,"addAliasEvent");function Zh(t){t.events.push({type:Zt.POP})}i(Zh,"addPopEvent");function ps(t){og(t,ct,ct,ct,ct,ct,ct,Xe.PLAIN)}i(ps,"addEmptyScalarEvent");function _ge(){return{anchorStart:ct,anchorEnd:ct,tagStart:ct,tagEnd:ct}}i(_ge,"emptyProperties");function eg(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(eg,"snapshotState");function tg(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.events.length=e.eventsLength}i(tg,"restoreState");function pe(t,e){Hm.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(pe,"throwError");function on(t){return t===10||t===13}i(on,"isEol");function ig(t){return t===9||t===32}i(ig,"isWhiteSpace");function ea(t){return ig(t)||on(t)}i(ea,"isWsOrEol");function Xl(t){return t===0||ea(t)}i(Xl,"isWsOrEolOrEnd");function $m(t){return t===44||t===91||t===93||t===123||t===125}i($m,"isFlowIndicator");function wht(t){return t>=48&&t<=57?t-48:-1}i(wht,"fromDecimalCode");function Sht(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(Sht,"fromHexCode");function xht(t){return t===120?2:t===117?4:t===85?8:0}i(xht,"escapedHexLen");function bht(t){return t===48||t===97||t===98||t===116||t===9||t===110||t===118||t===102||t===114||t===101||t===32||t===34||t===47||t===92||t===78||t===95||t===76||t===80}i(bht,"isSimpleEscape");function gv(t){t.input.charCodeAt(t.position)===10?t.position++:(t.position++,t.input.charCodeAt(t.position)===10&&t.position++),t.line++,t.lineStart=t.position,t.lineIndent=0,t.firstTabInLine=-1}i(gv,"consumeLineBreak");function Un(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||ea(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;ig(n);)s=!0,n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&s&&n===35)do n=t.input.charCodeAt(++t.position);while(!on(n)&&n!==0);if(!on(n))break;for(gv(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(Un,"skipSeparationSpace");function ng(t,e=t.position){let r=t.input.charCodeAt(e);if((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)){let n=t.input.charCodeAt(e+3);return n===0||ea(n)}return!1}i(ng,"testDocumentSeparator");function Xge(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(Xge,"skipByteOrderMark");function dW(t){if(t.position!==t.lineStart)return!1;if(ng(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=eg(t);Xge(t),Un(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&ng(t));return tg(t,e),n}i(dW,"testDocumentBoundary");function Qge(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!on(e);)e=t.input.charCodeAt(++t.position)}i(Qge,"skipUntilLineEnd");function Zge(t,e,r){let n=Aht.exec(t.input.slice(e,r));n!==null&&(t.position=e+n.index+n[0].length-1,pe(t,"the stream contains non-printable characters"))}i(Zge,"checkPrintable");function Bht(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==ct&&pe(t,"duplication of a tag property");let n=t.position,s=!1,o=!1,a="!",c=t.input.charCodeAt(++t.position);c===60?(s=!0,c=t.input.charCodeAt(++t.position)):c===33&&(o=!0,a="!!",c=t.input.charCodeAt(++t.position));let l=t.position,u;if(s){for(;c!==0&&c!==62;)c=t.input.charCodeAt(++t.position);c!==62&&pe(t,"unexpected end of the stream within a verbatim tag"),u=t.input.slice(l,t.position),t.position++}else{for(;c!==0&&!ea(c)&&!(r&&$m(c));)c===33&&(o?pe(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),Yge.test(a)||pe(t,"named tag handle cannot contain such characters"),o=!0,l=t.position+1)),c=t.input.charCodeAt(++t.position);u=t.input.slice(l,t.position),hht.test(u)&&pe(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?ght.test(u):yht.test(u))&&pe(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!zge.call(t.tagHandlers,a)&&pe(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(Bht,"readTagProperty");function Rht(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==ct&&pe(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ea(t.input.charCodeAt(t.position))&&!$m(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an anchor node must contain at least one character"),e.anchorStart=r,e.anchorEnd=t.position,!0}i(Rht,"readAnchorProperty");function Nht(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==ct||e.tagStart!==ct)&&pe(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ea(t.input.charCodeAt(t.position))&&!$m(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an alias node must contain at least one character"),Iht(t,r,t.position),!0}i(Nht,"readAlias");function nW(t,e){Un(t,!1),t.lineIndent0;)t.position++,Sht(t.input.charCodeAt(t.position))<0&&pe(t,"expected hexadecimal character");t.position++}}else on(o)?(s=!1,nW(t,e)):t.position===t.lineStart&&ng(t)?pe(t,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?pe(t,"expected valid JSON character"):t.position++}pe(t,"unexpected end of the stream within a double quoted scalar")}i(vht,"readDoubleQuotedScalar");function Pht(t,e,r){let n=t.input.charCodeAt(t.position),s=bo.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?Xe.LITERAL_BLOCK:Xe.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let f=t.input.charCodeAt(t.position),A=wht(f);if(f===43||f===45)s!==bo.CLIP&&pe(t,"repeat of a chomping mode identifier"),s=f===43?bo.KEEP:bo.STRIP,t.position++;else if(A>=0)A===0&&pe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&pe(t,"repeat of an indentation width identifier"),o=e+A-1,a=!0,t.position++;else break}let l=!1;for(;ig(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&Qge(t),on(t.input.charCodeAt(t.position))?gv(t):t.input.charCodeAt(t.position)!==0&&pe(t,"a line break is expected");let u=a?o:-1,d=0,p=t.position,m=t.position;for(;t.input.charCodeAt(t.position)!==0;){let f=t.position,A=0;for(;t.input.charCodeAt(f+A)===32;)A++;let h=t.input.charCodeAt(f+A);if(h===0){u>=0?A>u&&(m=f+A):A>0&&(m=f+A);break}if(dW(t))break;if(!a&&u===-1&&on(h)&&(d=Math.max(d,A)),!a&&u===-1&&!on(h)&&(h===9&&A=e&&A=e){l=!0,a=t.input.charCodeAt(t.position);continue}t.position=u,t.line=d,t.lineStart=p,t.lineIndent=m;break}}ig(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(Zge(t,s,o),og(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Xe.PLAIN,bo.CLIP,-1,!l),!0)}i(Qht,"readPlainScalar");function pw(t,e){let r=t.line;Un(t,!0),(t.line>r&&t.lineIndent0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Xl(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?ps(t):sg(t,e,Wge,!1,!0),Un(t,!0),t.lineIndent=t.length)break;t.lineIndent>e&&pe(t,"bad indentation of a sequence entry"),t.line===n&&t.input.charCodeAt(t.position)===45&&Xl(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry")}return Zh(t),!0}i(Dge,"readBlockSequence");function Z4(t,e,r,n){let s=!1,o=!1,a=!1,c=!1;if(t.firstTabInLine!==-1)return!1;let l=t.input.charCodeAt(t.position);for(;l!==0;){!s&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation"));let u=t.input.charCodeAt(t.position+1),d=t.line;if((l===63||l===58)&&Xl(u))a||(Kge(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,hd.BLOCK),a=!0),l===63?(s&&ps(t),o=!0,s=!0):(s||(ps(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(ps(t),s=!1);let p=eg(t);if(!sg(t,r,Vge,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);ig(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Xl(l)||pe(t,"a whitespace character is expected after the key-value separator within a block mapping"),a||(t.events.splice(p.eventsLength,0,{type:Zt.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:hd.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)pe(t,"expected ':' after a mapping key");else return n.anchorStart!==ct||n.tagStart!==ct?(tg(t,p),!1):!0}else if(o)pe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==ct||n.tagStart!==ct?(tg(t,p),!1):!0}if(sg(t,e,hv,!0,c)&&(c=!1),s||c&&(ps(t),c=!1),Un(t,!0),l=t.input.charCodeAt(t.position),(t.line===d||t.lineIndent>e)&&l!==0)pe(t,"bad indentation of a mapping entry");else if(t.lineIndent=t.maxDepth&&pe(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let a=1,c=!1,l=!1,u=null,d=_ge(),p=r===hv||r===Wge,m=p,f=p;if(n&&Un(t,!0)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1),a===1)for(;;){let A=t.input.charCodeAt(t.position),h=eg(t);if(c&&a!==1&&(A===33||A===38))break;if(c&&f&&(d.tagStart!==ct||d.anchorStart!==ct)&&(A===33||A===38)){let E=eg(t),y=e+1;if(Z4(t,t.position-t.lineStart,y,d)&&t.events[E.eventsLength]?.type===Zt.MAPPING)return t.depth--,!0;tg(t,E)}if(c&&(A===33&&d.tagStart!==ct||A===38&&d.anchorStart!==ct)||!Bht(t,d,r===rg)&&!Rht(t,d))break;u===null&&(u=h),Un(t,!0)?(c=!0,m=f,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1):m=!1}if(m&&(m=c||s),a===1||r===hv){let A=r===rg||r===Vge?e:e+1,h=t.position-t.lineStart;if(a===1)if(m&&(Dge(t,h,d)||Z4(t,h,A,d))||Dht(t,A,d))l=!0;else{let E=t.input.charCodeAt(t.position);if(u!==null&&o&&f&&!m&&E!==124&&E!==62){let y=eg(t),I=u.position-u.lineStart;tg(t,u),Z4(t,I,A,_ge())&&t.events[y.eventsLength]?.type===Zt.MAPPING?l=!0:tg(t,y)}!l&&(p&&Pht(t,A,d)||Tht(t,A,d)||vht(t,A,d)||Nht(t,d)||Qht(t,A,r,d))&&(l=!0)}else a===0&&(l=m&&Dge(t,h,d))}return p=p&&!l,!l&&(d.anchorStart!==ct||d.tagStart!==ct||p)&&(og(t,ct,ct,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Xe.PLAIN),l=!0),t.depth--,l||d.anchorStart!==ct||d.tagStart!==ct}i(sg,"parseNode");function kht(t){if(t.lineIndent>0||t.input.charCodeAt(t.position)!==37)return!1;t.position++;let e=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ea(t.input.charCodeAt(t.position));)t.position++;let r=t.input.slice(e,t.position),n=[];for(r.length===0&&pe(t,"directive name must not be less than one character in length");t.input.charCodeAt(t.position)!==0&&!on(t.input.charCodeAt(t.position));){for(;ig(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||on(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ea(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(on(t.input.charCodeAt(t.position))&&gv(t),r==="YAML"){t.directives.some(o=>o.kind==="yaml")&&pe(t,"duplication of %YAML directive"),n.length!==1&&pe(t,"YAML directive accepts exactly one argument");let s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);s===null&&pe(t,"ill-formed argument of the YAML directive"),parseInt(s[1],10)!==1&&pe(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&pe(t,"TAG directive accepts exactly two arguments");let[s,o]=n;Yge.test(s)||pe(t,"ill-formed tag handle (first argument) of the TAG directive"),zge.call(t.tagHandlers,s)&&pe(t,`there is a previously declared suffix for "${s}" tag handle`),Eht.test(o)||pe(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagHandlers[s]=o,t.directives.push({kind:"tag",handle:s,prefix:o})}return!0}i(kht,"readDirective");function Lht(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(Un(t,!0);kht(t);)e=!0,Un(t,!0);let r=!1,n=!1,s=!0;if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45&&Xl(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,Un(t,!0),s=t.line>c}else e&&pe(t,"directives end mark is expected");let o=t.events.length;if(!r&&t.position===t.lineStart&&t.input.charCodeAt(t.position)===46&&ng(t)){t.position+=3,Un(t,!0);return}if(Cht(t,r,!1),sg(t,t.lineIndent-1,hv,!1,s,s)||ps(t),Un(t,!0),t.position===t.lineStart&&ng(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,Un(t,!0),t.line===c&&t.position=n.length));){let o=n.position;Lht(n),n.position===o&&pe(n,"can not read a document")}return n.events}i(Oht,"parseEvents");var Mht={...uW,...lW};function Fht(t,e={}){let r={...Mht,...e},n=String(t),s=Object.keys(uW),o=Object.keys(lW);return fht(Oht(n,Sge(r,s)),{...Sge(r,o),source:n})}i(Fht,"loadDocuments");function eye(t,e){let r=Fht(t,e);if(r.length===0)throw new Hm("expected a document, but the input is empty");if(r.length===1)return r[0];throw new Hm("expected a single document in the stream, but found more")}i(eye,"load");function Iv(t,e){return(t&1<s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Xe.FOLDED_BLOCK:r&&(t.style=Xe.LITERAL_BLOCK)}i($ht,"tryLongOrMultilineAsBlock");function zht(t){t.style===Xe.PLAIN&&!Iv(t.allowedStylesMask,Xe.PLAIN)&&(t.style=tye(t))}i(zht,"quoteInvalidPlain");function Vht(t){Iv(t.allowedStylesMask,t.style)||(t.style=Xe.DOUBLE_QUOTED)}i(Vht,"fallbackToDoubleQuoted");var Wht="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Yht="[\\n\\r]",Jht="\\uFEFF",pW="[ \\t]",rye=`(?:(?!(?:${Yht}|${Jht}))${Wht})`,wv=`(?:(?!${pW})${rye})`,nye="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",sye="[-?:,\\[\\]{}#&*!|>'\"%@`]",jht="[,\\[\\]{}]",sW=wv,oW=`(?:(?!${jht})${wv})`,Kht=`(?:(?:(?!${sye})${wv})|[?:-](?=${sW}))`,Xht=`(?:(?:(?!${sye})${wv})|[?:-](?=${oW}))`,oye=`(?:(?:(?![:#])${sW})|:(?=${sW}))#*`,iye=`(?:(?:(?![:#])${oW})|:(?=${oW}))#*`,aye=`(?:${pW}*${oye})*`,cye=`(?:${pW}*${iye})*`,lye=`${Kht}#*${aye}`,uye=`${Xht}#*${cye}`,Zht=lye,egt=uye,tgt=`\\n+${oye}${aye}`,rgt=`\\n+${iye}${cye}`,ngt=`${lye}(?:${tgt})*`,sgt=`${uye}(?:${rgt})*`,oEr=new RegExp(`^(?:${ngt})$`,"u"),iEr=new RegExp(`^(?:${sgt})$`,"u"),aEr=new RegExp(`^(?:${Zht})$`,"u"),cEr=new RegExp(`^(?:${egt})$`,"u"),lEr=new RegExp(`^(?:${nye})*$`,"u"),uEr=new RegExp(`^(?:${nye}|\\n)*$`,"u"),dEr=new RegExp(`^(?:${rye}|\\n)*$`,"u");var ogt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(kge).map(t=>Reflect.get(kge,t)),tagBeforeAnchor:!1};var pEr={...ogt,schema:jAt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var mEr=Zt.DOCUMENT,fEr=Zt.SEQUENCE,AEr=Zt.MAPPING,hEr=Zt.SCALAR,gEr=Zt.ALIAS,yEr=Zt.POP,EEr=Xe.PLAIN,CEr=Xe.SINGLE_QUOTED,IEr=Xe.DOUBLE_QUOTED,wEr=Xe.LITERAL_BLOCK,SEr=Xe.FOLDED_BLOCK,xEr=hd.BLOCK,bEr=hd.FLOW,BEr=bo.CLIP,REr=bo.STRIP,NEr=bo.KEEP;var gi=R(require("fs"),1),Us=R(require("path"),1);var wSe=R(tCe(),1);var kv=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var OY=R(require("fs"),1),xwe=R(require("os"),1),Tw=R(require("path"),1);var MW=R(require("fs"),1),CCe=R(require("os"),1),ICe=R(require("path"),1),wCe=R(ECe(),1);var Mv=class t{static{i(this,"Context")}static _tmpDir=MW.default.mkdtempSync(ICe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||CCe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return MW.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return wCe.tmpNameSync(e)}};var eu=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),$u(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),yC(e,r,n)}};var LY=R(require("crypto"),1),wwe=R(require("fs"),1),Nw=R(require("path"),1),Swe=R(hwe(),1);var Ze=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Rw=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var SP=i(function(t){let e=[];for(let r=0,n=t.length;r=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let 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{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},kY=DY;var gwe=i(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let o=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&o.length===1&&o[0]===63||n.push(o),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new kY(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new kY(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var ywe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Sg=i(function(t){let e={};for(let n in t)e[ywe(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new Ze("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new Ze("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new Ze("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let s=Date.parse(n);return isNaN(s)?n:new Date(s)};else if(typeof e.cast_date!="function")throw new Ze("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=void 0,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=SP(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new Ze("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new Ze("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new Ze("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new Ze("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(e.comment_no_infix===void 0||e.comment_no_infix===null||e.comment_no_infix===!1)e.comment_no_infix=!1;else if(e.comment_no_infix!==!0)throw new Ze("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!Rw(e.delimiter_auto))throw new Ze("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!Rw(e.delimiter_auto.preferred))throw new Ze("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,s)=>(n.total-n.std)*(s.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new Ze("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new Ze("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new Ze("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return n}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new Ze("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new Ze("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new Ze("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.on_skip!==void 0&&e.on_skip!==null&&typeof e.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new Ze("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new Ze("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,s){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new Ze("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new Ze("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var Ewe=i(function(t,e){e||({delimiter_auto:e}=Sg({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=xP({delimiter:[]}),c=i(d=>o.push(d),"push"),l=i(()=>{},"close"),u=a.parse(s,!0,c,l);if(u!==void 0)throw u;return o})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([s],o)=>{for(let a=0,c=s.length;a{s.char_code=o,s.std=_St(s.lines),s.total=s.lines.reduce((a,c)=>a+c,0),s.preferred=!!e.preferred[o],s.score=e.score(s,e)});let n=r.reduce((s,o)=>s.score>o.score?s:o,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),_St=i(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,s)=>n+s)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,s)=>n+s)/e)},"std");var Cwe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),QSt=13,DSt=10,xg={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},xP=i(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=Sg(t);return{info:e,original_options:t,options:r,state:gwe(r),__needMoreData:i(function(n,s,o){if(o)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:p}=this.state,m=s-n-1,f=Math.max(d,p===0?Buffer.from(`\r -`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return mu.size)this.options.delimiter=[Buffer.from(Ewe(mt,this.options.delimiter_auto))],this.state.previousBuf=mt,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=mt;return}}let{previousBuf:De}=this.state,D;if(De===void 0)if(n===void 0){a();return}else D=n;else De!==void 0&&n===void 0?D=De:D=Buffer.concat([De,n]);if(G===!1)if(c===!1)this.state.bomSkipped=!0;else if(D.length<3){if(s===!1){this.state.previousBuf=D;return}}else{for(let mt in xg)if(xg[mt].compare(D,0,xg[mt].length)===0){let Na=xg[mt].length;this.state.bufBytesStart+=Na,D=D.slice(Na);let wu=Sg({...this.original_options,encoding:mt});for(let sr in wu)this.options[sr]=wu[sr];({comment:b,escape:N,quote:P}=this.options);break}this.state.bomSkipped=!0}let ze=D.length,Z;for(Z=0;Zx){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(D,Z)&&(_=this.options.record_delimiter);let mt=D[Z];if(A===!0&&_e.append(mt),(mt===QSt||mt===DSt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(D,Z,mt)&&Z+N.lengthxg[Ip].equals(this.state.field.toString())?Ip:!1).filter(Boolean)[0],js=this.__error(new Ze("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(sr.column)} at line ${sr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ta?`(${Ta} bom)`:void 0],this.options,sr,{field:this.state.field}));if(js!==void 0)return js}}else{this.state.quoting=!0,Z+=P.length-1;continue}if(this.state.quoting===!1){let sr=this.__isRecordDelimiter(mt,D,Z);if(sr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Z+=sr-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Z+=sr-1;continue}this.info.bytes=this.state.bufBytesStart+Z;let Ip=this.__onField();if(Ip!==void 0)return Ip;this.info.bytes=this.state.bufBytesStart+Z+sr;let rb=this.__onRecord(o);if(rb!==void 0)return rb;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,Z+=sr-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,D,Z,mt)!==0){this.state.commenting=!0;continue}let Ta=this.__isDelimiter(D,Z,mt);if(Ta!==0){this.info.bytes=this.state.bufBytesStart+Z;let js=this.__onField();if(js!==void 0)return js;Z+=Ta-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Ze("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Na=m===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(D,Z),wu=E===!1||this.state.wasQuoting===!1;if(Na===!0&&wu===!0)this.state.field.append(mt);else{if(E===!0&&!this.__isCharTrimable(D,Z))return this.__error(new Ze("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()));Na===!1&&(Z+=this.__isCharTrimable(D,Z)-1);continue}}if(s===!0)if(this.state.quoting===!0){let mt=this.__error(new Ze("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(mt!==void 0)return mt}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+Z;let mt=this.__onField();if(mt!==void 0)return mt;let Na=this.__onRecord(o);if(Na!==void 0)return Na}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=Z,this.state.previousBuf=D.slice(Z);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:i(function(n){let{columns:s,group_columns_by_name:o,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:p,raw:m,skip_records_with_empty_values:f}=this.options,{enabled:A,record:h}=this.state;if(A===!1)return this.__resetRecord();let E=h.length;if(s===!0){if(f===!0&&Cwe(h)){this.__resetRecord();return}return this.__firstLineToColumns(h)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=E),E!==this.state.expectedRecordLength){let y=s===!1?new Ze("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:h}):new Ze("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:h});if(u===!0||d===!0&&Ethis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=y;else{let I=this.__error(y);if(I)return I}}if(f===!0&&Cwe(h)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:y}=this.options;if(s!==!1){let I={};for(let x=0,b=h.length;x=0},"__isFloat"),__isQuote:i(function(n,s){let{quote:o}=this.options;if(o===null)return!1;let a=o.length;for(let c=0;c=192){let s=n<224?1:n<240?2:3;for(n&=(1<<6-s)-1;s-- >0;)n=n<<6|parseInt(t.slice(r+1,r+3),16)&63,r+=3}n<65536?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023))}return e}i(sW,"tagPercentDecode");function jge(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return sW(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return sW(e?.[n]??hgt[n]??n)+sW(t.slice(n.length))}i(jge,"tagNameFull");var ng=-1,ygt="tag:yaml.org,2002:merge",gW={filename:"",schema:ngt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Egt(t){return"tagStart"in t&&t.tagStart!==ng?t.tagStart:"anchorStart"in t&&t.anchorStart!==ng?t.anchorStart:"valueStart"in t&&t.valueStart!==ng?t.valueStart:"start"in t?t.start:0}i(Egt,"eventPosition$1");function wn(t,e){Yf.throwAt(t.source,t.position,e,t.filename)}i(wn,"throwError$1");function Kge(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Yf)throw s;Yf.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(Kge,"finalizeCollection");function Cgt(t,e){let r=Agt(t.source,e),n=e.tagStart===ng?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=jge(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===at&&wn(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(o)??t.schema.lookupSequenceTag(o);if(c){r!==""&&wn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:Kge(t,t.position,c,l),tag:c}}wn(t,`unknown scalar tag !<${o}>`)}return e.style===Ke.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(Cgt,"constructScalar");function Lge(t,e,r){let n=e.tagStart===ng?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:jge(n,t.tagHandlers)}i(Lge,"collectionTagName");function Xge(t){return t.nodeKind==="mapping"}i(Xge,"isMappingTag");function Oge(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&wn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(Oge,"chargeMergeWork");function Mge(t,e,r,n){Oge(t);for(let s of n.keys(r)){if(Oge(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&wn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(Mge,"mergeKeys");function Igt(t,e,r,n){if(t.position=e.keyPosition,Xge(n))Mge(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&wn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||wn(t,"cannot merge mappings; the provided source object is unacceptable"),Mge(t,e,s,o)}}else wn(t,"cannot merge mappings; the provided source object is unacceptable")}i(Igt,"mergeSource");function wgt(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){Igt(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&wn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&wn(t,o),e.overridable?.delete(r)}i(wgt,"addMappingValue");function oW(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){Xge(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&wn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,wgt(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===ygt}i(oW,"addValue");function iW(t,e,r,n,s){if(e.anchorStart!==ng){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(iW,"storeAnchor");function Sgt(t,e){let r={...gW,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex`);let a=o.create(s),c=iW(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case Zt.MAPPING:{let s=Lge(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||wn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=iW(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:a,tag:o,anchor:c,key:void 0,keyPosition:r.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Zt.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&wn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||wn(r,`unidentified alias "${s}"`),o.isValueFinal||wn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),oW(r,o.value,o.tag);break}case Zt.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,wn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:Kge(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),oW(r,o,s.tag)}break}}}return r.documents}i(Sgt,"constructFromEvents");var ct=-1,Zge=Object.prototype.hasOwnProperty,ag=1,eye=2,tye=3,wP=4,xgt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bgt=/[,\[\]{}]/,rye=/^(?:!|!!|![0-9A-Za-z-]+!)$/,uW=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,nye=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Bgt=new RegExp(`^(?:${uW})*$`),Rgt=new RegExp(`^(?:${nye})+$`),Ngt=new RegExp(`^(?:!(?:${uW})*|${nye}(?:${uW})*)$`),yW={filename:"",maxDepth:100};function Tgt(t,e,r){t.events.push({type:Zt.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(Tgt,"addDocumentEvent");function sye(t,e,r,n,s,o,a){t.events.push({type:Zt.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(sye,"addSequenceEvent");function oye(t,e,r,n,s,o,a){t.events.push({type:Zt.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(oye,"addMappingEvent");function Fge(t,e){t.events.splice(e.eventsLength,0,{type:Zt.MAPPING,start:e.position,anchorStart:ct,anchorEnd:ct,tagStart:ct,tagEnd:ct,style:yd.FLOW})}i(Fge,"insertFlowPairMappingEvent");function ug(t,e,r,n,s,o,a,c,l=bo.CLIP,u=-1,d=!1){t.events.push({type:Zt.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(ug,"addScalarEvent");function Pgt(t,e,r){t.events.push({type:Zt.ALIAS,anchorStart:e,anchorEnd:r})}i(Pgt,"addAliasEvent");function sg(t){t.events.push({type:Zt.POP})}i(sg,"addPopEvent");function fs(t){ug(t,ct,ct,ct,ct,ct,ct,Ke.PLAIN)}i(fs,"addEmptyScalarEvent");function Uge(){return{anchorStart:ct,anchorEnd:ct,tagStart:ct,tagEnd:ct}}i(Uge,"emptyProperties");function og(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(og,"snapshotState");function ig(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.events.length=e.eventsLength}i(ig,"restoreState");function de(t,e){Yf.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(de,"throwError");function on(t){return t===10||t===13}i(on,"isEol");function dg(t){return t===9||t===32}i(dg,"isWhiteSpace");function ra(t){return dg(t)||on(t)}i(ra,"isWsOrEol");function Zl(t){return t===0||ra(t)}i(Zl,"isWsOrEolOrEnd");function Jf(t){return t===44||t===91||t===93||t===123||t===125}i(Jf,"isFlowIndicator");function vgt(t){return t>=48&&t<=57?t-48:-1}i(vgt,"fromDecimalCode");function _gt(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(_gt,"fromHexCode");function Qgt(t){return t===120?2:t===117?4:t===85?8:0}i(Qgt,"escapedHexLen");function Dgt(t){return t===48||t===97||t===98||t===116||t===9||t===110||t===118||t===102||t===114||t===101||t===32||t===34||t===47||t===92||t===78||t===95||t===76||t===80}i(Dgt,"isSimpleEscape");function SP(t){t.input.charCodeAt(t.position)===10?t.position++:(t.position++,t.input.charCodeAt(t.position)===10&&t.position++),t.line++,t.lineStart=t.position,t.lineIndent=0,t.firstTabInLine=-1}i(SP,"consumeLineBreak");function qn(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||ra(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;dg(n);)s=!0,n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&s&&n===35)do n=t.input.charCodeAt(++t.position);while(!on(n)&&n!==0);if(!on(n))break;for(SP(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(qn,"skipSeparationSpace");function cg(t,e=t.position){let r=t.input.charCodeAt(e);if((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)){let n=t.input.charCodeAt(e+3);return n===0||ra(n)}return!1}i(cg,"testDocumentSeparator");function iye(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(iye,"skipByteOrderMark");function EW(t){if(t.position!==t.lineStart)return!1;if(cg(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=og(t);iye(t),qn(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&cg(t));return ig(t,e),n}i(EW,"testDocumentBoundary");function qge(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!on(e);)e=t.input.charCodeAt(++t.position)}i(qge,"skipUntilLineEnd");function aye(t,e,r){let n=xgt.exec(t.input.slice(e,r));n!==null&&(t.position=e+n.index+n[0].length-1,de(t,"the stream contains non-printable characters"))}i(aye,"checkPrintable");function kgt(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==ct&&de(t,"duplication of a tag property");let n=t.position,s=!1,o=!1,a="!",c=t.input.charCodeAt(++t.position);c===60?(s=!0,c=t.input.charCodeAt(++t.position)):c===33&&(o=!0,a="!!",c=t.input.charCodeAt(++t.position));let l=t.position,u;if(s){for(;c!==0&&c!==62;)c=t.input.charCodeAt(++t.position);c!==62&&de(t,"unexpected end of the stream within a verbatim tag"),u=t.input.slice(l,t.position),t.position++}else{for(;c!==0&&!ra(c)&&!(r&&Jf(c));)c===33&&(o?de(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),rye.test(a)||de(t,"named tag handle cannot contain such characters"),o=!0,l=t.position+1)),c=t.input.charCodeAt(++t.position);u=t.input.slice(l,t.position),bgt.test(u)&&de(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?Bgt.test(u):Rgt.test(u))&&de(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!Zge.call(t.tagHandlers,a)&&de(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(kgt,"readTagProperty");function Lgt(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==ct&&de(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ra(t.input.charCodeAt(t.position))&&!Jf(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&de(t,"name of an anchor node must contain at least one character"),e.anchorStart=r,e.anchorEnd=t.position,!0}i(Lgt,"readAnchorProperty");function Ogt(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==ct||e.tagStart!==ct)&&de(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ra(t.input.charCodeAt(t.position))&&!Jf(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&de(t,"name of an alias node must contain at least one character"),Pgt(t,r,t.position),!0}i(Ogt,"readAlias");function dW(t,e){qn(t,!1),t.lineIndent0;)t.position++,_gt(t.input.charCodeAt(t.position))<0&&de(t,"expected hexadecimal character");t.position++}}else on(o)?(s=!1,dW(t,e)):t.position===t.lineStart&&cg(t)?de(t,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?de(t,"expected valid JSON character"):t.position++}de(t,"unexpected end of the stream within a double quoted scalar")}i(Fgt,"readDoubleQuotedScalar");function Ugt(t,e,r){let n=t.input.charCodeAt(t.position),s=bo.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?Ke.LITERAL_BLOCK:Ke.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let m=t.input.charCodeAt(t.position),A=vgt(m);if(m===43||m===45)s!==bo.CLIP&&de(t,"repeat of a chomping mode identifier"),s=m===43?bo.KEEP:bo.STRIP,t.position++;else if(A>=0)A===0&&de(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&de(t,"repeat of an indentation width identifier"),o=e+A-1,a=!0,t.position++;else break}let l=!1;for(;dg(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&qge(t),on(t.input.charCodeAt(t.position))?SP(t):t.input.charCodeAt(t.position)!==0&&de(t,"a line break is expected");let u=a?o:-1,d=0,p=t.position,f=t.position;for(;t.input.charCodeAt(t.position)!==0;){let m=t.position,A=0;for(;t.input.charCodeAt(m+A)===32;)A++;let h=t.input.charCodeAt(m+A);if(h===0){u>=0?A>u&&(f=m+A):A>0&&(f=m+A);break}if(EW(t))break;if(!a&&u===-1&&on(h)&&(d=Math.max(d,A)),!a&&u===-1&&!on(h)&&(h===9&&A=e&&A=e){l=!0,a=t.input.charCodeAt(t.position);continue}t.position=u,t.line=d,t.lineStart=p,t.lineIndent=f;break}}dg(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(aye(t,s,o),ug(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Ke.PLAIN,bo.CLIP,-1,!l),!0)}i(Ggt,"readPlainScalar");function Ew(t,e){let r=t.line;qn(t,!0),(t.line>r&&t.lineIndent0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Zl(t.input.charCodeAt(t.position+1))&&de(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?fs(t):lg(t,e,tye,!1,!0),qn(t,!0),t.lineIndent=t.length)break;t.lineIndent>e&&de(t,"bad indentation of a sequence entry"),t.line===n&&t.input.charCodeAt(t.position)===45&&Zl(t.input.charCodeAt(t.position+1))&&de(t,"bad indentation of a sequence entry")}return sg(t),!0}i(Gge,"readBlockSequence");function aW(t,e,r,n){let s=!1,o=!1,a=!1,c=!1;if(t.firstTabInLine!==-1)return!1;let l=t.input.charCodeAt(t.position);for(;l!==0;){!s&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,de(t,"tab characters must not be used in indentation"));let u=t.input.charCodeAt(t.position+1),d=t.line;if((l===63||l===58)&&Zl(u))a||(oye(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,yd.BLOCK),a=!0),l===63?(s&&fs(t),o=!0,s=!0):(s||(fs(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(fs(t),s=!1);let p=og(t);if(!lg(t,r,eye,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);dg(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Zl(l)||de(t,"a whitespace character is expected after the key-value separator within a block mapping"),a||(t.events.splice(p.eventsLength,0,{type:Zt.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:yd.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)de(t,"expected ':' after a mapping key");else return n.anchorStart!==ct||n.tagStart!==ct?(ig(t,p),!1):!0}else if(o)de(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==ct||n.tagStart!==ct?(ig(t,p),!1):!0}if(lg(t,e,wP,!0,c)&&(c=!1),s||c&&(fs(t),c=!1),qn(t,!0),l=t.input.charCodeAt(t.position),(t.line===d||t.lineIndent>e)&&l!==0)de(t,"bad indentation of a mapping entry");else if(t.lineIndent=t.maxDepth&&de(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let a=1,c=!1,l=!1,u=null,d=Uge(),p=r===wP||r===tye,f=p,m=p;if(n&&qn(t,!0)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1),a===1)for(;;){let A=t.input.charCodeAt(t.position),h=og(t);if(c&&a!==1&&(A===33||A===38))break;if(c&&m&&(d.tagStart!==ct||d.anchorStart!==ct)&&(A===33||A===38)){let E=og(t),y=e+1;if(aW(t,t.position-t.lineStart,y,d)&&t.events[E.eventsLength]?.type===Zt.MAPPING)return t.depth--,!0;ig(t,E)}if(c&&(A===33&&d.tagStart!==ct||A===38&&d.anchorStart!==ct)||!kgt(t,d,r===ag)&&!Lgt(t,d))break;u===null&&(u=h),qn(t,!0)?(c=!0,f=m,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1):f=!1}if(f&&(f=c||s),a===1||r===wP){let A=r===ag||r===eye?e:e+1,h=t.position-t.lineStart;if(a===1)if(f&&(Gge(t,h,d)||aW(t,h,A,d))||$gt(t,A,d))l=!0;else{let E=t.input.charCodeAt(t.position);if(u!==null&&o&&m&&!f&&E!==124&&E!==62){let y=og(t),I=u.position-u.lineStart;ig(t,u),aW(t,I,A,Uge())&&t.events[y.eventsLength]?.type===Zt.MAPPING?l=!0:ig(t,y)}!l&&(p&&Ugt(t,A,d)||Mgt(t,A,d)||Fgt(t,A,d)||Ogt(t,d)||Ggt(t,A,r,d))&&(l=!0)}else a===0&&(l=f&&Gge(t,h,d))}return p=p&&!l,!l&&(d.anchorStart!==ct||d.tagStart!==ct||p)&&(ug(t,ct,ct,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Ke.PLAIN),l=!0),t.depth--,l||d.anchorStart!==ct||d.tagStart!==ct}i(lg,"parseNode");function Hgt(t){if(t.lineIndent>0||t.input.charCodeAt(t.position)!==37)return!1;t.position++;let e=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ra(t.input.charCodeAt(t.position));)t.position++;let r=t.input.slice(e,t.position),n=[];for(r.length===0&&de(t,"directive name must not be less than one character in length");t.input.charCodeAt(t.position)!==0&&!on(t.input.charCodeAt(t.position));){for(;dg(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||on(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ra(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(on(t.input.charCodeAt(t.position))&&SP(t),r==="YAML"){t.directives.some(o=>o.kind==="yaml")&&de(t,"duplication of %YAML directive"),n.length!==1&&de(t,"YAML directive accepts exactly one argument");let s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);s===null&&de(t,"ill-formed argument of the YAML directive"),parseInt(s[1],10)!==1&&de(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&de(t,"TAG directive accepts exactly two arguments");let[s,o]=n;rye.test(s)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),Zge.call(t.tagHandlers,s)&&de(t,`there is a previously declared suffix for "${s}" tag handle`),Ngt.test(o)||de(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagHandlers[s]=o,t.directives.push({kind:"tag",handle:s,prefix:o})}return!0}i(Hgt,"readDirective");function zgt(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(qn(t,!0);Hgt(t);)e=!0,qn(t,!0);let r=!1,n=!1,s=!0;if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45&&Zl(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,qn(t,!0),s=t.line>c}else e&&de(t,"directives end mark is expected");let o=t.events.length;if(!r&&t.position===t.lineStart&&t.input.charCodeAt(t.position)===46&&cg(t)){t.position+=3,qn(t,!0);return}if(Tgt(t,r,!1),lg(t,t.lineIndent-1,wP,!1,s,s)||fs(t),qn(t,!0),t.position===t.lineStart&&cg(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,qn(t,!0),t.line===c&&t.position=n.length));){let o=n.position;zgt(n),n.position===o&&de(n,"can not read a document")}return n.events}i(Vgt,"parseEvents");var Wgt={...yW,...gW};function Ygt(t,e={}){let r={...Wgt,...e},n=String(t),s=Object.keys(yW),o=Object.keys(gW);return Sgt(Vgt(n,vge(r,s)),{...vge(r,o),source:n})}i(Ygt,"loadDocuments");function cye(t,e){let r=Ygt(t,e);if(r.length===0)throw new Yf("expected a document, but the input is empty");if(r.length===1)return r[0];throw new Yf("expected a single document in the stream, but found more")}i(cye,"load");function RP(t,e){return(t&1<s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Ke.FOLDED_BLOCK:r&&(t.style=Ke.LITERAL_BLOCK)}i(Zgt,"tryLongOrMultilineAsBlock");function eyt(t){t.style===Ke.PLAIN&&!RP(t.allowedStylesMask,Ke.PLAIN)&&(t.style=lye(t))}i(eyt,"quoteInvalidPlain");function tyt(t){RP(t.allowedStylesMask,t.style)||(t.style=Ke.DOUBLE_QUOTED)}i(tyt,"fallbackToDoubleQuoted");var ryt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",nyt="[\\n\\r]",syt="\\uFEFF",CW="[ \\t]",uye=`(?:(?!(?:${nyt}|${syt}))${ryt})`,NP=`(?:(?!${CW})${uye})`,dye="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",pye="[-?:,\\[\\]{}#&*!|>'\"%@`]",oyt="[,\\[\\]{}]",pW=NP,fW=`(?:(?!${oyt})${NP})`,iyt=`(?:(?:(?!${pye})${NP})|[?:-](?=${pW}))`,ayt=`(?:(?:(?!${pye})${NP})|[?:-](?=${fW}))`,fye=`(?:(?:(?![:#])${pW})|:(?=${pW}))#*`,mye=`(?:(?:(?![:#])${fW})|:(?=${fW}))#*`,Aye=`(?:${CW}*${fye})*`,hye=`(?:${CW}*${mye})*`,gye=`${iyt}#*${Aye}`,yye=`${ayt}#*${hye}`,cyt=gye,lyt=yye,uyt=`\\n+${fye}${Aye}`,dyt=`\\n+${mye}${hye}`,pyt=`${gye}(?:${uyt})*`,fyt=`${yye}(?:${dyt})*`,qCr=new RegExp(`^(?:${pyt})$`,"u"),GCr=new RegExp(`^(?:${fyt})$`,"u"),$Cr=new RegExp(`^(?:${cyt})$`,"u"),HCr=new RegExp(`^(?:${lyt})$`,"u"),zCr=new RegExp(`^(?:${dye})*$`,"u"),VCr=new RegExp(`^(?:${dye}|\\n)*$`,"u"),WCr=new RegExp(`^(?:${uye}|\\n)*$`,"u");var myt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys($ge).map(t=>Reflect.get($ge,t)),tagBeforeAnchor:!1};var YCr={...myt,schema:ogt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var JCr=Zt.DOCUMENT,jCr=Zt.SEQUENCE,KCr=Zt.MAPPING,XCr=Zt.SCALAR,ZCr=Zt.ALIAS,eIr=Zt.POP,tIr=Ke.PLAIN,rIr=Ke.SINGLE_QUOTED,nIr=Ke.DOUBLE_QUOTED,sIr=Ke.LITERAL_BLOCK,oIr=Ke.FOLDED_BLOCK,iIr=yd.BLOCK,aIr=yd.FLOW,cIr=bo.CLIP,lIr=bo.STRIP,uIr=bo.KEEP;var Ei=R(require("fs"),1),$s=R(require("path"),1),qSe=require("util");var GSe=R(lCe(),1);var qP=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var zY=R(require("fs"),1),Fwe=R(require("os"),1),Lw=R(require("path"),1),Uwe=require("util"),qwe=R(hCe(),1);var VW=R(require("fs"),1),kCe=R(require("os"),1),LCe=R(require("path"),1),OCe=R(DCe(),1);var HP=class t{static{i(this,"Context")}static _tmpDir=VW.default.mkdtempSync(LCe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||kCe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return VW.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return OCe.tmpNameSync(e)}};var tu=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),zu(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),xC(e,r,n)}};var HY=R(require("crypto"),1),Owe=R(require("fs"),1),kw=R(require("path"),1),Mwe=R(vwe(),1);var Xe=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Dw=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var Tv=i(function(t){let e=[];for(let r=0,n=t.length;r=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let 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{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},$Y=GY;var _we=i(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let o=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&o.length===1&&o[0]===63||n.push(o),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new $Y(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new $Y(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var Qwe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Ng=i(function(t){let e={};for(let n in t)e[Qwe(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new Xe("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new Xe("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new Xe("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let s=Date.parse(n);return isNaN(s)?n:new Date(s)};else if(typeof e.cast_date!="function")throw new Xe("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=void 0,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=Tv(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new Xe("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new Xe("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new Xe("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new Xe("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(e.comment_no_infix===void 0||e.comment_no_infix===null||e.comment_no_infix===!1)e.comment_no_infix=!1;else if(e.comment_no_infix!==!0)throw new Xe("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!Dw(e.delimiter_auto))throw new Xe("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!Dw(e.delimiter_auto.preferred))throw new Xe("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,s)=>(n.total-n.std)*(s.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new Xe("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new Xe("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new Xe("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return n}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new Xe("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new Xe("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new Xe("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.on_skip!==void 0&&e.on_skip!==null&&typeof e.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new Xe("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new Xe("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,s){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new Xe("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new Xe("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var Dwe=i(function(t,e){e||({delimiter_auto:e}=Ng({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=Pv({delimiter:[]}),c=i(d=>o.push(d),"push"),l=i(()=>{},"close"),u=a.parse(s,!0,c,l);if(u!==void 0)throw u;return o})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([s],o)=>{for(let a=0,c=s.length;a{s.char_code=o,s.std=Hxt(s.lines),s.total=s.lines.reduce((a,c)=>a+c,0),s.preferred=!!e.preferred[o],s.score=e.score(s,e)});let n=r.reduce((s,o)=>s.score>o.score?s:o,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),Hxt=i(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,s)=>n+s)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,s)=>n+s)/e)},"std");var kwe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),zxt=13,Vxt=10,Tg={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},Pv=i(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=Ng(t);return{info:e,original_options:t,options:r,state:_we(r),__needMoreData:i(function(n,s,o){if(o)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:p}=this.state,f=s-n-1,m=Math.max(d,p===0?Buffer.from(`\r +`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return fu.size)this.options.delimiter=[Buffer.from(Dwe(Ct,this.options.delimiter_auto))],this.state.previousBuf=Ct,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ct;return}}let{previousBuf:He}=this.state,D;if(He===void 0)if(n===void 0){a();return}else D=n;else He!==void 0&&n===void 0?D=He:D=Buffer.concat([He,n]);if(J===!1)if(c===!1)this.state.bomSkipped=!0;else if(D.length<3){if(s===!1){this.state.previousBuf=D;return}}else{for(let Ct in Tg)if(Tg[Ct].compare(D,0,Tg[Ct].length)===0){let Su=Tg[Ct].length;this.state.bufBytesStart+=Su,D=D.slice(Su);let lb=Ng({...this.original_options,encoding:Ct});for(let Or in lb)this.options[Or]=lb[Or];({comment:b,escape:N,quote:v}=this.options);break}this.state.bomSkipped=!0}let et=D.length,re;for(re=0;rex){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(D,re)&&(_=this.options.record_delimiter);let Ct=D[re];if(A===!0&&Fe.append(Ct),(Ct===zxt||Ct===Vxt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(D,re,Ct)&&re+N.lengthTg[xp].equals(this.state.field.toString())?xp:!1).filter(Boolean)[0],Il=this.__error(new Xe("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Or.column)} at line ${Or.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Sp?`(${Sp} bom)`:void 0],this.options,Or,{field:this.state.field}));if(Il!==void 0)return Il}}else{this.state.quoting=!0,re+=v.length-1;continue}if(this.state.quoting===!1){let Or=this.__isRecordDelimiter(Ct,D,re);if(Or!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),re+=Or-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=Or-1;continue}this.info.bytes=this.state.bufBytesStart+re;let xp=this.__onField();if(xp!==void 0)return xp;this.info.bytes=this.state.bufBytesStart+re+Or;let ub=this.__onRecord(o);if(ub!==void 0)return ub;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,re+=Or-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,D,re,Ct)!==0){this.state.commenting=!0;continue}let Sp=this.__isDelimiter(D,re,Ct);if(Sp!==0){this.info.bytes=this.state.bufBytesStart+re;let Il=this.__onField();if(Il!==void 0)return Il;re+=Sp-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new Xe("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Su=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(D,re),lb=E===!1||this.state.wasQuoting===!1;if(Su===!0&&lb===!0)this.state.field.append(Ct);else{if(E===!0&&!this.__isCharTrimable(D,re))return this.__error(new Xe("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()));Su===!1&&(re+=this.__isCharTrimable(D,re)-1);continue}}if(s===!0)if(this.state.quoting===!0){let Ct=this.__error(new Xe("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(Ct!==void 0)return Ct}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+re;let Ct=this.__onField();if(Ct!==void 0)return Ct;let Su=this.__onRecord(o);if(Su!==void 0)return Su}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=re,this.state.previousBuf=D.slice(re);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:i(function(n){let{columns:s,group_columns_by_name:o,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:p,raw:f,skip_records_with_empty_values:m}=this.options,{enabled:A,record:h}=this.state;if(A===!1)return this.__resetRecord();let E=h.length;if(s===!0){if(m===!0&&kwe(h)){this.__resetRecord();return}return this.__firstLineToColumns(h)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=E),E!==this.state.expectedRecordLength){let y=s===!1?new Xe("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:h}):new Xe("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${E} on line ${this.info.lines}`],this.options,this.__infoField(),{record:h});if(u===!0||d===!0&&Ethis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=y;else{let I=this.__error(y);if(I)return I}}if(m===!0&&kwe(h)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:y}=this.options;if(s!==!1){let I={};for(let x=0,b=h.length;x=0},"__isFloat"),__isQuote:i(function(n,s){let{quote:o}=this.options;if(o===null)return!1;let a=o.length;for(let c=0;cthis.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Iwe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=xP(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var Id=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(qi(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=Iwe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=qi(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return LY.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return LY.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Swe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Nw.default.resolve(e);return Nw.default.resolve(r).startsWith(n.endsWith(Nw.default.sep)?n:`${n}${Nw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var wd=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Tw.default.join(xwe.default.homedir(),".docker")}static configFile(){let e=Tw.default.join(t.configDir,"config.json");if(OY.default.existsSync(e))return JSON.parse(OY.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Bs("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return eu.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return eu.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),s=e.lastIndexOf(":");if(n>=0)r=n;else if(s>=0)r=s;else return{repository:e,tag:"latest"};let o=e.slice(r+1);return o.indexOf("/")===-1?{repository:e.slice(0,r),tag:o}:{repository:e,tag:"latest"}}static async pull(e,r){let n=t.parseRepoTag(e),s=n.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),o=n.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),a=new Kh({htcName:s,htcVersion:o,baseCacheDir:Tw.default.join(t.configDir,".cache","images",s),cacheFile:"image.tar"}),c;r&&(c=await a.find(),c&&(ge(`Image found from cache in ${c}`),await t.getExecOutput(["load","-i",c],{ignoreReturnCode:!0}).then(u=>{u.stderr.length>0&&u.exitCode!=0&&Cr(`Failed to load image from cache: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)})));let l=!0;if(await t.getExecOutput(["pull",e],{ignoreReturnCode:!0}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0){l=!1;let d=u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error";if(c)Cr(`Failed to pull image, using one from cache: ${d}`);else throw new Error(d)}}),r&&l){let u=Tw.default.join(Mv.tmpDir(),`${Id.hash(e)}.tar`);await t.getExecOutput(["save","-o",u,e],{ignoreReturnCode:!0}).then(async d=>{if(d.stderr.length>0&&d.exitCode!=0)Cr(`Failed to save image: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);else{let p=await a.save(u);ge(`Image cached to ${p}`)}})}}};var bP=require("fs"),bwe=require("os");var bg=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,bP.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,bP.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${bwe.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=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let 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){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}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 qY=R(vwe(),1),Pwe=R(Kp(),1);var WSt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function _we(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}i(_we,"getAuthString");function Qwe(t){return new qY.HttpClient().getAgent(t)}i(Qwe,"getProxyAgent");function YSt(t){return new qY.HttpClient().getAgentDispatcher(t)}i(YSt,"getProxyAgentDispatcher");function Dwe(t){let e=YSt(t);return i((n,s)=>WSt(this,void 0,void 0,function*(){return(0,Pwe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(Dwe,"getProxyFetch");function kwe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(kwe,"getApiBaseUrl");function GY(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(GY,"getUserAgentWithOrchestrationId");function Sd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}i(Sd,"getUserAgent");function _P(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,o)=>_P.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(_P,"register");function Lwe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(Lwe,"addHook");function Owe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(Owe,"removeHook");var Mwe=Function.bind,Fwe=Mwe.bind(Mwe);function Uwe(t,e,r){let n=Fwe(Owe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=Fwe(Lwe,null).apply(null,o)})}i(Uwe,"bindApi");function jSt(){let t=Symbol("Singular"),e={registry:{}},r=_P.bind(null,e,t);return Uwe(r,e,t),r}i(jSt,"Singular");function KSt(){let t={registry:{}},e=_P.bind(null,t);return Uwe(e,t),e}i(KSt,"Collection");var qwe={Singular:jSt,Collection:KSt};var XSt="0.0.0-development",ZSt=`octokit-endpoint.js/${XSt} ${Sd()}`,ext={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ZSt},mediaType:{format:""}};function txt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(txt,"lowercaseKeys");function rxt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}i(rxt,"isPlainObject");function $we(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{rxt(e[n])?n in t?r[n]=$we(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i($we,"mergeDeep");function Gwe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(Gwe,"removeUndefinedProperties");function $Y(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=txt(r.headers),Gwe(r),Gwe(r.headers);let n=$we(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}i($Y,"merge");function nxt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}i(nxt,"addQueryParameters");var sxt=/\{[^{}}]+\}/g;function oxt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(ixt,"extractUrlVariableNames");function Hwe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(Hwe,"omit");function zwe(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}i(zwe,"encodeReserved");function Rg(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(Rg,"encodeUnreserved");function Pw(t,e,r){return e=t==="+"||t==="#"?zwe(e):Rg(e),r?Rg(r)+"="+e:e}i(Pw,"encodeValue");function Bg(t){return t!=null}i(Bg,"isDefined");function HY(t){return t===";"||t==="&"||t==="?"}i(HY,"isKeyOperator");function axt(t,e,r,n){var s=t[r],o=[];if(Bg(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(Pw(e,s,HY(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(Bg).forEach(function(a){o.push(Pw(e,a,HY(e)?r:""))}):Object.keys(s).forEach(function(a){Bg(s[a])&&o.push(Pw(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(Bg).forEach(function(c){a.push(Pw(e,c))}):Object.keys(s).forEach(function(c){Bg(s[c])&&(a.push(Rg(c)),a.push(Pw(e,s[c].toString())))}),HY(e)?o.push(Rg(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?Bg(s)&&o.push(Rg(r)):s===""&&(e==="&"||e==="?")?o.push(Rg(r)+"="):s===""&&o.push("");return o}i(axt,"getValues");function cxt(t){return{expand:lxt.bind(null,t)}}i(cxt,"parseUrl");function lxt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let c="",l=[];if(r.indexOf(s.charAt(0))!==-1&&(c=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(axt(e,c,d[1],d[2]||d[3]))}),c&&c!=="+"){var a=",";return c==="?"?a="&":c!=="#"&&(a=c),(l.length!==0?c:"")+l.join(a)}else return l.join(",")}else return zwe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(lxt,"expand");function Vwe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=Hwe(t,["method","baseUrl","url","headers","request","mediaType"]),a=ixt(r);r=cxt(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=Hwe(o,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?{let m=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${m}`}).join(",")}return["GET","HEAD"].includes(e)?r=nxt(r,l):"data"in l?s=l.data:Object.keys(l).length&&(s=l),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}i(Vwe,"parse");function uxt(t,e,r){return Vwe($Y(t,e,r))}i(uxt,"endpointWithDefaults");function Wwe(t,e){let r=$Y(t,e),n=uxt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:Wwe.bind(null,r),merge:$Y.bind(null,r),parse:Vwe})}i(Wwe,"withDefaults");var Ywe=Wwe(null,ext);var aSe=R(Xwe(),1);var dxt=/^-?\d+$/,tSe=/^-?\d+n+$/,zY=JSON.stringify,Zwe=JSON.parse,pxt=/^-?\d+n$/,mxt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,fxt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,rSe=i((t,e,r)=>"rawJSON"in JSON?zY(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?zY(t,(a,c)=>typeof c=="string"&&!!c.match(tSe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(mxt,"$1$2$3").replace(fxt,"$1$2$3"):zY(t,e,r),"JSONStringify"),Axt=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),hxt=i((t,e,r,n)=>typeof e=="string"&&e.match(pxt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(tSe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),gxt=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return Zwe(t,e);if(Axt())return gxt(t,e);let r=t.replace(yxt,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(Ext))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthhxt(n,s,o,e))},"JSONParse");var Zm=class extends Error{static{i(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function iSe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)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");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=wxt(t.body)||Array.isArray(t.body)?rSe(t.body):t.body,o=Object.fromEntries(Object.entries(t.headers).map(([p,m])=>[p,String(m)])),a;try{a=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:o,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(p){let m="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;m=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?m=p.cause.message:typeof p.cause=="string"&&(m=p.cause))}let f=new Zm(m,500,{request:t});throw f.cause=p,f}let c=a.status,l=a.url,u={};for(let[p,m]of a.headers)u[p]=m;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let p=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),m=p&&p.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${m?`. See ${m}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new Zm(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await VY(a),new Zm("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await VY(a),new Zm(xxt(d.data),c,{response:d,request:t});return d.data=n?await VY(a):a.body,d}i(iSe,"fetchWrapper");async function VY(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(oSe);let r=(0,aSe.safeParse)(e);if(Sxt(r)){let n="";try{return n=await t.text(),sSe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(oSe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(VY,"getResponseData");function Sxt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(Sxt,"isJSONResponse");function xxt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}i(xxt,"toErrorMessage");function WY(t,e){let r=t.defaults(e);return Object.assign(i(function(s,o){let a=r.merge(s,o);if(!a.request||!a.request.hook)return iSe(r.parse(a));let c=i((l,u)=>iSe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:WY.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:WY.bind(null,r)})}i(WY,"withDefaults");var Qw=WY(Ywe,Ixt);var bxt="0.0.0-development";function Bxt(t){return`Request failed due to following response errors: +`,o),Buffer.from("\r",o)];e:for(let c=0;cthis.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Lwe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=Pv(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var Sd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList($i(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=Lwe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=$i(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return HY.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return HY.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Mwe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=kw.default.resolve(e);return kw.default.resolve(r).startsWith(n.endsWith(kw.default.sep)?n:`${n}${kw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var xd=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Lw.default.join(Fwe.default.homedir(),".docker")}static configFile(){let e=Lw.default.join(t.configDir,"config.json");if(zY.default.existsSync(e))return JSON.parse(zY.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Rs("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return tu.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return tu.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,Uwe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let s=r[n].trim();if(s)return s}return"unknown error"}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),s=e.lastIndexOf(":");if(n>=0)r=n;else if(s>=0)r=s;else return{repository:e,tag:"latest"};let o=e.slice(r+1);return o.indexOf("/")===-1?{repository:e.slice(0,r),tag:o}:{repository:e,tag:"latest"}}static async pull(e,r,n){let s=[];if(n)try{await t.contextInspect(n),s.push("--context",n)}catch{s.push("--host",n)}let o=t.parseRepoTag(e),a=o.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),c=o.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),l=new rg({htcName:a,htcVersion:c,baseCacheDir:Lw.default.join(t.configDir,".cache","images",a),cacheFile:"image.tar"}),u;r&&(u=await l.find(),u&&(ae(`Image found from cache in ${u}`),await t.getExecOutput([...s,"load","-i",u],{ignoreReturnCode:!0}).then(p=>{p.stderr.length>0&&p.exitCode!=0&&or(`Failed to load image from cache: ${t.getErrorMessage(p.stderr)}`)})));let d=!0;try{await t.pullWithRetry(e,s)}catch(p){if(d=!1,u)or(`Failed to pull image, using one from cache: ${p.message}`);else throw p}if(r&&d){let p=Lw.default.join(HP.tmpDir(),`${Sd.hash(e)}.tar`);await t.getExecOutput([...s,"save","-o",p,e],{ignoreReturnCode:!0}).then(async f=>{if(f.stderr.length>0&&f.exitCode!=0)or(`Failed to save image: ${t.getErrorMessage(f.stderr)}`);else{let m=await l.save(p);ae(`Image cached to ${m}`)}})}}static async pullWithRetry(e,r){await(0,qwe.default)(async s=>{let o=await t.getExecOutput([...r,"pull",e],{ignoreReturnCode:!0});if(o.stderr.length>0&&o.exitCode!=0){let a=t.getErrorMessage(o.stderr);if(!t.isPullTransientError(a)){s(new Error(a));return}throw new Error(a)}},{retries:4,minTimeout:1e3,factor:2,onRetry:i((s,o)=>{T(`Docker pull failed, retrying (${o}/5)... +${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var FSe=R(require("crypto"),1);var vv=require("fs"),Gwe=require("os");var Pg=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,vv.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,vv.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Gwe.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=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let 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){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}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 JY=R(Wwe(),1),Ywe=R(ef(),1);var obt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function Jwe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}i(Jwe,"getAuthString");function jwe(t){return new JY.HttpClient().getAgent(t)}i(jwe,"getProxyAgent");function ibt(t){return new JY.HttpClient().getAgentDispatcher(t)}i(ibt,"getProxyAgentDispatcher");function Kwe(t){let e=ibt(t);return i((n,s)=>obt(this,void 0,void 0,function*(){return(0,Ywe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(Kwe,"getProxyFetch");function Xwe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(Xwe,"getApiBaseUrl");function jY(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(jY,"getUserAgentWithOrchestrationId");function bd(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}i(bd,"getUserAgent");function Mv(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,o)=>Mv.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(Mv,"register");function Zwe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(Zwe,"addHook");function eSe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(eSe,"removeHook");var tSe=Function.bind,rSe=tSe.bind(tSe);function nSe(t,e,r){let n=rSe(eSe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=rSe(Zwe,null).apply(null,o)})}i(nSe,"bindApi");function cbt(){let t=Symbol("Singular"),e={registry:{}},r=Mv.bind(null,e,t);return nSe(r,e,t),r}i(cbt,"Singular");function lbt(){let t={registry:{}},e=Mv.bind(null,t);return nSe(e,t),e}i(lbt,"Collection");var sSe={Singular:cbt,Collection:lbt};var ubt="0.0.0-development",dbt=`octokit-endpoint.js/${ubt} ${bd()}`,pbt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":dbt},mediaType:{format:""}};function fbt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(fbt,"lowercaseKeys");function mbt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}i(mbt,"isPlainObject");function aSe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{mbt(e[n])?n in t?r[n]=aSe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(aSe,"mergeDeep");function oSe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(oSe,"removeUndefinedProperties");function XY(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=fbt(r.headers),oSe(r),oSe(r.headers);let n=aSe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}i(XY,"merge");function Abt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}i(Abt,"addQueryParameters");var hbt=/\{[^{}}]+\}/g;function gbt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(ybt,"extractUrlVariableNames");function iSe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(iSe,"omit");function cSe(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}i(cSe,"encodeReserved");function _g(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(_g,"encodeUnreserved");function Mw(t,e,r){return e=t==="+"||t==="#"?cSe(e):_g(e),r?_g(r)+"="+e:e}i(Mw,"encodeValue");function vg(t){return t!=null}i(vg,"isDefined");function KY(t){return t===";"||t==="&"||t==="?"}i(KY,"isKeyOperator");function Ebt(t,e,r,n){var s=t[r],o=[];if(vg(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(Mw(e,s,KY(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(vg).forEach(function(a){o.push(Mw(e,a,KY(e)?r:""))}):Object.keys(s).forEach(function(a){vg(s[a])&&o.push(Mw(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(vg).forEach(function(c){a.push(Mw(e,c))}):Object.keys(s).forEach(function(c){vg(s[c])&&(a.push(_g(c)),a.push(Mw(e,s[c].toString())))}),KY(e)?o.push(_g(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?vg(s)&&o.push(_g(r)):s===""&&(e==="&"||e==="?")?o.push(_g(r)+"="):s===""&&o.push("");return o}i(Ebt,"getValues");function Cbt(t){return{expand:Ibt.bind(null,t)}}i(Cbt,"parseUrl");function Ibt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let c="",l=[];if(r.indexOf(s.charAt(0))!==-1&&(c=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(Ebt(e,c,d[1],d[2]||d[3]))}),c&&c!=="+"){var a=",";return c==="?"?a="&":c!=="#"&&(a=c),(l.length!==0?c:"")+l.join(a)}else return l.join(",")}else return cSe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(Ibt,"expand");function lSe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=iSe(t,["method","baseUrl","url","headers","request","mediaType"]),a=ybt(r);r=Cbt(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=iSe(o,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?{let f=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${f}`}).join(",")}return["GET","HEAD"].includes(e)?r=Abt(r,l):"data"in l?s=l.data:Object.keys(l).length&&(s=l),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}i(lSe,"parse");function wbt(t,e,r){return lSe(XY(t,e,r))}i(wbt,"endpointWithDefaults");function uSe(t,e){let r=XY(t,e),n=wbt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:uSe.bind(null,r),merge:XY.bind(null,r),parse:lSe})}i(uSe,"withDefaults");var dSe=uSe(null,pbt);var xSe=R(ASe(),1);var Sbt=/^-?\d+$/,ySe=/^-?\d+n+$/,ZY=JSON.stringify,hSe=JSON.parse,xbt=/^-?\d+n$/,bbt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Bbt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,ESe=i((t,e,r)=>"rawJSON"in JSON?ZY(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?ZY(t,(a,c)=>typeof c=="string"&&!!c.match(ySe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(bbt,"$1$2$3").replace(Bbt,"$1$2$3"):ZY(t,e,r),"JSONStringify"),Rbt=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),Nbt=i((t,e,r,n)=>typeof e=="string"&&e.match(xbt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(ySe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),Tbt=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return hSe(t,e);if(Rbt())return Tbt(t,e);let r=t.replace(Pbt,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(vbt))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthNbt(n,s,o,e))},"JSONParse");var om=class extends Error{static{i(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?"","noop");async function SSe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)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");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=Dbt(t.body)||Array.isArray(t.body)?ESe(t.body):t.body,o=Object.fromEntries(Object.entries(t.headers).map(([p,f])=>[p,String(f)])),a;try{a=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:o,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(p){let f="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;f=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?f=p.cause.message:typeof p.cause=="string"&&(f=p.cause))}let m=new om(f,500,{request:t});throw m.cause=p,m}let c=a.status,l=a.url,u={};for(let[p,f]of a.headers)u[p]=f;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let p=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),f=p&&p.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${f?`. See ${f}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new om(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await e8(a),new om("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await e8(a),new om(Lbt(d.data),c,{response:d,request:t});return d.data=n?await e8(a):a.body,d}i(SSe,"fetchWrapper");async function e8(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(wSe);let r=(0,xSe.safeParse)(e);if(kbt(r)){let n="";try{return n=await t.text(),ISe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(wSe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(e8,"getResponseData");function kbt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(kbt,"isJSONResponse");function Lbt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}i(Lbt,"toErrorMessage");function t8(t,e){let r=t.defaults(e);return Object.assign(i(function(s,o){let a=r.merge(s,o);if(!a.request||!a.request.hook)return SSe(r.parse(a));let c=i((l,u)=>SSe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:t8.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:t8.bind(null,r)})}i(t8,"withDefaults");var Uw=t8(dSe,Qbt);var Obt="0.0.0-development";function Mbt(t){return`Request failed due to following response errors: `+t.errors.map(e=>` - ${e.message}`).join(` -`)}i(Bxt,"_buildMessageForResponseErrors");var Rxt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Bxt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Nxt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Txt=["query","method","url"],cSe=/\/api\/v3\/?$/;function vxt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Txt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Nxt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cSe.test(o)&&(s.url=o.replace(cSe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Rxt(s,c,a.data)}return a.data.data})}i(vxt,"graphql");function YY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>vxt(r,s,o),"newApi"),{defaults:YY.bind(null,r),endpoint:r.endpoint})}i(YY,"withDefaults");var XSr=YY(Qw,{headers:{"user-agent":`octokit-graphql.js/${bxt} ${Sd()}`},method:"POST",url:"/graphql"});function lSe(t){return YY(t,{method:"POST",url:"/graphql"})}i(lSe,"withCustomRequest");var JY="(?:[a-zA-Z0-9_-]+)",uSe="\\.",dSe=new RegExp(`^${JY}${uSe}${JY}${uSe}${JY}$`),Pxt=dSe.test.bind(dSe);async function _xt(t){let e=Pxt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(_xt,"auth");function Qxt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(Qxt,"withAuthorizationPrefix");async function Dxt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Qxt(t),e(s)}i(Dxt,"hook");var pSe=i(function(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");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(_xt.bind(null,e),{hook:Dxt.bind(null,e)})},"createTokenAuth2");var jY="7.0.6";var mSe=i(()=>{},"noop"),kxt=console.warn.bind(console),Lxt=console.error.bind(console);function Oxt(t={}){return typeof t.debug!="function"&&(t.debug=mSe),typeof t.info!="function"&&(t.info=mSe),typeof t.warn!="function"&&(t.warn=kxt),typeof t.error!="function"&&(t.error=Lxt),t}i(Oxt,"createLogger");var fSe=`octokit-core.js/${jY} ${Sd()}`,LP=class{static{i(this,"Octokit")}static VERSION=jY;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qwe.Collection,n={baseUrl:Qw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${fSe}`:fSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qw.defaults(n),this.graphql=lSe(this.request).defaults(n),this.log=Oxt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=pSe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o({async next(){if(!c)return{done:!0};try{let l=await s({method:o,url:c,headers:a}),u=Hxt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),p=d.searchParams,m=parseInt(p.get("page")||"1",10),f=parseInt(p.get("per_page")||"250",10);m*f{if(s.done)return e;let o=!1;function a(){o=!0}return i(a,"done"),e=e.concat(n?n(s.value,a):s.value.data),o?e:gSe(t,e,r,n)})}i(gSe,"gather");var xxr=Object.assign(hSe,{iterator:e8});function t8(t){return{paginate:Object.assign(hSe.bind(null,t),{iterator:e8.bind(null,t)})}}i(t8,"paginateRest");t8.VERSION=Gxt;var vxr=new bg,r8=kwe(),$xt={baseUrl:r8,request:{agent:Qwe(r8),fetch:Dwe(r8)}},ySe=LP.plugin(ZY,t8).defaults($xt);function ESe(t,e){let r=Object.assign({},e||{}),n=_we(t,r);n&&(r.auth=n);let s=GY(r.userAgent);return s&&(r.userAgent=s),r}i(ESe,"getOctokitOptions");var Ng=new bg;function CSe(t,e,...r){let n=ySe.plugin(...r);return new n(ESe(t,e))}i(CSe,"getOctokit");var tf=class extends Error{static{i(this,"InvalidTokenError")}};tf.prototype.name="InvalidTokenError";function Vxt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}i(Vxt,"b64DecodeUnicode");function Wxt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Vxt(e)}catch{return atob(e)}}i(Wxt,"base64UrlDecode");function ISe(t,e){if(typeof t!="string")throw new tf("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new tf(`Invalid token specified: missing part #${r+1}`);let s;try{s=Wxt(n)}catch(o){throw new tf(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new tf(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(ISe,"jwtDecode");var Tg=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=CSe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Ng.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(s){if(!this.githubToken)throw s;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let s=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,a=await new po("docker-actions-toolkit").get(s,n?{Authorization:`token ${n}`}:void 0),c=await a.readBody(),l=a.message.statusCode||500;if(l>=400)throw new Error(`Failed to get ${e} releases from ${s} with status code ${l}: ${c}`);return JSON.parse(c)}static get context(){return Ng}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(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",s=r.endsWith(".GHE.COM"),o=r.endsWith(".LOCALHOST");return!n&&!s&&!o}static get repository(){return`${Ng.repo.owner}/${Ng.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:Ng.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${t.serverURL}/${t.repository}/actions/runs/${t.runId}${e?`/attempts/${t.runAttempt}`:""}`}static get actionsRuntimeToken(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"";return e?ISe(e):void 0}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}ge(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var OP=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||Us.default.join(wd.configDir,"buildx")}static get refsDir(){return Us.default.join(t.configDir,"refs")}static get refsGroupDir(){return Us.default.join(t.refsDir,"__group__")}static get certsDir(){return Us.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await wd.isAvailable();return T(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await eu.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(T(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(T(`Buildx.isAvailable error: ${n}`),!1));return T(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await eu.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await eu.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Buildx.versionSatisfies false: undefined version"),!1;let s=wSe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`Buildx.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static resolveCertsDriverOpts(e,r,n){let s;try{s=new URL(r)}catch{return[]}if(s.protocol!="tcp:")return[];let o=[];if(Object.keys(n).length==0)return o;let a=s.hostname;if(s.port.length>0&&(a+=`-${s.port}`),n.cacert!==void 0){let c=Us.default.join(t.certsDir,`cacert_${a}.pem`);gi.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=Us.default.join(t.certsDir,`cert_${a}.pem`);gi.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=Us.default.join(t.certsDir,`key_${a}.pem`);gi.default.writeFileSync(c,n.key),o.push(`key=${c}`)}return e!="remote"?[]:o}static localState(e,r){let[n,s,o]=e.split("/");if(!n||!s||!o)throw new Error(`Invalid build reference: ${e}`);let a=Us.default.join(r||t.refsDir,n,s,o);if(!gi.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(gi.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,s,o]=r(e.LocalPath);return o&&(e.LocalPath=n,e.DockerfilePath.indexOf(s)===0&&(e.DockerfilePath=e.DockerfilePath.substring(s.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:s,nodeName:o,since:a}=e,c=Us.default.resolve(n);if(e.builderName&&(c=Us.default.join(c,e.builderName)),e.nodeName&&(c=Us.default.join(c,e.nodeName)),!gi.default.existsSync(c))return r;let l=gi.default.readdirSync(c);for(let u of l){let d=Us.default.join(c,u),p=gi.default.statSync(d);if(p.isDirectory()){let m={...e};if(s)o||(m.nodeName=u);else{if(u==="__group__")continue;m.builderName=u}t.refs(m,r)}else{if(a&&p.mtimeatob(h)).join(" "),m=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(m+=` -More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:m,file:h.path,startLine:f}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function xSe(){return{registry:qi("registry"),username:qi("username"),password:qi("password"),scope:qi("scope"),ecr:qi("ecr"),logout:rie("logout"),registryAuth:qi("registry-auth")}}i(xSe,"getInputs");function bSe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=eye(t.registryAuth).map(r=>{r.password&&Ln(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:String(r.ecr??"")||"auto",configDir:MP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:MP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(bSe,"getAuthList");function MP(t,e){if(Yxt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=rf.default.resolve(OP.configDir,"config"),o=rf.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!SSe(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=rf.default.resolve(o,c);if(!SSe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(MP,"scopeToConfigDir");function SSe(t,e){let r=rf.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${rf.default.sep}`)&&!rf.default.isAbsolute(r)}i(SSe,"isChildPath");function Yxt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Id.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(Yxt,"scopeDisabled");var GHe=R(Y2e(),1),HHe=R(BHe(),1),WK=R(hu(),1);var vHe=R(require("net"),1),PHe=R(require("tls"),1),_He=R(fm(),1),QHe=require("events");var RHe=R(require("net"),1),NHe=R(require("http"),1),THe=require("https");var gl=Symbol("AgentBaseInternalState"),$M=class extends NHe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[gl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new RHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?THe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[gl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[gl].currentSocket;if(this[gl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[gl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[gl]&&(this[gl].defaultPort=e)}get protocol(){return this[gl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[gl]&&(this[gl].protocol=e)}};var $K=require("url");function zM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(zM,"createNegotiateAuth");var cE=(0,_He.default)("http-proxy-agent"),Zx=class extends $M{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $K.URL(e):e,this.proxyHeaders=r?.headers??{},cE("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=zM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Nzt(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new $K.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;cE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(cE("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`)}i(Mbt,"_buildMessageForResponseErrors");var Fbt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Mbt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Ubt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],qbt=["query","method","url"],bSe=/\/api\/v3\/?$/;function Gbt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(qbt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Ubt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return bSe.test(o)&&(s.url=o.replace(bSe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Fbt(s,c,a.data)}return a.data.data})}i(Gbt,"graphql");function r8(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>Gbt(r,s,o),"newApi"),{defaults:r8.bind(null,r),endpoint:r.endpoint})}i(r8,"withDefaults");var qbr=r8(Uw,{headers:{"user-agent":`octokit-graphql.js/${Obt} ${bd()}`},method:"POST",url:"/graphql"});function BSe(t){return r8(t,{method:"POST",url:"/graphql"})}i(BSe,"withCustomRequest");var n8="(?:[a-zA-Z0-9_-]+)",RSe="\\.",NSe=new RegExp(`^${n8}${RSe}${n8}${RSe}${n8}$`),$bt=NSe.test.bind(NSe);async function Hbt(t){let e=$bt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(Hbt,"auth");function zbt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(zbt,"withAuthorizationPrefix");async function Vbt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=zbt(t),e(s)}i(Vbt,"hook");var TSe=i(function(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");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Hbt.bind(null,e),{hook:Vbt.bind(null,e)})},"createTokenAuth2");var s8="7.0.6";var PSe=i(()=>{},"noop"),Wbt=console.warn.bind(console),Ybt=console.error.bind(console);function Jbt(t={}){return typeof t.debug!="function"&&(t.debug=PSe),typeof t.info!="function"&&(t.info=PSe),typeof t.warn!="function"&&(t.warn=Wbt),typeof t.error!="function"&&(t.error=Ybt),t}i(Jbt,"createLogger");var vSe=`octokit-core.js/${s8} ${bd()}`,Gv=class{static{i(this,"Octokit")}static VERSION=s8;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new sSe.Collection,n={baseUrl:Uw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${vSe}`:vSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Uw.defaults(n),this.graphql=BSe(this.request).defaults(n),this.log=Jbt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=TSe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o({async next(){if(!c)return{done:!0};try{let l=await s({method:o,url:c,headers:a}),u=t0t(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),p=d.searchParams,f=parseInt(p.get("page")||"1",10),m=parseInt(p.get("per_page")||"250",10);f*m{if(s.done)return e;let o=!1;function a(){o=!0}return i(a,"done"),e=e.concat(n?n(s.value,a):s.value.data),o?e:DSe(t,e,r,n)})}i(DSe,"gather");var f0r=Object.assign(QSe,{iterator:c8});function l8(t){return{paginate:Object.assign(QSe.bind(null,t),{iterator:c8.bind(null,t)})}}i(l8,"paginateRest");l8.VERSION=e0t;var E0r=new Pg,u8=Xwe(),r0t={baseUrl:u8,request:{agent:jwe(u8),fetch:Kwe(u8)}},kSe=Gv.plugin(a8,l8).defaults(r0t);function LSe(t,e){let r=Object.assign({},e||{}),n=Jwe(t,r);n&&(r.auth=n);let s=jY(r.userAgent);return s&&(r.userAgent=s),r}i(LSe,"getOctokitOptions");var Qg=new Pg;function OSe(t,e,...r){let n=kSe.plugin(...r);return new n(LSe(t,e))}i(OSe,"getOctokit");var USe=require("stream/consumers");var am=class extends Error{static{i(this,"InvalidTokenError")}};am.prototype.name="InvalidTokenError";function s0t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}i(s0t,"b64DecodeUnicode");function o0t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return s0t(e)}catch{return atob(e)}}i(o0t,"base64UrlDecode");function MSe(t,e){if(typeof t!="string")throw new am("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new am(`Invalid token specified: missing part #${r+1}`);let s;try{s=o0t(n)}catch(o){throw new am(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new am(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(MSe,"jwtDecode");var $v=[1e3,3e3],i0t=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),Dg=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=OSe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Qg.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(s){if(!this.githubToken)throw s;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let s=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,o=n?{Authorization:`token ${n}`}:void 0,a;for(let c=0;c<=$v.length;c++)try{let u=await new fo("docker-actions-toolkit").get(s,o),d=await(0,USe.text)(u.message),p=u.message.statusCode||500;if(p>=400){let f=new Error(`Failed to get ${e} releases from ${s} with status code ${p}: ${d}`);throw f.statusCode=p,f}return JSON.parse(d)}catch(l){if(a=l instanceof Error?l:new Error(`${l}`),!t.isRetryableReleaseError(a)||c===$v.length)throw a;ae(`${a.message}. Retrying (${c+1}/${$v.length})...`),await new Promise(u=>setTimeout(u,$v[c]))}throw a||new Error(`Failed to get ${e} releases from ${s}`)}static isRetryableReleaseError(e){let r=e.statusCode;if(r)return r===408||r===429||r>=500;let n=e.code,s=e.message.toLowerCase();return n&&i0t.has(n)||s.includes("socket hang up")||s.includes("read econnreset")}static get context(){return Qg}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(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",s=r.endsWith(".GHE.COM"),o=r.endsWith(".LOCALHOST");return!n&&!s&&!o}static get repository(){return`${Qg.repo.owner}/${Qg.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:Qg.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${t.serverURL}/${t.repository}/actions/runs/${t.runId}${e?`/attempts/${t.runAttempt}`:""}`}static get actionsRuntimeToken(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"";return e?MSe(e):void 0}static printUntrusted(e){let r=FSe.randomUUID();ae(`::stop-commands::${r}`);try{ae(e)}finally{ae(`::${r}::`)}}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}ae(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var Hv=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||$s.default.join(xd.configDir,"buildx")}static get refsDir(){return $s.default.join(t.configDir,"refs")}static get refsGroupDir(){return $s.default.join(t.refsDir,"__group__")}static get certsDir(){return $s.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await xd.isAvailable();return T(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await tu.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(T(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(T(`Buildx.isAvailable error: ${n}`),!1));return T(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await tu.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await tu.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,qSe.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let s=r.length-1;s>=0;s--){let o=r[s].trim();if(o.startsWith("ERROR:"))return o.slice(6).trim()||"unknown error";n||=o}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Buildx.versionSatisfies false: undefined version"),!1;let s=GSe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`Buildx.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static resolveCertsDriverOpts(e,r,n){let s;try{s=new URL(r)}catch{return[]}if(s.protocol!="tcp:")return[];let o=[];if(Object.keys(n).length==0)return o;let a=s.hostname;if(s.port.length>0&&(a+=`-${s.port}`),n.cacert!==void 0){let c=$s.default.join(t.certsDir,`cacert_${a}.pem`);Ei.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=$s.default.join(t.certsDir,`cert_${a}.pem`);Ei.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=$s.default.join(t.certsDir,`key_${a}.pem`);Ei.default.writeFileSync(c,n.key),o.push(`key=${c}`)}return e!="remote"?[]:o}static localState(e,r){let[n,s,o]=e.split("/");if(!n||!s||!o)throw new Error(`Invalid build reference: ${e}`);let a=$s.default.join(r||t.refsDir,n,s,o);if(!Ei.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Ei.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,s,o]=r(e.LocalPath);return o&&(e.LocalPath=n,e.DockerfilePath.indexOf(s)===0&&(e.DockerfilePath=e.DockerfilePath.substring(s.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:s,nodeName:o,since:a}=e,c=$s.default.resolve(n);if(e.builderName&&(c=$s.default.join(c,e.builderName)),e.nodeName&&(c=$s.default.join(c,e.nodeName)),!Ei.default.existsSync(c))return r;let l=Ei.default.readdirSync(c);for(let u of l){let d=$s.default.join(c,u),p=Ei.default.statSync(d);if(p.isDirectory()){let f={...e};if(s)o||(f.nodeName=u);else{if(u==="__group__")continue;f.builderName=u}t.refs(f,r)}else{if(a&&p.mtimeatob(h)).join(" "),f=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(f+=` +More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:f,file:h.path,startLine:m}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function HSe(){return{registry:$i("registry"),username:$i("username"),password:$i("password"),scope:$i("scope"),ecr:$i("ecr"),logout:uie("logout"),registryAuth:$i("registry-auth")}}i(HSe,"getInputs");function zSe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=cye(t.registryAuth).map(r=>{r.password&&Ln(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:String(r.ecr??"")||"auto",configDir:zv(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:zv(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(zSe,"getAuthList");function zv(t,e){if(a0t()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=cm.default.resolve(Hv.configDir,"config"),o=cm.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!$Se(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=cm.default.resolve(o,c);if(!$Se(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(zv,"scopeToConfigDir");function $Se(t,e){let r=cm.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${cm.default.sep}`)&&!cm.default.isAbsolute(r)}i($Se,"isChildPath");function a0t(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Sd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(a0t,"scopeDisabled");var cHe=R(mqe(),1),lHe=R(V$e(),1),tX=R(gu(),1);var j$e=R(require("net"),1),K$e=R(require("tls"),1),X$e=R(Ef(),1),Z$e=require("events");var W$e=R(require("net"),1),Y$e=R(require("http"),1),J$e=require("https");var yl=Symbol("AgentBaseInternalState"),KM=class extends Y$e.Agent{static{i(this,"Agent")}constructor(e){super(e),this[yl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new W$e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?J$e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[yl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[yl].currentSocket;if(this[yl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[yl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[yl]&&(this[yl].defaultPort=e)}get protocol(){return this[yl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[yl]&&(this[yl].protocol=e)}};var XK=require("url");function XM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(XM,"createNegotiateAuth");var fE=(0,X$e.default)("http-proxy-agent"),ib=class extends KM{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new XK.URL(e):e,this.proxyHeaders=r?.headers??{},fE("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=XM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?q3t(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new XK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;fE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(fE("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(s),cE("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(cE("Creating `tls.Socket`: %o",this.connectOpts),o=PHe.connect(this.connectOpts)):(cE("Creating `net.Socket`: %o",this.connectOpts),o=vHe.connect(this.connectOpts)),await(0,QHe.once)(o,"connect");let a={socket:o};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),o}};Zx.protocols=["http","https"];function Nzt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Nzt,"omit");var El=R(require("net"),1),eb=R(require("tls"),1),FHe=R(require("assert"),1),UHe=R(fm(),1);var DHe=R(require("net"),1),kHe=R(require("http"),1),LHe=require("https");var yl=Symbol("AgentBaseInternalState"),VM=class extends kHe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[yl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` -`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new DHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?LHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[yl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[yl].currentSocket;if(this[yl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[yl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[yl]&&(this[yl].defaultPort=e)}get protocol(){return this[yl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[yl]&&(this[yl].protocol=e)}};var qHe=require("url");var OHe=R(fm(),1);var WM=(0,OHe.default)("https-proxy-agent:parse-proxy-response");function zK(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),WM("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),WM("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),m=p.indexOf(`\r +`)+4,e.outputData[0].data=e._header+n.substring(s),fE("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(fE("Creating `tls.Socket`: %o",this.connectOpts),o=K$e.connect(this.connectOpts)):(fE("Creating `net.Socket`: %o",this.connectOpts),o=j$e.connect(this.connectOpts)),await(0,Z$e.once)(o,"connect");let a={socket:o};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),o}};ib.protocols=["http","https"];function q3t(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(q3t,"omit");var Cl=R(require("net"),1),ab=R(require("tls"),1),oHe=R(require("assert"),1),iHe=R(Ef(),1);var eHe=R(require("net"),1),tHe=R(require("http"),1),rHe=require("https");var El=Symbol("AgentBaseInternalState"),ZM=class extends tHe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[El]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(` +`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new eHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?rHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[El].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[El].currentSocket;if(this[El].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[El].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[El]&&(this[El].defaultPort=e)}get protocol(){return this[El].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[El]&&(this[El].protocol=e)}};var aHe=require("url");var nHe=R(Ef(),1);var eF=(0,nHe.default)("https-proxy-agent:parse-proxy-response");function ZK(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),eF("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),eF("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r \r -`);if(m===-1){WM("have not received end of HTTP headers yet..."),o();return}let f=p.slice(0,m).toString("ascii").split(`\r -`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],y=h.slice(2).join(" "),I={};for(let x of f){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,P]:Array.isArray(_)?_.push(P):I[N]=P}WM("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:E,statusText:y,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(zK,"parseProxyResponse");var Wf=(0,UHe.default)("https-proxy-agent"),YM=i(t=>t.servername===void 0&&t.host&&!El.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),tb=class extends VM{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new qHe.URL(e):e,this.proxyHeaders=r?.headers??{},Wf("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=zM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?VK(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Wf("Creating `tls.Socket`: %o",this.connectOpts),s=eb.connect(YM(this.connectOpts))):(Wf("Creating `net.Socket`: %o",this.connectOpts),s=El.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=El.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r -`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r -`;let l=zK(s);s.write(`${c}\r -`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:s}),u.statusCode===200)return e.once("socket",MHe),r.secureEndpoint?(Wf("Upgrading socket connection to TLS"),eb.connect({...VK(YM(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Wf("Got 407 response, invoking onProxyAuth callback"),s.destroy();let m=u.headers["proxy-authenticate"]||"",f=Array.isArray(m)?m[0].split(/\s/)[0]:m.split(/\s/)[0],A=await this.onProxyAuth({response:u,scheme:f});return this._connectWithAuth(e,r,A.headers)}s.destroy();let p=new El.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{Wf("Replaying proxy buffer for failed request"),(0,FHe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:s}=this,o;s.protocol==="https:"?o=eb.connect(YM(this.connectOpts)):o=El.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=El.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\r +`);if(f===-1){eF("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r +`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),E=+h[1],y=h.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,v]:Array.isArray(_)?_.push(v):I[N]=v}eF("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:E,statusText:y,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(ZK,"parseProxyResponse");var Xm=(0,iHe.default)("https-proxy-agent"),tF=i(t=>t.servername===void 0&&t.host&&!Cl.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),cb=class extends ZM{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new aHe.URL(e):e,this.proxyHeaders=r?.headers??{},Xm("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=XM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?eX(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Xm("Creating `tls.Socket`: %o",this.connectOpts),s=ab.connect(tF(this.connectOpts))):(Xm("Creating `net.Socket`: %o",this.connectOpts),s=Cl.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Cl.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r +`;let l=ZK(s);s.write(`${c}\r +`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:s}),u.statusCode===200)return e.once("socket",sHe),r.secureEndpoint?(Xm("Upgrading socket connection to TLS"),ab.connect({...eX(tF(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Xm("Got 407 response, invoking onProxyAuth callback"),s.destroy();let f=u.headers["proxy-authenticate"]||"",m=Array.isArray(f)?f[0].split(/\s/)[0]:f.split(/\s/)[0],A=await this.onProxyAuth({response:u,scheme:m});return this._connectWithAuth(e,r,A.headers)}s.destroy();let p=new Cl.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Xm("Replaying proxy buffer for failed request"),(0,oHe.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:s}=this,o;s.protocol==="https:"?o=ab.connect(tF(this.connectOpts)):o=Cl.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=Cl.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\r `;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}Object.assign(a,n),a.Host=`${c}:${r.port}`,a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(a))l+=`${p}: ${a[p]}\r -`;let u=zK(o);o.write(`${l}\r -`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",MHe),r.secureEndpoint?(Wf("Upgrading socket connection to TLS"),eb.connect({...VK(YM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};tb.protocols=["http","https"];function MHe(t){setImmediate(()=>{t.resume()})}i(MHe,"resume");function VK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(VK,"omit");var YK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,Tzt=/public\.ecr\.aws|ecr-public\.aws\.com/,$He=i(t=>YK.test(t)||JM(t),"isECR"),JM=i(t=>Tzt.test(t),"isPubECR"),vzt=i(t=>{if(JM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(YK);return e?e[4]:""},"getRegion"),Pzt=i(t=>{if(JM(t))return[];let e=t.match(YK);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),zHe=i(async(t,e,r)=>{let n=vzt(t),s=Pzt(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new Zx(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new tb(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(JM(t)){ge(`AWS Public ECR detected with ${n} region`);let m=await new HHe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new WK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return Ln(A[0]),Ln(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{ge(`AWS ECR detected with ${n} region`);let m=await new GHe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new WK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let A of m.authorizationData){let E=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);Ln(E[0]),Ln(E[1]),f.push({registry:A.proxyEndpoint||"",username:E[0],password:E[1]})}return f}},"getRegistriesData");var VHe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Qzt(t){return typeof t=="string"&&VHe.test(t)}i(Qzt,"validate");var JK=Qzt;var Dzt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),kzt=300,WHe=300,YHe=21600,JHe=5,jHe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&Dzt.has(t),"isDockerHubOIDC"),KHe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!JK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=Lzt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ge(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ge("Retrieving GitHub OIDC token for Docker Hub");let a=await oie(o),c=new po("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),ge("Exchanging GitHub OIDC token for Docker Hub token");let u=await Ozt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await Fzt(u));return Ln(d.access_token),ge("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),Lzt=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||kzt.toString(),e=Number(t);if(isNaN(e)||eYHe)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${WHe} and ${YHe}`);return e},"getExpiresIn"),Ozt=i(async(t,e,r)=>{T(`Sending Docker Hub OIDC token request to ${e}`);let n=await t.post(e,r);T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||At.InternalServerError}`);for(let s=0;(n.message.statusCode||At.InternalServerError)===At.TooManyRequests&&ssetTimeout(a,o)),n=await t.post(e,r),T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||At.InternalServerError}`)}return n},"postWithRetry"),Mzt=i(t=>{if(t===void 0)return null;Array.isArray(t)&&(t=t[0]);let e=Number(t);return isNaN(e)?null:Math.max(0,e*1e3)},"parseRetryAfter"),Fzt=i(async t=>{let e=await t.readBody(),r=t.message.statusCode||At.InternalServerError;if(T(`Docker Hub OIDC token response status code: ${r}`),r=At.MultipleChoices)throw Uzt(r,e);return e},"handleResponse"),Uzt=i((t,e)=>{if(e){let r;try{r=JSON.parse(e)}catch{r=void 0}if(r!==void 0)throw new Error(`Docker Hub API: bad status code ${t}: ${JSON.stringify(r)}`)}throw t===401?new Error("Docker Hub API: operation not permitted"):new Error(`Docker Hub API: bad status code ${t}`)},"parseError");async function jK(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&$He(t.registry))await Hzt(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(jHe(t.registry,r)){let n=await KHe(t.registry,e);e=n.username,r=n.token}await Gzt(t.registry,e,r,t.scope)}}i(jK,"login");async function XHe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ge(`Alternative config dir: ${e}`)),await wd.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Cr(n.stderr.trim())})}i(XHe,"logout");async function Gzt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await ZHe(t,e,r,n)}i(Gzt,"loginStandard");async function Hzt(t,e,r,n){ge("Retrieving registries data through AWS SDK...");let s=await zHe(t,e,r);for(let o of s)await ZHe(o.registry,o.username,o.password,n)}i(Hzt,"loginECR");async function ZHe(t,e,r,n){let s,o=MP(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ge(`Logging into ${t} (scope ${n})...`)):ge(`Logging into ${t}...`),await wd.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());ge("Login Succeeded!")})}i(ZHe,"loginExec");var e$e=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],t$e=/true/i.test(process.env.STATE_logout||"");function r$e(t){rm("registries",JSON.stringify(t))}i(r$e,"setRegistries");function n$e(t){rm("logout",t)}i(n$e,"setLogout");async function s$e(){let t=xSe();n$e(t.logout);let e=bSe(t);if(r$e(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await jK(e[0]);return}for(let r of e)await CC(`Login to ${r.registry}`,async()=>{await jK(r)})}i(s$e,"main");async function Vzt(){if(t$e)for(let t of e$e)await CC(`Logout from ${t.registry}`,async()=>{await XHe(t.registry,t.configDir)})}i(Vzt,"post");Ige(s$e,Vzt);0&&(module.exports={main}); +`;let u=ZK(o);o.write(`${l}\r +`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",sHe),r.secureEndpoint?(Xm("Upgrading socket connection to TLS"),ab.connect({...eX(tF(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};cb.protocols=["http","https"];function sHe(t){setImmediate(()=>{t.resume()})}i(sHe,"resume");function eX(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(eX,"omit");var rX=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,G3t=/public\.ecr\.aws|ecr-public\.aws\.com/,uHe=i(t=>rX.test(t)||rF(t),"isECR"),rF=i(t=>G3t.test(t),"isPubECR"),$3t=i(t=>{if(rF(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(rX);return e?e[4]:""},"getRegion"),H3t=i(t=>{if(rF(t))return[];let e=t.match(rX);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),dHe=i(async(t,e,r)=>{let n=$3t(t),s=H3t(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new ib(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new cb(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(rF(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new lHe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new tX.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!f.authorizationData||!f.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return Ln(A[0]),Ln(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new cHe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new tX.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(f.authorizationData)||!f.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let A of f.authorizationData){let E=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);Ln(E[0]),Ln(E[1]),m.push({registry:A.proxyEndpoint||"",username:E[0],password:E[1]})}return m}},"getRegistriesData");var pHe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function V3t(t){return typeof t=="string"&&pHe.test(t)}i(V3t,"validate");var nX=V3t;var W3t=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),Y3t=300,fHe=300,mHe=21600,AHe=5,hHe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&W3t.has(t),"isDockerHubOIDC"),gHe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!nX(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=J3t(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ae(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ae("Retrieving GitHub OIDC token for Docker Hub");let a=await fie(o),c=new fo("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),ae("Exchanging GitHub OIDC token for Docker Hub token");let u=await j3t(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await X3t(u));return Ln(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),J3t=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||Y3t.toString(),e=Number(t);if(isNaN(e)||emHe)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${fHe} and ${mHe}`);return e},"getExpiresIn"),j3t=i(async(t,e,r)=>{T(`Sending Docker Hub OIDC token request to ${e}`);let n=await t.post(e,r);T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||mt.InternalServerError}`);for(let s=0;(n.message.statusCode||mt.InternalServerError)===mt.TooManyRequests&&ssetTimeout(a,o)),n=await t.post(e,r),T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||mt.InternalServerError}`)}return n},"postWithRetry"),K3t=i(t=>{if(t===void 0)return null;Array.isArray(t)&&(t=t[0]);let e=Number(t);return isNaN(e)?null:Math.max(0,e*1e3)},"parseRetryAfter"),X3t=i(async t=>{let e=await t.readBody(),r=t.message.statusCode||mt.InternalServerError;if(T(`Docker Hub OIDC token response status code: ${r}`),r=mt.MultipleChoices)throw Z3t(r,e);return e},"handleResponse"),Z3t=i((t,e)=>{if(e){let r;try{r=JSON.parse(e)}catch{r=void 0}if(r!==void 0)throw new Error(`Docker Hub API: bad status code ${t}: ${JSON.stringify(r)}`)}throw t===401?new Error("Docker Hub API: operation not permitted"):new Error(`Docker Hub API: bad status code ${t}`)},"parseError");async function sX(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&uHe(t.registry))await rVt(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(hHe(t.registry,r)){let n=await gHe(t.registry,e);e=n.username,r=n.token}await tVt(t.registry,e,r,t.scope)}}i(sX,"login");async function yHe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ae(`Alternative config dir: ${e}`)),await xd.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&or(n.stderr.trim())})}i(yHe,"logout");async function tVt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await EHe(t,e,r,n)}i(tVt,"loginStandard");async function rVt(t,e,r,n){ae("Retrieving registries data through AWS SDK...");let s=await dHe(t,e,r);for(let o of s)await EHe(o.registry,o.username,o.password,n)}i(rVt,"loginECR");async function EHe(t,e,r,n){let s,o=zv(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ae(`Logging into ${t} (scope ${n})...`)):ae(`Logging into ${t}...`),await xd.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());ae("Login Succeeded!")})}i(EHe,"loginExec");var CHe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],IHe=/true/i.test(process.env.STATE_logout||"");function wHe(t){of("registries",JSON.stringify(t))}i(wHe,"setRegistries");function SHe(t){of("logout",t)}i(SHe,"setLogout");async function xHe(){let t=HSe();SHe(t.logout);let e=zSe(t);if(wHe(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await sX(e[0]);return}for(let r of e)await BC(`Login to ${r.registry}`,async()=>{await sX(r)})}i(xHe,"main");async function oVt(){if(IHe)for(let t of CHe)await BC(`Logout from ${t.registry}`,async()=>{await yHe(t.registry,t.configDir)})}i(oVt,"post");Tge(xHe,oVt);0&&(module.exports={main}); /*! Bundled license information: undici/lib/web/fetch/body.js: diff --git a/dist/index.cjs.map b/dist/index.cjs.map index e4a7270..e165e0e 100644 --- a/dist/index.cjs.map +++ b/dist/index.cjs.map @@ -1,7 +1,7 @@ { "version": 3, - "sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js", "../node_modules/undici/lib/web/eventsource/eventsource.js", "../node_modules/undici/index.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/constants.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/debug.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/re.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/parse-options.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/identifiers.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/semver.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/parse.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/valid.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/clean.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/inc.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/diff.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/major.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/minor.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/patch.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/prerelease.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/rcompare.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare-loose.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/compare-build.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/sort.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/rsort.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/gt.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/lt.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/eq.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/neq.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/gte.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/lte.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/cmp.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/coerce.js", "../node_modules/@actions/tool-cache/node_modules/semver/internal/lrucache.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/range.js", "../node_modules/@actions/tool-cache/node_modules/semver/classes/comparator.js", "../node_modules/@actions/tool-cache/node_modules/semver/functions/satisfies.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/to-comparators.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/min-version.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/valid.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/outside.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/gtr.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/ltr.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/intersects.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/simplify.js", "../node_modules/@actions/tool-cache/node_modules/semver/ranges/subset.js", "../node_modules/@actions/tool-cache/node_modules/semver/index.js", "../node_modules/concat-map/index.js", "../node_modules/balanced-match/index.js", "../node_modules/minimatch/node_modules/brace-expansion/index.js", "../node_modules/minimatch/minimatch.js", "../node_modules/@actions/cache/node_modules/semver/internal/constants.js", "../node_modules/@actions/cache/node_modules/semver/internal/debug.js", "../node_modules/@actions/cache/node_modules/semver/internal/re.js", "../node_modules/@actions/cache/node_modules/semver/internal/parse-options.js", "../node_modules/@actions/cache/node_modules/semver/internal/identifiers.js", "../node_modules/@actions/cache/node_modules/semver/classes/semver.js", "../node_modules/@actions/cache/node_modules/semver/functions/parse.js", "../node_modules/@actions/cache/node_modules/semver/functions/valid.js", "../node_modules/@actions/cache/node_modules/semver/functions/clean.js", "../node_modules/@actions/cache/node_modules/semver/functions/inc.js", "../node_modules/@actions/cache/node_modules/semver/functions/diff.js", "../node_modules/@actions/cache/node_modules/semver/functions/major.js", "../node_modules/@actions/cache/node_modules/semver/functions/minor.js", "../node_modules/@actions/cache/node_modules/semver/functions/patch.js", "../node_modules/@actions/cache/node_modules/semver/functions/prerelease.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare.js", "../node_modules/@actions/cache/node_modules/semver/functions/rcompare.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare-loose.js", "../node_modules/@actions/cache/node_modules/semver/functions/compare-build.js", "../node_modules/@actions/cache/node_modules/semver/functions/sort.js", "../node_modules/@actions/cache/node_modules/semver/functions/rsort.js", "../node_modules/@actions/cache/node_modules/semver/functions/gt.js", "../node_modules/@actions/cache/node_modules/semver/functions/lt.js", "../node_modules/@actions/cache/node_modules/semver/functions/eq.js", "../node_modules/@actions/cache/node_modules/semver/functions/neq.js", "../node_modules/@actions/cache/node_modules/semver/functions/gte.js", "../node_modules/@actions/cache/node_modules/semver/functions/lte.js", "../node_modules/@actions/cache/node_modules/semver/functions/cmp.js", "../node_modules/@actions/cache/node_modules/semver/functions/coerce.js", "../node_modules/@actions/cache/node_modules/semver/functions/truncate.js", "../node_modules/@actions/cache/node_modules/semver/internal/lrucache.js", "../node_modules/@actions/cache/node_modules/semver/classes/range.js", "../node_modules/@actions/cache/node_modules/semver/classes/comparator.js", "../node_modules/@actions/cache/node_modules/semver/functions/satisfies.js", "../node_modules/@actions/cache/node_modules/semver/ranges/to-comparators.js", "../node_modules/@actions/cache/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@actions/cache/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@actions/cache/node_modules/semver/ranges/min-version.js", "../node_modules/@actions/cache/node_modules/semver/ranges/valid.js", "../node_modules/@actions/cache/node_modules/semver/ranges/outside.js", "../node_modules/@actions/cache/node_modules/semver/ranges/gtr.js", "../node_modules/@actions/cache/node_modules/semver/ranges/ltr.js", "../node_modules/@actions/cache/node_modules/semver/ranges/intersects.js", "../node_modules/@actions/cache/node_modules/semver/ranges/simplify.js", "../node_modules/@actions/cache/node_modules/semver/ranges/subset.js", "../node_modules/@actions/cache/node_modules/semver/index.js", "../node_modules/ms/index.js", "../node_modules/debug/src/common.js", "../node_modules/debug/src/browser.js", "../node_modules/has-flag/index.js", "../node_modules/supports-color/index.js", "../node_modules/debug/src/node.js", "../node_modules/debug/src/index.js", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/node_modules/agent-base/src/helpers.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/https-proxy-agent/src/index.ts", "../node_modules/agent-base/src/helpers.ts", "../node_modules/agent-base/src/index.ts", "../node_modules/@typespec/ts-http-runtime/node_modules/http-proxy-agent/src/index.ts", "../node_modules/@azure/core-tracing/src/state-cjs.cts", "../node_modules/@azure/core-client/src/state-cjs.cts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/log.ts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/debug.ts", "../node_modules/@azure/core-lro/node_modules/@azure/logger/src/index.ts", "../node_modules/@azure/core-lro/node_modules/@azure/abort-controller/src/AbortSignal.ts", "../node_modules/@azure/core-lro/node_modules/@azure/abort-controller/src/AbortController.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/isNode.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/createAbortablePromise.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/delay.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/random.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/object.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/error.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/sha256.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/typeGuards.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/uuidUtils.native.ts", "../node_modules/@azure/core-lro/node_modules/@azure/core-util/src/uuidUtils.ts", "../node_modules/@azure/core-lro/src/logger.ts", "../node_modules/@azure/core-lro/src/poller/constants.ts", "../node_modules/@azure/core-lro/src/poller/operation.ts", "../node_modules/@azure/core-lro/src/http/operation.ts", "../node_modules/@azure/core-lro/src/poller/poller.ts", "../node_modules/@azure/core-lro/src/http/poller.ts", "../node_modules/@azure/core-lro/src/legacy/lroEngine/operation.ts", "../node_modules/@azure/core-lro/src/legacy/poller.ts", "../node_modules/@azure/core-lro/src/legacy/lroEngine/lroEngine.ts", "../node_modules/@actions/cache/package.json", "../node_modules/@actions/cache/lib/internal/shared/package-version.cjs", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/base64.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/assert.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime/build/commonjs/index.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js", "../node_modules/@actions/cache/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/index.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/constants.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/debug.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/re.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/parse-options.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/identifiers.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/semver.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/parse.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/valid.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/clean.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/inc.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/diff.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/major.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/minor.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/patch.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/prerelease.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/rcompare.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare-loose.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/compare-build.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/sort.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/rsort.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/gt.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/lt.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/eq.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/neq.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/gte.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/lte.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/cmp.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/coerce.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/truncate.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/internal/lrucache.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/range.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/classes/comparator.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/functions/satisfies.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/to-comparators.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/max-satisfying.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/min-satisfying.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/min-version.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/valid.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/outside.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/gtr.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/ltr.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/intersects.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/simplify.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/ranges/subset.js", "../node_modules/@docker/actions-toolkit/node_modules/semver/index.js", "../node_modules/tmp/lib/tmp.js", "../node_modules/handlebars/lib/handlebars/utils.js", "../node_modules/handlebars/lib/handlebars/exception.js", "../node_modules/handlebars/lib/handlebars/helpers/block-helper-missing.js", "../node_modules/handlebars/lib/handlebars/helpers/each.js", "../node_modules/handlebars/lib/handlebars/helpers/helper-missing.js", "../node_modules/handlebars/lib/handlebars/helpers/if.js", "../node_modules/handlebars/lib/handlebars/helpers/log.js", "../node_modules/handlebars/lib/handlebars/helpers/lookup.js", "../node_modules/handlebars/lib/handlebars/helpers/with.js", "../node_modules/handlebars/lib/handlebars/helpers.js", "../node_modules/handlebars/lib/handlebars/decorators/inline.js", "../node_modules/handlebars/lib/handlebars/decorators.js", "../node_modules/handlebars/lib/handlebars/logger.js", "../node_modules/handlebars/lib/handlebars/internal/proto-access.js", "../node_modules/handlebars/lib/handlebars/base.js", "../node_modules/handlebars/lib/handlebars/safe-string.js", "../node_modules/handlebars/lib/handlebars/internal/wrapHelper.js", "../node_modules/handlebars/lib/handlebars/runtime.js", "../node_modules/handlebars/lib/handlebars/no-conflict.js", "../node_modules/handlebars/lib/handlebars.runtime.js", "../node_modules/handlebars/lib/handlebars/compiler/ast.js", "../node_modules/handlebars/lib/handlebars/compiler/parser.js", "../node_modules/handlebars/lib/handlebars/compiler/node-types.js", "../node_modules/handlebars/lib/handlebars/compiler/visitor.js", "../node_modules/handlebars/lib/handlebars/compiler/whitespace-control.js", "../node_modules/handlebars/lib/handlebars/compiler/helpers.js", "../node_modules/handlebars/lib/handlebars/compiler/base.js", "../node_modules/handlebars/lib/handlebars/compiler/compiler.js", "../node_modules/source-map/lib/base64.js", "../node_modules/source-map/lib/base64-vlq.js", "../node_modules/source-map/lib/util.js", "../node_modules/source-map/lib/array-set.js", "../node_modules/source-map/lib/mapping-list.js", "../node_modules/source-map/lib/source-map-generator.js", "../node_modules/source-map/lib/binary-search.js", "../node_modules/source-map/lib/quick-sort.js", "../node_modules/source-map/lib/source-map-consumer.js", "../node_modules/source-map/lib/source-node.js", "../node_modules/source-map/source-map.js", "../node_modules/handlebars/lib/handlebars/compiler/code-gen.js", "../node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js", "../node_modules/handlebars/lib/handlebars.js", "../node_modules/handlebars/lib/handlebars/compiler/printer.js", "../node_modules/handlebars/lib/index.js", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/node_modules/@actions/http-client/src/index.ts", "../node_modules/fast-content-type-parse/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/isStreamingPayload/isStreamingPayload.js", "../node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js", "../node_modules/@smithy/types/dist-cjs/index.js", "../node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js", "../node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js", "../node_modules/@smithy/core/dist-es/submodules/transport/httpRequest.js", "../node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js", "../node_modules/@smithy/core/dist-es/submodules/transport/isValidHostLabel.js", "../node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js", "../node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js", "../node_modules/@smithy/core/dist-es/submodules/transport/parseQueryString.js", "../node_modules/@smithy/core/dist-es/submodules/transport/parseUrl.js", "../node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js", "../node_modules/@smithy/core/dist-es/submodules/transport/index.js", "../node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidFunction.js", "../node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidProvider.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/circularReplacer.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/waiter.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/poller.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/validate.js", "../node_modules/@smithy/core/dist-es/submodules/client/util-waiter/createWaiter.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client.js", "../node_modules/@smithy/core/dist-es/submodules/schema/deref.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js", "../node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js", "../node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js", "../node_modules/@smithy/core/dist-es/submodules/schema/index.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/constants.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/default-error-handler.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/defaults-mode.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/retry.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-array-if-single-item.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/is-serializable-header-value.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/NoOpLogger.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/ser-utils.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js", "../node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js", "../node_modules/@smithy/core/dist-es/submodules/client/index.js", "../node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.js", "../node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js", "../node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js", "../node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js", "../node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js", "../node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js", "../node_modules/@smithy/core/dist-es/submodules/serde/split-every.js", "../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js", "../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js", "../node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js", "../node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js", "../node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js", "../node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveCustomEndpointsConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/utils/getEndpointFromRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveEndpointsConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getHostnameFromVariants.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedHostname.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedPartition.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedSigningRegion.js", "../node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/config/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/createConfigValueProvider.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/getEndpointPlugin.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/bdd/BinaryDecisionDiagram.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointError.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/debugId.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/toDebugString.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/customEndpointFunctions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/booleanEquals.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/coalesce.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isSet.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/ite.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/not.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isIpAddress.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/split.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/stringEquals.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/substring.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/uriEncode.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/endpointFunctions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateTemplate.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getReferenceValue.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateExpression.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/callFunction.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateCondition.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointHeaders.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointProperties.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/getEndpointUrl.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/decideEndpoint.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateConditions.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateEndpointRule.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateErrorRule.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateRules.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/index.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointRequiredConfig.js", "../node_modules/@smithy/core/dist-es/submodules/endpoints/index.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/serializerMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/serdePlugin.js", "../node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-type-check.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/constants-for-browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/ByteArrayCollector.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/createBufferedReadable.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/createBufferedReadable.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/splitStream.browser.js", "../node_modules/@smithy/core/dist-es/submodules/serde/util-stream/splitStream.js", "../node_modules/@smithy/core/dist-es/submodules/serde/index.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/chunked-blob-reader/chunked-blob-reader.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/hash-blob-browser/blobHasher.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/HashCalculator.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/fileStreamHasher.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/readableStreamHasher.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js", "../node_modules/@smithy/core/dist-es/submodules/checksum/index.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageDecoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageEncoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageEncoderStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getChunkedStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/EventStreamMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-config-resolver/EventStreamSerdeConfig.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js", "../node_modules/@smithy/core/dist-es/submodules/event-streams/index.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Fields.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/common.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js", "../node_modules/@smithy/core/dist-es/submodules/protocols/index.js", "../node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js", "../node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/constants.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/retries-2026-config.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryBackoffStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRetryToken.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/config.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/AdaptiveRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/util-retry/ConfiguredRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/defaultRetryQuota.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/delayDecider.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/retryDecider.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js", "../node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/omitRetryHeadersMiddleware.js", "../node_modules/@smithy/core/dist-es/submodules/retry/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/setTokenFeature.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/configuration.js", "../node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/resolveAuthOptions.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/index.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/getHttpSigningMiddleware.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/index.js", "../node_modules/@smithy/core/dist-es/normalizeProvider.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/pagination/createPaginator.js", "../node_modules/@smithy/core/dist-es/setFeature.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/noAuth.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/httpAuthSchemes/index.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/memoizeIdentityProvider.js", "../node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/index.js", "../node_modules/@smithy/core/dist-es/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/configurations.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partitions.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/partition.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/check-features.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/constants.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/encode-features.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-user-agent/user-agent-middleware.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/crt-availability.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/is-crt-available.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/defaultUserAgent.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.js", "../node_modules/bowser/es5.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/isIpAddress.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/aws.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveEndpoint.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/types/EndpointError.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/awsRegionConfig.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/stsRegionDefaultResolver.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/region-config-resolver/extensions.js", "../node_modules/@aws-sdk/core/dist-es/submodules/client/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js", "../node_modules/@smithy/signature-v4/dist-cjs/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js", "../node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js", "../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js", "../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js", "../node_modules/@smithy/node-http-handler/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/package.json", "../node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js", "../node_modules/@smithy/core/dist-es/submodules/cbor/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js", "../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js", "../node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js", "../node_modules/@aws-sdk/token-providers/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js", "../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js", "../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js", "../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js", "../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js", "../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js", "../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js", "../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js", "../node_modules/@aws-sdk/client-ecr-public/dist-cjs/index.js", "../src/main.ts", "../node_modules/@actions/core/src/command.ts", "../node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/core/src/file-command.ts", "../node_modules/@actions/core/src/core.ts", "../node_modules/@actions/core/node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/core/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/core/node_modules/@actions/http-client/src/auth.ts", "../node_modules/@actions/core/src/oidc-utils.ts", "../node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/exec/src/exec.ts", "../node_modules/@actions/exec/src/toolrunner.ts", "../node_modules/@actions/io/src/io.ts", "../node_modules/@actions/io/src/io-util.ts", "../node_modules/@docker/actions-toolkit/src/cache.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/command.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/tool-cache/node_modules/@actions/core/src/core.ts", "../node_modules/@actions/tool-cache/src/tool-cache.ts", "../node_modules/@actions/tool-cache/src/manifest.ts", "../node_modules/@actions/cache/src/cache.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/command.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/utils.ts", "../node_modules/@actions/glob/node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/summary.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/platform.ts", "../node_modules/@actions/glob/node_modules/@actions/core/src/core.ts", "../node_modules/@actions/glob/src/internal-globber.ts", "../node_modules/@actions/glob/src/internal-glob-options-helper.ts", "../node_modules/@actions/glob/src/internal-path-helper.ts", "../node_modules/@actions/glob/src/internal-match-kind.ts", "../node_modules/@actions/glob/src/internal-pattern-helper.ts", "../node_modules/@actions/glob/src/internal-pattern.ts", "../node_modules/@actions/glob/src/internal-path.ts", "../node_modules/@actions/glob/src/internal-search-state.ts", "../node_modules/@actions/glob/src/glob.ts", "../node_modules/@actions/cache/src/internal/cacheUtils.ts", "../node_modules/@actions/cache/src/internal/constants.ts", "../node_modules/@actions/http-client/src/index.ts", "../node_modules/@actions/http-client/src/proxy.ts", "../node_modules/@actions/http-client/src/auth.ts", "../node_modules/@actions/cache/src/internal/cacheHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/abort-controller/AbortError.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/log.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/debug.ts", "../node_modules/@typespec/ts-http-runtime/src/logger/logger.ts", "../node_modules/@typespec/ts-http-runtime/src/httpHeaders.ts", "../node_modules/@typespec/ts-http-runtime/src/util/uuidUtils.ts", "../node_modules/@typespec/ts-http-runtime/src/pipelineRequest.ts", "../node_modules/@typespec/ts-http-runtime/src/pipeline.ts", "../node_modules/@typespec/ts-http-runtime/src/util/object.ts", "../node_modules/@typespec/ts-http-runtime/src/util/error.ts", "../node_modules/@typespec/ts-http-runtime/src/util/inspect.ts", "../node_modules/@typespec/ts-http-runtime/src/util/sanitizer.ts", "../node_modules/@typespec/ts-http-runtime/src/restError.ts", "../node_modules/@typespec/ts-http-runtime/src/util/bytesEncoding.ts", "../node_modules/@typespec/ts-http-runtime/src/nodeHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/log.ts", "../node_modules/@typespec/ts-http-runtime/src/defaultHttpClient.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/logPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/redirectPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/userAgentPlatform.ts", "../node_modules/@typespec/ts-http-runtime/src/util/userAgent.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/userAgentPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/decompressResponsePolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/random.ts", "../node_modules/@typespec/ts-http-runtime/src/util/delay.ts", "../node_modules/@typespec/ts-http-runtime/src/util/helpers.ts", "../node_modules/@typespec/ts-http-runtime/src/retryStrategies/throttlingRetryStrategy.ts", "../node_modules/@typespec/ts-http-runtime/src/retryStrategies/exponentialRetryStrategy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/retryPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/defaultRetryPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/checkEnvironment.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/formDataPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/proxyPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/agentPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/tlsPolicy.ts", "../node_modules/@typespec/ts-http-runtime/src/util/typeGuards.ts", "../node_modules/@typespec/ts-http-runtime/src/util/concat.ts", "../node_modules/@typespec/ts-http-runtime/src/policies/multipartPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/pipeline.ts", "../node_modules/@azure/logger/src/index.ts", "../node_modules/@azure/core-rest-pipeline/src/log.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/logPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/redirectPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/userAgentPlatform.ts", "../node_modules/@azure/core-rest-pipeline/src/constants.ts", "../node_modules/@azure/core-rest-pipeline/src/util/userAgent.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/userAgentPolicy.ts", "../node_modules/@azure/abort-controller/src/AbortError.ts", "../node_modules/@azure/core-util/src/createAbortablePromise.ts", "../node_modules/@azure/core-util/src/delay.ts", "../node_modules/@azure/core-util/src/error.ts", "../node_modules/@azure/core-util/src/index.ts", "../node_modules/@azure/core-rest-pipeline/src/util/file.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/multipartPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/decompressResponsePolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/defaultRetryPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/formDataPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/proxyPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/setClientRequestIdPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/agentPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/tlsPolicy.ts", "../node_modules/@azure/core-tracing/src/tracingContext.ts", "../node_modules/@azure/core-tracing/src/state.ts", "../node_modules/@azure/core-tracing/src/instrumenter.ts", "../node_modules/@azure/core-tracing/src/tracingClient.ts", "../node_modules/@azure/core-rest-pipeline/src/restError.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/tracingPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/wrapAbortSignal.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/wrapAbortSignalLikePolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/createPipelineFromOptions.ts", "../node_modules/@azure/core-rest-pipeline/src/defaultHttpClient.ts", "../node_modules/@azure/core-rest-pipeline/src/httpHeaders.ts", "../node_modules/@azure/core-rest-pipeline/src/pipelineRequest.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/retryPolicy.ts", "../node_modules/@azure/core-rest-pipeline/src/util/tokenCycler.ts", "../node_modules/@azure/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts", "../node_modules/@azure/core-auth/src/tokenCredential.ts", "../node_modules/@azure/core-http-compat/src/policies/disableKeepAlivePolicy.ts", "../node_modules/@azure/core-client/src/base64.ts", "../node_modules/@azure/core-client/src/utils.ts", "../node_modules/@azure/core-client/src/serializer.ts", "../node_modules/@azure/core-client/src/state.ts", "../node_modules/@azure/core-client/src/operationHelpers.ts", "../node_modules/@azure/core-client/src/deserializationPolicy.ts", "../node_modules/@azure/core-client/src/interfaceHelpers.ts", "../node_modules/@azure/core-client/src/serializationPolicy.ts", "../node_modules/@azure/core-client/src/pipeline.ts", "../node_modules/@azure/core-client/src/httpClientCache.ts", "../node_modules/@azure/core-client/src/urlHelpers.ts", "../node_modules/@azure/core-client/src/log.ts", "../node_modules/@azure/core-client/src/serviceClient.ts", "../node_modules/@azure/core-client/src/authorizeRequestOnTenantChallenge.ts", "../node_modules/@azure/core-http-compat/src/util.ts", "../node_modules/@azure/core-http-compat/src/response.ts", "../node_modules/@azure/core-http-compat/src/extendedClient.ts", "../node_modules/@azure/core-http-compat/src/policies/requestPolicyFactoryPolicy.ts", "../node_modules/@azure/core-http-compat/src/httpClientAdapter.ts", "../node_modules/fast-xml-parser/src/util.js", "../node_modules/fast-xml-parser/src/validator.js", "../node_modules/@nodable/entities/src/entities.js", "../node_modules/@nodable/entities/src/EntityDecoder.js", "../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js", "../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js", "../node_modules/xml-naming/src/index.js", "../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js", "../node_modules/strnum/strnum.js", "../node_modules/fast-xml-parser/src/ignoreAttributes.js", "../node_modules/path-expression-matcher/src/Expression.js", "../node_modules/path-expression-matcher/src/ExpressionSet.js", "../node_modules/path-expression-matcher/src/Matcher.js", "../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js", "../node_modules/fast-xml-parser/src/xmlparser/node2json.js", "../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js", "../node_modules/fast-xml-builder/src/util.js", "../node_modules/fast-xml-builder/src/orderedJs2Xml.js", "../node_modules/fast-xml-builder/src/ignoreAttributes.js", "../node_modules/fast-xml-builder/src/fxb.js", "../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js", "../node_modules/fast-xml-parser/src/fxp.js", "../node_modules/@azure/core-xml/src/xml.ts", "../node_modules/@azure/storage-blob/src/log.ts", "../node_modules/@azure/storage-common/src/BufferScheduler.ts", "../node_modules/@azure/storage-common/src/BuffersStream.ts", "../node_modules/@azure/storage-common/src/PooledBuffer.ts", "../node_modules/@azure/storage-common/src/cache.ts", "../node_modules/@azure/storage-common/src/policies/RequestPolicy.ts", "../node_modules/@azure/storage-common/src/utils/constants.ts", "../node_modules/@azure/storage-common/src/utils/utils.common.ts", "../node_modules/@azure/storage-common/src/policies/StorageBrowserPolicy.ts", "../node_modules/@azure/storage-common/src/StorageBrowserPolicyFactory.ts", "../node_modules/@azure/storage-common/src/policies/CredentialPolicy.ts", "../node_modules/@azure/storage-common/src/policies/AnonymousCredentialPolicy.ts", "../node_modules/@azure/storage-common/src/credentials/Credential.ts", "../node_modules/@azure/storage-common/src/credentials/AnonymousCredential.ts", "../node_modules/@azure/storage-common/src/credentials/StorageSharedKeyCredential.ts", "../node_modules/@azure/storage-common/src/utils/SharedKeyComparator.ts", "../node_modules/@azure/storage-common/src/policies/StorageSharedKeyCredentialPolicy.ts", "../node_modules/@azure/storage-common/src/log.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicyType.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicy.ts", "../node_modules/@azure/storage-common/src/StorageRetryPolicyFactory.ts", "../node_modules/@azure/storage-common/src/policies/StorageBrowserPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageCorrectContentLengthPolicy.ts", "../node_modules/@azure/storage-common/src/policies/StorageRetryPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageSharedKeyCredentialPolicyV2.ts", "../node_modules/@azure/storage-common/src/policies/StorageRequestFailureDetailsParserPolicy.ts", "../node_modules/@azure/storage-common/src/credentials/UserDelegationKeyCredential.ts", "../node_modules/@azure/storage-blob/src/utils/constants.ts", "../node_modules/@azure/storage-blob/src/Pipeline.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/index.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/mappers.ts", "../node_modules/@azure/storage-blob/src/generated/src/models/parameters.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/service.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/container.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/blob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/pageBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/appendBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/operations/blockBlob.ts", "../node_modules/@azure/storage-blob/src/generated/src/storageClient.ts", "../node_modules/@azure/storage-blob/src/StorageContextClient.ts", "../node_modules/@azure/storage-blob/src/utils/utils.common.ts", "../node_modules/@azure/storage-blob/src/StorageClient.ts", "../node_modules/@azure/storage-blob/src/utils/tracing.ts", "../node_modules/@azure/storage-blob/src/sas/BlobSASPermissions.ts", "../node_modules/@azure/storage-blob/src/sas/ContainerSASPermissions.ts", "../node_modules/@azure/storage-blob/src/sas/SasIPRange.ts", "../node_modules/@azure/storage-blob/src/sas/SASQueryParameters.ts", "../node_modules/@azure/storage-blob/src/sas/BlobSASSignatureValues.ts", "../node_modules/@azure/storage-blob/src/BlobLeaseClient.ts", "../node_modules/@azure/storage-blob/src/utils/RetriableReadableStream.ts", "../node_modules/@azure/storage-blob/src/BlobDownloadResponse.ts", "../node_modules/@azure/storage-blob/src/utils/BlobQuickQueryStream.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroConstants.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroParser.ts", "../node_modules/@azure/storage-blob/src/internal-avro/utils/utils.common.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReader.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReadable.ts", "../node_modules/@azure/storage-blob/src/internal-avro/AvroReadableFromStream.ts", "../node_modules/@azure/storage-blob/src/BlobQueryResponse.ts", "../node_modules/@azure/storage-blob/src/models.ts", "../node_modules/@azure/storage-blob/src/PageBlobRangeResponse.ts", "../node_modules/@azure/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.ts", "../node_modules/@azure/storage-blob/src/Range.ts", "../node_modules/@azure/storage-blob/src/utils/Batch.ts", "../node_modules/@azure/storage-blob/src/utils/utils.ts", "../node_modules/@azure/storage-blob/src/Clients.ts", "../node_modules/@azure/storage-blob/src/utils/Mutex.ts", "../node_modules/@azure/storage-blob/src/generatedModels.ts", "../node_modules/@actions/cache/src/internal/shared/errors.ts", "../node_modules/@actions/cache/src/internal/uploadUtils.ts", "../node_modules/@actions/cache/src/internal/downloadUtils.ts", "../node_modules/@actions/cache/src/internal/requestUtils.ts", "../node_modules/@actions/cache/src/options.ts", "../node_modules/@actions/cache/src/internal/config.ts", "../node_modules/@actions/cache/src/internal/shared/user-agent.ts", "../node_modules/@actions/cache/src/generated/results/api/v1/cache.ts", "../node_modules/@actions/cache/src/generated/results/entities/v1/cachemetadata.ts", "../node_modules/@actions/cache/src/generated/results/entities/v1/cachescope.ts", "../node_modules/@actions/cache/src/generated/results/api/v1/cache.twirp-client.ts", "../node_modules/@actions/cache/src/internal/shared/util.ts", "../node_modules/@actions/cache/src/internal/shared/cacheTwirpClient.ts", "../node_modules/@actions/cache/src/internal/tar.ts", "../node_modules/@docker/actions-toolkit/src/index.ts", "../src/context.ts", "../node_modules/js-yaml/src/tag.ts", "../node_modules/js-yaml/src/tag/scalar/str.ts", "../node_modules/js-yaml/src/tag/scalar/null_core.ts", "../node_modules/js-yaml/src/tag/scalar/null_json.ts", "../node_modules/js-yaml/src/tag/scalar/null_yaml11.ts", "../node_modules/js-yaml/src/tag/scalar/bool_core.ts", "../node_modules/js-yaml/src/tag/scalar/bool_json.ts", "../node_modules/js-yaml/src/tag/scalar/bool_yaml11.ts", "../node_modules/js-yaml/src/tag/scalar/int_core.ts", "../node_modules/js-yaml/src/tag/scalar/int_json.ts", "../node_modules/js-yaml/src/tag/scalar/int_yaml11.ts", "../node_modules/js-yaml/src/tag/scalar/float_core.ts", "../node_modules/js-yaml/src/tag/scalar/float_json.ts", "../node_modules/js-yaml/src/tag/scalar/float_yaml11.ts", "../node_modules/js-yaml/src/tag/scalar/merge.ts", "../node_modules/js-yaml/src/tag/scalar/binary.ts", "../node_modules/js-yaml/src/tag/scalar/timestamp.ts", "../node_modules/js-yaml/src/tag/sequence/seq.ts", "../node_modules/js-yaml/src/common/object.ts", "../node_modules/js-yaml/src/tag/sequence/omap.ts", "../node_modules/js-yaml/src/tag/sequence/pairs.ts", "../node_modules/js-yaml/src/tag/mapping/map.ts", "../node_modules/js-yaml/src/tag/mapping/set.ts", "../node_modules/js-yaml/src/schema.ts", "../node_modules/js-yaml/src/tag/mapping/real_map.ts", "../node_modules/js-yaml/src/tag/mapping/legacy_map.ts", "../node_modules/js-yaml/src/common/snippet.ts", "../node_modules/js-yaml/src/common/exception.ts", "../node_modules/js-yaml/src/parser/events.ts", "../node_modules/js-yaml/src/parser/parser_scalar.ts", "../node_modules/js-yaml/src/common/tagname.ts", "../node_modules/js-yaml/src/parser/constructor.ts", "../node_modules/js-yaml/src/parser/parser.ts", "../node_modules/js-yaml/src/load.ts", "../node_modules/js-yaml/src/ast/from_js.ts", "../node_modules/js-yaml/src/ast/visit.ts", "../node_modules/js-yaml/src/ast/styler_defaults.ts", "../node_modules/js-yaml/src/ast/scalar_styler.ts", "../node_modules/js-yaml/src/ast/presenter.ts", "../node_modules/js-yaml/src/dump.ts", "../node_modules/js-yaml/src/ast/from_events.ts", "../node_modules/js-yaml/src/index.ts", "../node_modules/@docker/actions-toolkit/src/buildx/buildx.ts", "../node_modules/@docker/actions-toolkit/src/buildkit/git.ts", "../node_modules/@docker/actions-toolkit/src/docker/docker.ts", "../node_modules/@docker/actions-toolkit/src/context.ts", "../node_modules/@docker/actions-toolkit/src/exec.ts", "../node_modules/@docker/actions-toolkit/src/util.ts", "../node_modules/csv-parse/lib/api/CsvError.js", "../node_modules/csv-parse/lib/utils/is_object.js", "../node_modules/csv-parse/lib/api/normalize_columns_array.js", "../node_modules/csv-parse/lib/utils/ResizeableBuffer.js", "../node_modules/csv-parse/lib/api/init_state.js", "../node_modules/csv-parse/lib/utils/underscore.js", "../node_modules/csv-parse/lib/api/normalize_options.js", "../node_modules/csv-parse/lib/utils/delimiter_discover.js", "../node_modules/csv-parse/lib/api/index.js", "../node_modules/csv-parse/lib/sync.js", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/src/context.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/src/internal/utils.ts", "../node_modules/universal-user-agent/index.js", "../node_modules/before-after-hook/lib/register.js", "../node_modules/before-after-hook/lib/add.js", "../node_modules/before-after-hook/lib/remove.js", "../node_modules/before-after-hook/index.js", "../node_modules/@octokit/endpoint/dist-bundle/index.js", "../node_modules/@octokit/request/dist-bundle/index.js", "../node_modules/json-with-bigint/json-with-bigint.js", "../node_modules/@octokit/request-error/dist-src/index.js", "../node_modules/@octokit/graphql/dist-bundle/index.js", "../node_modules/@octokit/auth-token/dist-bundle/index.js", "../node_modules/@octokit/core/dist-src/version.js", "../node_modules/@octokit/core/dist-src/index.js", "../node_modules/@octokit/src/version.ts", "../node_modules/@octokit/src/generated/endpoints.ts", "../node_modules/@octokit/src/endpoints-to-methods.ts", "../node_modules/@octokit/src/index.ts", "../node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/src/utils.ts", "../node_modules/@docker/actions-toolkit/node_modules/@actions/github/src/github.ts", "../node_modules/jwt-decode/build/esm/index.js", "../node_modules/@docker/actions-toolkit/src/github/github.ts", "../src/aws.ts", "../node_modules/http-proxy-agent/src/index.ts", "../node_modules/http-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/proxy-agent-negotiate/src/index.ts", "../node_modules/https-proxy-agent/src/index.ts", "../node_modules/https-proxy-agent/node_modules/agent-base/src/index.ts", "../node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../node_modules/uuid/dist-node/regex.js", "../node_modules/uuid/dist-node/validate.js", "../src/dockerhub.ts", "../src/docker.ts", "../src/state-helper.ts"], - "sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('got illegal response body from proxy');\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n debug('tunneling connection has established');\n self.sockets[self.sockets.indexOf(placeholder)] = socket;\n return cb(socket);\n }\n\n function onError(cause) {\n connectReq.removeAllListeners();\n\n debug('tunneling socket could not be established, cause=%s\\n',\n cause.message, cause.stack);\n var error = new Error('tunneling socket could not be established, ' +\n 'cause=' + cause.message);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n }\n};\n\nTunnelingAgent.prototype.removeSocket = function removeSocket(socket) {\n var pos = this.sockets.indexOf(socket)\n if (pos === -1) {\n return;\n }\n this.sockets.splice(pos, 1);\n\n var pending = this.requests.shift();\n if (pending) {\n // If we have pending requests and a socket gets closed a new one\n // needs to be created to take over in the pool for the one that closed.\n this.createSocket(pending, function(socket) {\n pending.request.onSocket(socket);\n });\n }\n};\n\nfunction createSecureSocket(options, cb) {\n var self = this;\n TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {\n var hostHeader = options.request.getHeader('host');\n var tlsOptions = mergeOptions({}, self.options, {\n socket: socket,\n servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host\n });\n\n // 0 is dummy port for v0.6\n var secureSocket = tls.connect(0, tlsOptions);\n self.sockets[self.sockets.indexOf(socket)] = secureSocket;\n cb(secureSocket);\n });\n}\n\n\nfunction toOptions(host, port, localAddress) {\n if (typeof host === 'string') { // since v0.10\n return {\n host: host,\n port: port,\n localAddress: localAddress\n };\n }\n return host; // for v0.11 or later\n}\n\nfunction mergeOptions(target) {\n for (var i = 1, len = arguments.length; i < len; ++i) {\n var overrides = arguments[i];\n if (typeof overrides === 'object') {\n var keys = Object.keys(overrides);\n for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {\n var k = keys[j];\n if (overrides[k] !== undefined) {\n target[k] = overrides[k];\n }\n }\n }\n }\n return target;\n}\n\n\nvar debug;\nif (process.env.NODE_DEBUG && /\\btunnel\\b/.test(process.env.NODE_DEBUG)) {\n debug = function() {\n var args = Array.prototype.slice.call(arguments);\n if (typeof args[0] === 'string') {\n args[0] = 'TUNNEL: ' + args[0];\n } else {\n args.unshift('TUNNEL:');\n }\n console.error.apply(console, args);\n }\n} else {\n debug = function() {};\n}\nexports.debug = debug; // for test\n", "module.exports = require('./lib/tunnel');\n", "module.exports = {\n kClose: Symbol('close'),\n kDestroy: Symbol('destroy'),\n kDispatch: Symbol('dispatch'),\n kUrl: Symbol('url'),\n kWriting: Symbol('writing'),\n kResuming: Symbol('resuming'),\n kQueue: Symbol('queue'),\n kConnect: Symbol('connect'),\n kConnecting: Symbol('connecting'),\n kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'),\n kKeepAliveMaxTimeout: Symbol('max keep alive timeout'),\n kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'),\n kKeepAliveTimeoutValue: Symbol('keep alive timeout'),\n kKeepAlive: Symbol('keep alive'),\n kHeadersTimeout: Symbol('headers timeout'),\n kBodyTimeout: Symbol('body timeout'),\n kServerName: Symbol('server name'),\n kLocalAddress: Symbol('local address'),\n kHost: Symbol('host'),\n kNoRef: Symbol('no ref'),\n kBodyUsed: Symbol('used'),\n kBody: Symbol('abstracted request body'),\n kRunning: Symbol('running'),\n kBlocking: Symbol('blocking'),\n kPending: Symbol('pending'),\n kSize: Symbol('size'),\n kBusy: Symbol('busy'),\n kQueued: Symbol('queued'),\n kFree: Symbol('free'),\n kConnected: Symbol('connected'),\n kClosed: Symbol('closed'),\n kNeedDrain: Symbol('need drain'),\n kReset: Symbol('reset'),\n kDestroyed: Symbol.for('nodejs.stream.destroyed'),\n kResume: Symbol('resume'),\n kOnError: Symbol('on error'),\n kMaxHeadersSize: Symbol('max headers size'),\n kRunningIdx: Symbol('running index'),\n kPendingIdx: Symbol('pending index'),\n kError: Symbol('error'),\n kClients: Symbol('clients'),\n kClient: Symbol('client'),\n kParser: Symbol('parser'),\n kOnDestroyed: Symbol('destroy callbacks'),\n kPipelining: Symbol('pipelining'),\n kSocket: Symbol('socket'),\n kHostHeader: Symbol('host header'),\n kConnector: Symbol('connector'),\n kStrictContentLength: Symbol('strict content length'),\n kMaxRedirections: Symbol('maxRedirections'),\n kMaxRequests: Symbol('maxRequestsPerClient'),\n kProxy: Symbol('proxy agent options'),\n kCounter: Symbol('socket request counter'),\n kInterceptors: Symbol('dispatch interceptors'),\n kMaxResponseSize: Symbol('max response size'),\n kHTTP2Session: Symbol('http2Session'),\n kHTTP2SessionState: Symbol('http2Session state'),\n kRetryHandlerDefaultRetry: Symbol('retry agent default retry'),\n kConstruct: Symbol('constructable'),\n kListeners: Symbol('listeners'),\n kHTTPContext: Symbol('http context'),\n kMaxConcurrentStreams: Symbol('max concurrent streams'),\n kNoProxyAgent: Symbol('no proxy agent'),\n kHttpProxyAgent: Symbol('http proxy agent'),\n kHttpsProxyAgent: Symbol('https proxy agent')\n}\n", "'use strict'\n\nconst kUndiciError = Symbol.for('undici.error.UND_ERR')\nclass UndiciError extends Error {\n constructor (message) {\n super(message)\n this.name = 'UndiciError'\n this.code = 'UND_ERR'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kUndiciError] === true\n }\n\n [kUndiciError] = true\n}\n\nconst kConnectTimeoutError = Symbol.for('undici.error.UND_ERR_CONNECT_TIMEOUT')\nclass ConnectTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ConnectTimeoutError'\n this.message = message || 'Connect Timeout Error'\n this.code = 'UND_ERR_CONNECT_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kConnectTimeoutError] === true\n }\n\n [kConnectTimeoutError] = true\n}\n\nconst kHeadersTimeoutError = Symbol.for('undici.error.UND_ERR_HEADERS_TIMEOUT')\nclass HeadersTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'HeadersTimeoutError'\n this.message = message || 'Headers Timeout Error'\n this.code = 'UND_ERR_HEADERS_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHeadersTimeoutError] === true\n }\n\n [kHeadersTimeoutError] = true\n}\n\nconst kHeadersOverflowError = Symbol.for('undici.error.UND_ERR_HEADERS_OVERFLOW')\nclass HeadersOverflowError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'HeadersOverflowError'\n this.message = message || 'Headers Overflow Error'\n this.code = 'UND_ERR_HEADERS_OVERFLOW'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHeadersOverflowError] === true\n }\n\n [kHeadersOverflowError] = true\n}\n\nconst kBodyTimeoutError = Symbol.for('undici.error.UND_ERR_BODY_TIMEOUT')\nclass BodyTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'BodyTimeoutError'\n this.message = message || 'Body Timeout Error'\n this.code = 'UND_ERR_BODY_TIMEOUT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kBodyTimeoutError] === true\n }\n\n [kBodyTimeoutError] = true\n}\n\nconst kResponseStatusCodeError = Symbol.for('undici.error.UND_ERR_RESPONSE_STATUS_CODE')\nclass ResponseStatusCodeError extends UndiciError {\n constructor (message, statusCode, headers, body) {\n super(message)\n this.name = 'ResponseStatusCodeError'\n this.message = message || 'Response Status Code Error'\n this.code = 'UND_ERR_RESPONSE_STATUS_CODE'\n this.body = body\n this.status = statusCode\n this.statusCode = statusCode\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseStatusCodeError] === true\n }\n\n [kResponseStatusCodeError] = true\n}\n\nconst kInvalidArgumentError = Symbol.for('undici.error.UND_ERR_INVALID_ARG')\nclass InvalidArgumentError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InvalidArgumentError'\n this.message = message || 'Invalid Argument Error'\n this.code = 'UND_ERR_INVALID_ARG'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInvalidArgumentError] === true\n }\n\n [kInvalidArgumentError] = true\n}\n\nconst kInvalidReturnValueError = Symbol.for('undici.error.UND_ERR_INVALID_RETURN_VALUE')\nclass InvalidReturnValueError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InvalidReturnValueError'\n this.message = message || 'Invalid Return Value Error'\n this.code = 'UND_ERR_INVALID_RETURN_VALUE'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInvalidReturnValueError] === true\n }\n\n [kInvalidReturnValueError] = true\n}\n\nconst kAbortError = Symbol.for('undici.error.UND_ERR_ABORT')\nclass AbortError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'AbortError'\n this.message = message || 'The operation was aborted'\n this.code = 'UND_ERR_ABORT'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kAbortError] === true\n }\n\n [kAbortError] = true\n}\n\nconst kRequestAbortedError = Symbol.for('undici.error.UND_ERR_ABORTED')\nclass RequestAbortedError extends AbortError {\n constructor (message) {\n super(message)\n this.name = 'AbortError'\n this.message = message || 'Request aborted'\n this.code = 'UND_ERR_ABORTED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestAbortedError] === true\n }\n\n [kRequestAbortedError] = true\n}\n\nconst kInformationalError = Symbol.for('undici.error.UND_ERR_INFO')\nclass InformationalError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'InformationalError'\n this.message = message || 'Request information'\n this.code = 'UND_ERR_INFO'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kInformationalError] === true\n }\n\n [kInformationalError] = true\n}\n\nconst kRequestContentLengthMismatchError = Symbol.for('undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH')\nclass RequestContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'RequestContentLengthMismatchError'\n this.message = message || 'Request body length does not match content-length header'\n this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestContentLengthMismatchError] === true\n }\n\n [kRequestContentLengthMismatchError] = true\n}\n\nconst kResponseContentLengthMismatchError = Symbol.for('undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH')\nclass ResponseContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ResponseContentLengthMismatchError'\n this.message = message || 'Response body length does not match content-length header'\n this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseContentLengthMismatchError] === true\n }\n\n [kResponseContentLengthMismatchError] = true\n}\n\nconst kClientDestroyedError = Symbol.for('undici.error.UND_ERR_DESTROYED')\nclass ClientDestroyedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ClientDestroyedError'\n this.message = message || 'The client is destroyed'\n this.code = 'UND_ERR_DESTROYED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kClientDestroyedError] === true\n }\n\n [kClientDestroyedError] = true\n}\n\nconst kClientClosedError = Symbol.for('undici.error.UND_ERR_CLOSED')\nclass ClientClosedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ClientClosedError'\n this.message = message || 'The client is closed'\n this.code = 'UND_ERR_CLOSED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kClientClosedError] === true\n }\n\n [kClientClosedError] = true\n}\n\nconst kSocketError = Symbol.for('undici.error.UND_ERR_SOCKET')\nclass SocketError extends UndiciError {\n constructor (message, socket) {\n super(message)\n this.name = 'SocketError'\n this.message = message || 'Socket error'\n this.code = 'UND_ERR_SOCKET'\n this.socket = socket\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kSocketError] === true\n }\n\n [kSocketError] = true\n}\n\nconst kNotSupportedError = Symbol.for('undici.error.UND_ERR_NOT_SUPPORTED')\nclass NotSupportedError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'NotSupportedError'\n this.message = message || 'Not supported error'\n this.code = 'UND_ERR_NOT_SUPPORTED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kNotSupportedError] === true\n }\n\n [kNotSupportedError] = true\n}\n\nconst kBalancedPoolMissingUpstreamError = Symbol.for('undici.error.UND_ERR_BPL_MISSING_UPSTREAM')\nclass BalancedPoolMissingUpstreamError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'MissingUpstreamError'\n this.message = message || 'No upstream has been added to the BalancedPool'\n this.code = 'UND_ERR_BPL_MISSING_UPSTREAM'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kBalancedPoolMissingUpstreamError] === true\n }\n\n [kBalancedPoolMissingUpstreamError] = true\n}\n\nconst kHTTPParserError = Symbol.for('undici.error.UND_ERR_HTTP_PARSER')\nclass HTTPParserError extends Error {\n constructor (message, code, data) {\n super(message)\n this.name = 'HTTPParserError'\n this.code = code ? `HPE_${code}` : undefined\n this.data = data ? data.toString() : undefined\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kHTTPParserError] === true\n }\n\n [kHTTPParserError] = true\n}\n\nconst kResponseExceededMaxSizeError = Symbol.for('undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE')\nclass ResponseExceededMaxSizeError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'ResponseExceededMaxSizeError'\n this.message = message || 'Response content exceeded max size'\n this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseExceededMaxSizeError] === true\n }\n\n [kResponseExceededMaxSizeError] = true\n}\n\nconst kRequestRetryError = Symbol.for('undici.error.UND_ERR_REQ_RETRY')\nclass RequestRetryError extends UndiciError {\n constructor (message, code, { headers, data }) {\n super(message)\n this.name = 'RequestRetryError'\n this.message = message || 'Request retry error'\n this.code = 'UND_ERR_REQ_RETRY'\n this.statusCode = code\n this.data = data\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kRequestRetryError] === true\n }\n\n [kRequestRetryError] = true\n}\n\nconst kResponseError = Symbol.for('undici.error.UND_ERR_RESPONSE')\nclass ResponseError extends UndiciError {\n constructor (message, code, { headers, data }) {\n super(message)\n this.name = 'ResponseError'\n this.message = message || 'Response error'\n this.code = 'UND_ERR_RESPONSE'\n this.statusCode = code\n this.data = data\n this.headers = headers\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kResponseError] === true\n }\n\n [kResponseError] = true\n}\n\nconst kSecureProxyConnectionError = Symbol.for('undici.error.UND_ERR_PRX_TLS')\nclass SecureProxyConnectionError extends UndiciError {\n constructor (cause, message, options) {\n super(message, { cause, ...(options ?? {}) })\n this.name = 'SecureProxyConnectionError'\n this.message = message || 'Secure Proxy Connection failed'\n this.code = 'UND_ERR_PRX_TLS'\n this.cause = cause\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kSecureProxyConnectionError] === true\n }\n\n [kSecureProxyConnectionError] = true\n}\n\nconst kMessageSizeExceededError = Symbol.for('undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED')\nclass MessageSizeExceededError extends UndiciError {\n constructor (message) {\n super(message)\n this.name = 'MessageSizeExceededError'\n this.message = message || 'Max decompressed message size exceeded'\n this.code = 'UND_ERR_WS_MESSAGE_SIZE_EXCEEDED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kMessageSizeExceededError] === true\n }\n\n get [kMessageSizeExceededError] () {\n return true\n }\n}\n\nmodule.exports = {\n AbortError,\n HTTPParserError,\n UndiciError,\n HeadersTimeoutError,\n HeadersOverflowError,\n BodyTimeoutError,\n RequestContentLengthMismatchError,\n ConnectTimeoutError,\n ResponseStatusCodeError,\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError,\n ClientDestroyedError,\n ClientClosedError,\n InformationalError,\n SocketError,\n NotSupportedError,\n ResponseContentLengthMismatchError,\n BalancedPoolMissingUpstreamError,\n ResponseExceededMaxSizeError,\n RequestRetryError,\n ResponseError,\n SecureProxyConnectionError,\n MessageSizeExceededError\n}\n", "'use strict'\n\n/** @type {Record} */\nconst headerNameLowerCasedRecord = {}\n\n// https://developer.mozilla.org/docs/Web/HTTP/Headers\nconst wellknownHeaderNames = [\n 'Accept',\n 'Accept-Encoding',\n 'Accept-Language',\n 'Accept-Ranges',\n 'Access-Control-Allow-Credentials',\n 'Access-Control-Allow-Headers',\n 'Access-Control-Allow-Methods',\n 'Access-Control-Allow-Origin',\n 'Access-Control-Expose-Headers',\n 'Access-Control-Max-Age',\n 'Access-Control-Request-Headers',\n 'Access-Control-Request-Method',\n 'Age',\n 'Allow',\n 'Alt-Svc',\n 'Alt-Used',\n 'Authorization',\n 'Cache-Control',\n 'Clear-Site-Data',\n 'Connection',\n 'Content-Disposition',\n 'Content-Encoding',\n 'Content-Language',\n 'Content-Length',\n 'Content-Location',\n 'Content-Range',\n 'Content-Security-Policy',\n 'Content-Security-Policy-Report-Only',\n 'Content-Type',\n 'Cookie',\n 'Cross-Origin-Embedder-Policy',\n 'Cross-Origin-Opener-Policy',\n 'Cross-Origin-Resource-Policy',\n 'Date',\n 'Device-Memory',\n 'Downlink',\n 'ECT',\n 'ETag',\n 'Expect',\n 'Expect-CT',\n 'Expires',\n 'Forwarded',\n 'From',\n 'Host',\n 'If-Match',\n 'If-Modified-Since',\n 'If-None-Match',\n 'If-Range',\n 'If-Unmodified-Since',\n 'Keep-Alive',\n 'Last-Modified',\n 'Link',\n 'Location',\n 'Max-Forwards',\n 'Origin',\n 'Permissions-Policy',\n 'Pragma',\n 'Proxy-Authenticate',\n 'Proxy-Authorization',\n 'RTT',\n 'Range',\n 'Referer',\n 'Referrer-Policy',\n 'Refresh',\n 'Retry-After',\n 'Sec-WebSocket-Accept',\n 'Sec-WebSocket-Extensions',\n 'Sec-WebSocket-Key',\n 'Sec-WebSocket-Protocol',\n 'Sec-WebSocket-Version',\n 'Server',\n 'Server-Timing',\n 'Service-Worker-Allowed',\n 'Service-Worker-Navigation-Preload',\n 'Set-Cookie',\n 'SourceMap',\n 'Strict-Transport-Security',\n 'Supports-Loading-Mode',\n 'TE',\n 'Timing-Allow-Origin',\n 'Trailer',\n 'Transfer-Encoding',\n 'Upgrade',\n 'Upgrade-Insecure-Requests',\n 'User-Agent',\n 'Vary',\n 'Via',\n 'WWW-Authenticate',\n 'X-Content-Type-Options',\n 'X-DNS-Prefetch-Control',\n 'X-Frame-Options',\n 'X-Permitted-Cross-Domain-Policies',\n 'X-Powered-By',\n 'X-Requested-With',\n 'X-XSS-Protection'\n]\n\nfor (let i = 0; i < wellknownHeaderNames.length; ++i) {\n const key = wellknownHeaderNames[i]\n const lowerCasedKey = key.toLowerCase()\n headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] =\n lowerCasedKey\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(headerNameLowerCasedRecord, null)\n\nmodule.exports = {\n wellknownHeaderNames,\n headerNameLowerCasedRecord\n}\n", "'use strict'\n\nconst {\n wellknownHeaderNames,\n headerNameLowerCasedRecord\n} = require('./constants')\n\nclass TstNode {\n /** @type {any} */\n value = null\n /** @type {null | TstNode} */\n left = null\n /** @type {null | TstNode} */\n middle = null\n /** @type {null | TstNode} */\n right = null\n /** @type {number} */\n code\n /**\n * @param {string} key\n * @param {any} value\n * @param {number} index\n */\n constructor (key, value, index) {\n if (index === undefined || index >= key.length) {\n throw new TypeError('Unreachable')\n }\n const code = this.code = key.charCodeAt(index)\n // check code is ascii string\n if (code > 0x7F) {\n throw new TypeError('key must be ascii string')\n }\n if (key.length !== ++index) {\n this.middle = new TstNode(key, value, index)\n } else {\n this.value = value\n }\n }\n\n /**\n * @param {string} key\n * @param {any} value\n */\n add (key, value) {\n const length = key.length\n if (length === 0) {\n throw new TypeError('Unreachable')\n }\n let index = 0\n let node = this\n while (true) {\n const code = key.charCodeAt(index)\n // check code is ascii string\n if (code > 0x7F) {\n throw new TypeError('key must be ascii string')\n }\n if (node.code === code) {\n if (length === ++index) {\n node.value = value\n break\n } else if (node.middle !== null) {\n node = node.middle\n } else {\n node.middle = new TstNode(key, value, index)\n break\n }\n } else if (node.code < code) {\n if (node.left !== null) {\n node = node.left\n } else {\n node.left = new TstNode(key, value, index)\n break\n }\n } else if (node.right !== null) {\n node = node.right\n } else {\n node.right = new TstNode(key, value, index)\n break\n }\n }\n }\n\n /**\n * @param {Uint8Array} key\n * @return {TstNode | null}\n */\n search (key) {\n const keylength = key.length\n let index = 0\n let node = this\n while (node !== null && index < keylength) {\n let code = key[index]\n // A-Z\n // First check if it is bigger than 0x5a.\n // Lowercase letters have higher char codes than uppercase ones.\n // Also we assume that headers will mostly contain lowercase characters.\n if (code <= 0x5a && code >= 0x41) {\n // Lowercase for uppercase.\n code |= 32\n }\n while (node !== null) {\n if (code === node.code) {\n if (keylength === ++index) {\n // Returns Node since it is the last key.\n return node\n }\n node = node.middle\n break\n }\n node = node.code < code ? node.left : node.right\n }\n }\n return null\n }\n}\n\nclass TernarySearchTree {\n /** @type {TstNode | null} */\n node = null\n\n /**\n * @param {string} key\n * @param {any} value\n * */\n insert (key, value) {\n if (this.node === null) {\n this.node = new TstNode(key, value, 0)\n } else {\n this.node.add(key, value)\n }\n }\n\n /**\n * @param {Uint8Array} key\n * @return {any}\n */\n lookup (key) {\n return this.node?.search(key)?.value ?? null\n }\n}\n\nconst tree = new TernarySearchTree()\n\nfor (let i = 0; i < wellknownHeaderNames.length; ++i) {\n const key = headerNameLowerCasedRecord[wellknownHeaderNames[i]]\n tree.insert(key, key)\n}\n\nmodule.exports = {\n TernarySearchTree,\n tree\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { kDestroyed, kBodyUsed, kListeners, kBody } = require('./symbols')\nconst { IncomingMessage } = require('node:http')\nconst stream = require('node:stream')\nconst net = require('node:net')\nconst { Blob } = require('node:buffer')\nconst nodeUtil = require('node:util')\nconst { stringify } = require('node:querystring')\nconst { EventEmitter: EE } = require('node:events')\nconst { InvalidArgumentError } = require('./errors')\nconst { headerNameLowerCasedRecord } = require('./constants')\nconst { tree } = require('./tree')\n\nconst [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))\n\nclass BodyAsyncIterable {\n constructor (body) {\n this[kBody] = body\n this[kBodyUsed] = false\n }\n\n async * [Symbol.asyncIterator] () {\n assert(!this[kBodyUsed], 'disturbed')\n this[kBodyUsed] = true\n yield * this[kBody]\n }\n}\n\nfunction wrapRequestBody (body) {\n if (isStream(body)) {\n // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp\n // so that it can be dispatched again?\n // TODO (fix): Do we need 100-expect support to provide a way to do this properly?\n if (bodyLength(body) === 0) {\n body\n .on('data', function () {\n assert(false)\n })\n }\n\n if (typeof body.readableDidRead !== 'boolean') {\n body[kBodyUsed] = false\n EE.prototype.on.call(body, 'data', function () {\n this[kBodyUsed] = true\n })\n }\n\n return body\n } else if (body && typeof body.pipeTo === 'function') {\n // TODO (fix): We can't access ReadableStream internal state\n // to determine whether or not it has been disturbed. This is just\n // a workaround.\n return new BodyAsyncIterable(body)\n } else if (\n body &&\n typeof body !== 'string' &&\n !ArrayBuffer.isView(body) &&\n isIterable(body)\n ) {\n // TODO: Should we allow re-using iterable if !this.opts.idempotent\n // or through some other flag?\n return new BodyAsyncIterable(body)\n } else {\n return body\n }\n}\n\nfunction nop () {}\n\nfunction isStream (obj) {\n return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function'\n}\n\n// based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)\nfunction isBlobLike (object) {\n if (object === null) {\n return false\n } else if (object instanceof Blob) {\n return true\n } else if (typeof object !== 'object') {\n return false\n } else {\n const sTag = object[Symbol.toStringTag]\n\n return (sTag === 'Blob' || sTag === 'File') && (\n ('stream' in object && typeof object.stream === 'function') ||\n ('arrayBuffer' in object && typeof object.arrayBuffer === 'function')\n )\n }\n}\n\nfunction buildURL (url, queryParams) {\n if (url.includes('?') || url.includes('#')) {\n throw new Error('Query params cannot be passed when url already contains \"?\" or \"#\".')\n }\n\n const stringified = stringify(queryParams)\n\n if (stringified) {\n url += '?' + stringified\n }\n\n return url\n}\n\nfunction isValidPort (port) {\n const value = parseInt(port, 10)\n return (\n value === Number(port) &&\n value >= 0 &&\n value <= 65535\n )\n}\n\nfunction isHttpOrHttpsPrefixed (value) {\n return (\n value != null &&\n value[0] === 'h' &&\n value[1] === 't' &&\n value[2] === 't' &&\n value[3] === 'p' &&\n (\n value[4] === ':' ||\n (\n value[4] === 's' &&\n value[5] === ':'\n )\n )\n )\n}\n\nfunction parseURL (url) {\n if (typeof url === 'string') {\n url = new URL(url)\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n return url\n }\n\n if (!url || typeof url !== 'object') {\n throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.')\n }\n\n if (!(url instanceof URL)) {\n if (url.port != null && url.port !== '' && isValidPort(url.port) === false) {\n throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.')\n }\n\n if (url.path != null && typeof url.path !== 'string') {\n throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.')\n }\n\n if (url.pathname != null && typeof url.pathname !== 'string') {\n throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.')\n }\n\n if (url.hostname != null && typeof url.hostname !== 'string') {\n throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.')\n }\n\n if (url.origin != null && typeof url.origin !== 'string') {\n throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.')\n }\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n const port = url.port != null\n ? url.port\n : (url.protocol === 'https:' ? 443 : 80)\n let origin = url.origin != null\n ? url.origin\n : `${url.protocol || ''}//${url.hostname || ''}:${port}`\n let path = url.path != null\n ? url.path\n : `${url.pathname || ''}${url.search || ''}`\n\n if (origin[origin.length - 1] === '/') {\n origin = origin.slice(0, origin.length - 1)\n }\n\n if (path && path[0] !== '/') {\n path = `/${path}`\n }\n // new URL(path, origin) is unsafe when `path` contains an absolute URL\n // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL:\n // If first parameter is a relative URL, second param is required, and will be used as the base URL.\n // If first parameter is an absolute URL, a given second param will be ignored.\n return new URL(`${origin}${path}`)\n }\n\n if (!isHttpOrHttpsPrefixed(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n return url\n}\n\nfunction parseOrigin (url) {\n url = parseURL(url)\n\n if (url.pathname !== '/' || url.search || url.hash) {\n throw new InvalidArgumentError('invalid url')\n }\n\n return url\n}\n\nfunction getHostname (host) {\n if (host[0] === '[') {\n const idx = host.indexOf(']')\n\n assert(idx !== -1)\n return host.substring(1, idx)\n }\n\n const idx = host.indexOf(':')\n if (idx === -1) return host\n\n return host.substring(0, idx)\n}\n\n// IP addresses are not valid server names per RFC6066\n// > Currently, the only server names supported are DNS hostnames\nfunction getServerName (host) {\n if (!host) {\n return null\n }\n\n assert(typeof host === 'string')\n\n const servername = getHostname(host)\n if (net.isIP(servername)) {\n return ''\n }\n\n return servername\n}\n\nfunction deepClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction isAsyncIterable (obj) {\n return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function')\n}\n\nfunction isIterable (obj) {\n return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function'))\n}\n\nfunction bodyLength (body) {\n if (body == null) {\n return 0\n } else if (isStream(body)) {\n const state = body._readableState\n return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length)\n ? state.length\n : null\n } else if (isBlobLike(body)) {\n return body.size != null ? body.size : null\n } else if (isBuffer(body)) {\n return body.byteLength\n }\n\n return null\n}\n\nfunction isDestroyed (body) {\n return body && !!(body.destroyed || body[kDestroyed] || (stream.isDestroyed?.(body)))\n}\n\nfunction destroy (stream, err) {\n if (stream == null || !isStream(stream) || isDestroyed(stream)) {\n return\n }\n\n if (typeof stream.destroy === 'function') {\n if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {\n // See: https://github.com/nodejs/node/pull/38505/files\n stream.socket = null\n }\n\n stream.destroy(err)\n } else if (err) {\n queueMicrotask(() => {\n stream.emit('error', err)\n })\n }\n\n if (stream.destroyed !== true) {\n stream[kDestroyed] = true\n }\n}\n\nconst KEEPALIVE_TIMEOUT_EXPR = /timeout=(\\d+)/\nfunction parseKeepAliveTimeout (val) {\n const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR)\n return m ? parseInt(m[1], 10) * 1000 : null\n}\n\n/**\n * Retrieves a header name and returns its lowercase value.\n * @param {string | Buffer} value Header name\n * @returns {string}\n */\nfunction headerNameToString (value) {\n return typeof value === 'string'\n ? headerNameLowerCasedRecord[value] ?? value.toLowerCase()\n : tree.lookup(value) ?? value.toString('latin1').toLowerCase()\n}\n\n/**\n * Receive the buffer as a string and return its lowercase value.\n * @param {Buffer} value Header name\n * @returns {string}\n */\nfunction bufferToLowerCasedHeaderName (value) {\n return tree.lookup(value) ?? value.toString('latin1').toLowerCase()\n}\n\n/**\n * @param {Record | (Buffer | string | (Buffer | string)[])[]} headers\n * @param {Record} [obj]\n * @returns {Record}\n */\nfunction parseHeaders (headers, obj) {\n if (obj === undefined) obj = {}\n for (let i = 0; i < headers.length; i += 2) {\n const key = headerNameToString(headers[i])\n let val = obj[key]\n\n if (val) {\n if (typeof val === 'string') {\n val = [val]\n obj[key] = val\n }\n val.push(headers[i + 1].toString('utf8'))\n } else {\n const headersValue = headers[i + 1]\n if (typeof headersValue === 'string') {\n obj[key] = headersValue\n } else {\n obj[key] = Array.isArray(headersValue) ? headersValue.map(x => x.toString('utf8')) : headersValue.toString('utf8')\n }\n }\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if ('content-length' in obj && 'content-disposition' in obj) {\n obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1')\n }\n\n return obj\n}\n\nfunction parseRawHeaders (headers) {\n const len = headers.length\n const ret = new Array(len)\n\n let hasContentLength = false\n let contentDispositionIdx = -1\n let key\n let val\n let kLen = 0\n\n for (let n = 0; n < headers.length; n += 2) {\n key = headers[n]\n val = headers[n + 1]\n\n typeof key !== 'string' && (key = key.toString())\n typeof val !== 'string' && (val = val.toString('utf8'))\n\n kLen = key.length\n if (kLen === 14 && key[7] === '-' && (key === 'content-length' || key.toLowerCase() === 'content-length')) {\n hasContentLength = true\n } else if (kLen === 19 && key[7] === '-' && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) {\n contentDispositionIdx = n + 1\n }\n ret[n] = key\n ret[n + 1] = val\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if (hasContentLength && contentDispositionIdx !== -1) {\n ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1')\n }\n\n return ret\n}\n\nfunction isBuffer (buffer) {\n // See, https://github.com/mcollina/undici/pull/319\n return buffer instanceof Uint8Array || Buffer.isBuffer(buffer)\n}\n\nfunction validateHandler (handler, method, upgrade) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n if (typeof handler.onConnect !== 'function') {\n throw new InvalidArgumentError('invalid onConnect method')\n }\n\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) {\n throw new InvalidArgumentError('invalid onBodySent method')\n }\n\n if (upgrade || method === 'CONNECT') {\n if (typeof handler.onUpgrade !== 'function') {\n throw new InvalidArgumentError('invalid onUpgrade method')\n }\n } else {\n if (typeof handler.onHeaders !== 'function') {\n throw new InvalidArgumentError('invalid onHeaders method')\n }\n\n if (typeof handler.onData !== 'function') {\n throw new InvalidArgumentError('invalid onData method')\n }\n\n if (typeof handler.onComplete !== 'function') {\n throw new InvalidArgumentError('invalid onComplete method')\n }\n }\n}\n\n// A body is disturbed if it has been read from and it cannot\n// be re-used without losing state or data.\nfunction isDisturbed (body) {\n // TODO (fix): Why is body[kBodyUsed] needed?\n return !!(body && (stream.isDisturbed(body) || body[kBodyUsed]))\n}\n\nfunction isErrored (body) {\n return !!(body && stream.isErrored(body))\n}\n\nfunction isReadable (body) {\n return !!(body && stream.isReadable(body))\n}\n\nfunction getSocketInfo (socket) {\n return {\n localAddress: socket.localAddress,\n localPort: socket.localPort,\n remoteAddress: socket.remoteAddress,\n remotePort: socket.remotePort,\n remoteFamily: socket.remoteFamily,\n timeout: socket.timeout,\n bytesWritten: socket.bytesWritten,\n bytesRead: socket.bytesRead\n }\n}\n\n/** @type {globalThis['ReadableStream']} */\nfunction ReadableStreamFrom (iterable) {\n // We cannot use ReadableStream.from here because it does not return a byte stream.\n\n let iterator\n return new ReadableStream(\n {\n async start () {\n iterator = iterable[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { done, value } = await iterator.next()\n if (done) {\n queueMicrotask(() => {\n controller.close()\n controller.byobRequest?.respond(0)\n })\n } else {\n const buf = Buffer.isBuffer(value) ? value : Buffer.from(value)\n if (buf.byteLength) {\n controller.enqueue(new Uint8Array(buf))\n }\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n },\n type: 'bytes'\n }\n )\n}\n\n// The chunk should be a FormData instance and contains\n// all the required methods.\nfunction isFormDataLike (object) {\n return (\n object &&\n typeof object === 'object' &&\n typeof object.append === 'function' &&\n typeof object.delete === 'function' &&\n typeof object.get === 'function' &&\n typeof object.getAll === 'function' &&\n typeof object.has === 'function' &&\n typeof object.set === 'function' &&\n object[Symbol.toStringTag] === 'FormData'\n )\n}\n\nfunction addAbortListener (signal, listener) {\n if ('addEventListener' in signal) {\n signal.addEventListener('abort', listener, { once: true })\n return () => signal.removeEventListener('abort', listener)\n }\n signal.addListener('abort', listener)\n return () => signal.removeListener('abort', listener)\n}\n\nconst hasToWellFormed = typeof String.prototype.toWellFormed === 'function'\nconst hasIsWellFormed = typeof String.prototype.isWellFormed === 'function'\n\n/**\n * @param {string} val\n */\nfunction toUSVString (val) {\n return hasToWellFormed ? `${val}`.toWellFormed() : nodeUtil.toUSVString(val)\n}\n\n/**\n * @param {string} val\n */\n// TODO: move this to webidl\nfunction isUSVString (val) {\n return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`\n}\n\n/**\n * @see https://tools.ietf.org/html/rfc7230#section-3.2.6\n * @param {number} c\n */\nfunction isTokenCharCode (c) {\n switch (c) {\n case 0x22:\n case 0x28:\n case 0x29:\n case 0x2c:\n case 0x2f:\n case 0x3a:\n case 0x3b:\n case 0x3c:\n case 0x3d:\n case 0x3e:\n case 0x3f:\n case 0x40:\n case 0x5b:\n case 0x5c:\n case 0x5d:\n case 0x7b:\n case 0x7d:\n // DQUOTE and \"(),/:;<=>?@[\\]{}\"\n return false\n default:\n // VCHAR %x21-7E\n return c >= 0x21 && c <= 0x7e\n }\n}\n\n/**\n * @param {string} characters\n */\nfunction isValidHTTPToken (characters) {\n if (characters.length === 0) {\n return false\n }\n for (let i = 0; i < characters.length; ++i) {\n if (!isTokenCharCode(characters.charCodeAt(i))) {\n return false\n }\n }\n return true\n}\n\n// headerCharRegex have been lifted from\n// https://github.com/nodejs/node/blob/main/lib/_http_common.js\n\n/**\n * Matches if val contains an invalid field-vchar\n * field-value = *( field-content / obs-fold )\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n */\nconst headerCharRegex = /[^\\t\\x20-\\x7e\\x80-\\xff]/\n\n/**\n * @param {string} characters\n */\nfunction isValidHeaderValue (characters) {\n return !headerCharRegex.test(characters)\n}\n\n// Parsed accordingly to RFC 9110\n// https://www.rfc-editor.org/rfc/rfc9110#field.content-range\nfunction parseRangeHeader (range) {\n if (range == null || range === '') return { start: 0, end: null, size: null }\n\n const m = range ? range.match(/^bytes (\\d+)-(\\d+)\\/(\\d+)?$/) : null\n return m\n ? {\n start: parseInt(m[1]),\n end: m[2] ? parseInt(m[2]) : null,\n size: m[3] ? parseInt(m[3]) : null\n }\n : null\n}\n\nfunction addListener (obj, name, listener) {\n const listeners = (obj[kListeners] ??= [])\n listeners.push([name, listener])\n obj.on(name, listener)\n return obj\n}\n\nfunction removeAllListeners (obj) {\n for (const [name, listener] of obj[kListeners] ?? []) {\n obj.removeListener(name, listener)\n }\n obj[kListeners] = null\n}\n\nfunction errorRequest (client, request, err) {\n try {\n request.onError(err)\n assert(request.aborted)\n } catch (err) {\n client.emit('error', err)\n }\n}\n\nconst kEnumerableProperty = Object.create(null)\nkEnumerableProperty.enumerable = true\n\nconst normalizedMethodRecordsBase = {\n delete: 'DELETE',\n DELETE: 'DELETE',\n get: 'GET',\n GET: 'GET',\n head: 'HEAD',\n HEAD: 'HEAD',\n options: 'OPTIONS',\n OPTIONS: 'OPTIONS',\n post: 'POST',\n POST: 'POST',\n put: 'PUT',\n PUT: 'PUT'\n}\n\nconst normalizedMethodRecords = {\n ...normalizedMethodRecordsBase,\n patch: 'patch',\n PATCH: 'PATCH'\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(normalizedMethodRecordsBase, null)\nObject.setPrototypeOf(normalizedMethodRecords, null)\n\nmodule.exports = {\n kEnumerableProperty,\n nop,\n isDisturbed,\n isErrored,\n isReadable,\n toUSVString,\n isUSVString,\n isBlobLike,\n parseOrigin,\n parseURL,\n getServerName,\n isStream,\n isIterable,\n isAsyncIterable,\n isDestroyed,\n headerNameToString,\n bufferToLowerCasedHeaderName,\n addListener,\n removeAllListeners,\n errorRequest,\n parseRawHeaders,\n parseHeaders,\n parseKeepAliveTimeout,\n destroy,\n bodyLength,\n deepClone,\n ReadableStreamFrom,\n isBuffer,\n validateHandler,\n getSocketInfo,\n isFormDataLike,\n buildURL,\n addAbortListener,\n isValidHTTPToken,\n isValidHeaderValue,\n isTokenCharCode,\n parseRangeHeader,\n normalizedMethodRecordsBase,\n normalizedMethodRecords,\n isValidPort,\n isHttpOrHttpsPrefixed,\n nodeMajor,\n nodeMinor,\n safeHTTPMethods: ['GET', 'HEAD', 'OPTIONS', 'TRACE'],\n wrapRequestBody\n}\n", "'use strict'\nconst diagnosticsChannel = require('node:diagnostics_channel')\nconst util = require('node:util')\n\nconst undiciDebugLog = util.debuglog('undici')\nconst fetchDebuglog = util.debuglog('fetch')\nconst websocketDebuglog = util.debuglog('websocket')\nlet isClientSet = false\nconst channels = {\n // Client\n beforeConnect: diagnosticsChannel.channel('undici:client:beforeConnect'),\n connected: diagnosticsChannel.channel('undici:client:connected'),\n connectError: diagnosticsChannel.channel('undici:client:connectError'),\n sendHeaders: diagnosticsChannel.channel('undici:client:sendHeaders'),\n // Request\n create: diagnosticsChannel.channel('undici:request:create'),\n bodySent: diagnosticsChannel.channel('undici:request:bodySent'),\n headers: diagnosticsChannel.channel('undici:request:headers'),\n trailers: diagnosticsChannel.channel('undici:request:trailers'),\n error: diagnosticsChannel.channel('undici:request:error'),\n // WebSocket\n open: diagnosticsChannel.channel('undici:websocket:open'),\n close: diagnosticsChannel.channel('undici:websocket:close'),\n socketError: diagnosticsChannel.channel('undici:websocket:socket_error'),\n ping: diagnosticsChannel.channel('undici:websocket:ping'),\n pong: diagnosticsChannel.channel('undici:websocket:pong')\n}\n\nif (undiciDebugLog.enabled || fetchDebuglog.enabled) {\n const debuglog = fetchDebuglog.enabled ? fetchDebuglog : undiciDebugLog\n\n // Track all Client events\n diagnosticsChannel.channel('undici:client:beforeConnect').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connecting to %s using %s%s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connected').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connected to %s using %s%s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connectError').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host },\n error\n } = evt\n debuglog(\n 'connection to %s using %s%s errored - %s',\n `${host}${port ? `:${port}` : ''}`,\n protocol,\n version,\n error.message\n )\n })\n\n diagnosticsChannel.channel('undici:client:sendHeaders').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('sending request to %s %s/%s', method, origin, path)\n })\n\n // Track Request events\n diagnosticsChannel.channel('undici:request:headers').subscribe(evt => {\n const {\n request: { method, path, origin },\n response: { statusCode }\n } = evt\n debuglog(\n 'received response to %s %s/%s - HTTP %d',\n method,\n origin,\n path,\n statusCode\n )\n })\n\n diagnosticsChannel.channel('undici:request:trailers').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('trailers received from %s %s/%s', method, origin, path)\n })\n\n diagnosticsChannel.channel('undici:request:error').subscribe(evt => {\n const {\n request: { method, path, origin },\n error\n } = evt\n debuglog(\n 'request to %s %s/%s errored - %s',\n method,\n origin,\n path,\n error.message\n )\n })\n\n isClientSet = true\n}\n\nif (websocketDebuglog.enabled) {\n if (!isClientSet) {\n const debuglog = undiciDebugLog.enabled ? undiciDebugLog : websocketDebuglog\n diagnosticsChannel.channel('undici:client:beforeConnect').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connecting to %s%s using %s%s',\n host,\n port ? `:${port}` : '',\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connected').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host }\n } = evt\n debuglog(\n 'connected to %s%s using %s%s',\n host,\n port ? `:${port}` : '',\n protocol,\n version\n )\n })\n\n diagnosticsChannel.channel('undici:client:connectError').subscribe(evt => {\n const {\n connectParams: { version, protocol, port, host },\n error\n } = evt\n debuglog(\n 'connection to %s%s using %s%s errored - %s',\n host,\n port ? `:${port}` : '',\n protocol,\n version,\n error.message\n )\n })\n\n diagnosticsChannel.channel('undici:client:sendHeaders').subscribe(evt => {\n const {\n request: { method, path, origin }\n } = evt\n debuglog('sending request to %s %s/%s', method, origin, path)\n })\n }\n\n // Track all WebSocket events\n diagnosticsChannel.channel('undici:websocket:open').subscribe(evt => {\n const {\n address: { address, port }\n } = evt\n websocketDebuglog('connection opened %s%s', address, port ? `:${port}` : '')\n })\n\n diagnosticsChannel.channel('undici:websocket:close').subscribe(evt => {\n const { websocket, code, reason } = evt\n websocketDebuglog(\n 'closed connection to %s - %s %s',\n websocket.url,\n code,\n reason\n )\n })\n\n diagnosticsChannel.channel('undici:websocket:socket_error').subscribe(err => {\n websocketDebuglog('connection errored - %s', err.message)\n })\n\n diagnosticsChannel.channel('undici:websocket:ping').subscribe(evt => {\n websocketDebuglog('ping received')\n })\n\n diagnosticsChannel.channel('undici:websocket:pong').subscribe(evt => {\n websocketDebuglog('pong received')\n })\n}\n\nmodule.exports = {\n channels\n}\n", "'use strict'\n\nconst {\n InvalidArgumentError,\n NotSupportedError\n} = require('./errors')\nconst assert = require('node:assert')\nconst {\n isValidHTTPToken,\n isValidHeaderValue,\n isStream,\n destroy,\n isBuffer,\n isFormDataLike,\n isIterable,\n isBlobLike,\n buildURL,\n validateHandler,\n getServerName,\n normalizedMethodRecords\n} = require('./util')\nconst { channels } = require('./diagnostics.js')\nconst { headerNameLowerCasedRecord } = require('./constants')\n\n// Verifies that a given path is valid does not contain control chars \\x00 to \\x20\nconst invalidPathRegex = /[^\\u0021-\\u00ff]/\n\nconst kHandler = Symbol('handler')\n\nclass Request {\n constructor (origin, {\n path,\n method,\n body,\n headers,\n query,\n idempotent,\n blocking,\n upgrade,\n headersTimeout,\n bodyTimeout,\n reset,\n throwOnError,\n expectContinue,\n servername\n }, handler) {\n if (typeof path !== 'string') {\n throw new InvalidArgumentError('path must be a string')\n } else if (\n path[0] !== '/' &&\n !(path.startsWith('http://') || path.startsWith('https://')) &&\n method !== 'CONNECT'\n ) {\n throw new InvalidArgumentError('path must be an absolute URL or start with a slash')\n } else if (invalidPathRegex.test(path)) {\n throw new InvalidArgumentError('invalid request path')\n }\n\n if (typeof method !== 'string') {\n throw new InvalidArgumentError('method must be a string')\n } else if (normalizedMethodRecords[method] === undefined && !isValidHTTPToken(method)) {\n throw new InvalidArgumentError('invalid request method')\n }\n\n if (upgrade && typeof upgrade !== 'string') {\n throw new InvalidArgumentError('upgrade must be a string')\n }\n\n if (upgrade && !isValidHeaderValue(upgrade)) {\n throw new InvalidArgumentError('invalid upgrade header')\n }\n\n if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('invalid headersTimeout')\n }\n\n if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('invalid bodyTimeout')\n }\n\n if (reset != null && typeof reset !== 'boolean') {\n throw new InvalidArgumentError('invalid reset')\n }\n\n if (expectContinue != null && typeof expectContinue !== 'boolean') {\n throw new InvalidArgumentError('invalid expectContinue')\n }\n\n this.headersTimeout = headersTimeout\n\n this.bodyTimeout = bodyTimeout\n\n this.throwOnError = throwOnError === true\n\n this.method = method\n\n this.abort = null\n\n if (body == null) {\n this.body = null\n } else if (isStream(body)) {\n this.body = body\n\n const rState = this.body._readableState\n if (!rState || !rState.autoDestroy) {\n this.endHandler = function autoDestroy () {\n destroy(this)\n }\n this.body.on('end', this.endHandler)\n }\n\n this.errorHandler = err => {\n if (this.abort) {\n this.abort(err)\n } else {\n this.error = err\n }\n }\n this.body.on('error', this.errorHandler)\n } else if (isBuffer(body)) {\n this.body = body.byteLength ? body : null\n } else if (ArrayBuffer.isView(body)) {\n this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null\n } else if (body instanceof ArrayBuffer) {\n this.body = body.byteLength ? Buffer.from(body) : null\n } else if (typeof body === 'string') {\n this.body = body.length ? Buffer.from(body) : null\n } else if (isFormDataLike(body) || isIterable(body) || isBlobLike(body)) {\n this.body = body\n } else {\n throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable')\n }\n\n this.completed = false\n\n this.aborted = false\n\n this.upgrade = upgrade || null\n\n this.path = query ? buildURL(path, query) : path\n\n this.origin = origin\n\n this.idempotent = idempotent == null\n ? method === 'HEAD' || method === 'GET'\n : idempotent\n\n this.blocking = blocking == null ? false : blocking\n\n this.reset = reset == null ? null : reset\n\n this.host = null\n\n this.contentLength = null\n\n this.contentType = null\n\n this.headers = []\n\n // Only for H2\n this.expectContinue = expectContinue != null ? expectContinue : false\n\n if (Array.isArray(headers)) {\n if (headers.length % 2 !== 0) {\n throw new InvalidArgumentError('headers array must be even')\n }\n for (let i = 0; i < headers.length; i += 2) {\n processHeader(this, headers[i], headers[i + 1])\n }\n } else if (headers && typeof headers === 'object') {\n if (headers[Symbol.iterator]) {\n for (const header of headers) {\n if (!Array.isArray(header) || header.length !== 2) {\n throw new InvalidArgumentError('headers must be in key-value pair format')\n }\n processHeader(this, header[0], header[1])\n }\n } else {\n const keys = Object.keys(headers)\n for (let i = 0; i < keys.length; ++i) {\n processHeader(this, keys[i], headers[keys[i]])\n }\n }\n } else if (headers != null) {\n throw new InvalidArgumentError('headers must be an object or an array')\n }\n\n validateHandler(handler, method, upgrade)\n\n this.servername = servername || getServerName(this.host)\n\n this[kHandler] = handler\n\n if (channels.create.hasSubscribers) {\n channels.create.publish({ request: this })\n }\n }\n\n onBodySent (chunk) {\n if (this[kHandler].onBodySent) {\n try {\n return this[kHandler].onBodySent(chunk)\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onRequestSent () {\n if (channels.bodySent.hasSubscribers) {\n channels.bodySent.publish({ request: this })\n }\n\n if (this[kHandler].onRequestSent) {\n try {\n return this[kHandler].onRequestSent()\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onConnect (abort) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (this.error) {\n abort(this.error)\n } else {\n this.abort = abort\n return this[kHandler].onConnect(abort)\n }\n }\n\n onResponseStarted () {\n return this[kHandler].onResponseStarted?.()\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (channels.headers.hasSubscribers) {\n channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })\n }\n\n try {\n return this[kHandler].onHeaders(statusCode, headers, resume, statusText)\n } catch (err) {\n this.abort(err)\n }\n }\n\n onData (chunk) {\n assert(!this.aborted)\n assert(!this.completed)\n\n try {\n return this[kHandler].onData(chunk)\n } catch (err) {\n this.abort(err)\n return false\n }\n }\n\n /**\n * @param {number|null} statusCode\n * @param {Buffer[]|null} headers\n * @param {import('node:stream').Duplex} socket\n * @param {string} [statusText]\n */\n onUpgrade (statusCode, headers, socket, statusText = '') {\n this.onFinally()\n\n assert(!this.aborted)\n assert(!this.completed)\n\n if (statusCode !== null) {\n this.#publishUpgradeHeaders(statusCode, headers, statusText)\n }\n\n const result = this[kHandler].onUpgrade(statusCode, headers, socket)\n\n if (!this.aborted) {\n this.completed = true\n if (statusCode !== null) {\n this.#publishUpgradeTrailers()\n }\n }\n\n return result\n }\n\n /**\n * @param {number} statusCode\n * @param {import('node:http2').IncomingHttpHeaders} headers\n * @param {(headers: import('node:http2').IncomingHttpHeaders) => Buffer[]} parseHeaders\n * @param {string} [statusText]\n */\n onUpgradeResponse (statusCode, headers, parseHeaders, statusText = '') {\n assert(!this.aborted)\n assert(this.completed)\n\n if (channels.headers.hasSubscribers) {\n this.#publishUpgradeHeaders(statusCode, parseHeaders(headers), statusText)\n }\n this.#publishUpgradeTrailers()\n }\n\n /**\n * @param {Error} error\n */\n onUpgradeError (error) {\n assert(!this.aborted)\n assert(this.completed)\n\n if (channels.error.hasSubscribers) {\n channels.error.publish({ request: this, error })\n }\n }\n\n /**\n * @param {number} statusCode\n * @param {Buffer[]} headers\n * @param {string} statusText\n */\n #publishUpgradeHeaders (statusCode, headers, statusText) {\n if (channels.headers.hasSubscribers) {\n channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })\n }\n }\n\n #publishUpgradeTrailers () {\n if (channels.trailers.hasSubscribers) {\n channels.trailers.publish({ request: this, trailers: [] })\n }\n }\n\n onComplete (trailers) {\n this.onFinally()\n\n assert(!this.aborted)\n\n this.completed = true\n if (channels.trailers.hasSubscribers) {\n channels.trailers.publish({ request: this, trailers })\n }\n\n try {\n return this[kHandler].onComplete(trailers)\n } catch (err) {\n // TODO (fix): This might be a bad idea?\n this.onError(err)\n }\n }\n\n onError (error) {\n this.onFinally()\n\n if (channels.error.hasSubscribers) {\n channels.error.publish({ request: this, error })\n }\n\n if (this.aborted) {\n return\n }\n this.aborted = true\n\n return this[kHandler].onError(error)\n }\n\n onFinally () {\n if (this.errorHandler) {\n this.body.off('error', this.errorHandler)\n this.errorHandler = null\n }\n\n if (this.endHandler) {\n this.body.off('end', this.endHandler)\n this.endHandler = null\n }\n }\n\n addHeader (key, value) {\n processHeader(this, key, value)\n return this\n }\n}\n\nfunction processHeader (request, key, val) {\n if (val && (typeof val === 'object' && !Array.isArray(val))) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n } else if (val === undefined) {\n return\n }\n\n let headerName = headerNameLowerCasedRecord[key]\n\n if (headerName === undefined) {\n headerName = key.toLowerCase()\n if (headerNameLowerCasedRecord[headerName] === undefined && !isValidHTTPToken(headerName)) {\n throw new InvalidArgumentError('invalid header key')\n }\n }\n\n if (Array.isArray(val)) {\n const arr = []\n for (let i = 0; i < val.length; i++) {\n if (typeof val[i] === 'string') {\n if (!isValidHeaderValue(val[i])) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n arr.push(val[i])\n } else if (val[i] === null) {\n arr.push('')\n } else if (typeof val[i] === 'object') {\n throw new InvalidArgumentError(`invalid ${key} header`)\n } else {\n // Coerce primitives (and reject unsafe coercions such as functions\n // with a crafted toString/Symbol.toPrimitive).\n const str = `${val[i]}`\n if (!isValidHeaderValue(str)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n arr.push(str)\n }\n }\n val = arr\n } else if (typeof val === 'string') {\n if (!isValidHeaderValue(val)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n } else if (val === null) {\n val = ''\n } else {\n // Coerce primitives (and reject unsafe coercions such as functions\n // with a crafted toString/Symbol.toPrimitive).\n val = `${val}`\n if (!isValidHeaderValue(val)) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n }\n\n if (headerName === 'host') {\n if (request.host !== null) {\n throw new InvalidArgumentError('duplicate host header')\n }\n if (typeof val !== 'string') {\n throw new InvalidArgumentError('invalid host header')\n }\n // Consumed by Client\n request.host = val\n } else if (headerName === 'content-length') {\n if (request.contentLength !== null) {\n throw new InvalidArgumentError('duplicate content-length header')\n }\n request.contentLength = parseInt(val, 10)\n if (!Number.isFinite(request.contentLength)) {\n throw new InvalidArgumentError('invalid content-length header')\n }\n } else if (request.contentType === null && headerName === 'content-type') {\n request.contentType = val\n request.headers.push(key, val)\n } else if (headerName === 'transfer-encoding' || headerName === 'keep-alive' || headerName === 'upgrade') {\n throw new InvalidArgumentError(`invalid ${headerName} header`)\n } else if (headerName === 'connection') {\n const value = typeof val === 'string' ? val.toLowerCase() : null\n if (value !== 'close' && value !== 'keep-alive') {\n throw new InvalidArgumentError('invalid connection header')\n }\n\n if (value === 'close') {\n request.reset = true\n }\n } else if (headerName === 'expect') {\n throw new NotSupportedError('expect header not supported')\n } else {\n request.headers.push(key, val)\n }\n}\n\nmodule.exports = Request\n", "'use strict'\nconst EventEmitter = require('node:events')\n\nclass Dispatcher extends EventEmitter {\n dispatch () {\n throw new Error('not implemented')\n }\n\n close () {\n throw new Error('not implemented')\n }\n\n destroy () {\n throw new Error('not implemented')\n }\n\n compose (...args) {\n // So we handle [interceptor1, interceptor2] or interceptor1, interceptor2, ...\n const interceptors = Array.isArray(args[0]) ? args[0] : args\n let dispatch = this.dispatch.bind(this)\n\n for (const interceptor of interceptors) {\n if (interceptor == null) {\n continue\n }\n\n if (typeof interceptor !== 'function') {\n throw new TypeError(`invalid interceptor, expected function received ${typeof interceptor}`)\n }\n\n dispatch = interceptor(dispatch)\n\n if (dispatch == null || typeof dispatch !== 'function' || dispatch.length !== 2) {\n throw new TypeError('invalid interceptor')\n }\n }\n\n return new ComposedDispatcher(this, dispatch)\n }\n}\n\nclass ComposedDispatcher extends Dispatcher {\n #dispatcher = null\n #dispatch = null\n\n constructor (dispatcher, dispatch) {\n super()\n this.#dispatcher = dispatcher\n this.#dispatch = dispatch\n }\n\n dispatch (...args) {\n this.#dispatch(...args)\n }\n\n close (...args) {\n return this.#dispatcher.close(...args)\n }\n\n destroy (...args) {\n return this.#dispatcher.destroy(...args)\n }\n}\n\nmodule.exports = Dispatcher\n", "'use strict'\n\nconst buffer = require('node:buffer')\nconst Dispatcher = require('./dispatcher')\nconst {\n ClientDestroyedError,\n ClientClosedError,\n InvalidArgumentError\n} = require('../core/errors')\nconst { kDestroy, kClose, kClosed, kDestroyed, kDispatch, kInterceptors } = require('../core/symbols')\n\nconst kOnDestroyed = Symbol('onDestroyed')\nconst kOnClosed = Symbol('onClosed')\nconst kInterceptedDispatch = Symbol('Intercepted Dispatch')\nconst kWebSocketOptions = Symbol('webSocketOptions')\nconst kEventSourceOptions = Symbol('eventSourceOptions')\n\nclass DispatcherBase extends Dispatcher {\n constructor (opts) {\n super()\n\n this[kDestroyed] = false\n this[kOnDestroyed] = null\n this[kClosed] = false\n this[kOnClosed] = []\n this[kWebSocketOptions] = opts?.webSocket ?? {}\n this[kEventSourceOptions] = opts?.eventSource ?? {}\n }\n\n get webSocketOptions () {\n return {\n maxFragments: this[kWebSocketOptions].maxFragments ?? 131072,\n maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024\n }\n }\n\n get eventSourceOptions () {\n return {\n maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength\n }\n }\n\n get destroyed () {\n return this[kDestroyed]\n }\n\n get closed () {\n return this[kClosed]\n }\n\n get interceptors () {\n return this[kInterceptors]\n }\n\n set interceptors (newInterceptors) {\n if (newInterceptors) {\n for (let i = newInterceptors.length - 1; i >= 0; i--) {\n const interceptor = this[kInterceptors][i]\n if (typeof interceptor !== 'function') {\n throw new InvalidArgumentError('interceptor must be an function')\n }\n }\n }\n\n this[kInterceptors] = newInterceptors\n }\n\n close (callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.close((err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n queueMicrotask(() => callback(new ClientDestroyedError(), null))\n return\n }\n\n if (this[kClosed]) {\n if (this[kOnClosed]) {\n this[kOnClosed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n this[kClosed] = true\n this[kOnClosed].push(callback)\n\n const onClosed = () => {\n const callbacks = this[kOnClosed]\n this[kOnClosed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kClose]()\n .then(() => this.destroy())\n .then(() => {\n queueMicrotask(onClosed)\n })\n }\n\n destroy (err, callback) {\n if (typeof err === 'function') {\n callback = err\n err = null\n }\n\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.destroy(err, (err, data) => {\n return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n if (this[kOnDestroyed]) {\n this[kOnDestroyed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n if (!err) {\n err = new ClientDestroyedError()\n }\n\n this[kDestroyed] = true\n this[kOnDestroyed] = this[kOnDestroyed] || []\n this[kOnDestroyed].push(callback)\n\n const onDestroyed = () => {\n const callbacks = this[kOnDestroyed]\n this[kOnDestroyed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kDestroy](err).then(() => {\n queueMicrotask(onDestroyed)\n })\n }\n\n [kInterceptedDispatch] (opts, handler) {\n if (!this[kInterceptors] || this[kInterceptors].length === 0) {\n this[kInterceptedDispatch] = this[kDispatch]\n return this[kDispatch](opts, handler)\n }\n\n let dispatch = this[kDispatch].bind(this)\n for (let i = this[kInterceptors].length - 1; i >= 0; i--) {\n dispatch = this[kInterceptors][i](dispatch)\n }\n this[kInterceptedDispatch] = dispatch\n return dispatch(opts, handler)\n }\n\n dispatch (opts, handler) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n try {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object.')\n }\n\n if (this[kDestroyed] || this[kOnDestroyed]) {\n throw new ClientDestroyedError()\n }\n\n if (this[kClosed]) {\n throw new ClientClosedError()\n }\n\n return this[kInterceptedDispatch](opts, handler)\n } catch (err) {\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n handler.onError(err)\n\n return false\n }\n }\n}\n\nmodule.exports = DispatcherBase\n", "'use strict'\n\n/**\n * This module offers an optimized timer implementation designed for scenarios\n * where high precision is not critical.\n *\n * The timer achieves faster performance by using a low-resolution approach,\n * with an accuracy target of within 500ms. This makes it particularly useful\n * for timers with delays of 1 second or more, where exact timing is less\n * crucial.\n *\n * It's important to note that Node.js timers are inherently imprecise, as\n * delays can occur due to the event loop being blocked by other operations.\n * Consequently, timers may trigger later than their scheduled time.\n */\n\n/**\n * The fastNow variable contains the internal fast timer clock value.\n *\n * @type {number}\n */\nlet fastNow = 0\n\n/**\n * RESOLUTION_MS represents the target resolution time in milliseconds.\n *\n * @type {number}\n * @default 1000\n */\nconst RESOLUTION_MS = 1e3\n\n/**\n * TICK_MS defines the desired interval in milliseconds between each tick.\n * The target value is set to half the resolution time, minus 1 ms, to account\n * for potential event loop overhead.\n *\n * @type {number}\n * @default 499\n */\nconst TICK_MS = (RESOLUTION_MS >> 1) - 1\n\n/**\n * fastNowTimeout is a Node.js timer used to manage and process\n * the FastTimers stored in the `fastTimers` array.\n *\n * @type {NodeJS.Timeout}\n */\nlet fastNowTimeout\n\n/**\n * The kFastTimer symbol is used to identify FastTimer instances.\n *\n * @type {Symbol}\n */\nconst kFastTimer = Symbol('kFastTimer')\n\n/**\n * The fastTimers array contains all active FastTimers.\n *\n * @type {FastTimer[]}\n */\nconst fastTimers = []\n\n/**\n * These constants represent the various states of a FastTimer.\n */\n\n/**\n * The `NOT_IN_LIST` constant indicates that the FastTimer is not included\n * in the `fastTimers` array. Timers with this status will not be processed\n * during the next tick by the `onTick` function.\n *\n * A FastTimer can be re-added to the `fastTimers` array by invoking the\n * `refresh` method on the FastTimer instance.\n *\n * @type {-2}\n */\nconst NOT_IN_LIST = -2\n\n/**\n * The `TO_BE_CLEARED` constant indicates that the FastTimer is scheduled\n * for removal from the `fastTimers` array. A FastTimer in this state will\n * be removed in the next tick by the `onTick` function and will no longer\n * be processed.\n *\n * This status is also set when the `clear` method is called on the FastTimer instance.\n *\n * @type {-1}\n */\nconst TO_BE_CLEARED = -1\n\n/**\n * The `PENDING` constant signifies that the FastTimer is awaiting processing\n * in the next tick by the `onTick` function. Timers with this status will have\n * their `_idleStart` value set and their status updated to `ACTIVE` in the next tick.\n *\n * @type {0}\n */\nconst PENDING = 0\n\n/**\n * The `ACTIVE` constant indicates that the FastTimer is active and waiting\n * for its timer to expire. During the next tick, the `onTick` function will\n * check if the timer has expired, and if so, it will execute the associated callback.\n *\n * @type {1}\n */\nconst ACTIVE = 1\n\n/**\n * The onTick function processes the fastTimers array.\n *\n * @returns {void}\n */\nfunction onTick () {\n /**\n * Increment the fastNow value by the TICK_MS value, despite the actual time\n * that has passed since the last tick. This approach ensures independence\n * from the system clock and delays caused by a blocked event loop.\n *\n * @type {number}\n */\n fastNow += TICK_MS\n\n /**\n * The `idx` variable is used to iterate over the `fastTimers` array.\n * Expired timers are removed by replacing them with the last element in the array.\n * Consequently, `idx` is only incremented when the current element is not removed.\n *\n * @type {number}\n */\n let idx = 0\n\n /**\n * The len variable will contain the length of the fastTimers array\n * and will be decremented when a FastTimer should be removed from the\n * fastTimers array.\n *\n * @type {number}\n */\n let len = fastTimers.length\n\n while (idx < len) {\n /**\n * @type {FastTimer}\n */\n const timer = fastTimers[idx]\n\n // If the timer is in the ACTIVE state and the timer has expired, it will\n // be processed in the next tick.\n if (timer._state === PENDING) {\n // Set the _idleStart value to the fastNow value minus the TICK_MS value\n // to account for the time the timer was in the PENDING state.\n timer._idleStart = fastNow - TICK_MS\n timer._state = ACTIVE\n } else if (\n timer._state === ACTIVE &&\n fastNow >= timer._idleStart + timer._idleTimeout\n ) {\n timer._state = TO_BE_CLEARED\n timer._idleStart = -1\n timer._onTimeout(timer._timerArg)\n }\n\n if (timer._state === TO_BE_CLEARED) {\n timer._state = NOT_IN_LIST\n\n // Move the last element to the current index and decrement len if it is\n // not the only element in the array.\n if (--len !== 0) {\n fastTimers[idx] = fastTimers[len]\n }\n } else {\n ++idx\n }\n }\n\n // Set the length of the fastTimers array to the new length and thus\n // removing the excess FastTimers elements from the array.\n fastTimers.length = len\n\n // If there are still active FastTimers in the array, refresh the Timer.\n // If there are no active FastTimers, the timer will be refreshed again\n // when a new FastTimer is instantiated.\n if (fastTimers.length !== 0) {\n refreshTimeout()\n }\n}\n\nfunction refreshTimeout () {\n // If the fastNowTimeout is already set, refresh it.\n if (fastNowTimeout) {\n fastNowTimeout.refresh()\n // fastNowTimeout is not instantiated yet, create a new Timer.\n } else {\n clearTimeout(fastNowTimeout)\n fastNowTimeout = setTimeout(onTick, TICK_MS)\n\n // If the Timer has an unref method, call it to allow the process to exit if\n // there are no other active handles.\n if (fastNowTimeout.unref) {\n fastNowTimeout.unref()\n }\n }\n}\n\n/**\n * The `FastTimer` class is a data structure designed to store and manage\n * timer information.\n */\nclass FastTimer {\n [kFastTimer] = true\n\n /**\n * The state of the timer, which can be one of the following:\n * - NOT_IN_LIST (-2)\n * - TO_BE_CLEARED (-1)\n * - PENDING (0)\n * - ACTIVE (1)\n *\n * @type {-2|-1|0|1}\n * @private\n */\n _state = NOT_IN_LIST\n\n /**\n * The number of milliseconds to wait before calling the callback.\n *\n * @type {number}\n * @private\n */\n _idleTimeout = -1\n\n /**\n * The time in milliseconds when the timer was started. This value is used to\n * calculate when the timer should expire.\n *\n * @type {number}\n * @default -1\n * @private\n */\n _idleStart = -1\n\n /**\n * The function to be executed when the timer expires.\n * @type {Function}\n * @private\n */\n _onTimeout\n\n /**\n * The argument to be passed to the callback when the timer expires.\n *\n * @type {*}\n * @private\n */\n _timerArg\n\n /**\n * @constructor\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should wait\n * before the specified function or code is executed.\n * @param {*} arg\n */\n constructor (callback, delay, arg) {\n this._onTimeout = callback\n this._idleTimeout = delay\n this._timerArg = arg\n\n this.refresh()\n }\n\n /**\n * Sets the timer's start time to the current time, and reschedules the timer\n * to call its callback at the previously specified duration adjusted to the\n * current time.\n * Using this on a timer that has already called its callback will reactivate\n * the timer.\n *\n * @returns {void}\n */\n refresh () {\n // In the special case that the timer is not in the list of active timers,\n // add it back to the array to be processed in the next tick by the onTick\n // function.\n if (this._state === NOT_IN_LIST) {\n fastTimers.push(this)\n }\n\n // If the timer is the only active timer, refresh the fastNowTimeout for\n // better resolution.\n if (!fastNowTimeout || fastTimers.length === 1) {\n refreshTimeout()\n }\n\n // Setting the state to PENDING will cause the timer to be reset in the\n // next tick by the onTick function.\n this._state = PENDING\n }\n\n /**\n * The `clear` method cancels the timer, preventing it from executing.\n *\n * @returns {void}\n * @private\n */\n clear () {\n // Set the state to TO_BE_CLEARED to mark the timer for removal in the next\n // tick by the onTick function.\n this._state = TO_BE_CLEARED\n\n // Reset the _idleStart value to -1 to indicate that the timer is no longer\n // active.\n this._idleStart = -1\n }\n}\n\n/**\n * This module exports a setTimeout and clearTimeout function that can be\n * used as a drop-in replacement for the native functions.\n */\nmodule.exports = {\n /**\n * The setTimeout() method sets a timer which executes a function once the\n * timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {NodeJS.Timeout|FastTimer}\n */\n setTimeout (callback, delay, arg) {\n // If the delay is less than or equal to the RESOLUTION_MS value return a\n // native Node.js Timer instance.\n return delay <= RESOLUTION_MS\n ? setTimeout(callback, delay, arg)\n : new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated Timer previously created\n * by calling setTimeout.\n *\n * @param {NodeJS.Timeout|FastTimer} timeout\n */\n clearTimeout (timeout) {\n // If the timeout is a FastTimer, call its own clear method.\n if (timeout[kFastTimer]) {\n /**\n * @type {FastTimer}\n */\n timeout.clear()\n // Otherwise it is an instance of a native NodeJS.Timeout, so call the\n // Node.js native clearTimeout function.\n } else {\n clearTimeout(timeout)\n }\n },\n /**\n * The setFastTimeout() method sets a fastTimer which executes a function once\n * the timer expires.\n * @param {Function} callback A function to be executed after the timer\n * expires.\n * @param {number} delay The time, in milliseconds that the timer should\n * wait before the specified function or code is executed.\n * @param {*} [arg] An optional argument to be passed to the callback function\n * when the timer expires.\n * @returns {FastTimer}\n */\n setFastTimeout (callback, delay, arg) {\n return new FastTimer(callback, delay, arg)\n },\n /**\n * The clearTimeout method cancels an instantiated FastTimer previously\n * created by calling setFastTimeout.\n *\n * @param {FastTimer} timeout\n */\n clearFastTimeout (timeout) {\n timeout.clear()\n },\n /**\n * The now method returns the value of the internal fast timer clock.\n *\n * @returns {number}\n */\n now () {\n return fastNow\n },\n /**\n * Trigger the onTick function to process the fastTimers array.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n * @param {number} [delay=0] The delay in milliseconds to add to the now value.\n */\n tick (delay = 0) {\n fastNow += delay - RESOLUTION_MS + 1\n onTick()\n onTick()\n },\n /**\n * Reset FastTimers.\n * Exported for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n reset () {\n fastNow = 0\n fastTimers.length = 0\n clearTimeout(fastNowTimeout)\n fastNowTimeout = null\n },\n /**\n * Exporting for testing purposes only.\n * Marking as deprecated to discourage any use outside of testing.\n * @deprecated\n */\n kFastTimer\n}\n", "'use strict'\n\nconst net = require('node:net')\nconst assert = require('node:assert')\nconst util = require('./util')\nconst { InvalidArgumentError, ConnectTimeoutError } = require('./errors')\nconst timers = require('../util/timers')\n\nfunction noop () {}\n\nlet tls // include tls conditionally since it is not always available\n\n// TODO: session re-use does not wait for the first\n// connection to resolve the session and might therefore\n// resolve the same servername multiple times even when\n// re-use is enabled.\n\nlet SessionCache\n// FIXME: remove workaround when the Node bug is fixed\n// https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\nif (global.FinalizationRegistry && !(process.env.NODE_V8_COVERAGE || process.env.UNDICI_NO_FG)) {\n SessionCache = class WeakSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n this._sessionRegistry = new global.FinalizationRegistry((key) => {\n if (this._sessionCache.size < this._maxCachedSessions) {\n return\n }\n\n const ref = this._sessionCache.get(key)\n if (ref !== undefined && ref.deref() === undefined) {\n this._sessionCache.delete(key)\n }\n })\n }\n\n get (sessionKey) {\n const ref = this._sessionCache.get(sessionKey)\n return ref ? ref.deref() : null\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n this._sessionCache.set(sessionKey, new WeakRef(session))\n this._sessionRegistry.register(session, sessionKey)\n }\n }\n} else {\n SessionCache = class SimpleSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n }\n\n get (sessionKey) {\n return this._sessionCache.get(sessionKey)\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n if (this._sessionCache.size >= this._maxCachedSessions) {\n // remove the oldest session\n const { value: oldestKey } = this._sessionCache.keys().next()\n this._sessionCache.delete(oldestKey)\n }\n\n this._sessionCache.set(sessionKey, session)\n }\n }\n}\n\nfunction buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, session: customSession, ...opts }) {\n if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {\n throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero')\n }\n\n const options = { path: socketPath, ...opts }\n const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)\n timeout = timeout == null ? 10e3 : timeout\n allowH2 = allowH2 != null ? allowH2 : false\n return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {\n let socket\n if (protocol === 'https:') {\n if (!tls) {\n tls = require('node:tls')\n }\n servername = servername || options.servername || util.getServerName(host) || null\n\n const sessionKey = servername || hostname\n assert(sessionKey)\n\n const session = customSession || sessionCache.get(sessionKey) || null\n\n port = port || 443\n\n socket = tls.connect({\n highWaterMark: 16384, // TLS in node can't have bigger HWM anyway...\n ...options,\n servername,\n session,\n localAddress,\n // TODO(HTTP/2): Add support for h2c\n ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'],\n socket: httpSocket, // upgrade socket connection\n port,\n host: hostname\n })\n\n socket\n .on('session', function (session) {\n // TODO (fix): Can a session become invalid once established? Don't think so?\n sessionCache.set(sessionKey, session)\n })\n } else {\n assert(!httpSocket, 'httpSocket can only be sent on TLS update')\n\n port = port || 80\n\n socket = net.connect({\n highWaterMark: 64 * 1024, // Same as nodejs fs streams.\n ...options,\n localAddress,\n port,\n host: hostname\n })\n }\n\n // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket\n if (options.keepAlive == null || options.keepAlive) {\n const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay\n socket.setKeepAlive(true, keepAliveInitialDelay)\n }\n\n const clearConnectTimeout = setupConnectTimeout(new WeakRef(socket), { timeout, hostname, port })\n\n socket\n .setNoDelay(true)\n .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () {\n queueMicrotask(clearConnectTimeout)\n\n if (callback) {\n const cb = callback\n callback = null\n cb(null, this)\n }\n })\n .on('error', function (err) {\n queueMicrotask(clearConnectTimeout)\n\n if (callback) {\n const cb = callback\n callback = null\n cb(err)\n }\n })\n\n return socket\n }\n}\n\n/**\n * @param {WeakRef} socketWeakRef\n * @param {object} opts\n * @param {number} opts.timeout\n * @param {string} opts.hostname\n * @param {number} opts.port\n * @returns {() => void}\n */\nconst setupConnectTimeout = process.platform === 'win32'\n ? (socketWeakRef, opts) => {\n if (!opts.timeout) {\n return noop\n }\n\n let s1 = null\n let s2 = null\n const fastTimer = timers.setFastTimeout(() => {\n // setImmediate is added to make sure that we prioritize socket error events over timeouts\n s1 = setImmediate(() => {\n // Windows needs an extra setImmediate probably due to implementation differences in the socket logic\n s2 = setImmediate(() => onConnectTimeout(socketWeakRef.deref(), opts))\n })\n }, opts.timeout)\n return () => {\n timers.clearFastTimeout(fastTimer)\n clearImmediate(s1)\n clearImmediate(s2)\n }\n }\n : (socketWeakRef, opts) => {\n if (!opts.timeout) {\n return noop\n }\n\n let s1 = null\n const fastTimer = timers.setFastTimeout(() => {\n // setImmediate is added to make sure that we prioritize socket error events over timeouts\n s1 = setImmediate(() => {\n onConnectTimeout(socketWeakRef.deref(), opts)\n })\n }, opts.timeout)\n return () => {\n timers.clearFastTimeout(fastTimer)\n clearImmediate(s1)\n }\n }\n\n/**\n * @param {net.Socket} socket\n * @param {object} opts\n * @param {number} opts.timeout\n * @param {string} opts.hostname\n * @param {number} opts.port\n */\nfunction onConnectTimeout (socket, opts) {\n // The socket could be already garbage collected\n if (socket == null) {\n return\n }\n\n let message = 'Connect Timeout Error'\n if (Array.isArray(socket.autoSelectFamilyAttemptedAddresses)) {\n message += ` (attempted addresses: ${socket.autoSelectFamilyAttemptedAddresses.join(', ')},`\n } else {\n message += ` (attempted address: ${opts.hostname}:${opts.port},`\n }\n\n message += ` timeout: ${opts.timeout}ms)`\n\n util.destroy(socket, new ConnectTimeoutError(message))\n}\n\nmodule.exports = buildConnector\n", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.enumToMap = void 0;\nfunction enumToMap(obj) {\n const res = {};\n Object.keys(obj).forEach((key) => {\n const value = obj[key];\n if (typeof value === 'number') {\n res[key] = value;\n }\n });\n return res;\n}\nexports.enumToMap = enumToMap;\n//# sourceMappingURL=utils.js.map", "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;\nconst utils_1 = require(\"./utils\");\n// C headers\nvar ERROR;\n(function (ERROR) {\n ERROR[ERROR[\"OK\"] = 0] = \"OK\";\n ERROR[ERROR[\"INTERNAL\"] = 1] = \"INTERNAL\";\n ERROR[ERROR[\"STRICT\"] = 2] = \"STRICT\";\n ERROR[ERROR[\"LF_EXPECTED\"] = 3] = \"LF_EXPECTED\";\n ERROR[ERROR[\"UNEXPECTED_CONTENT_LENGTH\"] = 4] = \"UNEXPECTED_CONTENT_LENGTH\";\n ERROR[ERROR[\"CLOSED_CONNECTION\"] = 5] = \"CLOSED_CONNECTION\";\n ERROR[ERROR[\"INVALID_METHOD\"] = 6] = \"INVALID_METHOD\";\n ERROR[ERROR[\"INVALID_URL\"] = 7] = \"INVALID_URL\";\n ERROR[ERROR[\"INVALID_CONSTANT\"] = 8] = \"INVALID_CONSTANT\";\n ERROR[ERROR[\"INVALID_VERSION\"] = 9] = \"INVALID_VERSION\";\n ERROR[ERROR[\"INVALID_HEADER_TOKEN\"] = 10] = \"INVALID_HEADER_TOKEN\";\n ERROR[ERROR[\"INVALID_CONTENT_LENGTH\"] = 11] = \"INVALID_CONTENT_LENGTH\";\n ERROR[ERROR[\"INVALID_CHUNK_SIZE\"] = 12] = \"INVALID_CHUNK_SIZE\";\n ERROR[ERROR[\"INVALID_STATUS\"] = 13] = \"INVALID_STATUS\";\n ERROR[ERROR[\"INVALID_EOF_STATE\"] = 14] = \"INVALID_EOF_STATE\";\n ERROR[ERROR[\"INVALID_TRANSFER_ENCODING\"] = 15] = \"INVALID_TRANSFER_ENCODING\";\n ERROR[ERROR[\"CB_MESSAGE_BEGIN\"] = 16] = \"CB_MESSAGE_BEGIN\";\n ERROR[ERROR[\"CB_HEADERS_COMPLETE\"] = 17] = \"CB_HEADERS_COMPLETE\";\n ERROR[ERROR[\"CB_MESSAGE_COMPLETE\"] = 18] = \"CB_MESSAGE_COMPLETE\";\n ERROR[ERROR[\"CB_CHUNK_HEADER\"] = 19] = \"CB_CHUNK_HEADER\";\n ERROR[ERROR[\"CB_CHUNK_COMPLETE\"] = 20] = \"CB_CHUNK_COMPLETE\";\n ERROR[ERROR[\"PAUSED\"] = 21] = \"PAUSED\";\n ERROR[ERROR[\"PAUSED_UPGRADE\"] = 22] = \"PAUSED_UPGRADE\";\n ERROR[ERROR[\"PAUSED_H2_UPGRADE\"] = 23] = \"PAUSED_H2_UPGRADE\";\n ERROR[ERROR[\"USER\"] = 24] = \"USER\";\n})(ERROR = exports.ERROR || (exports.ERROR = {}));\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"BOTH\"] = 0] = \"BOTH\";\n TYPE[TYPE[\"REQUEST\"] = 1] = \"REQUEST\";\n TYPE[TYPE[\"RESPONSE\"] = 2] = \"RESPONSE\";\n})(TYPE = exports.TYPE || (exports.TYPE = {}));\nvar FLAGS;\n(function (FLAGS) {\n FLAGS[FLAGS[\"CONNECTION_KEEP_ALIVE\"] = 1] = \"CONNECTION_KEEP_ALIVE\";\n FLAGS[FLAGS[\"CONNECTION_CLOSE\"] = 2] = \"CONNECTION_CLOSE\";\n FLAGS[FLAGS[\"CONNECTION_UPGRADE\"] = 4] = \"CONNECTION_UPGRADE\";\n FLAGS[FLAGS[\"CHUNKED\"] = 8] = \"CHUNKED\";\n FLAGS[FLAGS[\"UPGRADE\"] = 16] = \"UPGRADE\";\n FLAGS[FLAGS[\"CONTENT_LENGTH\"] = 32] = \"CONTENT_LENGTH\";\n FLAGS[FLAGS[\"SKIPBODY\"] = 64] = \"SKIPBODY\";\n FLAGS[FLAGS[\"TRAILING\"] = 128] = \"TRAILING\";\n // 1 << 8 is unused\n FLAGS[FLAGS[\"TRANSFER_ENCODING\"] = 512] = \"TRANSFER_ENCODING\";\n})(FLAGS = exports.FLAGS || (exports.FLAGS = {}));\nvar LENIENT_FLAGS;\n(function (LENIENT_FLAGS) {\n LENIENT_FLAGS[LENIENT_FLAGS[\"HEADERS\"] = 1] = \"HEADERS\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"CHUNKED_LENGTH\"] = 2] = \"CHUNKED_LENGTH\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"KEEP_ALIVE\"] = 4] = \"KEEP_ALIVE\";\n})(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {}));\nvar METHODS;\n(function (METHODS) {\n METHODS[METHODS[\"DELETE\"] = 0] = \"DELETE\";\n METHODS[METHODS[\"GET\"] = 1] = \"GET\";\n METHODS[METHODS[\"HEAD\"] = 2] = \"HEAD\";\n METHODS[METHODS[\"POST\"] = 3] = \"POST\";\n METHODS[METHODS[\"PUT\"] = 4] = \"PUT\";\n /* pathological */\n METHODS[METHODS[\"CONNECT\"] = 5] = \"CONNECT\";\n METHODS[METHODS[\"OPTIONS\"] = 6] = \"OPTIONS\";\n METHODS[METHODS[\"TRACE\"] = 7] = \"TRACE\";\n /* WebDAV */\n METHODS[METHODS[\"COPY\"] = 8] = \"COPY\";\n METHODS[METHODS[\"LOCK\"] = 9] = \"LOCK\";\n METHODS[METHODS[\"MKCOL\"] = 10] = \"MKCOL\";\n METHODS[METHODS[\"MOVE\"] = 11] = \"MOVE\";\n METHODS[METHODS[\"PROPFIND\"] = 12] = \"PROPFIND\";\n METHODS[METHODS[\"PROPPATCH\"] = 13] = \"PROPPATCH\";\n METHODS[METHODS[\"SEARCH\"] = 14] = \"SEARCH\";\n METHODS[METHODS[\"UNLOCK\"] = 15] = \"UNLOCK\";\n METHODS[METHODS[\"BIND\"] = 16] = \"BIND\";\n METHODS[METHODS[\"REBIND\"] = 17] = \"REBIND\";\n METHODS[METHODS[\"UNBIND\"] = 18] = \"UNBIND\";\n METHODS[METHODS[\"ACL\"] = 19] = \"ACL\";\n /* subversion */\n METHODS[METHODS[\"REPORT\"] = 20] = \"REPORT\";\n METHODS[METHODS[\"MKACTIVITY\"] = 21] = \"MKACTIVITY\";\n METHODS[METHODS[\"CHECKOUT\"] = 22] = \"CHECKOUT\";\n METHODS[METHODS[\"MERGE\"] = 23] = \"MERGE\";\n /* upnp */\n METHODS[METHODS[\"M-SEARCH\"] = 24] = \"M-SEARCH\";\n METHODS[METHODS[\"NOTIFY\"] = 25] = \"NOTIFY\";\n METHODS[METHODS[\"SUBSCRIBE\"] = 26] = \"SUBSCRIBE\";\n METHODS[METHODS[\"UNSUBSCRIBE\"] = 27] = \"UNSUBSCRIBE\";\n /* RFC-5789 */\n METHODS[METHODS[\"PATCH\"] = 28] = \"PATCH\";\n METHODS[METHODS[\"PURGE\"] = 29] = \"PURGE\";\n /* CalDAV */\n METHODS[METHODS[\"MKCALENDAR\"] = 30] = \"MKCALENDAR\";\n /* RFC-2068, section 19.6.1.2 */\n METHODS[METHODS[\"LINK\"] = 31] = \"LINK\";\n METHODS[METHODS[\"UNLINK\"] = 32] = \"UNLINK\";\n /* icecast */\n METHODS[METHODS[\"SOURCE\"] = 33] = \"SOURCE\";\n /* RFC-7540, section 11.6 */\n METHODS[METHODS[\"PRI\"] = 34] = \"PRI\";\n /* RFC-2326 RTSP */\n METHODS[METHODS[\"DESCRIBE\"] = 35] = \"DESCRIBE\";\n METHODS[METHODS[\"ANNOUNCE\"] = 36] = \"ANNOUNCE\";\n METHODS[METHODS[\"SETUP\"] = 37] = \"SETUP\";\n METHODS[METHODS[\"PLAY\"] = 38] = \"PLAY\";\n METHODS[METHODS[\"PAUSE\"] = 39] = \"PAUSE\";\n METHODS[METHODS[\"TEARDOWN\"] = 40] = \"TEARDOWN\";\n METHODS[METHODS[\"GET_PARAMETER\"] = 41] = \"GET_PARAMETER\";\n METHODS[METHODS[\"SET_PARAMETER\"] = 42] = \"SET_PARAMETER\";\n METHODS[METHODS[\"REDIRECT\"] = 43] = \"REDIRECT\";\n METHODS[METHODS[\"RECORD\"] = 44] = \"RECORD\";\n /* RAOP */\n METHODS[METHODS[\"FLUSH\"] = 45] = \"FLUSH\";\n})(METHODS = exports.METHODS || (exports.METHODS = {}));\nexports.METHODS_HTTP = [\n METHODS.DELETE,\n METHODS.GET,\n METHODS.HEAD,\n METHODS.POST,\n METHODS.PUT,\n METHODS.CONNECT,\n METHODS.OPTIONS,\n METHODS.TRACE,\n METHODS.COPY,\n METHODS.LOCK,\n METHODS.MKCOL,\n METHODS.MOVE,\n METHODS.PROPFIND,\n METHODS.PROPPATCH,\n METHODS.SEARCH,\n METHODS.UNLOCK,\n METHODS.BIND,\n METHODS.REBIND,\n METHODS.UNBIND,\n METHODS.ACL,\n METHODS.REPORT,\n METHODS.MKACTIVITY,\n METHODS.CHECKOUT,\n METHODS.MERGE,\n METHODS['M-SEARCH'],\n METHODS.NOTIFY,\n METHODS.SUBSCRIBE,\n METHODS.UNSUBSCRIBE,\n METHODS.PATCH,\n METHODS.PURGE,\n METHODS.MKCALENDAR,\n METHODS.LINK,\n METHODS.UNLINK,\n METHODS.PRI,\n // TODO(indutny): should we allow it with HTTP?\n METHODS.SOURCE,\n];\nexports.METHODS_ICE = [\n METHODS.SOURCE,\n];\nexports.METHODS_RTSP = [\n METHODS.OPTIONS,\n METHODS.DESCRIBE,\n METHODS.ANNOUNCE,\n METHODS.SETUP,\n METHODS.PLAY,\n METHODS.PAUSE,\n METHODS.TEARDOWN,\n METHODS.GET_PARAMETER,\n METHODS.SET_PARAMETER,\n METHODS.REDIRECT,\n METHODS.RECORD,\n METHODS.FLUSH,\n // For AirPlay\n METHODS.GET,\n METHODS.POST,\n];\nexports.METHOD_MAP = utils_1.enumToMap(METHODS);\nexports.H_METHOD_MAP = {};\nObject.keys(exports.METHOD_MAP).forEach((key) => {\n if (/^H/.test(key)) {\n exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key];\n }\n});\nvar FINISH;\n(function (FINISH) {\n FINISH[FINISH[\"SAFE\"] = 0] = \"SAFE\";\n FINISH[FINISH[\"SAFE_WITH_CB\"] = 1] = \"SAFE_WITH_CB\";\n FINISH[FINISH[\"UNSAFE\"] = 2] = \"UNSAFE\";\n})(FINISH = exports.FINISH || (exports.FINISH = {}));\nexports.ALPHA = [];\nfor (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) {\n // Upper case\n exports.ALPHA.push(String.fromCharCode(i));\n // Lower case\n exports.ALPHA.push(String.fromCharCode(i + 0x20));\n}\nexports.NUM_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n};\nexports.HEX_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF,\n a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf,\n};\nexports.NUM = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n];\nexports.ALPHANUM = exports.ALPHA.concat(exports.NUM);\nexports.MARK = ['-', '_', '.', '!', '~', '*', '\\'', '(', ')'];\nexports.USERINFO_CHARS = exports.ALPHANUM\n .concat(exports.MARK)\n .concat(['%', ';', ':', '&', '=', '+', '$', ',']);\n// TODO(indutny): use RFC\nexports.STRICT_URL_CHAR = [\n '!', '\"', '$', '%', '&', '\\'',\n '(', ')', '*', '+', ',', '-', '.', '/',\n ':', ';', '<', '=', '>',\n '@', '[', '\\\\', ']', '^', '_',\n '`',\n '{', '|', '}', '~',\n].concat(exports.ALPHANUM);\nexports.URL_CHAR = exports.STRICT_URL_CHAR\n .concat(['\\t', '\\f']);\n// All characters with 0x80 bit set to 1\nfor (let i = 0x80; i <= 0xff; i++) {\n exports.URL_CHAR.push(i);\n}\nexports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']);\n/* Tokens as defined by rfc 2616. Also lowercases them.\n * token = 1*\n * separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n * | \",\" | \";\" | \":\" | \"\\\" | <\">\n * | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n * | \"{\" | \"}\" | SP | HT\n */\nexports.STRICT_TOKEN = [\n '!', '#', '$', '%', '&', '\\'',\n '*', '+', '-', '.',\n '^', '_', '`',\n '|', '~',\n].concat(exports.ALPHANUM);\nexports.TOKEN = exports.STRICT_TOKEN.concat([' ']);\n/*\n * Verify that a char is a valid visible (printable) US-ASCII\n * character or %x80-FF\n */\nexports.HEADER_CHARS = ['\\t'];\nfor (let i = 32; i <= 255; i++) {\n if (i !== 127) {\n exports.HEADER_CHARS.push(i);\n }\n}\n// ',' = \\x44\nexports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);\nexports.MAJOR = exports.NUM_MAP;\nexports.MINOR = exports.MAJOR;\nvar HEADER_STATE;\n(function (HEADER_STATE) {\n HEADER_STATE[HEADER_STATE[\"GENERAL\"] = 0] = \"GENERAL\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION\"] = 1] = \"CONNECTION\";\n HEADER_STATE[HEADER_STATE[\"CONTENT_LENGTH\"] = 2] = \"CONTENT_LENGTH\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING\"] = 3] = \"TRANSFER_ENCODING\";\n HEADER_STATE[HEADER_STATE[\"UPGRADE\"] = 4] = \"UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_KEEP_ALIVE\"] = 5] = \"CONNECTION_KEEP_ALIVE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_CLOSE\"] = 6] = \"CONNECTION_CLOSE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_UPGRADE\"] = 7] = \"CONNECTION_UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING_CHUNKED\"] = 8] = \"TRANSFER_ENCODING_CHUNKED\";\n})(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {}));\nexports.SPECIAL_HEADERS = {\n 'connection': HEADER_STATE.CONNECTION,\n 'content-length': HEADER_STATE.CONTENT_LENGTH,\n 'proxy-connection': HEADER_STATE.CONNECTION,\n 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING,\n 'upgrade': HEADER_STATE.UPGRADE,\n};\n//# sourceMappingURL=constants.js.map", "'use strict'\n\nconst { Buffer } = require('node:buffer')\n\nmodule.exports = Buffer.from('AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAY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jNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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QwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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YCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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AQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==', 'base64')\n", "'use strict'\n\nconst corsSafeListedMethods = /** @type {const} */ (['GET', 'HEAD', 'POST'])\nconst corsSafeListedMethodsSet = new Set(corsSafeListedMethods)\n\nconst nullBodyStatus = /** @type {const} */ ([101, 204, 205, 304])\n\nconst redirectStatus = /** @type {const} */ ([301, 302, 303, 307, 308])\nconst redirectStatusSet = new Set(redirectStatus)\n\n/**\n * @see https://fetch.spec.whatwg.org/#block-bad-port\n */\nconst badPorts = /** @type {const} */ ([\n '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79',\n '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137',\n '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532',\n '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723',\n '2049', '3659', '4045', '4190', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6679',\n '6697', '10080'\n])\nconst badPortsSet = new Set(badPorts)\n\n/**\n * @see https://w3c.github.io/webappsec-referrer-policy/#referrer-policies\n */\nconst referrerPolicy = /** @type {const} */ ([\n '',\n 'no-referrer',\n 'no-referrer-when-downgrade',\n 'same-origin',\n 'origin',\n 'strict-origin',\n 'origin-when-cross-origin',\n 'strict-origin-when-cross-origin',\n 'unsafe-url'\n])\nconst referrerPolicySet = new Set(referrerPolicy)\n\nconst requestRedirect = /** @type {const} */ (['follow', 'manual', 'error'])\n\nconst safeMethods = /** @type {const} */ (['GET', 'HEAD', 'OPTIONS', 'TRACE'])\nconst safeMethodsSet = new Set(safeMethods)\n\nconst requestMode = /** @type {const} */ (['navigate', 'same-origin', 'no-cors', 'cors'])\n\nconst requestCredentials = /** @type {const} */ (['omit', 'same-origin', 'include'])\n\nconst requestCache = /** @type {const} */ ([\n 'default',\n 'no-store',\n 'reload',\n 'no-cache',\n 'force-cache',\n 'only-if-cached'\n])\n\n/**\n * @see https://fetch.spec.whatwg.org/#request-body-header-name\n */\nconst requestBodyHeader = /** @type {const} */ ([\n 'content-encoding',\n 'content-language',\n 'content-location',\n 'content-type',\n // See https://github.com/nodejs/undici/issues/2021\n // 'Content-Length' is a forbidden header name, which is typically\n // removed in the Headers implementation. However, undici doesn't\n // filter out headers, so we add it here.\n 'content-length'\n])\n\n/**\n * @see https://fetch.spec.whatwg.org/#enumdef-requestduplex\n */\nconst requestDuplex = /** @type {const} */ ([\n 'half'\n])\n\n/**\n * @see http://fetch.spec.whatwg.org/#forbidden-method\n */\nconst forbiddenMethods = /** @type {const} */ (['CONNECT', 'TRACE', 'TRACK'])\nconst forbiddenMethodsSet = new Set(forbiddenMethods)\n\nconst subresource = /** @type {const} */ ([\n 'audio',\n 'audioworklet',\n 'font',\n 'image',\n 'manifest',\n 'paintworklet',\n 'script',\n 'style',\n 'track',\n 'video',\n 'xslt',\n ''\n])\nconst subresourceSet = new Set(subresource)\n\nmodule.exports = {\n subresource,\n forbiddenMethods,\n requestBodyHeader,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n redirectStatus,\n corsSafeListedMethods,\n nullBodyStatus,\n safeMethods,\n badPorts,\n requestDuplex,\n subresourceSet,\n badPortsSet,\n redirectStatusSet,\n corsSafeListedMethodsSet,\n safeMethodsSet,\n forbiddenMethodsSet,\n referrerPolicySet\n}\n", "'use strict'\n\n// In case of breaking changes, increase the version\n// number to avoid conflicts.\nconst globalOrigin = Symbol.for('undici.globalOrigin.1')\n\nfunction getGlobalOrigin () {\n return globalThis[globalOrigin]\n}\n\nfunction setGlobalOrigin (newOrigin) {\n if (newOrigin === undefined) {\n Object.defineProperty(globalThis, globalOrigin, {\n value: undefined,\n writable: true,\n enumerable: false,\n configurable: false\n })\n\n return\n }\n\n const parsedURL = new URL(newOrigin)\n\n if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') {\n throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`)\n }\n\n Object.defineProperty(globalThis, globalOrigin, {\n value: parsedURL,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nmodule.exports = {\n getGlobalOrigin,\n setGlobalOrigin\n}\n", "'use strict'\n\nconst assert = require('node:assert')\n\nconst encoder = new TextEncoder()\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-token-code-point\n */\nconst HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+\\-.^_|~A-Za-z0-9]+$/\nconst HTTP_WHITESPACE_REGEX = /[\\u000A\\u000D\\u0009\\u0020]/ // eslint-disable-line\nconst ASCII_WHITESPACE_REPLACE_REGEX = /[\\u0009\\u000A\\u000C\\u000D\\u0020]/g // eslint-disable-line\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point\n */\nconst HTTP_QUOTED_STRING_TOKENS = /^[\\u0009\\u0020-\\u007E\\u0080-\\u00FF]+$/ // eslint-disable-line\n\n// https://fetch.spec.whatwg.org/#data-url-processor\n/** @param {URL} dataURL */\nfunction dataURLProcessor (dataURL) {\n // 1. Assert: dataURL\u2019s scheme is \"data\".\n assert(dataURL.protocol === 'data:')\n\n // 2. Let input be the result of running the URL\n // serializer on dataURL with exclude fragment\n // set to true.\n let input = URLSerializer(dataURL, true)\n\n // 3. Remove the leading \"data:\" string from input.\n input = input.slice(5)\n\n // 4. Let position point at the start of input.\n const position = { position: 0 }\n\n // 5. Let mimeType be the result of collecting a\n // sequence of code points that are not equal\n // to U+002C (,), given position.\n let mimeType = collectASequenceOfCodePointsFast(\n ',',\n input,\n position\n )\n\n // 6. Strip leading and trailing ASCII whitespace\n // from mimeType.\n // Undici implementation note: we need to store the\n // length because if the mimetype has spaces removed,\n // the wrong amount will be sliced from the input in\n // step #9\n const mimeTypeLength = mimeType.length\n mimeType = removeASCIIWhitespace(mimeType, true, true)\n\n // 7. If position is past the end of input, then\n // return failure\n if (position.position >= input.length) {\n return 'failure'\n }\n\n // 8. Advance position by 1.\n position.position++\n\n // 9. Let encodedBody be the remainder of input.\n const encodedBody = input.slice(mimeTypeLength + 1)\n\n // 10. Let body be the percent-decoding of encodedBody.\n let body = stringPercentDecode(encodedBody)\n\n // 11. If mimeType ends with U+003B (;), followed by\n // zero or more U+0020 SPACE, followed by an ASCII\n // case-insensitive match for \"base64\", then:\n if (/;(\\u0020){0,}base64$/i.test(mimeType)) {\n // 1. Let stringBody be the isomorphic decode of body.\n const stringBody = isomorphicDecode(body)\n\n // 2. Set body to the forgiving-base64 decode of\n // stringBody.\n body = forgivingBase64(stringBody)\n\n // 3. If body is failure, then return failure.\n if (body === 'failure') {\n return 'failure'\n }\n\n // 4. Remove the last 6 code points from mimeType.\n mimeType = mimeType.slice(0, -6)\n\n // 5. Remove trailing U+0020 SPACE code points from mimeType,\n // if any.\n mimeType = mimeType.replace(/(\\u0020)+$/, '')\n\n // 6. Remove the last U+003B (;) code point from mimeType.\n mimeType = mimeType.slice(0, -1)\n }\n\n // 12. If mimeType starts with U+003B (;), then prepend\n // \"text/plain\" to mimeType.\n if (mimeType.startsWith(';')) {\n mimeType = 'text/plain' + mimeType\n }\n\n // 13. Let mimeTypeRecord be the result of parsing\n // mimeType.\n let mimeTypeRecord = parseMIMEType(mimeType)\n\n // 14. If mimeTypeRecord is failure, then set\n // mimeTypeRecord to text/plain;charset=US-ASCII.\n if (mimeTypeRecord === 'failure') {\n mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII')\n }\n\n // 15. Return a new data: URL struct whose MIME\n // type is mimeTypeRecord and body is body.\n // https://fetch.spec.whatwg.org/#data-url-struct\n return { mimeType: mimeTypeRecord, body }\n}\n\n// https://url.spec.whatwg.org/#concept-url-serializer\n/**\n * @param {URL} url\n * @param {boolean} excludeFragment\n */\nfunction URLSerializer (url, excludeFragment = false) {\n if (!excludeFragment) {\n return url.href\n }\n\n const href = url.href\n const hashLength = url.hash.length\n\n const serialized = hashLength === 0 ? href : href.substring(0, href.length - hashLength)\n\n if (!hashLength && href.endsWith('#')) {\n return serialized.slice(0, -1)\n }\n\n return serialized\n}\n\n// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points\n/**\n * @param {(char: string) => boolean} condition\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePoints (condition, input, position) {\n // 1. Let result be the empty string.\n let result = ''\n\n // 2. While position doesn\u2019t point past the end of input and the\n // code point at position within input meets the condition condition:\n while (position.position < input.length && condition(input[position.position])) {\n // 1. Append that code point to the end of result.\n result += input[position.position]\n\n // 2. Advance position by 1.\n position.position++\n }\n\n // 3. Return result.\n return result\n}\n\n/**\n * A faster collectASequenceOfCodePoints that only works when comparing a single character.\n * @param {string} char\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePointsFast (char, input, position) {\n const idx = input.indexOf(char, position.position)\n const start = position.position\n\n if (idx === -1) {\n position.position = input.length\n return input.slice(start)\n }\n\n position.position = idx\n return input.slice(start, position.position)\n}\n\n// https://url.spec.whatwg.org/#string-percent-decode\n/** @param {string} input */\nfunction stringPercentDecode (input) {\n // 1. Let bytes be the UTF-8 encoding of input.\n const bytes = encoder.encode(input)\n\n // 2. Return the percent-decoding of bytes.\n return percentDecode(bytes)\n}\n\n/**\n * @param {number} byte\n */\nfunction isHexCharByte (byte) {\n // 0-9 A-F a-f\n return (byte >= 0x30 && byte <= 0x39) || (byte >= 0x41 && byte <= 0x46) || (byte >= 0x61 && byte <= 0x66)\n}\n\n/**\n * @param {number} byte\n */\nfunction hexByteToNumber (byte) {\n return (\n // 0-9\n byte >= 0x30 && byte <= 0x39\n ? (byte - 48)\n // Convert to uppercase\n // ((byte & 0xDF) - 65) + 10\n : ((byte & 0xDF) - 55)\n )\n}\n\n// https://url.spec.whatwg.org/#percent-decode\n/** @param {Uint8Array} input */\nfunction percentDecode (input) {\n const length = input.length\n // 1. Let output be an empty byte sequence.\n /** @type {Uint8Array} */\n const output = new Uint8Array(length)\n let j = 0\n // 2. For each byte byte in input:\n for (let i = 0; i < length; ++i) {\n const byte = input[i]\n\n // 1. If byte is not 0x25 (%), then append byte to output.\n if (byte !== 0x25) {\n output[j++] = byte\n\n // 2. Otherwise, if byte is 0x25 (%) and the next two bytes\n // after byte in input are not in the ranges\n // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),\n // and 0x61 (a) to 0x66 (f), all inclusive, append byte\n // to output.\n } else if (\n byte === 0x25 &&\n !(isHexCharByte(input[i + 1]) && isHexCharByte(input[i + 2]))\n ) {\n output[j++] = 0x25\n\n // 3. Otherwise:\n } else {\n // 1. Let bytePoint be the two bytes after byte in input,\n // decoded, and then interpreted as hexadecimal number.\n // 2. Append a byte whose value is bytePoint to output.\n output[j++] = (hexByteToNumber(input[i + 1]) << 4) | hexByteToNumber(input[i + 2])\n\n // 3. Skip the next two bytes in input.\n i += 2\n }\n }\n\n // 3. Return output.\n return length === j ? output : output.subarray(0, j)\n}\n\n// https://mimesniff.spec.whatwg.org/#parse-a-mime-type\n/** @param {string} input */\nfunction parseMIMEType (input) {\n // 1. Remove any leading and trailing HTTP whitespace\n // from input.\n input = removeHTTPWhitespace(input, true, true)\n\n // 2. Let position be a position variable for input,\n // initially pointing at the start of input.\n const position = { position: 0 }\n\n // 3. Let type be the result of collecting a sequence\n // of code points that are not U+002F (/) from\n // input, given position.\n const type = collectASequenceOfCodePointsFast(\n '/',\n input,\n position\n )\n\n // 4. If type is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n // https://mimesniff.spec.whatwg.org/#http-token-code-point\n if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {\n return 'failure'\n }\n\n // 5. If position is past the end of input, then return\n // failure\n if (position.position > input.length) {\n return 'failure'\n }\n\n // 6. Advance position by 1. (This skips past U+002F (/).)\n position.position++\n\n // 7. Let subtype be the result of collecting a sequence of\n // code points that are not U+003B (;) from input, given\n // position.\n let subtype = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 8. Remove any trailing HTTP whitespace from subtype.\n subtype = removeHTTPWhitespace(subtype, false, true)\n\n // 9. If subtype is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {\n return 'failure'\n }\n\n const typeLowercase = type.toLowerCase()\n const subtypeLowercase = subtype.toLowerCase()\n\n // 10. Let mimeType be a new MIME type record whose type\n // is type, in ASCII lowercase, and subtype is subtype,\n // in ASCII lowercase.\n // https://mimesniff.spec.whatwg.org/#mime-type\n const mimeType = {\n type: typeLowercase,\n subtype: subtypeLowercase,\n /** @type {Map} */\n parameters: new Map(),\n // https://mimesniff.spec.whatwg.org/#mime-type-essence\n essence: `${typeLowercase}/${subtypeLowercase}`\n }\n\n // 11. While position is not past the end of input:\n while (position.position < input.length) {\n // 1. Advance position by 1. (This skips past U+003B (;).)\n position.position++\n\n // 2. Collect a sequence of code points that are HTTP\n // whitespace from input given position.\n collectASequenceOfCodePoints(\n // https://fetch.spec.whatwg.org/#http-whitespace\n char => HTTP_WHITESPACE_REGEX.test(char),\n input,\n position\n )\n\n // 3. Let parameterName be the result of collecting a\n // sequence of code points that are not U+003B (;)\n // or U+003D (=) from input, given position.\n let parameterName = collectASequenceOfCodePoints(\n (char) => char !== ';' && char !== '=',\n input,\n position\n )\n\n // 4. Set parameterName to parameterName, in ASCII\n // lowercase.\n parameterName = parameterName.toLowerCase()\n\n // 5. If position is not past the end of input, then:\n if (position.position < input.length) {\n // 1. If the code point at position within input is\n // U+003B (;), then continue.\n if (input[position.position] === ';') {\n continue\n }\n\n // 2. Advance position by 1. (This skips past U+003D (=).)\n position.position++\n }\n\n // 6. If position is past the end of input, then break.\n if (position.position > input.length) {\n break\n }\n\n // 7. Let parameterValue be null.\n let parameterValue = null\n\n // 8. If the code point at position within input is\n // U+0022 (\"), then:\n if (input[position.position] === '\"') {\n // 1. Set parameterValue to the result of collecting\n // an HTTP quoted string from input, given position\n // and the extract-value flag.\n parameterValue = collectAnHTTPQuotedString(input, position, true)\n\n // 2. Collect a sequence of code points that are not\n // U+003B (;) from input, given position.\n collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 9. Otherwise:\n } else {\n // 1. Set parameterValue to the result of collecting\n // a sequence of code points that are not U+003B (;)\n // from input, given position.\n parameterValue = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 2. Remove any trailing HTTP whitespace from parameterValue.\n parameterValue = removeHTTPWhitespace(parameterValue, false, true)\n\n // 3. If parameterValue is the empty string, then continue.\n if (parameterValue.length === 0) {\n continue\n }\n }\n\n // 10. If all of the following are true\n // - parameterName is not the empty string\n // - parameterName solely contains HTTP token code points\n // - parameterValue solely contains HTTP quoted-string token code points\n // - mimeType\u2019s parameters[parameterName] does not exist\n // then set mimeType\u2019s parameters[parameterName] to parameterValue.\n if (\n parameterName.length !== 0 &&\n HTTP_TOKEN_CODEPOINTS.test(parameterName) &&\n (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&\n !mimeType.parameters.has(parameterName)\n ) {\n mimeType.parameters.set(parameterName, parameterValue)\n }\n }\n\n // 12. Return mimeType.\n return mimeType\n}\n\n// https://infra.spec.whatwg.org/#forgiving-base64-decode\n/** @param {string} data */\nfunction forgivingBase64 (data) {\n // 1. Remove all ASCII whitespace from data.\n data = data.replace(ASCII_WHITESPACE_REPLACE_REGEX, '') // eslint-disable-line\n\n let dataLength = data.length\n // 2. If data\u2019s code point length divides by 4 leaving\n // no remainder, then:\n if (dataLength % 4 === 0) {\n // 1. If data ends with one or two U+003D (=) code points,\n // then remove them from data.\n if (data.charCodeAt(dataLength - 1) === 0x003D) {\n --dataLength\n if (data.charCodeAt(dataLength - 1) === 0x003D) {\n --dataLength\n }\n }\n }\n\n // 3. If data\u2019s code point length divides by 4 leaving\n // a remainder of 1, then return failure.\n if (dataLength % 4 === 1) {\n return 'failure'\n }\n\n // 4. If data contains a code point that is not one of\n // U+002B (+)\n // U+002F (/)\n // ASCII alphanumeric\n // then return failure.\n if (/[^+/0-9A-Za-z]/.test(data.length === dataLength ? data : data.substring(0, dataLength))) {\n return 'failure'\n }\n\n const buffer = Buffer.from(data, 'base64')\n return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength)\n}\n\n// https://fetch.spec.whatwg.org/#collect-an-http-quoted-string\n// tests: https://fetch.spec.whatwg.org/#example-http-quoted-string\n/**\n * @param {string} input\n * @param {{ position: number }} position\n * @param {boolean?} extractValue\n */\nfunction collectAnHTTPQuotedString (input, position, extractValue) {\n // 1. Let positionStart be position.\n const positionStart = position.position\n\n // 2. Let value be the empty string.\n let value = ''\n\n // 3. Assert: the code point at position within input\n // is U+0022 (\").\n assert(input[position.position] === '\"')\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. While true:\n while (true) {\n // 1. Append the result of collecting a sequence of code points\n // that are not U+0022 (\") or U+005C (\\) from input, given\n // position, to value.\n value += collectASequenceOfCodePoints(\n (char) => char !== '\"' && char !== '\\\\',\n input,\n position\n )\n\n // 2. If position is past the end of input, then break.\n if (position.position >= input.length) {\n break\n }\n\n // 3. Let quoteOrBackslash be the code point at position within\n // input.\n const quoteOrBackslash = input[position.position]\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. If quoteOrBackslash is U+005C (\\), then:\n if (quoteOrBackslash === '\\\\') {\n // 1. If position is past the end of input, then append\n // U+005C (\\) to value and break.\n if (position.position >= input.length) {\n value += '\\\\'\n break\n }\n\n // 2. Append the code point at position within input to value.\n value += input[position.position]\n\n // 3. Advance position by 1.\n position.position++\n\n // 6. Otherwise:\n } else {\n // 1. Assert: quoteOrBackslash is U+0022 (\").\n assert(quoteOrBackslash === '\"')\n\n // 2. Break.\n break\n }\n }\n\n // 6. If the extract-value flag is set, then return value.\n if (extractValue) {\n return value\n }\n\n // 7. Return the code points from positionStart to position,\n // inclusive, within input.\n return input.slice(positionStart, position.position)\n}\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type\n */\nfunction serializeAMimeType (mimeType) {\n assert(mimeType !== 'failure')\n const { parameters, essence } = mimeType\n\n // 1. Let serialization be the concatenation of mimeType\u2019s\n // type, U+002F (/), and mimeType\u2019s subtype.\n let serialization = essence\n\n // 2. For each name \u2192 value of mimeType\u2019s parameters:\n for (let [name, value] of parameters.entries()) {\n // 1. Append U+003B (;) to serialization.\n serialization += ';'\n\n // 2. Append name to serialization.\n serialization += name\n\n // 3. Append U+003D (=) to serialization.\n serialization += '='\n\n // 4. If value does not solely contain HTTP token code\n // points or value is the empty string, then:\n if (!HTTP_TOKEN_CODEPOINTS.test(value)) {\n // 1. Precede each occurrence of U+0022 (\") or\n // U+005C (\\) in value with U+005C (\\).\n value = value.replace(/(\\\\|\")/g, '\\\\$1')\n\n // 2. Prepend U+0022 (\") to value.\n value = '\"' + value\n\n // 3. Append U+0022 (\") to value.\n value += '\"'\n }\n\n // 5. Append value to serialization.\n serialization += value\n }\n\n // 3. Return serialization.\n return serialization\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {number} char\n */\nfunction isHTTPWhiteSpace (char) {\n // \"\\r\\n\\t \"\n return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x020\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {string} str\n * @param {boolean} [leading=true]\n * @param {boolean} [trailing=true]\n */\nfunction removeHTTPWhitespace (str, leading = true, trailing = true) {\n return removeChars(str, leading, trailing, isHTTPWhiteSpace)\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#ascii-whitespace\n * @param {number} char\n */\nfunction isASCIIWhitespace (char) {\n // \"\\r\\n\\t\\f \"\n return char === 0x00d || char === 0x00a || char === 0x009 || char === 0x00c || char === 0x020\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace\n * @param {string} str\n * @param {boolean} [leading=true]\n * @param {boolean} [trailing=true]\n */\nfunction removeASCIIWhitespace (str, leading = true, trailing = true) {\n return removeChars(str, leading, trailing, isASCIIWhitespace)\n}\n\n/**\n * @param {string} str\n * @param {boolean} leading\n * @param {boolean} trailing\n * @param {(charCode: number) => boolean} predicate\n * @returns\n */\nfunction removeChars (str, leading, trailing, predicate) {\n let lead = 0\n let trail = str.length - 1\n\n if (leading) {\n while (lead < str.length && predicate(str.charCodeAt(lead))) lead++\n }\n\n if (trailing) {\n while (trail > 0 && predicate(str.charCodeAt(trail))) trail--\n }\n\n return lead === 0 && trail === str.length - 1 ? str : str.slice(lead, trail + 1)\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-decode\n * @param {Uint8Array} input\n * @returns {string}\n */\nfunction isomorphicDecode (input) {\n // 1. To isomorphic decode a byte sequence input, return a string whose code point\n // length is equal to input\u2019s length and whose code points have the same values\n // as the values of input\u2019s bytes, in the same order.\n const length = input.length\n if ((2 << 15) - 1 > length) {\n return String.fromCharCode.apply(null, input)\n }\n let result = ''; let i = 0\n let addition = (2 << 15) - 1\n while (i < length) {\n if (i + addition > length) {\n addition = length - i\n }\n result += String.fromCharCode.apply(null, input.subarray(i, i += addition))\n }\n return result\n}\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#minimize-a-supported-mime-type\n * @param {Exclude, 'failure'>} mimeType\n */\nfunction minimizeSupportedMimeType (mimeType) {\n switch (mimeType.essence) {\n case 'application/ecmascript':\n case 'application/javascript':\n case 'application/x-ecmascript':\n case 'application/x-javascript':\n case 'text/ecmascript':\n case 'text/javascript':\n case 'text/javascript1.0':\n case 'text/javascript1.1':\n case 'text/javascript1.2':\n case 'text/javascript1.3':\n case 'text/javascript1.4':\n case 'text/javascript1.5':\n case 'text/jscript':\n case 'text/livescript':\n case 'text/x-ecmascript':\n case 'text/x-javascript':\n // 1. If mimeType is a JavaScript MIME type, then return \"text/javascript\".\n return 'text/javascript'\n case 'application/json':\n case 'text/json':\n // 2. If mimeType is a JSON MIME type, then return \"application/json\".\n return 'application/json'\n case 'image/svg+xml':\n // 3. If mimeType\u2019s essence is \"image/svg+xml\", then return \"image/svg+xml\".\n return 'image/svg+xml'\n case 'text/xml':\n case 'application/xml':\n // 4. If mimeType is an XML MIME type, then return \"application/xml\".\n return 'application/xml'\n }\n\n // 2. If mimeType is a JSON MIME type, then return \"application/json\".\n if (mimeType.subtype.endsWith('+json')) {\n return 'application/json'\n }\n\n // 4. If mimeType is an XML MIME type, then return \"application/xml\".\n if (mimeType.subtype.endsWith('+xml')) {\n return 'application/xml'\n }\n\n // 5. If mimeType is supported by the user agent, then return mimeType\u2019s essence.\n // Technically, node doesn't support any mimetypes.\n\n // 6. Return the empty string.\n return ''\n}\n\nmodule.exports = {\n dataURLProcessor,\n URLSerializer,\n collectASequenceOfCodePoints,\n collectASequenceOfCodePointsFast,\n stringPercentDecode,\n parseMIMEType,\n collectAnHTTPQuotedString,\n serializeAMimeType,\n removeChars,\n removeHTTPWhitespace,\n minimizeSupportedMimeType,\n HTTP_TOKEN_CODEPOINTS,\n isomorphicDecode\n}\n", "'use strict'\n\nconst { types, inspect } = require('node:util')\nconst { markAsUncloneable } = require('node:worker_threads')\nconst { toUSVString } = require('../../core/util')\n\n/** @type {import('../../../types/webidl').Webidl} */\nconst webidl = {}\nwebidl.converters = {}\nwebidl.util = {}\nwebidl.errors = {}\n\nwebidl.errors.exception = function (message) {\n return new TypeError(`${message.header}: ${message.message}`)\n}\n\nwebidl.errors.conversionFailed = function (context) {\n const plural = context.types.length === 1 ? '' : ' one of'\n const message =\n `${context.argument} could not be converted to` +\n `${plural}: ${context.types.join(', ')}.`\n\n return webidl.errors.exception({\n header: context.prefix,\n message\n })\n}\n\nwebidl.errors.invalidArgument = function (context) {\n return webidl.errors.exception({\n header: context.prefix,\n message: `\"${context.value}\" is an invalid ${context.type}.`\n })\n}\n\n// https://webidl.spec.whatwg.org/#implements\nwebidl.brandCheck = function (V, I, opts) {\n if (opts?.strict !== false) {\n if (!(V instanceof I)) {\n const err = new TypeError('Illegal invocation')\n err.code = 'ERR_INVALID_THIS' // node compat.\n throw err\n }\n } else {\n if (V?.[Symbol.toStringTag] !== I.prototype[Symbol.toStringTag]) {\n const err = new TypeError('Illegal invocation')\n err.code = 'ERR_INVALID_THIS' // node compat.\n throw err\n }\n }\n}\n\nwebidl.argumentLengthCheck = function ({ length }, min, ctx) {\n if (length < min) {\n throw webidl.errors.exception({\n message: `${min} argument${min !== 1 ? 's' : ''} required, ` +\n `but${length ? ' only' : ''} ${length} found.`,\n header: ctx\n })\n }\n}\n\nwebidl.illegalConstructor = function () {\n throw webidl.errors.exception({\n header: 'TypeError',\n message: 'Illegal constructor'\n })\n}\n\n// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values\nwebidl.util.Type = function (V) {\n switch (typeof V) {\n case 'undefined': return 'Undefined'\n case 'boolean': return 'Boolean'\n case 'string': return 'String'\n case 'symbol': return 'Symbol'\n case 'number': return 'Number'\n case 'bigint': return 'BigInt'\n case 'function':\n case 'object': {\n if (V === null) {\n return 'Null'\n }\n\n return 'Object'\n }\n }\n}\n\nwebidl.util.markAsUncloneable = markAsUncloneable || (() => {})\n// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint\nwebidl.util.ConvertToInt = function (V, bitLength, signedness, opts) {\n let upperBound\n let lowerBound\n\n // 1. If bitLength is 64, then:\n if (bitLength === 64) {\n // 1. Let upperBound be 2^53 \u2212 1.\n upperBound = Math.pow(2, 53) - 1\n\n // 2. If signedness is \"unsigned\", then let lowerBound be 0.\n if (signedness === 'unsigned') {\n lowerBound = 0\n } else {\n // 3. Otherwise let lowerBound be \u22122^53 + 1.\n lowerBound = Math.pow(-2, 53) + 1\n }\n } else if (signedness === 'unsigned') {\n // 2. Otherwise, if signedness is \"unsigned\", then:\n\n // 1. Let lowerBound be 0.\n lowerBound = 0\n\n // 2. Let upperBound be 2^bitLength \u2212 1.\n upperBound = Math.pow(2, bitLength) - 1\n } else {\n // 3. Otherwise:\n\n // 1. Let lowerBound be -2^bitLength \u2212 1.\n lowerBound = Math.pow(-2, bitLength) - 1\n\n // 2. Let upperBound be 2^bitLength \u2212 1 \u2212 1.\n upperBound = Math.pow(2, bitLength - 1) - 1\n }\n\n // 4. Let x be ? ToNumber(V).\n let x = Number(V)\n\n // 5. If x is \u22120, then set x to +0.\n if (x === 0) {\n x = 0\n }\n\n // 6. If the conversion is to an IDL type associated\n // with the [EnforceRange] extended attribute, then:\n if (opts?.enforceRange === true) {\n // 1. If x is NaN, +\u221E, or \u2212\u221E, then throw a TypeError.\n if (\n Number.isNaN(x) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Could not convert ${webidl.util.Stringify(V)} to an integer.`\n })\n }\n\n // 2. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 3. If x < lowerBound or x > upperBound, then\n // throw a TypeError.\n if (x < lowerBound || x > upperBound) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`\n })\n }\n\n // 4. Return x.\n return x\n }\n\n // 7. If x is not NaN and the conversion is to an IDL\n // type associated with the [Clamp] extended\n // attribute, then:\n if (!Number.isNaN(x) && opts?.clamp === true) {\n // 1. Set x to min(max(x, lowerBound), upperBound).\n x = Math.min(Math.max(x, lowerBound), upperBound)\n\n // 2. Round x to the nearest integer, choosing the\n // even integer if it lies halfway between two,\n // and choosing +0 rather than \u22120.\n if (Math.floor(x) % 2 === 0) {\n x = Math.floor(x)\n } else {\n x = Math.ceil(x)\n }\n\n // 3. Return x.\n return x\n }\n\n // 8. If x is NaN, +0, +\u221E, or \u2212\u221E, then return +0.\n if (\n Number.isNaN(x) ||\n (x === 0 && Object.is(0, x)) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n return 0\n }\n\n // 9. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 10. Set x to x modulo 2^bitLength.\n x = x % Math.pow(2, bitLength)\n\n // 11. If signedness is \"signed\" and x \u2265 2^bitLength \u2212 1,\n // then return x \u2212 2^bitLength.\n if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {\n return x - Math.pow(2, bitLength)\n }\n\n // 12. Otherwise, return x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart\nwebidl.util.IntegerPart = function (n) {\n // 1. Let r be floor(abs(n)).\n const r = Math.floor(Math.abs(n))\n\n // 2. If n < 0, then return -1 \u00D7 r.\n if (n < 0) {\n return -1 * r\n }\n\n // 3. Otherwise, return r.\n return r\n}\n\nwebidl.util.Stringify = function (V) {\n const type = webidl.util.Type(V)\n\n switch (type) {\n case 'Symbol':\n return `Symbol(${V.description})`\n case 'Object':\n return inspect(V)\n case 'String':\n return `\"${V}\"`\n default:\n return `${V}`\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-sequence\nwebidl.sequenceConverter = function (converter) {\n return (V, prefix, argument, Iterable) => {\n // 1. If Type(V) is not Object, throw a TypeError.\n if (webidl.util.Type(V) !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} (${webidl.util.Stringify(V)}) is not iterable.`\n })\n }\n\n // 2. Let method be ? GetMethod(V, @@iterator).\n /** @type {Generator} */\n const method = typeof Iterable === 'function' ? Iterable() : V?.[Symbol.iterator]?.()\n const seq = []\n let index = 0\n\n // 3. If method is undefined, throw a TypeError.\n if (\n method === undefined ||\n typeof method.next !== 'function'\n ) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} is not iterable.`\n })\n }\n\n // https://webidl.spec.whatwg.org/#create-sequence-from-iterable\n while (true) {\n const { done, value } = method.next()\n\n if (done) {\n break\n }\n\n seq.push(converter(value, prefix, `${argument}[${index++}]`))\n }\n\n return seq\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-to-record\nwebidl.recordConverter = function (keyConverter, valueConverter) {\n return (O, prefix, argument) => {\n // 1. If Type(O) is not Object, throw a TypeError.\n if (webidl.util.Type(O) !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} (\"${webidl.util.Type(O)}\") is not an Object.`\n })\n }\n\n // 2. Let result be a new empty instance of record.\n const result = {}\n\n if (!types.isProxy(O)) {\n // 1. Let desc be ? O.[[GetOwnProperty]](key).\n const keys = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)]\n\n for (const key of keys) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key, prefix, argument)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key], prefix, argument)\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n\n // 5. Return result.\n return result\n }\n\n // 3. Let keys be ? O.[[OwnPropertyKeys]]().\n const keys = Reflect.ownKeys(O)\n\n // 4. For each key of keys.\n for (const key of keys) {\n // 1. Let desc be ? O.[[GetOwnProperty]](key).\n const desc = Reflect.getOwnPropertyDescriptor(O, key)\n\n // 2. If desc is not undefined and desc.[[Enumerable]] is true:\n if (desc?.enumerable) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key, prefix, argument)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key], prefix, argument)\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n }\n\n // 5. Return result.\n return result\n }\n}\n\nwebidl.interfaceConverter = function (i) {\n return (V, prefix, argument, opts) => {\n if (opts?.strict !== false && !(V instanceof i)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `Expected ${argument} (\"${webidl.util.Stringify(V)}\") to be an instance of ${i.name}.`\n })\n }\n\n return V\n }\n}\n\nwebidl.dictionaryConverter = function (converters) {\n return (dictionary, prefix, argument) => {\n const type = webidl.util.Type(dictionary)\n const dict = {}\n\n if (type === 'Null' || type === 'Undefined') {\n return dict\n } else if (type !== 'Object') {\n throw webidl.errors.exception({\n header: prefix,\n message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`\n })\n }\n\n for (const options of converters) {\n const { key, defaultValue, required, converter } = options\n\n if (required === true) {\n if (!Object.hasOwn(dictionary, key)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `Missing required key \"${key}\".`\n })\n }\n }\n\n let value = dictionary[key]\n const hasDefault = Object.hasOwn(options, 'defaultValue')\n\n // Only use defaultValue if value is undefined and\n // a defaultValue options was provided.\n if (hasDefault && value !== null) {\n value ??= defaultValue()\n }\n\n // A key can be optional and have no default value.\n // When this happens, do not perform a conversion,\n // and do not assign the key a value.\n if (required || hasDefault || value !== undefined) {\n value = converter(value, prefix, `${argument}.${key}`)\n\n if (\n options.allowedValues &&\n !options.allowedValues.includes(value)\n ) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`\n })\n }\n\n dict[key] = value\n }\n }\n\n return dict\n }\n}\n\nwebidl.nullableConverter = function (converter) {\n return (V, prefix, argument) => {\n if (V === null) {\n return V\n }\n\n return converter(V, prefix, argument)\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-DOMString\nwebidl.converters.DOMString = function (V, prefix, argument, opts) {\n // 1. If V is null and the conversion is to an IDL type\n // associated with the [LegacyNullToEmptyString]\n // extended attribute, then return the DOMString value\n // that represents the empty string.\n if (V === null && opts?.legacyNullToEmptyString) {\n return ''\n }\n\n // 2. Let x be ? ToString(V).\n if (typeof V === 'symbol') {\n throw webidl.errors.exception({\n header: prefix,\n message: `${argument} is a symbol, which cannot be converted to a DOMString.`\n })\n }\n\n // 3. Return the IDL DOMString value that represents the\n // same sequence of code units as the one the\n // ECMAScript String value x represents.\n return String(V)\n}\n\n// https://webidl.spec.whatwg.org/#es-ByteString\nwebidl.converters.ByteString = function (V, prefix, argument) {\n // 1. Let x be ? ToString(V).\n // Note: DOMString converter perform ? ToString(V)\n const x = webidl.converters.DOMString(V, prefix, argument)\n\n // 2. If the value of any element of x is greater than\n // 255, then throw a TypeError.\n for (let index = 0; index < x.length; index++) {\n if (x.charCodeAt(index) > 255) {\n throw new TypeError(\n 'Cannot convert argument to a ByteString because the character at ' +\n `index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`\n )\n }\n }\n\n // 3. Return an IDL ByteString value whose length is the\n // length of x, and where the value of each element is\n // the value of the corresponding element of x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-USVString\n// TODO: rewrite this so we can control the errors thrown\nwebidl.converters.USVString = toUSVString\n\n// https://webidl.spec.whatwg.org/#es-boolean\nwebidl.converters.boolean = function (V) {\n // 1. Let x be the result of computing ToBoolean(V).\n const x = Boolean(V)\n\n // 2. Return the IDL boolean value that is the one that represents\n // the same truth value as the ECMAScript Boolean value x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-any\nwebidl.converters.any = function (V) {\n return V\n}\n\n// https://webidl.spec.whatwg.org/#es-long-long\nwebidl.converters['long long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 64, \"signed\").\n const x = webidl.util.ConvertToInt(V, 64, 'signed', undefined, prefix, argument)\n\n // 2. Return the IDL long long value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long-long\nwebidl.converters['unsigned long long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 64, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 64, 'unsigned', undefined, prefix, argument)\n\n // 2. Return the IDL unsigned long long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long\nwebidl.converters['unsigned long'] = function (V, prefix, argument) {\n // 1. Let x be ? ConvertToInt(V, 32, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 32, 'unsigned', undefined, prefix, argument)\n\n // 2. Return the IDL unsigned long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-short\nwebidl.converters['unsigned short'] = function (V, prefix, argument, opts) {\n // 1. Let x be ? ConvertToInt(V, 16, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts, prefix, argument)\n\n // 2. Return the IDL unsigned short value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#idl-ArrayBuffer\nwebidl.converters.ArrayBuffer = function (V, prefix, argument, opts) {\n // 1. If Type(V) is not Object, or V does not have an\n // [[ArrayBufferData]] internal slot, then throw a\n // TypeError.\n // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances\n // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isAnyArrayBuffer(V)\n ) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${argument} (\"${webidl.util.Stringify(V)}\")`,\n types: ['ArrayBuffer']\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V) is true, then throw a\n // TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V) is true, then throw a\n // TypeError.\n if (V.resizable || V.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 4. Return the IDL ArrayBuffer value that is a\n // reference to the same object as V.\n return V\n}\n\nwebidl.converters.TypedArray = function (V, T, prefix, name, opts) {\n // 1. Let T be the IDL type V is being converted to.\n\n // 2. If Type(V) is not Object, or V does not have a\n // [[TypedArrayName]] internal slot with a value\n // equal to T\u2019s name, then throw a TypeError.\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isTypedArray(V) ||\n V.constructor.name !== T.name\n ) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${name} (\"${webidl.util.Stringify(V)}\")`,\n types: [T.name]\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 4. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (V.buffer.resizable || V.buffer.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 5. Return the IDL value of type T that is a reference\n // to the same object as V.\n return V\n}\n\nwebidl.converters.DataView = function (V, prefix, name, opts) {\n // 1. If Type(V) is not Object, or V does not have a\n // [[DataView]] internal slot, then throw a TypeError.\n if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {\n throw webidl.errors.exception({\n header: prefix,\n message: `${name} is not a DataView.`\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,\n // then throw a TypeError.\n if (opts?.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (V.buffer.resizable || V.buffer.growable) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'Received a resizable ArrayBuffer.'\n })\n }\n\n // 4. Return the IDL DataView value that is a reference\n // to the same object as V.\n return V\n}\n\n// https://webidl.spec.whatwg.org/#BufferSource\nwebidl.converters.BufferSource = function (V, prefix, name, opts) {\n if (types.isAnyArrayBuffer(V)) {\n return webidl.converters.ArrayBuffer(V, prefix, name, { ...opts, allowShared: false })\n }\n\n if (types.isTypedArray(V)) {\n return webidl.converters.TypedArray(V, V.constructor, prefix, name, { ...opts, allowShared: false })\n }\n\n if (types.isDataView(V)) {\n return webidl.converters.DataView(V, prefix, name, { ...opts, allowShared: false })\n }\n\n throw webidl.errors.conversionFailed({\n prefix,\n argument: `${name} (\"${webidl.util.Stringify(V)}\")`,\n types: ['BufferSource']\n })\n}\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.ByteString\n)\n\nwebidl.converters['sequence>'] = webidl.sequenceConverter(\n webidl.converters['sequence']\n)\n\nwebidl.converters['record'] = webidl.recordConverter(\n webidl.converters.ByteString,\n webidl.converters.ByteString\n)\n\nmodule.exports = {\n webidl\n}\n", "'use strict'\n\nconst { Transform } = require('node:stream')\nconst zlib = require('node:zlib')\nconst { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require('./constants')\nconst { getGlobalOrigin } = require('./global')\nconst { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require('./data-url')\nconst { performance } = require('node:perf_hooks')\nconst { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = require('../../core/util')\nconst assert = require('node:assert')\nconst { isUint8Array } = require('node:util/types')\nconst { webidl } = require('./webidl')\n\nlet supportedHashes = []\n\n// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('node:crypto')\n const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']\n supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))\n/* c8 ignore next 3 */\n} catch {\n\n}\n\nfunction responseURL (response) {\n // https://fetch.spec.whatwg.org/#responses\n // A response has an associated URL. It is a pointer to the last URL\n // in response\u2019s URL list and null if response\u2019s URL list is empty.\n const urlList = response.urlList\n const length = urlList.length\n return length === 0 ? null : urlList[length - 1].toString()\n}\n\n// https://fetch.spec.whatwg.org/#concept-response-location-url\nfunction responseLocationURL (response, requestFragment) {\n // 1. If response\u2019s status is not a redirect status, then return null.\n if (!redirectStatusSet.has(response.status)) {\n return null\n }\n\n // 2. Let location be the result of extracting header list values given\n // `Location` and response\u2019s header list.\n let location = response.headersList.get('location', true)\n\n // 3. If location is a header value, then set location to the result of\n // parsing location with response\u2019s URL.\n if (location !== null && isValidHeaderValue(location)) {\n if (!isValidEncodedURL(location)) {\n // Some websites respond location header in UTF-8 form without encoding them as ASCII\n // and major browsers redirect them to correctly UTF-8 encoded addresses.\n // Here, we handle that behavior in the same way.\n location = normalizeBinaryStringToUtf8(location)\n }\n location = new URL(location, responseURL(response))\n }\n\n // 4. If location is a URL whose fragment is null, then set location\u2019s\n // fragment to requestFragment.\n if (location && !location.hash) {\n location.hash = requestFragment\n }\n\n // 5. Return location.\n return location\n}\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc1738#section-2.2\n * @param {string} url\n * @returns {boolean}\n */\nfunction isValidEncodedURL (url) {\n for (let i = 0; i < url.length; ++i) {\n const code = url.charCodeAt(i)\n\n if (\n code > 0x7E || // Non-US-ASCII + DEL\n code < 0x20 // Control characters NUL - US\n ) {\n return false\n }\n }\n return true\n}\n\n/**\n * If string contains non-ASCII characters, assumes it's UTF-8 encoded and decodes it.\n * Since UTF-8 is a superset of ASCII, this will work for ASCII strings as well.\n * @param {string} value\n * @returns {string}\n */\nfunction normalizeBinaryStringToUtf8 (value) {\n return Buffer.from(value, 'binary').toString('utf8')\n}\n\n/** @returns {URL} */\nfunction requestCurrentURL (request) {\n return request.urlList[request.urlList.length - 1]\n}\n\nfunction requestBadPort (request) {\n // 1. Let url be request\u2019s current URL.\n const url = requestCurrentURL(request)\n\n // 2. If url\u2019s scheme is an HTTP(S) scheme and url\u2019s port is a bad port,\n // then return blocked.\n if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {\n return 'blocked'\n }\n\n // 3. Return allowed.\n return 'allowed'\n}\n\nfunction isErrorLike (object) {\n return object instanceof Error || (\n object?.constructor?.name === 'Error' ||\n object?.constructor?.name === 'DOMException'\n )\n}\n\n// Check whether |statusText| is a ByteString and\n// matches the Reason-Phrase token production.\n// RFC 2616: https://tools.ietf.org/html/rfc2616\n// RFC 7230: https://tools.ietf.org/html/rfc7230\n// \"reason-phrase = *( HTAB / SP / VCHAR / obs-text )\"\n// https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116\nfunction isValidReasonPhrase (statusText) {\n for (let i = 0; i < statusText.length; ++i) {\n const c = statusText.charCodeAt(i)\n if (\n !(\n (\n c === 0x09 || // HTAB\n (c >= 0x20 && c <= 0x7e) || // SP / VCHAR\n (c >= 0x80 && c <= 0xff)\n ) // obs-text\n )\n ) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-name\n * @param {string} potentialValue\n */\nconst isValidHeaderName = isValidHTTPToken\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-value\n * @param {string} potentialValue\n */\nfunction isValidHeaderValue (potentialValue) {\n // - Has no leading or trailing HTTP tab or space bytes.\n // - Contains no 0x00 (NUL) or HTTP newline bytes.\n return (\n potentialValue[0] === '\\t' ||\n potentialValue[0] === ' ' ||\n potentialValue[potentialValue.length - 1] === '\\t' ||\n potentialValue[potentialValue.length - 1] === ' ' ||\n potentialValue.includes('\\n') ||\n potentialValue.includes('\\r') ||\n potentialValue.includes('\\0')\n ) === false\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect\nfunction setRequestReferrerPolicyOnRedirect (request, actualResponse) {\n // Given a request request and a response actualResponse, this algorithm\n // updates request\u2019s referrer policy according to the Referrer-Policy\n // header (if any) in actualResponse.\n\n // 1. Let policy be the result of executing \u00A7 8.1 Parse a referrer policy\n // from a Referrer-Policy header on actualResponse.\n\n // 8.1 Parse a referrer policy from a Referrer-Policy header\n // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response\u2019s header list.\n const { headersList } = actualResponse\n // 2. Let policy be the empty string.\n // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.\n // 4. Return policy.\n const policyHeader = (headersList.get('referrer-policy', true) ?? '').split(',')\n\n // Note: As the referrer-policy can contain multiple policies\n // separated by comma, we need to loop through all of them\n // and pick the first valid one.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy\n let policy = ''\n if (policyHeader.length > 0) {\n // The right-most policy takes precedence.\n // The left-most policy is the fallback.\n for (let i = policyHeader.length; i !== 0; i--) {\n const token = policyHeader[i - 1].trim()\n if (referrerPolicyTokens.has(token)) {\n policy = token\n break\n }\n }\n }\n\n // 2. If policy is not the empty string, then set request\u2019s referrer policy to policy.\n if (policy !== '') {\n request.referrerPolicy = policy\n }\n}\n\n// https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check\nfunction crossOriginResourcePolicyCheck () {\n // TODO\n return 'allowed'\n}\n\n// https://fetch.spec.whatwg.org/#concept-cors-check\nfunction corsCheck () {\n // TODO\n return 'success'\n}\n\n// https://fetch.spec.whatwg.org/#concept-tao-check\nfunction TAOCheck () {\n // TODO\n return 'success'\n}\n\nfunction appendFetchMetadata (httpRequest) {\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header\n\n // 1. Assert: r\u2019s url is a potentially trustworthy URL.\n // TODO\n\n // 2. Let header be a Structured Header whose value is a token.\n let header = null\n\n // 3. Set header\u2019s value to r\u2019s mode.\n header = httpRequest.mode\n\n // 4. Set a structured field value `Sec-Fetch-Mode`/header in r\u2019s header list.\n httpRequest.headersList.set('sec-fetch-mode', header, true)\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header\n // TODO\n}\n\n// https://fetch.spec.whatwg.org/#append-a-request-origin-header\nfunction appendRequestOriginHeader (request) {\n // 1. Let serializedOrigin be the result of byte-serializing a request origin\n // with request.\n // TODO: implement \"byte-serializing a request origin\"\n let serializedOrigin = request.origin\n\n // - \"'client' is changed to an origin during fetching.\"\n // This doesn't happen in undici (in most cases) because undici, by default,\n // has no concept of origin.\n // - request.origin can also be set to request.client.origin (client being\n // an environment settings object), which is undefined without using\n // setGlobalOrigin.\n if (serializedOrigin === 'client' || serializedOrigin === undefined) {\n return\n }\n\n // 2. If request\u2019s response tainting is \"cors\" or request\u2019s mode is \"websocket\",\n // then append (`Origin`, serializedOrigin) to request\u2019s header list.\n // 3. Otherwise, if request\u2019s method is neither `GET` nor `HEAD`, then:\n if (request.responseTainting === 'cors' || request.mode === 'websocket') {\n request.headersList.append('origin', serializedOrigin, true)\n } else if (request.method !== 'GET' && request.method !== 'HEAD') {\n // 1. Switch on request\u2019s referrer policy:\n switch (request.referrerPolicy) {\n case 'no-referrer':\n // Set serializedOrigin to `null`.\n serializedOrigin = null\n break\n case 'no-referrer-when-downgrade':\n case 'strict-origin':\n case 'strict-origin-when-cross-origin':\n // If request\u2019s origin is a tuple origin, its scheme is \"https\", and\n // request\u2019s current URL\u2019s scheme is not \"https\", then set\n // serializedOrigin to `null`.\n if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n case 'same-origin':\n // If request\u2019s origin is not same origin with request\u2019s current URL\u2019s\n // origin, then set serializedOrigin to `null`.\n if (!sameOrigin(request, requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n default:\n // Do nothing.\n }\n\n // 2. Append (`Origin`, serializedOrigin) to request\u2019s header list.\n request.headersList.append('origin', serializedOrigin, true)\n }\n}\n\n// https://w3c.github.io/hr-time/#dfn-coarsen-time\nfunction coarsenTime (timestamp, crossOriginIsolatedCapability) {\n // TODO\n return timestamp\n}\n\n// https://fetch.spec.whatwg.org/#clamp-and-coarsen-connection-timing-info\nfunction clampAndCoarsenConnectionTimingInfo (connectionTimingInfo, defaultStartTime, crossOriginIsolatedCapability) {\n if (!connectionTimingInfo?.startTime || connectionTimingInfo.startTime < defaultStartTime) {\n return {\n domainLookupStartTime: defaultStartTime,\n domainLookupEndTime: defaultStartTime,\n connectionStartTime: defaultStartTime,\n connectionEndTime: defaultStartTime,\n secureConnectionStartTime: defaultStartTime,\n ALPNNegotiatedProtocol: connectionTimingInfo?.ALPNNegotiatedProtocol\n }\n }\n\n return {\n domainLookupStartTime: coarsenTime(connectionTimingInfo.domainLookupStartTime, crossOriginIsolatedCapability),\n domainLookupEndTime: coarsenTime(connectionTimingInfo.domainLookupEndTime, crossOriginIsolatedCapability),\n connectionStartTime: coarsenTime(connectionTimingInfo.connectionStartTime, crossOriginIsolatedCapability),\n connectionEndTime: coarsenTime(connectionTimingInfo.connectionEndTime, crossOriginIsolatedCapability),\n secureConnectionStartTime: coarsenTime(connectionTimingInfo.secureConnectionStartTime, crossOriginIsolatedCapability),\n ALPNNegotiatedProtocol: connectionTimingInfo.ALPNNegotiatedProtocol\n }\n}\n\n// https://w3c.github.io/hr-time/#dfn-coarsened-shared-current-time\nfunction coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {\n return coarsenTime(performance.now(), crossOriginIsolatedCapability)\n}\n\n// https://fetch.spec.whatwg.org/#create-an-opaque-timing-info\nfunction createOpaqueTimingInfo (timingInfo) {\n return {\n startTime: timingInfo.startTime ?? 0,\n redirectStartTime: 0,\n redirectEndTime: 0,\n postRedirectStartTime: timingInfo.startTime ?? 0,\n finalServiceWorkerStartTime: 0,\n finalNetworkResponseStartTime: 0,\n finalNetworkRequestStartTime: 0,\n endTime: 0,\n encodedBodySize: 0,\n decodedBodySize: 0,\n finalConnectionTimingInfo: null\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#policy-container\nfunction makePolicyContainer () {\n // Note: the fetch spec doesn't make use of embedder policy or CSP list\n return {\n referrerPolicy: 'strict-origin-when-cross-origin'\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container\nfunction clonePolicyContainer (policyContainer) {\n return {\n referrerPolicy: policyContainer.referrerPolicy\n }\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer\nfunction determineRequestsReferrer (request) {\n // 1. Let policy be request's referrer policy.\n const policy = request.referrerPolicy\n\n // Note: policy cannot (shouldn't) be null or an empty string.\n assert(policy)\n\n // 2. Let environment be request\u2019s client.\n\n let referrerSource = null\n\n // 3. Switch on request\u2019s referrer:\n if (request.referrer === 'client') {\n // Note: node isn't a browser and doesn't implement document/iframes,\n // so we bypass this step and replace it with our own.\n\n const globalOrigin = getGlobalOrigin()\n\n if (!globalOrigin || globalOrigin.origin === 'null') {\n return 'no-referrer'\n }\n\n // note: we need to clone it as it's mutated\n referrerSource = new URL(globalOrigin)\n } else if (request.referrer instanceof URL) {\n // Let referrerSource be request\u2019s referrer.\n referrerSource = request.referrer\n }\n\n // 4. Let request\u2019s referrerURL be the result of stripping referrerSource for\n // use as a referrer.\n let referrerURL = stripURLForReferrer(referrerSource)\n\n // 5. Let referrerOrigin be the result of stripping referrerSource for use as\n // a referrer, with the origin-only flag set to true.\n const referrerOrigin = stripURLForReferrer(referrerSource, true)\n\n // 6. If the result of serializing referrerURL is a string whose length is\n // greater than 4096, set referrerURL to referrerOrigin.\n if (referrerURL.toString().length > 4096) {\n referrerURL = referrerOrigin\n }\n\n const areSameOrigin = sameOrigin(request, referrerURL)\n const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&\n !isURLPotentiallyTrustworthy(request.url)\n\n // 8. Execute the switch statements corresponding to the value of policy:\n switch (policy) {\n case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)\n case 'unsafe-url': return referrerURL\n case 'same-origin':\n return areSameOrigin ? referrerOrigin : 'no-referrer'\n case 'origin-when-cross-origin':\n return areSameOrigin ? referrerURL : referrerOrigin\n case 'strict-origin-when-cross-origin': {\n const currentURL = requestCurrentURL(request)\n\n // 1. If the origin of referrerURL and the origin of request\u2019s current\n // URL are the same, then return referrerURL.\n if (sameOrigin(referrerURL, currentURL)) {\n return referrerURL\n }\n\n // 2. If referrerURL is a potentially trustworthy URL and request\u2019s\n // current URL is not a potentially trustworthy URL, then return no\n // referrer.\n if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {\n return 'no-referrer'\n }\n\n // 3. Return referrerOrigin.\n return referrerOrigin\n }\n case 'strict-origin': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request\u2019s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n case 'no-referrer-when-downgrade': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request\u2019s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n\n default: // eslint-disable-line\n return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url\n * @param {URL} url\n * @param {boolean|undefined} originOnly\n */\nfunction stripURLForReferrer (url, originOnly) {\n // 1. Assert: url is a URL.\n assert(url instanceof URL)\n\n url = new URL(url)\n\n // 2. If url\u2019s scheme is a local scheme, then return no referrer.\n if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {\n return 'no-referrer'\n }\n\n // 3. Set url\u2019s username to the empty string.\n url.username = ''\n\n // 4. Set url\u2019s password to the empty string.\n url.password = ''\n\n // 5. Set url\u2019s fragment to null.\n url.hash = ''\n\n // 6. If the origin-only flag is true, then:\n if (originOnly) {\n // 1. Set url\u2019s path to \u00AB the empty string \u00BB.\n url.pathname = ''\n\n // 2. Set url\u2019s query to null.\n url.search = ''\n }\n\n // 7. Return url.\n return url\n}\n\nfunction isURLPotentiallyTrustworthy (url) {\n if (!(url instanceof URL)) {\n return false\n }\n\n // If child of about, return true\n if (url.href === 'about:blank' || url.href === 'about:srcdoc') {\n return true\n }\n\n // If scheme is data, return true\n if (url.protocol === 'data:') return true\n\n // If file, return true\n if (url.protocol === 'file:') return true\n\n return isOriginPotentiallyTrustworthy(url.origin)\n\n function isOriginPotentiallyTrustworthy (origin) {\n // If origin is explicitly null, return false\n if (origin == null || origin === 'null') return false\n\n const originAsURL = new URL(origin)\n\n // If secure, return true\n if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {\n return true\n }\n\n // If localhost or variants, return true\n if (/^127(?:\\.[0-9]+){0,2}\\.[0-9]+$|^\\[(?:0*:)*?:?0*1\\]$/.test(originAsURL.hostname) ||\n (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||\n (originAsURL.hostname.endsWith('.localhost'))) {\n return true\n }\n\n // If any other, return false\n return false\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist\n * @param {Uint8Array} bytes\n * @param {string} metadataList\n */\nfunction bytesMatch (bytes, metadataList) {\n // If node is not built with OpenSSL support, we cannot check\n // a request's integrity, so allow it by default (the spec will\n // allow requests if an invalid hash is given, as precedence).\n /* istanbul ignore if: only if node is built with --without-ssl */\n if (crypto === undefined) {\n return true\n }\n\n // 1. Let parsedMetadata be the result of parsing metadataList.\n const parsedMetadata = parseMetadata(metadataList)\n\n // 2. If parsedMetadata is no metadata, return true.\n if (parsedMetadata === 'no metadata') {\n return true\n }\n\n // 3. If response is not eligible for integrity validation, return false.\n // TODO\n\n // 4. If parsedMetadata is the empty set, return true.\n if (parsedMetadata.length === 0) {\n return true\n }\n\n // 5. Let metadata be the result of getting the strongest\n // metadata from parsedMetadata.\n const strongest = getStrongestMetadata(parsedMetadata)\n const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)\n\n // 6. For each item in metadata:\n for (const item of metadata) {\n // 1. Let algorithm be the alg component of item.\n const algorithm = item.algo\n\n // 2. Let expectedValue be the val component of item.\n const expectedValue = item.hash\n\n // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e\n // \"be liberal with padding\". This is annoying, and it's not even in the spec.\n\n // 3. Let actualValue be the result of applying algorithm to bytes.\n let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')\n\n if (actualValue[actualValue.length - 1] === '=') {\n if (actualValue[actualValue.length - 2] === '=') {\n actualValue = actualValue.slice(0, -2)\n } else {\n actualValue = actualValue.slice(0, -1)\n }\n }\n\n // 4. If actualValue is a case-sensitive match for expectedValue,\n // return true.\n if (compareBase64Mixed(actualValue, expectedValue)) {\n return true\n }\n }\n\n // 7. Return false.\n return false\n}\n\n// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options\n// https://www.w3.org/TR/CSP2/#source-list-syntax\n// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1\nconst parseHashWithOptions = /(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\\s|$)( +[!-~]*)?)?/i\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata\n * @param {string} metadata\n */\nfunction parseMetadata (metadata) {\n // 1. Let result be the empty set.\n /** @type {{ algo: string, hash: string }[]} */\n const result = []\n\n // 2. Let empty be equal to true.\n let empty = true\n\n // 3. For each token returned by splitting metadata on spaces:\n for (const token of metadata.split(' ')) {\n // 1. Set empty to false.\n empty = false\n\n // 2. Parse token as a hash-with-options.\n const parsedToken = parseHashWithOptions.exec(token)\n\n // 3. If token does not parse, continue to the next token.\n if (\n parsedToken === null ||\n parsedToken.groups === undefined ||\n parsedToken.groups.algo === undefined\n ) {\n // Note: Chromium blocks the request at this point, but Firefox\n // gives a warning that an invalid integrity was given. The\n // correct behavior is to ignore these, and subsequently not\n // check the integrity of the resource.\n continue\n }\n\n // 4. Let algorithm be the hash-algo component of token.\n const algorithm = parsedToken.groups.algo.toLowerCase()\n\n // 5. If algorithm is a hash function recognized by the user\n // agent, add the parsed token to result.\n if (supportedHashes.includes(algorithm)) {\n result.push(parsedToken.groups)\n }\n }\n\n // 4. Return no metadata if empty is true, otherwise return result.\n if (empty === true) {\n return 'no metadata'\n }\n\n return result\n}\n\n/**\n * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList\n */\nfunction getStrongestMetadata (metadataList) {\n // Let algorithm be the algo component of the first item in metadataList.\n // Can be sha256\n let algorithm = metadataList[0].algo\n // If the algorithm is sha512, then it is the strongest\n // and we can return immediately\n if (algorithm[3] === '5') {\n return algorithm\n }\n\n for (let i = 1; i < metadataList.length; ++i) {\n const metadata = metadataList[i]\n // If the algorithm is sha512, then it is the strongest\n // and we can break the loop immediately\n if (metadata.algo[3] === '5') {\n algorithm = 'sha512'\n break\n // If the algorithm is sha384, then a potential sha256 or sha384 is ignored\n } else if (algorithm[3] === '3') {\n continue\n // algorithm is sha256, check if algorithm is sha384 and if so, set it as\n // the strongest\n } else if (metadata.algo[3] === '3') {\n algorithm = 'sha384'\n }\n }\n return algorithm\n}\n\nfunction filterMetadataListByAlgorithm (metadataList, algorithm) {\n if (metadataList.length === 1) {\n return metadataList\n }\n\n let pos = 0\n for (let i = 0; i < metadataList.length; ++i) {\n if (metadataList[i].algo === algorithm) {\n metadataList[pos++] = metadataList[i]\n }\n }\n\n metadataList.length = pos\n\n return metadataList\n}\n\n/**\n * Compares two base64 strings, allowing for base64url\n * in the second string.\n *\n* @param {string} actualValue always base64\n * @param {string} expectedValue base64 or base64url\n * @returns {boolean}\n */\nfunction compareBase64Mixed (actualValue, expectedValue) {\n if (actualValue.length !== expectedValue.length) {\n return false\n }\n for (let i = 0; i < actualValue.length; ++i) {\n if (actualValue[i] !== expectedValue[i]) {\n if (\n (actualValue[i] === '+' && expectedValue[i] === '-') ||\n (actualValue[i] === '/' && expectedValue[i] === '_')\n ) {\n continue\n }\n return false\n }\n }\n\n return true\n}\n\n// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request\nfunction tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {\n // TODO\n}\n\n/**\n * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}\n * @param {URL} A\n * @param {URL} B\n */\nfunction sameOrigin (A, B) {\n // 1. If A and B are the same opaque origin, then return true.\n if (A.origin === B.origin && A.origin === 'null') {\n return true\n }\n\n // 2. If A and B are both tuple origins and their schemes,\n // hosts, and port are identical, then return true.\n if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {\n return true\n }\n\n // 3. Return false.\n return false\n}\n\nfunction createDeferredPromise () {\n let res\n let rej\n const promise = new Promise((resolve, reject) => {\n res = resolve\n rej = reject\n })\n\n return { promise, resolve: res, reject: rej }\n}\n\nfunction isAborted (fetchParams) {\n return fetchParams.controller.state === 'aborted'\n}\n\nfunction isCancelled (fetchParams) {\n return fetchParams.controller.state === 'aborted' ||\n fetchParams.controller.state === 'terminated'\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-method-normalize\n * @param {string} method\n */\nfunction normalizeMethod (method) {\n return normalizedMethodRecordsBase[method.toLowerCase()] ?? method\n}\n\n// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string\nfunction serializeJavascriptValueToJSONString (value) {\n // 1. Let result be ? Call(%JSON.stringify%, undefined, \u00AB value \u00BB).\n const result = JSON.stringify(value)\n\n // 2. If result is undefined, then throw a TypeError.\n if (result === undefined) {\n throw new TypeError('Value is not JSON serializable')\n }\n\n // 3. Assert: result is a string.\n assert(typeof result === 'string')\n\n // 4. Return result.\n return result\n}\n\n// https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object\nconst esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))\n\n/**\n * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n * @param {string} name name of the instance\n * @param {symbol} kInternalIterator\n * @param {string | number} [keyIndex]\n * @param {string | number} [valueIndex]\n */\nfunction createIterator (name, kInternalIterator, keyIndex = 0, valueIndex = 1) {\n class FastIterableIterator {\n /** @type {any} */\n #target\n /** @type {'key' | 'value' | 'key+value'} */\n #kind\n /** @type {number} */\n #index\n\n /**\n * @see https://webidl.spec.whatwg.org/#dfn-default-iterator-object\n * @param {unknown} target\n * @param {'key' | 'value' | 'key+value'} kind\n */\n constructor (target, kind) {\n this.#target = target\n this.#kind = kind\n this.#index = 0\n }\n\n next () {\n // 1. Let interface be the interface for which the iterator prototype object exists.\n // 2. Let thisValue be the this value.\n // 3. Let object be ? ToObject(thisValue).\n // 4. If object is a platform object, then perform a security\n // check, passing:\n // 5. If object is not a default iterator object for interface,\n // then throw a TypeError.\n if (typeof this !== 'object' || this === null || !(#target in this)) {\n throw new TypeError(\n `'next' called on an object that does not implement interface ${name} Iterator.`\n )\n }\n\n // 6. Let index be object\u2019s index.\n // 7. Let kind be object\u2019s kind.\n // 8. Let values be object\u2019s target's value pairs to iterate over.\n const index = this.#index\n const values = this.#target[kInternalIterator]\n\n // 9. Let len be the length of values.\n const len = values.length\n\n // 10. If index is greater than or equal to len, then return\n // CreateIterResultObject(undefined, true).\n if (index >= len) {\n return {\n value: undefined,\n done: true\n }\n }\n\n // 11. Let pair be the entry in values at index index.\n const { [keyIndex]: key, [valueIndex]: value } = values[index]\n\n // 12. Set object\u2019s index to index + 1.\n this.#index = index + 1\n\n // 13. Return the iterator result for pair and kind.\n\n // https://webidl.spec.whatwg.org/#iterator-result\n\n // 1. Let result be a value determined by the value of kind:\n let result\n switch (this.#kind) {\n case 'key':\n // 1. Let idlKey be pair\u2019s key.\n // 2. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 3. result is key.\n result = key\n break\n case 'value':\n // 1. Let idlValue be pair\u2019s value.\n // 2. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 3. result is value.\n result = value\n break\n case 'key+value':\n // 1. Let idlKey be pair\u2019s key.\n // 2. Let idlValue be pair\u2019s value.\n // 3. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 4. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 5. Let array be ! ArrayCreate(2).\n // 6. Call ! CreateDataProperty(array, \"0\", key).\n // 7. Call ! CreateDataProperty(array, \"1\", value).\n // 8. result is array.\n result = [key, value]\n break\n }\n\n // 2. Return CreateIterResultObject(result, false).\n return {\n value: result,\n done: false\n }\n }\n }\n\n // https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n // @ts-ignore\n delete FastIterableIterator.prototype.constructor\n\n Object.setPrototypeOf(FastIterableIterator.prototype, esIteratorPrototype)\n\n Object.defineProperties(FastIterableIterator.prototype, {\n [Symbol.toStringTag]: {\n writable: false,\n enumerable: false,\n configurable: true,\n value: `${name} Iterator`\n },\n next: { writable: true, enumerable: true, configurable: true }\n })\n\n /**\n * @param {unknown} target\n * @param {'key' | 'value' | 'key+value'} kind\n * @returns {IterableIterator}\n */\n return function (target, kind) {\n return new FastIterableIterator(target, kind)\n }\n}\n\n/**\n * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n * @param {string} name name of the instance\n * @param {any} object class\n * @param {symbol} kInternalIterator\n * @param {string | number} [keyIndex]\n * @param {string | number} [valueIndex]\n */\nfunction iteratorMixin (name, object, kInternalIterator, keyIndex = 0, valueIndex = 1) {\n const makeIterator = createIterator(name, kInternalIterator, keyIndex, valueIndex)\n\n const properties = {\n keys: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function keys () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'key')\n }\n },\n values: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function values () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'value')\n }\n },\n entries: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function entries () {\n webidl.brandCheck(this, object)\n return makeIterator(this, 'key+value')\n }\n },\n forEach: {\n writable: true,\n enumerable: true,\n configurable: true,\n value: function forEach (callbackfn, thisArg = globalThis) {\n webidl.brandCheck(this, object)\n webidl.argumentLengthCheck(arguments, 1, `${name}.forEach`)\n if (typeof callbackfn !== 'function') {\n throw new TypeError(\n `Failed to execute 'forEach' on '${name}': parameter 1 is not of type 'Function'.`\n )\n }\n for (const { 0: key, 1: value } of makeIterator(this, 'key+value')) {\n callbackfn.call(thisArg, value, key, this)\n }\n }\n }\n }\n\n return Object.defineProperties(object.prototype, {\n ...properties,\n [Symbol.iterator]: {\n writable: true,\n enumerable: false,\n configurable: true,\n value: properties.entries.value\n }\n })\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#body-fully-read\n */\nasync function fullyReadBody (body, processBody, processBodyError) {\n // 1. If taskDestination is null, then set taskDestination to\n // the result of starting a new parallel queue.\n\n // 2. Let successSteps given a byte sequence bytes be to queue a\n // fetch task to run processBody given bytes, with taskDestination.\n const successSteps = processBody\n\n // 3. Let errorSteps be to queue a fetch task to run processBodyError,\n // with taskDestination.\n const errorSteps = processBodyError\n\n // 4. Let reader be the result of getting a reader for body\u2019s stream.\n // If that threw an exception, then run errorSteps with that\n // exception and return.\n let reader\n\n try {\n reader = body.stream.getReader()\n } catch (e) {\n errorSteps(e)\n return\n }\n\n // 5. Read all bytes from reader, given successSteps and errorSteps.\n try {\n successSteps(await readAllBytes(reader))\n } catch (e) {\n errorSteps(e)\n }\n}\n\nfunction isReadableStreamLike (stream) {\n return stream instanceof ReadableStream || (\n stream[Symbol.toStringTag] === 'ReadableStream' &&\n typeof stream.tee === 'function'\n )\n}\n\n/**\n * @param {ReadableStreamController} controller\n */\nfunction readableStreamClose (controller) {\n try {\n controller.close()\n controller.byobRequest?.respond(0)\n } catch (err) {\n // TODO: add comment explaining why this error occurs.\n if (!err.message.includes('Controller is already closed') && !err.message.includes('ReadableStream is already closed')) {\n throw err\n }\n }\n}\n\nconst invalidIsomorphicEncodeValueRegex = /[^\\x00-\\xFF]/ // eslint-disable-line\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-encode\n * @param {string} input\n */\nfunction isomorphicEncode (input) {\n // 1. Assert: input contains no code points greater than U+00FF.\n assert(!invalidIsomorphicEncodeValueRegex.test(input))\n\n // 2. Return a byte sequence whose length is equal to input\u2019s code\n // point length and whose bytes have the same values as the\n // values of input\u2019s code points, in the same order\n return input\n}\n\n/**\n * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes\n * @see https://streams.spec.whatwg.org/#read-loop\n * @param {ReadableStreamDefaultReader} reader\n */\nasync function readAllBytes (reader) {\n const bytes = []\n let byteLength = 0\n\n while (true) {\n const { done, value: chunk } = await reader.read()\n\n if (done) {\n // 1. Call successSteps with bytes.\n return Buffer.concat(bytes, byteLength)\n }\n\n // 1. If chunk is not a Uint8Array object, call failureSteps\n // with a TypeError and abort these steps.\n if (!isUint8Array(chunk)) {\n throw new TypeError('Received non-Uint8Array chunk')\n }\n\n // 2. Append the bytes represented by chunk to bytes.\n bytes.push(chunk)\n byteLength += chunk.length\n\n // 3. Read-loop given reader, bytes, successSteps, and failureSteps.\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#is-local\n * @param {URL} url\n */\nfunction urlIsLocal (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'\n}\n\n/**\n * @param {string|URL} url\n * @returns {boolean}\n */\nfunction urlHasHttpsScheme (url) {\n return (\n (\n typeof url === 'string' &&\n url[5] === ':' &&\n url[0] === 'h' &&\n url[1] === 't' &&\n url[2] === 't' &&\n url[3] === 'p' &&\n url[4] === 's'\n ) ||\n url.protocol === 'https:'\n )\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-scheme\n * @param {URL} url\n */\nfunction urlIsHttpHttpsScheme (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'http:' || protocol === 'https:'\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#simple-range-header-value\n * @param {string} value\n * @param {boolean} allowWhitespace\n */\nfunction simpleRangeHeaderValue (value, allowWhitespace) {\n // 1. Let data be the isomorphic decoding of value.\n // Note: isomorphic decoding takes a sequence of bytes (ie. a Uint8Array) and turns it into a string,\n // nothing more. We obviously don't need to do that if value is a string already.\n const data = value\n\n // 2. If data does not start with \"bytes\", then return failure.\n if (!data.startsWith('bytes')) {\n return 'failure'\n }\n\n // 3. Let position be a position variable for data, initially pointing at the 5th code point of data.\n const position = { position: 5 }\n\n // 4. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,\n // from data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 5. If the code point at position within data is not U+003D (=), then return failure.\n if (data.charCodeAt(position.position) !== 0x3D) {\n return 'failure'\n }\n\n // 6. Advance position by 1.\n position.position++\n\n // 7. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space, from\n // data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 8. Let rangeStart be the result of collecting a sequence of code points that are ASCII digits,\n // from data given position.\n const rangeStart = collectASequenceOfCodePoints(\n (char) => {\n const code = char.charCodeAt(0)\n\n return code >= 0x30 && code <= 0x39\n },\n data,\n position\n )\n\n // 9. Let rangeStartValue be rangeStart, interpreted as decimal number, if rangeStart is not the\n // empty string; otherwise null.\n const rangeStartValue = rangeStart.length ? Number(rangeStart) : null\n\n // 10. If allowWhitespace is true, collect a sequence of code points that are HTTP tab or space,\n // from data given position.\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 11. If the code point at position within data is not U+002D (-), then return failure.\n if (data.charCodeAt(position.position) !== 0x2D) {\n return 'failure'\n }\n\n // 12. Advance position by 1.\n position.position++\n\n // 13. If allowWhitespace is true, collect a sequence of code points that are HTTP tab\n // or space, from data given position.\n // Note from Khafra: its the same step as in #8 again lol\n if (allowWhitespace) {\n collectASequenceOfCodePoints(\n (char) => char === '\\t' || char === ' ',\n data,\n position\n )\n }\n\n // 14. Let rangeEnd be the result of collecting a sequence of code points that are\n // ASCII digits, from data given position.\n // Note from Khafra: you wouldn't guess it, but this is also the same step as #8\n const rangeEnd = collectASequenceOfCodePoints(\n (char) => {\n const code = char.charCodeAt(0)\n\n return code >= 0x30 && code <= 0x39\n },\n data,\n position\n )\n\n // 15. Let rangeEndValue be rangeEnd, interpreted as decimal number, if rangeEnd\n // is not the empty string; otherwise null.\n // Note from Khafra: THE SAME STEP, AGAIN!!!\n // Note: why interpret as a decimal if we only collect ascii digits?\n const rangeEndValue = rangeEnd.length ? Number(rangeEnd) : null\n\n // 16. If position is not past the end of data, then return failure.\n if (position.position < data.length) {\n return 'failure'\n }\n\n // 17. If rangeEndValue and rangeStartValue are null, then return failure.\n if (rangeEndValue === null && rangeStartValue === null) {\n return 'failure'\n }\n\n // 18. If rangeStartValue and rangeEndValue are numbers, and rangeStartValue is\n // greater than rangeEndValue, then return failure.\n // Note: ... when can they not be numbers?\n if (rangeStartValue > rangeEndValue) {\n return 'failure'\n }\n\n // 19. Return (rangeStartValue, rangeEndValue).\n return { rangeStartValue, rangeEndValue }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#build-a-content-range\n * @param {number} rangeStart\n * @param {number} rangeEnd\n * @param {number} fullLength\n */\nfunction buildContentRange (rangeStart, rangeEnd, fullLength) {\n // 1. Let contentRange be `bytes `.\n let contentRange = 'bytes '\n\n // 2. Append rangeStart, serialized and isomorphic encoded, to contentRange.\n contentRange += isomorphicEncode(`${rangeStart}`)\n\n // 3. Append 0x2D (-) to contentRange.\n contentRange += '-'\n\n // 4. Append rangeEnd, serialized and isomorphic encoded to contentRange.\n contentRange += isomorphicEncode(`${rangeEnd}`)\n\n // 5. Append 0x2F (/) to contentRange.\n contentRange += '/'\n\n // 6. Append fullLength, serialized and isomorphic encoded to contentRange.\n contentRange += isomorphicEncode(`${fullLength}`)\n\n // 7. Return contentRange.\n return contentRange\n}\n\n// A Stream, which pipes the response to zlib.createInflate() or\n// zlib.createInflateRaw() depending on the first byte of the Buffer.\n// If the lower byte of the first byte is 0x08, then the stream is\n// interpreted as a zlib stream, otherwise it's interpreted as a\n// raw deflate stream.\nclass InflateStream extends Transform {\n #zlibOptions\n\n /** @param {zlib.ZlibOptions} [zlibOptions] */\n constructor (zlibOptions) {\n super()\n this.#zlibOptions = zlibOptions\n }\n\n _transform (chunk, encoding, callback) {\n if (!this._inflateStream) {\n if (chunk.length === 0) {\n callback()\n return\n }\n this._inflateStream = (chunk[0] & 0x0F) === 0x08\n ? zlib.createInflate(this.#zlibOptions)\n : zlib.createInflateRaw(this.#zlibOptions)\n\n this._inflateStream.on('data', this.push.bind(this))\n this._inflateStream.on('end', () => this.push(null))\n this._inflateStream.on('error', (err) => this.destroy(err))\n }\n\n this._inflateStream.write(chunk, encoding, callback)\n }\n\n _final (callback) {\n if (this._inflateStream) {\n this._inflateStream.end()\n this._inflateStream = null\n }\n callback()\n }\n}\n\n/**\n * @param {zlib.ZlibOptions} [zlibOptions]\n * @returns {InflateStream}\n */\nfunction createInflate (zlibOptions) {\n return new InflateStream(zlibOptions)\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-extract-mime-type\n * @param {import('./headers').HeadersList} headers\n */\nfunction extractMimeType (headers) {\n // 1. Let charset be null.\n let charset = null\n\n // 2. Let essence be null.\n let essence = null\n\n // 3. Let mimeType be null.\n let mimeType = null\n\n // 4. Let values be the result of getting, decoding, and splitting `Content-Type` from headers.\n const values = getDecodeSplit('content-type', headers)\n\n // 5. If values is null, then return failure.\n if (values === null) {\n return 'failure'\n }\n\n // 6. For each value of values:\n for (const value of values) {\n // 6.1. Let temporaryMimeType be the result of parsing value.\n const temporaryMimeType = parseMIMEType(value)\n\n // 6.2. If temporaryMimeType is failure or its essence is \"*/*\", then continue.\n if (temporaryMimeType === 'failure' || temporaryMimeType.essence === '*/*') {\n continue\n }\n\n // 6.3. Set mimeType to temporaryMimeType.\n mimeType = temporaryMimeType\n\n // 6.4. If mimeType\u2019s essence is not essence, then:\n if (mimeType.essence !== essence) {\n // 6.4.1. Set charset to null.\n charset = null\n\n // 6.4.2. If mimeType\u2019s parameters[\"charset\"] exists, then set charset to\n // mimeType\u2019s parameters[\"charset\"].\n if (mimeType.parameters.has('charset')) {\n charset = mimeType.parameters.get('charset')\n }\n\n // 6.4.3. Set essence to mimeType\u2019s essence.\n essence = mimeType.essence\n } else if (!mimeType.parameters.has('charset') && charset !== null) {\n // 6.5. Otherwise, if mimeType\u2019s parameters[\"charset\"] does not exist, and\n // charset is non-null, set mimeType\u2019s parameters[\"charset\"] to charset.\n mimeType.parameters.set('charset', charset)\n }\n }\n\n // 7. If mimeType is null, then return failure.\n if (mimeType == null) {\n return 'failure'\n }\n\n // 8. Return mimeType.\n return mimeType\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-value-get-decode-and-split\n * @param {string|null} value\n */\nfunction gettingDecodingSplitting (value) {\n // 1. Let input be the result of isomorphic decoding value.\n const input = value\n\n // 2. Let position be a position variable for input, initially pointing at the start of input.\n const position = { position: 0 }\n\n // 3. Let values be a list of strings, initially empty.\n const values = []\n\n // 4. Let temporaryValue be the empty string.\n let temporaryValue = ''\n\n // 5. While position is not past the end of input:\n while (position.position < input.length) {\n // 5.1. Append the result of collecting a sequence of code points that are not U+0022 (\")\n // or U+002C (,) from input, given position, to temporaryValue.\n temporaryValue += collectASequenceOfCodePoints(\n (char) => char !== '\"' && char !== ',',\n input,\n position\n )\n\n // 5.2. If position is not past the end of input, then:\n if (position.position < input.length) {\n // 5.2.1. If the code point at position within input is U+0022 (\"), then:\n if (input.charCodeAt(position.position) === 0x22) {\n // 5.2.1.1. Append the result of collecting an HTTP quoted string from input, given position, to temporaryValue.\n temporaryValue += collectAnHTTPQuotedString(\n input,\n position\n )\n\n // 5.2.1.2. If position is not past the end of input, then continue.\n if (position.position < input.length) {\n continue\n }\n } else {\n // 5.2.2. Otherwise:\n\n // 5.2.2.1. Assert: the code point at position within input is U+002C (,).\n assert(input.charCodeAt(position.position) === 0x2C)\n\n // 5.2.2.2. Advance position by 1.\n position.position++\n }\n }\n\n // 5.3. Remove all HTTP tab or space from the start and end of temporaryValue.\n temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 0x9 || char === 0x20)\n\n // 5.4. Append temporaryValue to values.\n values.push(temporaryValue)\n\n // 5.6. Set temporaryValue to the empty string.\n temporaryValue = ''\n }\n\n // 6. Return values.\n return values\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-get-decode-split\n * @param {string} name lowercase header name\n * @param {import('./headers').HeadersList} list\n */\nfunction getDecodeSplit (name, list) {\n // 1. Let value be the result of getting name from list.\n const value = list.get(name, true)\n\n // 2. If value is null, then return null.\n if (value === null) {\n return null\n }\n\n // 3. Return the result of getting, decoding, and splitting value.\n return gettingDecodingSplitting(value)\n}\n\nconst textDecoder = new TextDecoder()\n\n/**\n * @see https://encoding.spec.whatwg.org/#utf-8-decode\n * @param {Buffer} buffer\n */\nfunction utf8DecodeBytes (buffer) {\n if (buffer.length === 0) {\n return ''\n }\n\n // 1. Let buffer be the result of peeking three bytes from\n // ioQueue, converted to a byte sequence.\n\n // 2. If buffer is 0xEF 0xBB 0xBF, then read three\n // bytes from ioQueue. (Do nothing with those bytes.)\n if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {\n buffer = buffer.subarray(3)\n }\n\n // 3. Process a queue with an instance of UTF-8\u2019s\n // decoder, ioQueue, output, and \"replacement\".\n const output = textDecoder.decode(buffer)\n\n // 4. Return output.\n return output\n}\n\nclass EnvironmentSettingsObjectBase {\n get baseUrl () {\n return getGlobalOrigin()\n }\n\n get origin () {\n return this.baseUrl?.origin\n }\n\n policyContainer = makePolicyContainer()\n}\n\nclass EnvironmentSettingsObject {\n settingsObject = new EnvironmentSettingsObjectBase()\n}\n\nconst environmentSettingsObject = new EnvironmentSettingsObject()\n\nmodule.exports = {\n isAborted,\n isCancelled,\n isValidEncodedURL,\n createDeferredPromise,\n ReadableStreamFrom,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n clampAndCoarsenConnectionTimingInfo,\n coarsenedSharedCurrentTime,\n determineRequestsReferrer,\n makePolicyContainer,\n clonePolicyContainer,\n appendFetchMetadata,\n appendRequestOriginHeader,\n TAOCheck,\n corsCheck,\n crossOriginResourcePolicyCheck,\n createOpaqueTimingInfo,\n setRequestReferrerPolicyOnRedirect,\n isValidHTTPToken,\n requestBadPort,\n requestCurrentURL,\n responseURL,\n responseLocationURL,\n isBlobLike,\n isURLPotentiallyTrustworthy,\n isValidReasonPhrase,\n sameOrigin,\n normalizeMethod,\n serializeJavascriptValueToJSONString,\n iteratorMixin,\n createIterator,\n isValidHeaderName,\n isValidHeaderValue,\n isErrorLike,\n fullyReadBody,\n bytesMatch,\n isReadableStreamLike,\n readableStreamClose,\n isomorphicEncode,\n urlIsLocal,\n urlHasHttpsScheme,\n urlIsHttpHttpsScheme,\n readAllBytes,\n simpleRangeHeaderValue,\n buildContentRange,\n parseMetadata,\n createInflate,\n extractMimeType,\n getDecodeSplit,\n utf8DecodeBytes,\n environmentSettingsObject\n}\n", "'use strict'\n\nmodule.exports = {\n kUrl: Symbol('url'),\n kHeaders: Symbol('headers'),\n kSignal: Symbol('signal'),\n kState: Symbol('state'),\n kDispatcher: Symbol('dispatcher')\n}\n", "'use strict'\n\nconst { Blob, File } = require('node:buffer')\nconst { kState } = require('./symbols')\nconst { webidl } = require('./webidl')\n\n// TODO(@KhafraDev): remove\nclass FileLike {\n constructor (blobLike, fileName, options = {}) {\n // TODO: argument idl type check\n\n // The File constructor is invoked with two or three parameters, depending\n // on whether the optional dictionary parameter is used. When the File()\n // constructor is invoked, user agents must run the following steps:\n\n // 1. Let bytes be the result of processing blob parts given fileBits and\n // options.\n\n // 2. Let n be the fileName argument to the constructor.\n const n = fileName\n\n // 3. Process FilePropertyBag dictionary argument by running the following\n // substeps:\n\n // 1. If the type member is provided and is not the empty string, let t\n // be set to the type dictionary member. If t contains any characters\n // outside the range U+0020 to U+007E, then set t to the empty string\n // and return from these substeps.\n // TODO\n const t = options.type\n\n // 2. Convert every character in t to ASCII lowercase.\n // TODO\n\n // 3. If the lastModified member is provided, let d be set to the\n // lastModified dictionary member. If it is not provided, set d to the\n // current date and time represented as the number of milliseconds since\n // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).\n const d = options.lastModified ?? Date.now()\n\n // 4. Return a new File object F such that:\n // F refers to the bytes byte sequence.\n // F.size is set to the number of total bytes in bytes.\n // F.name is set to n.\n // F.type is set to t.\n // F.lastModified is set to d.\n\n this[kState] = {\n blobLike,\n name: n,\n type: t,\n lastModified: d\n }\n }\n\n stream (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.stream(...args)\n }\n\n arrayBuffer (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.arrayBuffer(...args)\n }\n\n slice (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.slice(...args)\n }\n\n text (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.text(...args)\n }\n\n get size () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.size\n }\n\n get type () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.type\n }\n\n get name () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].name\n }\n\n get lastModified () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].lastModified\n }\n\n get [Symbol.toStringTag] () {\n return 'File'\n }\n}\n\nwebidl.converters.Blob = webidl.interfaceConverter(Blob)\n\n// If this function is moved to ./util.js, some tools (such as\n// rollup) will warn about circular dependencies. See:\n// https://github.com/nodejs/undici/issues/1629\nfunction isFileLike (object) {\n return (\n (object instanceof File) ||\n (\n object &&\n (typeof object.stream === 'function' ||\n typeof object.arrayBuffer === 'function') &&\n object[Symbol.toStringTag] === 'File'\n )\n )\n}\n\nmodule.exports = { FileLike, isFileLike }\n", "'use strict'\n\nconst { isBlobLike, iteratorMixin } = require('./util')\nconst { kState } = require('./symbols')\nconst { kEnumerableProperty } = require('../../core/util')\nconst { FileLike, isFileLike } = require('./file')\nconst { webidl } = require('./webidl')\nconst { File: NativeFile } = require('node:buffer')\nconst nodeUtil = require('node:util')\n\n/** @type {globalThis['File']} */\nconst File = globalThis.File ?? NativeFile\n\n// https://xhr.spec.whatwg.org/#formdata\nclass FormData {\n constructor (form) {\n webidl.util.markAsUncloneable(this)\n\n if (form !== undefined) {\n throw webidl.errors.conversionFailed({\n prefix: 'FormData constructor',\n argument: 'Argument 1',\n types: ['undefined']\n })\n }\n\n this[kState] = []\n }\n\n append (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.append'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name, prefix, 'name')\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, prefix, 'value', { strict: false })\n : webidl.converters.USVString(value, prefix, 'value')\n filename = arguments.length === 3\n ? webidl.converters.USVString(filename, prefix, 'filename')\n : undefined\n\n // 2. Let entry be the result of creating an entry with\n // name, value, and filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. Append entry to this\u2019s entry list.\n this[kState].push(entry)\n }\n\n delete (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // The delete(name) method steps are to remove all entries whose name\n // is name from this\u2019s entry list.\n this[kState] = this[kState].filter(entry => entry.name !== name)\n }\n\n get (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.get'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // 1. If there is no entry whose name is name in this\u2019s entry list,\n // then return null.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx === -1) {\n return null\n }\n\n // 2. Return the value of the first entry whose name is name from\n // this\u2019s entry list.\n return this[kState][idx].value\n }\n\n getAll (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.getAll'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // 1. If there is no entry whose name is name in this\u2019s entry list,\n // then return the empty list.\n // 2. Return the values of all entries whose name is name, in order,\n // from this\u2019s entry list.\n return this[kState]\n .filter((entry) => entry.name === name)\n .map((entry) => entry.value)\n }\n\n has (name) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.has'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n name = webidl.converters.USVString(name, prefix, 'name')\n\n // The has(name) method steps are to return true if there is an entry\n // whose name is name in this\u2019s entry list; otherwise false.\n return this[kState].findIndex((entry) => entry.name === name) !== -1\n }\n\n set (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n const prefix = 'FormData.set'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // The set(name, value) and set(name, blobValue, filename) method steps\n // are:\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name, prefix, 'name')\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, prefix, 'name', { strict: false })\n : webidl.converters.USVString(value, prefix, 'name')\n filename = arguments.length === 3\n ? webidl.converters.USVString(filename, prefix, 'name')\n : undefined\n\n // 2. Let entry be the result of creating an entry with name, value, and\n // filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. If there are entries in this\u2019s entry list whose name is name, then\n // replace the first such entry with entry and remove the others.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx !== -1) {\n this[kState] = [\n ...this[kState].slice(0, idx),\n entry,\n ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name)\n ]\n } else {\n // 4. Otherwise, append entry to this\u2019s entry list.\n this[kState].push(entry)\n }\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n const state = this[kState].reduce((a, b) => {\n if (a[b.name]) {\n if (Array.isArray(a[b.name])) {\n a[b.name].push(b.value)\n } else {\n a[b.name] = [a[b.name], b.value]\n }\n } else {\n a[b.name] = b.value\n }\n\n return a\n }, { __proto__: null })\n\n options.depth ??= depth\n options.colors ??= true\n\n const output = nodeUtil.formatWithOptions(options, state)\n\n // remove [Object null prototype]\n return `FormData ${output.slice(output.indexOf(']') + 2)}`\n }\n}\n\niteratorMixin('FormData', FormData, kState, 'name', 'value')\n\nObject.defineProperties(FormData.prototype, {\n append: kEnumerableProperty,\n delete: kEnumerableProperty,\n get: kEnumerableProperty,\n getAll: kEnumerableProperty,\n has: kEnumerableProperty,\n set: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'FormData',\n configurable: true\n }\n})\n\n/**\n * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry\n * @param {string} name\n * @param {string|Blob} value\n * @param {?string} filename\n * @returns\n */\nfunction makeEntry (name, value, filename) {\n // 1. Set name to the result of converting name into a scalar value string.\n // Note: This operation was done by the webidl converter USVString.\n\n // 2. If value is a string, then set value to the result of converting\n // value into a scalar value string.\n if (typeof value === 'string') {\n // Note: This operation was done by the webidl converter USVString.\n } else {\n // 3. Otherwise:\n\n // 1. If value is not a File object, then set value to a new File object,\n // representing the same bytes, whose name attribute value is \"blob\"\n if (!isFileLike(value)) {\n value = value instanceof Blob\n ? new File([value], 'blob', { type: value.type })\n : new FileLike(value, 'blob', { type: value.type })\n }\n\n // 2. If filename is given, then set value to a new File object,\n // representing the same bytes, whose name attribute is filename.\n if (filename !== undefined) {\n /** @type {FilePropertyBag} */\n const options = {\n type: value.type,\n lastModified: value.lastModified\n }\n\n value = value instanceof NativeFile\n ? new File([value], filename, options)\n : new FileLike(value, filename, options)\n }\n }\n\n // 4. Return an entry whose name is name and whose value is value.\n return { name, value }\n}\n\nmodule.exports = { FormData, makeEntry }\n", "'use strict'\n\nconst { isUSVString, bufferToLowerCasedHeaderName } = require('../../core/util')\nconst { utf8DecodeBytes } = require('./util')\nconst { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = require('./data-url')\nconst { isFileLike } = require('./file')\nconst { makeEntry } = require('./formdata')\nconst assert = require('node:assert')\nconst { File: NodeFile } = require('node:buffer')\n\nconst File = globalThis.File ?? NodeFile\n\nconst formDataNameBuffer = Buffer.from('form-data; name=\"')\nconst filenameBuffer = Buffer.from('; filename')\nconst dd = Buffer.from('--')\nconst ddcrlf = Buffer.from('--\\r\\n')\n\n/**\n * @param {string} chars\n */\nfunction isAsciiString (chars) {\n for (let i = 0; i < chars.length; ++i) {\n if ((chars.charCodeAt(i) & ~0x7F) !== 0) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#multipart-form-data-boundary\n * @param {string} boundary\n */\nfunction validateBoundary (boundary) {\n const length = boundary.length\n\n // - its length is greater or equal to 27 and lesser or equal to 70, and\n if (length < 27 || length > 70) {\n return false\n }\n\n // - it is composed by bytes in the ranges 0x30 to 0x39, 0x41 to 0x5A, or\n // 0x61 to 0x7A, inclusive (ASCII alphanumeric), or which are 0x27 ('),\n // 0x2D (-) or 0x5F (_).\n for (let i = 0; i < length; ++i) {\n const cp = boundary.charCodeAt(i)\n\n if (!(\n (cp >= 0x30 && cp <= 0x39) ||\n (cp >= 0x41 && cp <= 0x5a) ||\n (cp >= 0x61 && cp <= 0x7a) ||\n cp === 0x27 ||\n cp === 0x2d ||\n cp === 0x5f\n )) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#multipart-form-data-parser\n * @param {Buffer} input\n * @param {ReturnType} mimeType\n */\nfunction multipartFormDataParser (input, mimeType) {\n // 1. Assert: mimeType\u2019s essence is \"multipart/form-data\".\n assert(mimeType !== 'failure' && mimeType.essence === 'multipart/form-data')\n\n const boundaryString = mimeType.parameters.get('boundary')\n\n // 2. If mimeType\u2019s parameters[\"boundary\"] does not exist, return failure.\n // Otherwise, let boundary be the result of UTF-8 decoding mimeType\u2019s\n // parameters[\"boundary\"].\n if (boundaryString === undefined) {\n return 'failure'\n }\n\n const boundary = Buffer.from(`--${boundaryString}`, 'utf8')\n\n // 3. Let entry list be an empty entry list.\n const entryList = []\n\n // 4. Let position be a pointer to a byte in input, initially pointing at\n // the first byte.\n const position = { position: 0 }\n\n // Note: undici addition, allows leading and trailing CRLFs.\n while (input[position.position] === 0x0d && input[position.position + 1] === 0x0a) {\n position.position += 2\n }\n\n let trailing = input.length\n\n while (input[trailing - 1] === 0x0a && input[trailing - 2] === 0x0d) {\n trailing -= 2\n }\n\n if (trailing !== input.length) {\n input = input.subarray(0, trailing)\n }\n\n // 5. While true:\n while (true) {\n // 5.1. If position points to a sequence of bytes starting with 0x2D 0x2D\n // (`--`) followed by boundary, advance position by 2 + the length of\n // boundary. Otherwise, return failure.\n // Note: boundary is padded with 2 dashes already, no need to add 2.\n if (input.subarray(position.position, position.position + boundary.length).equals(boundary)) {\n position.position += boundary.length\n } else {\n return 'failure'\n }\n\n // 5.2. If position points to the sequence of bytes 0x2D 0x2D 0x0D 0x0A\n // (`--` followed by CR LF) followed by the end of input, return entry list.\n // Note: a body does NOT need to end with CRLF. It can end with --.\n if (\n (position.position === input.length - 2 && bufferStartsWith(input, dd, position)) ||\n (position.position === input.length - 4 && bufferStartsWith(input, ddcrlf, position))\n ) {\n return entryList\n }\n\n // 5.3. If position does not point to a sequence of bytes starting with 0x0D\n // 0x0A (CR LF), return failure.\n if (input[position.position] !== 0x0d || input[position.position + 1] !== 0x0a) {\n return 'failure'\n }\n\n // 5.4. Advance position by 2. (This skips past the newline.)\n position.position += 2\n\n // 5.5. Let name, filename and contentType be the result of parsing\n // multipart/form-data headers on input and position, if the result\n // is not failure. Otherwise, return failure.\n const result = parseMultipartFormDataHeaders(input, position)\n\n if (result === 'failure') {\n return 'failure'\n }\n\n let { name, filename, contentType, encoding } = result\n\n // 5.6. Advance position by 2. (This skips past the empty line that marks\n // the end of the headers.)\n position.position += 2\n\n // 5.7. Let body be the empty byte sequence.\n let body\n\n // 5.8. Body loop: While position is not past the end of input:\n // TODO: the steps here are completely wrong\n {\n const boundaryIndex = input.indexOf(boundary.subarray(2), position.position)\n\n if (boundaryIndex === -1) {\n return 'failure'\n }\n\n body = input.subarray(position.position, boundaryIndex - 4)\n\n position.position += body.length\n\n // Note: position must be advanced by the body's length before being\n // decoded, otherwise the parsing will fail.\n if (encoding === 'base64') {\n body = Buffer.from(body.toString(), 'base64')\n }\n }\n\n // 5.9. If position does not point to a sequence of bytes starting with\n // 0x0D 0x0A (CR LF), return failure. Otherwise, advance position by 2.\n if (input[position.position] !== 0x0d || input[position.position + 1] !== 0x0a) {\n return 'failure'\n } else {\n position.position += 2\n }\n\n // 5.10. If filename is not null:\n let value\n\n if (filename !== null) {\n // 5.10.1. If contentType is null, set contentType to \"text/plain\".\n contentType ??= 'text/plain'\n\n // 5.10.2. If contentType is not an ASCII string, set contentType to the empty string.\n\n // Note: `buffer.isAscii` can be used at zero-cost, but converting a string to a buffer is a high overhead.\n // Content-Type is a relatively small string, so it is faster to use `String#charCodeAt`.\n if (!isAsciiString(contentType)) {\n contentType = ''\n }\n\n // 5.10.3. Let value be a new File object with name filename, type contentType, and body body.\n value = new File([body], filename, { type: contentType })\n } else {\n // 5.11. Otherwise:\n\n // 5.11.1. Let value be the UTF-8 decoding without BOM of body.\n value = utf8DecodeBytes(Buffer.from(body))\n }\n\n // 5.12. Assert: name is a scalar value string and value is either a scalar value string or a File object.\n assert(isUSVString(name))\n assert((typeof value === 'string' && isUSVString(value)) || isFileLike(value))\n\n // 5.13. Create an entry with name and value, and append it to entry list.\n entryList.push(makeEntry(name, value, filename))\n }\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#parse-multipart-form-data-headers\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction parseMultipartFormDataHeaders (input, position) {\n // 1. Let name, filename and contentType be null.\n let name = null\n let filename = null\n let contentType = null\n let encoding = null\n\n // 2. While true:\n while (true) {\n // 2.1. If position points to a sequence of bytes starting with 0x0D 0x0A (CR LF):\n if (input[position.position] === 0x0d && input[position.position + 1] === 0x0a) {\n // 2.1.1. If name is null, return failure.\n if (name === null) {\n return 'failure'\n }\n\n // 2.1.2. Return name, filename and contentType.\n return { name, filename, contentType, encoding }\n }\n\n // 2.2. Let header name be the result of collecting a sequence of bytes that are\n // not 0x0A (LF), 0x0D (CR) or 0x3A (:), given position.\n let headerName = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d && char !== 0x3a,\n input,\n position\n )\n\n // 2.3. Remove any HTTP tab or space bytes from the start or end of header name.\n headerName = removeChars(headerName, true, true, (char) => char === 0x9 || char === 0x20)\n\n // 2.4. If header name does not match the field-name token production, return failure.\n if (!HTTP_TOKEN_CODEPOINTS.test(headerName.toString())) {\n return 'failure'\n }\n\n // 2.5. If the byte at position is not 0x3A (:), return failure.\n if (input[position.position] !== 0x3a) {\n return 'failure'\n }\n\n // 2.6. Advance position by 1.\n position.position++\n\n // 2.7. Collect a sequence of bytes that are HTTP tab or space bytes given position.\n // (Do nothing with those bytes.)\n collectASequenceOfBytes(\n (char) => char === 0x20 || char === 0x09,\n input,\n position\n )\n\n // 2.8. Byte-lowercase header name and switch on the result:\n switch (bufferToLowerCasedHeaderName(headerName)) {\n case 'content-disposition': {\n // 1. Set name and filename to null.\n name = filename = null\n\n // 2. If position does not point to a sequence of bytes starting with\n // `form-data; name=\"`, return failure.\n if (!bufferStartsWith(input, formDataNameBuffer, position)) {\n return 'failure'\n }\n\n // 3. Advance position so it points at the byte after the next 0x22 (\")\n // byte (the one in the sequence of bytes matched above).\n position.position += 17\n\n // 4. Set name to the result of parsing a multipart/form-data name given\n // input and position, if the result is not failure. Otherwise, return\n // failure.\n name = parseMultipartFormDataName(input, position)\n\n if (name === null) {\n return 'failure'\n }\n\n // 5. If position points to a sequence of bytes starting with `; filename=\"`:\n if (bufferStartsWith(input, filenameBuffer, position)) {\n // Note: undici also handles filename*\n let check = position.position + filenameBuffer.length\n\n if (input[check] === 0x2a) {\n position.position += 1\n check += 1\n }\n\n if (input[check] !== 0x3d || input[check + 1] !== 0x22) { // =\"\n return 'failure'\n }\n\n // 1. Advance position so it points at the byte after the next 0x22 (\") byte\n // (the one in the sequence of bytes matched above).\n position.position += 12\n\n // 2. Set filename to the result of parsing a multipart/form-data name given\n // input and position, if the result is not failure. Otherwise, return failure.\n filename = parseMultipartFormDataName(input, position)\n\n if (filename === null) {\n return 'failure'\n }\n }\n\n break\n }\n case 'content-type': {\n // 1. Let header value be the result of collecting a sequence of bytes that are\n // not 0x0A (LF) or 0x0D (CR), given position.\n let headerValue = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n\n // 2. Remove any HTTP tab or space bytes from the end of header value.\n headerValue = removeChars(headerValue, false, true, (char) => char === 0x9 || char === 0x20)\n\n // 3. Set contentType to the isomorphic decoding of header value.\n contentType = isomorphicDecode(headerValue)\n\n break\n }\n case 'content-transfer-encoding': {\n let headerValue = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n\n headerValue = removeChars(headerValue, false, true, (char) => char === 0x9 || char === 0x20)\n\n encoding = isomorphicDecode(headerValue)\n\n break\n }\n default: {\n // Collect a sequence of bytes that are not 0x0A (LF) or 0x0D (CR), given position.\n // (Do nothing with those bytes.)\n collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d,\n input,\n position\n )\n }\n }\n\n // 2.9. If position does not point to a sequence of bytes starting with 0x0D 0x0A\n // (CR LF), return failure. Otherwise, advance position by 2 (past the newline).\n if (input[position.position] !== 0x0d && input[position.position + 1] !== 0x0a) {\n return 'failure'\n } else {\n position.position += 2\n }\n }\n}\n\n/**\n * @see https://andreubotella.github.io/multipart-form-data/#parse-a-multipart-form-data-name\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction parseMultipartFormDataName (input, position) {\n // 1. Assert: The byte at (position - 1) is 0x22 (\").\n assert(input[position.position - 1] === 0x22)\n\n // 2. Let name be the result of collecting a sequence of bytes that are not 0x0A (LF), 0x0D (CR) or 0x22 (\"), given position.\n /** @type {string | Buffer} */\n let name = collectASequenceOfBytes(\n (char) => char !== 0x0a && char !== 0x0d && char !== 0x22,\n input,\n position\n )\n\n // 3. If the byte at position is not 0x22 (\"), return failure. Otherwise, advance position by 1.\n if (input[position.position] !== 0x22) {\n return null // name could be 'failure'\n } else {\n position.position++\n }\n\n // 4. Replace any occurrence of the following subsequences in name with the given byte:\n // - `%0A`: 0x0A (LF)\n // - `%0D`: 0x0D (CR)\n // - `%22`: 0x22 (\")\n name = new TextDecoder().decode(name)\n .replace(/%0A/ig, '\\n')\n .replace(/%0D/ig, '\\r')\n .replace(/%22/g, '\"')\n\n // 5. Return the UTF-8 decoding without BOM of name.\n return name\n}\n\n/**\n * @param {(char: number) => boolean} condition\n * @param {Buffer} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfBytes (condition, input, position) {\n let start = position.position\n\n while (start < input.length && condition(input[start])) {\n ++start\n }\n\n return input.subarray(position.position, (position.position = start))\n}\n\n/**\n * @param {Buffer} buf\n * @param {boolean} leading\n * @param {boolean} trailing\n * @param {(charCode: number) => boolean} predicate\n * @returns {Buffer}\n */\nfunction removeChars (buf, leading, trailing, predicate) {\n let lead = 0\n let trail = buf.length - 1\n\n if (leading) {\n while (lead < buf.length && predicate(buf[lead])) lead++\n }\n\n if (trailing) {\n while (trail > 0 && predicate(buf[trail])) trail--\n }\n\n return lead === 0 && trail === buf.length - 1 ? buf : buf.subarray(lead, trail + 1)\n}\n\n/**\n * Checks if {@param buffer} starts with {@param start}\n * @param {Buffer} buffer\n * @param {Buffer} start\n * @param {{ position: number }} position\n */\nfunction bufferStartsWith (buffer, start, position) {\n if (buffer.length < start.length) {\n return false\n }\n\n for (let i = 0; i < start.length; i++) {\n if (start[i] !== buffer[position.position + i]) {\n return false\n }\n }\n\n return true\n}\n\nmodule.exports = {\n multipartFormDataParser,\n validateBoundary\n}\n", "'use strict'\n\nconst util = require('../../core/util')\nconst {\n ReadableStreamFrom,\n isBlobLike,\n isReadableStreamLike,\n readableStreamClose,\n createDeferredPromise,\n fullyReadBody,\n extractMimeType,\n utf8DecodeBytes\n} = require('./util')\nconst { FormData } = require('./formdata')\nconst { kState } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { Blob } = require('node:buffer')\nconst assert = require('node:assert')\nconst { isErrored, isDisturbed } = require('node:stream')\nconst { isArrayBuffer } = require('node:util/types')\nconst { serializeAMimeType } = require('./data-url')\nconst { multipartFormDataParser } = require('./formdata-parser')\nlet random\n\ntry {\n const crypto = require('node:crypto')\n random = (max) => crypto.randomInt(0, max)\n} catch {\n random = (max) => Math.floor(Math.random(max))\n}\n\nconst textEncoder = new TextEncoder()\nfunction noop () {}\n\nconst hasFinalizationRegistry = globalThis.FinalizationRegistry && process.version.indexOf('v18') !== 0\nlet streamRegistry\n\nif (hasFinalizationRegistry) {\n streamRegistry = new FinalizationRegistry((weakRef) => {\n const stream = weakRef.deref()\n if (stream && !stream.locked && !isDisturbed(stream) && !isErrored(stream)) {\n stream.cancel('Response object has been garbage collected').catch(noop)\n }\n })\n}\n\n// https://fetch.spec.whatwg.org/#concept-bodyinit-extract\nfunction extractBody (object, keepalive = false) {\n // 1. Let stream be null.\n let stream = null\n\n // 2. If object is a ReadableStream object, then set stream to object.\n if (object instanceof ReadableStream) {\n stream = object\n } else if (isBlobLike(object)) {\n // 3. Otherwise, if object is a Blob object, set stream to the\n // result of running object\u2019s get stream.\n stream = object.stream()\n } else {\n // 4. Otherwise, set stream to a new ReadableStream object, and set\n // up stream with byte reading support.\n stream = new ReadableStream({\n async pull (controller) {\n const buffer = typeof source === 'string' ? textEncoder.encode(source) : source\n\n if (buffer.byteLength) {\n controller.enqueue(buffer)\n }\n\n queueMicrotask(() => readableStreamClose(controller))\n },\n start () {},\n type: 'bytes'\n })\n }\n\n // 5. Assert: stream is a ReadableStream object.\n assert(isReadableStreamLike(stream))\n\n // 6. Let action be null.\n let action = null\n\n // 7. Let source be null.\n let source = null\n\n // 8. Let length be null.\n let length = null\n\n // 9. Let type be null.\n let type = null\n\n // 10. Switch on object:\n if (typeof object === 'string') {\n // Set source to the UTF-8 encoding of object.\n // Note: setting source to a Uint8Array here breaks some mocking assumptions.\n source = object\n\n // Set type to `text/plain;charset=UTF-8`.\n type = 'text/plain;charset=UTF-8'\n } else if (object instanceof URLSearchParams) {\n // URLSearchParams\n\n // spec says to run application/x-www-form-urlencoded on body.list\n // this is implemented in Node.js as apart of an URLSearchParams instance toString method\n // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490\n // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100\n\n // Set source to the result of running the application/x-www-form-urlencoded serializer with object\u2019s list.\n source = object.toString()\n\n // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.\n type = 'application/x-www-form-urlencoded;charset=UTF-8'\n } else if (isArrayBuffer(object)) {\n // BufferSource/ArrayBuffer\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.slice())\n } else if (ArrayBuffer.isView(object)) {\n // BufferSource/ArrayBufferView\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))\n } else if (util.isFormDataLike(object)) {\n const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`\n const prefix = `--${boundary}\\r\\nContent-Disposition: form-data`\n\n /*! formdata-polyfill. MIT License. Jimmy W\u00E4rting */\n const escape = (str) =>\n str.replace(/\\n/g, '%0A').replace(/\\r/g, '%0D').replace(/\"/g, '%22')\n const normalizeLinefeeds = (value) => value.replace(/\\r?\\n|\\r/g, '\\r\\n')\n\n // Set action to this step: run the multipart/form-data\n // encoding algorithm, with object\u2019s entry list and UTF-8.\n // - This ensures that the body is immutable and can't be changed afterwords\n // - That the content-length is calculated in advance.\n // - And that all parts are pre-encoded and ready to be sent.\n\n const blobParts = []\n const rn = new Uint8Array([13, 10]) // '\\r\\n'\n length = 0\n let hasUnknownSizeValue = false\n\n for (const [name, value] of object) {\n if (typeof value === 'string') {\n const chunk = textEncoder.encode(prefix +\n `; name=\"${escape(normalizeLinefeeds(name))}\"` +\n `\\r\\n\\r\\n${normalizeLinefeeds(value)}\\r\\n`)\n blobParts.push(chunk)\n length += chunk.byteLength\n } else {\n const chunk = textEncoder.encode(`${prefix}; name=\"${escape(normalizeLinefeeds(name))}\"` +\n (value.name ? `; filename=\"${escape(value.name)}\"` : '') + '\\r\\n' +\n `Content-Type: ${\n value.type || 'application/octet-stream'\n }\\r\\n\\r\\n`)\n blobParts.push(chunk, value, rn)\n if (typeof value.size === 'number') {\n length += chunk.byteLength + value.size + rn.byteLength\n } else {\n hasUnknownSizeValue = true\n }\n }\n }\n\n // CRLF is appended to the body to function with legacy servers and match other implementations.\n // https://github.com/curl/curl/blob/3434c6b46e682452973972e8313613dfa58cd690/lib/mime.c#L1029-L1030\n // https://github.com/form-data/form-data/issues/63\n const chunk = textEncoder.encode(`--${boundary}--\\r\\n`)\n blobParts.push(chunk)\n length += chunk.byteLength\n if (hasUnknownSizeValue) {\n length = null\n }\n\n // Set source to object.\n source = object\n\n action = async function * () {\n for (const part of blobParts) {\n if (part.stream) {\n yield * part.stream()\n } else {\n yield part\n }\n }\n }\n\n // Set type to `multipart/form-data; boundary=`,\n // followed by the multipart/form-data boundary string generated\n // by the multipart/form-data encoding algorithm.\n type = `multipart/form-data; boundary=${boundary}`\n } else if (isBlobLike(object)) {\n // Blob\n\n // Set source to object.\n source = object\n\n // Set length to object\u2019s size.\n length = object.size\n\n // If object\u2019s type attribute is not the empty byte sequence, set\n // type to its value.\n if (object.type) {\n type = object.type\n }\n } else if (typeof object[Symbol.asyncIterator] === 'function') {\n // If keepalive is true, then throw a TypeError.\n if (keepalive) {\n throw new TypeError('keepalive')\n }\n\n // If object is disturbed or locked, then throw a TypeError.\n if (util.isDisturbed(object) || object.locked) {\n throw new TypeError(\n 'Response body object should not be disturbed or locked'\n )\n }\n\n stream =\n object instanceof ReadableStream ? object : ReadableStreamFrom(object)\n }\n\n // 11. If source is a byte sequence, then set action to a\n // step that returns source and length to source\u2019s length.\n if (typeof source === 'string' || util.isBuffer(source)) {\n length = Buffer.byteLength(source)\n }\n\n // 12. If action is non-null, then run these steps in in parallel:\n if (action != null) {\n // Run action.\n let iterator\n stream = new ReadableStream({\n async start () {\n iterator = action(object)[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { value, done } = await iterator.next()\n if (done) {\n // When running action is done, close stream.\n queueMicrotask(() => {\n controller.close()\n controller.byobRequest?.respond(0)\n })\n } else {\n // Whenever one or more bytes are available and stream is not errored,\n // enqueue a Uint8Array wrapping an ArrayBuffer containing the available\n // bytes into stream.\n if (!isErrored(stream)) {\n const buffer = new Uint8Array(value)\n if (buffer.byteLength) {\n controller.enqueue(buffer)\n }\n }\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n },\n type: 'bytes'\n })\n }\n\n // 13. Let body be a body whose stream is stream, source is source,\n // and length is length.\n const body = { stream, source, length }\n\n // 14. Return (body, type).\n return [body, type]\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit-safely-extract\nfunction safelyExtractBody (object, keepalive = false) {\n // To safely extract a body and a `Content-Type` value from\n // a byte sequence or BodyInit object object, run these steps:\n\n // 1. If object is a ReadableStream object, then:\n if (object instanceof ReadableStream) {\n // Assert: object is neither disturbed nor locked.\n // istanbul ignore next\n assert(!util.isDisturbed(object), 'The body has already been consumed.')\n // istanbul ignore next\n assert(!object.locked, 'The stream is locked.')\n }\n\n // 2. Return the results of extracting object.\n return extractBody(object, keepalive)\n}\n\nfunction cloneBody (instance, body) {\n // To clone a body body, run these steps:\n\n // https://fetch.spec.whatwg.org/#concept-body-clone\n\n // 1. Let \u00AB out1, out2 \u00BB be the result of teeing body\u2019s stream.\n const [out1, out2] = body.stream.tee()\n\n // 2. Set body\u2019s stream to out1.\n body.stream = out1\n\n // 3. Return a body whose stream is out2 and other members are copied from body.\n return {\n stream: out2,\n length: body.length,\n source: body.source\n }\n}\n\nfunction throwIfAborted (state) {\n if (state.aborted) {\n throw new DOMException('The operation was aborted.', 'AbortError')\n }\n}\n\nfunction bodyMixinMethods (instance) {\n const methods = {\n blob () {\n // The blob() method steps are to return the result of\n // running consume body with this and the following step\n // given a byte sequence bytes: return a Blob whose\n // contents are bytes and whose type attribute is this\u2019s\n // MIME type.\n return consumeBody(this, (bytes) => {\n let mimeType = bodyMimeType(this)\n\n if (mimeType === null) {\n mimeType = ''\n } else if (mimeType) {\n mimeType = serializeAMimeType(mimeType)\n }\n\n // Return a Blob whose contents are bytes and type attribute\n // is mimeType.\n return new Blob([bytes], { type: mimeType })\n }, instance)\n },\n\n arrayBuffer () {\n // The arrayBuffer() method steps are to return the result\n // of running consume body with this and the following step\n // given a byte sequence bytes: return a new ArrayBuffer\n // whose contents are bytes.\n return consumeBody(this, (bytes) => {\n return new Uint8Array(bytes).buffer\n }, instance)\n },\n\n text () {\n // The text() method steps are to return the result of running\n // consume body with this and UTF-8 decode.\n return consumeBody(this, utf8DecodeBytes, instance)\n },\n\n json () {\n // The json() method steps are to return the result of running\n // consume body with this and parse JSON from bytes.\n return consumeBody(this, parseJSONFromBytes, instance)\n },\n\n formData () {\n // The formData() method steps are to return the result of running\n // consume body with this and the following step given a byte sequence bytes:\n return consumeBody(this, (value) => {\n // 1. Let mimeType be the result of get the MIME type with this.\n const mimeType = bodyMimeType(this)\n\n // 2. If mimeType is non-null, then switch on mimeType\u2019s essence and run\n // the corresponding steps:\n if (mimeType !== null) {\n switch (mimeType.essence) {\n case 'multipart/form-data': {\n // 1. ... [long step]\n const parsed = multipartFormDataParser(value, mimeType)\n\n // 2. If that fails for some reason, then throw a TypeError.\n if (parsed === 'failure') {\n throw new TypeError('Failed to parse body as FormData.')\n }\n\n // 3. Return a new FormData object, appending each entry,\n // resulting from the parsing operation, to its entry list.\n const fd = new FormData()\n fd[kState] = parsed\n\n return fd\n }\n case 'application/x-www-form-urlencoded': {\n // 1. Let entries be the result of parsing bytes.\n const entries = new URLSearchParams(value.toString())\n\n // 2. If entries is failure, then throw a TypeError.\n\n // 3. Return a new FormData object whose entry list is entries.\n const fd = new FormData()\n\n for (const [name, value] of entries) {\n fd.append(name, value)\n }\n\n return fd\n }\n }\n }\n\n // 3. Throw a TypeError.\n throw new TypeError(\n 'Content-Type was not one of \"multipart/form-data\" or \"application/x-www-form-urlencoded\".'\n )\n }, instance)\n },\n\n bytes () {\n // The bytes() method steps are to return the result of running consume body\n // with this and the following step given a byte sequence bytes: return the\n // result of creating a Uint8Array from bytes in this\u2019s relevant realm.\n return consumeBody(this, (bytes) => {\n return new Uint8Array(bytes)\n }, instance)\n }\n }\n\n return methods\n}\n\nfunction mixinBody (prototype) {\n Object.assign(prototype.prototype, bodyMixinMethods(prototype))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-consume-body\n * @param {Response|Request} object\n * @param {(value: unknown) => unknown} convertBytesToJSValue\n * @param {Response|Request} instance\n */\nasync function consumeBody (object, convertBytesToJSValue, instance) {\n webidl.brandCheck(object, instance)\n\n // 1. If object is unusable, then return a promise rejected\n // with a TypeError.\n if (bodyUnusable(object)) {\n throw new TypeError('Body is unusable: Body has already been read')\n }\n\n throwIfAborted(object[kState])\n\n // 2. Let promise be a new promise.\n const promise = createDeferredPromise()\n\n // 3. Let errorSteps given error be to reject promise with error.\n const errorSteps = (error) => promise.reject(error)\n\n // 4. Let successSteps given a byte sequence data be to resolve\n // promise with the result of running convertBytesToJSValue\n // with data. If that threw an exception, then run errorSteps\n // with that exception.\n const successSteps = (data) => {\n try {\n promise.resolve(convertBytesToJSValue(data))\n } catch (e) {\n errorSteps(e)\n }\n }\n\n // 5. If object\u2019s body is null, then run successSteps with an\n // empty byte sequence.\n if (object[kState].body == null) {\n successSteps(Buffer.allocUnsafe(0))\n return promise.promise\n }\n\n // 6. Otherwise, fully read object\u2019s body given successSteps,\n // errorSteps, and object\u2019s relevant global object.\n await fullyReadBody(object[kState].body, successSteps, errorSteps)\n\n // 7. Return promise.\n return promise.promise\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction bodyUnusable (object) {\n const body = object[kState].body\n\n // An object including the Body interface mixin is\n // said to be unusable if its body is non-null and\n // its body\u2019s stream is disturbed or locked.\n return body != null && (body.stream.locked || util.isDisturbed(body.stream))\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value\n * @param {Uint8Array} bytes\n */\nfunction parseJSONFromBytes (bytes) {\n return JSON.parse(utf8DecodeBytes(bytes))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-mime-type\n * @param {import('./response').Response|import('./request').Request} requestOrResponse\n */\nfunction bodyMimeType (requestOrResponse) {\n // 1. Let headers be null.\n // 2. If requestOrResponse is a Request object, then set headers to requestOrResponse\u2019s request\u2019s header list.\n // 3. Otherwise, set headers to requestOrResponse\u2019s response\u2019s header list.\n /** @type {import('./headers').HeadersList} */\n const headers = requestOrResponse[kState].headersList\n\n // 4. Let mimeType be the result of extracting a MIME type from headers.\n const mimeType = extractMimeType(headers)\n\n // 5. If mimeType is failure, then return null.\n if (mimeType === 'failure') {\n return null\n }\n\n // 6. Return mimeType.\n return mimeType\n}\n\nmodule.exports = {\n extractBody,\n safelyExtractBody,\n cloneBody,\n mixinBody,\n streamRegistry,\n hasFinalizationRegistry,\n bodyUnusable\n}\n", "'use strict'\n\n/* global WebAssembly */\n\nconst assert = require('node:assert')\nconst util = require('../core/util.js')\nconst { channels } = require('../core/diagnostics.js')\nconst timers = require('../util/timers.js')\nconst {\n RequestContentLengthMismatchError,\n ResponseContentLengthMismatchError,\n RequestAbortedError,\n InvalidArgumentError,\n HeadersTimeoutError,\n HeadersOverflowError,\n SocketError,\n InformationalError,\n BodyTimeoutError,\n HTTPParserError,\n ResponseExceededMaxSizeError\n} = require('../core/errors.js')\nconst {\n kUrl,\n kReset,\n kClient,\n kParser,\n kBlocking,\n kRunning,\n kPending,\n kSize,\n kWriting,\n kQueue,\n kNoRef,\n kKeepAliveDefaultTimeout,\n kHostHeader,\n kPendingIdx,\n kRunningIdx,\n kError,\n kPipelining,\n kSocket,\n kKeepAliveTimeoutValue,\n kMaxHeadersSize,\n kKeepAliveMaxTimeout,\n kKeepAliveTimeoutThreshold,\n kHeadersTimeout,\n kBodyTimeout,\n kStrictContentLength,\n kMaxRequests,\n kCounter,\n kMaxResponseSize,\n kOnError,\n kResume,\n kHTTPContext\n} = require('../core/symbols.js')\n\nconst constants = require('../llhttp/constants.js')\nconst EMPTY_BUF = Buffer.alloc(0)\nconst FastBuffer = Buffer[Symbol.species]\nconst addListener = util.addListener\nconst removeAllListeners = util.removeAllListeners\nconst kIdleSocketValidation = Symbol('kIdleSocketValidation')\nconst kIdleSocketValidationTimeout = Symbol('kIdleSocketValidationTimeout')\nconst kSocketUsed = Symbol('kSocketUsed')\n\nlet extractBody\n\nasync function lazyllhttp () {\n const llhttpWasmData = process.env.JEST_WORKER_ID ? require('../llhttp/llhttp-wasm.js') : undefined\n\n let mod\n try {\n mod = await WebAssembly.compile(require('../llhttp/llhttp_simd-wasm.js'))\n } catch (e) {\n /* istanbul ignore next */\n\n // We could check if the error was caused by the simd option not\n // being enabled, but the occurring of this other error\n // * https://github.com/emscripten-core/emscripten/issues/11495\n // got me to remove that check to avoid breaking Node 12.\n mod = await WebAssembly.compile(llhttpWasmData || require('../llhttp/llhttp-wasm.js'))\n }\n\n return await WebAssembly.instantiate(mod, {\n env: {\n /* eslint-disable camelcase */\n\n wasm_on_url: (p, at, len) => {\n /* istanbul ignore next */\n return 0\n },\n wasm_on_status: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_begin: (p) => {\n assert(currentParser.ptr === p)\n return currentParser.onMessageBegin() || 0\n },\n wasm_on_header_field: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_header_value: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {\n assert(currentParser.ptr === p)\n return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0\n },\n wasm_on_body: (p, at, len) => {\n assert(currentParser.ptr === p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_complete: (p) => {\n assert(currentParser.ptr === p)\n return currentParser.onMessageComplete() || 0\n }\n\n /* eslint-enable camelcase */\n }\n })\n}\n\nlet llhttpInstance = null\nlet llhttpPromise = lazyllhttp()\nllhttpPromise.catch()\n\nlet currentParser = null\nlet currentBufferRef = null\nlet currentBufferSize = 0\nlet currentBufferPtr = null\n\nconst USE_NATIVE_TIMER = 0\nconst USE_FAST_TIMER = 1\n\n// Use fast timers for headers and body to take eventual event loop\n// latency into account.\nconst TIMEOUT_HEADERS = 2 | USE_FAST_TIMER\nconst TIMEOUT_BODY = 4 | USE_FAST_TIMER\n\n// Use native timers to ignore event loop latency for keep-alive\n// handling.\nconst TIMEOUT_KEEP_ALIVE = 8 | USE_NATIVE_TIMER\n\nclass Parser {\n constructor (client, socket, { exports }) {\n assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)\n\n this.llhttp = exports\n this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)\n this.client = client\n this.socket = socket\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n this.statusCode = null\n this.statusText = ''\n this.upgrade = false\n this.headers = []\n this.headersSize = 0\n this.headersMaxSize = client[kMaxHeadersSize]\n this.shouldKeepAlive = false\n this.paused = false\n this.resume = this.resume.bind(this)\n\n this.bytesRead = 0\n\n this.keepAlive = ''\n this.contentLength = ''\n this.connection = ''\n this.maxResponseSize = client[kMaxResponseSize]\n }\n\n setTimeout (delay, type) {\n // If the existing timer and the new timer are of different timer type\n // (fast or native) or have different delay, we need to clear the existing\n // timer and set a new one.\n if (\n delay !== this.timeoutValue ||\n (type & USE_FAST_TIMER) ^ (this.timeoutType & USE_FAST_TIMER)\n ) {\n // If a timeout is already set, clear it with clearTimeout of the fast\n // timer implementation, as it can clear fast and native timers.\n if (this.timeout) {\n timers.clearTimeout(this.timeout)\n this.timeout = null\n }\n\n if (delay) {\n if (type & USE_FAST_TIMER) {\n this.timeout = timers.setFastTimeout(onParserTimeout, delay, new WeakRef(this))\n } else {\n this.timeout = setTimeout(onParserTimeout, delay, new WeakRef(this))\n this.timeout.unref()\n }\n }\n\n this.timeoutValue = delay\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n this.timeoutType = type\n }\n\n resume () {\n if (this.socket.destroyed || !this.paused) {\n return\n }\n\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_resume(this.ptr)\n\n assert(this.timeoutType === TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n this.paused = false\n this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.\n this.readMore()\n }\n\n readMore () {\n while (!this.paused && this.ptr) {\n const chunk = this.socket.read()\n if (chunk === null) {\n break\n }\n this.execute(chunk)\n }\n }\n\n execute (data) {\n assert(this.ptr != null)\n assert(currentParser == null)\n assert(!this.paused)\n\n const { socket, llhttp } = this\n\n if (data.length > currentBufferSize) {\n if (currentBufferPtr) {\n llhttp.free(currentBufferPtr)\n }\n currentBufferSize = Math.ceil(data.length / 4096) * 4096\n currentBufferPtr = llhttp.malloc(currentBufferSize)\n }\n\n new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)\n\n // Call `execute` on the wasm parser.\n // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,\n // and finally the length of bytes to parse.\n // The return value is an error code or `constants.ERROR.OK`.\n try {\n let ret\n\n try {\n currentBufferRef = data\n currentParser = this\n ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)\n /* eslint-disable-next-line no-useless-catch */\n } catch (err) {\n /* istanbul ignore next: difficult to make a test case for */\n throw err\n } finally {\n currentParser = null\n currentBufferRef = null\n }\n\n const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr\n\n if (ret !== constants.ERROR.OK) {\n const body = data.subarray(offset)\n\n if (ret === constants.ERROR.PAUSED_UPGRADE) {\n this.onUpgrade(body)\n } else if (ret === constants.ERROR.PAUSED) {\n this.paused = true\n socket.unshift(body)\n } else {\n throw this.createError(ret, body)\n }\n }\n } catch (err) {\n util.destroy(socket, err)\n }\n }\n\n finish () {\n assert(currentParser === null)\n assert(this.ptr != null)\n assert(!this.paused)\n\n const { llhttp } = this\n\n let ret\n\n try {\n currentParser = this\n ret = llhttp.llhttp_finish(this.ptr)\n } finally {\n currentParser = null\n }\n\n if (ret === constants.ERROR.OK) {\n return null\n }\n\n if (ret === constants.ERROR.PAUSED || ret === constants.ERROR.PAUSED_UPGRADE) {\n this.paused = true\n return null\n }\n\n return this.createError(ret, EMPTY_BUF)\n }\n\n createError (ret, data) {\n const { llhttp, contentLength, bytesRead } = this\n\n if (contentLength && bytesRead !== parseInt(contentLength, 10)) {\n return new ResponseContentLengthMismatchError()\n }\n\n const ptr = llhttp.llhttp_get_error_reason(this.ptr)\n let message = ''\n if (ptr) {\n const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)\n message =\n 'Response does not match the HTTP/1.1 protocol (' +\n Buffer.from(llhttp.memory.buffer, ptr, len).toString() +\n ')'\n }\n\n return new HTTPParserError(message, constants.ERROR[ret], data)\n }\n\n destroy () {\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_free(this.ptr)\n this.ptr = null\n\n this.timeout && timers.clearTimeout(this.timeout)\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n\n this.paused = false\n }\n\n onStatus (buf) {\n this.statusText = buf.toString()\n }\n\n onMessageBegin () {\n const { socket, client } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n if (client[kRunning] === 0) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n if (!request) {\n return -1\n }\n request.onResponseStarted()\n }\n\n onHeaderField (buf) {\n const len = this.headers.length\n\n if ((len & 1) === 0) {\n this.headers.push(buf)\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n this.trackHeader(buf.length)\n }\n\n onHeaderValue (buf) {\n let len = this.headers.length\n\n if ((len & 1) === 1) {\n this.headers.push(buf)\n len += 1\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n const key = this.headers[len - 2]\n if (key.length === 10) {\n const headerName = util.bufferToLowerCasedHeaderName(key)\n if (headerName === 'keep-alive') {\n this.keepAlive += buf.toString()\n } else if (headerName === 'connection') {\n this.connection += buf.toString()\n }\n } else if (key.length === 14 && util.bufferToLowerCasedHeaderName(key) === 'content-length') {\n this.contentLength += buf.toString()\n }\n\n this.trackHeader(buf.length)\n }\n\n trackHeader (len) {\n this.headersSize += len\n if (this.headersSize >= this.headersMaxSize) {\n util.destroy(this.socket, new HeadersOverflowError())\n }\n }\n\n onUpgrade (head) {\n const { upgrade, client, socket, headers, statusCode, statusText } = this\n\n assert(upgrade)\n assert(client[kSocket] === socket)\n assert(!socket.destroyed)\n assert(!this.paused)\n assert((headers.length & 1) === 0)\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n assert(request.upgrade || request.method === 'CONNECT')\n\n this.statusCode = null\n this.statusText = ''\n this.shouldKeepAlive = null\n\n this.headers = []\n this.headersSize = 0\n\n socket.unshift(head)\n\n socket[kParser].destroy()\n socket[kParser] = null\n\n socket[kClient] = null\n socket[kError] = null\n\n removeAllListeners(socket)\n\n client[kSocket] = null\n client[kHTTPContext] = null // TODO (fix): This is hacky...\n client[kQueue][client[kRunningIdx]++] = null\n client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))\n\n try {\n request.onUpgrade(statusCode, headers, socket, statusText)\n } catch (error) {\n util.errorRequest(client, request, error)\n util.destroy(socket, error)\n }\n\n client[kResume]()\n }\n\n onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {\n const { client, socket, headers, statusText } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n if (client[kRunning] === 0) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n\n /* istanbul ignore next: difficult to make a test case for */\n if (!request) {\n return -1\n }\n\n assert(!this.upgrade)\n assert(this.statusCode < 200)\n\n if (statusCode === 100) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n /* this can only happen if server is misbehaving */\n if (upgrade && !request.upgrade) {\n util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))\n return -1\n }\n\n assert(this.timeoutType === TIMEOUT_HEADERS)\n\n this.statusCode = statusCode\n this.shouldKeepAlive = (\n shouldKeepAlive ||\n // Override llhttp value which does not allow keepAlive for HEAD.\n (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')\n )\n\n if (this.statusCode >= 200) {\n const bodyTimeout = request.bodyTimeout != null\n ? request.bodyTimeout\n : client[kBodyTimeout]\n this.setTimeout(bodyTimeout, TIMEOUT_BODY)\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n if (request.method === 'CONNECT') {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n if (upgrade) {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n assert((this.headers.length & 1) === 0)\n this.headers = []\n this.headersSize = 0\n\n if (this.shouldKeepAlive && client[kPipelining]) {\n const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null\n\n if (keepAliveTimeout != null) {\n const timeout = Math.min(\n keepAliveTimeout - client[kKeepAliveTimeoutThreshold],\n client[kKeepAliveMaxTimeout]\n )\n if (timeout <= 0) {\n socket[kReset] = true\n } else {\n client[kKeepAliveTimeoutValue] = timeout\n }\n } else {\n client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]\n }\n } else {\n // Stop more requests from being dispatched.\n socket[kReset] = true\n }\n\n const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false\n\n if (request.aborted) {\n return -1\n }\n\n if (request.method === 'HEAD') {\n return 1\n }\n\n if (statusCode < 200) {\n return 1\n }\n\n if (socket[kBlocking]) {\n socket[kBlocking] = false\n client[kResume]()\n }\n\n return pause ? constants.ERROR.PAUSED : 0\n }\n\n onBody (buf) {\n const { client, socket, statusCode, maxResponseSize } = this\n\n if (socket.destroyed) {\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n assert(this.timeoutType === TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n assert(statusCode >= 200)\n\n if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {\n util.destroy(socket, new ResponseExceededMaxSizeError())\n return -1\n }\n\n this.bytesRead += buf.length\n\n if (request.onData(buf) === false) {\n return constants.ERROR.PAUSED\n }\n }\n\n onMessageComplete () {\n const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this\n\n if (socket.destroyed && (!statusCode || shouldKeepAlive)) {\n return -1\n }\n\n if (upgrade) {\n return\n }\n\n assert(statusCode >= 100)\n assert((this.headers.length & 1) === 0)\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n this.statusCode = null\n this.statusText = ''\n this.bytesRead = 0\n this.contentLength = ''\n this.keepAlive = ''\n this.connection = ''\n\n this.headers = []\n this.headersSize = 0\n\n if (statusCode < 200) {\n return\n }\n\n /* istanbul ignore next: should be handled by llhttp? */\n if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {\n util.destroy(socket, new ResponseContentLengthMismatchError())\n return -1\n }\n\n request.onComplete(headers)\n\n client[kQueue][client[kRunningIdx]++] = null\n socket[kSocketUsed] = true\n\n if (socket[kWriting]) {\n assert(client[kRunning] === 0)\n // Response completed before request.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (!shouldKeepAlive) {\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (socket[kReset] && client[kRunning] === 0) {\n // Destroy socket once all requests have completed.\n // The request at the tail of the pipeline is the one\n // that requested reset and no further requests should\n // have been queued since then.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (client[kPipelining] == null || client[kPipelining] === 1) {\n // We must wait a full event loop cycle to reuse this socket to make sure\n // that non-spec compliant servers are not closing the connection even if they\n // said they won't.\n setImmediate(() => client[kResume]())\n } else {\n client[kResume]()\n }\n }\n}\n\nfunction onParserTimeout (parser) {\n const { socket, timeoutType, client, paused } = parser.deref()\n\n /* istanbul ignore else */\n if (timeoutType === TIMEOUT_HEADERS) {\n if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {\n assert(!paused, 'cannot be paused while waiting for headers')\n util.destroy(socket, new HeadersTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_BODY) {\n if (!paused) {\n util.destroy(socket, new BodyTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {\n assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])\n util.destroy(socket, new InformationalError('socket idle timeout'))\n }\n}\n\nasync function connectH1 (client, socket) {\n client[kSocket] = socket\n\n if (!llhttpInstance) {\n llhttpInstance = await llhttpPromise\n llhttpPromise = null\n }\n\n socket[kNoRef] = false\n socket[kWriting] = false\n socket[kReset] = false\n socket[kBlocking] = false\n socket[kIdleSocketValidation] = 0\n socket[kIdleSocketValidationTimeout] = null\n socket[kSocketUsed] = false\n socket[kParser] = new Parser(client, socket, llhttpInstance)\n\n addListener(socket, 'error', function (err) {\n const parser = this[kParser]\n\n // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded\n // to the user.\n if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {\n const parserErr = parser.finish()\n if (parserErr) {\n this[kError] = parserErr\n this[kClient][kOnError](parserErr)\n }\n return\n }\n\n this[kError] = err\n\n this[kClient][kOnError](err)\n })\n addListener(socket, 'readable', function () {\n const parser = this[kParser]\n\n if (parser) {\n parser.readMore()\n }\n })\n addListener(socket, 'end', function () {\n const parser = this[kParser]\n\n if (parser.statusCode && !parser.shouldKeepAlive) {\n const parserErr = parser.finish()\n if (parserErr) {\n util.destroy(this, parserErr)\n }\n return\n }\n\n util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))\n })\n addListener(socket, 'close', function () {\n const client = this[kClient]\n const parser = this[kParser]\n\n clearIdleSocketValidation(this)\n\n if (parser) {\n if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {\n this[kError] = parser.finish() || this[kError]\n }\n\n this[kParser].destroy()\n this[kParser] = null\n }\n\n const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))\n\n client[kSocket] = null\n client[kHTTPContext] = null // TODO (fix): This is hacky...\n\n if (client.destroyed) {\n assert(client[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {\n // Fail head of pipeline.\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n\n util.errorRequest(client, request, err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n })\n\n let closed = false\n socket.on('close', () => {\n closed = true\n })\n\n return {\n version: 'h1',\n defaultPipelining: 1,\n write (...args) {\n return writeH1(client, ...args)\n },\n resume () {\n resumeH1(client)\n },\n destroy (err, callback) {\n if (closed) {\n queueMicrotask(callback)\n } else {\n socket.destroy(err).on('close', callback)\n }\n },\n get destroyed () {\n return socket.destroyed\n },\n busy (request) {\n if (socket[kWriting] || socket[kReset] || socket[kBlocking] || socket[kIdleSocketValidation] === 1) {\n return true\n }\n\n if (request) {\n if (client[kRunning] > 0 && !request.idempotent) {\n // Non-idempotent request cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return true\n }\n\n if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {\n // Don't dispatch an upgrade until all preceding requests have completed.\n // A misbehaving server might upgrade the connection before all pipelined\n // request has completed.\n return true\n }\n\n if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 &&\n (util.isStream(request.body) || util.isAsyncIterable(request.body) || util.isFormDataLike(request.body))) {\n // Request with stream or iterator body can error while other requests\n // are inflight and indirectly error those as well.\n // Ensure this doesn't happen by waiting for inflight\n // to complete before dispatching.\n\n // Request with stream or iterator body cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return true\n }\n }\n\n return false\n }\n }\n}\n\nfunction clearIdleSocketValidation (socket) {\n if (socket[kIdleSocketValidationTimeout]) {\n clearImmediate(socket[kIdleSocketValidationTimeout])\n socket[kIdleSocketValidationTimeout] = null\n }\n\n socket[kIdleSocketValidation] = 0\n}\n\nfunction scheduleIdleSocketValidation (client, socket) {\n socket[kIdleSocketValidation] = 1\n // Yield to the check phase (after poll) so unsolicited bytes / FIN / RST\n // already pending on this idle keep-alive socket are processed before the\n // next request is written (GHSA-35p6-xmwp-9g52).\n //\n // setTimeout(0) pays Node's ~1ms timer floor on every sequential reuse\n // (#5493). setImmediate avoids that, but an *unref'd* Immediate lets poll\n // block for ~500ms when the event loop is otherwise idle (#5600 / #5606).\n // A ref'd Immediate both keeps the pending request alive and makes poll\n // return immediately \u2014 the hybrid those issues asked for.\n socket[kIdleSocketValidationTimeout] = setImmediate(() => {\n socket[kIdleSocketValidationTimeout] = null\n socket[kIdleSocketValidation] = 2\n\n if (client[kSocket] === socket && !socket.destroyed) {\n client[kResume]()\n }\n })\n}\n\n/**\n * @param {import('./client.js')} client\n */\nfunction resumeH1 (client) {\n const socket = client[kSocket]\n\n if (socket && !socket.destroyed) {\n if (client[kSize] === 0) {\n if (!socket[kNoRef] && socket.unref) {\n socket.unref()\n socket[kNoRef] = true\n }\n } else if (socket[kNoRef] && socket.ref) {\n socket.ref()\n socket[kNoRef] = false\n }\n\n if (client[kRunning] === 0 && client[kPending] > 0 && socket[kSocketUsed]) {\n if (socket[kIdleSocketValidation] === 0) {\n scheduleIdleSocketValidation(client, socket)\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n return\n }\n\n if (socket[kIdleSocketValidation] === 1) {\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n return\n }\n }\n\n if (client[kRunning] === 0) {\n socket[kParser].readMore()\n if (socket.destroyed) {\n return\n }\n }\n\n if (client[kSize] === 0) {\n if (socket[kParser].timeoutType !== TIMEOUT_KEEP_ALIVE) {\n socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_KEEP_ALIVE)\n }\n } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {\n if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {\n const request = client[kQueue][client[kRunningIdx]]\n const headersTimeout = request.headersTimeout != null\n ? request.headersTimeout\n : client[kHeadersTimeout]\n socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)\n }\n }\n }\n}\n\n// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2\nfunction shouldSendContentLength (method) {\n return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'\n}\n\nfunction writeH1 (client, request) {\n const { method, path, host, upgrade, blocking, reset } = request\n\n let { body, headers, contentLength } = request\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH' ||\n method === 'QUERY' ||\n method === 'PROPFIND' ||\n method === 'PROPPATCH'\n )\n\n if (util.isFormDataLike(body)) {\n if (!extractBody) {\n extractBody = require('../web/fetch/body.js').extractBody\n }\n\n const [bodyStream, contentType] = extractBody(body)\n if (request.contentType == null) {\n headers.push('content-type', contentType)\n }\n body = bodyStream.stream\n contentLength = bodyStream.length\n } else if (util.isBlobLike(body) && request.contentType == null) {\n const contentType = body.type\n if (contentType) {\n const contentTypeValue = `${contentType}`\n if (!util.isValidHeaderValue(contentTypeValue)) {\n util.errorRequest(client, request, new InvalidArgumentError('invalid content-type header'))\n return false\n }\n headers.push('content-type', contentTypeValue)\n }\n }\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n const bodyLength = util.bodyLength(body)\n\n contentLength = bodyLength ?? contentLength\n\n if (contentLength === null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 && !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n util.errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n const socket = client[kSocket]\n clearIdleSocketValidation(socket)\n\n /**\n * @param {Error} [error]\n */\n const abort = (error) => {\n if (request.aborted) {\n return\n }\n\n if (request.completed) {\n if (request.upgrade || request.method === 'CONNECT') {\n util.destroy(socket, new InformationalError('aborted'))\n }\n return\n }\n\n util.errorRequest(client, request, error || new RequestAbortedError())\n\n util.destroy(body)\n util.destroy(socket, new InformationalError('aborted'))\n }\n\n try {\n request.onConnect(abort)\n } catch (err) {\n util.errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n if (method === 'HEAD') {\n // https://github.com/mcollina/undici/issues/258\n // Close after a HEAD request to interop with misbehaving servers\n // that may send a body in the response.\n\n socket[kReset] = true\n }\n\n if (upgrade || method === 'CONNECT') {\n // On CONNECT or upgrade, block pipeline from dispatching further\n // requests on this connection.\n\n socket[kReset] = true\n }\n\n if (reset != null) {\n socket[kReset] = reset\n }\n\n if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {\n socket[kReset] = true\n }\n\n if (blocking) {\n socket[kBlocking] = true\n }\n\n let header = `${method} ${path} HTTP/1.1\\r\\n`\n\n if (typeof host === 'string') {\n header += `host: ${host}\\r\\n`\n } else {\n header += client[kHostHeader]\n }\n\n if (upgrade) {\n header += `connection: upgrade\\r\\nupgrade: ${upgrade}\\r\\n`\n } else if (client[kPipelining] && !socket[kReset]) {\n header += 'connection: keep-alive\\r\\n'\n } else {\n header += 'connection: close\\r\\n'\n }\n\n if (Array.isArray(headers)) {\n for (let n = 0; n < headers.length; n += 2) {\n const key = headers[n + 0]\n const val = headers[n + 1]\n\n if (Array.isArray(val)) {\n for (let i = 0; i < val.length; i++) {\n header += `${key}: ${val[i]}\\r\\n`\n }\n } else {\n header += `${key}: ${val}\\r\\n`\n }\n }\n }\n\n if (channels.sendHeaders.hasSubscribers) {\n channels.sendHeaders.publish({ request, headers: header, socket })\n }\n\n /* istanbul ignore else: assertion */\n if (!body || bodyLength === 0) {\n writeBuffer(abort, null, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isBuffer(body)) {\n writeBuffer(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable(abort, body.stream(), client, request, socket, contentLength, header, expectsPayload)\n } else {\n writeBlob(abort, body, client, request, socket, contentLength, header, expectsPayload)\n }\n } else if (util.isStream(body)) {\n writeStream(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else if (util.isIterable(body)) {\n writeIterable(abort, body, client, request, socket, contentLength, header, expectsPayload)\n } else {\n assert(false)\n }\n\n return true\n}\n\nfunction writeStream (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')\n\n let finished = false\n\n const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header })\n\n const onData = function (chunk) {\n if (finished) {\n return\n }\n\n try {\n if (!writer.write(chunk) && this.pause) {\n this.pause()\n }\n } catch (err) {\n util.destroy(this, err)\n }\n }\n const onDrain = function () {\n if (finished) {\n return\n }\n\n if (body.resume) {\n body.resume()\n }\n }\n const onClose = function () {\n // 'close' might be emitted *before* 'error' for\n // broken streams. Wait a tick to avoid this case.\n queueMicrotask(() => {\n // It's only safe to remove 'error' listener after\n // 'close'.\n body.removeListener('error', onFinished)\n })\n\n if (!finished) {\n const err = new RequestAbortedError()\n queueMicrotask(() => onFinished(err))\n }\n }\n const onFinished = function (err) {\n if (finished) {\n return\n }\n\n finished = true\n\n assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))\n\n socket\n .off('drain', onDrain)\n .off('error', onFinished)\n\n body\n .removeListener('data', onData)\n .removeListener('end', onFinished)\n .removeListener('close', onClose)\n\n if (!err) {\n try {\n writer.end()\n } catch (er) {\n err = er\n }\n }\n\n writer.destroy(err)\n\n if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {\n util.destroy(body, err)\n } else {\n util.destroy(body)\n }\n }\n\n body\n .on('data', onData)\n .on('end', onFinished)\n .on('error', onFinished)\n .on('close', onClose)\n\n if (body.resume) {\n body.resume()\n }\n\n socket\n .on('drain', onDrain)\n .on('error', onFinished)\n\n if (body.errorEmitted ?? body.errored) {\n setImmediate(() => onFinished(body.errored))\n } else if (body.endEmitted ?? body.readableEnded) {\n setImmediate(() => onFinished(null))\n }\n\n if (body.closeEmitted ?? body.closed) {\n setImmediate(onClose)\n }\n}\n\nfunction writeBuffer (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n try {\n if (!body) {\n if (contentLength === 0) {\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n assert(contentLength === null, 'no body must not have content length')\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n } else if (util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(body)\n socket.uncork()\n request.onBodySent(body)\n\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n }\n request.onRequestSent()\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeBlob (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength === body.size, 'blob body must have content length')\n\n try {\n if (contentLength != null && contentLength !== body.size) {\n throw new RequestContentLengthMismatchError()\n }\n\n const buffer = Buffer.from(await body.arrayBuffer())\n\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(buffer)\n socket.uncork()\n\n request.onBodySent(buffer)\n request.onRequestSent()\n\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeIterable (abort, body, client, request, socket, contentLength, header, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')\n\n let callback = null\n function onDrain () {\n if (callback) {\n const cb = callback\n callback = null\n cb()\n }\n }\n\n const waitForDrain = () => new Promise((resolve, reject) => {\n assert(callback === null)\n\n if (socket[kError]) {\n reject(socket[kError])\n } else {\n callback = resolve\n }\n })\n\n socket\n .on('close', onDrain)\n .on('drain', onDrain)\n\n const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header })\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (!writer.write(chunk)) {\n await waitForDrain()\n }\n }\n\n writer.end()\n } catch (err) {\n writer.destroy(err)\n } finally {\n socket\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n}\n\nclass AsyncWriter {\n constructor ({ abort, socket, request, contentLength, client, expectsPayload, header }) {\n this.socket = socket\n this.request = request\n this.contentLength = contentLength\n this.client = client\n this.bytesWritten = 0\n this.expectsPayload = expectsPayload\n this.header = header\n this.abort = abort\n\n socket[kWriting] = true\n }\n\n write (chunk) {\n const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return false\n }\n\n const len = Buffer.byteLength(chunk)\n if (!len) {\n return true\n }\n\n // We should defer writing chunks.\n if (contentLength !== null && bytesWritten + len > contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n socket.cork()\n\n if (bytesWritten === 0) {\n if (!expectsPayload && request.reset !== false) {\n socket[kReset] = true\n }\n\n if (contentLength === null) {\n socket.write(`${header}transfer-encoding: chunked\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n }\n }\n\n if (contentLength === null) {\n socket.write(`\\r\\n${len.toString(16)}\\r\\n`, 'latin1')\n }\n\n this.bytesWritten += len\n\n const ret = socket.write(chunk)\n\n socket.uncork()\n\n request.onBodySent(chunk)\n\n if (!ret) {\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n }\n\n return ret\n }\n\n end () {\n const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this\n request.onRequestSent()\n\n socket[kWriting] = false\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return\n }\n\n if (bytesWritten === 0) {\n if (expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD send a Content-Length in a request message when\n // no Transfer-Encoding is sent and the request method defines a meaning\n // for an enclosed payload body.\n\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n } else if (contentLength === null) {\n socket.write('\\r\\n0\\r\\n\\r\\n', 'latin1')\n }\n\n if (contentLength !== null && bytesWritten !== contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n } else {\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n }\n\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n\n client[kResume]()\n }\n\n destroy (err) {\n const { socket, client, abort } = this\n\n socket[kWriting] = false\n\n if (err) {\n assert(client[kRunning] <= 1, 'pipeline should only contain this request')\n abort(err)\n }\n }\n}\n\nmodule.exports = connectH1\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { errorMonitor } = require('node:events')\nconst { pipeline } = require('node:stream')\nconst util = require('../core/util.js')\nconst {\n RequestContentLengthMismatchError,\n RequestAbortedError,\n SocketError,\n InformationalError\n} = require('../core/errors.js')\nconst {\n kUrl,\n kReset,\n kClient,\n kRunning,\n kPending,\n kQueue,\n kPendingIdx,\n kRunningIdx,\n kError,\n kSocket,\n kStrictContentLength,\n kOnError,\n kMaxConcurrentStreams,\n kHTTP2Session,\n kResume,\n kSize,\n kHTTPContext\n} = require('../core/symbols.js')\n\nconst kOpenStreams = Symbol('open streams')\n\nlet extractBody\n\n// Experimental\nlet h2ExperimentalWarned = false\n\n/** @type {import('http2')} */\nlet http2\ntry {\n http2 = require('node:http2')\n} catch {\n // @ts-ignore\n http2 = { constants: {} }\n}\n\nconst {\n constants: {\n HTTP2_HEADER_AUTHORITY,\n HTTP2_HEADER_METHOD,\n HTTP2_HEADER_PATH,\n HTTP2_HEADER_SCHEME,\n HTTP2_HEADER_CONTENT_LENGTH,\n HTTP2_HEADER_EXPECT,\n HTTP2_HEADER_STATUS\n }\n} = http2\n\nfunction parseH2Headers (headers) {\n const result = []\n\n for (const [name, value] of Object.entries(headers)) {\n // h2 may concat the header value by array\n // e.g. Set-Cookie\n if (Array.isArray(value)) {\n for (const subvalue of value) {\n // we need to provide each header value of header name\n // because the headers handler expect name-value pair\n result.push(Buffer.from(name), Buffer.from(subvalue))\n }\n } else {\n result.push(Buffer.from(name), Buffer.from(value))\n }\n }\n\n return result\n}\n\n/**\n * @param {import('node:http2').IncomingHttpHeaders} headers\n * @returns {Buffer[]}\n */\nfunction parseH2ResponseHeaders (headers) {\n const { [HTTP2_HEADER_STATUS]: _statusCode, ...realHeaders } = headers\n return parseH2Headers(realHeaders)\n}\n\nasync function connectH2 (client, socket) {\n client[kSocket] = socket\n\n if (!h2ExperimentalWarned) {\n h2ExperimentalWarned = true\n process.emitWarning('H2 support is experimental, expect them to change at any time.', {\n code: 'UNDICI-H2'\n })\n }\n\n const session = http2.connect(client[kUrl], {\n createConnection: () => socket,\n peerMaxConcurrentStreams: client[kMaxConcurrentStreams]\n })\n\n session[kOpenStreams] = 0\n session[kClient] = client\n session[kSocket] = socket\n\n util.addListener(session, 'error', onHttp2SessionError)\n util.addListener(session, 'frameError', onHttp2FrameError)\n util.addListener(session, 'end', onHttp2SessionEnd)\n util.addListener(session, 'goaway', onHTTP2GoAway)\n util.addListener(session, 'close', function () {\n const { [kClient]: client } = this\n const { [kSocket]: socket } = client\n\n const err = this[kSocket][kError] || this[kError] || new SocketError('closed', util.getSocketInfo(socket))\n\n client[kHTTP2Session] = null\n\n if (client.destroyed) {\n assert(client[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n }\n })\n\n session.unref()\n\n client[kHTTP2Session] = session\n socket[kHTTP2Session] = session\n\n util.addListener(socket, 'error', function (err) {\n this[kError] = err\n\n this[kClient][kOnError](err)\n })\n\n util.addListener(socket, 'end', function () {\n util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))\n })\n\n util.addListener(socket, 'close', function () {\n const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))\n\n client[kSocket] = null\n\n if (this[kHTTP2Session] != null) {\n this[kHTTP2Session].destroy(err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n })\n\n let closed = false\n socket.on('close', () => {\n closed = true\n })\n\n return {\n version: 'h2',\n defaultPipelining: Infinity,\n write (...args) {\n return writeH2(client, ...args)\n },\n resume () {\n resumeH2(client)\n },\n destroy (err, callback) {\n if (closed) {\n queueMicrotask(callback)\n } else {\n // Destroying the socket will trigger the session close\n socket.destroy(err).on('close', callback)\n }\n },\n get destroyed () {\n return socket.destroyed\n },\n busy () {\n return false\n }\n }\n}\n\nfunction resumeH2 (client) {\n const socket = client[kSocket]\n\n if (socket?.destroyed === false) {\n if (client[kSize] === 0 && client[kMaxConcurrentStreams] === 0) {\n socket.unref()\n client[kHTTP2Session].unref()\n } else {\n socket.ref()\n client[kHTTP2Session].ref()\n }\n }\n}\n\nfunction onHttp2SessionError (err) {\n this[kSocket][kError] = err\n this[kClient][kOnError](err)\n}\n\nfunction onHttp2FrameError (type, code, id) {\n if (id === 0) {\n const err = new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`)\n this[kSocket][kError] = err\n this[kClient][kOnError](err)\n }\n}\n\nfunction onHttp2SessionEnd () {\n const err = new SocketError('other side closed', util.getSocketInfo(this[kSocket]))\n this.destroy(err)\n util.destroy(this[kSocket], err)\n}\n\n/**\n * This is the root cause of #3011\n * We need to handle GOAWAY frames properly, and trigger the session close\n * along with the socket right away\n */\nfunction onHTTP2GoAway (code) {\n // We cannot recover, so best to close the session and the socket\n const err = this[kError] || new SocketError(`HTTP/2: \"GOAWAY\" frame received with code ${code}`, util.getSocketInfo(this))\n const client = this[kClient]\n\n client[kSocket] = null\n client[kHTTPContext] = null\n\n if (this[kHTTP2Session] != null) {\n this[kHTTP2Session].destroy(err)\n this[kHTTP2Session] = null\n }\n\n util.destroy(this[kSocket], err)\n\n // Fail head of pipeline.\n if (client[kRunningIdx] < client[kQueue].length) {\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n util.errorRequest(client, request, err)\n client[kPendingIdx] = client[kRunningIdx]\n }\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n client[kResume]()\n}\n\n// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2\nfunction shouldSendContentLength (method) {\n return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'\n}\n\nfunction writeH2 (client, request) {\n const session = client[kHTTP2Session]\n const { method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request\n let { body } = request\n\n if (upgrade) {\n util.errorRequest(client, request, new Error('Upgrade not supported for H2'))\n return false\n }\n\n const headers = {}\n for (let n = 0; n < reqHeaders.length; n += 2) {\n const key = reqHeaders[n + 0]\n const val = reqHeaders[n + 1]\n\n if (Array.isArray(val)) {\n for (let i = 0; i < val.length; i++) {\n if (headers[key]) {\n headers[key] += `,${val[i]}`\n } else {\n headers[key] = val[i]\n }\n }\n } else {\n headers[key] = val\n }\n }\n\n /** @type {import('node:http2').ClientHttp2Stream} */\n let stream\n\n const { hostname, port } = client[kUrl]\n\n headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname}${port ? `:${port}` : ''}`\n headers[HTTP2_HEADER_METHOD] = method\n\n /**\n * @param {Error} [error]\n */\n const abort = (error) => {\n if (request.aborted) {\n return\n }\n\n if (request.completed) {\n if (method === 'CONNECT' && stream != null) {\n util.destroy(stream, error || new RequestAbortedError())\n }\n return\n }\n\n error = error || new RequestAbortedError()\n\n util.errorRequest(client, request, error)\n\n if (stream != null) {\n util.destroy(stream, error)\n }\n\n // We do not destroy the socket as we can continue using the session\n // the stream get's destroyed and the session remains to create new streams\n util.destroy(body, error)\n client[kQueue][client[kRunningIdx]++] = null\n client[kResume]()\n }\n\n try {\n // We are already connected, streams are pending.\n // We can call on connect, and wait for abort\n request.onConnect(abort)\n } catch (err) {\n util.errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n if (method === 'CONNECT') {\n session.ref()\n // We disabled endStream to allow the user to write to the stream\n stream = session.request(headers, { endStream: false, signal })\n let upgradeResponseFinished = false\n\n /**\n * @param {import('node:http2').IncomingHttpHeaders} headers\n */\n const onResponse = (headers) => {\n upgradeResponseFinished = true\n stream.off(errorMonitor, onUpgradeError)\n request.onUpgradeResponse(Number(headers[HTTP2_HEADER_STATUS]), headers, parseH2ResponseHeaders)\n }\n\n /**\n * @param {Error} error\n */\n const onUpgradeError = (error) => {\n upgradeResponseFinished = true\n stream.off('response', onResponse)\n request.onUpgradeError(error)\n }\n\n const onReady = () => {\n try {\n request.onUpgrade(null, null, stream)\n } catch (error) {\n stream.off('response', onResponse)\n abort(error)\n return\n }\n\n if (request.aborted) {\n return\n }\n\n stream.off('error', abort)\n stream.once(errorMonitor, onUpgradeError)\n client[kQueue][client[kRunningIdx]++] = null\n }\n\n stream.once('response', onResponse)\n stream.once('error', abort)\n ++session[kOpenStreams]\n onReady()\n\n stream.once('close', () => {\n if (!upgradeResponseFinished && request.completed) {\n stream.off('response', onResponse)\n stream.off(errorMonitor, onUpgradeError)\n request.onUpgradeError(new InformationalError(`HTTP/2: \"stream error\" received - code ${stream.rstCode}`))\n }\n session[kOpenStreams] -= 1\n if (session[kOpenStreams] === 0) session.unref()\n })\n\n return true\n }\n\n // https://tools.ietf.org/html/rfc7540#section-8.3\n // :path and :scheme headers must be omitted when sending CONNECT\n\n headers[HTTP2_HEADER_PATH] = path\n headers[HTTP2_HEADER_SCHEME] = 'https'\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH'\n )\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n let contentLength = util.bodyLength(body)\n\n if (util.isFormDataLike(body)) {\n extractBody ??= require('../web/fetch/body.js').extractBody\n\n const [bodyStream, contentType] = extractBody(body)\n headers['content-type'] = contentType\n\n body = bodyStream.stream\n contentLength = bodyStream.length\n }\n\n if (contentLength == null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 || !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n util.errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n if (contentLength != null) {\n assert(body, 'no body must not have content length')\n headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`\n }\n\n session.ref()\n\n const shouldEndStream = method === 'GET' || method === 'HEAD' || body === null\n if (expectContinue) {\n headers[HTTP2_HEADER_EXPECT] = '100-continue'\n stream = session.request(headers, { endStream: shouldEndStream, signal })\n\n stream.once('continue', writeBodyH2)\n } else {\n stream = session.request(headers, {\n endStream: shouldEndStream,\n signal\n })\n writeBodyH2()\n }\n\n // Increment counter as we have new streams open\n ++session[kOpenStreams]\n\n stream.once('response', headers => {\n const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers\n request.onResponseStarted()\n\n // Due to the stream nature, it is possible we face a race condition\n // where the stream has been assigned, but the request has been aborted\n // the request remains in-flight and headers hasn't been received yet\n // for those scenarios, best effort is to destroy the stream immediately\n // as there's no value to keep it open.\n if (request.aborted) {\n const err = new RequestAbortedError()\n util.errorRequest(client, request, err)\n util.destroy(stream, err)\n return\n }\n\n if (request.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), '') === false) {\n stream.pause()\n }\n\n stream.on('data', (chunk) => {\n if (request.onData(chunk) === false) {\n stream.pause()\n }\n })\n })\n\n stream.once('end', () => {\n // When state is null, it means we haven't consumed body and the stream still do not have\n // a state.\n // Present specially when using pipeline or stream\n if (stream.state?.state == null || stream.state.state < 6) {\n request.onComplete([])\n }\n\n if (session[kOpenStreams] === 0) {\n // Stream is closed or half-closed-remote (6), decrement counter and cleanup\n // It does not have sense to continue working with the stream as we do not\n // have yet RST_STREAM support on client-side\n\n session.unref()\n }\n\n abort(new InformationalError('HTTP/2: stream half-closed (remote)'))\n client[kQueue][client[kRunningIdx]++] = null\n client[kPendingIdx] = client[kRunningIdx]\n client[kResume]()\n })\n\n stream.once('close', () => {\n session[kOpenStreams] -= 1\n if (session[kOpenStreams] === 0) {\n session.unref()\n }\n })\n\n stream.once('error', function (err) {\n abort(err)\n })\n\n stream.once('frameError', (type, code) => {\n abort(new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`))\n })\n\n // stream.on('aborted', () => {\n // // TODO(HTTP/2): Support aborted\n // })\n\n // stream.on('timeout', () => {\n // // TODO(HTTP/2): Support timeout\n // })\n\n // stream.on('push', headers => {\n // // TODO(HTTP/2): Support push\n // })\n\n // stream.on('trailers', headers => {\n // // TODO(HTTP/2): Support trailers\n // })\n\n return true\n\n function writeBodyH2 () {\n /* istanbul ignore else: assertion */\n if (!body || contentLength === 0) {\n writeBuffer(\n abort,\n stream,\n null,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else if (util.isBuffer(body)) {\n writeBuffer(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable(\n abort,\n stream,\n body.stream(),\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else {\n writeBlob(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n }\n } else if (util.isStream(body)) {\n writeStream(\n abort,\n client[kSocket],\n expectsPayload,\n stream,\n body,\n client,\n request,\n contentLength\n )\n } else if (util.isIterable(body)) {\n writeIterable(\n abort,\n stream,\n body,\n client,\n request,\n client[kSocket],\n contentLength,\n expectsPayload\n )\n } else {\n assert(false)\n }\n }\n}\n\nfunction writeBuffer (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n try {\n if (body != null && util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n h2stream.cork()\n h2stream.write(body)\n h2stream.uncork()\n h2stream.end()\n\n request.onBodySent(body)\n }\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n request.onRequestSent()\n client[kResume]()\n } catch (error) {\n abort(error)\n }\n}\n\nfunction writeStream (abort, socket, expectsPayload, h2stream, body, client, request, contentLength) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')\n\n // For HTTP/2, is enough to pipe the stream\n const pipe = pipeline(\n body,\n h2stream,\n (err) => {\n if (err) {\n util.destroy(pipe, err)\n abort(err)\n } else {\n util.removeAllListeners(pipe)\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n }\n }\n )\n\n util.addListener(pipe, 'data', onPipeData)\n\n function onPipeData (chunk) {\n request.onBodySent(chunk)\n }\n}\n\nasync function writeBlob (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n assert(contentLength === body.size, 'blob body must have content length')\n\n try {\n if (contentLength != null && contentLength !== body.size) {\n throw new RequestContentLengthMismatchError()\n }\n\n const buffer = Buffer.from(await body.arrayBuffer())\n\n h2stream.cork()\n h2stream.write(buffer)\n h2stream.uncork()\n h2stream.end()\n\n request.onBodySent(buffer)\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n }\n}\n\nasync function writeIterable (abort, h2stream, body, client, request, socket, contentLength, expectsPayload) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')\n\n let callback = null\n function onDrain () {\n if (callback) {\n const cb = callback\n callback = null\n cb()\n }\n }\n\n const waitForDrain = () => new Promise((resolve, reject) => {\n assert(callback === null)\n\n if (socket[kError]) {\n reject(socket[kError])\n } else {\n callback = resolve\n }\n })\n\n h2stream\n .on('close', onDrain)\n .on('drain', onDrain)\n\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n const res = h2stream.write(chunk)\n request.onBodySent(chunk)\n if (!res) {\n await waitForDrain()\n }\n }\n\n h2stream.end()\n\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n client[kResume]()\n } catch (err) {\n abort(err)\n } finally {\n h2stream\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n}\n\nmodule.exports = connectH2\n", "'use strict'\n\nconst util = require('../core/util')\nconst { kBodyUsed } = require('../core/symbols')\nconst assert = require('node:assert')\nconst { InvalidArgumentError } = require('../core/errors')\nconst EE = require('node:events')\n\nconst redirectableStatusCodes = [300, 301, 302, 303, 307, 308]\n\nconst kBody = Symbol('body')\n\nclass BodyAsyncIterable {\n constructor (body) {\n this[kBody] = body\n this[kBodyUsed] = false\n }\n\n async * [Symbol.asyncIterator] () {\n assert(!this[kBodyUsed], 'disturbed')\n this[kBodyUsed] = true\n yield * this[kBody]\n }\n}\n\nclass RedirectHandler {\n constructor (dispatch, maxRedirections, opts, handler) {\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n util.validateHandler(handler, opts.method, opts.upgrade)\n\n this.dispatch = dispatch\n this.location = null\n this.abort = null\n this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy\n this.maxRedirections = maxRedirections\n this.handler = handler\n this.history = []\n this.redirectionLimitReached = false\n\n if (util.isStream(this.opts.body)) {\n // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp\n // so that it can be dispatched again?\n // TODO (fix): Do we need 100-expect support to provide a way to do this properly?\n if (util.bodyLength(this.opts.body) === 0) {\n this.opts.body\n .on('data', function () {\n assert(false)\n })\n }\n\n if (typeof this.opts.body.readableDidRead !== 'boolean') {\n this.opts.body[kBodyUsed] = false\n EE.prototype.on.call(this.opts.body, 'data', function () {\n this[kBodyUsed] = true\n })\n }\n } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') {\n // TODO (fix): We can't access ReadableStream internal state\n // to determine whether or not it has been disturbed. This is just\n // a workaround.\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n } else if (\n this.opts.body &&\n typeof this.opts.body !== 'string' &&\n !ArrayBuffer.isView(this.opts.body) &&\n util.isIterable(this.opts.body)\n ) {\n // TODO: Should we allow re-using iterable if !this.opts.idempotent\n // or through some other flag?\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n }\n }\n\n onConnect (abort) {\n this.abort = abort\n this.handler.onConnect(abort, { history: this.history })\n }\n\n onUpgrade (statusCode, headers, socket) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n\n onError (error) {\n this.handler.onError(error)\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body)\n ? null\n : parseLocation(statusCode, headers)\n\n if (this.opts.throwOnMaxRedirect && this.history.length >= this.maxRedirections) {\n if (this.request) {\n this.request.abort(new Error('max redirects'))\n }\n\n this.redirectionLimitReached = true\n this.abort(new Error('max redirects'))\n return\n }\n\n if (this.opts.origin) {\n this.history.push(new URL(this.opts.path, this.opts.origin))\n }\n\n if (!this.location) {\n return this.handler.onHeaders(statusCode, headers, resume, statusText)\n }\n\n const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))\n const path = search ? `${pathname}${search}` : pathname\n\n // Remove headers referring to the original URL.\n // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers.\n // https://tools.ietf.org/html/rfc7231#section-6.4\n this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin)\n this.opts.path = path\n this.opts.origin = origin\n this.opts.maxRedirections = 0\n this.opts.query = null\n\n // https://tools.ietf.org/html/rfc7231#section-6.4.4\n // In case of HTTP 303, always replace method to be either HEAD or GET\n if (statusCode === 303 && this.opts.method !== 'HEAD') {\n this.opts.method = 'GET'\n this.opts.body = null\n }\n }\n\n onData (chunk) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response bodies.\n\n Redirection is used to serve the requested resource from another URL, so it is assumes that\n no body is generated (and thus can be ignored). Even though generating a body is not prohibited.\n\n For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually\n (which means it's optional and not mandated) contain just an hyperlink to the value of\n the Location response header, so the body can be ignored safely.\n\n For status 300, which is \"Multiple Choices\", the spec mentions both generating a Location\n response header AND a response body with the other possible location to follow.\n Since the spec explicitly chooses not to specify a format for such body and leave it to\n servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.\n */\n } else {\n return this.handler.onData(chunk)\n }\n }\n\n onComplete (trailers) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections\n and neither are useful if present.\n\n See comment on onData method above for more detailed information.\n */\n\n this.location = null\n this.abort = null\n\n this.dispatch(this.opts, this)\n } else {\n this.handler.onComplete(trailers)\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) {\n this.handler.onBodySent(chunk)\n }\n }\n}\n\nfunction parseLocation (statusCode, headers) {\n if (redirectableStatusCodes.indexOf(statusCode) === -1) {\n return null\n }\n\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].length === 8 && util.headerNameToString(headers[i]) === 'location') {\n return headers[i + 1]\n }\n }\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4.4\nfunction shouldRemoveHeader (header, removeContent, unknownOrigin) {\n if (header.length === 4) {\n return util.headerNameToString(header) === 'host'\n }\n if (removeContent && util.headerNameToString(header).startsWith('content-')) {\n return true\n }\n if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {\n const name = util.headerNameToString(header)\n return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization'\n }\n return false\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4\nfunction cleanRequestHeaders (headers, removeContent, unknownOrigin) {\n const ret = []\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {\n ret.push(headers[i], headers[i + 1])\n }\n }\n } else if (headers && typeof headers === 'object') {\n for (const key of Object.keys(headers)) {\n if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {\n ret.push(key, headers[key])\n }\n }\n } else {\n assert(headers == null, 'headers must be an object or an array')\n }\n return ret\n}\n\nmodule.exports = RedirectHandler\n", "'use strict'\n\nconst RedirectHandler = require('../handler/redirect-handler')\n\nfunction createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {\n return (dispatch) => {\n return function Intercept (opts, handler) {\n const { maxRedirections = defaultMaxRedirections } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)\n opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.\n return dispatch(opts, redirectHandler)\n }\n }\n}\n\nmodule.exports = createRedirectInterceptor\n", "// @ts-check\n\n'use strict'\n\nconst assert = require('node:assert')\nconst net = require('node:net')\nconst http = require('node:http')\nconst util = require('../core/util.js')\nconst { channels } = require('../core/diagnostics.js')\nconst Request = require('../core/request.js')\nconst DispatcherBase = require('./dispatcher-base')\nconst {\n InvalidArgumentError,\n InformationalError,\n ClientDestroyedError\n} = require('../core/errors.js')\nconst buildConnector = require('../core/connect.js')\nconst {\n kUrl,\n kServerName,\n kClient,\n kBusy,\n kConnect,\n kResuming,\n kRunning,\n kPending,\n kSize,\n kQueue,\n kConnected,\n kConnecting,\n kNeedDrain,\n kKeepAliveDefaultTimeout,\n kHostHeader,\n kPendingIdx,\n kRunningIdx,\n kError,\n kPipelining,\n kKeepAliveTimeoutValue,\n kMaxHeadersSize,\n kKeepAliveMaxTimeout,\n kKeepAliveTimeoutThreshold,\n kHeadersTimeout,\n kBodyTimeout,\n kStrictContentLength,\n kConnector,\n kMaxRedirections,\n kMaxRequests,\n kCounter,\n kClose,\n kDestroy,\n kDispatch,\n kInterceptors,\n kLocalAddress,\n kMaxResponseSize,\n kOnError,\n kHTTPContext,\n kMaxConcurrentStreams,\n kResume\n} = require('../core/symbols.js')\nconst connectH1 = require('./client-h1.js')\nconst connectH2 = require('./client-h2.js')\nlet deprecatedInterceptorWarned = false\n\nconst kClosedResolve = Symbol('kClosedResolve')\n\nconst noop = () => {}\n\nfunction getPipelining (client) {\n return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1\n}\n\n/**\n * @type {import('../../types/client.js').default}\n */\nclass Client extends DispatcherBase {\n /**\n *\n * @param {string|URL} url\n * @param {import('../../types/client.js').Client.Options} options\n */\n constructor (url, {\n interceptors,\n maxHeaderSize,\n headersTimeout,\n socketTimeout,\n requestTimeout,\n connectTimeout,\n bodyTimeout,\n idleTimeout,\n keepAlive,\n keepAliveTimeout,\n maxKeepAliveTimeout,\n keepAliveMaxTimeout,\n keepAliveTimeoutThreshold,\n socketPath,\n pipelining,\n tls,\n strictContentLength,\n maxCachedSessions,\n maxRedirections,\n connect,\n maxRequestsPerClient,\n localAddress,\n maxResponseSize,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n // h2\n maxConcurrentStreams,\n allowH2,\n webSocket,\n eventSource\n } = {}) {\n super({ webSocket, eventSource })\n\n if (keepAlive !== undefined) {\n throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')\n }\n\n if (socketTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (requestTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (idleTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')\n }\n\n if (maxKeepAliveTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')\n }\n\n if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {\n throw new InvalidArgumentError('invalid maxHeaderSize')\n }\n\n if (socketPath != null && typeof socketPath !== 'string') {\n throw new InvalidArgumentError('invalid socketPath')\n }\n\n if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {\n throw new InvalidArgumentError('invalid connectTimeout')\n }\n\n if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveTimeout')\n }\n\n if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveMaxTimeout')\n }\n\n if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {\n throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')\n }\n\n if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')\n }\n\n if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {\n throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')\n }\n\n if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {\n throw new InvalidArgumentError('localAddress must be valid string IP address')\n }\n\n if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {\n throw new InvalidArgumentError('maxResponseSize must be a positive number')\n }\n\n if (\n autoSelectFamilyAttemptTimeout != null &&\n (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)\n ) {\n throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')\n }\n\n // h2\n if (allowH2 != null && typeof allowH2 !== 'boolean') {\n throw new InvalidArgumentError('allowH2 must be a valid boolean value')\n }\n\n if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {\n throw new InvalidArgumentError('maxConcurrentStreams must be a positive integer, greater than 0')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n if (interceptors?.Client && Array.isArray(interceptors.Client)) {\n this[kInterceptors] = interceptors.Client\n if (!deprecatedInterceptorWarned) {\n deprecatedInterceptorWarned = true\n process.emitWarning('Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.', {\n code: 'UNDICI-CLIENT-INTERCEPTOR-DEPRECATED'\n })\n }\n } else {\n this[kInterceptors] = [createRedirectInterceptor({ maxRedirections })]\n }\n\n this[kUrl] = util.parseOrigin(url)\n this[kConnector] = connect\n this[kPipelining] = pipelining != null ? pipelining : 1\n this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize\n this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout\n this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout\n this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 2e3 : keepAliveTimeoutThreshold\n this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]\n this[kServerName] = null\n this[kLocalAddress] = localAddress != null ? localAddress : null\n this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\\r\\n`\n this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3\n this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3\n this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength\n this[kMaxRedirections] = maxRedirections\n this[kMaxRequests] = maxRequestsPerClient\n this[kClosedResolve] = null\n this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1\n this[kMaxConcurrentStreams] = maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server\n this[kHTTPContext] = null\n\n // kQueue is built up of 3 sections separated by\n // the kRunningIdx and kPendingIdx indices.\n // | complete | running | pending |\n // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length\n // kRunningIdx points to the first running element.\n // kPendingIdx points to the first pending element.\n // This implements a fast queue with an amortized\n // time of O(1).\n\n this[kQueue] = []\n this[kRunningIdx] = 0\n this[kPendingIdx] = 0\n\n this[kResume] = (sync) => resume(this, sync)\n this[kOnError] = (err) => onError(this, err)\n }\n\n get pipelining () {\n return this[kPipelining]\n }\n\n set pipelining (value) {\n this[kPipelining] = value\n this[kResume](true)\n }\n\n get [kPending] () {\n return this[kQueue].length - this[kPendingIdx]\n }\n\n get [kRunning] () {\n return this[kPendingIdx] - this[kRunningIdx]\n }\n\n get [kSize] () {\n return this[kQueue].length - this[kRunningIdx]\n }\n\n get [kConnected] () {\n return !!this[kHTTPContext] && !this[kConnecting] && !this[kHTTPContext].destroyed\n }\n\n get [kBusy] () {\n return Boolean(\n this[kHTTPContext]?.busy(null) ||\n (this[kSize] >= (getPipelining(this) || 1)) ||\n this[kPending] > 0\n )\n }\n\n /* istanbul ignore: only used for test */\n [kConnect] (cb) {\n connect(this)\n this.once('connect', cb)\n }\n\n [kDispatch] (opts, handler) {\n const origin = opts.origin || this[kUrl].origin\n const request = new Request(origin, opts, handler)\n\n this[kQueue].push(request)\n if (this[kResuming]) {\n // Do nothing.\n } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {\n // Wait a tick in case stream/iterator is ended in the same tick.\n this[kResuming] = 1\n queueMicrotask(() => resume(this))\n } else {\n this[kResume](true)\n }\n\n if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {\n this[kNeedDrain] = 2\n }\n\n return this[kNeedDrain] < 2\n }\n\n async [kClose] () {\n // TODO: for H2 we need to gracefully flush the remaining enqueued\n // request and close each stream.\n return new Promise((resolve) => {\n if (this[kSize]) {\n this[kClosedResolve] = resolve\n } else {\n resolve(null)\n }\n })\n }\n\n async [kDestroy] (err) {\n return new Promise((resolve) => {\n const requests = this[kQueue].splice(this[kPendingIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(this, request, err)\n }\n\n const callback = () => {\n if (this[kClosedResolve]) {\n // TODO (fix): Should we error here with ClientDestroyedError?\n this[kClosedResolve]()\n this[kClosedResolve] = null\n }\n resolve(null)\n }\n\n if (this[kHTTPContext]) {\n this[kHTTPContext].destroy(err, callback)\n this[kHTTPContext] = null\n } else {\n queueMicrotask(callback)\n }\n\n this[kResume]()\n })\n }\n}\n\nconst createRedirectInterceptor = require('../interceptor/redirect-interceptor.js')\n\nfunction onError (client, err) {\n if (\n client[kRunning] === 0 &&\n err.code !== 'UND_ERR_INFO' &&\n err.code !== 'UND_ERR_SOCKET'\n ) {\n // Error is not caused by running request and not a recoverable\n // socket error.\n\n assert(client[kPendingIdx] === client[kRunningIdx])\n\n const requests = client[kQueue].splice(client[kRunningIdx])\n\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n util.errorRequest(client, request, err)\n }\n assert(client[kSize] === 0)\n }\n}\n\n/**\n * @param {Client} client\n * @returns\n */\nasync function connect (client) {\n assert(!client[kConnecting])\n assert(!client[kHTTPContext])\n\n let { host, hostname, protocol, port } = client[kUrl]\n\n // Resolve ipv6\n if (hostname[0] === '[') {\n const idx = hostname.indexOf(']')\n\n assert(idx !== -1)\n const ip = hostname.substring(1, idx)\n\n assert(net.isIP(ip))\n hostname = ip\n }\n\n client[kConnecting] = true\n\n if (channels.beforeConnect.hasSubscribers) {\n channels.beforeConnect.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector]\n })\n }\n\n try {\n const socket = await new Promise((resolve, reject) => {\n client[kConnector]({\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n }, (err, socket) => {\n if (err) {\n reject(err)\n } else {\n resolve(socket)\n }\n })\n })\n\n if (client.destroyed) {\n util.destroy(socket.on('error', noop), new ClientDestroyedError())\n return\n }\n\n assert(socket)\n\n try {\n client[kHTTPContext] = socket.alpnProtocol === 'h2'\n ? await connectH2(client, socket)\n : await connectH1(client, socket)\n } catch (err) {\n socket.destroy().on('error', noop)\n throw err\n }\n\n client[kConnecting] = false\n\n socket[kCounter] = 0\n socket[kMaxRequests] = client[kMaxRequests]\n socket[kClient] = client\n socket[kError] = null\n\n if (channels.connected.hasSubscribers) {\n channels.connected.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n socket\n })\n }\n client.emit('connect', client[kUrl], [client])\n } catch (err) {\n if (client.destroyed) {\n return\n }\n\n client[kConnecting] = false\n\n if (channels.connectError.hasSubscribers) {\n channels.connectError.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n version: client[kHTTPContext]?.version,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n error: err\n })\n }\n\n if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n assert(client[kRunning] === 0)\n while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {\n const request = client[kQueue][client[kPendingIdx]++]\n util.errorRequest(client, request, err)\n }\n } else {\n onError(client, err)\n }\n\n client.emit('connectionError', client[kUrl], [client], err)\n }\n\n client[kResume]()\n}\n\nfunction emitDrain (client) {\n client[kNeedDrain] = 0\n client.emit('drain', client[kUrl], [client])\n}\n\nfunction resume (client, sync) {\n if (client[kResuming] === 2) {\n return\n }\n\n client[kResuming] = 2\n\n _resume(client, sync)\n client[kResuming] = 0\n\n if (client[kRunningIdx] > 256) {\n client[kQueue].splice(0, client[kRunningIdx])\n client[kPendingIdx] -= client[kRunningIdx]\n client[kRunningIdx] = 0\n }\n}\n\nfunction _resume (client, sync) {\n while (true) {\n if (client.destroyed) {\n assert(client[kPending] === 0)\n return\n }\n\n if (client[kClosedResolve] && !client[kSize]) {\n client[kClosedResolve]()\n client[kClosedResolve] = null\n return\n }\n\n if (client[kHTTPContext]) {\n client[kHTTPContext].resume()\n }\n\n if (client[kBusy]) {\n client[kNeedDrain] = 2\n } else if (client[kNeedDrain] === 2) {\n if (sync) {\n client[kNeedDrain] = 1\n queueMicrotask(() => emitDrain(client))\n } else {\n emitDrain(client)\n }\n continue\n }\n\n if (client[kPending] === 0) {\n return\n }\n\n if (client[kRunning] >= (getPipelining(client) || 1)) {\n return\n }\n\n const request = client[kQueue][client[kPendingIdx]]\n\n if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {\n if (client[kRunning] > 0) {\n return\n }\n\n client[kServerName] = request.servername\n client[kHTTPContext]?.destroy(new InformationalError('servername changed'), () => {\n client[kHTTPContext] = null\n resume(client)\n })\n }\n\n if (client[kConnecting]) {\n return\n }\n\n if (!client[kHTTPContext]) {\n connect(client)\n return\n }\n\n if (client[kHTTPContext].destroyed) {\n return\n }\n\n if (client[kHTTPContext].busy(request)) {\n return\n }\n\n if (!request.aborted && client[kHTTPContext].write(request)) {\n client[kPendingIdx]++\n } else {\n client[kQueue].splice(client[kPendingIdx], 1)\n }\n }\n}\n\nmodule.exports = Client\n", "/* eslint-disable */\n\n'use strict'\n\n// Extracted from node/lib/internal/fixed_queue.js\n\n// Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.\nconst kSize = 2048;\nconst kMask = kSize - 1;\n\n// The FixedQueue is implemented as a singly-linked list of fixed-size\n// circular buffers. It looks something like this:\n//\n// head tail\n// | |\n// v v\n// +-----------+ <-----\\ +-----------+ <------\\ +-----------+\n// | [null] | \\----- | next | \\------- | next |\n// +-----------+ +-----------+ +-----------+\n// | item | <-- bottom | item | <-- bottom | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | bottom --> | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | [empty] | <-- top | item | | item |\n// | [empty] | | item | | item |\n// | [empty] | | [empty] | <-- top top --> | [empty] |\n// +-----------+ +-----------+ +-----------+\n//\n// Or, if there is only one circular buffer, it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | [empty] | | item |\n// | [empty] | | item |\n// | item | <-- bottom top --> | [empty] |\n// | item | | [empty] |\n// | [empty] | <-- top bottom --> | item |\n// | [empty] | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one, removing means\n// moving `bottom` forward by one. After reaching the end, the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = new Array(kSize);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue, sets the old queue's `.next` to it,\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue, it forms the new tail.\n this.tail = tail.next;\n }\n return next;\n }\n};\n", "const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('../core/symbols')\nconst kPool = Symbol('pool')\n\nclass PoolStats {\n constructor (pool) {\n this[kPool] = pool\n }\n\n get connected () {\n return this[kPool][kConnected]\n }\n\n get free () {\n return this[kPool][kFree]\n }\n\n get pending () {\n return this[kPool][kPending]\n }\n\n get queued () {\n return this[kPool][kQueued]\n }\n\n get running () {\n return this[kPool][kRunning]\n }\n\n get size () {\n return this[kPool][kSize]\n }\n}\n\nmodule.exports = PoolStats\n", "'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst FixedQueue = require('./fixed-queue')\nconst { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require('../core/symbols')\nconst PoolStats = require('./pool-stats')\n\nconst kClients = Symbol('clients')\nconst kNeedDrain = Symbol('needDrain')\nconst kQueue = Symbol('queue')\nconst kClosedResolve = Symbol('closed resolve')\nconst kOnDrain = Symbol('onDrain')\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kGetDispatcher = Symbol('get dispatcher')\nconst kAddClient = Symbol('add client')\nconst kRemoveClient = Symbol('remove client')\nconst kStats = Symbol('stats')\n\nclass PoolBase extends DispatcherBase {\n constructor (opts) {\n super(opts)\n\n this[kQueue] = new FixedQueue()\n this[kClients] = []\n this[kQueued] = 0\n\n const pool = this\n\n this[kOnDrain] = function onDrain (origin, targets) {\n const queue = pool[kQueue]\n\n let needDrain = false\n\n while (!needDrain) {\n const item = queue.shift()\n if (!item) {\n break\n }\n pool[kQueued]--\n needDrain = !this.dispatch(item.opts, item.handler)\n }\n\n this[kNeedDrain] = needDrain\n\n if (!this[kNeedDrain] && pool[kNeedDrain]) {\n pool[kNeedDrain] = false\n pool.emit('drain', origin, [pool, ...targets])\n }\n\n if (pool[kClosedResolve] && queue.isEmpty()) {\n Promise\n .all(pool[kClients].map(c => c.close()))\n .then(pool[kClosedResolve])\n }\n }\n\n this[kOnConnect] = (origin, targets) => {\n pool.emit('connect', origin, [pool, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n pool.emit('disconnect', origin, [pool, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n pool.emit('connectionError', origin, [pool, ...targets], err)\n }\n\n this[kStats] = new PoolStats(this)\n }\n\n get [kBusy] () {\n return this[kNeedDrain]\n }\n\n get [kConnected] () {\n return this[kClients].filter(client => client[kConnected]).length\n }\n\n get [kFree] () {\n return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length\n }\n\n get [kPending] () {\n let ret = this[kQueued]\n for (const { [kPending]: pending } of this[kClients]) {\n ret += pending\n }\n return ret\n }\n\n get [kRunning] () {\n let ret = 0\n for (const { [kRunning]: running } of this[kClients]) {\n ret += running\n }\n return ret\n }\n\n get [kSize] () {\n let ret = this[kQueued]\n for (const { [kSize]: size } of this[kClients]) {\n ret += size\n }\n return ret\n }\n\n get stats () {\n return this[kStats]\n }\n\n async [kClose] () {\n if (this[kQueue].isEmpty()) {\n await Promise.all(this[kClients].map(c => c.close()))\n } else {\n await new Promise((resolve) => {\n this[kClosedResolve] = resolve\n })\n }\n }\n\n async [kDestroy] (err) {\n while (true) {\n const item = this[kQueue].shift()\n if (!item) {\n break\n }\n item.handler.onError(err)\n }\n\n await Promise.all(this[kClients].map(c => c.destroy(err)))\n }\n\n [kDispatch] (opts, handler) {\n const dispatcher = this[kGetDispatcher]()\n\n if (!dispatcher) {\n this[kNeedDrain] = true\n this[kQueue].push({ opts, handler })\n this[kQueued]++\n } else if (!dispatcher.dispatch(opts, handler)) {\n dispatcher[kNeedDrain] = true\n this[kNeedDrain] = !this[kGetDispatcher]()\n }\n\n return !this[kNeedDrain]\n }\n\n [kAddClient] (client) {\n client\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n this[kClients].push(client)\n\n if (this[kNeedDrain]) {\n queueMicrotask(() => {\n if (this[kNeedDrain]) {\n this[kOnDrain](client[kUrl], [this, client])\n }\n })\n }\n\n return this\n }\n\n [kRemoveClient] (client) {\n client.close(() => {\n const idx = this[kClients].indexOf(client)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n })\n\n this[kNeedDrain] = this[kClients].some(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n }\n}\n\nmodule.exports = {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n}\n", "'use strict'\n\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Client = require('./client')\nconst {\n InvalidArgumentError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { kUrl, kInterceptors } = require('../core/symbols')\nconst buildConnector = require('../core/connect')\n\nconst kOptions = Symbol('options')\nconst kConnections = Symbol('connections')\nconst kFactory = Symbol('factory')\n\nfunction defaultFactory (origin, opts) {\n return new Client(origin, opts)\n}\n\nclass Pool extends PoolBase {\n constructor (origin, {\n connections,\n factory = defaultFactory,\n connect,\n connectTimeout,\n tls,\n maxCachedSessions,\n socketPath,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n allowH2,\n ...options\n } = {}) {\n if (connections != null && (!Number.isFinite(connections) || connections < 0)) {\n throw new InvalidArgumentError('invalid connections')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n super(options)\n\n this[kInterceptors] = options.interceptors?.Pool && Array.isArray(options.interceptors.Pool)\n ? options.interceptors.Pool\n : []\n this[kConnections] = connections || null\n this[kUrl] = util.parseOrigin(origin)\n this[kOptions] = { ...util.deepClone(options), connect, allowH2 }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kFactory] = factory\n\n this.on('connectionError', (origin, targets, error) => {\n // If a connection error occurs, we remove the client from the pool,\n // and emit a connectionError event. They will not be re-used.\n // Fixes https://github.com/nodejs/undici/issues/3895\n for (const target of targets) {\n // Do not use kRemoveClient here, as it will close the client,\n // but the client cannot be closed in this state.\n const idx = this[kClients].indexOf(target)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n }\n })\n }\n\n [kGetDispatcher] () {\n for (const client of this[kClients]) {\n if (!client[kNeedDrain]) {\n return client\n }\n }\n\n if (!this[kConnections] || this[kClients].length < this[kConnections]) {\n const dispatcher = this[kFactory](this[kUrl], this[kOptions])\n this[kAddClient](dispatcher)\n return dispatcher\n }\n }\n}\n\nmodule.exports = Pool\n", "'use strict'\n\nconst {\n BalancedPoolMissingUpstreamError,\n InvalidArgumentError\n} = require('../core/errors')\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Pool = require('./pool')\nconst { kUrl, kInterceptors } = require('../core/symbols')\nconst { parseOrigin } = require('../core/util')\nconst kFactory = Symbol('factory')\n\nconst kOptions = Symbol('options')\nconst kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor')\nconst kCurrentWeight = Symbol('kCurrentWeight')\nconst kIndex = Symbol('kIndex')\nconst kWeight = Symbol('kWeight')\nconst kMaxWeightPerServer = Symbol('kMaxWeightPerServer')\nconst kErrorPenalty = Symbol('kErrorPenalty')\n\n/**\n * Calculate the greatest common divisor of two numbers by\n * using the Euclidean algorithm.\n *\n * @param {number} a\n * @param {number} b\n * @returns {number}\n */\nfunction getGreatestCommonDivisor (a, b) {\n if (a === 0) return b\n\n while (b !== 0) {\n const t = b\n b = a % b\n a = t\n }\n return a\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nclass BalancedPool extends PoolBase {\n constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) {\n super()\n\n this[kOptions] = opts\n this[kIndex] = -1\n this[kCurrentWeight] = 0\n\n this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100\n this[kErrorPenalty] = this[kOptions].errorPenalty || 15\n\n if (!Array.isArray(upstreams)) {\n upstreams = [upstreams]\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n this[kInterceptors] = opts.interceptors?.BalancedPool && Array.isArray(opts.interceptors.BalancedPool)\n ? opts.interceptors.BalancedPool\n : []\n this[kFactory] = factory\n\n for (const upstream of upstreams) {\n this.addUpstream(upstream)\n }\n this._updateBalancedPoolStats()\n }\n\n addUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n if (this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))) {\n return this\n }\n const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]))\n\n this[kAddClient](pool)\n pool.on('connect', () => {\n pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty])\n })\n\n pool.on('connectionError', () => {\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n })\n\n pool.on('disconnect', (...args) => {\n const err = args[2]\n if (err && err.code === 'UND_ERR_SOCKET') {\n // decrease the weight of the pool.\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n }\n })\n\n for (const client of this[kClients]) {\n client[kWeight] = this[kMaxWeightPerServer]\n }\n\n this._updateBalancedPoolStats()\n\n return this\n }\n\n _updateBalancedPoolStats () {\n let result = 0\n for (let i = 0; i < this[kClients].length; i++) {\n result = getGreatestCommonDivisor(this[kClients][i][kWeight], result)\n }\n\n this[kGreatestCommonDivisor] = result\n }\n\n removeUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n const pool = this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))\n\n if (pool) {\n this[kRemoveClient](pool)\n }\n\n return this\n }\n\n get upstreams () {\n return this[kClients]\n .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true)\n .map((p) => p[kUrl].origin)\n }\n\n [kGetDispatcher] () {\n // We validate that pools is greater than 0,\n // otherwise we would have to wait until an upstream\n // is added, which might never happen.\n if (this[kClients].length === 0) {\n throw new BalancedPoolMissingUpstreamError()\n }\n\n const dispatcher = this[kClients].find(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n\n if (!dispatcher) {\n return\n }\n\n const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true)\n\n if (allClientsBusy) {\n return\n }\n\n let counter = 0\n\n let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain])\n\n while (counter++ < this[kClients].length) {\n this[kIndex] = (this[kIndex] + 1) % this[kClients].length\n const pool = this[kClients][this[kIndex]]\n\n // find pool index with the largest weight\n if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {\n maxWeightIndex = this[kIndex]\n }\n\n // decrease the current weight every `this[kClients].length`.\n if (this[kIndex] === 0) {\n // Set the current weight to the next lower weight.\n this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor]\n\n if (this[kCurrentWeight] <= 0) {\n this[kCurrentWeight] = this[kMaxWeightPerServer]\n }\n }\n if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) {\n return pool\n }\n }\n\n this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight]\n this[kIndex] = maxWeightIndex\n return this[kClients][maxWeightIndex]\n }\n}\n\nmodule.exports = BalancedPool\n", "'use strict'\n\nconst { InvalidArgumentError } = require('../core/errors')\nconst { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = require('../core/symbols')\nconst DispatcherBase = require('./dispatcher-base')\nconst Pool = require('./pool')\nconst Client = require('./client')\nconst util = require('../core/util')\nconst createRedirectInterceptor = require('../interceptor/redirect-interceptor')\n\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kMaxRedirections = Symbol('maxRedirections')\nconst kOnDrain = Symbol('onDrain')\nconst kFactory = Symbol('factory')\nconst kOptions = Symbol('options')\n\nfunction defaultFactory (origin, opts) {\n return opts && opts.connections === 1\n ? new Client(origin, opts)\n : new Pool(origin, opts)\n}\n\nclass Agent extends DispatcherBase {\n constructor ({ factory = defaultFactory, maxRedirections = 0, connect, tls, ...options } = {}) {\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (!Number.isInteger(maxRedirections) || maxRedirections < 0) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n super(options)\n\n if (connect && typeof connect !== 'function') {\n connect = { ...connect }\n }\n\n if (tls && typeof tls !== 'function') {\n tls = { ...tls }\n }\n\n this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent)\n ? options.interceptors.Agent\n : [createRedirectInterceptor({ maxRedirections })]\n\n this[kOptions] = { ...util.deepClone(options), connect, tls }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kMaxRedirections] = maxRedirections\n this[kFactory] = factory\n this[kClients] = new Map()\n\n this[kOnDrain] = (origin, targets) => {\n this.emit('drain', origin, [this, ...targets])\n }\n\n this[kOnConnect] = (origin, targets) => {\n this.emit('connect', origin, [this, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n this.emit('disconnect', origin, [this, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n this.emit('connectionError', origin, [this, ...targets], err)\n }\n }\n\n get [kRunning] () {\n let ret = 0\n for (const client of this[kClients].values()) {\n ret += client[kRunning]\n }\n return ret\n }\n\n [kDispatch] (opts, handler) {\n let key\n if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) {\n key = String(opts.origin)\n } else {\n throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.')\n }\n\n let dispatcher = this[kClients].get(key)\n\n if (!dispatcher) {\n dispatcher = this[kFactory](opts.origin, this[kOptions])\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n // This introduces a tiny memory leak, as dispatchers are never removed from the map.\n // TODO(mcollina): remove te timer when the client/pool do not have any more\n // active connections.\n this[kClients].set(key, dispatcher)\n }\n\n return dispatcher.dispatch(opts, handler)\n }\n\n async [kClose] () {\n const closePromises = []\n for (const client of this[kClients].values()) {\n closePromises.push(client.close())\n }\n this[kClients].clear()\n\n await Promise.all(closePromises)\n }\n\n async [kDestroy] (err) {\n const destroyPromises = []\n for (const client of this[kClients].values()) {\n destroyPromises.push(client.destroy(err))\n }\n this[kClients].clear()\n\n await Promise.all(destroyPromises)\n }\n}\n\nmodule.exports = Agent\n", "'use strict'\n\nconst { kProxy, kClose, kDestroy, kDispatch, kInterceptors } = require('../core/symbols')\nconst { URL } = require('node:url')\nconst Agent = require('./agent')\nconst Pool = require('./pool')\nconst DispatcherBase = require('./dispatcher-base')\nconst { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = require('../core/errors')\nconst buildConnector = require('../core/connect')\nconst Client = require('./client')\n\nconst kAgent = Symbol('proxy agent')\nconst kClient = Symbol('proxy client')\nconst kProxyHeaders = Symbol('proxy headers')\nconst kRequestTls = Symbol('request tls settings')\nconst kProxyTls = Symbol('proxy tls settings')\nconst kConnectEndpoint = Symbol('connect endpoint function')\nconst kTunnelProxy = Symbol('tunnel proxy')\n\nfunction defaultProtocolPort (protocol) {\n return protocol === 'https:' ? 443 : 80\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nconst noop = () => {}\n\nfunction defaultAgentFactory (origin, opts) {\n if (opts.connections === 1) {\n return new Client(origin, opts)\n }\n return new Pool(origin, opts)\n}\n\nclass Http1ProxyWrapper extends DispatcherBase {\n #client\n\n constructor (proxyUrl, { headers = {}, connect, factory }) {\n super()\n if (!proxyUrl) {\n throw new InvalidArgumentError('Proxy URL is mandatory')\n }\n\n this[kProxyHeaders] = headers\n if (factory) {\n this.#client = factory(proxyUrl, { connect })\n } else {\n this.#client = new Client(proxyUrl, { connect })\n }\n }\n\n [kDispatch] (opts, handler) {\n const onHeaders = handler.onHeaders\n handler.onHeaders = function (statusCode, data, resume) {\n if (statusCode === 407) {\n if (typeof handler.onError === 'function') {\n handler.onError(new InvalidArgumentError('Proxy Authentication Required (407)'))\n }\n return\n }\n if (onHeaders) onHeaders.call(this, statusCode, data, resume)\n }\n\n // Rewrite request as an HTTP1 Proxy request, without tunneling.\n const {\n origin,\n path = '/',\n headers = {}\n } = opts\n\n opts.path = origin + path\n\n if (!('host' in headers) && !('Host' in headers)) {\n const { host } = new URL(origin)\n headers.host = host\n }\n opts.headers = { ...this[kProxyHeaders], ...headers }\n\n return this.#client[kDispatch](opts, handler)\n }\n\n async [kClose] () {\n return this.#client.close()\n }\n\n async [kDestroy] (err) {\n return this.#client.destroy(err)\n }\n}\n\nclass ProxyAgent extends DispatcherBase {\n constructor (opts) {\n super()\n\n if (!opts || (typeof opts === 'object' && !(opts instanceof URL) && !opts.uri)) {\n throw new InvalidArgumentError('Proxy uri is mandatory')\n }\n\n const { clientFactory = defaultFactory } = opts\n if (typeof clientFactory !== 'function') {\n throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')\n }\n\n const { proxyTunnel = true } = opts\n\n const url = this.#getUrl(opts)\n const { href, origin, port, protocol, username, password, hostname: proxyHostname } = url\n\n this[kProxy] = { uri: href, protocol }\n this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)\n ? opts.interceptors.ProxyAgent\n : []\n this[kRequestTls] = opts.requestTls\n this[kProxyTls] = opts.proxyTls\n this[kProxyHeaders] = opts.headers || {}\n this[kTunnelProxy] = proxyTunnel\n\n if (opts.auth && opts.token) {\n throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')\n } else if (opts.auth) {\n /* @deprecated in favour of opts.token */\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`\n } else if (opts.token) {\n this[kProxyHeaders]['proxy-authorization'] = opts.token\n } else if (username && password) {\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}`\n }\n\n const connect = buildConnector({ ...opts.proxyTls })\n this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })\n\n const agentFactory = opts.factory || defaultAgentFactory\n const factory = (origin, options) => {\n const { protocol } = new URL(origin)\n if (!this[kTunnelProxy] && protocol === 'http:' && this[kProxy].protocol === 'http:') {\n return new Http1ProxyWrapper(this[kProxy].uri, {\n headers: this[kProxyHeaders],\n connect,\n factory: agentFactory\n })\n }\n return agentFactory(origin, options)\n }\n this[kClient] = clientFactory(url, { connect })\n this[kAgent] = new Agent({\n ...opts,\n factory,\n connect: async (opts, callback) => {\n let requestedPath = opts.host\n if (!opts.port) {\n requestedPath += `:${defaultProtocolPort(opts.protocol)}`\n }\n try {\n const { socket, statusCode } = await this[kClient].connect({\n origin,\n port,\n path: requestedPath,\n signal: opts.signal,\n headers: {\n ...this[kProxyHeaders],\n host: opts.host\n },\n servername: this[kProxyTls]?.servername || proxyHostname\n })\n if (statusCode !== 200) {\n socket.on('error', noop).destroy()\n callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))\n }\n if (opts.protocol !== 'https:') {\n callback(null, socket)\n return\n }\n let servername\n if (this[kRequestTls]) {\n servername = this[kRequestTls].servername\n } else {\n servername = opts.servername\n }\n this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)\n } catch (err) {\n if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n // Throw a custom error to avoid loop in client.js#connect\n callback(new SecureProxyConnectionError(err))\n } else {\n callback(err)\n }\n }\n }\n })\n }\n\n dispatch (opts, handler) {\n const headers = buildHeaders(opts.headers)\n throwIfProxyAuthIsSent(headers)\n\n if (headers && !('host' in headers) && !('Host' in headers)) {\n const { host } = new URL(opts.origin)\n headers.host = host\n }\n\n return this[kAgent].dispatch(\n {\n ...opts,\n headers\n },\n handler\n )\n }\n\n /**\n * @param {import('../types/proxy-agent').ProxyAgent.Options | string | URL} opts\n * @returns {URL}\n */\n #getUrl (opts) {\n if (typeof opts === 'string') {\n return new URL(opts)\n } else if (opts instanceof URL) {\n return opts\n } else {\n return new URL(opts.uri)\n }\n }\n\n async [kClose] () {\n await this[kAgent].close()\n await this[kClient].close()\n }\n\n async [kDestroy] () {\n await this[kAgent].destroy()\n await this[kClient].destroy()\n }\n}\n\n/**\n * @param {string[] | Record} headers\n * @returns {Record}\n */\nfunction buildHeaders (headers) {\n // When using undici.fetch, the headers list is stored\n // as an array.\n if (Array.isArray(headers)) {\n /** @type {Record} */\n const headersPair = {}\n\n for (let i = 0; i < headers.length; i += 2) {\n headersPair[headers[i]] = headers[i + 1]\n }\n\n return headersPair\n }\n\n return headers\n}\n\n/**\n * @param {Record} headers\n *\n * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers\n * Nevertheless, it was changed and to avoid a security vulnerability by end users\n * this check was created.\n * It should be removed in the next major version for performance reasons\n */\nfunction throwIfProxyAuthIsSent (headers) {\n const existProxyAuth = headers && Object.keys(headers)\n .find((key) => key.toLowerCase() === 'proxy-authorization')\n if (existProxyAuth) {\n throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')\n }\n}\n\nmodule.exports = ProxyAgent\n", "'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = require('../core/symbols')\nconst ProxyAgent = require('./proxy-agent')\nconst Agent = require('./agent')\n\nconst DEFAULT_PORTS = {\n 'http:': 80,\n 'https:': 443\n}\n\nlet experimentalWarned = false\n\nclass EnvHttpProxyAgent extends DispatcherBase {\n #noProxyValue = null\n #noProxyEntries = null\n #opts = null\n\n constructor (opts = {}) {\n super()\n this.#opts = opts\n\n if (!experimentalWarned) {\n experimentalWarned = true\n process.emitWarning('EnvHttpProxyAgent is experimental, expect them to change at any time.', {\n code: 'UNDICI-EHPA'\n })\n }\n\n const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts\n\n this[kNoProxyAgent] = new Agent(agentOpts)\n\n const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY\n if (HTTP_PROXY) {\n this[kHttpProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTP_PROXY })\n } else {\n this[kHttpProxyAgent] = this[kNoProxyAgent]\n }\n\n const HTTPS_PROXY = httpsProxy ?? process.env.https_proxy ?? process.env.HTTPS_PROXY\n if (HTTPS_PROXY) {\n this[kHttpsProxyAgent] = new ProxyAgent({ ...agentOpts, uri: HTTPS_PROXY })\n } else {\n this[kHttpsProxyAgent] = this[kHttpProxyAgent]\n }\n\n this.#parseNoProxy()\n }\n\n [kDispatch] (opts, handler) {\n const url = new URL(opts.origin)\n const agent = this.#getProxyAgentForUrl(url)\n return agent.dispatch(opts, handler)\n }\n\n async [kClose] () {\n await this[kNoProxyAgent].close()\n if (!this[kHttpProxyAgent][kClosed]) {\n await this[kHttpProxyAgent].close()\n }\n if (!this[kHttpsProxyAgent][kClosed]) {\n await this[kHttpsProxyAgent].close()\n }\n }\n\n async [kDestroy] (err) {\n await this[kNoProxyAgent].destroy(err)\n if (!this[kHttpProxyAgent][kDestroyed]) {\n await this[kHttpProxyAgent].destroy(err)\n }\n if (!this[kHttpsProxyAgent][kDestroyed]) {\n await this[kHttpsProxyAgent].destroy(err)\n }\n }\n\n #getProxyAgentForUrl (url) {\n let { protocol, host: hostname, port } = url\n\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '').toLowerCase()\n port = Number.parseInt(port, 10) || DEFAULT_PORTS[protocol] || 0\n if (!this.#shouldProxy(hostname, port)) {\n return this[kNoProxyAgent]\n }\n if (protocol === 'https:') {\n return this[kHttpsProxyAgent]\n }\n return this[kHttpProxyAgent]\n }\n\n #shouldProxy (hostname, port) {\n if (this.#noProxyChanged) {\n this.#parseNoProxy()\n }\n\n if (this.#noProxyEntries.length === 0) {\n return true // Always proxy if NO_PROXY is not set or empty.\n }\n if (this.#noProxyValue === '*') {\n return false // Never proxy if wildcard is set.\n }\n\n for (let i = 0; i < this.#noProxyEntries.length; i++) {\n const entry = this.#noProxyEntries[i]\n if (entry.port && entry.port !== port) {\n continue // Skip if ports don't match.\n }\n if (!/^[.*]/.test(entry.hostname)) {\n // No wildcards, so don't proxy only if there is not an exact match.\n if (hostname === entry.hostname) {\n return false\n }\n } else {\n // Don't proxy if the hostname ends with the no_proxy host.\n if (hostname.endsWith(entry.hostname.replace(/^\\*/, ''))) {\n return false\n }\n }\n }\n\n return true\n }\n\n #parseNoProxy () {\n const noProxyValue = this.#opts.noProxy ?? this.#noProxyEnv\n const noProxySplit = noProxyValue.split(/[,\\s]/)\n const noProxyEntries = []\n\n for (let i = 0; i < noProxySplit.length; i++) {\n const entry = noProxySplit[i]\n if (!entry) {\n continue\n }\n const parsed = entry.match(/^(.+):(\\d+)$/)\n noProxyEntries.push({\n hostname: (parsed ? parsed[1] : entry).toLowerCase(),\n port: parsed ? Number.parseInt(parsed[2], 10) : 0\n })\n }\n\n this.#noProxyValue = noProxyValue\n this.#noProxyEntries = noProxyEntries\n }\n\n get #noProxyChanged () {\n if (this.#opts.noProxy !== undefined) {\n return false\n }\n return this.#noProxyValue !== this.#noProxyEnv\n }\n\n get #noProxyEnv () {\n return process.env.no_proxy ?? process.env.NO_PROXY ?? ''\n }\n}\n\nmodule.exports = EnvHttpProxyAgent\n", "'use strict'\nconst assert = require('node:assert')\n\nconst { kRetryHandlerDefaultRetry } = require('../core/symbols')\nconst { RequestRetryError } = require('../core/errors')\nconst {\n isDisturbed,\n parseHeaders,\n parseRangeHeader,\n wrapRequestBody\n} = require('../core/util')\n\nfunction calculateRetryAfterHeader (retryAfter) {\n const current = Date.now()\n return new Date(retryAfter).getTime() - current\n}\n\nfunction validatePartialResponseContentLength (headers, range, statusCode, retryCount) {\n const contentLength = headers['content-length']\n if (contentLength == null) {\n return null\n }\n\n if (!Number.isFinite(range.start) || !Number.isFinite(range.end)) {\n return null\n }\n\n const length = Number(contentLength)\n const expectedLength = range.end - range.start + 1\n if (!Number.isFinite(length) || length !== expectedLength) {\n return new RequestRetryError('Content-Length mismatch', statusCode, {\n headers,\n data: { count: retryCount }\n })\n }\n\n return null\n}\n\nclass RetryHandler {\n constructor (opts, handlers) {\n const { retryOptions, ...dispatchOpts } = opts\n const {\n // Retry scoped\n retry: retryFn,\n maxRetries,\n maxTimeout,\n minTimeout,\n timeoutFactor,\n // Response scoped\n methods,\n errorCodes,\n retryAfter,\n statusCodes\n } = retryOptions ?? {}\n\n this.dispatch = handlers.dispatch\n this.handler = handlers.handler\n this.opts = { ...dispatchOpts, body: wrapRequestBody(opts.body) }\n this.abort = null\n this.aborted = false\n this.retryOpts = {\n retry: retryFn ?? RetryHandler[kRetryHandlerDefaultRetry],\n retryAfter: retryAfter ?? true,\n maxTimeout: maxTimeout ?? 30 * 1000, // 30s,\n minTimeout: minTimeout ?? 500, // .5s\n timeoutFactor: timeoutFactor ?? 2,\n maxRetries: maxRetries ?? 5,\n // What errors we should retry\n methods: methods ?? ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],\n // Indicates which errors to retry\n statusCodes: statusCodes ?? [500, 502, 503, 504, 429],\n // List of errors to retry\n errorCodes: errorCodes ?? [\n 'ECONNRESET',\n 'ECONNREFUSED',\n 'ENOTFOUND',\n 'ENETDOWN',\n 'ENETUNREACH',\n 'EHOSTDOWN',\n 'EHOSTUNREACH',\n 'EPIPE',\n 'UND_ERR_SOCKET'\n ]\n }\n\n this.retryCount = 0\n this.retryCountCheckpoint = 0\n this.start = 0\n this.end = null\n this.etag = null\n this.resume = null\n this.headersSent = false\n\n // Handle possible onConnect duplication\n this.handler.onConnect(reason => {\n this.aborted = true\n if (this.abort) {\n this.abort(reason)\n } else {\n this.reason = reason\n }\n })\n }\n\n checkpointResponseEnd (headers, resume) {\n if (this.end == null && this.opts.method !== 'HEAD') {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) - 1 : null\n\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n }\n\n this.resume = this.end != null ? resume : null\n }\n\n onRequestSent () {\n if (this.handler.onRequestSent) {\n this.handler.onRequestSent()\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n if (this.handler.onUpgrade) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n }\n\n onConnect (abort) {\n if (this.aborted) {\n abort(this.reason)\n } else {\n this.abort = abort\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) return this.handler.onBodySent(chunk)\n }\n\n static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {\n const { statusCode, code, headers } = err\n const { method, retryOptions } = opts\n const {\n maxRetries,\n minTimeout,\n maxTimeout,\n timeoutFactor,\n statusCodes,\n errorCodes,\n methods\n } = retryOptions\n const { counter } = state\n\n // Any code that is not a Undici's originated and allowed to retry\n if (code && code !== 'UND_ERR_REQ_RETRY' && !errorCodes.includes(code)) {\n cb(err)\n return\n }\n\n // If a set of method are provided and the current method is not in the list\n if (Array.isArray(methods) && !methods.includes(method)) {\n cb(err)\n return\n }\n\n // If a set of status code are provided and the current status code is not in the list\n if (\n statusCode != null &&\n Array.isArray(statusCodes) &&\n !statusCodes.includes(statusCode)\n ) {\n cb(err)\n return\n }\n\n // If we reached the max number of retries\n if (counter > maxRetries) {\n cb(err)\n return\n }\n\n let retryAfterHeader = headers?.['retry-after']\n if (retryAfterHeader) {\n retryAfterHeader = Number(retryAfterHeader)\n retryAfterHeader = Number.isNaN(retryAfterHeader)\n ? calculateRetryAfterHeader(retryAfterHeader)\n : retryAfterHeader * 1e3 // Retry-After is in seconds\n }\n\n const retryTimeout =\n retryAfterHeader > 0\n ? Math.min(retryAfterHeader, maxTimeout)\n : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout)\n\n setTimeout(() => cb(null), retryTimeout)\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = parseHeaders(rawHeaders)\n\n this.retryCount += 1\n\n if (statusCode >= 300) {\n // Only expose a response if no earlier attempt has reached the caller.\n // Otherwise abort this attempt so the error settles the existing body\n // instead of replacing it with a new response.\n if (!this.headersSent && this.retryOpts.statusCodes.includes(statusCode) === false) {\n this.headersSent = true\n this.checkpointResponseEnd(headers, resume)\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n } else {\n this.abort(\n new RequestRetryError('Request failed', statusCode, {\n headers,\n data: {\n count: this.retryCount\n }\n })\n )\n return false\n }\n }\n\n // Checkpoint for resume from where we left it\n if (this.resume != null) {\n this.resume = null\n\n // Only Partial Content 206 supposed to provide Content-Range,\n // any other status code that partially consumed the payload\n // should not be retry because it would result in downstream\n // wrongly concatanete multiple responses.\n if (statusCode !== 206 && (this.start > 0 || statusCode !== 200)) {\n this.abort(\n new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const contentRange = parseRangeHeader(headers['content-range'])\n // If no content range\n if (!contentRange) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n // Let's start with a weak etag check\n if (this.etag != null && this.etag !== headers.etag) {\n this.abort(\n new RequestRetryError('ETag mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const contentLengthError = validatePartialResponseContentLength(headers, contentRange, statusCode, this.retryCount)\n if (contentLengthError != null) {\n this.abort(contentLengthError)\n return false\n }\n\n const { start, size, end = size - 1 } = contentRange\n\n if (this.start !== start || (this.end != null && this.end !== end)) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n this.resume = resume\n return true\n }\n\n if (this.end == null) {\n if (statusCode === 206) {\n // First time we receive 206\n const range = parseRangeHeader(headers['content-range'])\n\n if (range == null) {\n this.headersSent = true\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const contentLengthError = validatePartialResponseContentLength(headers, range, statusCode, this.retryCount)\n if (contentLengthError != null) {\n this.abort(contentLengthError)\n return false\n }\n\n const { start, size, end = size - 1 } = range\n assert(\n start != null && Number.isFinite(start),\n 'content-range mismatch'\n )\n assert(end != null && Number.isFinite(end), 'invalid content-length')\n\n this.start = start\n this.end = end\n }\n\n // We make our best to checkpoint the body for further range headers\n if (this.end == null) {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) - 1 : null\n }\n\n assert(Number.isFinite(this.start))\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n\n this.resume = resume\n this.headersSent = true\n this.etag = headers.etag != null ? headers.etag : null\n\n // Weak etags are not useful for comparison nor cache\n // for instance not safe to assume if the response is byte-per-byte\n // equal\n if (this.etag != null && this.etag.startsWith('W/')) {\n this.etag = null\n }\n\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const err = new RequestRetryError('Request failed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n\n this.abort(err)\n\n return false\n }\n\n onData (chunk) {\n this.start += chunk.length\n\n return this.handler.onData(chunk)\n }\n\n onComplete (rawTrailers) {\n this.retryCount = 0\n return this.handler.onComplete(rawTrailers)\n }\n\n onError (err) {\n if (this.aborted || isDisturbed(this.opts.body) || (this.headersSent && this.resume == null)) {\n return this.handler.onError(err)\n }\n\n // We reconcile in case of a mix between network errors\n // and server error response\n if (this.retryCount - this.retryCountCheckpoint > 0) {\n // We count the difference between the last checkpoint and the current retry count\n this.retryCount =\n this.retryCountCheckpoint +\n (this.retryCount - this.retryCountCheckpoint)\n } else {\n this.retryCount += 1\n }\n\n this.retryOpts.retry(\n err,\n {\n state: { counter: this.retryCount },\n opts: { retryOptions: this.retryOpts, ...this.opts }\n },\n onRetry.bind(this)\n )\n\n function onRetry (err) {\n if (err != null || this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n if (this.start !== 0) {\n const headers = { range: `bytes=${this.start}-${this.end ?? ''}` }\n\n // Weak etag check - weak etags will make comparison algorithms never match\n if (this.etag != null) {\n headers['if-match'] = this.etag\n }\n\n this.opts = {\n ...this.opts,\n headers: {\n ...this.opts.headers,\n ...headers\n }\n }\n }\n\n try {\n this.retryCountCheckpoint = this.retryCount\n this.dispatch(this.opts, this)\n } catch (err) {\n this.handler.onError(err)\n }\n }\n }\n}\n\nmodule.exports = RetryHandler\n", "'use strict'\n\nconst Dispatcher = require('./dispatcher')\nconst RetryHandler = require('../handler/retry-handler')\n\nclass RetryAgent extends Dispatcher {\n #agent = null\n #options = null\n constructor (agent, options = {}) {\n super(options)\n this.#agent = agent\n this.#options = options\n }\n\n dispatch (opts, handler) {\n const retry = new RetryHandler({\n ...opts,\n retryOptions: this.#options\n }, {\n dispatch: this.#agent.dispatch.bind(this.#agent),\n handler\n })\n return this.#agent.dispatch(opts, retry)\n }\n\n close () {\n return this.#agent.close()\n }\n\n destroy () {\n return this.#agent.destroy()\n }\n}\n\nmodule.exports = RetryAgent\n", "// Ported from https://github.com/nodejs/undici/pull/907\n\n'use strict'\n\nconst assert = require('node:assert')\nconst { Readable } = require('node:stream')\nconst { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = require('../core/errors')\nconst util = require('../core/util')\nconst { ReadableStreamFrom } = require('../core/util')\n\nconst kConsume = Symbol('kConsume')\nconst kReading = Symbol('kReading')\nconst kBody = Symbol('kBody')\nconst kAbort = Symbol('kAbort')\nconst kContentType = Symbol('kContentType')\nconst kContentLength = Symbol('kContentLength')\n\nconst noop = () => {}\n\nclass BodyReadable extends Readable {\n constructor ({\n resume,\n abort,\n contentType = '',\n contentLength,\n highWaterMark = 64 * 1024 // Same as nodejs fs streams.\n }) {\n super({\n autoDestroy: true,\n read: resume,\n highWaterMark\n })\n\n this._readableState.dataEmitted = false\n\n this[kAbort] = abort\n this[kConsume] = null\n this[kBody] = null\n this[kContentType] = contentType\n this[kContentLength] = contentLength\n\n // Is stream being consumed through Readable API?\n // This is an optimization so that we avoid checking\n // for 'data' and 'readable' listeners in the hot path\n // inside push().\n this[kReading] = false\n }\n\n destroy (err) {\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (err) {\n this[kAbort]()\n }\n\n return super.destroy(err)\n }\n\n _destroy (err, callback) {\n // Workaround for Node \"bug\". If the stream is destroyed in same\n // tick as it is created, then a user who is waiting for a\n // promise (i.e micro tick) for installing a 'error' listener will\n // never get a chance and will always encounter an unhandled exception.\n if (!this[kReading]) {\n setImmediate(() => {\n callback(err)\n })\n } else {\n callback(err)\n }\n }\n\n on (ev, ...args) {\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = true\n }\n return super.on(ev, ...args)\n }\n\n addListener (ev, ...args) {\n return this.on(ev, ...args)\n }\n\n off (ev, ...args) {\n const ret = super.off(ev, ...args)\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = (\n this.listenerCount('data') > 0 ||\n this.listenerCount('readable') > 0\n )\n }\n return ret\n }\n\n removeListener (ev, ...args) {\n return this.off(ev, ...args)\n }\n\n push (chunk) {\n if (this[kConsume] && chunk !== null) {\n consumePush(this[kConsume], chunk)\n return this[kReading] ? super.push(chunk) : true\n }\n return super.push(chunk)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-text\n async text () {\n return consume(this, 'text')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-json\n async json () {\n return consume(this, 'json')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-blob\n async blob () {\n return consume(this, 'blob')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-bytes\n async bytes () {\n return consume(this, 'bytes')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-arraybuffer\n async arrayBuffer () {\n return consume(this, 'arrayBuffer')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-formdata\n async formData () {\n // TODO: Implement.\n throw new NotSupportedError()\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-bodyused\n get bodyUsed () {\n return util.isDisturbed(this)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-body\n get body () {\n if (!this[kBody]) {\n this[kBody] = ReadableStreamFrom(this)\n if (this[kConsume]) {\n // TODO: Is this the best way to force a lock?\n this[kBody].getReader() // Ensure stream is locked.\n assert(this[kBody].locked)\n }\n }\n return this[kBody]\n }\n\n async dump (opts) {\n let limit = Number.isFinite(opts?.limit) ? opts.limit : 128 * 1024\n const signal = opts?.signal\n\n if (signal != null && (typeof signal !== 'object' || !('aborted' in signal))) {\n throw new InvalidArgumentError('signal must be an AbortSignal')\n }\n\n signal?.throwIfAborted()\n\n if (this._readableState.closeEmitted) {\n return null\n }\n\n return await new Promise((resolve, reject) => {\n if (this[kContentLength] > limit) {\n this.destroy(new AbortError())\n }\n\n const onAbort = () => {\n this.destroy(signal.reason ?? new AbortError())\n }\n signal?.addEventListener('abort', onAbort)\n\n this\n .on('close', function () {\n signal?.removeEventListener('abort', onAbort)\n if (signal?.aborted) {\n reject(signal.reason ?? new AbortError())\n } else {\n resolve(null)\n }\n })\n .on('error', noop)\n .on('data', function (chunk) {\n limit -= chunk.length\n if (limit <= 0) {\n this.destroy()\n }\n })\n .resume()\n })\n }\n}\n\n// https://streams.spec.whatwg.org/#readablestream-locked\nfunction isLocked (self) {\n // Consume is an implicit lock.\n return (self[kBody] && self[kBody].locked === true) || self[kConsume]\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction isUnusable (self) {\n return util.isDisturbed(self) || isLocked(self)\n}\n\nasync function consume (stream, type) {\n assert(!stream[kConsume])\n\n return new Promise((resolve, reject) => {\n if (isUnusable(stream)) {\n const rState = stream._readableState\n if (rState.destroyed && rState.closeEmitted === false) {\n stream\n .on('error', err => {\n reject(err)\n })\n .on('close', () => {\n reject(new TypeError('unusable'))\n })\n } else {\n reject(rState.errored ?? new TypeError('unusable'))\n }\n } else {\n queueMicrotask(() => {\n stream[kConsume] = {\n type,\n stream,\n resolve,\n reject,\n length: 0,\n body: []\n }\n\n stream\n .on('error', function (err) {\n consumeFinish(this[kConsume], err)\n })\n .on('close', function () {\n if (this[kConsume].body !== null) {\n consumeFinish(this[kConsume], new RequestAbortedError())\n }\n })\n\n consumeStart(stream[kConsume])\n })\n }\n })\n}\n\nfunction consumeStart (consume) {\n if (consume.body === null) {\n return\n }\n\n const { _readableState: state } = consume.stream\n\n if (state.bufferIndex) {\n const start = state.bufferIndex\n const end = state.buffer.length\n for (let n = start; n < end; n++) {\n consumePush(consume, state.buffer[n])\n }\n } else {\n for (const chunk of state.buffer) {\n consumePush(consume, chunk)\n }\n }\n\n if (state.endEmitted) {\n consumeEnd(this[kConsume])\n } else {\n consume.stream.on('end', function () {\n consumeEnd(this[kConsume])\n })\n }\n\n consume.stream.resume()\n\n while (consume.stream.read() != null) {\n // Loop\n }\n}\n\n/**\n * @param {Buffer[]} chunks\n * @param {number} length\n */\nfunction chunksDecode (chunks, length) {\n if (chunks.length === 0 || length === 0) {\n return ''\n }\n const buffer = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks, length)\n const bufferLength = buffer.length\n\n // Skip BOM.\n const start =\n bufferLength > 2 &&\n buffer[0] === 0xef &&\n buffer[1] === 0xbb &&\n buffer[2] === 0xbf\n ? 3\n : 0\n return buffer.utf8Slice(start, bufferLength)\n}\n\n/**\n * @param {Buffer[]} chunks\n * @param {number} length\n * @returns {Uint8Array}\n */\nfunction chunksConcat (chunks, length) {\n if (chunks.length === 0 || length === 0) {\n return new Uint8Array(0)\n }\n if (chunks.length === 1) {\n // fast-path\n return new Uint8Array(chunks[0])\n }\n const buffer = new Uint8Array(Buffer.allocUnsafeSlow(length).buffer)\n\n let offset = 0\n for (let i = 0; i < chunks.length; ++i) {\n const chunk = chunks[i]\n buffer.set(chunk, offset)\n offset += chunk.length\n }\n\n return buffer\n}\n\nfunction consumeEnd (consume) {\n const { type, body, resolve, stream, length } = consume\n\n try {\n if (type === 'text') {\n resolve(chunksDecode(body, length))\n } else if (type === 'json') {\n resolve(JSON.parse(chunksDecode(body, length)))\n } else if (type === 'arrayBuffer') {\n resolve(chunksConcat(body, length).buffer)\n } else if (type === 'blob') {\n resolve(new Blob(body, { type: stream[kContentType] }))\n } else if (type === 'bytes') {\n resolve(chunksConcat(body, length))\n }\n\n consumeFinish(consume)\n } catch (err) {\n stream.destroy(err)\n }\n}\n\nfunction consumePush (consume, chunk) {\n consume.length += chunk.length\n consume.body.push(chunk)\n}\n\nfunction consumeFinish (consume, err) {\n if (consume.body === null) {\n return\n }\n\n if (err) {\n consume.reject(err)\n } else {\n consume.resolve()\n }\n\n consume.type = null\n consume.stream = null\n consume.resolve = null\n consume.reject = null\n consume.length = 0\n consume.body = null\n}\n\nmodule.exports = { Readable: BodyReadable, chunksDecode }\n", "const assert = require('node:assert')\nconst {\n ResponseStatusCodeError\n} = require('../core/errors')\n\nconst { chunksDecode } = require('./readable')\nconst CHUNK_LIMIT = 128 * 1024\n\nasync function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {\n assert(body)\n\n let chunks = []\n let length = 0\n\n try {\n for await (const chunk of body) {\n chunks.push(chunk)\n length += chunk.length\n if (length > CHUNK_LIMIT) {\n chunks = []\n length = 0\n break\n }\n }\n } catch {\n chunks = []\n length = 0\n // Do nothing....\n }\n\n const message = `Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`\n\n if (statusCode === 204 || !contentType || !length) {\n queueMicrotask(() => callback(new ResponseStatusCodeError(message, statusCode, headers)))\n return\n }\n\n const stackTraceLimit = Error.stackTraceLimit\n Error.stackTraceLimit = 0\n let payload\n\n try {\n if (isContentTypeApplicationJson(contentType)) {\n payload = JSON.parse(chunksDecode(chunks, length))\n } else if (isContentTypeText(contentType)) {\n payload = chunksDecode(chunks, length)\n }\n } catch {\n // process in a callback to avoid throwing in the microtask queue\n } finally {\n Error.stackTraceLimit = stackTraceLimit\n }\n queueMicrotask(() => callback(new ResponseStatusCodeError(message, statusCode, headers, payload)))\n}\n\nconst isContentTypeApplicationJson = (contentType) => {\n return (\n contentType.length > 15 &&\n contentType[11] === '/' &&\n contentType[0] === 'a' &&\n contentType[1] === 'p' &&\n contentType[2] === 'p' &&\n contentType[3] === 'l' &&\n contentType[4] === 'i' &&\n contentType[5] === 'c' &&\n contentType[6] === 'a' &&\n contentType[7] === 't' &&\n contentType[8] === 'i' &&\n contentType[9] === 'o' &&\n contentType[10] === 'n' &&\n contentType[12] === 'j' &&\n contentType[13] === 's' &&\n contentType[14] === 'o' &&\n contentType[15] === 'n'\n )\n}\n\nconst isContentTypeText = (contentType) => {\n return (\n contentType.length > 4 &&\n contentType[4] === '/' &&\n contentType[0] === 't' &&\n contentType[1] === 'e' &&\n contentType[2] === 'x' &&\n contentType[3] === 't'\n )\n}\n\nmodule.exports = {\n getResolveErrorBodyCallback,\n isContentTypeApplicationJson,\n isContentTypeText\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { Readable } = require('./readable')\nconst { InvalidArgumentError, RequestAbortedError } = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('node:async_hooks')\n\nclass RequestHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) {\n throw new InvalidArgumentError('invalid highWaterMark')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_REQUEST')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.method = method\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.res = null\n this.abort = null\n this.body = body\n this.trailers = {}\n this.context = null\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError\n this.highWaterMark = highWaterMark\n this.signal = signal\n this.reason = null\n this.removeAbortListener = null\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n if (this.signal) {\n if (this.signal.aborted) {\n this.reason = this.signal.reason ?? new RequestAbortedError()\n } else {\n this.removeAbortListener = util.addAbortListener(this.signal, () => {\n this.reason = this.signal.reason ?? new RequestAbortedError()\n if (this.res) {\n util.destroy(this.res.on('error', util.nop), this.reason)\n } else if (this.abort) {\n this.abort(this.reason)\n }\n\n if (this.removeAbortListener) {\n this.res?.off('close', this.removeAbortListener)\n this.removeAbortListener()\n this.removeAbortListener = null\n }\n })\n }\n }\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n const contentLength = parsedHeaders['content-length']\n const res = new Readable({\n resume,\n abort,\n contentType,\n contentLength: this.method !== 'HEAD' && contentLength\n ? Number(contentLength)\n : null,\n highWaterMark\n })\n\n if (this.removeAbortListener) {\n res.on('close', this.removeAbortListener)\n }\n\n this.callback = null\n this.res = res\n if (callback !== null) {\n if (this.throwOnError && statusCode >= 400) {\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body: res, contentType, statusCode, statusMessage, headers }\n )\n } else {\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n trailers: this.trailers,\n opaque,\n body: res,\n context\n })\n }\n }\n }\n\n onData (chunk) {\n return this.res.push(chunk)\n }\n\n onComplete (trailers) {\n util.parseHeaders(trailers, this.trailers)\n this.res.push(null)\n }\n\n onError (err) {\n const { res, callback, body, opaque } = this\n\n if (callback) {\n // TODO: Does this need queueMicrotask?\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (res) {\n this.res = null\n // Ensure all queued handlers are invoked before destroying res.\n queueMicrotask(() => {\n util.destroy(res, err)\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n\n if (this.removeAbortListener) {\n res?.off('close', this.removeAbortListener)\n this.removeAbortListener()\n this.removeAbortListener = null\n }\n }\n}\n\nfunction request (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n request.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new RequestHandler(opts, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = request\nmodule.exports.RequestHandler = RequestHandler\n", "const { addAbortListener } = require('../core/util')\nconst { RequestAbortedError } = require('../core/errors')\n\nconst kListener = Symbol('kListener')\nconst kSignal = Symbol('kSignal')\n\nfunction abort (self) {\n if (self.abort) {\n self.abort(self[kSignal]?.reason)\n } else {\n self.reason = self[kSignal]?.reason ?? new RequestAbortedError()\n }\n removeSignal(self)\n}\n\nfunction addSignal (self, signal) {\n self.reason = null\n\n self[kSignal] = null\n self[kListener] = null\n\n if (!signal) {\n return\n }\n\n if (signal.aborted) {\n abort(self)\n return\n }\n\n self[kSignal] = signal\n self[kListener] = () => {\n abort(self)\n }\n\n addAbortListener(self[kSignal], self[kListener])\n}\n\nfunction removeSignal (self) {\n if (!self[kSignal]) {\n return\n }\n\n if ('removeEventListener' in self[kSignal]) {\n self[kSignal].removeEventListener('abort', self[kListener])\n } else {\n self[kSignal].removeListener('abort', self[kListener])\n }\n\n self[kSignal] = null\n self[kListener] = null\n}\n\nmodule.exports = {\n addSignal,\n removeSignal\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { finished, PassThrough } = require('node:stream')\nconst { InvalidArgumentError, InvalidReturnValueError } = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('node:async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass StreamHandler extends AsyncResource {\n constructor (opts, factory, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('invalid factory')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_STREAM')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.factory = factory\n this.callback = callback\n this.res = null\n this.abort = null\n this.context = null\n this.trailers = null\n this.body = body\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError || false\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { factory, opaque, context, callback, responseHeaders } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.factory = null\n\n let res\n\n if (this.throwOnError && statusCode >= 400) {\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n res = new PassThrough()\n\n this.callback = null\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body: res, contentType, statusCode, statusMessage, headers }\n )\n } else {\n if (factory === null) {\n return\n }\n\n res = this.runInAsyncScope(factory, null, {\n statusCode,\n headers,\n opaque,\n context\n })\n\n if (\n !res ||\n typeof res.write !== 'function' ||\n typeof res.end !== 'function' ||\n typeof res.on !== 'function'\n ) {\n throw new InvalidReturnValueError('expected Writable')\n }\n\n // TODO: Avoid finished. It registers an unnecessary amount of listeners.\n finished(res, { readable: false }, (err) => {\n const { callback, res, opaque, trailers, abort } = this\n\n this.res = null\n if (err || !res.readable) {\n util.destroy(res, err)\n }\n\n this.callback = null\n this.runInAsyncScope(callback, null, err || null, { opaque, trailers })\n\n if (err) {\n abort()\n }\n })\n }\n\n res.on('drain', resume)\n\n this.res = res\n\n const needDrain = res.writableNeedDrain !== undefined\n ? res.writableNeedDrain\n : res._writableState?.needDrain\n\n return needDrain !== true\n }\n\n onData (chunk) {\n const { res } = this\n\n return res ? res.write(chunk) : true\n }\n\n onComplete (trailers) {\n const { res } = this\n\n removeSignal(this)\n\n if (!res) {\n return\n }\n\n this.trailers = util.parseHeaders(trailers)\n\n res.end()\n }\n\n onError (err) {\n const { res, callback, opaque, body } = this\n\n removeSignal(this)\n\n this.factory = null\n\n if (res) {\n this.res = null\n util.destroy(res, err)\n } else if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n }\n}\n\nfunction stream (opts, factory, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n stream.call(this, opts, factory, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new StreamHandler(opts, factory, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = stream\n", "'use strict'\n\nconst {\n Readable,\n Duplex,\n PassThrough\n} = require('node:stream')\nconst {\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { AsyncResource } = require('node:async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('node:assert')\n\nconst kResume = Symbol('resume')\n\nclass PipelineRequest extends Readable {\n constructor () {\n super({ autoDestroy: true })\n\n this[kResume] = null\n }\n\n _read () {\n const { [kResume]: resume } = this\n\n if (resume) {\n this[kResume] = null\n resume()\n }\n }\n\n _destroy (err, callback) {\n this._read()\n\n callback(err)\n }\n}\n\nclass PipelineResponse extends Readable {\n constructor (resume) {\n super({ autoDestroy: true })\n this[kResume] = resume\n }\n\n _read () {\n this[kResume]()\n }\n\n _destroy (err, callback) {\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n callback(err)\n }\n}\n\nclass PipelineHandler extends AsyncResource {\n constructor (opts, handler) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof handler !== 'function') {\n throw new InvalidArgumentError('invalid handler')\n }\n\n const { signal, method, opaque, onInfo, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_PIPELINE')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.handler = handler\n this.abort = null\n this.context = null\n this.onInfo = onInfo || null\n\n this.req = new PipelineRequest().on('error', util.nop)\n\n this.ret = new Duplex({\n readableObjectMode: opts.objectMode,\n autoDestroy: true,\n read: () => {\n const { body } = this\n\n if (body?.resume) {\n body.resume()\n }\n },\n write: (chunk, encoding, callback) => {\n const { req } = this\n\n if (req.push(chunk, encoding) || req._readableState.destroyed) {\n callback()\n } else {\n req[kResume] = callback\n }\n },\n destroy: (err, callback) => {\n const { body, req, res, ret, abort } = this\n\n if (!err && !ret._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (abort && err) {\n abort()\n }\n\n util.destroy(body, err)\n util.destroy(req, err)\n util.destroy(res, err)\n\n removeSignal(this)\n\n callback(err)\n }\n }).on('prefinish', () => {\n const { req } = this\n\n // Node < 15 does not call _final in same tick.\n req.push(null)\n })\n\n this.res = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n const { ret, res } = this\n\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(!res, 'pipeline cannot be retried')\n assert(!ret.destroyed)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume) {\n const { opaque, handler, context } = this\n\n if (statusCode < 200) {\n if (this.onInfo) {\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.res = new PipelineResponse(resume)\n\n let body\n try {\n this.handler = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n body = this.runInAsyncScope(handler, null, {\n statusCode,\n headers,\n opaque,\n body: this.res,\n context\n })\n } catch (err) {\n this.res.on('error', util.nop)\n throw err\n }\n\n if (!body || typeof body.on !== 'function') {\n throw new InvalidReturnValueError('expected Readable')\n }\n\n body\n .on('data', (chunk) => {\n const { ret, body } = this\n\n if (!ret.push(chunk) && body.pause) {\n body.pause()\n }\n })\n .on('error', (err) => {\n const { ret } = this\n\n util.destroy(ret, err)\n })\n .on('end', () => {\n const { ret } = this\n\n ret.push(null)\n })\n .on('close', () => {\n const { ret } = this\n\n if (!ret._readableState.ended) {\n util.destroy(ret, new RequestAbortedError())\n }\n })\n\n this.body = body\n }\n\n onData (chunk) {\n const { res } = this\n return res.push(chunk)\n }\n\n onComplete (trailers) {\n const { res } = this\n res.push(null)\n }\n\n onError (err) {\n const { ret } = this\n this.handler = null\n util.destroy(ret, err)\n }\n}\n\nfunction pipeline (opts, handler) {\n try {\n const pipelineHandler = new PipelineHandler(opts, handler)\n this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)\n return pipelineHandler.ret\n } catch (err) {\n return new PassThrough().destroy(err)\n }\n}\n\nmodule.exports = pipeline\n", "'use strict'\n\nconst { InvalidArgumentError, SocketError } = require('../core/errors')\nconst { AsyncResource } = require('node:async_hooks')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('node:assert')\n\nclass UpgradeHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_UPGRADE')\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.abort = null\n this.context = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = null\n }\n\n onHeaders () {\n throw new SocketError('bad upgrade', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n assert(statusCode === 101)\n\n const { callback, opaque, context } = this\n\n removeSignal(this)\n\n this.callback = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.runInAsyncScope(callback, null, null, {\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction upgrade (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n upgrade.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const upgradeHandler = new UpgradeHandler(opts, callback)\n this.dispatch({\n ...opts,\n method: opts.method || 'GET',\n upgrade: opts.protocol || 'Websocket'\n }, upgradeHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = upgrade\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { AsyncResource } = require('node:async_hooks')\nconst { InvalidArgumentError, SocketError } = require('../core/errors')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass ConnectHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_CONNECT')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.callback = callback\n this.abort = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (this.reason) {\n abort(this.reason)\n return\n }\n\n assert(this.callback)\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders () {\n throw new SocketError('bad connect', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n const { callback, opaque, context } = this\n\n removeSignal(this)\n\n this.callback = null\n\n let headers = rawHeaders\n // Indicates is an HTTP2Session\n if (headers != null) {\n headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n }\n\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction connect (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n connect.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const connectHandler = new ConnectHandler(opts, callback)\n this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts?.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = connect\n", "'use strict'\n\nmodule.exports.request = require('./api-request')\nmodule.exports.stream = require('./api-stream')\nmodule.exports.pipeline = require('./api-pipeline')\nmodule.exports.upgrade = require('./api-upgrade')\nmodule.exports.connect = require('./api-connect')\n", "'use strict'\n\nconst { UndiciError } = require('../core/errors')\n\nconst kMockNotMatchedError = Symbol.for('undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED')\n\n/**\n * The request does not match any registered mock dispatches.\n */\nclass MockNotMatchedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, MockNotMatchedError)\n this.name = 'MockNotMatchedError'\n this.message = message || 'The request does not match any registered mock dispatches'\n this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'\n }\n\n static [Symbol.hasInstance] (instance) {\n return instance && instance[kMockNotMatchedError] === true\n }\n\n [kMockNotMatchedError] = true\n}\n\nmodule.exports = {\n MockNotMatchedError\n}\n", "'use strict'\n\nmodule.exports = {\n kAgent: Symbol('agent'),\n kOptions: Symbol('options'),\n kFactory: Symbol('factory'),\n kDispatches: Symbol('dispatches'),\n kDispatchKey: Symbol('dispatch key'),\n kDefaultHeaders: Symbol('default headers'),\n kDefaultTrailers: Symbol('default trailers'),\n kContentLength: Symbol('content length'),\n kMockAgent: Symbol('mock agent'),\n kMockAgentSet: Symbol('mock agent set'),\n kMockAgentGet: Symbol('mock agent get'),\n kMockDispatch: Symbol('mock dispatch'),\n kClose: Symbol('close'),\n kOriginalClose: Symbol('original agent close'),\n kOrigin: Symbol('origin'),\n kIsMockActive: Symbol('is mock active'),\n kNetConnect: Symbol('net connect'),\n kGetNetConnect: Symbol('get net connect'),\n kConnected: Symbol('connected')\n}\n", "'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL } = require('../core/util')\nconst { STATUS_CODES } = require('node:http')\nconst {\n types: {\n isPromise\n }\n} = require('node:util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (data instanceof Uint8Array) {\n return data\n } else if (data instanceof ArrayBuffer) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}' on path '${resolvedPath}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n const headers = typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n const keys = Object.keys(data)\n const result = []\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i]\n const value = data[key]\n const name = Buffer.from(`${key}`)\n if (Array.isArray(value)) {\n for (let j = 0; j < value.length; ++j) {\n result.push(name, Buffer.from(`${value[j]}`))\n }\n } else {\n result.push(name, Buffer.from(`${value}`))\n }\n }\n return result\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.onConnect?.(err => handler.onError(err), null)\n handler.onHeaders?.(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData?.(Buffer.from(responseData))\n handler.onComplete?.(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName,\n buildHeadersFromArray\n}\n", "'use strict'\n\nconst { getResponseData, buildKey, addMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kDispatchKey,\n kDefaultHeaders,\n kDefaultTrailers,\n kContentLength,\n kMockDispatch\n} = require('./mock-symbols')\nconst { InvalidArgumentError } = require('../core/errors')\nconst { buildURL } = require('../core/util')\n\n/**\n * Defines the scope API for an interceptor reply\n */\nclass MockScope {\n constructor (mockDispatch) {\n this[kMockDispatch] = mockDispatch\n }\n\n /**\n * Delay a reply by a set amount in ms.\n */\n delay (waitInMs) {\n if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {\n throw new InvalidArgumentError('waitInMs must be a valid integer > 0')\n }\n\n this[kMockDispatch].delay = waitInMs\n return this\n }\n\n /**\n * For a defined reply, never mark as consumed.\n */\n persist () {\n this[kMockDispatch].persist = true\n return this\n }\n\n /**\n * Allow one to define a reply for a set amount of matching requests.\n */\n times (repeatTimes) {\n if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {\n throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')\n }\n\n this[kMockDispatch].times = repeatTimes\n return this\n }\n}\n\n/**\n * Defines an interceptor for a Mock\n */\nclass MockInterceptor {\n constructor (opts, mockDispatches) {\n if (typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object')\n }\n if (typeof opts.path === 'undefined') {\n throw new InvalidArgumentError('opts.path must be defined')\n }\n if (typeof opts.method === 'undefined') {\n opts.method = 'GET'\n }\n // See https://github.com/nodejs/undici/issues/1245\n // As per RFC 3986, clients are not supposed to send URI\n // fragments to servers when they retrieve a document,\n if (typeof opts.path === 'string') {\n if (opts.query) {\n opts.path = buildURL(opts.path, opts.query)\n } else {\n // Matches https://github.com/nodejs/undici/blob/main/lib/web/fetch/index.js#L1811\n const parsedURL = new URL(opts.path, 'data://')\n opts.path = parsedURL.pathname + parsedURL.search\n }\n }\n if (typeof opts.method === 'string') {\n opts.method = opts.method.toUpperCase()\n }\n\n this[kDispatchKey] = buildKey(opts)\n this[kDispatches] = mockDispatches\n this[kDefaultHeaders] = {}\n this[kDefaultTrailers] = {}\n this[kContentLength] = false\n }\n\n createMockScopeDispatchData ({ statusCode, data, responseOptions }) {\n const responseData = getResponseData(data)\n const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}\n const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }\n const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }\n\n return { statusCode, data, headers, trailers }\n }\n\n validateReplyParameters (replyParameters) {\n if (typeof replyParameters.statusCode === 'undefined') {\n throw new InvalidArgumentError('statusCode must be defined')\n }\n if (typeof replyParameters.responseOptions !== 'object' || replyParameters.responseOptions === null) {\n throw new InvalidArgumentError('responseOptions must be an object')\n }\n }\n\n /**\n * Mock an undici request with a defined reply.\n */\n reply (replyOptionsCallbackOrStatusCode) {\n // Values of reply aren't available right now as they\n // can only be available when the reply callback is invoked.\n if (typeof replyOptionsCallbackOrStatusCode === 'function') {\n // We'll first wrap the provided callback in another function,\n // this function will properly resolve the data from the callback\n // when invoked.\n const wrappedDefaultsCallback = (opts) => {\n // Our reply options callback contains the parameter for statusCode, data and options.\n const resolvedData = replyOptionsCallbackOrStatusCode(opts)\n\n // Check if it is in the right format\n if (typeof resolvedData !== 'object' || resolvedData === null) {\n throw new InvalidArgumentError('reply options callback must return an object')\n }\n\n const replyParameters = { data: '', responseOptions: {}, ...resolvedData }\n this.validateReplyParameters(replyParameters)\n // Since the values can be obtained immediately we return them\n // from this higher order function that will be resolved later.\n return {\n ...this.createMockScopeDispatchData(replyParameters)\n }\n }\n\n // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)\n return new MockScope(newMockDispatch)\n }\n\n // We can have either one or three parameters, if we get here,\n // we should have 1-3 parameters. So we spread the arguments of\n // this function to obtain the parameters, since replyData will always\n // just be the statusCode.\n const replyParameters = {\n statusCode: replyOptionsCallbackOrStatusCode,\n data: arguments[1] === undefined ? '' : arguments[1],\n responseOptions: arguments[2] === undefined ? {} : arguments[2]\n }\n this.validateReplyParameters(replyParameters)\n\n // Send in-already provided data like usual\n const dispatchData = this.createMockScopeDispatchData(replyParameters)\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Mock an undici request with a defined error.\n */\n replyWithError (error) {\n if (typeof error === 'undefined') {\n throw new InvalidArgumentError('error must be defined')\n }\n\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Set default reply headers on the interceptor for subsequent replies\n */\n defaultReplyHeaders (headers) {\n if (typeof headers === 'undefined') {\n throw new InvalidArgumentError('headers must be defined')\n }\n\n this[kDefaultHeaders] = headers\n return this\n }\n\n /**\n * Set default reply trailers on the interceptor for subsequent replies\n */\n defaultReplyTrailers (trailers) {\n if (typeof trailers === 'undefined') {\n throw new InvalidArgumentError('trailers must be defined')\n }\n\n this[kDefaultTrailers] = trailers\n return this\n }\n\n /**\n * Set reply content length header for replies on the interceptor\n */\n replyContentLength () {\n this[kContentLength] = true\n return this\n }\n}\n\nmodule.exports.MockInterceptor = MockInterceptor\nmodule.exports.MockScope = MockScope\n", "'use strict'\n\nconst { promisify } = require('node:util')\nconst Client = require('../dispatcher/client')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockClient provides an API that extends the Client to influence the mockDispatches.\n */\nclass MockClient extends Client {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockClient\n", "'use strict'\n\nconst { promisify } = require('node:util')\nconst Pool = require('../dispatcher/pool')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockPool provides an API that extends the Pool to influence the mockDispatches.\n */\nclass MockPool extends Pool {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockPool\n", "'use strict'\n\nconst singulars = {\n pronoun: 'it',\n is: 'is',\n was: 'was',\n this: 'this'\n}\n\nconst plurals = {\n pronoun: 'they',\n is: 'are',\n was: 'were',\n this: 'these'\n}\n\nmodule.exports = class Pluralizer {\n constructor (singular, plural) {\n this.singular = singular\n this.plural = plural\n }\n\n pluralize (count) {\n const one = count === 1\n const keys = one ? singulars : plurals\n const noun = one ? this.singular : this.plural\n return { ...keys, count, noun }\n }\n}\n", "'use strict'\n\nconst { Transform } = require('node:stream')\nconst { Console } = require('node:console')\n\nconst PERSISTENT = process.versions.icu ? '\u2705' : 'Y '\nconst NOT_PERSISTENT = process.versions.icu ? '\u274C' : 'N '\n\n/**\n * Gets the output of `console.table(\u2026)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ? PERSISTENT : NOT_PERSISTENT,\n Invocations: timesInvoked,\n Remaining: persist ? Infinity : times - timesInvoked\n }))\n\n this.logger.table(withPrettyHeaders)\n return this.transform.read().toString()\n }\n}\n", "'use strict'\n\nconst { kClients } = require('../core/symbols')\nconst Agent = require('../dispatcher/agent')\nconst {\n kAgent,\n kMockAgentSet,\n kMockAgentGet,\n kDispatches,\n kIsMockActive,\n kNetConnect,\n kGetNetConnect,\n kOptions,\n kFactory\n} = require('./mock-symbols')\nconst MockClient = require('./mock-client')\nconst MockPool = require('./mock-pool')\nconst { matchValue, buildMockOptions } = require('./mock-utils')\nconst { InvalidArgumentError, UndiciError } = require('../core/errors')\nconst Dispatcher = require('../dispatcher/dispatcher')\nconst Pluralizer = require('./pluralizer')\nconst PendingInterceptorsFormatter = require('./pending-interceptors-formatter')\n\nclass MockAgent extends Dispatcher {\n constructor (opts) {\n super(opts)\n\n this[kNetConnect] = true\n this[kIsMockActive] = true\n\n // Instantiate Agent and encapsulate\n if ((opts?.agent && typeof opts.agent.dispatch !== 'function')) {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n const agent = opts?.agent ? opts.agent : new Agent(opts)\n this[kAgent] = agent\n\n this[kClients] = agent[kClients]\n this[kOptions] = buildMockOptions(opts)\n }\n\n get (origin) {\n let dispatcher = this[kMockAgentGet](origin)\n\n if (!dispatcher) {\n dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n }\n return dispatcher\n }\n\n dispatch (opts, handler) {\n // Call MockAgent.get to perform additional setup before dispatching as normal\n this.get(opts.origin)\n return this[kAgent].dispatch(opts, handler)\n }\n\n async close () {\n await this[kAgent].close()\n this[kClients].clear()\n }\n\n deactivate () {\n this[kIsMockActive] = false\n }\n\n activate () {\n this[kIsMockActive] = true\n }\n\n enableNetConnect (matcher) {\n if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) {\n if (Array.isArray(this[kNetConnect])) {\n this[kNetConnect].push(matcher)\n } else {\n this[kNetConnect] = [matcher]\n }\n } else if (typeof matcher === 'undefined') {\n this[kNetConnect] = true\n } else {\n throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.')\n }\n }\n\n disableNetConnect () {\n this[kNetConnect] = false\n }\n\n // This is required to bypass issues caused by using global symbols - see:\n // https://github.com/nodejs/undici/issues/1447\n get isMockActive () {\n return this[kIsMockActive]\n }\n\n [kMockAgentSet] (origin, dispatcher) {\n this[kClients].set(origin, dispatcher)\n }\n\n [kFactory] (origin) {\n const mockOptions = Object.assign({ agent: this }, this[kOptions])\n return this[kOptions] && this[kOptions].connections === 1\n ? new MockClient(origin, mockOptions)\n : new MockPool(origin, mockOptions)\n }\n\n [kMockAgentGet] (origin) {\n // First check if we can immediately find it\n const client = this[kClients].get(origin)\n if (client) {\n return client\n }\n\n // If the origin is not a string create a dummy parent pool and return to user\n if (typeof origin !== 'string') {\n const dispatcher = this[kFactory]('http://localhost:9999')\n this[kMockAgentSet](origin, dispatcher)\n return dispatcher\n }\n\n // If we match, create a pool and assign the same dispatches\n for (const [keyMatcher, nonExplicitDispatcher] of Array.from(this[kClients])) {\n if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) {\n const dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches]\n return dispatcher\n }\n }\n }\n\n [kGetNetConnect] () {\n return this[kNetConnect]\n }\n\n pendingInterceptors () {\n const mockAgentClients = this[kClients]\n\n return Array.from(mockAgentClients.entries())\n .flatMap(([origin, scope]) => scope[kDispatches].map(dispatch => ({ ...dispatch, origin })))\n .filter(({ pending }) => pending)\n }\n\n assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {\n const pending = this.pendingInterceptors()\n\n if (pending.length === 0) {\n return\n }\n\n const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length)\n\n throw new UndiciError(`\n${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:\n\n${pendingInterceptorsFormatter.format(pending)}\n`.trim())\n }\n}\n\nmodule.exports = MockAgent\n", "'use strict'\n\n// We include a version number for the Dispatcher API. In case of breaking changes,\n// this version number must be increased to avoid conflicts.\nconst globalDispatcher = Symbol.for('undici.globalDispatcher.1')\nconst { InvalidArgumentError } = require('./core/errors')\nconst Agent = require('./dispatcher/agent')\n\nif (getGlobalDispatcher() === undefined) {\n setGlobalDispatcher(new Agent())\n}\n\nfunction setGlobalDispatcher (agent) {\n if (!agent || typeof agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument agent must implement Agent')\n }\n Object.defineProperty(globalThis, globalDispatcher, {\n value: agent,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nfunction getGlobalDispatcher () {\n return globalThis[globalDispatcher]\n}\n\nmodule.exports = {\n setGlobalDispatcher,\n getGlobalDispatcher\n}\n", "'use strict'\n\nmodule.exports = class DecoratorHandler {\n #handler\n\n constructor (handler) {\n if (typeof handler !== 'object' || handler === null) {\n throw new TypeError('handler must be an object')\n }\n this.#handler = handler\n }\n\n onConnect (...args) {\n return this.#handler.onConnect?.(...args)\n }\n\n onError (...args) {\n return this.#handler.onError?.(...args)\n }\n\n onUpgrade (...args) {\n return this.#handler.onUpgrade?.(...args)\n }\n\n onResponseStarted (...args) {\n return this.#handler.onResponseStarted?.(...args)\n }\n\n onHeaders (...args) {\n return this.#handler.onHeaders?.(...args)\n }\n\n onData (...args) {\n return this.#handler.onData?.(...args)\n }\n\n onComplete (...args) {\n return this.#handler.onComplete?.(...args)\n }\n\n onBodySent (...args) {\n return this.#handler.onBodySent?.(...args)\n }\n}\n", "'use strict'\nconst RedirectHandler = require('../handler/redirect-handler')\n\nmodule.exports = opts => {\n const globalMaxRedirections = opts?.maxRedirections\n return dispatch => {\n return function redirectInterceptor (opts, handler) {\n const { maxRedirections = globalMaxRedirections, ...baseOpts } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(\n dispatch,\n maxRedirections,\n opts,\n handler\n )\n\n return dispatch(baseOpts, redirectHandler)\n }\n }\n}\n", "'use strict'\nconst RetryHandler = require('../handler/retry-handler')\n\nmodule.exports = globalOpts => {\n return dispatch => {\n return function retryInterceptor (opts, handler) {\n return dispatch(\n opts,\n new RetryHandler(\n { ...opts, retryOptions: { ...globalOpts, ...opts.retryOptions } },\n {\n handler,\n dispatch\n }\n )\n )\n }\n }\n}\n", "'use strict'\n\nconst util = require('../core/util')\nconst { InvalidArgumentError, RequestAbortedError } = require('../core/errors')\nconst DecoratorHandler = require('../handler/decorator-handler')\n\nclass DumpHandler extends DecoratorHandler {\n #maxSize = 1024 * 1024\n #abort = null\n #dumped = false\n #aborted = false\n #size = 0\n #reason = null\n #handler = null\n\n constructor ({ maxSize }, handler) {\n super(handler)\n\n if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {\n throw new InvalidArgumentError('maxSize must be a number greater than 0')\n }\n\n this.#maxSize = maxSize ?? this.#maxSize\n this.#handler = handler\n }\n\n onConnect (abort) {\n this.#abort = abort\n\n this.#handler.onConnect(this.#customAbort.bind(this))\n }\n\n #customAbort (reason) {\n this.#aborted = true\n this.#reason = reason\n }\n\n // TODO: will require adjustment after new hooks are out\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = util.parseHeaders(rawHeaders)\n const contentLength = headers['content-length']\n\n if (contentLength != null && contentLength > this.#maxSize) {\n throw new RequestAbortedError(\n `Response size (${contentLength}) larger than maxSize (${\n this.#maxSize\n })`\n )\n }\n\n if (this.#aborted) {\n return true\n }\n\n return this.#handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n onError (err) {\n if (this.#dumped) {\n return\n }\n\n err = this.#reason ?? err\n\n this.#handler.onError(err)\n }\n\n onData (chunk) {\n this.#size = this.#size + chunk.length\n\n if (this.#size >= this.#maxSize) {\n this.#dumped = true\n\n if (this.#aborted) {\n this.#handler.onError(this.#reason)\n } else {\n this.#handler.onComplete([])\n }\n }\n\n return true\n }\n\n onComplete (trailers) {\n if (this.#dumped) {\n return\n }\n\n if (this.#aborted) {\n this.#handler.onError(this.reason)\n return\n }\n\n this.#handler.onComplete(trailers)\n }\n}\n\nfunction createDumpInterceptor (\n { maxSize: defaultMaxSize } = {\n maxSize: 1024 * 1024\n }\n) {\n return dispatch => {\n return function Intercept (opts, handler) {\n const { dumpMaxSize = defaultMaxSize } =\n opts\n\n const dumpHandler = new DumpHandler(\n { maxSize: dumpMaxSize },\n handler\n )\n\n return dispatch(opts, dumpHandler)\n }\n }\n}\n\nmodule.exports = createDumpInterceptor\n", "'use strict'\nconst { isIP } = require('node:net')\nconst { lookup } = require('node:dns')\nconst DecoratorHandler = require('../handler/decorator-handler')\nconst { InvalidArgumentError, InformationalError } = require('../core/errors')\nconst maxInt = Math.pow(2, 31) - 1\n\nclass DNSInstance {\n #maxTTL = 0\n #maxItems = 0\n #records = new Map()\n dualStack = true\n affinity = null\n lookup = null\n pick = null\n\n constructor (opts) {\n this.#maxTTL = opts.maxTTL\n this.#maxItems = opts.maxItems\n this.dualStack = opts.dualStack\n this.affinity = opts.affinity\n this.lookup = opts.lookup ?? this.#defaultLookup\n this.pick = opts.pick ?? this.#defaultPick\n }\n\n get full () {\n return this.#records.size === this.#maxItems\n }\n\n runLookup (origin, opts, cb) {\n const ips = this.#records.get(origin.hostname)\n\n // If full, we just return the origin\n if (ips == null && this.full) {\n cb(null, origin.origin)\n return\n }\n\n const newOpts = {\n affinity: this.affinity,\n dualStack: this.dualStack,\n lookup: this.lookup,\n pick: this.pick,\n ...opts.dns,\n maxTTL: this.#maxTTL,\n maxItems: this.#maxItems\n }\n\n // If no IPs we lookup\n if (ips == null) {\n this.lookup(origin, newOpts, (err, addresses) => {\n if (err || addresses == null || addresses.length === 0) {\n cb(err ?? new InformationalError('No DNS entries found'))\n return\n }\n\n this.setRecords(origin, addresses)\n const records = this.#records.get(origin.hostname)\n\n const ip = this.pick(\n origin,\n records,\n newOpts.affinity\n )\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n })\n } else {\n // If there's IPs we pick\n const ip = this.pick(\n origin,\n ips,\n newOpts.affinity\n )\n\n // If no IPs we lookup - deleting old records\n if (ip == null) {\n this.#records.delete(origin.hostname)\n this.runLookup(origin, opts, cb)\n return\n }\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n }\n }\n\n #defaultLookup (origin, opts, cb) {\n lookup(\n origin.hostname,\n {\n all: true,\n family: this.dualStack === false ? this.affinity : 0,\n order: 'ipv4first'\n },\n (err, addresses) => {\n if (err) {\n return cb(err)\n }\n\n const results = new Map()\n\n for (const addr of addresses) {\n // On linux we found duplicates, we attempt to remove them with\n // the latest record\n results.set(`${addr.address}:${addr.family}`, addr)\n }\n\n cb(null, results.values())\n }\n )\n }\n\n #defaultPick (origin, hostnameRecords, affinity) {\n let ip = null\n const { records, offset } = hostnameRecords\n\n let family\n if (this.dualStack) {\n if (affinity == null) {\n // Balance between ip families\n if (offset == null || offset === maxInt) {\n hostnameRecords.offset = 0\n affinity = 4\n } else {\n hostnameRecords.offset++\n affinity = (hostnameRecords.offset & 1) === 1 ? 6 : 4\n }\n }\n\n if (records[affinity] != null && records[affinity].ips.length > 0) {\n family = records[affinity]\n } else {\n family = records[affinity === 4 ? 6 : 4]\n }\n } else {\n family = records[affinity]\n }\n\n // If no IPs we return null\n if (family == null || family.ips.length === 0) {\n return ip\n }\n\n if (family.offset == null || family.offset === maxInt) {\n family.offset = 0\n } else {\n family.offset++\n }\n\n const position = family.offset % family.ips.length\n ip = family.ips[position] ?? null\n\n if (ip == null) {\n return ip\n }\n\n if (Date.now() - ip.timestamp > ip.ttl) { // record TTL is already in ms\n // We delete expired records\n // It is possible that they have different TTL, so we manage them individually\n family.ips.splice(position, 1)\n return this.pick(origin, hostnameRecords, affinity)\n }\n\n return ip\n }\n\n setRecords (origin, addresses) {\n const timestamp = Date.now()\n const records = { records: { 4: null, 6: null } }\n for (const record of addresses) {\n record.timestamp = timestamp\n if (typeof record.ttl === 'number') {\n // The record TTL is expected to be in ms\n record.ttl = Math.min(record.ttl, this.#maxTTL)\n } else {\n record.ttl = this.#maxTTL\n }\n\n const familyRecords = records.records[record.family] ?? { ips: [] }\n\n familyRecords.ips.push(record)\n records.records[record.family] = familyRecords\n }\n\n this.#records.set(origin.hostname, records)\n }\n\n getHandler (meta, opts) {\n return new DNSDispatchHandler(this, meta, opts)\n }\n}\n\nclass DNSDispatchHandler extends DecoratorHandler {\n #state = null\n #opts = null\n #dispatch = null\n #handler = null\n #origin = null\n\n constructor (state, { origin, handler, dispatch }, opts) {\n super(handler)\n this.#origin = origin\n this.#handler = handler\n this.#opts = { ...opts }\n this.#state = state\n this.#dispatch = dispatch\n }\n\n onError (err) {\n switch (err.code) {\n case 'ETIMEDOUT':\n case 'ECONNREFUSED': {\n if (this.#state.dualStack) {\n // We delete the record and retry\n this.#state.runLookup(this.#origin, this.#opts, (err, newOrigin) => {\n if (err) {\n return this.#handler.onError(err)\n }\n\n const dispatchOpts = {\n ...this.#opts,\n origin: newOrigin\n }\n\n this.#dispatch(dispatchOpts, this)\n })\n\n // if dual-stack disabled, we error out\n return\n }\n\n this.#handler.onError(err)\n return\n }\n case 'ENOTFOUND':\n this.#state.deleteRecord(this.#origin)\n // eslint-disable-next-line no-fallthrough\n default:\n this.#handler.onError(err)\n break\n }\n }\n}\n\nmodule.exports = interceptorOpts => {\n if (\n interceptorOpts?.maxTTL != null &&\n (typeof interceptorOpts?.maxTTL !== 'number' || interceptorOpts?.maxTTL < 0)\n ) {\n throw new InvalidArgumentError('Invalid maxTTL. Must be a positive number')\n }\n\n if (\n interceptorOpts?.maxItems != null &&\n (typeof interceptorOpts?.maxItems !== 'number' ||\n interceptorOpts?.maxItems < 1)\n ) {\n throw new InvalidArgumentError(\n 'Invalid maxItems. Must be a positive number and greater than zero'\n )\n }\n\n if (\n interceptorOpts?.affinity != null &&\n interceptorOpts?.affinity !== 4 &&\n interceptorOpts?.affinity !== 6\n ) {\n throw new InvalidArgumentError('Invalid affinity. Must be either 4 or 6')\n }\n\n if (\n interceptorOpts?.dualStack != null &&\n typeof interceptorOpts?.dualStack !== 'boolean'\n ) {\n throw new InvalidArgumentError('Invalid dualStack. Must be a boolean')\n }\n\n if (\n interceptorOpts?.lookup != null &&\n typeof interceptorOpts?.lookup !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid lookup. Must be a function')\n }\n\n if (\n interceptorOpts?.pick != null &&\n typeof interceptorOpts?.pick !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid pick. Must be a function')\n }\n\n const dualStack = interceptorOpts?.dualStack ?? true\n let affinity\n if (dualStack) {\n affinity = interceptorOpts?.affinity ?? null\n } else {\n affinity = interceptorOpts?.affinity ?? 4\n }\n\n const opts = {\n maxTTL: interceptorOpts?.maxTTL ?? 10e3, // Expressed in ms\n lookup: interceptorOpts?.lookup ?? null,\n pick: interceptorOpts?.pick ?? null,\n dualStack,\n affinity,\n maxItems: interceptorOpts?.maxItems ?? Infinity\n }\n\n const instance = new DNSInstance(opts)\n\n return dispatch => {\n return function dnsInterceptor (origDispatchOpts, handler) {\n const origin =\n origDispatchOpts.origin.constructor === URL\n ? origDispatchOpts.origin\n : new URL(origDispatchOpts.origin)\n\n if (isIP(origin.hostname) !== 0) {\n return dispatch(origDispatchOpts, handler)\n }\n\n instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {\n if (err) {\n return handler.onError(err)\n }\n\n let dispatchOpts = null\n dispatchOpts = {\n ...origDispatchOpts,\n servername: origin.hostname, // For SNI on TLS\n origin: newOrigin,\n headers: {\n host: origin.hostname,\n ...origDispatchOpts.headers\n }\n }\n\n dispatch(\n dispatchOpts,\n instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)\n )\n })\n\n return true\n }\n }\n}\n", "// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst { kConstruct } = require('../../core/symbols')\nconst { kEnumerableProperty } = require('../../core/util')\nconst {\n iteratorMixin,\n isValidHeaderName,\n isValidHeaderValue\n} = require('./util')\nconst { webidl } = require('./webidl')\nconst assert = require('node:assert')\nconst util = require('node:util')\n\nconst kHeadersMap = Symbol('headers map')\nconst kHeadersSortedMap = Symbol('headers map sorted')\n\n/**\n * @param {number} code\n */\nfunction isHTTPWhiteSpaceCharCode (code) {\n return code === 0x00a || code === 0x00d || code === 0x009 || code === 0x020\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize\n * @param {string} potentialValue\n */\nfunction headerValueNormalize (potentialValue) {\n // To normalize a byte sequence potentialValue, remove\n // any leading and trailing HTTP whitespace bytes from\n // potentialValue.\n let i = 0; let j = potentialValue.length\n\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i\n\n return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j)\n}\n\nfunction fill (headers, object) {\n // To fill a Headers object headers with a given object object, run these steps:\n\n // 1. If object is a sequence, then for each header in object:\n // Note: webidl conversion to array has already been done.\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; ++i) {\n const header = object[i]\n // 1. If header does not contain exactly two items, then throw a TypeError.\n if (header.length !== 2) {\n throw webidl.errors.exception({\n header: 'Headers constructor',\n message: `expected name/value pair to be length 2, found ${header.length}.`\n })\n }\n\n // 2. Append (header\u2019s first item, header\u2019s second item) to headers.\n appendHeader(headers, header[0], header[1])\n }\n } else if (typeof object === 'object' && object !== null) {\n // Note: null should throw\n\n // 2. Otherwise, object is a record, then for each key \u2192 value in object,\n // append (key, value) to headers\n const keys = Object.keys(object)\n for (let i = 0; i < keys.length; ++i) {\n appendHeader(headers, keys[i], object[keys[i]])\n }\n } else {\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-headers-append\n */\nfunction appendHeader (headers, name, value) {\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value,\n type: 'header value'\n })\n }\n\n // 3. If headers\u2019s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if headers\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 5. Otherwise, if headers\u2019s guard is \"request-no-cors\":\n // TODO\n // Note: undici does not implement forbidden header names\n if (getHeadersGuard(headers) === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 6. Otherwise, if headers\u2019s guard is \"response\" and name is a\n // forbidden response-header name, return.\n\n // 7. Append (name, value) to headers\u2019s header list.\n return getHeadersList(headers).append(name, value, false)\n\n // 8. If headers\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from headers\n}\n\nfunction compareHeaderName (a, b) {\n return a[0] < b[0] ? -1 : 1\n}\n\nclass HeadersList {\n /** @type {[string, string][]|null} */\n cookies = null\n\n constructor (init) {\n if (init instanceof HeadersList) {\n this[kHeadersMap] = new Map(init[kHeadersMap])\n this[kHeadersSortedMap] = init[kHeadersSortedMap]\n this.cookies = init.cookies === null ? null : [...init.cookies]\n } else {\n this[kHeadersMap] = new Map(init)\n this[kHeadersSortedMap] = null\n }\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#header-list-contains\n * @param {string} name\n * @param {boolean} isLowerCase\n */\n contains (name, isLowerCase) {\n // A header list list contains a header name name if list\n // contains a header whose name is a byte-case-insensitive\n // match for name.\n\n return this[kHeadersMap].has(isLowerCase ? name : name.toLowerCase())\n }\n\n clear () {\n this[kHeadersMap].clear()\n this[kHeadersSortedMap] = null\n this.cookies = null\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-append\n * @param {string} name\n * @param {string} value\n * @param {boolean} isLowerCase\n */\n append (name, value, isLowerCase) {\n this[kHeadersSortedMap] = null\n\n // 1. If list contains name, then set name to the first such\n // header\u2019s name.\n const lowercaseName = isLowerCase ? name : name.toLowerCase()\n const exists = this[kHeadersMap].get(lowercaseName)\n\n // 2. Append (name, value) to list.\n if (exists) {\n const delimiter = lowercaseName === 'cookie' ? '; ' : ', '\n this[kHeadersMap].set(lowercaseName, {\n name: exists.name,\n value: `${exists.value}${delimiter}${value}`\n })\n } else {\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n if (lowercaseName === 'set-cookie') {\n (this.cookies ??= []).push(value)\n }\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-set\n * @param {string} name\n * @param {string} value\n * @param {boolean} isLowerCase\n */\n set (name, value, isLowerCase) {\n this[kHeadersSortedMap] = null\n const lowercaseName = isLowerCase ? name : name.toLowerCase()\n\n if (lowercaseName === 'set-cookie') {\n this.cookies = [value]\n }\n\n // 1. If list contains name, then set the value of\n // the first such header to value and remove the\n // others.\n // 2. Otherwise, append header (name, value) to list.\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-delete\n * @param {string} name\n * @param {boolean} isLowerCase\n */\n delete (name, isLowerCase) {\n this[kHeadersSortedMap] = null\n if (!isLowerCase) name = name.toLowerCase()\n\n if (name === 'set-cookie') {\n this.cookies = null\n }\n\n this[kHeadersMap].delete(name)\n }\n\n /**\n * @see https://fetch.spec.whatwg.org/#concept-header-list-get\n * @param {string} name\n * @param {boolean} isLowerCase\n * @returns {string | null}\n */\n get (name, isLowerCase) {\n // 1. If list does not contain name, then return null.\n // 2. Return the values of all headers in list whose name\n // is a byte-case-insensitive match for name,\n // separated from each other by 0x2C 0x20, in order.\n return this[kHeadersMap].get(isLowerCase ? name : name.toLowerCase())?.value ?? null\n }\n\n * [Symbol.iterator] () {\n // use the lowercased name\n for (const { 0: name, 1: { value } } of this[kHeadersMap]) {\n yield [name, value]\n }\n }\n\n get entries () {\n const headers = {}\n\n if (this[kHeadersMap].size !== 0) {\n for (const { name, value } of this[kHeadersMap].values()) {\n headers[name] = value\n }\n }\n\n return headers\n }\n\n rawValues () {\n return this[kHeadersMap].values()\n }\n\n get entriesList () {\n const headers = []\n\n if (this[kHeadersMap].size !== 0) {\n for (const { 0: lowerName, 1: { name, value } } of this[kHeadersMap]) {\n if (lowerName === 'set-cookie') {\n for (const cookie of this.cookies) {\n headers.push([name, cookie])\n }\n } else {\n headers.push([name, value])\n }\n }\n }\n\n return headers\n }\n\n // https://fetch.spec.whatwg.org/#convert-header-names-to-a-sorted-lowercase-set\n toSortedArray () {\n const size = this[kHeadersMap].size\n const array = new Array(size)\n // In most cases, you will use the fast-path.\n // fast-path: Use binary insertion sort for small arrays.\n if (size <= 32) {\n if (size === 0) {\n // If empty, it is an empty array. To avoid the first index assignment.\n return array\n }\n // Improve performance by unrolling loop and avoiding double-loop.\n // Double-loop-less version of the binary insertion sort.\n const iterator = this[kHeadersMap][Symbol.iterator]()\n const firstValue = iterator.next().value\n // set [name, value] to first index.\n array[0] = [firstValue[0], firstValue[1].value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(firstValue[1].value !== null)\n for (\n let i = 1, j = 0, right = 0, left = 0, pivot = 0, x, value;\n i < size;\n ++i\n ) {\n // get next value\n value = iterator.next().value\n // set [name, value] to current index.\n x = array[i] = [value[0], value[1].value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(x[1] !== null)\n left = 0\n right = i\n // binary search\n while (left < right) {\n // middle index\n pivot = left + ((right - left) >> 1)\n // compare header name\n if (array[pivot][0] <= x[0]) {\n left = pivot + 1\n } else {\n right = pivot\n }\n }\n if (i !== pivot) {\n j = i\n while (j > left) {\n array[j] = array[--j]\n }\n array[left] = x\n }\n }\n /* c8 ignore next 4 */\n if (!iterator.next().done) {\n // This is for debugging and will never be called.\n throw new TypeError('Unreachable')\n }\n return array\n } else {\n // This case would be a rare occurrence.\n // slow-path: fallback\n let i = 0\n for (const { 0: name, 1: { value } } of this[kHeadersMap]) {\n array[i++] = [name, value]\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n // 3.2.2. Assert: value is non-null.\n assert(value !== null)\n }\n return array.sort(compareHeaderName)\n }\n }\n}\n\n// https://fetch.spec.whatwg.org/#headers-class\nclass Headers {\n #guard\n #headersList\n\n constructor (init = undefined) {\n webidl.util.markAsUncloneable(this)\n\n if (init === kConstruct) {\n return\n }\n\n this.#headersList = new HeadersList()\n\n // The new Headers(init) constructor steps are:\n\n // 1. Set this\u2019s guard to \"none\".\n this.#guard = 'none'\n\n // 2. If init is given, then fill this with init.\n if (init !== undefined) {\n init = webidl.converters.HeadersInit(init, 'Headers contructor', 'init')\n fill(this, init)\n }\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-append\n append (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, 'Headers.append')\n\n const prefix = 'Headers.append'\n name = webidl.converters.ByteString(name, prefix, 'name')\n value = webidl.converters.ByteString(value, prefix, 'value')\n\n return appendHeader(this, name, value)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-delete\n delete (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.delete')\n\n const prefix = 'Headers.delete'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.delete',\n value: name,\n type: 'header name'\n })\n }\n\n // 2. If this\u2019s guard is \"immutable\", then throw a TypeError.\n // 3. Otherwise, if this\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 4. Otherwise, if this\u2019s guard is \"request-no-cors\", name\n // is not a no-CORS-safelisted request-header name, and\n // name is not a privileged no-CORS request-header name,\n // return.\n // 5. Otherwise, if this\u2019s guard is \"response\" and name is\n // a forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this.#guard === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 6. If this\u2019s header list does not contain name, then\n // return.\n if (!this.#headersList.contains(name, false)) {\n return\n }\n\n // 7. Delete name from this\u2019s header list.\n // 8. If this\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this.\n this.#headersList.delete(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-get\n get (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.get')\n\n const prefix = 'Headers.get'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return the result of getting name from this\u2019s header\n // list.\n return this.#headersList.get(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-has\n has (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, 'Headers.has')\n\n const prefix = 'Headers.has'\n name = webidl.converters.ByteString(name, prefix, 'name')\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return true if this\u2019s header list contains name;\n // otherwise false.\n return this.#headersList.contains(name, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-set\n set (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, 'Headers.set')\n\n const prefix = 'Headers.set'\n name = webidl.converters.ByteString(name, prefix, 'name')\n value = webidl.converters.ByteString(value, prefix, 'value')\n\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix,\n value,\n type: 'header value'\n })\n }\n\n // 3. If this\u2019s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if this\u2019s guard is \"request\" and name is a\n // forbidden header name, return.\n // 5. Otherwise, if this\u2019s guard is \"request-no-cors\" and\n // name/value is not a no-CORS-safelisted request-header,\n // return.\n // 6. Otherwise, if this\u2019s guard is \"response\" and name is a\n // forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this.#guard === 'immutable') {\n throw new TypeError('immutable')\n }\n\n // 7. Set (name, value) in this\u2019s header list.\n // 8. If this\u2019s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this\n this.#headersList.set(name, value, false)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie\n getSetCookie () {\n webidl.brandCheck(this, Headers)\n\n // 1. If this\u2019s header list does not contain `Set-Cookie`, then return \u00AB \u00BB.\n // 2. Return the values of all headers in this\u2019s header list whose name is\n // a byte-case-insensitive match for `Set-Cookie`, in order.\n\n const list = this.#headersList.cookies\n\n if (list) {\n return [...list]\n }\n\n return []\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n get [kHeadersSortedMap] () {\n if (this.#headersList[kHeadersSortedMap]) {\n return this.#headersList[kHeadersSortedMap]\n }\n\n // 1. Let headers be an empty list of headers with the key being the name\n // and value the value.\n const headers = []\n\n // 2. Let names be the result of convert header names to a sorted-lowercase\n // set with all the names of the headers in list.\n const names = this.#headersList.toSortedArray()\n\n const cookies = this.#headersList.cookies\n\n // fast-path\n if (cookies === null || cookies.length === 1) {\n // Note: The non-null assertion of value has already been done by `HeadersList#toSortedArray`\n return (this.#headersList[kHeadersSortedMap] = names)\n }\n\n // 3. For each name of names:\n for (let i = 0; i < names.length; ++i) {\n const { 0: name, 1: value } = names[i]\n // 1. If name is `set-cookie`, then:\n if (name === 'set-cookie') {\n // 1. Let values be a list of all values of headers in list whose name\n // is a byte-case-insensitive match for name, in order.\n\n // 2. For each value of values:\n // 1. Append (name, value) to headers.\n for (let j = 0; j < cookies.length; ++j) {\n headers.push([name, cookies[j]])\n }\n } else {\n // 2. Otherwise:\n\n // 1. Let value be the result of getting name from list.\n\n // 2. Assert: value is non-null.\n // Note: This operation was done by `HeadersList#toSortedArray`.\n\n // 3. Append (name, value) to headers.\n headers.push([name, value])\n }\n }\n\n // 4. Return headers.\n return (this.#headersList[kHeadersSortedMap] = headers)\n }\n\n [util.inspect.custom] (depth, options) {\n options.depth ??= depth\n\n return `Headers ${util.formatWithOptions(options, this.#headersList.entries)}`\n }\n\n static getHeadersGuard (o) {\n return o.#guard\n }\n\n static setHeadersGuard (o, guard) {\n o.#guard = guard\n }\n\n static getHeadersList (o) {\n return o.#headersList\n }\n\n static setHeadersList (o, list) {\n o.#headersList = list\n }\n}\n\nconst { getHeadersGuard, setHeadersGuard, getHeadersList, setHeadersList } = Headers\nReflect.deleteProperty(Headers, 'getHeadersGuard')\nReflect.deleteProperty(Headers, 'setHeadersGuard')\nReflect.deleteProperty(Headers, 'getHeadersList')\nReflect.deleteProperty(Headers, 'setHeadersList')\n\niteratorMixin('Headers', Headers, kHeadersSortedMap, 0, 1)\n\nObject.defineProperties(Headers.prototype, {\n append: kEnumerableProperty,\n delete: kEnumerableProperty,\n get: kEnumerableProperty,\n has: kEnumerableProperty,\n set: kEnumerableProperty,\n getSetCookie: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Headers',\n configurable: true\n },\n [util.inspect.custom]: {\n enumerable: false\n }\n})\n\nwebidl.converters.HeadersInit = function (V, prefix, argument) {\n if (webidl.util.Type(V) === 'Object') {\n const iterator = Reflect.get(V, Symbol.iterator)\n\n // A work-around to ensure we send the properly-cased Headers when V is a Headers object.\n // Read https://github.com/nodejs/undici/pull/3159#issuecomment-2075537226 before touching, please.\n if (!util.types.isProxy(V) && iterator === Headers.prototype.entries) { // Headers object\n try {\n return getHeadersList(V).entriesList\n } catch {\n // fall-through\n }\n }\n\n if (typeof iterator === 'function') {\n return webidl.converters['sequence>'](V, prefix, argument, iterator.bind(V))\n }\n\n return webidl.converters['record'](V, prefix, argument)\n }\n\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n}\n\nmodule.exports = {\n fill,\n // for test.\n compareHeaderName,\n Headers,\n HeadersList,\n getHeadersGuard,\n setHeadersGuard,\n setHeadersList,\n getHeadersList\n}\n", "'use strict'\n\nconst { Headers, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = require('./headers')\nconst { extractBody, cloneBody, mixinBody, hasFinalizationRegistry, streamRegistry, bodyUnusable } = require('./body')\nconst util = require('../../core/util')\nconst nodeUtil = require('node:util')\nconst { kEnumerableProperty } = util\nconst {\n isValidReasonPhrase,\n isCancelled,\n isAborted,\n isBlobLike,\n serializeJavascriptValueToJSONString,\n isErrorLike,\n isomorphicEncode,\n environmentSettingsObject: relevantRealm\n} = require('./util')\nconst {\n redirectStatusSet,\n nullBodyStatus\n} = require('./constants')\nconst { kState, kHeaders } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { FormData } = require('./formdata')\nconst { URLSerializer } = require('./data-url')\nconst { kConstruct } = require('../../core/symbols')\nconst assert = require('node:assert')\nconst { types } = require('node:util')\n\nconst textEncoder = new TextEncoder('utf-8')\n\n// https://fetch.spec.whatwg.org/#response-class\nclass Response {\n // Creates network error Response.\n static error () {\n // The static error() method steps are to return the result of creating a\n // Response object, given a new network error, \"immutable\", and this\u2019s\n // relevant Realm.\n const responseObject = fromInnerResponse(makeNetworkError(), 'immutable')\n\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response-json\n static json (data, init = {}) {\n webidl.argumentLengthCheck(arguments, 1, 'Response.json')\n\n if (init !== null) {\n init = webidl.converters.ResponseInit(init)\n }\n\n // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data.\n const bytes = textEncoder.encode(\n serializeJavascriptValueToJSONString(data)\n )\n\n // 2. Let body be the result of extracting bytes.\n const body = extractBody(bytes)\n\n // 3. Let responseObject be the result of creating a Response object, given a new response,\n // \"response\", and this\u2019s relevant Realm.\n const responseObject = fromInnerResponse(makeResponse({}), 'response')\n\n // 4. Perform initialize a response given responseObject, init, and (body, \"application/json\").\n initializeResponse(responseObject, init, { body: body[0], type: 'application/json' })\n\n // 5. Return responseObject.\n return responseObject\n }\n\n // Creates a redirect Response that redirects to url with status status.\n static redirect (url, status = 302) {\n webidl.argumentLengthCheck(arguments, 1, 'Response.redirect')\n\n url = webidl.converters.USVString(url)\n status = webidl.converters['unsigned short'](status)\n\n // 1. Let parsedURL be the result of parsing url with current settings\n // object\u2019s API base URL.\n // 2. If parsedURL is failure, then throw a TypeError.\n // TODO: base-URL?\n let parsedURL\n try {\n parsedURL = new URL(url, relevantRealm.settingsObject.baseUrl)\n } catch (err) {\n throw new TypeError(`Failed to parse URL from ${url}`, { cause: err })\n }\n\n // 3. If status is not a redirect status, then throw a RangeError.\n if (!redirectStatusSet.has(status)) {\n throw new RangeError(`Invalid status code ${status}`)\n }\n\n // 4. Let responseObject be the result of creating a Response object,\n // given a new response, \"immutable\", and this\u2019s relevant Realm.\n const responseObject = fromInnerResponse(makeResponse({}), 'immutable')\n\n // 5. Set responseObject\u2019s response\u2019s status to status.\n responseObject[kState].status = status\n\n // 6. Let value be parsedURL, serialized and isomorphic encoded.\n const value = isomorphicEncode(URLSerializer(parsedURL))\n\n // 7. Append `Location`/value to responseObject\u2019s response\u2019s header list.\n responseObject[kState].headersList.append('location', value, true)\n\n // 8. Return responseObject.\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response\n constructor (body = null, init = {}) {\n webidl.util.markAsUncloneable(this)\n if (body === kConstruct) {\n return\n }\n\n if (body !== null) {\n body = webidl.converters.BodyInit(body)\n }\n\n init = webidl.converters.ResponseInit(init)\n\n // 1. Set this\u2019s response to a new response.\n this[kState] = makeResponse({})\n\n // 2. Set this\u2019s headers to a new Headers object with this\u2019s relevant\n // Realm, whose header list is this\u2019s response\u2019s header list and guard\n // is \"response\".\n this[kHeaders] = new Headers(kConstruct)\n setHeadersGuard(this[kHeaders], 'response')\n setHeadersList(this[kHeaders], this[kState].headersList)\n\n // 3. Let bodyWithType be null.\n let bodyWithType = null\n\n // 4. If body is non-null, then set bodyWithType to the result of extracting body.\n if (body != null) {\n const [extractedBody, type] = extractBody(body)\n bodyWithType = { body: extractedBody, type }\n }\n\n // 5. Perform initialize a response given this, init, and bodyWithType.\n initializeResponse(this, init, bodyWithType)\n }\n\n // Returns response\u2019s type, e.g., \"cors\".\n get type () {\n webidl.brandCheck(this, Response)\n\n // The type getter steps are to return this\u2019s response\u2019s type.\n return this[kState].type\n }\n\n // Returns response\u2019s URL, if it has one; otherwise the empty string.\n get url () {\n webidl.brandCheck(this, Response)\n\n const urlList = this[kState].urlList\n\n // The url getter steps are to return the empty string if this\u2019s\n // response\u2019s URL is null; otherwise this\u2019s response\u2019s URL,\n // serialized with exclude fragment set to true.\n const url = urlList[urlList.length - 1] ?? null\n\n if (url === null) {\n return ''\n }\n\n return URLSerializer(url, true)\n }\n\n // Returns whether response was obtained through a redirect.\n get redirected () {\n webidl.brandCheck(this, Response)\n\n // The redirected getter steps are to return true if this\u2019s response\u2019s URL\n // list has more than one item; otherwise false.\n return this[kState].urlList.length > 1\n }\n\n // Returns response\u2019s status.\n get status () {\n webidl.brandCheck(this, Response)\n\n // The status getter steps are to return this\u2019s response\u2019s status.\n return this[kState].status\n }\n\n // Returns whether response\u2019s status is an ok status.\n get ok () {\n webidl.brandCheck(this, Response)\n\n // The ok getter steps are to return true if this\u2019s response\u2019s status is an\n // ok status; otherwise false.\n return this[kState].status >= 200 && this[kState].status <= 299\n }\n\n // Returns response\u2019s status message.\n get statusText () {\n webidl.brandCheck(this, Response)\n\n // The statusText getter steps are to return this\u2019s response\u2019s status\n // message.\n return this[kState].statusText\n }\n\n // Returns response\u2019s headers as Headers.\n get headers () {\n webidl.brandCheck(this, Response)\n\n // The headers getter steps are to return this\u2019s headers.\n return this[kHeaders]\n }\n\n get body () {\n webidl.brandCheck(this, Response)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Response)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n // Returns a clone of response.\n clone () {\n webidl.brandCheck(this, Response)\n\n // 1. If this is unusable, then throw a TypeError.\n if (bodyUnusable(this)) {\n throw webidl.errors.exception({\n header: 'Response.clone',\n message: 'Body has already been consumed.'\n })\n }\n\n // 2. Let clonedResponse be the result of cloning this\u2019s response.\n const clonedResponse = cloneResponse(this[kState])\n\n // Note: To re-register because of a new stream.\n if (hasFinalizationRegistry && this[kState].body?.stream) {\n streamRegistry.register(this, new WeakRef(this[kState].body.stream))\n }\n\n // 3. Return the result of creating a Response object, given\n // clonedResponse, this\u2019s headers\u2019s guard, and this\u2019s relevant Realm.\n return fromInnerResponse(clonedResponse, getHeadersGuard(this[kHeaders]))\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n if (options.depth === null) {\n options.depth = 2\n }\n\n options.colors ??= true\n\n const properties = {\n status: this.status,\n statusText: this.statusText,\n headers: this.headers,\n body: this.body,\n bodyUsed: this.bodyUsed,\n ok: this.ok,\n redirected: this.redirected,\n type: this.type,\n url: this.url\n }\n\n return `Response ${nodeUtil.formatWithOptions(options, properties)}`\n }\n}\n\nmixinBody(Response)\n\nObject.defineProperties(Response.prototype, {\n type: kEnumerableProperty,\n url: kEnumerableProperty,\n status: kEnumerableProperty,\n ok: kEnumerableProperty,\n redirected: kEnumerableProperty,\n statusText: kEnumerableProperty,\n headers: kEnumerableProperty,\n clone: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Response',\n configurable: true\n }\n})\n\nObject.defineProperties(Response, {\n json: kEnumerableProperty,\n redirect: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\n// https://fetch.spec.whatwg.org/#concept-response-clone\nfunction cloneResponse (response) {\n // To clone a response response, run these steps:\n\n // 1. If response is a filtered response, then return a new identical\n // filtered response whose internal response is a clone of response\u2019s\n // internal response.\n if (response.internalResponse) {\n return filterResponse(\n cloneResponse(response.internalResponse),\n response.type\n )\n }\n\n // 2. Let newResponse be a copy of response, except for its body.\n const newResponse = makeResponse({ ...response, body: null })\n\n // 3. If response\u2019s body is non-null, then set newResponse\u2019s body to the\n // result of cloning response\u2019s body.\n if (response.body != null) {\n newResponse.body = cloneBody(newResponse, response.body)\n }\n\n // 4. Return newResponse.\n return newResponse\n}\n\nfunction makeResponse (init) {\n return {\n aborted: false,\n rangeRequested: false,\n timingAllowPassed: false,\n requestIncludesCredentials: false,\n type: 'default',\n status: 200,\n timingInfo: null,\n cacheState: '',\n statusText: '',\n ...init,\n headersList: init?.headersList\n ? new HeadersList(init?.headersList)\n : new HeadersList(),\n urlList: init?.urlList ? [...init.urlList] : []\n }\n}\n\nfunction makeNetworkError (reason) {\n const isError = isErrorLike(reason)\n return makeResponse({\n type: 'error',\n status: 0,\n error: isError\n ? reason\n : new Error(reason ? String(reason) : reason),\n aborted: reason && reason.name === 'AbortError'\n })\n}\n\n// @see https://fetch.spec.whatwg.org/#concept-network-error\nfunction isNetworkError (response) {\n return (\n // A network error is a response whose type is \"error\",\n response.type === 'error' &&\n // status is 0\n response.status === 0\n )\n}\n\nfunction makeFilteredResponse (response, state) {\n state = {\n internalResponse: response,\n ...state\n }\n\n return new Proxy(response, {\n get (target, p) {\n return p in state ? state[p] : target[p]\n },\n set (target, p, value) {\n assert(!(p in state))\n target[p] = value\n return true\n }\n })\n}\n\n// https://fetch.spec.whatwg.org/#concept-filtered-response\nfunction filterResponse (response, type) {\n // Set response to the following filtered response with response as its\n // internal response, depending on request\u2019s response tainting:\n if (type === 'basic') {\n // A basic filtered response is a filtered response whose type is \"basic\"\n // and header list excludes any headers in internal response\u2019s header list\n // whose name is a forbidden response-header name.\n\n // Note: undici does not implement forbidden response-header names\n return makeFilteredResponse(response, {\n type: 'basic',\n headersList: response.headersList\n })\n } else if (type === 'cors') {\n // A CORS filtered response is a filtered response whose type is \"cors\"\n // and header list excludes any headers in internal response\u2019s header\n // list whose name is not a CORS-safelisted response-header name, given\n // internal response\u2019s CORS-exposed header-name list.\n\n // Note: undici does not implement CORS-safelisted response-header names\n return makeFilteredResponse(response, {\n type: 'cors',\n headersList: response.headersList\n })\n } else if (type === 'opaque') {\n // An opaque filtered response is a filtered response whose type is\n // \"opaque\", URL list is the empty list, status is 0, status message\n // is the empty byte sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaque',\n urlList: Object.freeze([]),\n status: 0,\n statusText: '',\n body: null\n })\n } else if (type === 'opaqueredirect') {\n // An opaque-redirect filtered response is a filtered response whose type\n // is \"opaqueredirect\", status is 0, status message is the empty byte\n // sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaqueredirect',\n status: 0,\n statusText: '',\n headersList: [],\n body: null\n })\n } else {\n assert(false)\n }\n}\n\n// https://fetch.spec.whatwg.org/#appropriate-network-error\nfunction makeAppropriateNetworkError (fetchParams, err = null) {\n // 1. Assert: fetchParams is canceled.\n assert(isCancelled(fetchParams))\n\n // 2. Return an aborted network error if fetchParams is aborted;\n // otherwise return a network error.\n return isAborted(fetchParams)\n ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))\n : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))\n}\n\n// https://whatpr.org/fetch/1392.html#initialize-a-response\nfunction initializeResponse (response, init, body) {\n // 1. If init[\"status\"] is not in the range 200 to 599, inclusive, then\n // throw a RangeError.\n if (init.status !== null && (init.status < 200 || init.status > 599)) {\n throw new RangeError('init[\"status\"] must be in the range of 200 to 599, inclusive.')\n }\n\n // 2. If init[\"statusText\"] does not match the reason-phrase token production,\n // then throw a TypeError.\n if ('statusText' in init && init.statusText != null) {\n // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2:\n // reason-phrase = *( HTAB / SP / VCHAR / obs-text )\n if (!isValidReasonPhrase(String(init.statusText))) {\n throw new TypeError('Invalid statusText')\n }\n }\n\n // 3. Set response\u2019s response\u2019s status to init[\"status\"].\n if ('status' in init && init.status != null) {\n response[kState].status = init.status\n }\n\n // 4. Set response\u2019s response\u2019s status message to init[\"statusText\"].\n if ('statusText' in init && init.statusText != null) {\n response[kState].statusText = init.statusText\n }\n\n // 5. If init[\"headers\"] exists, then fill response\u2019s headers with init[\"headers\"].\n if ('headers' in init && init.headers != null) {\n fill(response[kHeaders], init.headers)\n }\n\n // 6. If body was given, then:\n if (body) {\n // 1. If response's status is a null body status, then throw a TypeError.\n if (nullBodyStatus.includes(response.status)) {\n throw webidl.errors.exception({\n header: 'Response constructor',\n message: `Invalid response status code ${response.status}`\n })\n }\n\n // 2. Set response's body to body's body.\n response[kState].body = body.body\n\n // 3. If body's type is non-null and response's header list does not contain\n // `Content-Type`, then append (`Content-Type`, body's type) to response's header list.\n if (body.type != null && !response[kState].headersList.contains('content-type', true)) {\n response[kState].headersList.append('content-type', body.type, true)\n }\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#response-create\n * @param {any} innerResponse\n * @param {'request' | 'immutable' | 'request-no-cors' | 'response' | 'none'} guard\n * @returns {Response}\n */\nfunction fromInnerResponse (innerResponse, guard) {\n const response = new Response(kConstruct)\n response[kState] = innerResponse\n response[kHeaders] = new Headers(kConstruct)\n setHeadersList(response[kHeaders], innerResponse.headersList)\n setHeadersGuard(response[kHeaders], guard)\n\n if (hasFinalizationRegistry && innerResponse.body?.stream) {\n // If the target (response) is reclaimed, the cleanup callback may be called at some point with\n // the held value provided for it (innerResponse.body.stream). The held value can be any value:\n // a primitive or an object, even undefined. If the held value is an object, the registry keeps\n // a strong reference to it (so it can pass it to the cleanup callback later). Reworded from\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n streamRegistry.register(response, new WeakRef(innerResponse.body.stream))\n }\n\n return response\n}\n\nwebidl.converters.ReadableStream = webidl.interfaceConverter(\n ReadableStream\n)\n\nwebidl.converters.FormData = webidl.interfaceConverter(\n FormData\n)\n\nwebidl.converters.URLSearchParams = webidl.interfaceConverter(\n URLSearchParams\n)\n\n// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit\nwebidl.converters.XMLHttpRequestBodyInit = function (V, prefix, name) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V, prefix, name)\n }\n\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, prefix, name, { strict: false })\n }\n\n if (ArrayBuffer.isView(V) || types.isArrayBuffer(V)) {\n return webidl.converters.BufferSource(V, prefix, name)\n }\n\n if (util.isFormDataLike(V)) {\n return webidl.converters.FormData(V, prefix, name, { strict: false })\n }\n\n if (V instanceof URLSearchParams) {\n return webidl.converters.URLSearchParams(V, prefix, name)\n }\n\n return webidl.converters.DOMString(V, prefix, name)\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit\nwebidl.converters.BodyInit = function (V, prefix, argument) {\n if (V instanceof ReadableStream) {\n return webidl.converters.ReadableStream(V, prefix, argument)\n }\n\n // Note: the spec doesn't include async iterables,\n // this is an undici extension.\n if (V?.[Symbol.asyncIterator]) {\n return V\n }\n\n return webidl.converters.XMLHttpRequestBodyInit(V, prefix, argument)\n}\n\nwebidl.converters.ResponseInit = webidl.dictionaryConverter([\n {\n key: 'status',\n converter: webidl.converters['unsigned short'],\n defaultValue: () => 200\n },\n {\n key: 'statusText',\n converter: webidl.converters.ByteString,\n defaultValue: () => ''\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n }\n])\n\nmodule.exports = {\n isNetworkError,\n makeNetworkError,\n makeResponse,\n makeAppropriateNetworkError,\n filterResponse,\n Response,\n cloneResponse,\n fromInnerResponse\n}\n", "'use strict'\n\nconst { kConnected, kSize } = require('../../core/symbols')\n\nclass CompatWeakRef {\n constructor (value) {\n this.value = value\n }\n\n deref () {\n return this.value[kConnected] === 0 && this.value[kSize] === 0\n ? undefined\n : this.value\n }\n}\n\nclass CompatFinalizer {\n constructor (finalizer) {\n this.finalizer = finalizer\n }\n\n register (dispatcher, key) {\n if (dispatcher.on) {\n dispatcher.on('disconnect', () => {\n if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {\n this.finalizer(key)\n }\n })\n }\n }\n\n unregister (key) {}\n}\n\nmodule.exports = function () {\n // FIXME: remove workaround when the Node bug is backported to v18\n // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\n if (process.env.NODE_V8_COVERAGE && process.version.startsWith('v18')) {\n process._rawDebug('Using compatibility WeakRef and FinalizationRegistry')\n return {\n WeakRef: CompatWeakRef,\n FinalizationRegistry: CompatFinalizer\n }\n }\n return { WeakRef, FinalizationRegistry }\n}\n", "/* globals AbortController */\n\n'use strict'\n\nconst { extractBody, mixinBody, cloneBody, bodyUnusable } = require('./body')\nconst { Headers, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = require('./headers')\nconst { FinalizationRegistry } = require('./dispatcher-weakref')()\nconst util = require('../../core/util')\nconst nodeUtil = require('node:util')\nconst {\n isValidHTTPToken,\n sameOrigin,\n environmentSettingsObject\n} = require('./util')\nconst {\n forbiddenMethodsSet,\n corsSafeListedMethodsSet,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n requestDuplex\n} = require('./constants')\nconst { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util\nconst { kHeaders, kSignal, kState, kDispatcher } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { URLSerializer } = require('./data-url')\nconst { kConstruct } = require('../../core/symbols')\nconst assert = require('node:assert')\nconst { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = require('node:events')\n\nconst kAbortController = Symbol('abortController')\n\nconst requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {\n signal.removeEventListener('abort', abort)\n})\n\nconst dependentControllerMap = new WeakMap()\n\nfunction buildAbort (acRef) {\n return abort\n\n function abort () {\n const ac = acRef.deref()\n if (ac !== undefined) {\n // Currently, there is a problem with FinalizationRegistry.\n // https://github.com/nodejs/node/issues/49344\n // https://github.com/nodejs/node/issues/47748\n // In the case of abort, the first step is to unregister from it.\n // If the controller can refer to it, it is still registered.\n // It will be removed in the future.\n requestFinalizer.unregister(abort)\n\n // Unsubscribe a listener.\n // FinalizationRegistry will no longer be called, so this must be done.\n this.removeEventListener('abort', abort)\n\n ac.abort(this.reason)\n\n const controllerList = dependentControllerMap.get(ac.signal)\n\n if (controllerList !== undefined) {\n if (controllerList.size !== 0) {\n for (const ref of controllerList) {\n const ctrl = ref.deref()\n if (ctrl !== undefined) {\n ctrl.abort(this.reason)\n }\n }\n controllerList.clear()\n }\n dependentControllerMap.delete(ac.signal)\n }\n }\n }\n}\n\nlet patchMethodWarning = false\n\n// https://fetch.spec.whatwg.org/#request-class\nclass Request {\n // https://fetch.spec.whatwg.org/#dom-request\n constructor (input, init = {}) {\n webidl.util.markAsUncloneable(this)\n if (input === kConstruct) {\n return\n }\n\n const prefix = 'Request constructor'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n input = webidl.converters.RequestInfo(input, prefix, 'input')\n init = webidl.converters.RequestInit(init, prefix, 'init')\n\n // 1. Let request be null.\n let request = null\n\n // 2. Let fallbackMode be null.\n let fallbackMode = null\n\n // 3. Let baseURL be this\u2019s relevant settings object\u2019s API base URL.\n const baseUrl = environmentSettingsObject.settingsObject.baseUrl\n\n // 4. Let signal be null.\n let signal = null\n\n // 5. If input is a string, then:\n if (typeof input === 'string') {\n this[kDispatcher] = init.dispatcher\n\n // 1. Let parsedURL be the result of parsing input with baseURL.\n // 2. If parsedURL is failure, then throw a TypeError.\n let parsedURL\n try {\n parsedURL = new URL(input, baseUrl)\n } catch (err) {\n throw new TypeError('Failed to parse URL from ' + input, { cause: err })\n }\n\n // 3. If parsedURL includes credentials, then throw a TypeError.\n if (parsedURL.username || parsedURL.password) {\n throw new TypeError(\n 'Request cannot be constructed from a URL that includes credentials: ' +\n input\n )\n }\n\n // 4. Set request to a new request whose URL is parsedURL.\n request = makeRequest({ urlList: [parsedURL] })\n\n // 5. Set fallbackMode to \"cors\".\n fallbackMode = 'cors'\n } else {\n this[kDispatcher] = init.dispatcher || input[kDispatcher]\n\n // 6. Otherwise:\n\n // 7. Assert: input is a Request object.\n assert(input instanceof Request)\n\n // 8. Set request to input\u2019s request.\n request = input[kState]\n\n // 9. Set signal to input\u2019s signal.\n signal = input[kSignal]\n }\n\n // 7. Let origin be this\u2019s relevant settings object\u2019s origin.\n const origin = environmentSettingsObject.settingsObject.origin\n\n // 8. Let window be \"client\".\n let window = 'client'\n\n // 9. If request\u2019s window is an environment settings object and its origin\n // is same origin with origin, then set window to request\u2019s window.\n if (\n request.window?.constructor?.name === 'EnvironmentSettingsObject' &&\n sameOrigin(request.window, origin)\n ) {\n window = request.window\n }\n\n // 10. If init[\"window\"] exists and is non-null, then throw a TypeError.\n if (init.window != null) {\n throw new TypeError(`'window' option '${window}' must be null`)\n }\n\n // 11. If init[\"window\"] exists, then set window to \"no-window\".\n if ('window' in init) {\n window = 'no-window'\n }\n\n // 12. Set request to a new request with the following properties:\n request = makeRequest({\n // URL request\u2019s URL.\n // undici implementation note: this is set as the first item in request's urlList in makeRequest\n // method request\u2019s method.\n method: request.method,\n // header list A copy of request\u2019s header list.\n // undici implementation note: headersList is cloned in makeRequest\n headersList: request.headersList,\n // unsafe-request flag Set.\n unsafeRequest: request.unsafeRequest,\n // client This\u2019s relevant settings object.\n client: environmentSettingsObject.settingsObject,\n // window window.\n window,\n // priority request\u2019s priority.\n priority: request.priority,\n // origin request\u2019s origin. The propagation of the origin is only significant for navigation requests\n // being handled by a service worker. In this scenario a request can have an origin that is different\n // from the current client.\n origin: request.origin,\n // referrer request\u2019s referrer.\n referrer: request.referrer,\n // referrer policy request\u2019s referrer policy.\n referrerPolicy: request.referrerPolicy,\n // mode request\u2019s mode.\n mode: request.mode,\n // credentials mode request\u2019s credentials mode.\n credentials: request.credentials,\n // cache mode request\u2019s cache mode.\n cache: request.cache,\n // redirect mode request\u2019s redirect mode.\n redirect: request.redirect,\n // integrity metadata request\u2019s integrity metadata.\n integrity: request.integrity,\n // keepalive request\u2019s keepalive.\n keepalive: request.keepalive,\n // reload-navigation flag request\u2019s reload-navigation flag.\n reloadNavigation: request.reloadNavigation,\n // history-navigation flag request\u2019s history-navigation flag.\n historyNavigation: request.historyNavigation,\n // URL list A clone of request\u2019s URL list.\n urlList: [...request.urlList]\n })\n\n const initHasKey = Object.keys(init).length !== 0\n\n // 13. If init is not empty, then:\n if (initHasKey) {\n // 1. If request\u2019s mode is \"navigate\", then set it to \"same-origin\".\n if (request.mode === 'navigate') {\n request.mode = 'same-origin'\n }\n\n // 2. Unset request\u2019s reload-navigation flag.\n request.reloadNavigation = false\n\n // 3. Unset request\u2019s history-navigation flag.\n request.historyNavigation = false\n\n // 4. Set request\u2019s origin to \"client\".\n request.origin = 'client'\n\n // 5. Set request\u2019s referrer to \"client\"\n request.referrer = 'client'\n\n // 6. Set request\u2019s referrer policy to the empty string.\n request.referrerPolicy = ''\n\n // 7. Set request\u2019s URL to request\u2019s current URL.\n request.url = request.urlList[request.urlList.length - 1]\n\n // 8. Set request\u2019s URL list to \u00AB request\u2019s URL \u00BB.\n request.urlList = [request.url]\n }\n\n // 14. If init[\"referrer\"] exists, then:\n if (init.referrer !== undefined) {\n // 1. Let referrer be init[\"referrer\"].\n const referrer = init.referrer\n\n // 2. If referrer is the empty string, then set request\u2019s referrer to \"no-referrer\".\n if (referrer === '') {\n request.referrer = 'no-referrer'\n } else {\n // 1. Let parsedReferrer be the result of parsing referrer with\n // baseURL.\n // 2. If parsedReferrer is failure, then throw a TypeError.\n let parsedReferrer\n try {\n parsedReferrer = new URL(referrer, baseUrl)\n } catch (err) {\n throw new TypeError(`Referrer \"${referrer}\" is not a valid URL.`, { cause: err })\n }\n\n // 3. If one of the following is true\n // - parsedReferrer\u2019s scheme is \"about\" and path is the string \"client\"\n // - parsedReferrer\u2019s origin is not same origin with origin\n // then set request\u2019s referrer to \"client\".\n if (\n (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') ||\n (origin && !sameOrigin(parsedReferrer, environmentSettingsObject.settingsObject.baseUrl))\n ) {\n request.referrer = 'client'\n } else {\n // 4. Otherwise, set request\u2019s referrer to parsedReferrer.\n request.referrer = parsedReferrer\n }\n }\n }\n\n // 15. If init[\"referrerPolicy\"] exists, then set request\u2019s referrer policy\n // to it.\n if (init.referrerPolicy !== undefined) {\n request.referrerPolicy = init.referrerPolicy\n }\n\n // 16. Let mode be init[\"mode\"] if it exists, and fallbackMode otherwise.\n let mode\n if (init.mode !== undefined) {\n mode = init.mode\n } else {\n mode = fallbackMode\n }\n\n // 17. If mode is \"navigate\", then throw a TypeError.\n if (mode === 'navigate') {\n throw webidl.errors.exception({\n header: 'Request constructor',\n message: 'invalid request mode navigate.'\n })\n }\n\n // 18. If mode is non-null, set request\u2019s mode to mode.\n if (mode != null) {\n request.mode = mode\n }\n\n // 19. If init[\"credentials\"] exists, then set request\u2019s credentials mode\n // to it.\n if (init.credentials !== undefined) {\n request.credentials = init.credentials\n }\n\n // 18. If init[\"cache\"] exists, then set request\u2019s cache mode to it.\n if (init.cache !== undefined) {\n request.cache = init.cache\n }\n\n // 21. If request\u2019s cache mode is \"only-if-cached\" and request\u2019s mode is\n // not \"same-origin\", then throw a TypeError.\n if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {\n throw new TypeError(\n \"'only-if-cached' can be set only with 'same-origin' mode\"\n )\n }\n\n // 22. If init[\"redirect\"] exists, then set request\u2019s redirect mode to it.\n if (init.redirect !== undefined) {\n request.redirect = init.redirect\n }\n\n // 23. If init[\"integrity\"] exists, then set request\u2019s integrity metadata to it.\n if (init.integrity != null) {\n request.integrity = String(init.integrity)\n }\n\n // 24. If init[\"keepalive\"] exists, then set request\u2019s keepalive to it.\n if (init.keepalive !== undefined) {\n request.keepalive = Boolean(init.keepalive)\n }\n\n // 25. If init[\"method\"] exists, then:\n if (init.method !== undefined) {\n // 1. Let method be init[\"method\"].\n let method = init.method\n\n const mayBeNormalized = normalizedMethodRecords[method]\n\n if (mayBeNormalized !== undefined) {\n // Note: Bypass validation DELETE, GET, HEAD, OPTIONS, POST, PUT, PATCH and these lowercase ones\n request.method = mayBeNormalized\n } else {\n // 2. If method is not a method or method is a forbidden method, then\n // throw a TypeError.\n if (!isValidHTTPToken(method)) {\n throw new TypeError(`'${method}' is not a valid HTTP method.`)\n }\n\n const upperCase = method.toUpperCase()\n\n if (forbiddenMethodsSet.has(upperCase)) {\n throw new TypeError(`'${method}' HTTP method is unsupported.`)\n }\n\n // 3. Normalize method.\n // https://fetch.spec.whatwg.org/#concept-method-normalize\n // Note: must be in uppercase\n method = normalizedMethodRecordsBase[upperCase] ?? method\n\n // 4. Set request\u2019s method to method.\n request.method = method\n }\n\n if (!patchMethodWarning && request.method === 'patch') {\n process.emitWarning('Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.', {\n code: 'UNDICI-FETCH-patch'\n })\n\n patchMethodWarning = true\n }\n }\n\n // 26. If init[\"signal\"] exists, then set signal to it.\n if (init.signal !== undefined) {\n signal = init.signal\n }\n\n // 27. Set this\u2019s request to request.\n this[kState] = request\n\n // 28. Set this\u2019s signal to a new AbortSignal object with this\u2019s relevant\n // Realm.\n // TODO: could this be simplified with AbortSignal.any\n // (https://dom.spec.whatwg.org/#dom-abortsignal-any)\n const ac = new AbortController()\n this[kSignal] = ac.signal\n\n // 29. If signal is not null, then make this\u2019s signal follow signal.\n if (signal != null) {\n if (\n !signal ||\n typeof signal.aborted !== 'boolean' ||\n typeof signal.addEventListener !== 'function'\n ) {\n throw new TypeError(\n \"Failed to construct 'Request': member signal is not of type AbortSignal.\"\n )\n }\n\n if (signal.aborted) {\n ac.abort(signal.reason)\n } else {\n // Keep a strong ref to ac while request object\n // is alive. This is needed to prevent AbortController\n // from being prematurely garbage collected.\n // See, https://github.com/nodejs/undici/issues/1926.\n this[kAbortController] = ac\n\n const acRef = new WeakRef(ac)\n const abort = buildAbort(acRef)\n\n // Third-party AbortControllers may not work with these.\n // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619.\n try {\n // If the max amount of listeners is equal to the default, increase it\n // This is only available in node >= v19.9.0\n if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {\n setMaxListeners(1500, signal)\n } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {\n setMaxListeners(1500, signal)\n }\n } catch {}\n\n util.addAbortListener(signal, abort)\n // The third argument must be a registry key to be unregistered.\n // Without it, you cannot unregister.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry\n // abort is used as the unregister key. (because it is unique)\n requestFinalizer.register(ac, { signal, abort }, abort)\n }\n }\n\n // 30. Set this\u2019s headers to a new Headers object with this\u2019s relevant\n // Realm, whose header list is request\u2019s header list and guard is\n // \"request\".\n this[kHeaders] = new Headers(kConstruct)\n setHeadersList(this[kHeaders], request.headersList)\n setHeadersGuard(this[kHeaders], 'request')\n\n // 31. If this\u2019s request\u2019s mode is \"no-cors\", then:\n if (mode === 'no-cors') {\n // 1. If this\u2019s request\u2019s method is not a CORS-safelisted method,\n // then throw a TypeError.\n if (!corsSafeListedMethodsSet.has(request.method)) {\n throw new TypeError(\n `'${request.method} is unsupported in no-cors mode.`\n )\n }\n\n // 2. Set this\u2019s headers\u2019s guard to \"request-no-cors\".\n setHeadersGuard(this[kHeaders], 'request-no-cors')\n }\n\n // 32. If init is not empty, then:\n if (initHasKey) {\n /** @type {HeadersList} */\n const headersList = getHeadersList(this[kHeaders])\n // 1. Let headers be a copy of this\u2019s headers and its associated header\n // list.\n // 2. If init[\"headers\"] exists, then set headers to init[\"headers\"].\n const headers = init.headers !== undefined ? init.headers : new HeadersList(headersList)\n\n // 3. Empty this\u2019s headers\u2019s header list.\n headersList.clear()\n\n // 4. If headers is a Headers object, then for each header in its header\n // list, append header\u2019s name/header\u2019s value to this\u2019s headers.\n if (headers instanceof HeadersList) {\n for (const { name, value } of headers.rawValues()) {\n headersList.append(name, value, false)\n }\n // Note: Copy the `set-cookie` meta-data.\n headersList.cookies = headers.cookies\n } else {\n // 5. Otherwise, fill this\u2019s headers with headers.\n fillHeaders(this[kHeaders], headers)\n }\n }\n\n // 33. Let inputBody be input\u2019s request\u2019s body if input is a Request\n // object; otherwise null.\n const inputBody = input instanceof Request ? input[kState].body : null\n\n // 34. If either init[\"body\"] exists and is non-null or inputBody is\n // non-null, and request\u2019s method is `GET` or `HEAD`, then throw a\n // TypeError.\n if (\n (init.body != null || inputBody != null) &&\n (request.method === 'GET' || request.method === 'HEAD')\n ) {\n throw new TypeError('Request with GET/HEAD method cannot have body.')\n }\n\n // 35. Let initBody be null.\n let initBody = null\n\n // 36. If init[\"body\"] exists and is non-null, then:\n if (init.body != null) {\n // 1. Let Content-Type be null.\n // 2. Set initBody and Content-Type to the result of extracting\n // init[\"body\"], with keepalive set to request\u2019s keepalive.\n const [extractedBody, contentType] = extractBody(\n init.body,\n request.keepalive\n )\n initBody = extractedBody\n\n // 3, If Content-Type is non-null and this\u2019s headers\u2019s header list does\n // not contain `Content-Type`, then append `Content-Type`/Content-Type to\n // this\u2019s headers.\n if (contentType && !getHeadersList(this[kHeaders]).contains('content-type', true)) {\n this[kHeaders].append('content-type', contentType)\n }\n }\n\n // 37. Let inputOrInitBody be initBody if it is non-null; otherwise\n // inputBody.\n const inputOrInitBody = initBody ?? inputBody\n\n // 38. If inputOrInitBody is non-null and inputOrInitBody\u2019s source is\n // null, then:\n if (inputOrInitBody != null && inputOrInitBody.source == null) {\n // 1. If initBody is non-null and init[\"duplex\"] does not exist,\n // then throw a TypeError.\n if (initBody != null && init.duplex == null) {\n throw new TypeError('RequestInit: duplex option is required when sending a body.')\n }\n\n // 2. If this\u2019s request\u2019s mode is neither \"same-origin\" nor \"cors\",\n // then throw a TypeError.\n if (request.mode !== 'same-origin' && request.mode !== 'cors') {\n throw new TypeError(\n 'If request is made from ReadableStream, mode should be \"same-origin\" or \"cors\"'\n )\n }\n\n // 3. Set this\u2019s request\u2019s use-CORS-preflight flag.\n request.useCORSPreflightFlag = true\n }\n\n // 39. Let finalBody be inputOrInitBody.\n let finalBody = inputOrInitBody\n\n // 40. If initBody is null and inputBody is non-null, then:\n if (initBody == null && inputBody != null) {\n // 1. If input is unusable, then throw a TypeError.\n if (bodyUnusable(input)) {\n throw new TypeError(\n 'Cannot construct a Request with a Request object that has already been used.'\n )\n }\n\n // 2. Set finalBody to the result of creating a proxy for inputBody.\n // https://streams.spec.whatwg.org/#readablestream-create-a-proxy\n const identityTransform = new TransformStream()\n inputBody.stream.pipeThrough(identityTransform)\n finalBody = {\n source: inputBody.source,\n length: inputBody.length,\n stream: identityTransform.readable\n }\n }\n\n // 41. Set this\u2019s request\u2019s body to finalBody.\n this[kState].body = finalBody\n }\n\n // Returns request\u2019s HTTP method, which is \"GET\" by default.\n get method () {\n webidl.brandCheck(this, Request)\n\n // The method getter steps are to return this\u2019s request\u2019s method.\n return this[kState].method\n }\n\n // Returns the URL of request as a string.\n get url () {\n webidl.brandCheck(this, Request)\n\n // The url getter steps are to return this\u2019s request\u2019s URL, serialized.\n return URLSerializer(this[kState].url)\n }\n\n // Returns a Headers object consisting of the headers associated with request.\n // Note that headers added in the network layer by the user agent will not\n // be accounted for in this object, e.g., the \"Host\" header.\n get headers () {\n webidl.brandCheck(this, Request)\n\n // The headers getter steps are to return this\u2019s headers.\n return this[kHeaders]\n }\n\n // Returns the kind of resource requested by request, e.g., \"document\"\n // or \"script\".\n get destination () {\n webidl.brandCheck(this, Request)\n\n // The destination getter are to return this\u2019s request\u2019s destination.\n return this[kState].destination\n }\n\n // Returns the referrer of request. Its value can be a same-origin URL if\n // explicitly set in init, the empty string to indicate no referrer, and\n // \"about:client\" when defaulting to the global\u2019s default. This is used\n // during fetching to determine the value of the `Referer` header of the\n // request being made.\n get referrer () {\n webidl.brandCheck(this, Request)\n\n // 1. If this\u2019s request\u2019s referrer is \"no-referrer\", then return the\n // empty string.\n if (this[kState].referrer === 'no-referrer') {\n return ''\n }\n\n // 2. If this\u2019s request\u2019s referrer is \"client\", then return\n // \"about:client\".\n if (this[kState].referrer === 'client') {\n return 'about:client'\n }\n\n // Return this\u2019s request\u2019s referrer, serialized.\n return this[kState].referrer.toString()\n }\n\n // Returns the referrer policy associated with request.\n // This is used during fetching to compute the value of the request\u2019s\n // referrer.\n get referrerPolicy () {\n webidl.brandCheck(this, Request)\n\n // The referrerPolicy getter steps are to return this\u2019s request\u2019s referrer policy.\n return this[kState].referrerPolicy\n }\n\n // Returns the mode associated with request, which is a string indicating\n // whether the request will use CORS, or will be restricted to same-origin\n // URLs.\n get mode () {\n webidl.brandCheck(this, Request)\n\n // The mode getter steps are to return this\u2019s request\u2019s mode.\n return this[kState].mode\n }\n\n // Returns the credentials mode associated with request,\n // which is a string indicating whether credentials will be sent with the\n // request always, never, or only when sent to a same-origin URL.\n get credentials () {\n // The credentials getter steps are to return this\u2019s request\u2019s credentials mode.\n return this[kState].credentials\n }\n\n // Returns the cache mode associated with request,\n // which is a string indicating how the request will\n // interact with the browser\u2019s cache when fetching.\n get cache () {\n webidl.brandCheck(this, Request)\n\n // The cache getter steps are to return this\u2019s request\u2019s cache mode.\n return this[kState].cache\n }\n\n // Returns the redirect mode associated with request,\n // which is a string indicating how redirects for the\n // request will be handled during fetching. A request\n // will follow redirects by default.\n get redirect () {\n webidl.brandCheck(this, Request)\n\n // The redirect getter steps are to return this\u2019s request\u2019s redirect mode.\n return this[kState].redirect\n }\n\n // Returns request\u2019s subresource integrity metadata, which is a\n // cryptographic hash of the resource being fetched. Its value\n // consists of multiple hashes separated by whitespace. [SRI]\n get integrity () {\n webidl.brandCheck(this, Request)\n\n // The integrity getter steps are to return this\u2019s request\u2019s integrity\n // metadata.\n return this[kState].integrity\n }\n\n // Returns a boolean indicating whether or not request can outlive the\n // global in which it was created.\n get keepalive () {\n webidl.brandCheck(this, Request)\n\n // The keepalive getter steps are to return this\u2019s request\u2019s keepalive.\n return this[kState].keepalive\n }\n\n // Returns a boolean indicating whether or not request is for a reload\n // navigation.\n get isReloadNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isReloadNavigation getter steps are to return true if this\u2019s\n // request\u2019s reload-navigation flag is set; otherwise false.\n return this[kState].reloadNavigation\n }\n\n // Returns a boolean indicating whether or not request is for a history\n // navigation (a.k.a. back-forward navigation).\n get isHistoryNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isHistoryNavigation getter steps are to return true if this\u2019s request\u2019s\n // history-navigation flag is set; otherwise false.\n return this[kState].historyNavigation\n }\n\n // Returns the signal associated with request, which is an AbortSignal\n // object indicating whether or not request has been aborted, and its\n // abort event handler.\n get signal () {\n webidl.brandCheck(this, Request)\n\n // The signal getter steps are to return this\u2019s signal.\n return this[kSignal]\n }\n\n get body () {\n webidl.brandCheck(this, Request)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Request)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n get duplex () {\n webidl.brandCheck(this, Request)\n\n return 'half'\n }\n\n // Returns a clone of request.\n clone () {\n webidl.brandCheck(this, Request)\n\n // 1. If this is unusable, then throw a TypeError.\n if (bodyUnusable(this)) {\n throw new TypeError('unusable')\n }\n\n // 2. Let clonedRequest be the result of cloning this\u2019s request.\n const clonedRequest = cloneRequest(this[kState])\n\n // 3. Let clonedRequestObject be the result of creating a Request object,\n // given clonedRequest, this\u2019s headers\u2019s guard, and this\u2019s relevant Realm.\n // 4. Make clonedRequestObject\u2019s signal follow this\u2019s signal.\n const ac = new AbortController()\n if (this.signal.aborted) {\n ac.abort(this.signal.reason)\n } else {\n let list = dependentControllerMap.get(this.signal)\n if (list === undefined) {\n list = new Set()\n dependentControllerMap.set(this.signal, list)\n }\n const acRef = new WeakRef(ac)\n list.add(acRef)\n util.addAbortListener(\n ac.signal,\n buildAbort(acRef)\n )\n }\n\n // 4. Return clonedRequestObject.\n return fromInnerRequest(clonedRequest, ac.signal, getHeadersGuard(this[kHeaders]))\n }\n\n [nodeUtil.inspect.custom] (depth, options) {\n if (options.depth === null) {\n options.depth = 2\n }\n\n options.colors ??= true\n\n const properties = {\n method: this.method,\n url: this.url,\n headers: this.headers,\n destination: this.destination,\n referrer: this.referrer,\n referrerPolicy: this.referrerPolicy,\n mode: this.mode,\n credentials: this.credentials,\n cache: this.cache,\n redirect: this.redirect,\n integrity: this.integrity,\n keepalive: this.keepalive,\n isReloadNavigation: this.isReloadNavigation,\n isHistoryNavigation: this.isHistoryNavigation,\n signal: this.signal\n }\n\n return `Request ${nodeUtil.formatWithOptions(options, properties)}`\n }\n}\n\nmixinBody(Request)\n\n// https://fetch.spec.whatwg.org/#requests\nfunction makeRequest (init) {\n return {\n method: init.method ?? 'GET',\n localURLsOnly: init.localURLsOnly ?? false,\n unsafeRequest: init.unsafeRequest ?? false,\n body: init.body ?? null,\n client: init.client ?? null,\n reservedClient: init.reservedClient ?? null,\n replacesClientId: init.replacesClientId ?? '',\n window: init.window ?? 'client',\n keepalive: init.keepalive ?? false,\n serviceWorkers: init.serviceWorkers ?? 'all',\n initiator: init.initiator ?? '',\n destination: init.destination ?? '',\n priority: init.priority ?? null,\n origin: init.origin ?? 'client',\n policyContainer: init.policyContainer ?? 'client',\n referrer: init.referrer ?? 'client',\n referrerPolicy: init.referrerPolicy ?? '',\n mode: init.mode ?? 'no-cors',\n useCORSPreflightFlag: init.useCORSPreflightFlag ?? false,\n credentials: init.credentials ?? 'same-origin',\n useCredentials: init.useCredentials ?? false,\n cache: init.cache ?? 'default',\n redirect: init.redirect ?? 'follow',\n integrity: init.integrity ?? '',\n cryptoGraphicsNonceMetadata: init.cryptoGraphicsNonceMetadata ?? '',\n parserMetadata: init.parserMetadata ?? '',\n reloadNavigation: init.reloadNavigation ?? false,\n historyNavigation: init.historyNavigation ?? false,\n userActivation: init.userActivation ?? false,\n taintedOrigin: init.taintedOrigin ?? false,\n redirectCount: init.redirectCount ?? 0,\n responseTainting: init.responseTainting ?? 'basic',\n preventNoCacheCacheControlHeaderModification: init.preventNoCacheCacheControlHeaderModification ?? false,\n done: init.done ?? false,\n timingAllowFailed: init.timingAllowFailed ?? false,\n urlList: init.urlList,\n url: init.urlList[0],\n headersList: init.headersList\n ? new HeadersList(init.headersList)\n : new HeadersList()\n }\n}\n\n// https://fetch.spec.whatwg.org/#concept-request-clone\nfunction cloneRequest (request) {\n // To clone a request request, run these steps:\n\n // 1. Let newRequest be a copy of request, except for its body.\n const newRequest = makeRequest({ ...request, body: null })\n\n // 2. If request\u2019s body is non-null, set newRequest\u2019s body to the\n // result of cloning request\u2019s body.\n if (request.body != null) {\n newRequest.body = cloneBody(newRequest, request.body)\n }\n\n // 3. Return newRequest.\n return newRequest\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#request-create\n * @param {any} innerRequest\n * @param {AbortSignal} signal\n * @param {'request' | 'immutable' | 'request-no-cors' | 'response' | 'none'} guard\n * @returns {Request}\n */\nfunction fromInnerRequest (innerRequest, signal, guard) {\n const request = new Request(kConstruct)\n request[kState] = innerRequest\n request[kSignal] = signal\n request[kHeaders] = new Headers(kConstruct)\n setHeadersList(request[kHeaders], innerRequest.headersList)\n setHeadersGuard(request[kHeaders], guard)\n return request\n}\n\nObject.defineProperties(Request.prototype, {\n method: kEnumerableProperty,\n url: kEnumerableProperty,\n headers: kEnumerableProperty,\n redirect: kEnumerableProperty,\n clone: kEnumerableProperty,\n signal: kEnumerableProperty,\n duplex: kEnumerableProperty,\n destination: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n isHistoryNavigation: kEnumerableProperty,\n isReloadNavigation: kEnumerableProperty,\n keepalive: kEnumerableProperty,\n integrity: kEnumerableProperty,\n cache: kEnumerableProperty,\n credentials: kEnumerableProperty,\n attribute: kEnumerableProperty,\n referrerPolicy: kEnumerableProperty,\n referrer: kEnumerableProperty,\n mode: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Request',\n configurable: true\n }\n})\n\nwebidl.converters.Request = webidl.interfaceConverter(\n Request\n)\n\n// https://fetch.spec.whatwg.org/#requestinfo\nwebidl.converters.RequestInfo = function (V, prefix, argument) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V, prefix, argument)\n }\n\n if (V instanceof Request) {\n return webidl.converters.Request(V, prefix, argument)\n }\n\n return webidl.converters.USVString(V, prefix, argument)\n}\n\nwebidl.converters.AbortSignal = webidl.interfaceConverter(\n AbortSignal\n)\n\n// https://fetch.spec.whatwg.org/#requestinit\nwebidl.converters.RequestInit = webidl.dictionaryConverter([\n {\n key: 'method',\n converter: webidl.converters.ByteString\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n },\n {\n key: 'body',\n converter: webidl.nullableConverter(\n webidl.converters.BodyInit\n )\n },\n {\n key: 'referrer',\n converter: webidl.converters.USVString\n },\n {\n key: 'referrerPolicy',\n converter: webidl.converters.DOMString,\n // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy\n allowedValues: referrerPolicy\n },\n {\n key: 'mode',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#concept-request-mode\n allowedValues: requestMode\n },\n {\n key: 'credentials',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcredentials\n allowedValues: requestCredentials\n },\n {\n key: 'cache',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcache\n allowedValues: requestCache\n },\n {\n key: 'redirect',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestredirect\n allowedValues: requestRedirect\n },\n {\n key: 'integrity',\n converter: webidl.converters.DOMString\n },\n {\n key: 'keepalive',\n converter: webidl.converters.boolean\n },\n {\n key: 'signal',\n converter: webidl.nullableConverter(\n (signal) => webidl.converters.AbortSignal(\n signal,\n 'RequestInit',\n 'signal',\n { strict: false }\n )\n )\n },\n {\n key: 'window',\n converter: webidl.converters.any\n },\n {\n key: 'duplex',\n converter: webidl.converters.DOMString,\n allowedValues: requestDuplex\n },\n {\n key: 'dispatcher', // undici specific option\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = { Request, makeRequest, fromInnerRequest, cloneRequest }\n", "// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst {\n makeNetworkError,\n makeAppropriateNetworkError,\n filterResponse,\n makeResponse,\n fromInnerResponse\n} = require('./response')\nconst { HeadersList } = require('./headers')\nconst { Request, cloneRequest } = require('./request')\nconst zlib = require('node:zlib')\nconst {\n bytesMatch,\n makePolicyContainer,\n clonePolicyContainer,\n requestBadPort,\n TAOCheck,\n appendRequestOriginHeader,\n responseLocationURL,\n requestCurrentURL,\n setRequestReferrerPolicyOnRedirect,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n createOpaqueTimingInfo,\n appendFetchMetadata,\n corsCheck,\n crossOriginResourcePolicyCheck,\n determineRequestsReferrer,\n coarsenedSharedCurrentTime,\n createDeferredPromise,\n isBlobLike,\n sameOrigin,\n isCancelled,\n isAborted,\n isErrorLike,\n fullyReadBody,\n readableStreamClose,\n isomorphicEncode,\n urlIsLocal,\n urlIsHttpHttpsScheme,\n urlHasHttpsScheme,\n clampAndCoarsenConnectionTimingInfo,\n simpleRangeHeaderValue,\n buildContentRange,\n createInflate,\n extractMimeType\n} = require('./util')\nconst { kState, kDispatcher } = require('./symbols')\nconst assert = require('node:assert')\nconst { safelyExtractBody, extractBody } = require('./body')\nconst {\n redirectStatusSet,\n nullBodyStatus,\n safeMethodsSet,\n requestBodyHeader,\n subresourceSet\n} = require('./constants')\nconst EE = require('node:events')\nconst { Readable, pipeline, finished } = require('node:stream')\nconst { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = require('../../core/util')\nconst { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require('./data-url')\nconst { getGlobalDispatcher } = require('../../global')\nconst { webidl } = require('./webidl')\nconst { STATUS_CODES } = require('node:http')\nconst GET_OR_HEAD = ['GET', 'HEAD']\n\nconst defaultUserAgent = typeof __UNDICI_IS_NODE__ !== 'undefined' || typeof esbuildDetection !== 'undefined'\n ? 'node'\n : 'undici'\n\n/** @type {import('buffer').resolveObjectURL} */\nlet resolveObjectURL\n\nclass Fetch extends EE {\n constructor (dispatcher) {\n super()\n\n this.dispatcher = dispatcher\n this.connection = null\n this.dump = false\n this.state = 'ongoing'\n }\n\n terminate (reason) {\n if (this.state !== 'ongoing') {\n return\n }\n\n this.state = 'terminated'\n this.connection?.destroy(reason)\n this.emit('terminated', reason)\n }\n\n // https://fetch.spec.whatwg.org/#fetch-controller-abort\n abort (error) {\n if (this.state !== 'ongoing') {\n return\n }\n\n // 1. Set controller\u2019s state to \"aborted\".\n this.state = 'aborted'\n\n // 2. Let fallbackError be an \"AbortError\" DOMException.\n // 3. Set error to fallbackError if it is not given.\n if (!error) {\n error = new DOMException('The operation was aborted.', 'AbortError')\n }\n\n // 4. Let serializedError be StructuredSerialize(error).\n // If that threw an exception, catch it, and let\n // serializedError be StructuredSerialize(fallbackError).\n\n // 5. Set controller\u2019s serialized abort reason to serializedError.\n this.serializedAbortReason = error\n\n this.connection?.destroy(error)\n this.emit('terminated', error)\n }\n}\n\nfunction handleFetchDone (response) {\n finalizeAndReportTiming(response, 'fetch')\n}\n\n// https://fetch.spec.whatwg.org/#fetch-method\nfunction fetch (input, init = undefined) {\n webidl.argumentLengthCheck(arguments, 1, 'globalThis.fetch')\n\n // 1. Let p be a new promise.\n let p = createDeferredPromise()\n\n // 2. Let requestObject be the result of invoking the initial value of\n // Request as constructor with input and init as arguments. If this throws\n // an exception, reject p with it and return p.\n let requestObject\n\n try {\n requestObject = new Request(input, init)\n } catch (e) {\n p.reject(e)\n return p.promise\n }\n\n // 3. Let request be requestObject\u2019s request.\n const request = requestObject[kState]\n\n // 4. If requestObject\u2019s signal\u2019s aborted flag is set, then:\n if (requestObject.signal.aborted) {\n // 1. Abort the fetch() call with p, request, null, and\n // requestObject\u2019s signal\u2019s abort reason.\n abortFetch(p, request, null, requestObject.signal.reason)\n\n // 2. Return p.\n return p.promise\n }\n\n // 5. Let globalObject be request\u2019s client\u2019s global object.\n const globalObject = request.client.globalObject\n\n // 6. If globalObject is a ServiceWorkerGlobalScope object, then set\n // request\u2019s service-workers mode to \"none\".\n if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {\n request.serviceWorkers = 'none'\n }\n\n // 7. Let responseObject be null.\n let responseObject = null\n\n // 8. Let relevantRealm be this\u2019s relevant Realm.\n\n // 9. Let locallyAborted be false.\n let locallyAborted = false\n\n // 10. Let controller be null.\n let controller = null\n\n // 11. Add the following abort steps to requestObject\u2019s signal:\n addAbortListener(\n requestObject.signal,\n () => {\n // 1. Set locallyAborted to true.\n locallyAborted = true\n\n // 2. Assert: controller is non-null.\n assert(controller != null)\n\n // 3. Abort controller with requestObject\u2019s signal\u2019s abort reason.\n controller.abort(requestObject.signal.reason)\n\n const realResponse = responseObject?.deref()\n\n // 4. Abort the fetch() call with p, request, responseObject,\n // and requestObject\u2019s signal\u2019s abort reason.\n abortFetch(p, request, realResponse, requestObject.signal.reason)\n }\n )\n\n // 12. Let handleFetchDone given response response be to finalize and\n // report timing with response, globalObject, and \"fetch\".\n // see function handleFetchDone\n\n // 13. Set controller to the result of calling fetch given request,\n // with processResponseEndOfBody set to handleFetchDone, and processResponse\n // given response being these substeps:\n\n const processResponse = (response) => {\n // 1. If locallyAborted is true, terminate these substeps.\n if (locallyAborted) {\n return\n }\n\n // 2. If response\u2019s aborted flag is set, then:\n if (response.aborted) {\n // 1. Let deserializedError be the result of deserialize a serialized\n // abort reason given controller\u2019s serialized abort reason and\n // relevantRealm.\n\n // 2. Abort the fetch() call with p, request, responseObject, and\n // deserializedError.\n\n abortFetch(p, request, responseObject, controller.serializedAbortReason)\n return\n }\n\n // 3. If response is a network error, then reject p with a TypeError\n // and terminate these substeps.\n if (response.type === 'error') {\n p.reject(new TypeError('fetch failed', { cause: response.error }))\n return\n }\n\n // 4. Set responseObject to the result of creating a Response object,\n // given response, \"immutable\", and relevantRealm.\n responseObject = new WeakRef(fromInnerResponse(response, 'immutable'))\n\n // 5. Resolve p with responseObject.\n p.resolve(responseObject.deref())\n p = null\n }\n\n controller = fetching({\n request,\n processResponseEndOfBody: handleFetchDone,\n processResponse,\n dispatcher: requestObject[kDispatcher] // undici\n })\n\n // 14. Return p.\n return p.promise\n}\n\n// https://fetch.spec.whatwg.org/#finalize-and-report-timing\nfunction finalizeAndReportTiming (response, initiatorType = 'other') {\n // 1. If response is an aborted network error, then return.\n if (response.type === 'error' && response.aborted) {\n return\n }\n\n // 2. If response\u2019s URL list is null or empty, then return.\n if (!response.urlList?.length) {\n return\n }\n\n // 3. Let originalURL be response\u2019s URL list[0].\n const originalURL = response.urlList[0]\n\n // 4. Let timingInfo be response\u2019s timing info.\n let timingInfo = response.timingInfo\n\n // 5. Let cacheState be response\u2019s cache state.\n let cacheState = response.cacheState\n\n // 6. If originalURL\u2019s scheme is not an HTTP(S) scheme, then return.\n if (!urlIsHttpHttpsScheme(originalURL)) {\n return\n }\n\n // 7. If timingInfo is null, then return.\n if (timingInfo === null) {\n return\n }\n\n // 8. If response\u2019s timing allow passed flag is not set, then:\n if (!response.timingAllowPassed) {\n // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.\n timingInfo = createOpaqueTimingInfo({\n startTime: timingInfo.startTime\n })\n\n // 2. Set cacheState to the empty string.\n cacheState = ''\n }\n\n // 9. Set timingInfo\u2019s end time to the coarsened shared current time\n // given global\u2019s relevant settings object\u2019s cross-origin isolated\n // capability.\n // TODO: given global\u2019s relevant settings object\u2019s cross-origin isolated\n // capability?\n timingInfo.endTime = coarsenedSharedCurrentTime()\n\n // 10. Set response\u2019s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 11. Mark resource timing for timingInfo, originalURL, initiatorType,\n // global, and cacheState.\n markResourceTiming(\n timingInfo,\n originalURL.href,\n initiatorType,\n globalThis,\n cacheState\n )\n}\n\n// https://w3c.github.io/resource-timing/#dfn-mark-resource-timing\nconst markResourceTiming = performance.markResourceTiming\n\n// https://fetch.spec.whatwg.org/#abort-fetch\nfunction abortFetch (p, request, responseObject, error) {\n // 1. Reject promise with error.\n if (p) {\n // We might have already resolved the promise at this stage\n p.reject(error)\n }\n\n // 2. If request\u2019s body is not null and is readable, then cancel request\u2019s\n // body with error.\n if (request.body != null && isReadable(request.body?.stream)) {\n request.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n\n // 3. If responseObject is null, then return.\n if (responseObject == null) {\n return\n }\n\n // 4. Let response be responseObject\u2019s response.\n const response = responseObject[kState]\n\n // 5. If response\u2019s body is not null and is readable, then error response\u2019s\n // body with error.\n if (response.body != null && isReadable(response.body?.stream)) {\n response.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetching\nfunction fetching ({\n request,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseEndOfBody,\n processResponseConsumeBody,\n useParallelQueue = false,\n dispatcher = getGlobalDispatcher() // undici\n}) {\n // Ensure that the dispatcher is set accordingly\n assert(dispatcher)\n\n // 1. Let taskDestination be null.\n let taskDestination = null\n\n // 2. Let crossOriginIsolatedCapability be false.\n let crossOriginIsolatedCapability = false\n\n // 3. If request\u2019s client is non-null, then:\n if (request.client != null) {\n // 1. Set taskDestination to request\u2019s client\u2019s global object.\n taskDestination = request.client.globalObject\n\n // 2. Set crossOriginIsolatedCapability to request\u2019s client\u2019s cross-origin\n // isolated capability.\n crossOriginIsolatedCapability =\n request.client.crossOriginIsolatedCapability\n }\n\n // 4. If useParallelQueue is true, then set taskDestination to the result of\n // starting a new parallel queue.\n // TODO\n\n // 5. Let timingInfo be a new fetch timing info whose start time and\n // post-redirect start time are the coarsened shared current time given\n // crossOriginIsolatedCapability.\n const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)\n const timingInfo = createOpaqueTimingInfo({\n startTime: currentTime\n })\n\n // 6. Let fetchParams be a new fetch params whose\n // request is request,\n // timing info is timingInfo,\n // process request body chunk length is processRequestBodyChunkLength,\n // process request end-of-body is processRequestEndOfBody,\n // process response is processResponse,\n // process response consume body is processResponseConsumeBody,\n // process response end-of-body is processResponseEndOfBody,\n // task destination is taskDestination,\n // and cross-origin isolated capability is crossOriginIsolatedCapability.\n const fetchParams = {\n controller: new Fetch(dispatcher),\n request,\n timingInfo,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseConsumeBody,\n processResponseEndOfBody,\n taskDestination,\n crossOriginIsolatedCapability\n }\n\n // 7. If request\u2019s body is a byte sequence, then set request\u2019s body to\n // request\u2019s body as a body.\n // NOTE: Since fetching is only called from fetch, body should already be\n // extracted.\n assert(!request.body || request.body.stream)\n\n // 8. If request\u2019s window is \"client\", then set request\u2019s window to request\u2019s\n // client, if request\u2019s client\u2019s global object is a Window object; otherwise\n // \"no-window\".\n if (request.window === 'client') {\n // TODO: What if request.client is null?\n request.window =\n request.client?.globalObject?.constructor?.name === 'Window'\n ? request.client\n : 'no-window'\n }\n\n // 9. If request\u2019s origin is \"client\", then set request\u2019s origin to request\u2019s\n // client\u2019s origin.\n if (request.origin === 'client') {\n request.origin = request.client.origin\n }\n\n // 10. If all of the following conditions are true:\n // TODO\n\n // 11. If request\u2019s policy container is \"client\", then:\n if (request.policyContainer === 'client') {\n // 1. If request\u2019s client is non-null, then set request\u2019s policy\n // container to a clone of request\u2019s client\u2019s policy container. [HTML]\n if (request.client != null) {\n request.policyContainer = clonePolicyContainer(\n request.client.policyContainer\n )\n } else {\n // 2. Otherwise, set request\u2019s policy container to a new policy\n // container.\n request.policyContainer = makePolicyContainer()\n }\n }\n\n // 12. If request\u2019s header list does not contain `Accept`, then:\n if (!request.headersList.contains('accept', true)) {\n // 1. Let value be `*/*`.\n const value = '*/*'\n\n // 2. A user agent should set value to the first matching statement, if\n // any, switching on request\u2019s destination:\n // \"document\"\n // \"frame\"\n // \"iframe\"\n // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`\n // \"image\"\n // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`\n // \"style\"\n // `text/css,*/*;q=0.1`\n // TODO\n\n // 3. Append `Accept`/value to request\u2019s header list.\n request.headersList.append('accept', value, true)\n }\n\n // 13. If request\u2019s header list does not contain `Accept-Language`, then\n // user agents should append `Accept-Language`/an appropriate value to\n // request\u2019s header list.\n if (!request.headersList.contains('accept-language', true)) {\n request.headersList.append('accept-language', '*', true)\n }\n\n // 14. If request\u2019s priority is null, then use request\u2019s initiator and\n // destination appropriately in setting request\u2019s priority to a\n // user-agent-defined object.\n if (request.priority === null) {\n // TODO\n }\n\n // 15. If request is a subresource request, then:\n if (subresourceSet.has(request.destination)) {\n // TODO\n }\n\n // 16. Run main fetch given fetchParams.\n mainFetch(fetchParams)\n .catch(err => {\n fetchParams.controller.terminate(err)\n })\n\n // 17. Return fetchParam's controller\n return fetchParams.controller\n}\n\n// https://fetch.spec.whatwg.org/#concept-main-fetch\nasync function mainFetch (fetchParams, recursive = false) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. If request\u2019s local-URLs-only flag is set and request\u2019s current URL is\n // not local, then set response to a network error.\n if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {\n response = makeNetworkError('local URLs only')\n }\n\n // 4. Run report Content Security Policy violations for request.\n // TODO\n\n // 5. Upgrade request to a potentially trustworthy URL, if appropriate.\n tryUpgradeRequestToAPotentiallyTrustworthyURL(request)\n\n // 6. If should request be blocked due to a bad port, should fetching request\n // be blocked as mixed content, or should request be blocked by Content\n // Security Policy returns blocked, then set response to a network error.\n if (requestBadPort(request) === 'blocked') {\n response = makeNetworkError('bad port')\n }\n // TODO: should fetching request be blocked as mixed content?\n // TODO: should request be blocked by Content Security Policy?\n\n // 7. If request\u2019s referrer policy is the empty string, then set request\u2019s\n // referrer policy to request\u2019s policy container\u2019s referrer policy.\n if (request.referrerPolicy === '') {\n request.referrerPolicy = request.policyContainer.referrerPolicy\n }\n\n // 8. If request\u2019s referrer is not \"no-referrer\", then set request\u2019s\n // referrer to the result of invoking determine request\u2019s referrer.\n if (request.referrer !== 'no-referrer') {\n request.referrer = determineRequestsReferrer(request)\n }\n\n // 9. Set request\u2019s current URL\u2019s scheme to \"https\" if all of the following\n // conditions are true:\n // - request\u2019s current URL\u2019s scheme is \"http\"\n // - request\u2019s current URL\u2019s host is a domain\n // - Matching request\u2019s current URL\u2019s host per Known HSTS Host Domain Name\n // Matching results in either a superdomain match with an asserted\n // includeSubDomains directive or a congruent match (with or without an\n // asserted includeSubDomains directive). [HSTS]\n // TODO\n\n // 10. If recursive is false, then run the remaining steps in parallel.\n // TODO\n\n // 11. If response is null, then set response to the result of running\n // the steps corresponding to the first matching statement:\n if (response === null) {\n response = await (async () => {\n const currentURL = requestCurrentURL(request)\n\n if (\n // - request\u2019s current URL\u2019s origin is same origin with request\u2019s origin,\n // and request\u2019s response tainting is \"basic\"\n (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||\n // request\u2019s current URL\u2019s scheme is \"data\"\n (currentURL.protocol === 'data:') ||\n // - request\u2019s mode is \"navigate\" or \"websocket\"\n (request.mode === 'navigate' || request.mode === 'websocket')\n ) {\n // 1. Set request\u2019s response tainting to \"basic\".\n request.responseTainting = 'basic'\n\n // 2. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request\u2019s mode is \"same-origin\"\n if (request.mode === 'same-origin') {\n // 1. Return a network error.\n return makeNetworkError('request mode cannot be \"same-origin\"')\n }\n\n // request\u2019s mode is \"no-cors\"\n if (request.mode === 'no-cors') {\n // 1. If request\u2019s redirect mode is not \"follow\", then return a network\n // error.\n if (request.redirect !== 'follow') {\n return makeNetworkError(\n 'redirect mode cannot be \"follow\" for \"no-cors\" request'\n )\n }\n\n // 2. Set request\u2019s response tainting to \"opaque\".\n request.responseTainting = 'opaque'\n\n // 3. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request\u2019s current URL\u2019s scheme is not an HTTP(S) scheme\n if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {\n // Return a network error.\n return makeNetworkError('URL scheme must be a HTTP(S) scheme')\n }\n\n // - request\u2019s use-CORS-preflight flag is set\n // - request\u2019s unsafe-request flag is set and either request\u2019s method is\n // not a CORS-safelisted method or CORS-unsafe request-header names with\n // request\u2019s header list is not empty\n // 1. Set request\u2019s response tainting to \"cors\".\n // 2. Let corsWithPreflightResponse be the result of running HTTP fetch\n // given fetchParams and true.\n // 3. If corsWithPreflightResponse is a network error, then clear cache\n // entries using request.\n // 4. Return corsWithPreflightResponse.\n // TODO\n\n // Otherwise\n // 1. Set request\u2019s response tainting to \"cors\".\n request.responseTainting = 'cors'\n\n // 2. Return the result of running HTTP fetch given fetchParams.\n return await httpFetch(fetchParams)\n })()\n }\n\n // 12. If recursive is true, then return response.\n if (recursive) {\n return response\n }\n\n // 13. If response is not a network error and response is not a filtered\n // response, then:\n if (response.status !== 0 && !response.internalResponse) {\n // If request\u2019s response tainting is \"cors\", then:\n if (request.responseTainting === 'cors') {\n // 1. Let headerNames be the result of extracting header list values\n // given `Access-Control-Expose-Headers` and response\u2019s header list.\n // TODO\n // 2. If request\u2019s credentials mode is not \"include\" and headerNames\n // contains `*`, then set response\u2019s CORS-exposed header-name list to\n // all unique header names in response\u2019s header list.\n // TODO\n // 3. Otherwise, if headerNames is not null or failure, then set\n // response\u2019s CORS-exposed header-name list to headerNames.\n // TODO\n }\n\n // Set response to the following filtered response with response as its\n // internal response, depending on request\u2019s response tainting:\n if (request.responseTainting === 'basic') {\n response = filterResponse(response, 'basic')\n } else if (request.responseTainting === 'cors') {\n response = filterResponse(response, 'cors')\n } else if (request.responseTainting === 'opaque') {\n response = filterResponse(response, 'opaque')\n } else {\n assert(false)\n }\n }\n\n // 14. Let internalResponse be response, if response is a network error,\n // and response\u2019s internal response otherwise.\n let internalResponse =\n response.status === 0 ? response : response.internalResponse\n\n // 15. If internalResponse\u2019s URL list is empty, then set it to a clone of\n // request\u2019s URL list.\n if (internalResponse.urlList.length === 0) {\n internalResponse.urlList.push(...request.urlList)\n }\n\n // 16. If request\u2019s timing allow failed flag is unset, then set\n // internalResponse\u2019s timing allow passed flag.\n if (!request.timingAllowFailed) {\n response.timingAllowPassed = true\n }\n\n // 17. If response is not a network error and any of the following returns\n // blocked\n // - should internalResponse to request be blocked as mixed content\n // - should internalResponse to request be blocked by Content Security Policy\n // - should internalResponse to request be blocked due to its MIME type\n // - should internalResponse to request be blocked due to nosniff\n // TODO\n\n // 18. If response\u2019s type is \"opaque\", internalResponse\u2019s status is 206,\n // internalResponse\u2019s range-requested flag is set, and request\u2019s header\n // list does not contain `Range`, then set response and internalResponse\n // to a network error.\n if (\n response.type === 'opaque' &&\n internalResponse.status === 206 &&\n internalResponse.rangeRequested &&\n !request.headers.contains('range', true)\n ) {\n response = internalResponse = makeNetworkError()\n }\n\n // 19. If response is not a network error and either request\u2019s method is\n // `HEAD` or `CONNECT`, or internalResponse\u2019s status is a null body status,\n // set internalResponse\u2019s body to null and disregard any enqueuing toward\n // it (if any).\n if (\n response.status !== 0 &&\n (request.method === 'HEAD' ||\n request.method === 'CONNECT' ||\n nullBodyStatus.includes(internalResponse.status))\n ) {\n internalResponse.body = null\n fetchParams.controller.dump = true\n }\n\n // 20. If request\u2019s integrity metadata is not the empty string, then:\n if (request.integrity) {\n // 1. Let processBodyError be this step: run fetch finale given fetchParams\n // and a network error.\n const processBodyError = (reason) =>\n fetchFinale(fetchParams, makeNetworkError(reason))\n\n // 2. If request\u2019s response tainting is \"opaque\", or response\u2019s body is null,\n // then run processBodyError and abort these steps.\n if (request.responseTainting === 'opaque' || response.body == null) {\n processBodyError(response.error)\n return\n }\n\n // 3. Let processBody given bytes be these steps:\n const processBody = (bytes) => {\n // 1. If bytes do not match request\u2019s integrity metadata,\n // then run processBodyError and abort these steps. [SRI]\n if (!bytesMatch(bytes, request.integrity)) {\n processBodyError('integrity mismatch')\n return\n }\n\n // 2. Set response\u2019s body to bytes as a body.\n response.body = safelyExtractBody(bytes)[0]\n\n // 3. Run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n\n // 4. Fully read response\u2019s body given processBody and processBodyError.\n await fullyReadBody(response.body, processBody, processBodyError)\n } else {\n // 21. Otherwise, run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n}\n\n// https://fetch.spec.whatwg.org/#concept-scheme-fetch\n// given a fetch params fetchParams\nfunction schemeFetch (fetchParams) {\n // Note: since the connection is destroyed on redirect, which sets fetchParams to a\n // cancelled state, we do not want this condition to trigger *unless* there have been\n // no redirects. See https://github.com/nodejs/undici/issues/1776\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {\n return Promise.resolve(makeAppropriateNetworkError(fetchParams))\n }\n\n // 2. Let request be fetchParams\u2019s request.\n const { request } = fetchParams\n\n const { protocol: scheme } = requestCurrentURL(request)\n\n // 3. Switch on request\u2019s current URL\u2019s scheme and run the associated steps:\n switch (scheme) {\n case 'about:': {\n // If request\u2019s current URL\u2019s path is the string \"blank\", then return a new response\n // whose status message is `OK`, header list is \u00AB (`Content-Type`, `text/html;charset=utf-8`) \u00BB,\n // and body is the empty byte sequence as a body.\n\n // Otherwise, return a network error.\n return Promise.resolve(makeNetworkError('about scheme is not supported'))\n }\n case 'blob:': {\n if (!resolveObjectURL) {\n resolveObjectURL = require('node:buffer').resolveObjectURL\n }\n\n // 1. Let blobURLEntry be request\u2019s current URL\u2019s blob URL entry.\n const blobURLEntry = requestCurrentURL(request)\n\n // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56\n // Buffer.resolveObjectURL does not ignore URL queries.\n if (blobURLEntry.search.length !== 0) {\n return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.'))\n }\n\n const blob = resolveObjectURL(blobURLEntry.toString())\n\n // 2. If request\u2019s method is not `GET`, blobURLEntry is null, or blobURLEntry\u2019s\n // object is not a Blob object, then return a network error.\n if (request.method !== 'GET' || !isBlobLike(blob)) {\n return Promise.resolve(makeNetworkError('invalid method'))\n }\n\n // 3. Let blob be blobURLEntry\u2019s object.\n // Note: done above\n\n // 4. Let response be a new response.\n const response = makeResponse()\n\n // 5. Let fullLength be blob\u2019s size.\n const fullLength = blob.size\n\n // 6. Let serializedFullLength be fullLength, serialized and isomorphic encoded.\n const serializedFullLength = isomorphicEncode(`${fullLength}`)\n\n // 7. Let type be blob\u2019s type.\n const type = blob.type\n\n // 8. If request\u2019s header list does not contain `Range`:\n // 9. Otherwise:\n if (!request.headersList.contains('range', true)) {\n // 1. Let bodyWithType be the result of safely extracting blob.\n // Note: in the FileAPI a blob \"object\" is a Blob *or* a MediaSource.\n // In node, this can only ever be a Blob. Therefore we can safely\n // use extractBody directly.\n const bodyWithType = extractBody(blob)\n\n // 2. Set response\u2019s status message to `OK`.\n response.statusText = 'OK'\n\n // 3. Set response\u2019s body to bodyWithType\u2019s body.\n response.body = bodyWithType[0]\n\n // 4. Set response\u2019s header list to \u00AB (`Content-Length`, serializedFullLength), (`Content-Type`, type) \u00BB.\n response.headersList.set('content-length', serializedFullLength, true)\n response.headersList.set('content-type', type, true)\n } else {\n // 1. Set response\u2019s range-requested flag.\n response.rangeRequested = true\n\n // 2. Let rangeHeader be the result of getting `Range` from request\u2019s header list.\n const rangeHeader = request.headersList.get('range', true)\n\n // 3. Let rangeValue be the result of parsing a single range header value given rangeHeader and true.\n const rangeValue = simpleRangeHeaderValue(rangeHeader, true)\n\n // 4. If rangeValue is failure, then return a network error.\n if (rangeValue === 'failure') {\n return Promise.resolve(makeNetworkError('failed to fetch the data URL'))\n }\n\n // 5. Let (rangeStart, rangeEnd) be rangeValue.\n let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue\n\n // 6. If rangeStart is null:\n // 7. Otherwise:\n if (rangeStart === null) {\n // 1. Set rangeStart to fullLength \u2212 rangeEnd.\n rangeStart = fullLength - rangeEnd\n\n // 2. Set rangeEnd to rangeStart + rangeEnd \u2212 1.\n rangeEnd = rangeStart + rangeEnd - 1\n } else {\n // 1. If rangeStart is greater than or equal to fullLength, then return a network error.\n if (rangeStart >= fullLength) {\n return Promise.resolve(makeNetworkError('Range start is greater than the blob\\'s size.'))\n }\n\n // 2. If rangeEnd is null or rangeEnd is greater than or equal to fullLength, then set\n // rangeEnd to fullLength \u2212 1.\n if (rangeEnd === null || rangeEnd >= fullLength) {\n rangeEnd = fullLength - 1\n }\n }\n\n // 8. Let slicedBlob be the result of invoking slice blob given blob, rangeStart,\n // rangeEnd + 1, and type.\n const slicedBlob = blob.slice(rangeStart, rangeEnd, type)\n\n // 9. Let slicedBodyWithType be the result of safely extracting slicedBlob.\n // Note: same reason as mentioned above as to why we use extractBody\n const slicedBodyWithType = extractBody(slicedBlob)\n\n // 10. Set response\u2019s body to slicedBodyWithType\u2019s body.\n response.body = slicedBodyWithType[0]\n\n // 11. Let serializedSlicedLength be slicedBlob\u2019s size, serialized and isomorphic encoded.\n const serializedSlicedLength = isomorphicEncode(`${slicedBlob.size}`)\n\n // 12. Let contentRange be the result of invoking build a content range given rangeStart,\n // rangeEnd, and fullLength.\n const contentRange = buildContentRange(rangeStart, rangeEnd, fullLength)\n\n // 13. Set response\u2019s status to 206.\n response.status = 206\n\n // 14. Set response\u2019s status message to `Partial Content`.\n response.statusText = 'Partial Content'\n\n // 15. Set response\u2019s header list to \u00AB (`Content-Length`, serializedSlicedLength),\n // (`Content-Type`, type), (`Content-Range`, contentRange) \u00BB.\n response.headersList.set('content-length', serializedSlicedLength, true)\n response.headersList.set('content-type', type, true)\n response.headersList.set('content-range', contentRange, true)\n }\n\n // 10. Return response.\n return Promise.resolve(response)\n }\n case 'data:': {\n // 1. Let dataURLStruct be the result of running the\n // data: URL processor on request\u2019s current URL.\n const currentURL = requestCurrentURL(request)\n const dataURLStruct = dataURLProcessor(currentURL)\n\n // 2. If dataURLStruct is failure, then return a\n // network error.\n if (dataURLStruct === 'failure') {\n return Promise.resolve(makeNetworkError('failed to fetch the data URL'))\n }\n\n // 3. Let mimeType be dataURLStruct\u2019s MIME type, serialized.\n const mimeType = serializeAMimeType(dataURLStruct.mimeType)\n\n // 4. Return a response whose status message is `OK`,\n // header list is \u00AB (`Content-Type`, mimeType) \u00BB,\n // and body is dataURLStruct\u2019s body as a body.\n return Promise.resolve(makeResponse({\n statusText: 'OK',\n headersList: [\n ['content-type', { name: 'Content-Type', value: mimeType }]\n ],\n body: safelyExtractBody(dataURLStruct.body)[0]\n }))\n }\n case 'file:': {\n // For now, unfortunate as it is, file URLs are left as an exercise for the reader.\n // When in doubt, return a network error.\n return Promise.resolve(makeNetworkError('not implemented... yet...'))\n }\n case 'http:':\n case 'https:': {\n // Return the result of running HTTP fetch given fetchParams.\n\n return httpFetch(fetchParams)\n .catch((err) => makeNetworkError(err))\n }\n default: {\n return Promise.resolve(makeNetworkError('unknown scheme'))\n }\n }\n}\n\n// https://fetch.spec.whatwg.org/#finalize-response\nfunction finalizeResponse (fetchParams, response) {\n // 1. Set fetchParams\u2019s request\u2019s done flag.\n fetchParams.request.done = true\n\n // 2, If fetchParams\u2019s process response done is not null, then queue a fetch\n // task to run fetchParams\u2019s process response done given response, with\n // fetchParams\u2019s task destination.\n if (fetchParams.processResponseDone != null) {\n queueMicrotask(() => fetchParams.processResponseDone(response))\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetch-finale\nfunction fetchFinale (fetchParams, response) {\n // 1. Let timingInfo be fetchParams\u2019s timing info.\n let timingInfo = fetchParams.timingInfo\n\n // 2. If response is not a network error and fetchParams\u2019s request\u2019s client is a secure context,\n // then set timingInfo\u2019s server-timing headers to the result of getting, decoding, and splitting\n // `Server-Timing` from response\u2019s internal response\u2019s header list.\n // TODO\n\n // 3. Let processResponseEndOfBody be the following steps:\n const processResponseEndOfBody = () => {\n // 1. Let unsafeEndTime be the unsafe shared current time.\n const unsafeEndTime = Date.now() // ?\n\n // 2. If fetchParams\u2019s request\u2019s destination is \"document\", then set fetchParams\u2019s controller\u2019s\n // full timing info to fetchParams\u2019s timing info.\n if (fetchParams.request.destination === 'document') {\n fetchParams.controller.fullTimingInfo = timingInfo\n }\n\n // 3. Set fetchParams\u2019s controller\u2019s report timing steps to the following steps given a global object global:\n fetchParams.controller.reportTimingSteps = () => {\n // 1. If fetchParams\u2019s request\u2019s URL\u2019s scheme is not an HTTP(S) scheme, then return.\n if (fetchParams.request.url.protocol !== 'https:') {\n return\n }\n\n // 2. Set timingInfo\u2019s end time to the relative high resolution time given unsafeEndTime and global.\n timingInfo.endTime = unsafeEndTime\n\n // 3. Let cacheState be response\u2019s cache state.\n let cacheState = response.cacheState\n\n // 4. Let bodyInfo be response\u2019s body info.\n const bodyInfo = response.bodyInfo\n\n // 5. If response\u2019s timing allow passed flag is not set, then set timingInfo to the result of creating an\n // opaque timing info for timingInfo and set cacheState to the empty string.\n if (!response.timingAllowPassed) {\n timingInfo = createOpaqueTimingInfo(timingInfo)\n\n cacheState = ''\n }\n\n // 6. Let responseStatus be 0.\n let responseStatus = 0\n\n // 7. If fetchParams\u2019s request\u2019s mode is not \"navigate\" or response\u2019s has-cross-origin-redirects is false:\n if (fetchParams.request.mode !== 'navigator' || !response.hasCrossOriginRedirects) {\n // 1. Set responseStatus to response\u2019s status.\n responseStatus = response.status\n\n // 2. Let mimeType be the result of extracting a MIME type from response\u2019s header list.\n const mimeType = extractMimeType(response.headersList)\n\n // 3. If mimeType is not failure, then set bodyInfo\u2019s content type to the result of minimizing a supported MIME type given mimeType.\n if (mimeType !== 'failure') {\n bodyInfo.contentType = minimizeSupportedMimeType(mimeType)\n }\n }\n\n // 8. If fetchParams\u2019s request\u2019s initiator type is non-null, then mark resource timing given timingInfo,\n // fetchParams\u2019s request\u2019s URL, fetchParams\u2019s request\u2019s initiator type, global, cacheState, bodyInfo,\n // and responseStatus.\n if (fetchParams.request.initiatorType != null) {\n // TODO: update markresourcetiming\n markResourceTiming(timingInfo, fetchParams.request.url.href, fetchParams.request.initiatorType, globalThis, cacheState, bodyInfo, responseStatus)\n }\n }\n\n // 4. Let processResponseEndOfBodyTask be the following steps:\n const processResponseEndOfBodyTask = () => {\n // 1. Set fetchParams\u2019s request\u2019s done flag.\n fetchParams.request.done = true\n\n // 2. If fetchParams\u2019s process response end-of-body is non-null, then run fetchParams\u2019s process\n // response end-of-body given response.\n if (fetchParams.processResponseEndOfBody != null) {\n queueMicrotask(() => fetchParams.processResponseEndOfBody(response))\n }\n\n // 3. If fetchParams\u2019s request\u2019s initiator type is non-null and fetchParams\u2019s request\u2019s client\u2019s\n // global object is fetchParams\u2019s task destination, then run fetchParams\u2019s controller\u2019s report\n // timing steps given fetchParams\u2019s request\u2019s client\u2019s global object.\n if (fetchParams.request.initiatorType != null) {\n fetchParams.controller.reportTimingSteps()\n }\n }\n\n // 5. Queue a fetch task to run processResponseEndOfBodyTask with fetchParams\u2019s task destination\n queueMicrotask(() => processResponseEndOfBodyTask())\n }\n\n // 4. If fetchParams\u2019s process response is non-null, then queue a fetch task to run fetchParams\u2019s\n // process response given response, with fetchParams\u2019s task destination.\n if (fetchParams.processResponse != null) {\n queueMicrotask(() => {\n fetchParams.processResponse(response)\n fetchParams.processResponse = null\n })\n }\n\n // 5. Let internalResponse be response, if response is a network error; otherwise response\u2019s internal response.\n const internalResponse = response.type === 'error' ? response : (response.internalResponse ?? response)\n\n // 6. If internalResponse\u2019s body is null, then run processResponseEndOfBody.\n // 7. Otherwise:\n if (internalResponse.body == null) {\n processResponseEndOfBody()\n } else {\n // mcollina: all the following steps of the specs are skipped.\n // The internal transform stream is not needed.\n // See https://github.com/nodejs/undici/pull/3093#issuecomment-2050198541\n\n // 1. Let transformStream be a new TransformStream.\n // 2. Let identityTransformAlgorithm be an algorithm which, given chunk, enqueues chunk in transformStream.\n // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm and flushAlgorithm\n // set to processResponseEndOfBody.\n // 4. Set internalResponse\u2019s body\u2019s stream to the result of internalResponse\u2019s body\u2019s stream piped through transformStream.\n\n finished(internalResponse.body.stream, () => {\n processResponseEndOfBody()\n })\n }\n}\n\n// https://fetch.spec.whatwg.org/#http-fetch\nasync function httpFetch (fetchParams) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let actualResponse be null.\n let actualResponse = null\n\n // 4. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 5. If request\u2019s service-workers mode is \"all\", then:\n if (request.serviceWorkers === 'all') {\n // TODO\n }\n\n // 6. If response is null, then:\n if (response === null) {\n // 1. If makeCORSPreflight is true and one of these conditions is true:\n // TODO\n\n // 2. If request\u2019s redirect mode is \"follow\", then set request\u2019s\n // service-workers mode to \"none\".\n if (request.redirect === 'follow') {\n request.serviceWorkers = 'none'\n }\n\n // 3. Set response and actualResponse to the result of running\n // HTTP-network-or-cache fetch given fetchParams.\n actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)\n\n // 4. If request\u2019s response tainting is \"cors\" and a CORS check\n // for request and response returns failure, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n corsCheck(request, response) === 'failure'\n ) {\n return makeNetworkError('cors failure')\n }\n\n // 5. If the TAO check for request and response returns failure, then set\n // request\u2019s timing allow failed flag.\n if (TAOCheck(request, response) === 'failure') {\n request.timingAllowFailed = true\n }\n }\n\n // 7. If either request\u2019s response tainting or response\u2019s type\n // is \"opaque\", and the cross-origin resource policy check with\n // request\u2019s origin, request\u2019s client, request\u2019s destination,\n // and actualResponse returns blocked, then return a network error.\n if (\n (request.responseTainting === 'opaque' || response.type === 'opaque') &&\n crossOriginResourcePolicyCheck(\n request.origin,\n request.client,\n request.destination,\n actualResponse\n ) === 'blocked'\n ) {\n return makeNetworkError('blocked')\n }\n\n // 8. If actualResponse\u2019s status is a redirect status, then:\n if (redirectStatusSet.has(actualResponse.status)) {\n // 1. If actualResponse\u2019s status is not 303, request\u2019s body is not null,\n // and the connection uses HTTP/2, then user agents may, and are even\n // encouraged to, transmit an RST_STREAM frame.\n // See, https://github.com/whatwg/fetch/issues/1288\n if (request.redirect !== 'manual') {\n fetchParams.controller.connection.destroy(undefined, false)\n }\n\n // 2. Switch on request\u2019s redirect mode:\n if (request.redirect === 'error') {\n // Set response to a network error.\n response = makeNetworkError('unexpected redirect')\n } else if (request.redirect === 'manual') {\n // Set response to an opaque-redirect filtered response whose internal\n // response is actualResponse.\n // NOTE(spec): On the web this would return an `opaqueredirect` response,\n // but that doesn't make sense server side.\n // See https://github.com/nodejs/undici/issues/1193.\n response = actualResponse\n } else if (request.redirect === 'follow') {\n // Set response to the result of running HTTP-redirect fetch given\n // fetchParams and response.\n response = await httpRedirectFetch(fetchParams, response)\n } else {\n assert(false)\n }\n }\n\n // 9. Set response\u2019s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 10. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-redirect-fetch\nfunction httpRedirectFetch (fetchParams, response) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let actualResponse be response, if response is not a filtered response,\n // and response\u2019s internal response otherwise.\n const actualResponse = response.internalResponse\n ? response.internalResponse\n : response\n\n // 3. Let locationURL be actualResponse\u2019s location URL given request\u2019s current\n // URL\u2019s fragment.\n let locationURL\n\n try {\n locationURL = responseLocationURL(\n actualResponse,\n requestCurrentURL(request).hash\n )\n\n // 4. If locationURL is null, then return response.\n if (locationURL == null) {\n return response\n }\n } catch (err) {\n // 5. If locationURL is failure, then return a network error.\n return Promise.resolve(makeNetworkError(err))\n }\n\n // 6. If locationURL\u2019s scheme is not an HTTP(S) scheme, then return a network\n // error.\n if (!urlIsHttpHttpsScheme(locationURL)) {\n return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme'))\n }\n\n // 7. If request\u2019s redirect count is 20, then return a network error.\n if (request.redirectCount === 20) {\n return Promise.resolve(makeNetworkError('redirect count exceeded'))\n }\n\n // 8. Increase request\u2019s redirect count by 1.\n request.redirectCount += 1\n\n // 9. If request\u2019s mode is \"cors\", locationURL includes credentials, and\n // request\u2019s origin is not same origin with locationURL\u2019s origin, then return\n // a network error.\n if (\n request.mode === 'cors' &&\n (locationURL.username || locationURL.password) &&\n !sameOrigin(request, locationURL)\n ) {\n return Promise.resolve(makeNetworkError('cross origin not allowed for request mode \"cors\"'))\n }\n\n // 10. If request\u2019s response tainting is \"cors\" and locationURL includes\n // credentials, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n (locationURL.username || locationURL.password)\n ) {\n return Promise.resolve(makeNetworkError(\n 'URL cannot contain credentials for request mode \"cors\"'\n ))\n }\n\n // 11. If actualResponse\u2019s status is not 303, request\u2019s body is non-null,\n // and request\u2019s body\u2019s source is null, then return a network error.\n if (\n actualResponse.status !== 303 &&\n request.body != null &&\n request.body.source == null\n ) {\n return Promise.resolve(makeNetworkError())\n }\n\n // 12. If one of the following is true\n // - actualResponse\u2019s status is 301 or 302 and request\u2019s method is `POST`\n // - actualResponse\u2019s status is 303 and request\u2019s method is not `GET` or `HEAD`\n if (\n ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||\n (actualResponse.status === 303 &&\n !GET_OR_HEAD.includes(request.method))\n ) {\n // then:\n // 1. Set request\u2019s method to `GET` and request\u2019s body to null.\n request.method = 'GET'\n request.body = null\n\n // 2. For each headerName of request-body-header name, delete headerName from\n // request\u2019s header list.\n for (const headerName of requestBodyHeader) {\n request.headersList.delete(headerName)\n }\n }\n\n // 13. If request\u2019s current URL\u2019s origin is not same origin with locationURL\u2019s\n // origin, then for each headerName of CORS non-wildcard request-header name,\n // delete headerName from request\u2019s header list.\n if (!sameOrigin(requestCurrentURL(request), locationURL)) {\n // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name\n request.headersList.delete('authorization', true)\n\n // https://fetch.spec.whatwg.org/#authentication-entries\n request.headersList.delete('proxy-authorization', true)\n\n // \"Cookie\" and \"Host\" are forbidden request-headers, which undici doesn't implement.\n request.headersList.delete('cookie', true)\n request.headersList.delete('host', true)\n }\n\n // 14. If request\u2019s body is non-null, then set request\u2019s body to the first return\n // value of safely extracting request\u2019s body\u2019s source.\n if (request.body != null) {\n assert(request.body.source != null)\n request.body = safelyExtractBody(request.body.source)[0]\n }\n\n // 15. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 16. Set timingInfo\u2019s redirect end time and post-redirect start time to the\n // coarsened shared current time given fetchParams\u2019s cross-origin isolated\n // capability.\n timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =\n coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n\n // 17. If timingInfo\u2019s redirect start time is 0, then set timingInfo\u2019s\n // redirect start time to timingInfo\u2019s start time.\n if (timingInfo.redirectStartTime === 0) {\n timingInfo.redirectStartTime = timingInfo.startTime\n }\n\n // 18. Append locationURL to request\u2019s URL list.\n request.urlList.push(locationURL)\n\n // 19. Invoke set request\u2019s referrer policy on redirect on request and\n // actualResponse.\n setRequestReferrerPolicyOnRedirect(request, actualResponse)\n\n // 20. Return the result of running main fetch given fetchParams and true.\n return mainFetch(fetchParams, true)\n}\n\n// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch\nasync function httpNetworkOrCacheFetch (\n fetchParams,\n isAuthenticationFetch = false,\n isNewConnectionFetch = false\n) {\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let httpFetchParams be null.\n let httpFetchParams = null\n\n // 3. Let httpRequest be null.\n let httpRequest = null\n\n // 4. Let response be null.\n let response = null\n\n // 5. Let storedResponse be null.\n // TODO: cache\n\n // 6. Let httpCache be null.\n const httpCache = null\n\n // 7. Let the revalidatingFlag be unset.\n const revalidatingFlag = false\n\n // 8. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If request\u2019s window is \"no-window\" and request\u2019s redirect mode is\n // \"error\", then set httpFetchParams to fetchParams and httpRequest to\n // request.\n if (request.window === 'no-window' && request.redirect === 'error') {\n httpFetchParams = fetchParams\n httpRequest = request\n } else {\n // Otherwise:\n\n // 1. Set httpRequest to a clone of request.\n httpRequest = cloneRequest(request)\n\n // 2. Set httpFetchParams to a copy of fetchParams.\n httpFetchParams = { ...fetchParams }\n\n // 3. Set httpFetchParams\u2019s request to httpRequest.\n httpFetchParams.request = httpRequest\n }\n\n // 3. Let includeCredentials be true if one of\n const includeCredentials =\n request.credentials === 'include' ||\n (request.credentials === 'same-origin' &&\n request.responseTainting === 'basic')\n\n // 4. Let contentLength be httpRequest\u2019s body\u2019s length, if httpRequest\u2019s\n // body is non-null; otherwise null.\n const contentLength = httpRequest.body ? httpRequest.body.length : null\n\n // 5. Let contentLengthHeaderValue be null.\n let contentLengthHeaderValue = null\n\n // 6. If httpRequest\u2019s body is null and httpRequest\u2019s method is `POST` or\n // `PUT`, then set contentLengthHeaderValue to `0`.\n if (\n httpRequest.body == null &&\n ['POST', 'PUT'].includes(httpRequest.method)\n ) {\n contentLengthHeaderValue = '0'\n }\n\n // 7. If contentLength is non-null, then set contentLengthHeaderValue to\n // contentLength, serialized and isomorphic encoded.\n if (contentLength != null) {\n contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)\n }\n\n // 8. If contentLengthHeaderValue is non-null, then append\n // `Content-Length`/contentLengthHeaderValue to httpRequest\u2019s header\n // list.\n if (contentLengthHeaderValue != null) {\n httpRequest.headersList.append('content-length', contentLengthHeaderValue, true)\n }\n\n // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,\n // contentLengthHeaderValue) to httpRequest\u2019s header list.\n\n // 10. If contentLength is non-null and httpRequest\u2019s keepalive is true,\n // then:\n if (contentLength != null && httpRequest.keepalive) {\n // NOTE: keepalive is a noop outside of browser context.\n }\n\n // 11. If httpRequest\u2019s referrer is a URL, then append\n // `Referer`/httpRequest\u2019s referrer, serialized and isomorphic encoded,\n // to httpRequest\u2019s header list.\n if (httpRequest.referrer instanceof URL) {\n httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href), true)\n }\n\n // 12. Append a request `Origin` header for httpRequest.\n appendRequestOriginHeader(httpRequest)\n\n // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]\n appendFetchMetadata(httpRequest)\n\n // 14. If httpRequest\u2019s header list does not contain `User-Agent`, then\n // user agents should append `User-Agent`/default `User-Agent` value to\n // httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('user-agent', true)) {\n httpRequest.headersList.append('user-agent', defaultUserAgent)\n }\n\n // 15. If httpRequest\u2019s cache mode is \"default\" and httpRequest\u2019s header\n // list contains `If-Modified-Since`, `If-None-Match`,\n // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set\n // httpRequest\u2019s cache mode to \"no-store\".\n if (\n httpRequest.cache === 'default' &&\n (httpRequest.headersList.contains('if-modified-since', true) ||\n httpRequest.headersList.contains('if-none-match', true) ||\n httpRequest.headersList.contains('if-unmodified-since', true) ||\n httpRequest.headersList.contains('if-match', true) ||\n httpRequest.headersList.contains('if-range', true))\n ) {\n httpRequest.cache = 'no-store'\n }\n\n // 16. If httpRequest\u2019s cache mode is \"no-cache\", httpRequest\u2019s prevent\n // no-cache cache-control header modification flag is unset, and\n // httpRequest\u2019s header list does not contain `Cache-Control`, then append\n // `Cache-Control`/`max-age=0` to httpRequest\u2019s header list.\n if (\n httpRequest.cache === 'no-cache' &&\n !httpRequest.preventNoCacheCacheControlHeaderModification &&\n !httpRequest.headersList.contains('cache-control', true)\n ) {\n httpRequest.headersList.append('cache-control', 'max-age=0', true)\n }\n\n // 17. If httpRequest\u2019s cache mode is \"no-store\" or \"reload\", then:\n if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {\n // 1. If httpRequest\u2019s header list does not contain `Pragma`, then append\n // `Pragma`/`no-cache` to httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('pragma', true)) {\n httpRequest.headersList.append('pragma', 'no-cache', true)\n }\n\n // 2. If httpRequest\u2019s header list does not contain `Cache-Control`,\n // then append `Cache-Control`/`no-cache` to httpRequest\u2019s header list.\n if (!httpRequest.headersList.contains('cache-control', true)) {\n httpRequest.headersList.append('cache-control', 'no-cache', true)\n }\n }\n\n // 18. If httpRequest\u2019s header list contains `Range`, then append\n // `Accept-Encoding`/`identity` to httpRequest\u2019s header list.\n if (httpRequest.headersList.contains('range', true)) {\n httpRequest.headersList.append('accept-encoding', 'identity', true)\n }\n\n // 19. Modify httpRequest\u2019s header list per HTTP. Do not append a given\n // header if httpRequest\u2019s header list contains that header\u2019s name.\n // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129\n if (!httpRequest.headersList.contains('accept-encoding', true)) {\n if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {\n httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate', true)\n } else {\n httpRequest.headersList.append('accept-encoding', 'gzip, deflate', true)\n }\n }\n\n httpRequest.headersList.delete('host', true)\n\n // 20. If includeCredentials is true, then:\n if (includeCredentials) {\n // 1. If the user agent is not configured to block cookies for httpRequest\n // (see section 7 of [COOKIES]), then:\n // TODO: credentials\n // 2. If httpRequest\u2019s header list does not contain `Authorization`, then:\n // TODO: credentials\n }\n\n // 21. If there\u2019s a proxy-authentication entry, use it as appropriate.\n // TODO: proxy-authentication\n\n // 22. Set httpCache to the result of determining the HTTP cache\n // partition, given httpRequest.\n // TODO: cache\n\n // 23. If httpCache is null, then set httpRequest\u2019s cache mode to\n // \"no-store\".\n if (httpCache == null) {\n httpRequest.cache = 'no-store'\n }\n\n // 24. If httpRequest\u2019s cache mode is neither \"no-store\" nor \"reload\",\n // then:\n if (httpRequest.cache !== 'no-store' && httpRequest.cache !== 'reload') {\n // TODO: cache\n }\n\n // 9. If aborted, then return the appropriate network error for fetchParams.\n // TODO\n\n // 10. If response is null, then:\n if (response == null) {\n // 1. If httpRequest\u2019s cache mode is \"only-if-cached\", then return a\n // network error.\n if (httpRequest.cache === 'only-if-cached') {\n return makeNetworkError('only if cached')\n }\n\n // 2. Let forwardResponse be the result of running HTTP-network fetch\n // given httpFetchParams, includeCredentials, and isNewConnectionFetch.\n const forwardResponse = await httpNetworkFetch(\n httpFetchParams,\n includeCredentials,\n isNewConnectionFetch\n )\n\n // 3. If httpRequest\u2019s method is unsafe and forwardResponse\u2019s status is\n // in the range 200 to 399, inclusive, invalidate appropriate stored\n // responses in httpCache, as per the \"Invalidation\" chapter of HTTP\n // Caching, and set storedResponse to null. [HTTP-CACHING]\n if (\n !safeMethodsSet.has(httpRequest.method) &&\n forwardResponse.status >= 200 &&\n forwardResponse.status <= 399\n ) {\n // TODO: cache\n }\n\n // 4. If the revalidatingFlag is set and forwardResponse\u2019s status is 304,\n // then:\n if (revalidatingFlag && forwardResponse.status === 304) {\n // TODO: cache\n }\n\n // 5. If response is null, then:\n if (response == null) {\n // 1. Set response to forwardResponse.\n response = forwardResponse\n\n // 2. Store httpRequest and forwardResponse in httpCache, as per the\n // \"Storing Responses in Caches\" chapter of HTTP Caching. [HTTP-CACHING]\n // TODO: cache\n }\n }\n\n // 11. Set response\u2019s URL list to a clone of httpRequest\u2019s URL list.\n response.urlList = [...httpRequest.urlList]\n\n // 12. If httpRequest\u2019s header list contains `Range`, then set response\u2019s\n // range-requested flag.\n if (httpRequest.headersList.contains('range', true)) {\n response.rangeRequested = true\n }\n\n // 13. Set response\u2019s request-includes-credentials to includeCredentials.\n response.requestIncludesCredentials = includeCredentials\n\n // 14. If response\u2019s status is 401, httpRequest\u2019s response tainting is not\n // \"cors\", includeCredentials is true, and request\u2019s window is an environment\n // settings object, then:\n // TODO\n\n // 15. If response\u2019s status is 407, then:\n if (response.status === 407) {\n // 1. If request\u2019s window is \"no-window\", then return a network error.\n if (request.window === 'no-window') {\n return makeNetworkError()\n }\n\n // 2. ???\n\n // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 4. Prompt the end user as appropriate in request\u2019s window and store\n // the result as a proxy-authentication entry. [HTTP-AUTH]\n // TODO: Invoke some kind of callback?\n\n // 5. Set response to the result of running HTTP-network-or-cache fetch given\n // fetchParams.\n // TODO\n return makeNetworkError('proxy authentication required')\n }\n\n // 16. If all of the following are true\n if (\n // response\u2019s status is 421\n response.status === 421 &&\n // isNewConnectionFetch is false\n !isNewConnectionFetch &&\n // request\u2019s body is null, or request\u2019s body is non-null and request\u2019s body\u2019s source is non-null\n (request.body == null || request.body.source != null)\n ) {\n // then:\n\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 2. Set response to the result of running HTTP-network-or-cache\n // fetch given fetchParams, isAuthenticationFetch, and true.\n\n // TODO (spec): The spec doesn't specify this but we need to cancel\n // the active response before we can start a new one.\n // https://github.com/whatwg/fetch/issues/1293\n fetchParams.controller.connection.destroy()\n\n response = await httpNetworkOrCacheFetch(\n fetchParams,\n isAuthenticationFetch,\n true\n )\n }\n\n // 17. If isAuthenticationFetch is true, then create an authentication entry\n if (isAuthenticationFetch) {\n // TODO\n }\n\n // 18. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-network-fetch\nasync function httpNetworkFetch (\n fetchParams,\n includeCredentials = false,\n forceNewConnection = false\n) {\n assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)\n\n fetchParams.controller.connection = {\n abort: null,\n destroyed: false,\n destroy (err, abort = true) {\n if (!this.destroyed) {\n this.destroyed = true\n if (abort) {\n this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))\n }\n }\n }\n }\n\n // 1. Let request be fetchParams\u2019s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let timingInfo be fetchParams\u2019s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 4. Let httpCache be the result of determining the HTTP cache partition,\n // given request.\n // TODO: cache\n const httpCache = null\n\n // 5. If httpCache is null, then set request\u2019s cache mode to \"no-store\".\n if (httpCache == null) {\n request.cache = 'no-store'\n }\n\n // 6. Let networkPartitionKey be the result of determining the network\n // partition key given request.\n // TODO\n\n // 7. Let newConnection be \"yes\" if forceNewConnection is true; otherwise\n // \"no\".\n const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars\n\n // 8. Switch on request\u2019s mode:\n if (request.mode === 'websocket') {\n // Let connection be the result of obtaining a WebSocket connection,\n // given request\u2019s current URL.\n // TODO\n } else {\n // Let connection be the result of obtaining a connection, given\n // networkPartitionKey, request\u2019s current URL\u2019s origin,\n // includeCredentials, and forceNewConnection.\n // TODO\n }\n\n // 9. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If connection is failure, then return a network error.\n\n // 2. Set timingInfo\u2019s final connection timing info to the result of\n // calling clamp and coarsen connection timing info with connection\u2019s\n // timing info, timingInfo\u2019s post-redirect start time, and fetchParams\u2019s\n // cross-origin isolated capability.\n\n // 3. If connection is not an HTTP/2 connection, request\u2019s body is non-null,\n // and request\u2019s body\u2019s source is null, then append (`Transfer-Encoding`,\n // `chunked`) to request\u2019s header list.\n\n // 4. Set timingInfo\u2019s final network-request start time to the coarsened\n // shared current time given fetchParams\u2019s cross-origin isolated\n // capability.\n\n // 5. Set response to the result of making an HTTP request over connection\n // using request with the following caveats:\n\n // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]\n // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]\n\n // - If request\u2019s body is non-null, and request\u2019s body\u2019s source is null,\n // then the user agent may have a buffer of up to 64 kibibytes and store\n // a part of request\u2019s body in that buffer. If the user agent reads from\n // request\u2019s body beyond that buffer\u2019s size and the user agent needs to\n // resend request, then instead return a network error.\n\n // - Set timingInfo\u2019s final network-response start time to the coarsened\n // shared current time given fetchParams\u2019s cross-origin isolated capability,\n // immediately after the user agent\u2019s HTTP parser receives the first byte\n // of the response (e.g., frame header bytes for HTTP/2 or response status\n // line for HTTP/1.x).\n\n // - Wait until all the headers are transmitted.\n\n // - Any responses whose status is in the range 100 to 199, inclusive,\n // and is not 101, are to be ignored, except for the purposes of setting\n // timingInfo\u2019s final network-response start time above.\n\n // - If request\u2019s header list contains `Transfer-Encoding`/`chunked` and\n // response is transferred via HTTP/1.0 or older, then return a network\n // error.\n\n // - If the HTTP request results in a TLS client certificate dialog, then:\n\n // 1. If request\u2019s window is an environment settings object, make the\n // dialog available in request\u2019s window.\n\n // 2. Otherwise, return a network error.\n\n // To transmit request\u2019s body body, run these steps:\n let requestBody = null\n // 1. If body is null and fetchParams\u2019s process request end-of-body is\n // non-null, then queue a fetch task given fetchParams\u2019s process request\n // end-of-body and fetchParams\u2019s task destination.\n if (request.body == null && fetchParams.processRequestEndOfBody) {\n queueMicrotask(() => fetchParams.processRequestEndOfBody())\n } else if (request.body != null) {\n // 2. Otherwise, if body is non-null:\n\n // 1. Let processBodyChunk given bytes be these steps:\n const processBodyChunk = async function * (bytes) {\n // 1. If the ongoing fetch is terminated, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. Run this step in parallel: transmit bytes.\n yield bytes\n\n // 3. If fetchParams\u2019s process request body is non-null, then run\n // fetchParams\u2019s process request body given bytes\u2019s length.\n fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)\n }\n\n // 2. Let processEndOfBody be these steps:\n const processEndOfBody = () => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If fetchParams\u2019s process request end-of-body is non-null,\n // then run fetchParams\u2019s process request end-of-body.\n if (fetchParams.processRequestEndOfBody) {\n fetchParams.processRequestEndOfBody()\n }\n }\n\n // 3. Let processBodyError given e be these steps:\n const processBodyError = (e) => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If e is an \"AbortError\" DOMException, then abort fetchParams\u2019s controller.\n if (e.name === 'AbortError') {\n fetchParams.controller.abort()\n } else {\n fetchParams.controller.terminate(e)\n }\n }\n\n // 4. Incrementally read request\u2019s body given processBodyChunk, processEndOfBody,\n // processBodyError, and fetchParams\u2019s task destination.\n requestBody = (async function * () {\n try {\n for await (const bytes of request.body.stream) {\n yield * processBodyChunk(bytes)\n }\n processEndOfBody()\n } catch (err) {\n processBodyError(err)\n }\n })()\n }\n\n try {\n // socket is only provided for websockets\n const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })\n\n if (socket) {\n response = makeResponse({ status, statusText, headersList, socket })\n } else {\n const iterator = body[Symbol.asyncIterator]()\n fetchParams.controller.next = () => iterator.next()\n\n response = makeResponse({ status, statusText, headersList })\n }\n } catch (err) {\n // 10. If aborted, then:\n if (err.name === 'AbortError') {\n // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n fetchParams.controller.connection.destroy()\n\n // 2. Return the appropriate network error for fetchParams.\n return makeAppropriateNetworkError(fetchParams, err)\n }\n\n return makeNetworkError(err)\n }\n\n // 11. Let pullAlgorithm be an action that resumes the ongoing fetch\n // if it is suspended.\n const pullAlgorithm = async () => {\n await fetchParams.controller.resume()\n }\n\n // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams\u2019s\n // controller with reason, given reason.\n const cancelAlgorithm = (reason) => {\n // If the aborted fetch was already terminated, then we do not\n // need to do anything.\n if (!isCancelled(fetchParams)) {\n fetchParams.controller.abort(reason)\n }\n }\n\n // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by\n // the user agent.\n // TODO\n\n // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object\n // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.\n // TODO\n\n // 15. Let stream be a new ReadableStream.\n // 16. Set up stream with byte reading support with pullAlgorithm set to pullAlgorithm,\n // cancelAlgorithm set to cancelAlgorithm.\n const stream = new ReadableStream(\n {\n async start (controller) {\n fetchParams.controller.controller = controller\n },\n async pull (controller) {\n await pullAlgorithm(controller)\n },\n async cancel (reason) {\n await cancelAlgorithm(reason)\n },\n type: 'bytes'\n }\n )\n\n // 17. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. Set response\u2019s body to a new body whose stream is stream.\n response.body = { stream, source: null, length: null }\n\n // 2. If response is not a network error and request\u2019s cache mode is\n // not \"no-store\", then update response in httpCache for request.\n // TODO\n\n // 3. If includeCredentials is true and the user agent is not configured\n // to block cookies for request (see section 7 of [COOKIES]), then run the\n // \"set-cookie-string\" parsing algorithm (see section 5.2 of [COOKIES]) on\n // the value of each header whose name is a byte-case-insensitive match for\n // `Set-Cookie` in response\u2019s header list, if any, and request\u2019s current URL.\n // TODO\n\n // 18. If aborted, then:\n // TODO\n\n // 19. Run these steps in parallel:\n\n // 1. Run these steps, but abort when fetchParams is canceled:\n if (!fetchParams.controller.resume) {\n fetchParams.controller.on('terminated', onAborted)\n }\n\n fetchParams.controller.resume = async () => {\n // 1. While true\n while (true) {\n // 1-3. See onData...\n\n // 4. Set bytes to the result of handling content codings given\n // codings and bytes.\n let bytes\n let isFailure\n try {\n const { done, value } = await fetchParams.controller.next()\n\n if (isAborted(fetchParams)) {\n break\n }\n\n bytes = done ? undefined : value\n } catch (err) {\n if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {\n // zlib doesn't like empty streams.\n bytes = undefined\n } else {\n bytes = err\n\n // err may be propagated from the result of calling readablestream.cancel,\n // which might not be an error. https://github.com/nodejs/undici/issues/2009\n isFailure = true\n }\n }\n\n if (bytes === undefined) {\n // 2. Otherwise, if the bytes transmission for response\u2019s message\n // body is done normally and stream is readable, then close\n // stream, finalize response for fetchParams and response, and\n // abort these in-parallel steps.\n readableStreamClose(fetchParams.controller.controller)\n\n finalizeResponse(fetchParams, response)\n\n return\n }\n\n // 5. Increase timingInfo\u2019s decoded body size by bytes\u2019s length.\n timingInfo.decodedBodySize += bytes?.byteLength ?? 0\n\n // 6. If bytes is failure, then terminate fetchParams\u2019s controller.\n if (isFailure) {\n fetchParams.controller.terminate(bytes)\n return\n }\n\n // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes\n // into stream.\n const buffer = new Uint8Array(bytes)\n if (buffer.byteLength) {\n fetchParams.controller.controller.enqueue(buffer)\n }\n\n // 8. If stream is errored, then terminate the ongoing fetch.\n if (isErrored(stream)) {\n fetchParams.controller.terminate()\n return\n }\n\n // 9. If stream doesn\u2019t need more data ask the user agent to suspend\n // the ongoing fetch.\n if (fetchParams.controller.controller.desiredSize <= 0) {\n return\n }\n }\n }\n\n // 2. If aborted, then:\n function onAborted (reason) {\n // 2. If fetchParams is aborted, then:\n if (isAborted(fetchParams)) {\n // 1. Set response\u2019s aborted flag.\n response.aborted = true\n\n // 2. If stream is readable, then error stream with the result of\n // deserialize a serialized abort reason given fetchParams\u2019s\n // controller\u2019s serialized abort reason and an\n // implementation-defined realm.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(\n fetchParams.controller.serializedAbortReason\n )\n }\n } else {\n // 3. Otherwise, if stream is readable, error stream with a TypeError.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(new TypeError('terminated', {\n cause: isErrorLike(reason) ? reason : undefined\n }))\n }\n }\n\n // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.\n fetchParams.controller.connection.destroy()\n }\n\n // 20. Return response.\n return response\n\n function dispatch ({ body }) {\n const url = requestCurrentURL(request)\n /** @type {import('../..').Agent} */\n const agent = fetchParams.controller.dispatcher\n\n return new Promise((resolve, reject) => agent.dispatch(\n {\n path: url.pathname + url.search,\n origin: url.origin,\n method: request.method,\n body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,\n headers: request.headersList.entries,\n maxRedirections: 0,\n upgrade: request.mode === 'websocket' ? 'websocket' : undefined\n },\n {\n body: null,\n abort: null,\n\n onConnect (abort) {\n // TODO (fix): Do we need connection here?\n const { connection } = fetchParams.controller\n\n // Set timingInfo\u2019s final connection timing info to the result of calling clamp and coarsen\n // connection timing info with connection\u2019s timing info, timingInfo\u2019s post-redirect start\n // time, and fetchParams\u2019s cross-origin isolated capability.\n // TODO: implement connection timing\n timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability)\n\n if (connection.destroyed) {\n abort(new DOMException('The operation was aborted.', 'AbortError'))\n } else {\n fetchParams.controller.on('terminated', abort)\n this.abort = connection.abort = abort\n }\n\n // Set timingInfo\u2019s final network-request start time to the coarsened shared current time given\n // fetchParams\u2019s cross-origin isolated capability.\n timingInfo.finalNetworkRequestStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n },\n\n onResponseStarted () {\n // Set timingInfo\u2019s final network-response start time to the coarsened shared current\n // time given fetchParams\u2019s cross-origin isolated capability, immediately after the\n // user agent\u2019s HTTP parser receives the first byte of the response (e.g., frame header\n // bytes for HTTP/2 or response status line for HTTP/1.x).\n timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n },\n\n onHeaders (status, rawHeaders, resume, statusText) {\n if (status < 200) {\n return\n }\n\n let location = ''\n\n const headersList = new HeadersList()\n\n for (let i = 0; i < rawHeaders.length; i += 2) {\n headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true)\n }\n location = headersList.get('location', true)\n\n const decoders = []\n\n const willFollow = location && request.redirect === 'follow' &&\n redirectStatusSet.has(status)\n\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding\n if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {\n // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1\n const contentEncoding = headersList.get('content-encoding', true)\n // \"All content-coding values are case-insensitive...\"\n /** @type {string[]} */\n const codings = contentEncoding ? contentEncoding.toLowerCase().split(',') : []\n\n // Limit the number of content-encodings to prevent resource exhaustion.\n // CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).\n const maxContentEncodings = 5\n if (codings.length > maxContentEncodings) {\n this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))\n return true\n }\n\n for (let i = codings.length - 1; i >= 0; --i) {\n const coding = codings[i].trim()\n // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2\n if (coding === 'x-gzip' || coding === 'gzip') {\n decoders.push(zlib.createGunzip({\n // Be less strict when decoding compressed responses, since sometimes\n // servers send slightly invalid responses that are still accepted\n // by common browsers.\n // Always using Z_SYNC_FLUSH is what cURL does.\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n }))\n } else if (coding === 'deflate') {\n decoders.push(createInflate({\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n }))\n } else if (coding === 'br') {\n decoders.push(zlib.createBrotliDecompress({\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n }))\n } else {\n decoders.length = 0\n break\n }\n }\n }\n\n this.body = new Readable({ read: resume })\n\n const onError = this.onError.bind(this)\n\n resolve({\n status,\n statusText,\n headersList,\n body: decoders.length\n ? pipeline(this.body, ...decoders, (err) => {\n if (err) {\n this.onError(err)\n }\n }).on('error', onError)\n : this.body.on('error', onError)\n })\n\n return true\n },\n\n onData (chunk) {\n if (fetchParams.controller.dump) {\n return\n }\n\n // 1. If one or more bytes have been transmitted from response\u2019s\n // message body, then:\n\n // 1. Let bytes be the transmitted bytes.\n const bytes = chunk\n\n // 2. Let codings be the result of extracting header list values\n // given `Content-Encoding` and response\u2019s header list.\n // See pullAlgorithm.\n\n // 3. Increase timingInfo\u2019s encoded body size by bytes\u2019s length.\n timingInfo.encodedBodySize += bytes.byteLength\n\n // 4. See pullAlgorithm...\n\n return this.body.push(bytes)\n },\n\n onComplete () {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n fetchParams.controller.ended = true\n\n this.body.push(null)\n },\n\n onError (error) {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n this.body?.destroy(error)\n\n fetchParams.controller.terminate(error)\n\n reject(error)\n },\n\n onUpgrade (status, rawHeaders, socket) {\n if (status !== 101) {\n return\n }\n\n const headersList = new HeadersList()\n\n for (let i = 0; i < rawHeaders.length; i += 2) {\n headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true)\n }\n\n resolve({\n status,\n statusText: STATUS_CODES[status],\n headersList,\n socket\n })\n\n return true\n }\n }\n ))\n }\n}\n\nmodule.exports = {\n fetch,\n Fetch,\n fetching,\n finalizeAndReportTiming\n}\n", "'use strict'\n\nmodule.exports = {\n kState: Symbol('FileReader state'),\n kResult: Symbol('FileReader result'),\n kError: Symbol('FileReader error'),\n kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),\n kEvents: Symbol('FileReader events'),\n kAborted: Symbol('FileReader aborted')\n}\n", "'use strict'\n\nconst { webidl } = require('../fetch/webidl')\n\nconst kState = Symbol('ProgressEvent state')\n\n/**\n * @see https://xhr.spec.whatwg.org/#progressevent\n */\nclass ProgressEvent extends Event {\n constructor (type, eventInitDict = {}) {\n type = webidl.converters.DOMString(type, 'ProgressEvent constructor', 'type')\n eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})\n\n super(type, eventInitDict)\n\n this[kState] = {\n lengthComputable: eventInitDict.lengthComputable,\n loaded: eventInitDict.loaded,\n total: eventInitDict.total\n }\n }\n\n get lengthComputable () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].lengthComputable\n }\n\n get loaded () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].loaded\n }\n\n get total () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].total\n }\n}\n\nwebidl.converters.ProgressEventInit = webidl.dictionaryConverter([\n {\n key: 'lengthComputable',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'loaded',\n converter: webidl.converters['unsigned long long'],\n defaultValue: () => 0\n },\n {\n key: 'total',\n converter: webidl.converters['unsigned long long'],\n defaultValue: () => 0\n },\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n }\n])\n\nmodule.exports = {\n ProgressEvent\n}\n", "'use strict'\n\n/**\n * @see https://encoding.spec.whatwg.org/#concept-encoding-get\n * @param {string|undefined} label\n */\nfunction getEncoding (label) {\n if (!label) {\n return 'failure'\n }\n\n // 1. Remove any leading and trailing ASCII whitespace from label.\n // 2. If label is an ASCII case-insensitive match for any of the\n // labels listed in the table below, then return the\n // corresponding encoding; otherwise return failure.\n switch (label.trim().toLowerCase()) {\n case 'unicode-1-1-utf-8':\n case 'unicode11utf8':\n case 'unicode20utf8':\n case 'utf-8':\n case 'utf8':\n case 'x-unicode20utf8':\n return 'UTF-8'\n case '866':\n case 'cp866':\n case 'csibm866':\n case 'ibm866':\n return 'IBM866'\n case 'csisolatin2':\n case 'iso-8859-2':\n case 'iso-ir-101':\n case 'iso8859-2':\n case 'iso88592':\n case 'iso_8859-2':\n case 'iso_8859-2:1987':\n case 'l2':\n case 'latin2':\n return 'ISO-8859-2'\n case 'csisolatin3':\n case 'iso-8859-3':\n case 'iso-ir-109':\n case 'iso8859-3':\n case 'iso88593':\n case 'iso_8859-3':\n case 'iso_8859-3:1988':\n case 'l3':\n case 'latin3':\n return 'ISO-8859-3'\n case 'csisolatin4':\n case 'iso-8859-4':\n case 'iso-ir-110':\n case 'iso8859-4':\n case 'iso88594':\n case 'iso_8859-4':\n case 'iso_8859-4:1988':\n case 'l4':\n case 'latin4':\n return 'ISO-8859-4'\n case 'csisolatincyrillic':\n case 'cyrillic':\n case 'iso-8859-5':\n case 'iso-ir-144':\n case 'iso8859-5':\n case 'iso88595':\n case 'iso_8859-5':\n case 'iso_8859-5:1988':\n return 'ISO-8859-5'\n case 'arabic':\n case 'asmo-708':\n case 'csiso88596e':\n case 'csiso88596i':\n case 'csisolatinarabic':\n case 'ecma-114':\n case 'iso-8859-6':\n case 'iso-8859-6-e':\n case 'iso-8859-6-i':\n case 'iso-ir-127':\n case 'iso8859-6':\n case 'iso88596':\n case 'iso_8859-6':\n case 'iso_8859-6:1987':\n return 'ISO-8859-6'\n case 'csisolatingreek':\n case 'ecma-118':\n case 'elot_928':\n case 'greek':\n case 'greek8':\n case 'iso-8859-7':\n case 'iso-ir-126':\n case 'iso8859-7':\n case 'iso88597':\n case 'iso_8859-7':\n case 'iso_8859-7:1987':\n case 'sun_eu_greek':\n return 'ISO-8859-7'\n case 'csiso88598e':\n case 'csisolatinhebrew':\n case 'hebrew':\n case 'iso-8859-8':\n case 'iso-8859-8-e':\n case 'iso-ir-138':\n case 'iso8859-8':\n case 'iso88598':\n case 'iso_8859-8':\n case 'iso_8859-8:1988':\n case 'visual':\n return 'ISO-8859-8'\n case 'csiso88598i':\n case 'iso-8859-8-i':\n case 'logical':\n return 'ISO-8859-8-I'\n case 'csisolatin6':\n case 'iso-8859-10':\n case 'iso-ir-157':\n case 'iso8859-10':\n case 'iso885910':\n case 'l6':\n case 'latin6':\n return 'ISO-8859-10'\n case 'iso-8859-13':\n case 'iso8859-13':\n case 'iso885913':\n return 'ISO-8859-13'\n case 'iso-8859-14':\n case 'iso8859-14':\n case 'iso885914':\n return 'ISO-8859-14'\n case 'csisolatin9':\n case 'iso-8859-15':\n case 'iso8859-15':\n case 'iso885915':\n case 'iso_8859-15':\n case 'l9':\n return 'ISO-8859-15'\n case 'iso-8859-16':\n return 'ISO-8859-16'\n case 'cskoi8r':\n case 'koi':\n case 'koi8':\n case 'koi8-r':\n case 'koi8_r':\n return 'KOI8-R'\n case 'koi8-ru':\n case 'koi8-u':\n return 'KOI8-U'\n case 'csmacintosh':\n case 'mac':\n case 'macintosh':\n case 'x-mac-roman':\n return 'macintosh'\n case 'iso-8859-11':\n case 'iso8859-11':\n case 'iso885911':\n case 'tis-620':\n case 'windows-874':\n return 'windows-874'\n case 'cp1250':\n case 'windows-1250':\n case 'x-cp1250':\n return 'windows-1250'\n case 'cp1251':\n case 'windows-1251':\n case 'x-cp1251':\n return 'windows-1251'\n case 'ansi_x3.4-1968':\n case 'ascii':\n case 'cp1252':\n case 'cp819':\n case 'csisolatin1':\n case 'ibm819':\n case 'iso-8859-1':\n case 'iso-ir-100':\n case 'iso8859-1':\n case 'iso88591':\n case 'iso_8859-1':\n case 'iso_8859-1:1987':\n case 'l1':\n case 'latin1':\n case 'us-ascii':\n case 'windows-1252':\n case 'x-cp1252':\n return 'windows-1252'\n case 'cp1253':\n case 'windows-1253':\n case 'x-cp1253':\n return 'windows-1253'\n case 'cp1254':\n case 'csisolatin5':\n case 'iso-8859-9':\n case 'iso-ir-148':\n case 'iso8859-9':\n case 'iso88599':\n case 'iso_8859-9':\n case 'iso_8859-9:1989':\n case 'l5':\n case 'latin5':\n case 'windows-1254':\n case 'x-cp1254':\n return 'windows-1254'\n case 'cp1255':\n case 'windows-1255':\n case 'x-cp1255':\n return 'windows-1255'\n case 'cp1256':\n case 'windows-1256':\n case 'x-cp1256':\n return 'windows-1256'\n case 'cp1257':\n case 'windows-1257':\n case 'x-cp1257':\n return 'windows-1257'\n case 'cp1258':\n case 'windows-1258':\n case 'x-cp1258':\n return 'windows-1258'\n case 'x-mac-cyrillic':\n case 'x-mac-ukrainian':\n return 'x-mac-cyrillic'\n case 'chinese':\n case 'csgb2312':\n case 'csiso58gb231280':\n case 'gb2312':\n case 'gb_2312':\n case 'gb_2312-80':\n case 'gbk':\n case 'iso-ir-58':\n case 'x-gbk':\n return 'GBK'\n case 'gb18030':\n return 'gb18030'\n case 'big5':\n case 'big5-hkscs':\n case 'cn-big5':\n case 'csbig5':\n case 'x-x-big5':\n return 'Big5'\n case 'cseucpkdfmtjapanese':\n case 'euc-jp':\n case 'x-euc-jp':\n return 'EUC-JP'\n case 'csiso2022jp':\n case 'iso-2022-jp':\n return 'ISO-2022-JP'\n case 'csshiftjis':\n case 'ms932':\n case 'ms_kanji':\n case 'shift-jis':\n case 'shift_jis':\n case 'sjis':\n case 'windows-31j':\n case 'x-sjis':\n return 'Shift_JIS'\n case 'cseuckr':\n case 'csksc56011987':\n case 'euc-kr':\n case 'iso-ir-149':\n case 'korean':\n case 'ks_c_5601-1987':\n case 'ks_c_5601-1989':\n case 'ksc5601':\n case 'ksc_5601':\n case 'windows-949':\n return 'EUC-KR'\n case 'csiso2022kr':\n case 'hz-gb-2312':\n case 'iso-2022-cn':\n case 'iso-2022-cn-ext':\n case 'iso-2022-kr':\n case 'replacement':\n return 'replacement'\n case 'unicodefffe':\n case 'utf-16be':\n return 'UTF-16BE'\n case 'csunicode':\n case 'iso-10646-ucs-2':\n case 'ucs-2':\n case 'unicode':\n case 'unicodefeff':\n case 'utf-16':\n case 'utf-16le':\n return 'UTF-16LE'\n case 'x-user-defined':\n return 'x-user-defined'\n default: return 'failure'\n }\n}\n\nmodule.exports = {\n getEncoding\n}\n", "'use strict'\n\nconst {\n kState,\n kError,\n kResult,\n kAborted,\n kLastProgressEventFired\n} = require('./symbols')\nconst { ProgressEvent } = require('./progressevent')\nconst { getEncoding } = require('./encoding')\nconst { serializeAMimeType, parseMIMEType } = require('../fetch/data-url')\nconst { types } = require('node:util')\nconst { StringDecoder } = require('string_decoder')\nconst { btoa } = require('node:buffer')\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#readOperation\n * @param {import('./filereader').FileReader} fr\n * @param {import('buffer').Blob} blob\n * @param {string} type\n * @param {string?} encodingName\n */\nfunction readOperation (fr, blob, type, encodingName) {\n // 1. If fr\u2019s state is \"loading\", throw an InvalidStateError\n // DOMException.\n if (fr[kState] === 'loading') {\n throw new DOMException('Invalid state', 'InvalidStateError')\n }\n\n // 2. Set fr\u2019s state to \"loading\".\n fr[kState] = 'loading'\n\n // 3. Set fr\u2019s result to null.\n fr[kResult] = null\n\n // 4. Set fr\u2019s error to null.\n fr[kError] = null\n\n // 5. Let stream be the result of calling get stream on blob.\n /** @type {import('stream/web').ReadableStream} */\n const stream = blob.stream()\n\n // 6. Let reader be the result of getting a reader from stream.\n const reader = stream.getReader()\n\n // 7. Let bytes be an empty byte sequence.\n /** @type {Uint8Array[]} */\n const bytes = []\n\n // 8. Let chunkPromise be the result of reading a chunk from\n // stream with reader.\n let chunkPromise = reader.read()\n\n // 9. Let isFirstChunk be true.\n let isFirstChunk = true\n\n // 10. In parallel, while true:\n // Note: \"In parallel\" just means non-blocking\n // Note 2: readOperation itself cannot be async as double\n // reading the body would then reject the promise, instead\n // of throwing an error.\n ;(async () => {\n while (!fr[kAborted]) {\n // 1. Wait for chunkPromise to be fulfilled or rejected.\n try {\n const { done, value } = await chunkPromise\n\n // 2. If chunkPromise is fulfilled, and isFirstChunk is\n // true, queue a task to fire a progress event called\n // loadstart at fr.\n if (isFirstChunk && !fr[kAborted]) {\n queueMicrotask(() => {\n fireAProgressEvent('loadstart', fr)\n })\n }\n\n // 3. Set isFirstChunk to false.\n isFirstChunk = false\n\n // 4. If chunkPromise is fulfilled with an object whose\n // done property is false and whose value property is\n // a Uint8Array object, run these steps:\n if (!done && types.isUint8Array(value)) {\n // 1. Let bs be the byte sequence represented by the\n // Uint8Array object.\n\n // 2. Append bs to bytes.\n bytes.push(value)\n\n // 3. If roughly 50ms have passed since these steps\n // were last invoked, queue a task to fire a\n // progress event called progress at fr.\n if (\n (\n fr[kLastProgressEventFired] === undefined ||\n Date.now() - fr[kLastProgressEventFired] >= 50\n ) &&\n !fr[kAborted]\n ) {\n fr[kLastProgressEventFired] = Date.now()\n queueMicrotask(() => {\n fireAProgressEvent('progress', fr)\n })\n }\n\n // 4. Set chunkPromise to the result of reading a\n // chunk from stream with reader.\n chunkPromise = reader.read()\n } else if (done) {\n // 5. Otherwise, if chunkPromise is fulfilled with an\n // object whose done property is true, queue a task\n // to run the following steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr\u2019s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Let result be the result of package data given\n // bytes, type, blob\u2019s type, and encodingName.\n try {\n const result = packageData(bytes, type, blob.type, encodingName)\n\n // 4. Else:\n\n if (fr[kAborted]) {\n return\n }\n\n // 1. Set fr\u2019s result to result.\n fr[kResult] = result\n\n // 2. Fire a progress event called load at the fr.\n fireAProgressEvent('load', fr)\n } catch (error) {\n // 3. If package data threw an exception error:\n\n // 1. Set fr\u2019s error to error.\n fr[kError] = error\n\n // 2. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n }\n\n // 5. If fr\u2019s state is not \"loading\", fire a progress\n // event called loadend at the fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n } catch (error) {\n if (fr[kAborted]) {\n return\n }\n\n // 6. Otherwise, if chunkPromise is rejected with an\n // error error, queue a task to run the following\n // steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr\u2019s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Set fr\u2019s error to error.\n fr[kError] = error\n\n // 3. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n\n // 4. If fr\u2019s state is not \"loading\", fire a progress\n // event called loadend at fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n }\n })()\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#fire-a-progress-event\n * @see https://dom.spec.whatwg.org/#concept-event-fire\n * @param {string} e The name of the event\n * @param {import('./filereader').FileReader} reader\n */\nfunction fireAProgressEvent (e, reader) {\n // The progress event e does not bubble. e.bubbles must be false\n // The progress event e is NOT cancelable. e.cancelable must be false\n const event = new ProgressEvent(e, {\n bubbles: false,\n cancelable: false\n })\n\n reader.dispatchEvent(event)\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#blob-package-data\n * @param {Uint8Array[]} bytes\n * @param {string} type\n * @param {string?} mimeType\n * @param {string?} encodingName\n */\nfunction packageData (bytes, type, mimeType, encodingName) {\n // 1. A Blob has an associated package data algorithm, given\n // bytes, a type, a optional mimeType, and a optional\n // encodingName, which switches on type and runs the\n // associated steps:\n\n switch (type) {\n case 'DataURL': {\n // 1. Return bytes as a DataURL [RFC2397] subject to\n // the considerations below:\n // * Use mimeType as part of the Data URL if it is\n // available in keeping with the Data URL\n // specification [RFC2397].\n // * If mimeType is not available return a Data URL\n // without a media-type. [RFC2397].\n\n // https://datatracker.ietf.org/doc/html/rfc2397#section-3\n // dataurl := \"data:\" [ mediatype ] [ \";base64\" ] \",\" data\n // mediatype := [ type \"/\" subtype ] *( \";\" parameter )\n // data := *urlchar\n // parameter := attribute \"=\" value\n let dataURL = 'data:'\n\n const parsed = parseMIMEType(mimeType || 'application/octet-stream')\n\n if (parsed !== 'failure') {\n dataURL += serializeAMimeType(parsed)\n }\n\n dataURL += ';base64,'\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n dataURL += btoa(decoder.write(chunk))\n }\n\n dataURL += btoa(decoder.end())\n\n return dataURL\n }\n case 'Text': {\n // 1. Let encoding be failure\n let encoding = 'failure'\n\n // 2. If the encodingName is present, set encoding to the\n // result of getting an encoding from encodingName.\n if (encodingName) {\n encoding = getEncoding(encodingName)\n }\n\n // 3. If encoding is failure, and mimeType is present:\n if (encoding === 'failure' && mimeType) {\n // 1. Let type be the result of parse a MIME type\n // given mimeType.\n const type = parseMIMEType(mimeType)\n\n // 2. If type is not failure, set encoding to the result\n // of getting an encoding from type\u2019s parameters[\"charset\"].\n if (type !== 'failure') {\n encoding = getEncoding(type.parameters.get('charset'))\n }\n }\n\n // 4. If encoding is failure, then set encoding to UTF-8.\n if (encoding === 'failure') {\n encoding = 'UTF-8'\n }\n\n // 5. Decode bytes using fallback encoding encoding, and\n // return the result.\n return decode(bytes, encoding)\n }\n case 'ArrayBuffer': {\n // Return a new ArrayBuffer whose contents are bytes.\n const sequence = combineByteSequences(bytes)\n\n return sequence.buffer\n }\n case 'BinaryString': {\n // Return bytes as a binary string, in which every byte\n // is represented by a code unit of equal value [0..255].\n let binaryString = ''\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n binaryString += decoder.write(chunk)\n }\n\n binaryString += decoder.end()\n\n return binaryString\n }\n }\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#decode\n * @param {Uint8Array[]} ioQueue\n * @param {string} encoding\n */\nfunction decode (ioQueue, encoding) {\n const bytes = combineByteSequences(ioQueue)\n\n // 1. Let BOMEncoding be the result of BOM sniffing ioQueue.\n const BOMEncoding = BOMSniffing(bytes)\n\n let slice = 0\n\n // 2. If BOMEncoding is non-null:\n if (BOMEncoding !== null) {\n // 1. Set encoding to BOMEncoding.\n encoding = BOMEncoding\n\n // 2. Read three bytes from ioQueue, if BOMEncoding is\n // UTF-8; otherwise read two bytes.\n // (Do nothing with those bytes.)\n slice = BOMEncoding === 'UTF-8' ? 3 : 2\n }\n\n // 3. Process a queue with an instance of encoding\u2019s\n // decoder, ioQueue, output, and \"replacement\".\n\n // 4. Return output.\n\n const sliced = bytes.slice(slice)\n return new TextDecoder(encoding).decode(sliced)\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#bom-sniff\n * @param {Uint8Array} ioQueue\n */\nfunction BOMSniffing (ioQueue) {\n // 1. Let BOM be the result of peeking 3 bytes from ioQueue,\n // converted to a byte sequence.\n const [a, b, c] = ioQueue\n\n // 2. For each of the rows in the table below, starting with\n // the first one and going down, if BOM starts with the\n // bytes given in the first column, then return the\n // encoding given in the cell in the second column of that\n // row. Otherwise, return null.\n if (a === 0xEF && b === 0xBB && c === 0xBF) {\n return 'UTF-8'\n } else if (a === 0xFE && b === 0xFF) {\n return 'UTF-16BE'\n } else if (a === 0xFF && b === 0xFE) {\n return 'UTF-16LE'\n }\n\n return null\n}\n\n/**\n * @param {Uint8Array[]} sequences\n */\nfunction combineByteSequences (sequences) {\n const size = sequences.reduce((a, b) => {\n return a + b.byteLength\n }, 0)\n\n let offset = 0\n\n return sequences.reduce((a, b) => {\n a.set(b, offset)\n offset += b.byteLength\n return a\n }, new Uint8Array(size))\n}\n\nmodule.exports = {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n}\n", "'use strict'\n\nconst {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n} = require('./util')\nconst {\n kState,\n kError,\n kResult,\n kEvents,\n kAborted\n} = require('./symbols')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\n\nclass FileReader extends EventTarget {\n constructor () {\n super()\n\n this[kState] = 'empty'\n this[kResult] = null\n this[kError] = null\n this[kEvents] = {\n loadend: null,\n error: null,\n abort: null,\n load: null,\n progress: null,\n loadstart: null\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer\n * @param {import('buffer').Blob} blob\n */\n readAsArrayBuffer (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsArrayBuffer')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsArrayBuffer(blob) method, when invoked,\n // must initiate a read operation for blob with ArrayBuffer.\n readOperation(this, blob, 'ArrayBuffer')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsBinaryString\n * @param {import('buffer').Blob} blob\n */\n readAsBinaryString (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsBinaryString')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsBinaryString(blob) method, when invoked,\n // must initiate a read operation for blob with BinaryString.\n readOperation(this, blob, 'BinaryString')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsDataText\n * @param {import('buffer').Blob} blob\n * @param {string?} encoding\n */\n readAsText (blob, encoding = undefined) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsText')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n if (encoding !== undefined) {\n encoding = webidl.converters.DOMString(encoding, 'FileReader.readAsText', 'encoding')\n }\n\n // The readAsText(blob, encoding) method, when invoked,\n // must initiate a read operation for blob with Text and encoding.\n readOperation(this, blob, 'Text', encoding)\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL\n * @param {import('buffer').Blob} blob\n */\n readAsDataURL (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, 'FileReader.readAsDataURL')\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsDataURL(blob) method, when invoked, must\n // initiate a read operation for blob with DataURL.\n readOperation(this, blob, 'DataURL')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-abort\n */\n abort () {\n // 1. If this's state is \"empty\" or if this's state is\n // \"done\" set this's result to null and terminate\n // this algorithm.\n if (this[kState] === 'empty' || this[kState] === 'done') {\n this[kResult] = null\n return\n }\n\n // 2. If this's state is \"loading\" set this's state to\n // \"done\" and set this's result to null.\n if (this[kState] === 'loading') {\n this[kState] = 'done'\n this[kResult] = null\n }\n\n // 3. If there are any tasks from this on the file reading\n // task source in an affiliated task queue, then remove\n // those tasks from that task queue.\n this[kAborted] = true\n\n // 4. Terminate the algorithm for the read method being processed.\n // TODO\n\n // 5. Fire a progress event called abort at this.\n fireAProgressEvent('abort', this)\n\n // 6. If this's state is not \"loading\", fire a progress\n // event called loadend at this.\n if (this[kState] !== 'loading') {\n fireAProgressEvent('loadend', this)\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate\n */\n get readyState () {\n webidl.brandCheck(this, FileReader)\n\n switch (this[kState]) {\n case 'empty': return this.EMPTY\n case 'loading': return this.LOADING\n case 'done': return this.DONE\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-result\n */\n get result () {\n webidl.brandCheck(this, FileReader)\n\n // The result attribute\u2019s getter, when invoked, must return\n // this's result.\n return this[kResult]\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-error\n */\n get error () {\n webidl.brandCheck(this, FileReader)\n\n // The error attribute\u2019s getter, when invoked, must return\n // this's error.\n return this[kError]\n }\n\n get onloadend () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadend\n }\n\n set onloadend (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadend) {\n this.removeEventListener('loadend', this[kEvents].loadend)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadend = fn\n this.addEventListener('loadend', fn)\n } else {\n this[kEvents].loadend = null\n }\n }\n\n get onerror () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].error\n }\n\n set onerror (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].error) {\n this.removeEventListener('error', this[kEvents].error)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].error = fn\n this.addEventListener('error', fn)\n } else {\n this[kEvents].error = null\n }\n }\n\n get onloadstart () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadstart\n }\n\n set onloadstart (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadstart) {\n this.removeEventListener('loadstart', this[kEvents].loadstart)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadstart = fn\n this.addEventListener('loadstart', fn)\n } else {\n this[kEvents].loadstart = null\n }\n }\n\n get onprogress () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].progress\n }\n\n set onprogress (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].progress) {\n this.removeEventListener('progress', this[kEvents].progress)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].progress = fn\n this.addEventListener('progress', fn)\n } else {\n this[kEvents].progress = null\n }\n }\n\n get onload () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].load\n }\n\n set onload (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].load) {\n this.removeEventListener('load', this[kEvents].load)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].load = fn\n this.addEventListener('load', fn)\n } else {\n this[kEvents].load = null\n }\n }\n\n get onabort () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].abort\n }\n\n set onabort (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].abort) {\n this.removeEventListener('abort', this[kEvents].abort)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].abort = fn\n this.addEventListener('abort', fn)\n } else {\n this[kEvents].abort = null\n }\n }\n}\n\n// https://w3c.github.io/FileAPI/#dom-filereader-empty\nFileReader.EMPTY = FileReader.prototype.EMPTY = 0\n// https://w3c.github.io/FileAPI/#dom-filereader-loading\nFileReader.LOADING = FileReader.prototype.LOADING = 1\n// https://w3c.github.io/FileAPI/#dom-filereader-done\nFileReader.DONE = FileReader.prototype.DONE = 2\n\nObject.defineProperties(FileReader.prototype, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors,\n readAsArrayBuffer: kEnumerableProperty,\n readAsBinaryString: kEnumerableProperty,\n readAsText: kEnumerableProperty,\n readAsDataURL: kEnumerableProperty,\n abort: kEnumerableProperty,\n readyState: kEnumerableProperty,\n result: kEnumerableProperty,\n error: kEnumerableProperty,\n onloadstart: kEnumerableProperty,\n onprogress: kEnumerableProperty,\n onload: kEnumerableProperty,\n onabort: kEnumerableProperty,\n onerror: kEnumerableProperty,\n onloadend: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'FileReader',\n writable: false,\n enumerable: false,\n configurable: true\n }\n})\n\nObject.defineProperties(FileReader, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors\n})\n\nmodule.exports = {\n FileReader\n}\n", "'use strict'\n\nmodule.exports = {\n kConstruct: require('../../core/symbols').kConstruct\n}\n", "'use strict'\n\nconst assert = require('node:assert')\nconst { URLSerializer } = require('../fetch/data-url')\nconst { isValidHeaderName } = require('../fetch/util')\n\n/**\n * @see https://url.spec.whatwg.org/#concept-url-equals\n * @param {URL} A\n * @param {URL} B\n * @param {boolean | undefined} excludeFragment\n * @returns {boolean}\n */\nfunction urlEquals (A, B, excludeFragment = false) {\n const serializedA = URLSerializer(A, excludeFragment)\n\n const serializedB = URLSerializer(B, excludeFragment)\n\n return serializedA === serializedB\n}\n\n/**\n * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262\n * @param {string} header\n */\nfunction getFieldValues (header) {\n assert(header !== null)\n\n const values = []\n\n for (let value of header.split(',')) {\n value = value.trim()\n\n if (isValidHeaderName(value)) {\n values.push(value)\n }\n }\n\n return values\n}\n\nmodule.exports = {\n urlEquals,\n getFieldValues\n}\n", "'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { urlEquals, getFieldValues } = require('./util')\nconst { kEnumerableProperty, isDisturbed } = require('../../core/util')\nconst { webidl } = require('../fetch/webidl')\nconst { Response, cloneResponse, fromInnerResponse } = require('../fetch/response')\nconst { Request, fromInnerRequest } = require('../fetch/request')\nconst { kState } = require('../fetch/symbols')\nconst { fetching } = require('../fetch/index')\nconst { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require('../fetch/util')\nconst assert = require('node:assert')\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation\n * @typedef {Object} CacheBatchOperation\n * @property {'delete' | 'put'} type\n * @property {any} request\n * @property {any} response\n * @property {import('../../types/cache').CacheQueryOptions} options\n */\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list\n * @typedef {[any, any][]} requestResponseList\n */\n\nclass Cache {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list\n * @type {requestResponseList}\n */\n #relevantRequestResponseList\n\n constructor () {\n if (arguments[0] !== kConstruct) {\n webidl.illegalConstructor()\n }\n\n webidl.util.markAsUncloneable(this)\n this.#relevantRequestResponseList = arguments[1]\n }\n\n async match (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.match'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n const p = this.#internalMatchAll(request, options, 1)\n\n if (p.length === 0) {\n return\n }\n\n return p[0]\n }\n\n async matchAll (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.matchAll'\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n return this.#internalMatchAll(request, options)\n }\n\n async add (request) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.add'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n\n // 1.\n const requests = [request]\n\n // 2.\n const responseArrayPromise = this.addAll(requests)\n\n // 3.\n return await responseArrayPromise\n }\n\n async addAll (requests) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.addAll'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n // 1.\n const responsePromises = []\n\n // 2.\n const requestList = []\n\n // 3.\n for (let request of requests) {\n if (request === undefined) {\n throw webidl.errors.conversionFailed({\n prefix,\n argument: 'Argument 1',\n types: ['undefined is not allowed']\n })\n }\n\n request = webidl.converters.RequestInfo(request)\n\n if (typeof request === 'string') {\n continue\n }\n\n // 3.1\n const r = request[kState]\n\n // 3.2\n if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme when method is not GET.'\n })\n }\n }\n\n // 4.\n /** @type {ReturnType[]} */\n const fetchControllers = []\n\n // 5.\n for (const request of requests) {\n // 5.1\n const r = new Request(request)[kState]\n\n // 5.2\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected http/s scheme.'\n })\n }\n\n // 5.4\n r.initiator = 'fetch'\n r.destination = 'subresource'\n\n // 5.5\n requestList.push(r)\n\n // 5.6\n const responsePromise = createDeferredPromise()\n\n // 5.7\n fetchControllers.push(fetching({\n request: r,\n processResponse (response) {\n // 1.\n if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Received an invalid status code or the request failed.'\n }))\n } else if (response.headersList.contains('vary')) { // 2.\n // 2.1\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n // 2.2\n for (const fieldValue of fieldValues) {\n // 2.2.1\n if (fieldValue === '*') {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'invalid vary field value'\n }))\n\n for (const controller of fetchControllers) {\n controller.abort()\n }\n\n return\n }\n }\n }\n },\n processResponseEndOfBody (response) {\n // 1.\n if (response.aborted) {\n responsePromise.reject(new DOMException('aborted', 'AbortError'))\n return\n }\n\n // 2.\n responsePromise.resolve(response)\n }\n }))\n\n // 5.8\n responsePromises.push(responsePromise.promise)\n }\n\n // 6.\n const p = Promise.all(responsePromises)\n\n // 7.\n const responses = await p\n\n // 7.1\n const operations = []\n\n // 7.2\n let index = 0\n\n // 7.3\n for (const response of responses) {\n // 7.3.1\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 7.3.2\n request: requestList[index], // 7.3.3\n response // 7.3.4\n }\n\n operations.push(operation) // 7.3.5\n\n index++ // 7.3.6\n }\n\n // 7.5\n const cacheJobPromise = createDeferredPromise()\n\n // 7.6.1\n let errorData = null\n\n // 7.6.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 7.6.3\n queueMicrotask(() => {\n // 7.6.3.1\n if (errorData === null) {\n cacheJobPromise.resolve(undefined)\n } else {\n // 7.6.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n // 7.7\n return cacheJobPromise.promise\n }\n\n async put (request, response) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.put'\n webidl.argumentLengthCheck(arguments, 2, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n response = webidl.converters.Response(response, prefix, 'response')\n\n // 1.\n let innerRequest = null\n\n // 2.\n if (request instanceof Request) {\n innerRequest = request[kState]\n } else { // 3.\n innerRequest = new Request(request)[kState]\n }\n\n // 4.\n if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Expected an http/s scheme when method is not GET'\n })\n }\n\n // 5.\n const innerResponse = response[kState]\n\n // 6.\n if (innerResponse.status === 206) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got 206 status'\n })\n }\n\n // 7.\n if (innerResponse.headersList.contains('vary')) {\n // 7.1.\n const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))\n\n // 7.2.\n for (const fieldValue of fieldValues) {\n // 7.2.1\n if (fieldValue === '*') {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Got * vary field value'\n })\n }\n }\n }\n\n // 8.\n if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {\n throw webidl.errors.exception({\n header: prefix,\n message: 'Response body is locked or disturbed'\n })\n }\n\n // 9.\n const clonedResponse = cloneResponse(innerResponse)\n\n // 10.\n const bodyReadPromise = createDeferredPromise()\n\n // 11.\n if (innerResponse.body != null) {\n // 11.1\n const stream = innerResponse.body.stream\n\n // 11.2\n const reader = stream.getReader()\n\n // 11.3\n readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)\n } else {\n bodyReadPromise.resolve(undefined)\n }\n\n // 12.\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n // 13.\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 14.\n request: innerRequest, // 15.\n response: clonedResponse // 16.\n }\n\n // 17.\n operations.push(operation)\n\n // 19.\n const bytes = await bodyReadPromise.promise\n\n if (clonedResponse.body != null) {\n clonedResponse.body.source = bytes\n }\n\n // 19.1\n const cacheJobPromise = createDeferredPromise()\n\n // 19.2.1\n let errorData = null\n\n // 19.2.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 19.2.3\n queueMicrotask(() => {\n // 19.2.3.1\n if (errorData === null) {\n cacheJobPromise.resolve()\n } else { // 19.2.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n async delete (request, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n /**\n * @type {Request}\n */\n let r = null\n\n if (request instanceof Request) {\n r = request[kState]\n\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return false\n }\n } else {\n assert(typeof request === 'string')\n\n r = new Request(request)[kState]\n }\n\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'delete',\n request: r,\n options\n }\n\n operations.push(operation)\n\n const cacheJobPromise = createDeferredPromise()\n\n let errorData = null\n let requestResponses\n\n try {\n requestResponses = this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n queueMicrotask(() => {\n if (errorData === null) {\n cacheJobPromise.resolve(!!requestResponses?.length)\n } else {\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys\n * @param {any} request\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @returns {Promise}\n */\n async keys (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n const prefix = 'Cache.keys'\n\n if (request !== undefined) request = webidl.converters.RequestInfo(request, prefix, 'request')\n options = webidl.converters.CacheQueryOptions(options, prefix, 'options')\n\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n // 2.1\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') { // 2.2\n r = new Request(request)[kState]\n }\n }\n\n // 4.\n const promise = createDeferredPromise()\n\n // 5.\n // 5.1\n const requests = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n // 5.2.1.1\n requests.push(requestResponse[0])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n // 5.3.2.1\n requests.push(requestResponse[0])\n }\n }\n\n // 5.4\n queueMicrotask(() => {\n // 5.4.1\n const requestList = []\n\n // 5.4.2\n for (const request of requests) {\n const requestObject = fromInnerRequest(\n request,\n new AbortController().signal,\n 'immutable'\n )\n // 5.4.2.1\n requestList.push(requestObject)\n }\n\n // 5.4.3\n promise.resolve(Object.freeze(requestList))\n })\n\n return promise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm\n * @param {CacheBatchOperation[]} operations\n * @returns {requestResponseList}\n */\n #batchCacheOperations (operations) {\n // 1.\n const cache = this.#relevantRequestResponseList\n\n // 2.\n const backupCache = [...cache]\n\n // 3.\n const addedItems = []\n\n // 4.1\n const resultList = []\n\n try {\n // 4.2\n for (const operation of operations) {\n // 4.2.1\n if (operation.type !== 'delete' && operation.type !== 'put') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'operation type does not match \"delete\" or \"put\"'\n })\n }\n\n // 4.2.2\n if (operation.type === 'delete' && operation.response != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'delete operation should not have an associated response'\n })\n }\n\n // 4.2.3\n if (this.#queryCache(operation.request, operation.options, addedItems).length) {\n throw new DOMException('???', 'InvalidStateError')\n }\n\n // 4.2.4\n let requestResponses\n\n // 4.2.5\n if (operation.type === 'delete') {\n // 4.2.5.1\n requestResponses = this.#queryCache(operation.request, operation.options)\n\n // TODO: the spec is wrong, this is needed to pass WPTs\n if (requestResponses.length === 0) {\n return []\n }\n\n // 4.2.5.2\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.5.2.1\n cache.splice(idx, 1)\n }\n } else if (operation.type === 'put') { // 4.2.6\n // 4.2.6.1\n if (operation.response == null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'put operation should have an associated response'\n })\n }\n\n // 4.2.6.2\n const r = operation.request\n\n // 4.2.6.3\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'expected http or https scheme'\n })\n }\n\n // 4.2.6.4\n if (r.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'not get method'\n })\n }\n\n // 4.2.6.5\n if (operation.options != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'options must not be defined'\n })\n }\n\n // 4.2.6.6\n requestResponses = this.#queryCache(operation.request)\n\n // 4.2.6.7\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.6.7.1\n cache.splice(idx, 1)\n }\n\n // 4.2.6.8\n cache.push([operation.request, operation.response])\n\n // 4.2.6.10\n addedItems.push([operation.request, operation.response])\n }\n\n // 4.2.7\n resultList.push([operation.request, operation.response])\n }\n\n // 4.3\n return resultList\n } catch (e) { // 5.\n // 5.1\n this.#relevantRequestResponseList.length = 0\n\n // 5.2\n this.#relevantRequestResponseList = backupCache\n\n // 5.3\n throw e\n }\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#query-cache\n * @param {any} requestQuery\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @param {requestResponseList} targetStorage\n * @returns {requestResponseList}\n */\n #queryCache (requestQuery, options, targetStorage) {\n /** @type {requestResponseList} */\n const resultList = []\n\n const storage = targetStorage ?? this.#relevantRequestResponseList\n\n for (const requestResponse of storage) {\n const [cachedRequest, cachedResponse] = requestResponse\n if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {\n resultList.push(requestResponse)\n }\n }\n\n return resultList\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm\n * @param {any} requestQuery\n * @param {any} request\n * @param {any | null} response\n * @param {import('../../types/cache').CacheQueryOptions | undefined} options\n * @returns {boolean}\n */\n #requestMatchesCachedItem (requestQuery, request, response = null, options) {\n // if (options?.ignoreMethod === false && request.method === 'GET') {\n // return false\n // }\n\n const queryURL = new URL(requestQuery.url)\n\n const cachedURL = new URL(request.url)\n\n if (options?.ignoreSearch) {\n cachedURL.search = ''\n\n queryURL.search = ''\n }\n\n if (!urlEquals(queryURL, cachedURL, true)) {\n return false\n }\n\n if (\n response == null ||\n options?.ignoreVary ||\n !response.headersList.contains('vary')\n ) {\n return true\n }\n\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n for (const fieldValue of fieldValues) {\n if (fieldValue === '*') {\n return false\n }\n\n const requestValue = request.headersList.get(fieldValue)\n const queryValue = requestQuery.headersList.get(fieldValue)\n\n // If one has the header and the other doesn't, or one has\n // a different value than the other, return false\n if (requestValue !== queryValue) {\n return false\n }\n }\n\n return true\n }\n\n #internalMatchAll (request, options, maxResponses = Infinity) {\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') {\n // 2.2.1\n r = new Request(request)[kState]\n }\n }\n\n // 5.\n // 5.1\n const responses = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n responses.push(requestResponse[1])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n responses.push(requestResponse[1])\n }\n }\n\n // 5.4\n // We don't implement CORs so we don't need to loop over the responses, yay!\n\n // 5.5.1\n const responseList = []\n\n // 5.5.2\n for (const response of responses) {\n // 5.5.2.1\n const responseObject = fromInnerResponse(response, 'immutable')\n\n responseList.push(responseObject.clone())\n\n if (responseList.length >= maxResponses) {\n break\n }\n }\n\n // 6.\n return Object.freeze(responseList)\n }\n}\n\nObject.defineProperties(Cache.prototype, {\n [Symbol.toStringTag]: {\n value: 'Cache',\n configurable: true\n },\n match: kEnumerableProperty,\n matchAll: kEnumerableProperty,\n add: kEnumerableProperty,\n addAll: kEnumerableProperty,\n put: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nconst cacheQueryOptionConverters = [\n {\n key: 'ignoreSearch',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreMethod',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n },\n {\n key: 'ignoreVary',\n converter: webidl.converters.boolean,\n defaultValue: () => false\n }\n]\n\nwebidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)\n\nwebidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([\n ...cacheQueryOptionConverters,\n {\n key: 'cacheName',\n converter: webidl.converters.DOMString\n }\n])\n\nwebidl.converters.Response = webidl.interfaceConverter(Response)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.RequestInfo\n)\n\nmodule.exports = {\n Cache\n}\n", "'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { Cache } = require('./cache')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../../core/util')\n\nclass CacheStorage {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map\n * @type {Map}\n */\n async has (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.has'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1.1\n // 2.2\n return this.#caches.has(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open\n * @param {string} cacheName\n * @returns {Promise}\n */\n async open (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.open'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n // 2.1\n if (this.#caches.has(cacheName)) {\n // await caches.open('v1') !== await caches.open('v1')\n\n // 2.1.1\n const cache = this.#caches.get(cacheName)\n\n // 2.1.1.1\n return new Cache(kConstruct, cache)\n }\n\n // 2.2\n const cache = []\n\n // 2.3\n this.#caches.set(cacheName, cache)\n\n // 2.4\n return new Cache(kConstruct, cache)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete\n * @param {string} cacheName\n * @returns {Promise}\n */\n async delete (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n\n const prefix = 'CacheStorage.delete'\n webidl.argumentLengthCheck(arguments, 1, prefix)\n\n cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName')\n\n return this.#caches.delete(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys\n * @returns {Promise}\n */\n async keys () {\n webidl.brandCheck(this, CacheStorage)\n\n // 2.1\n const keys = this.#caches.keys()\n\n // 2.2\n return [...keys]\n }\n}\n\nObject.defineProperties(CacheStorage.prototype, {\n [Symbol.toStringTag]: {\n value: 'CacheStorage',\n configurable: true\n },\n match: kEnumerableProperty,\n has: kEnumerableProperty,\n open: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nmodule.exports = {\n CacheStorage\n}\n", "'use strict'\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size\nconst maxAttributeValueSize = 1024\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size\nconst maxNameValuePairSize = 4096\n\nmodule.exports = {\n maxAttributeValueSize,\n maxNameValuePairSize\n}\n", "'use strict'\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nfunction isCTLExcludingHtab (value) {\n for (let i = 0; i < value.length; ++i) {\n const code = value.charCodeAt(i)\n\n if (\n (code >= 0x00 && code <= 0x08) ||\n (code >= 0x0A && code <= 0x1F) ||\n code === 0x7F\n ) {\n return true\n }\n }\n return false\n}\n\n/**\n CHAR = \n token = 1*\n separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n | \",\" | \";\" | \":\" | \"\\\" | <\">\n | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n | \"{\" | \"}\" | SP | HT\n * @param {string} name\n */\nfunction validateCookieName (name) {\n for (let i = 0; i < name.length; ++i) {\n const code = name.charCodeAt(i)\n\n if (\n code < 0x21 || // exclude CTLs (0-31), SP and HT\n code > 0x7E || // exclude non-ascii and DEL\n code === 0x22 || // \"\n code === 0x28 || // (\n code === 0x29 || // )\n code === 0x3C || // <\n code === 0x3E || // >\n code === 0x40 || // @\n code === 0x2C || // ,\n code === 0x3B || // ;\n code === 0x3A || // :\n code === 0x5C || // \\\n code === 0x2F || // /\n code === 0x5B || // [\n code === 0x5D || // ]\n code === 0x3F || // ?\n code === 0x3D || // =\n code === 0x7B || // {\n code === 0x7D // }\n ) {\n throw new Error('Invalid cookie name')\n }\n }\n}\n\n/**\n cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace DQUOTE, comma, semicolon,\n ; and backslash\n * @param {string} value\n */\nfunction validateCookieValue (value) {\n let len = value.length\n let i = 0\n\n // if the value is wrapped in DQUOTE\n if (value[0] === '\"') {\n if (len === 1 || value[len - 1] !== '\"') {\n throw new Error('Invalid cookie value')\n }\n --len\n ++i\n }\n\n while (i < len) {\n const code = value.charCodeAt(i++)\n\n if (\n code < 0x21 || // exclude CTLs (0-31)\n code > 0x7E || // non-ascii and DEL (127)\n code === 0x22 || // \"\n code === 0x2C || // ,\n code === 0x3B || // ;\n code === 0x5C // \\\n ) {\n throw new Error('Invalid cookie value')\n }\n }\n}\n\n/**\n * path-value = \n * @param {string} path\n */\nfunction validateCookiePath (path) {\n for (let i = 0; i < path.length; ++i) {\n const code = path.charCodeAt(i)\n\n if (\n code < 0x20 || // exclude CTLs (0-31)\n code > 0x7E || // exclude DEL and non-ascii\n code === 0x3B // ;\n ) {\n throw new Error('Invalid cookie path')\n }\n }\n}\n\n/**\n * ::= | \n *\n * ::= any one of the 52 alphabetic characters A through Z in\n * upper case and a through z in lower case\n *\n * ::= any one of the ten digits 0 through 9r\n *\n * @see https://www.rfc-editor.org/rfc/rfc1034#section-3.5\n * @param {number} code\n */\nfunction isLetterOrDigit (code) {\n return (\n (code >= 0x30 && code <= 0x39) || // 0-9\n (code >= 0x41 && code <= 0x5A) || // A-Z\n (code >= 0x61 && code <= 0x7A) // a-z\n )\n}\n\n/**\n * Validates a cookie domain against the \"preferred name syntax\".\n *\n * ::= | \" \"\n * ::=