From 0cce56167aa8cb73df94abe3e14f5c032aaa02fa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2026 06:02:42 +0000 Subject: [PATCH] [dependabot skip] chore: update generated content --- dist/index.cjs | 236 ++++++++++++++++++++++----------------------- dist/index.cjs.map | 8 +- dist/licenses.txt | 26 ++--- 3 files changed, 135 insertions(+), 135 deletions(-) diff --git a/dist/index.cjs b/dist/index.cjs index ddb1ff5..27c450d 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -1,81 +1,81 @@ -var Lje=Object.create;var FC=Object.defineProperty;var Mje=Object.getOwnPropertyDescriptor;var Fje=Object.getOwnPropertyNames;var Uje=Object.getPrototypeOf,qje=Object.prototype.hasOwnProperty;var i=(t,e)=>FC(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cr=(t,e)=>{for(var r in e)FC(t,r,{get:e[r],enumerable:!0})},jte=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Fje(e))!qje.call(t,s)&&s!==r&&FC(t,s,{get:()=>e[s],enumerable:!(n=Mje(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?Lje(Uje(t)):{},jte(e||!t||!t.__esModule?FC(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>jte(FC({},"__esModule",{value:!0}),t);var ore=S(Xh=>{"use strict";var wXt=require("net"),Wje=require("tls"),m2=require("http"),rre=require("https"),Jje=require("events"),xXt=require("assert"),Yje=require("util");Xh.httpOverHttp=jje;Xh.httpsOverHttp=Kje;Xh.httpOverHttps=Xje;Xh.httpsOverHttps=Zje;function jje(t){var e=new Yl(t);return e.request=m2.request,e}i(jje,"httpOverHttp");function Kje(t){var e=new Yl(t);return e.request=m2.request,e.createSocket=nre,e.defaultPort=443,e}i(Kje,"httpsOverHttp");function Xje(t){var e=new Yl(t);return e.request=rre.request,e}i(Xje,"httpOverHttps");function Zje(t){var e=new Yl(t);return e.request=rre.request,e.createSocket=nre,e.defaultPort=443,e}i(Zje,"httpsOverHttps");function Yl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||m2.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=sre(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");Yl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=h2({},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")),Zu("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){Zu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();var h=new Error("tunneling socket could not be established, statusCode="+p.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(m.length>0){Zu("got illegal response body from proxy"),f.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Zu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),Zu(`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");Yl.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 nre(t,e){var r=this;Yl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=h2({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Wje.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(nre,"createSecureSocket");function sre(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(sre,"toOptions");function h2(t){for(var e=1,r=arguments.length;e{ire.exports=ore()});var Ht=S((NXt,are)=>{are.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 at=S((TXt,vre)=>{"use strict";var cre=Symbol.for("undici.error.UND_ERR"),zt=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[cre]===!0}[cre]=!0},lre=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),A2=class extends zt{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[lre]===!0}[lre]=!0},ure=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),g2=class extends zt{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[ure]===!0}[ure]=!0},dre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),y2=class extends zt{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[dre]===!0}[dre]=!0},pre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),E2=class extends zt{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[pre]===!0}[pre]=!0},fre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),C2=class extends zt{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[fre]===!0}[fre]=!0},mre=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),I2=class extends zt{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[mre]===!0}[mre]=!0},hre=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),S2=class extends zt{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[hre]===!0}[hre]=!0},Are=Symbol.for("undici.error.UND_ERR_ABORT"),dB=class extends zt{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[Are]===!0}[Are]=!0},gre=Symbol.for("undici.error.UND_ERR_ABORTED"),w2=class extends dB{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[gre]===!0}[gre]=!0},yre=Symbol.for("undici.error.UND_ERR_INFO"),x2=class extends zt{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[yre]===!0}[yre]=!0},Ere=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),b2=class extends zt{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[Ere]===!0}[Ere]=!0},Cre=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),B2=class extends zt{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[Cre]===!0}[Cre]=!0},Ire=Symbol.for("undici.error.UND_ERR_DESTROYED"),R2=class extends zt{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[Ire]===!0}[Ire]=!0},Sre=Symbol.for("undici.error.UND_ERR_CLOSED"),N2=class extends zt{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[Sre]===!0}[Sre]=!0},wre=Symbol.for("undici.error.UND_ERR_SOCKET"),T2=class extends zt{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[wre]===!0}[wre]=!0},xre=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),P2=class extends zt{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[xre]===!0}[xre]=!0},bre=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),_2=class extends zt{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[bre]===!0}[bre]=!0},Bre=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),v2=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[Bre]===!0}[Bre]=!0},Rre=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),Q2=class extends zt{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[Rre]===!0}[Rre]=!0},Nre=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),D2=class extends zt{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[Nre]===!0}[Nre]=!0},Tre=Symbol.for("undici.error.UND_ERR_RESPONSE"),k2=class extends zt{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[Tre]===!0}[Tre]=!0},Pre=Symbol.for("undici.error.UND_ERR_PRX_TLS"),O2=class extends zt{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[Pre]===!0}[Pre]=!0},_re=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),L2=class extends zt{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[_re]===!0}get[_re](){return!0}};vre.exports={AbortError:dB,HTTPParserError:v2,UndiciError:zt,HeadersTimeoutError:g2,HeadersOverflowError:y2,BodyTimeoutError:E2,RequestContentLengthMismatchError:b2,ConnectTimeoutError:A2,ResponseStatusCodeError:C2,InvalidArgumentError:I2,InvalidReturnValueError:S2,RequestAbortedError:w2,ClientDestroyedError:R2,ClientClosedError:N2,InformationalError:x2,SocketError:T2,NotSupportedError:P2,ResponseContentLengthMismatchError:B2,BalancedPoolMissingUpstreamError:_2,ResponseExceededMaxSizeError:Q2,RequestRetryError:D2,ResponseError:k2,SecureProxyConnectionError:O2,MessageSizeExceededError:L2}});var fB=S((_Xt,Qre)=>{"use strict";var pB={},M2=["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:Dre,headerNameLowerCasedRecord:e5e}=fB(),F2=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 UC=require("node:assert"),{kDestroyed:Fre,kBodyUsed:eA,kListeners:U2,kBody:Mre}=Ht(),{IncomingMessage:t5e}=require("node:http"),gB=require("node:stream"),r5e=require("node:net"),{Blob:n5e}=require("node:buffer"),s5e=require("node:util"),{stringify:o5e}=require("node:querystring"),{EventEmitter:i5e}=require("node:events"),{InvalidArgumentError:nn}=at(),{headerNameLowerCasedRecord:a5e}=fB(),{tree:Ure}=Lre(),[c5e,l5e]=process.versions.node.split(".").map(t=>Number(t)),AB=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[Mre]=e,this[eA]=!1}async*[Symbol.asyncIterator](){UC(!this[eA],"disturbed"),this[eA]=!0,yield*this[Mre]}};function u5e(t){return yB(t)?(zre(t)===0&&t.on("data",function(){UC(!1)}),typeof t.readableDidRead!="boolean"&&(t[eA]=!1,i5e.prototype.on.call(t,"data",function(){this[eA]=!0})),t):t&&typeof t.pipeTo=="function"?new AB(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&Hre(t)?new AB(t):t}i(u5e,"wrapRequestBody");function d5e(){}i(d5e,"nop");function yB(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(yB,"isStream");function qre(t){if(t===null)return!1;if(t instanceof n5e)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(qre,"isBlobLike");function p5e(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=o5e(e);return r&&(t+="?"+r),t}i(p5e,"buildURL");function $re(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i($re,"isValidPort");function hB(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(hB,"isHttpOrHttpsPrefixed");function Gre(t){if(typeof t=="string"){if(t=new URL(t),!hB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new nn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&$re(t.port)===!1)throw new nn("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 nn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new nn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new nn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new nn("Invalid URL origin: the origin must be a string or null/undefined.");if(!hB(t.origin||t.protocol))throw new nn("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(!hB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(Gre,"parseURL");function f5e(t){if(t=Gre(t),t.pathname!=="/"||t.search||t.hash)throw new nn("invalid url");return t}i(f5e,"parseOrigin");function m5e(t){if(t[0]==="["){let r=t.indexOf("]");return UC(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(m5e,"getHostname");function h5e(t){if(!t)return null;UC(typeof t=="string");let e=m5e(t);return r5e.isIP(e)?"":e}i(h5e,"getServerName");function A5e(t){return JSON.parse(JSON.stringify(t))}i(A5e,"deepClone");function g5e(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(g5e,"isAsyncIterable");function Hre(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(Hre,"isIterable");function zre(t){if(t==null)return 0;if(yB(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(qre(t))return t.size!=null?t.size:null;if(Jre(t))return t.byteLength}return null}i(zre,"bodyLength");function Vre(t){return t&&!!(t.destroyed||t[Fre]||gB.isDestroyed?.(t))}i(Vre,"isDestroyed");function y5e(t,e){t==null||!yB(t)||Vre(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===t5e&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[Fre]=!0))}i(y5e,"destroy");var E5e=/timeout=(\d+)/;function C5e(t){let e=t.toString().match(E5e);return e?parseInt(e[1],10)*1e3:null}i(C5e,"parseKeepAliveTimeout");function Wre(t){return typeof t=="string"?a5e[t]??t.toLowerCase():Ure.lookup(t)??t.toString("latin1").toLowerCase()}i(Wre,"headerNameToString");function I5e(t){return Ure.lookup(t)??t.toString("latin1").toLowerCase()}i(I5e,"bufferToLowerCasedHeaderName");function S5e(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(S5e,"parseHeaders");function w5e(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(T5e,"ReadableStreamFrom");function P5e(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(P5e,"isFormDataLike");function _5e(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(_5e,"addAbortListener");var v5e=typeof String.prototype.toWellFormed=="function",Q5e=typeof String.prototype.isWellFormed=="function";function Yre(t){return v5e?`${t}`.toWellFormed():s5e.toUSVString(t)}i(Yre,"toUSVString");function D5e(t){return Q5e?`${t}`.isWellFormed():Yre(t)===`${t}`}i(D5e,"isUSVString");function jre(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(jre,"isTokenCharCode");function k5e(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var ht=require("node:diagnostics_channel"),G2=require("node:util"),EB=G2.debuglog("undici"),$2=G2.debuglog("fetch"),mf=G2.debuglog("websocket"),ene=!1,$5e={beforeConnect:ht.channel("undici:client:beforeConnect"),connected:ht.channel("undici:client:connected"),connectError:ht.channel("undici:client:connectError"),sendHeaders:ht.channel("undici:client:sendHeaders"),create:ht.channel("undici:request:create"),bodySent:ht.channel("undici:request:bodySent"),headers:ht.channel("undici:request:headers"),trailers:ht.channel("undici:request:trailers"),error:ht.channel("undici:request:error"),open:ht.channel("undici:websocket:open"),close:ht.channel("undici:websocket:close"),socketError:ht.channel("undici:websocket:socket_error"),ping:ht.channel("undici:websocket:ping"),pong:ht.channel("undici:websocket:pong")};if(EB.enabled||$2.enabled){let t=$2.enabled?$2:EB;ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),ene=!0}if(mf.enabled){if(!ene){let t=EB.enabled?EB:mf;ht.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)}),ht.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)}),ht.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)}),ht.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)})}ht.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;mf("connection opened %s%s",e,r?`:${r}`:"")}),ht.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;mf("closed connection to %s - %s %s",e.url,r,n)}),ht.channel("undici:websocket:socket_error").subscribe(t=>{mf("connection errored - %s",t.message)}),ht.channel("undici:websocket:ping").subscribe(t=>{mf("ping received")}),ht.channel("undici:websocket:pong").subscribe(t=>{mf("pong received")})}tne.exports={channels:$5e}});var one=S((LXt,sne)=>{"use strict";var{InvalidArgumentError:It,NotSupportedError:G5e}=at(),mo=require("node:assert"),{isValidHTTPToken:nne,isValidHeaderValue:qC,isStream:H5e,destroy:z5e,isBuffer:V5e,isFormDataLike:W5e,isIterable:J5e,isBlobLike:Y5e,buildURL:j5e,validateHandler:K5e,getServerName:X5e,normalizedMethodRecords:Z5e}=Je(),{channels:xn}=tA(),{headerNameLowerCasedRecord:rne}=fB(),e6e=/[^\u0021-\u00ff]/,ti=Symbol("handler"),H2=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:h,servername:A},y){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(e6e.test(r))throw new It("invalid request path");if(typeof n!="string")throw new It("method must be a string");if(Z5e[n]===void 0&&!nne(n))throw new It("invalid request method");if(u&&typeof u!="string")throw new It("upgrade must be a string");if(u&&!qC(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(h!=null&&typeof h!="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(H5e(s)){this.body=s;let E=this.body._readableState;(!E||!E.autoDestroy)&&(this.endHandler=i(function(){z5e(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(V5e(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(W5e(s)||J5e(s)||Y5e(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?j5e(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=h??!1,Array.isArray(o)){if(o.length%2!==0)throw new It("headers array must be even");for(let E=0;E{"use strict";var t6e=require("node:events"),IB=class extends t6e{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 z2(this,n)}},z2=class extends IB{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)}};ine.exports=IB});var oA=S((qXt,cne)=>{"use strict";var r6e=require("node:buffer"),n6e=$C(),{ClientDestroyedError:V2,ClientClosedError:s6e,InvalidArgumentError:rA}=at(),{kDestroy:o6e,kClose:i6e,kClosed:GC,kDestroyed:nA,kDispatch:W2,kInterceptors:hf}=Ht(),jl=Symbol("onDestroyed"),sA=Symbol("onClosed"),SB=Symbol("Intercepted Dispatch"),J2=Symbol("webSocketOptions"),ane=Symbol("eventSourceOptions"),Y2=class extends n6e{static{i(this,"DispatcherBase")}constructor(e){super(),this[nA]=!1,this[jl]=null,this[GC]=!1,this[sA]=[],this[J2]=e?.webSocket??{},this[ane]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[J2].maxFragments??131072,maxPayloadSize:this[J2].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[ane].maxEventSize??r6e.kStringMaxLength}}get destroyed(){return this[nA]}get closed(){return this[GC]}get interceptors(){return this[hf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[hf][r]!="function")throw new rA("interceptor must be an function")}this[hf]=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 rA("invalid callback");if(this[nA]){queueMicrotask(()=>e(new V2,null));return}if(this[GC]){this[sA]?this[sA].push(e):queueMicrotask(()=>e(null,null));return}this[GC]=!0,this[sA].push(e);let r=i(()=>{let n=this[sA];this[sA]=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 rA("invalid callback");if(this[nA]){this[jl]?this[jl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new V2),this[nA]=!0,this[jl]=this[jl]||[],this[jl].push(r);let n=i(()=>{let s=this[jl];this[jl]=null;for(let o=0;o{queueMicrotask(n)})}[SB](e,r){if(!this[hf]||this[hf].length===0)return this[SB]=this[W2],this[W2](e,r);let n=this[W2].bind(this);for(let s=this[hf].length-1;s>=0;s--)n=this[hf][s](n);return this[SB]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new rA("handler must be an object");try{if(!e||typeof e!="object")throw new rA("opts must be an object.");if(this[nA]||this[jl])throw new V2;if(this[GC])throw new s6e;return this[SB](e,r)}catch(n){if(typeof r.onError!="function")throw new rA("invalid onError method");return r.onError(n),!1}}};cne.exports=Y2});var rq=S((GXt,pne)=>{"use strict";var iA=0,j2=1e3,K2=(j2>>1)-1,Kl,X2=Symbol("kFastTimer"),Xl=[],Z2=-2,eq=-1,une=0,lne=1;function tq(){iA+=K2;let t=0,e=Xl.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=eq,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===eq?(r._state=Z2,--e!==0&&(Xl[t]=Xl[e])):++t}Xl.length=e,Xl.length!==0&&dne()}i(tq,"onTick");function dne(){Kl?Kl.refresh():(clearTimeout(Kl),Kl=setTimeout(tq,K2),Kl.unref&&Kl.unref())}i(dne,"refreshTimeout");var wB=class{static{i(this,"FastTimer")}[X2]=!0;_state=Z2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===Z2&&Xl.push(this),(!Kl||Xl.length===1)&&dne(),this._state=une}clear(){this._state=eq,this._idleStart=-1}};pne.exports={setTimeout(t,e,r){return e<=j2?setTimeout(t,e,r):new wB(t,e,r)},clearTimeout(t){t[X2]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new wB(t,e,r)},clearFastTimeout(t){t.clear()},now(){return iA},tick(t=0){iA+=t-j2+1,tq(),tq()},reset(){iA=0,Xl.length=0,clearTimeout(Kl),Kl=null},kFastTimer:X2}});var HC=S((WXt,gne)=>{"use strict";var a6e=require("node:net"),fne=require("node:assert"),Ane=Je(),{InvalidArgumentError:c6e,ConnectTimeoutError:l6e}=at(),xB=rq();function mne(){}i(mne,"noop");var nq,sq;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?sq=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 u6e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new c6e("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new sq(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:f,servername:m,localAddress:h,httpSocket:A},y){let E;if(p==="https:"){nq||(nq=require("node:tls")),m=m||a.servername||Ane.getServerName(d)||null;let x=m||u;fne(x);let b=s||c.get(x)||null;f=f||443,E=nq.connect({highWaterMark:16384,...a,servername:m,session:b,localAddress:h,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:f,host:u}),E.on("session",function(N){c.set(x,N)})}else fne(!A,"httpSocket can only be sent on TLS update"),f=f||80,E=a6e.connect({highWaterMark:64*1024,...a,localAddress:h,port:f,host:u});if(a.keepAlive==null||a.keepAlive){let x=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;E.setKeepAlive(!0,x)}let I=d6e(new WeakRef(E),{timeout:n,hostname:u,port:f});return E.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(I),y){let x=y;y=null,x(null,this)}}).on("error",function(x){if(queueMicrotask(I),y){let b=y;y=null,b(x)}}),E},"connect")}i(u6e,"buildConnector");var d6e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return mne;let r=null,n=null,s=xB.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>hne(t.deref(),e))})},e.timeout);return()=>{xB.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return mne;let r=null,n=xB.setFastTimeout(()=>{r=setImmediate(()=>{hne(t.deref(),e)})},e.timeout);return()=>{xB.clearFastTimeout(n),clearImmediate(r)}};function hne(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)`,Ane.destroy(t,new l6e(r))}i(hne,"onConnectTimeout");gne.exports=u6e});var yne=S(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});bB.enumToMap=void 0;function p6e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(p6e,"enumToMap");bB.enumToMap=p6e});var Ene=S(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 f6e=yne(),m6e;(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"})(m6e=k.ERROR||(k.ERROR={}));var h6e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(h6e=k.TYPE||(k.TYPE={}));var A6e;(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"})(A6e=k.FLAGS||(k.FLAGS={}));var g6e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(g6e=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var Ae;(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"})(Ae=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[Ae.DELETE,Ae.GET,Ae.HEAD,Ae.POST,Ae.PUT,Ae.CONNECT,Ae.OPTIONS,Ae.TRACE,Ae.COPY,Ae.LOCK,Ae.MKCOL,Ae.MOVE,Ae.PROPFIND,Ae.PROPPATCH,Ae.SEARCH,Ae.UNLOCK,Ae.BIND,Ae.REBIND,Ae.UNBIND,Ae.ACL,Ae.REPORT,Ae.MKACTIVITY,Ae.CHECKOUT,Ae.MERGE,Ae["M-SEARCH"],Ae.NOTIFY,Ae.SUBSCRIBE,Ae.UNSUBSCRIBE,Ae.PATCH,Ae.PURGE,Ae.MKCALENDAR,Ae.LINK,Ae.UNLINK,Ae.PRI,Ae.SOURCE];k.METHODS_ICE=[Ae.SOURCE];k.METHODS_RTSP=[Ae.OPTIONS,Ae.DESCRIBE,Ae.ANNOUNCE,Ae.SETUP,Ae.PLAY,Ae.PAUSE,Ae.TEARDOWN,Ae.GET_PARAMETER,Ae.SET_PARAMETER,Ae.REDIRECT,Ae.RECORD,Ae.FLUSH,Ae.GET,Ae.POST];k.METHOD_MAP=f6e.enumToMap(Ae);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var y6e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(y6e=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 aA;(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"})(aA=k.HEADER_STATE||(k.HEADER_STATE={}));k.SPECIAL_HEADERS={connection:aA.CONNECTION,"content-length":aA.CONTENT_LENGTH,"proxy-connection":aA.CONNECTION,"transfer-encoding":aA.TRANSFER_ENCODING,upgrade:aA.UPGRADE}});var oq=S((XXt,Cne)=>{"use strict";var{Buffer:E6e}=require("node:buffer");Cne.exports=E6e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQE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B5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2A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BAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIAB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QA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCAC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BAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var zC=S((e7t,Pne)=>{"use strict";var wne=["GET","HEAD","POST"],I6e=new Set(wne),S6e=[101,204,205,304],xne=[301,302,303,307,308],w6e=new Set(xne),bne=["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"],x6e=new Set(bne),Bne=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],b6e=new Set(Bne),B6e=["follow","manual","error"],Rne=["GET","HEAD","OPTIONS","TRACE"],R6e=new Set(Rne),N6e=["navigate","same-origin","no-cors","cors"],T6e=["omit","same-origin","include"],P6e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],_6e=["content-encoding","content-language","content-location","content-type","content-length"],v6e=["half"],Nne=["CONNECT","TRACE","TRACK"],Q6e=new Set(Nne),Tne=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],D6e=new Set(Tne);Pne.exports={subresource:Tne,forbiddenMethods:Nne,requestBodyHeader:_6e,referrerPolicy:Bne,requestRedirect:B6e,requestMode:N6e,requestCredentials:T6e,requestCache:P6e,redirectStatus:xne,corsSafeListedMethods:wne,nullBodyStatus:S6e,safeMethods:Rne,badPorts:bne,requestDuplex:v6e,subresourceSet:D6e,badPortsSet:x6e,redirectStatusSet:w6e,corsSafeListedMethodsSet:I6e,safeMethodsSet:R6e,forbiddenMethodsSet:Q6e,referrerPolicySet:b6e}});var aq=S((t7t,_ne)=>{"use strict";var iq=Symbol.for("undici.globalOrigin.1");function k6e(){return globalThis[iq]}i(k6e,"getGlobalOrigin");function O6e(t){if(t===void 0){Object.defineProperty(globalThis,iq,{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,iq,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(O6e,"setGlobalOrigin");_ne.exports={getGlobalOrigin:k6e,setGlobalOrigin:O6e}});var _s=S((n7t,Mne)=>{"use strict";var RB=require("node:assert"),L6e=new TextEncoder,VC=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,M6e=/[\u000A\u000D\u0009\u0020]/,F6e=/[\u0009\u000A\u000C\u000D\u0020]/g,U6e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function q6e(t){RB(t.protocol==="data:");let e=Dne(t,!0);e=e.slice(5);let r={position:0},n=cA(",",e,r),s=n.length;if(n=W6e(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=kne(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=Lne(a);if(a=G6e(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=cq(n);return c==="failure"&&(c=cq("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(q6e,"dataURLProcessor");function Dne(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(Dne,"URLSerializer");function NB(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(vne,"isHexCharByte");function Qne(t){return t>=48&&t<=57?t-48:(t&223)-55}i(Qne,"hexByteToNumber");function $6e(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;st.length)return"failure";e.position++;let n=cA(";",t,e);if(n=BB(n,!1,!0),n.length===0||!VC.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positionM6e.test(u),t,e);let c=NB(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=One(t,e,!0),cA(";",t,e);else if(l=cA(";",t,e),l=BB(l,!1,!0),l.length===0)continue;c.length!==0&&VC.test(c)&&(l.length===0||U6e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(cq,"parseMIMEType");function G6e(t){t=t.replace(F6e,"");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(G6e,"forgivingBase64");function One(t,e,r){let n=e.position,s="";for(RB(t[e.position]==='"'),e.position++;s+=NB(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{RB(o==='"');break}}return r?s:t.slice(n,e.position)}i(One,"collectAnHTTPQuotedString");function H6e(t){RB(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",VC.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(H6e,"serializeAMimeType");function z6e(t){return t===13||t===10||t===9||t===32}i(z6e,"isHTTPWhiteSpace");function BB(t,e=!0,r=!0){return lq(t,e,r,z6e)}i(BB,"removeHTTPWhitespace");function V6e(t){return t===13||t===10||t===9||t===12||t===32}i(V6e,"isASCIIWhitespace");function W6e(t,e=!0,r=!0){return lq(t,e,r,V6e)}i(W6e,"removeASCIIWhitespace");function lq(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(lq,"removeChars");function Lne(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(Lne,"isomorphicDecode");function J6e(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(J6e,"minimizeSupportedMimeType");Mne.exports={dataURLProcessor:q6e,URLSerializer:Dne,collectASequenceOfCodePoints:NB,collectASequenceOfCodePointsFast:cA,stringPercentDecode:kne,parseMIMEType:cq,collectAnHTTPQuotedString:One,serializeAMimeType:H6e,removeChars:lq,removeHTTPWhitespace:BB,minimizeSupportedMimeType:J6e,HTTP_TOKEN_CODEPOINTS:VC,isomorphicDecode:Lne}});var bn=S((o7t,Fne)=>{"use strict";var{types:Ka,inspect:Y6e}=require("node:util"),{markAsUncloneable:j6e}=require("node:worker_threads"),{toUSVString:K6e}=Je(),D={};D.converters={};D.util={};D.errors={};D.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};D.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 D.errors.exception({header:t.prefix,message:r})};D.errors.invalidArgument=function(t){return D.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};D.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}};D.argumentLengthCheck=function({length:t},e,r){if(t{});D.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 D.errors.exception({header:"Integer conversion",message:`Could not convert ${D.util.Stringify(t)} to an integer.`});if(a=D.util.IntegerPart(a),as)throw D.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=D.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};D.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};D.util.Stringify=function(t){switch(D.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return Y6e(t);case"String":return`"${t}"`;default:return`${t}`}};D.sequenceConverter=function(t){return(e,r,n,s)=>{if(D.util.Type(e)!=="Object")throw D.errors.exception({header:r,message:`${n} (${D.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 D.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}};D.recordConverter=function(t,e){return(r,n,s)=>{if(D.util.Type(r)!=="Object")throw D.errors.exception({header:n,message:`${s} ("${D.util.Type(r)}") is not an Object.`});let o={};if(!Ka.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}};D.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw D.errors.exception({header:r,message:`Expected ${n} ("${D.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};D.dictionaryConverter=function(t){return(e,r,n)=>{let s=D.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw D.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 D.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 D.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};D.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};D.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw D.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};D.converters.ByteString=function(t,e,r){let n=D.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};D.converters.USVString=K6e;D.converters.boolean=function(t){return!!t};D.converters.any=function(t){return t};D.converters["long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"signed",void 0,e,r)};D.converters["unsigned long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};D.converters["unsigned long"]=function(t,e,r){return D.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};D.converters["unsigned short"]=function(t,e,r,n){return D.util.ConvertToInt(t,16,"unsigned",n,e,r)};D.converters.ArrayBuffer=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Ka.isAnyArrayBuffer(t))throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&Ka.isSharedArrayBuffer(t))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.TypedArray=function(t,e,r,n,s){if(D.util.Type(t)!=="Object"||!Ka.isTypedArray(t)||t.constructor.name!==e.name)throw D.errors.conversionFailed({prefix:r,argument:`${n} ("${D.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&Ka.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.DataView=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Ka.isDataView(t))throw D.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&Ka.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.BufferSource=function(t,e,r,n){if(Ka.isAnyArrayBuffer(t))return D.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(Ka.isTypedArray(t))return D.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(Ka.isDataView(t))return D.converters.DataView(t,e,r,{...n,allowShared:!1});throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["BufferSource"]})};D.converters["sequence"]=D.sequenceConverter(D.converters.ByteString);D.converters["sequence>"]=D.sequenceConverter(D.converters["sequence"]);D.converters["record"]=D.recordConverter(D.converters.ByteString,D.converters.ByteString);Fne.exports={webidl:D}});var ho=S((i7t,Zne)=>{"use strict";var{Transform:X6e}=require("node:stream"),Une=require("node:zlib"),{redirectStatusSet:Z6e,referrerPolicySet:e9e,badPortsSet:t9e}=zC(),{getGlobalOrigin:qne}=aq(),{collectASequenceOfCodePoints:Af,collectAnHTTPQuotedString:r9e,removeChars:n9e,parseMIMEType:s9e}=_s(),{performance:o9e}=require("node:perf_hooks"),{isBlobLike:i9e,ReadableStreamFrom:a9e,isValidHTTPToken:$ne,normalizedMethodRecordsBase:c9e}=Je(),gf=require("node:assert"),{isUint8Array:l9e}=require("node:util/types"),{webidl:WC}=bn(),Gne=[],PB;try{PB=require("node:crypto");let t=["sha256","sha384","sha512"];Gne=PB.getHashes().filter(e=>t.includes(e))}catch{}function Hne(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(Hne,"responseURL");function u9e(t,e){if(!Z6e.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&Vne(r)&&(zne(r)||(r=d9e(r)),r=new URL(r,Hne(t))),r&&!r.hash&&(r.hash=e),r}i(u9e,"responseLocationURL");function zne(t){for(let e=0;e126||r<32)return!1}return!0}i(zne,"isValidEncodedURL");function d9e(t){return Buffer.from(t,"binary").toString("utf8")}i(d9e,"normalizeBinaryStringToUtf8");function YC(t){return t.urlList[t.urlList.length-1]}i(YC,"requestCurrentURL");function p9e(t){let e=YC(t);return Kne(e)&&t9e.has(e.port)?"blocked":"allowed"}i(p9e,"requestBadPort");function f9e(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(f9e,"isErrorLike");function m9e(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(m9e,"isValidReasonPhrase");var h9e=$ne;function Vne(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` -`)||t.includes("\r")||t.includes("\0"))===!1}i(Vne,"isValidHeaderValue");function A9e(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(e9e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(A9e,"setRequestReferrerPolicyOnRedirect");function g9e(){return"allowed"}i(g9e,"crossOriginResourcePolicyCheck");function y9e(){return"success"}i(y9e,"corsCheck");function E9e(){return"success"}i(E9e,"TAOCheck");function C9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(C9e,"appendFetchMetadata");function I9e(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&&dq(t.origin)&&!dq(YC(t))&&(e=null);break;case"same-origin":_B(t,YC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(I9e,"appendRequestOriginHeader");function lA(t,e){return t}i(lA,"coarsenTime");function S9e(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=_B(t,n),a=JC(n)&&!JC(t.url);switch(e){case"origin":return s??uq(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=YC(t);return _B(n,c)?n:JC(n)&&!JC(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(B9e,"determineRequestsReferrer");function uq(t,e){return gf(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(uq,"stripURLForReferrer");function JC(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(JC,"isURLPotentiallyTrustworthy");function R9e(t,e){if(PB===void 0)return!0;let r=Jne(e);if(r==="no metadata"||r.length===0)return!0;let n=T9e(r),s=P9e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=PB.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)),_9e(l,c))return!0}return!1}i(R9e,"bytesMatch");var N9e=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Jne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=N9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();Gne.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(Jne,"parseMetadata");function T9e(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(Q9e,"createDeferredPromise");function D9e(t){return t.controller.state==="aborted"}i(D9e,"isAborted");function k9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(k9e,"isCancelled");function O9e(t){return c9e[t.toLowerCase()]??t}i(O9e,"normalizeMethod");function L9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return gf(typeof e=="string"),e}i(L9e,"serializeJavascriptValueToJSONString");var M9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Yne(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,M9e),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(Yne,"createIterator");function F9e(t,e,r,n=0,s=1){let o=Yne(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return WC.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return WC.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return WC.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(WC.brandCheck(this,e),WC.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(F9e,"iteratorMixin");async function U9e(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await jne(o))}catch(a){s(a)}}i(U9e,"fullyReadBody");function q9e(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(q9e,"isReadableStreamLike");function $9e(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($9e,"readableStreamClose");var G9e=/[^\x00-\xFF]/;function TB(t){return gf(!G9e.test(t)),t}i(TB,"isomorphicEncode");async function jne(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!l9e(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(jne,"readAllBytes");function H9e(t){gf("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(H9e,"urlIsLocal");function dq(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(dq,"urlHasHttpsScheme");function Kne(t){gf("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(Kne,"urlIsHttpHttpsScheme");function z9e(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Af(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Af(l=>l===" "||l===" ",r,n);let s=Af(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&Af(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Af(l=>l===" "||l===" ",r,n);let a=Af(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(z9e,"simpleRangeHeaderValue");function V9e(t,e,r){let n="bytes ";return n+=TB(`${t}`),n+="-",n+=TB(`${e}`),n+="/",n+=TB(`${r}`),n}i(V9e,"buildContentRange");var pq=class extends X6e{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?Une.createInflate(this.#e):Une.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 W9e(t){return new pq(t)}i(W9e,"createInflate");function J9e(t){let e=null,r=null,n=null,s=Xne("content-type",t);if(s===null)return"failure";for(let o of s){let a=s9e(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(J9e,"extractMimeType");function Y9e(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(Y9e,"gettingDecodingSplitting");function Xne(t,e){let r=e.get(t,!0);return r===null?null:Y9e(r)}i(Xne,"getDecodeSplit");var j9e=new TextDecoder;function K9e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),j9e.decode(t))}i(K9e,"utf8DecodeBytes");var fq=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return qne()}get origin(){return this.baseUrl?.origin}policyContainer=Wne()},mq=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new fq},X9e=new mq;Zne.exports={isAborted:D9e,isCancelled:k9e,isValidEncodedURL:zne,createDeferredPromise:Q9e,ReadableStreamFrom:a9e,tryUpgradeRequestToAPotentiallyTrustworthyURL:v9e,clampAndCoarsenConnectionTimingInfo:S9e,coarsenedSharedCurrentTime:w9e,determineRequestsReferrer:B9e,makePolicyContainer:Wne,clonePolicyContainer:b9e,appendFetchMetadata:C9e,appendRequestOriginHeader:I9e,TAOCheck:E9e,corsCheck:y9e,crossOriginResourcePolicyCheck:g9e,createOpaqueTimingInfo:x9e,setRequestReferrerPolicyOnRedirect:A9e,isValidHTTPToken:$ne,requestBadPort:p9e,requestCurrentURL:YC,responseURL:Hne,responseLocationURL:u9e,isBlobLike:i9e,isURLPotentiallyTrustworthy:JC,isValidReasonPhrase:m9e,sameOrigin:_B,normalizeMethod:O9e,serializeJavascriptValueToJSONString:L9e,iteratorMixin:F9e,createIterator:Yne,isValidHeaderName:h9e,isValidHeaderValue:Vne,isErrorLike:f9e,fullyReadBody:U9e,bytesMatch:R9e,isReadableStreamLike:q9e,readableStreamClose:$9e,isomorphicEncode:TB,urlIsLocal:H9e,urlHasHttpsScheme:dq,urlIsHttpHttpsScheme:Kne,readAllBytes:jne,simpleRangeHeaderValue:z9e,buildContentRange:V9e,parseMetadata:Jne,createInflate:W9e,extractMimeType:J9e,getDecodeSplit:Xne,utf8DecodeBytes:K9e,environmentSettingsObject:X9e}});var ed=S((c7t,ese)=>{"use strict";ese.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var Aq=S((l7t,tse)=>{"use strict";var{Blob:Z9e,File:eKe}=require("node:buffer"),{kState:Zl}=ed(),{webidl:Xa}=bn(),hq=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[Zl]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return Xa.brandCheck(this,t),this[Zl].blobLike.stream(...e)}arrayBuffer(...e){return Xa.brandCheck(this,t),this[Zl].blobLike.arrayBuffer(...e)}slice(...e){return Xa.brandCheck(this,t),this[Zl].blobLike.slice(...e)}text(...e){return Xa.brandCheck(this,t),this[Zl].blobLike.text(...e)}get size(){return Xa.brandCheck(this,t),this[Zl].blobLike.size}get type(){return Xa.brandCheck(this,t),this[Zl].blobLike.type}get name(){return Xa.brandCheck(this,t),this[Zl].name}get lastModified(){return Xa.brandCheck(this,t),this[Zl].lastModified}get[Symbol.toStringTag](){return"File"}};Xa.converters.Blob=Xa.interfaceConverter(Z9e);function tKe(t){return t instanceof eKe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(tKe,"isFileLike");tse.exports={FileLike:hq,isFileLike:tKe}});var KC=S((d7t,ise)=>{"use strict";var{isBlobLike:vB,iteratorMixin:rKe}=ho(),{kState:os}=ed(),{kEnumerableProperty:uA}=Je(),{FileLike:rse,isFileLike:nKe}=Aq(),{webidl:Pt}=bn(),{File:ose}=require("node:buffer"),nse=require("node:util"),sse=globalThis.File??ose,jC=class t{static{i(this,"FormData")}constructor(e){if(Pt.util.markAsUncloneable(this),e!==void 0)throw Pt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[os]=[]}append(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.append";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!vB(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=vB(r)?Pt.converters.Blob(r,s,"value",{strict:!1}):Pt.converters.USVString(r,s,"value"),n=arguments.length===3?Pt.converters.USVString(n,s,"filename"):void 0;let o=gq(e,r,n);this[os].push(o)}delete(e){Pt.brandCheck(this,t);let r="FormData.delete";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os]=this[os].filter(n=>n.name!==e)}get(e){Pt.brandCheck(this,t);let r="FormData.get";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name");let n=this[os].findIndex(s=>s.name===e);return n===-1?null:this[os][n].value}getAll(e){Pt.brandCheck(this,t);let r="FormData.getAll";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os].filter(n=>n.name===e).map(n=>n.value)}has(e){Pt.brandCheck(this,t);let r="FormData.has";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.set";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!vB(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=vB(r)?Pt.converters.Blob(r,s,"name",{strict:!1}):Pt.converters.USVString(r,s,"name"),n=arguments.length===3?Pt.converters.USVString(n,s,"name"):void 0;let o=gq(e,r,n),a=this[os].findIndex(c=>c.name===e);a!==-1?this[os]=[...this[os].slice(0,a),o,...this[os].slice(a+1).filter(c=>c.name!==e)]:this[os].push(o)}[nse.inspect.custom](e,r){let n=this[os].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=nse.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};rKe("FormData",jC,os,"name","value");Object.defineProperties(jC.prototype,{append:uA,delete:uA,get:uA,getAll:uA,has:uA,set:uA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function gq(t,e,r){if(typeof e!="string"){if(nKe(e)||(e=e instanceof Blob?new sse([e],"blob",{type:e.type}):new rse(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof ose?new sse([e],r,n):new rse(e,r,n)}}return{name:t,value:e}}i(gq,"makeEntry");ise.exports={FormData:jC,makeEntry:gq}});var pse=S((f7t,dse)=>{"use strict";var{isUSVString:ase,bufferToLowerCasedHeaderName:sKe}=Je(),{utf8DecodeBytes:oKe}=ho(),{HTTP_TOKEN_CODEPOINTS:iKe,isomorphicDecode:cse}=_s(),{isFileLike:aKe}=Aq(),{makeEntry:cKe}=KC(),QB=require("node:assert"),{File:lKe}=require("node:buffer"),uKe=globalThis.File??lKe,dKe=Buffer.from('form-data; name="'),lse=Buffer.from("; filename"),pKe=Buffer.from("--"),fKe=Buffer.from(`--\r -`);function mKe(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(hKe,"validateBoundary");function AKe(t,e){QB(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&&DB(t,pKe,o)||o.position===t.length-4&&DB(t,fKe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=gKe(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let f;{let h=t.indexOf(n.subarray(2),o.position);if(h===-1)return"failure";f=t.subarray(o.position,h-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",mKe(d)||(d=""),m=new uKe([f],u,{type:d})):m=oKe(Buffer.from(f)),QB(ase(l)),QB(typeof m=="string"&&ase(m)||aKe(m)),s.push(cKe(l,m,u))}}i(AKe,"multipartFormDataParser");function gKe(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=dA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=yq(a,!0,!0,c=>c===9||c===32),!iKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,dA(c=>c===32||c===9,t,e),sKe(a)){case"content-disposition":{if(r=n=null,!DB(t,dKe,e)||(e.position+=17,r=use(t,e),r===null))return"failure";if(DB(t,lse,e)){let c=e.position+lse.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=use(t,e),n===null))return"failure"}break}case"content-type":{let c=dA(l=>l!==10&&l!==13,t,e);c=yq(c,!1,!0,l=>l===9||l===32),s=cse(c);break}case"content-transfer-encoding":{let c=dA(l=>l!==10&&l!==13,t,e);c=yq(c,!1,!0,l=>l===9||l===32),o=cse(c);break}default:dA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(gKe,"parseMultipartFormDataHeaders");function use(t,e){QB(t[e.position-1]===34);let r=dA(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(use,"parseMultipartFormDataName");function dA(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(yq,"removeChars");function DB(t,e,r){if(t.length{"use strict";var XC=Je(),{ReadableStreamFrom:yKe,isBlobLike:fse,isReadableStreamLike:EKe,readableStreamClose:CKe,createDeferredPromise:IKe,fullyReadBody:SKe,extractMimeType:wKe,utf8DecodeBytes:Ase}=ho(),{FormData:mse}=KC(),{kState:fA}=ed(),{webidl:xKe}=bn(),{Blob:bKe}=require("node:buffer"),Eq=require("node:assert"),{isErrored:gse,isDisturbed:BKe}=require("node:stream"),{isArrayBuffer:RKe}=require("node:util/types"),{serializeAMimeType:NKe}=_s(),{multipartFormDataParser:TKe}=pse(),Cq;try{let t=require("node:crypto");Cq=i(e=>t.randomInt(0,e),"random")}catch{Cq=i(t=>Math.floor(Math.random(t)),"random")}var kB=new TextEncoder;function PKe(){}i(PKe,"noop");var yse=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Ese;yse&&(Ese=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!BKe(e)&&!gse(e)&&e.cancel("Response object has been garbage collected").catch(PKe)}));function Cse(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fse(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?kB.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>CKe(l))},start(){},type:"bytes"}),Eq(EKe(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(RKe(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(XC.isFormDataLike(t)){let l=`----formdata-undici-0${`${Cq(1e11)}`.padStart(11,"0")}`,u=`--${l}\r +var Fje=Object.create;var UC=Object.defineProperty;var Uje=Object.getOwnPropertyDescriptor;var qje=Object.getOwnPropertyNames;var $je=Object.getPrototypeOf,Gje=Object.prototype.hasOwnProperty;var i=(t,e)=>UC(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cr=(t,e)=>{for(var r in e)UC(t,r,{get:e[r],enumerable:!0})},Kte=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of qje(e))!Gje.call(t,s)&&s!==r&&UC(t,s,{get:()=>e[s],enumerable:!(n=Uje(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?Fje($je(t)):{},Kte(e||!t||!t.__esModule?UC(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>Kte(UC({},"__esModule",{value:!0}),t);var ire=S(Zh=>{"use strict";var NXt=require("net"),Yje=require("tls"),h2=require("http"),nre=require("https"),jje=require("events"),TXt=require("assert"),Kje=require("util");Zh.httpOverHttp=Xje;Zh.httpsOverHttp=Zje;Zh.httpOverHttps=e5e;Zh.httpsOverHttps=t5e;function Xje(t){var e=new jl(t);return e.request=h2.request,e}i(Xje,"httpOverHttp");function Zje(t){var e=new jl(t);return e.request=h2.request,e.createSocket=sre,e.defaultPort=443,e}i(Zje,"httpsOverHttp");function e5e(t){var e=new jl(t);return e.request=nre.request,e}i(e5e,"httpOverHttps");function t5e(t){var e=new jl(t);return e.request=nre.request,e.createSocket=sre,e.defaultPort=443,e}i(t5e,"httpsOverHttps");function jl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||h2.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=ore(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");jl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=A2({},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")),ed("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){ed("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();var h=new Error("tunneling socket could not be established, statusCode="+p.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(m.length>0){ed("got illegal response body from proxy"),f.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return ed("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),ed(`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");jl.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 sre(t,e){var r=this;jl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=A2({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Yje.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(sre,"createSecureSocket");function ore(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(ore,"toOptions");function A2(t){for(var e=1,r=arguments.length;e{are.exports=ire()});var Ht=S((QXt,cre)=>{cre.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 at=S((DXt,Qre)=>{"use strict";var lre=Symbol.for("undici.error.UND_ERR"),zt=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[lre]===!0}[lre]=!0},ure=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),g2=class extends zt{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[ure]===!0}[ure]=!0},dre=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),y2=class extends zt{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[dre]===!0}[dre]=!0},pre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),E2=class extends zt{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[pre]===!0}[pre]=!0},fre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),C2=class extends zt{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[fre]===!0}[fre]=!0},mre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),I2=class extends zt{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[mre]===!0}[mre]=!0},hre=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),S2=class extends zt{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[hre]===!0}[hre]=!0},Are=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),w2=class extends zt{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[Are]===!0}[Are]=!0},gre=Symbol.for("undici.error.UND_ERR_ABORT"),pB=class extends zt{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[gre]===!0}[gre]=!0},yre=Symbol.for("undici.error.UND_ERR_ABORTED"),x2=class extends pB{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[yre]===!0}[yre]=!0},Ere=Symbol.for("undici.error.UND_ERR_INFO"),b2=class extends zt{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[Ere]===!0}[Ere]=!0},Cre=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),B2=class extends zt{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[Cre]===!0}[Cre]=!0},Ire=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),R2=class extends zt{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[Ire]===!0}[Ire]=!0},Sre=Symbol.for("undici.error.UND_ERR_DESTROYED"),N2=class extends zt{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[Sre]===!0}[Sre]=!0},wre=Symbol.for("undici.error.UND_ERR_CLOSED"),T2=class extends zt{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[wre]===!0}[wre]=!0},xre=Symbol.for("undici.error.UND_ERR_SOCKET"),P2=class extends zt{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[xre]===!0}[xre]=!0},bre=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),_2=class extends zt{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[bre]===!0}[bre]=!0},Bre=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),v2=class extends zt{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[Bre]===!0}[Bre]=!0},Rre=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),Q2=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[Rre]===!0}[Rre]=!0},Nre=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),D2=class extends zt{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[Nre]===!0}[Nre]=!0},Tre=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),k2=class extends zt{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[Tre]===!0}[Tre]=!0},Pre=Symbol.for("undici.error.UND_ERR_RESPONSE"),O2=class extends zt{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[Pre]===!0}[Pre]=!0},_re=Symbol.for("undici.error.UND_ERR_PRX_TLS"),L2=class extends zt{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[_re]===!0}[_re]=!0},vre=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),M2=class extends zt{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[vre]===!0}get[vre](){return!0}};Qre.exports={AbortError:pB,HTTPParserError:Q2,UndiciError:zt,HeadersTimeoutError:y2,HeadersOverflowError:E2,BodyTimeoutError:C2,RequestContentLengthMismatchError:B2,ConnectTimeoutError:g2,ResponseStatusCodeError:I2,InvalidArgumentError:S2,InvalidReturnValueError:w2,RequestAbortedError:x2,ClientDestroyedError:N2,ClientClosedError:T2,InformationalError:b2,SocketError:P2,NotSupportedError:_2,ResponseContentLengthMismatchError:R2,BalancedPoolMissingUpstreamError:v2,ResponseExceededMaxSizeError:D2,RequestRetryError:k2,ResponseError:O2,SecureProxyConnectionError:L2,MessageSizeExceededError:M2}});var mB=S((OXt,Dre)=>{"use strict";var fB={},F2=["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:kre,headerNameLowerCasedRecord:r5e}=mB(),U2=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 qC=require("node:assert"),{kDestroyed:Ure,kBodyUsed:tA,kListeners:q2,kBody:Fre}=Ht(),{IncomingMessage:n5e}=require("node:http"),yB=require("node:stream"),s5e=require("node:net"),{Blob:o5e}=require("node:buffer"),i5e=require("node:util"),{stringify:a5e}=require("node:querystring"),{EventEmitter:c5e}=require("node:events"),{InvalidArgumentError:nn}=at(),{headerNameLowerCasedRecord:l5e}=mB(),{tree:qre}=Mre(),[u5e,d5e]=process.versions.node.split(".").map(t=>Number(t)),gB=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[Fre]=e,this[tA]=!1}async*[Symbol.asyncIterator](){qC(!this[tA],"disturbed"),this[tA]=!0,yield*this[Fre]}};function p5e(t){return EB(t)?(Vre(t)===0&&t.on("data",function(){qC(!1)}),typeof t.readableDidRead!="boolean"&&(t[tA]=!1,c5e.prototype.on.call(t,"data",function(){this[tA]=!0})),t):t&&typeof t.pipeTo=="function"?new gB(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&zre(t)?new gB(t):t}i(p5e,"wrapRequestBody");function f5e(){}i(f5e,"nop");function EB(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(EB,"isStream");function $re(t){if(t===null)return!1;if(t instanceof o5e)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($re,"isBlobLike");function m5e(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=a5e(e);return r&&(t+="?"+r),t}i(m5e,"buildURL");function Gre(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(Gre,"isValidPort");function AB(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(AB,"isHttpOrHttpsPrefixed");function Hre(t){if(typeof t=="string"){if(t=new URL(t),!AB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new nn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&Gre(t.port)===!1)throw new nn("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 nn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new nn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new nn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new nn("Invalid URL origin: the origin must be a string or null/undefined.");if(!AB(t.origin||t.protocol))throw new nn("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(!AB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(Hre,"parseURL");function h5e(t){if(t=Hre(t),t.pathname!=="/"||t.search||t.hash)throw new nn("invalid url");return t}i(h5e,"parseOrigin");function A5e(t){if(t[0]==="["){let r=t.indexOf("]");return qC(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(A5e,"getHostname");function g5e(t){if(!t)return null;qC(typeof t=="string");let e=A5e(t);return s5e.isIP(e)?"":e}i(g5e,"getServerName");function y5e(t){return JSON.parse(JSON.stringify(t))}i(y5e,"deepClone");function E5e(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(E5e,"isAsyncIterable");function zre(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(zre,"isIterable");function Vre(t){if(t==null)return 0;if(EB(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if($re(t))return t.size!=null?t.size:null;if(Yre(t))return t.byteLength}return null}i(Vre,"bodyLength");function Wre(t){return t&&!!(t.destroyed||t[Ure]||yB.isDestroyed?.(t))}i(Wre,"isDestroyed");function C5e(t,e){t==null||!EB(t)||Wre(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===n5e&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[Ure]=!0))}i(C5e,"destroy");var I5e=/timeout=(\d+)/;function S5e(t){let e=t.toString().match(I5e);return e?parseInt(e[1],10)*1e3:null}i(S5e,"parseKeepAliveTimeout");function Jre(t){return typeof t=="string"?l5e[t]??t.toLowerCase():qre.lookup(t)??t.toString("latin1").toLowerCase()}i(Jre,"headerNameToString");function w5e(t){return qre.lookup(t)??t.toString("latin1").toLowerCase()}i(w5e,"bufferToLowerCasedHeaderName");function x5e(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(x5e,"parseHeaders");function b5e(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(_5e,"ReadableStreamFrom");function v5e(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(v5e,"isFormDataLike");function Q5e(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(Q5e,"addAbortListener");var D5e=typeof String.prototype.toWellFormed=="function",k5e=typeof String.prototype.isWellFormed=="function";function jre(t){return D5e?`${t}`.toWellFormed():i5e.toUSVString(t)}i(jre,"toUSVString");function O5e(t){return k5e?`${t}`.isWellFormed():jre(t)===`${t}`}i(O5e,"isUSVString");function Kre(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(Kre,"isTokenCharCode");function L5e(t){if(t.length===0)return!1;for(let e=0;e{"use strict";var ht=require("node:diagnostics_channel"),H2=require("node:util"),CB=H2.debuglog("undici"),G2=H2.debuglog("fetch"),hf=H2.debuglog("websocket"),tne=!1,H5e={beforeConnect:ht.channel("undici:client:beforeConnect"),connected:ht.channel("undici:client:connected"),connectError:ht.channel("undici:client:connectError"),sendHeaders:ht.channel("undici:client:sendHeaders"),create:ht.channel("undici:request:create"),bodySent:ht.channel("undici:request:bodySent"),headers:ht.channel("undici:request:headers"),trailers:ht.channel("undici:request:trailers"),error:ht.channel("undici:request:error"),open:ht.channel("undici:websocket:open"),close:ht.channel("undici:websocket:close"),socketError:ht.channel("undici:websocket:socket_error"),ping:ht.channel("undici:websocket:ping"),pong:ht.channel("undici:websocket:pong")};if(CB.enabled||G2.enabled){let t=G2.enabled?G2:CB;ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),ht.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)}),tne=!0}if(hf.enabled){if(!tne){let t=CB.enabled?CB:hf;ht.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)}),ht.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)}),ht.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)}),ht.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)})}ht.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;hf("connection opened %s%s",e,r?`:${r}`:"")}),ht.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;hf("closed connection to %s - %s %s",e.url,r,n)}),ht.channel("undici:websocket:socket_error").subscribe(t=>{hf("connection errored - %s",t.message)}),ht.channel("undici:websocket:ping").subscribe(t=>{hf("ping received")}),ht.channel("undici:websocket:pong").subscribe(t=>{hf("pong received")})}rne.exports={channels:H5e}});var ine=S(($Xt,one)=>{"use strict";var{InvalidArgumentError:It,NotSupportedError:z5e}=at(),mo=require("node:assert"),{isValidHTTPToken:sne,isValidHeaderValue:$C,isStream:V5e,destroy:W5e,isBuffer:J5e,isFormDataLike:Y5e,isIterable:j5e,isBlobLike:K5e,buildURL:X5e,validateHandler:Z5e,getServerName:e6e,normalizedMethodRecords:t6e}=Je(),{channels:xn}=rA(),{headerNameLowerCasedRecord:nne}=mB(),r6e=/[^\u0021-\u00ff]/,ti=Symbol("handler"),z2=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:h,servername:A},y){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(r6e.test(r))throw new It("invalid request path");if(typeof n!="string")throw new It("method must be a string");if(t6e[n]===void 0&&!sne(n))throw new It("invalid request method");if(u&&typeof u!="string")throw new It("upgrade must be a string");if(u&&!$C(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(h!=null&&typeof h!="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(V5e(s)){this.body=s;let E=this.body._readableState;(!E||!E.autoDestroy)&&(this.endHandler=i(function(){W5e(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(J5e(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(Y5e(s)||j5e(s)||K5e(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?X5e(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=h??!1,Array.isArray(o)){if(o.length%2!==0)throw new It("headers array must be even");for(let E=0;E{"use strict";var n6e=require("node:events"),SB=class extends n6e{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 V2(this,n)}},V2=class extends SB{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)}};ane.exports=SB});var iA=S((VXt,lne)=>{"use strict";var s6e=require("node:buffer"),o6e=GC(),{ClientDestroyedError:W2,ClientClosedError:i6e,InvalidArgumentError:nA}=at(),{kDestroy:a6e,kClose:c6e,kClosed:HC,kDestroyed:sA,kDispatch:J2,kInterceptors:Af}=Ht(),Kl=Symbol("onDestroyed"),oA=Symbol("onClosed"),wB=Symbol("Intercepted Dispatch"),Y2=Symbol("webSocketOptions"),cne=Symbol("eventSourceOptions"),j2=class extends o6e{static{i(this,"DispatcherBase")}constructor(e){super(),this[sA]=!1,this[Kl]=null,this[HC]=!1,this[oA]=[],this[Y2]=e?.webSocket??{},this[cne]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[Y2].maxFragments??131072,maxPayloadSize:this[Y2].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[cne].maxEventSize??s6e.kStringMaxLength}}get destroyed(){return this[sA]}get closed(){return this[HC]}get interceptors(){return this[Af]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Af][r]!="function")throw new nA("interceptor must be an function")}this[Af]=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 W2,null));return}if(this[HC]){this[oA]?this[oA].push(e):queueMicrotask(()=>e(null,null));return}this[HC]=!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[Kl]?this[Kl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new W2),this[sA]=!0,this[Kl]=this[Kl]||[],this[Kl].push(r);let n=i(()=>{let s=this[Kl];this[Kl]=null;for(let o=0;o{queueMicrotask(n)})}[wB](e,r){if(!this[Af]||this[Af].length===0)return this[wB]=this[J2],this[J2](e,r);let n=this[J2].bind(this);for(let s=this[Af].length-1;s>=0;s--)n=this[Af][s](n);return this[wB]=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[Kl])throw new W2;if(this[HC])throw new i6e;return this[wB](e,r)}catch(n){if(typeof r.onError!="function")throw new nA("invalid onError method");return r.onError(n),!1}}};lne.exports=j2});var nq=S((JXt,fne)=>{"use strict";var aA=0,K2=1e3,X2=(K2>>1)-1,Xl,Z2=Symbol("kFastTimer"),Zl=[],eq=-2,tq=-1,dne=0,une=1;function rq(){aA+=X2;let t=0,e=Zl.length;for(;t=r._idleStart+r._idleTimeout&&(r._state=tq,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===tq?(r._state=eq,--e!==0&&(Zl[t]=Zl[e])):++t}Zl.length=e,Zl.length!==0&&pne()}i(rq,"onTick");function pne(){Xl?Xl.refresh():(clearTimeout(Xl),Xl=setTimeout(rq,X2),Xl.unref&&Xl.unref())}i(pne,"refreshTimeout");var xB=class{static{i(this,"FastTimer")}[Z2]=!0;_state=eq;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===eq&&Zl.push(this),(!Xl||Zl.length===1)&&pne(),this._state=dne}clear(){this._state=tq,this._idleStart=-1}};fne.exports={setTimeout(t,e,r){return e<=K2?setTimeout(t,e,r):new xB(t,e,r)},clearTimeout(t){t[Z2]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new xB(t,e,r)},clearFastTimeout(t){t.clear()},now(){return aA},tick(t=0){aA+=t-K2+1,rq(),rq()},reset(){aA=0,Zl.length=0,clearTimeout(Xl),Xl=null},kFastTimer:Z2}});var zC=S((XXt,yne)=>{"use strict";var l6e=require("node:net"),mne=require("node:assert"),gne=Je(),{InvalidArgumentError:u6e,ConnectTimeoutError:d6e}=at(),bB=nq();function hne(){}i(hne,"noop");var sq,oq;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?oq=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 p6e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new u6e("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new oq(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:f,servername:m,localAddress:h,httpSocket:A},y){let E;if(p==="https:"){sq||(sq=require("node:tls")),m=m||a.servername||gne.getServerName(d)||null;let x=m||u;mne(x);let b=s||c.get(x)||null;f=f||443,E=sq.connect({highWaterMark:16384,...a,servername:m,session:b,localAddress:h,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:f,host:u}),E.on("session",function(N){c.set(x,N)})}else mne(!A,"httpSocket can only be sent on TLS update"),f=f||80,E=l6e.connect({highWaterMark:64*1024,...a,localAddress:h,port:f,host:u});if(a.keepAlive==null||a.keepAlive){let x=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;E.setKeepAlive(!0,x)}let I=f6e(new WeakRef(E),{timeout:n,hostname:u,port:f});return E.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(I),y){let x=y;y=null,x(null,this)}}).on("error",function(x){if(queueMicrotask(I),y){let b=y;y=null,b(x)}}),E},"connect")}i(p6e,"buildConnector");var f6e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return hne;let r=null,n=null,s=bB.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>Ane(t.deref(),e))})},e.timeout);return()=>{bB.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return hne;let r=null,n=bB.setFastTimeout(()=>{r=setImmediate(()=>{Ane(t.deref(),e)})},e.timeout);return()=>{bB.clearFastTimeout(n),clearImmediate(r)}};function Ane(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)`,gne.destroy(t,new d6e(r))}i(Ane,"onConnectTimeout");yne.exports=p6e});var Ene=S(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});BB.enumToMap=void 0;function m6e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(m6e,"enumToMap");BB.enumToMap=m6e});var Cne=S(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 h6e=Ene(),A6e;(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"})(A6e=k.ERROR||(k.ERROR={}));var g6e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(g6e=k.TYPE||(k.TYPE={}));var y6e;(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"})(y6e=k.FLAGS||(k.FLAGS={}));var E6e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(E6e=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var Ae;(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"})(Ae=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[Ae.DELETE,Ae.GET,Ae.HEAD,Ae.POST,Ae.PUT,Ae.CONNECT,Ae.OPTIONS,Ae.TRACE,Ae.COPY,Ae.LOCK,Ae.MKCOL,Ae.MOVE,Ae.PROPFIND,Ae.PROPPATCH,Ae.SEARCH,Ae.UNLOCK,Ae.BIND,Ae.REBIND,Ae.UNBIND,Ae.ACL,Ae.REPORT,Ae.MKACTIVITY,Ae.CHECKOUT,Ae.MERGE,Ae["M-SEARCH"],Ae.NOTIFY,Ae.SUBSCRIBE,Ae.UNSUBSCRIBE,Ae.PATCH,Ae.PURGE,Ae.MKCALENDAR,Ae.LINK,Ae.UNLINK,Ae.PRI,Ae.SOURCE];k.METHODS_ICE=[Ae.SOURCE];k.METHODS_RTSP=[Ae.OPTIONS,Ae.DESCRIBE,Ae.ANNOUNCE,Ae.SETUP,Ae.PLAY,Ae.PAUSE,Ae.TEARDOWN,Ae.GET_PARAMETER,Ae.SET_PARAMETER,Ae.REDIRECT,Ae.RECORD,Ae.FLUSH,Ae.GET,Ae.POST];k.METHOD_MAP=h6e.enumToMap(Ae);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var C6e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(C6e=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 iq=S((n7t,Ine)=>{"use strict";var{Buffer:I6e}=require("node:buffer");Ine.exports=I6e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIg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hACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBAD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AIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBAS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EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var VC=S((o7t,_ne)=>{"use strict";var xne=["GET","HEAD","POST"],w6e=new Set(xne),x6e=[101,204,205,304],bne=[301,302,303,307,308],b6e=new Set(bne),Bne=["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"],B6e=new Set(Bne),Rne=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],R6e=new Set(Rne),N6e=["follow","manual","error"],Nne=["GET","HEAD","OPTIONS","TRACE"],T6e=new Set(Nne),P6e=["navigate","same-origin","no-cors","cors"],_6e=["omit","same-origin","include"],v6e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],Q6e=["content-encoding","content-language","content-location","content-type","content-length"],D6e=["half"],Tne=["CONNECT","TRACE","TRACK"],k6e=new Set(Tne),Pne=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],O6e=new Set(Pne);_ne.exports={subresource:Pne,forbiddenMethods:Tne,requestBodyHeader:Q6e,referrerPolicy:Rne,requestRedirect:N6e,requestMode:P6e,requestCredentials:_6e,requestCache:v6e,redirectStatus:bne,corsSafeListedMethods:xne,nullBodyStatus:x6e,safeMethods:Nne,badPorts:Bne,requestDuplex:D6e,subresourceSet:O6e,badPortsSet:B6e,redirectStatusSet:b6e,corsSafeListedMethodsSet:w6e,safeMethodsSet:T6e,forbiddenMethodsSet:k6e,referrerPolicySet:R6e}});var cq=S((i7t,vne)=>{"use strict";var aq=Symbol.for("undici.globalOrigin.1");function L6e(){return globalThis[aq]}i(L6e,"getGlobalOrigin");function M6e(t){if(t===void 0){Object.defineProperty(globalThis,aq,{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,aq,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(M6e,"setGlobalOrigin");vne.exports={getGlobalOrigin:L6e,setGlobalOrigin:M6e}});var _s=S((c7t,Fne)=>{"use strict";var NB=require("node:assert"),F6e=new TextEncoder,WC=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,U6e=/[\u000A\u000D\u0009\u0020]/,q6e=/[\u0009\u000A\u000C\u000D\u0020]/g,$6e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function G6e(t){NB(t.protocol==="data:");let e=kne(t,!0);e=e.slice(5);let r={position:0},n=lA(",",e,r),s=n.length;if(n=Y6e(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=One(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=Mne(a);if(a=z6e(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=lq(n);return c==="failure"&&(c=lq("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(G6e,"dataURLProcessor");function kne(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(kne,"URLSerializer");function TB(t,e,r){let n="";for(;r.position=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(Qne,"isHexCharByte");function Dne(t){return t>=48&&t<=57?t-48:(t&223)-55}i(Dne,"hexByteToNumber");function H6e(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=RB(n,!1,!0),n.length===0||!WC.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.positionU6e.test(u),t,e);let c=TB(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.positiont.length)break;let l=null;if(t[e.position]==='"')l=Lne(t,e,!0),lA(";",t,e);else if(l=lA(";",t,e),l=RB(l,!1,!0),l.length===0)continue;c.length!==0&&WC.test(c)&&(l.length===0||$6e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(lq,"parseMIMEType");function z6e(t){t=t.replace(q6e,"");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(z6e,"forgivingBase64");function Lne(t,e,r){let n=e.position,s="";for(NB(t[e.position]==='"'),e.position++;s+=TB(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{NB(o==='"');break}}return r?s:t.slice(n,e.position)}i(Lne,"collectAnHTTPQuotedString");function V6e(t){NB(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",WC.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(V6e,"serializeAMimeType");function W6e(t){return t===13||t===10||t===9||t===32}i(W6e,"isHTTPWhiteSpace");function RB(t,e=!0,r=!0){return uq(t,e,r,W6e)}i(RB,"removeHTTPWhitespace");function J6e(t){return t===13||t===10||t===9||t===12||t===32}i(J6e,"isASCIIWhitespace");function Y6e(t,e=!0,r=!0){return uq(t,e,r,J6e)}i(Y6e,"removeASCIIWhitespace");function uq(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(uq,"removeChars");function Mne(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(Mne,"isomorphicDecode");function j6e(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(j6e,"minimizeSupportedMimeType");Fne.exports={dataURLProcessor:G6e,URLSerializer:kne,collectASequenceOfCodePoints:TB,collectASequenceOfCodePointsFast:lA,stringPercentDecode:One,parseMIMEType:lq,collectAnHTTPQuotedString:Lne,serializeAMimeType:V6e,removeChars:uq,removeHTTPWhitespace:RB,minimizeSupportedMimeType:j6e,HTTP_TOKEN_CODEPOINTS:WC,isomorphicDecode:Mne}});var bn=S((u7t,Une)=>{"use strict";var{types:Ka,inspect:K6e}=require("node:util"),{markAsUncloneable:X6e}=require("node:worker_threads"),{toUSVString:Z6e}=Je(),D={};D.converters={};D.util={};D.errors={};D.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};D.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 D.errors.exception({header:t.prefix,message:r})};D.errors.invalidArgument=function(t){return D.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};D.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}};D.argumentLengthCheck=function({length:t},e,r){if(t{});D.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 D.errors.exception({header:"Integer conversion",message:`Could not convert ${D.util.Stringify(t)} to an integer.`});if(a=D.util.IntegerPart(a),as)throw D.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=D.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};D.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};D.util.Stringify=function(t){switch(D.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return K6e(t);case"String":return`"${t}"`;default:return`${t}`}};D.sequenceConverter=function(t){return(e,r,n,s)=>{if(D.util.Type(e)!=="Object")throw D.errors.exception({header:r,message:`${n} (${D.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 D.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}};D.recordConverter=function(t,e){return(r,n,s)=>{if(D.util.Type(r)!=="Object")throw D.errors.exception({header:n,message:`${s} ("${D.util.Type(r)}") is not an Object.`});let o={};if(!Ka.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}};D.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw D.errors.exception({header:r,message:`Expected ${n} ("${D.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};D.dictionaryConverter=function(t){return(e,r,n)=>{let s=D.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw D.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 D.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 D.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};D.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};D.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw D.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};D.converters.ByteString=function(t,e,r){let n=D.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};D.converters.USVString=Z6e;D.converters.boolean=function(t){return!!t};D.converters.any=function(t){return t};D.converters["long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"signed",void 0,e,r)};D.converters["unsigned long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};D.converters["unsigned long"]=function(t,e,r){return D.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};D.converters["unsigned short"]=function(t,e,r,n){return D.util.ConvertToInt(t,16,"unsigned",n,e,r)};D.converters.ArrayBuffer=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Ka.isAnyArrayBuffer(t))throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&Ka.isSharedArrayBuffer(t))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.TypedArray=function(t,e,r,n,s){if(D.util.Type(t)!=="Object"||!Ka.isTypedArray(t)||t.constructor.name!==e.name)throw D.errors.conversionFailed({prefix:r,argument:`${n} ("${D.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&Ka.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.DataView=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Ka.isDataView(t))throw D.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&Ka.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.BufferSource=function(t,e,r,n){if(Ka.isAnyArrayBuffer(t))return D.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(Ka.isTypedArray(t))return D.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(Ka.isDataView(t))return D.converters.DataView(t,e,r,{...n,allowShared:!1});throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["BufferSource"]})};D.converters["sequence"]=D.sequenceConverter(D.converters.ByteString);D.converters["sequence>"]=D.sequenceConverter(D.converters["sequence"]);D.converters["record"]=D.recordConverter(D.converters.ByteString,D.converters.ByteString);Une.exports={webidl:D}});var ho=S((d7t,ese)=>{"use strict";var{Transform:e9e}=require("node:stream"),qne=require("node:zlib"),{redirectStatusSet:t9e,referrerPolicySet:r9e,badPortsSet:n9e}=VC(),{getGlobalOrigin:$ne}=cq(),{collectASequenceOfCodePoints:gf,collectAnHTTPQuotedString:s9e,removeChars:o9e,parseMIMEType:i9e}=_s(),{performance:a9e}=require("node:perf_hooks"),{isBlobLike:c9e,ReadableStreamFrom:l9e,isValidHTTPToken:Gne,normalizedMethodRecordsBase:u9e}=Je(),yf=require("node:assert"),{isUint8Array:d9e}=require("node:util/types"),{webidl:JC}=bn(),Hne=[],_B;try{_B=require("node:crypto");let t=["sha256","sha384","sha512"];Hne=_B.getHashes().filter(e=>t.includes(e))}catch{}function zne(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(zne,"responseURL");function p9e(t,e){if(!t9e.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&Wne(r)&&(Vne(r)||(r=f9e(r)),r=new URL(r,zne(t))),r&&!r.hash&&(r.hash=e),r}i(p9e,"responseLocationURL");function Vne(t){for(let e=0;e126||r<32)return!1}return!0}i(Vne,"isValidEncodedURL");function f9e(t){return Buffer.from(t,"binary").toString("utf8")}i(f9e,"normalizeBinaryStringToUtf8");function jC(t){return t.urlList[t.urlList.length-1]}i(jC,"requestCurrentURL");function m9e(t){let e=jC(t);return Xne(e)&&n9e.has(e.port)?"blocked":"allowed"}i(m9e,"requestBadPort");function h9e(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(h9e,"isErrorLike");function A9e(t){for(let e=0;e=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(A9e,"isValidReasonPhrase");var g9e=Gne;function Wne(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(` +`)||t.includes("\r")||t.includes("\0"))===!1}i(Wne,"isValidHeaderValue");function y9e(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(r9e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(y9e,"setRequestReferrerPolicyOnRedirect");function E9e(){return"allowed"}i(E9e,"crossOriginResourcePolicyCheck");function C9e(){return"success"}i(C9e,"corsCheck");function I9e(){return"success"}i(I9e,"TAOCheck");function S9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(S9e,"appendFetchMetadata");function w9e(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&&pq(t.origin)&&!pq(jC(t))&&(e=null);break;case"same-origin":vB(t,jC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(w9e,"appendRequestOriginHeader");function uA(t,e){return t}i(uA,"coarsenTime");function x9e(t,e,r){return!t?.startTime||t.startTime4096&&(n=s);let o=vB(t,n),a=YC(n)&&!YC(t.url);switch(e){case"origin":return s??dq(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=jC(t);return vB(n,c)?n:YC(n)&&!YC(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(N9e,"determineRequestsReferrer");function dq(t,e){return yf(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(dq,"stripURLForReferrer");function YC(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(YC,"isURLPotentiallyTrustworthy");function T9e(t,e){if(_B===void 0)return!0;let r=Yne(e);if(r==="no metadata"||r.length===0)return!0;let n=_9e(r),s=v9e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=_B.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)),Q9e(l,c))return!0}return!1}i(T9e,"bytesMatch");var P9e=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Yne(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=P9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();Hne.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(Yne,"parseMetadata");function _9e(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(k9e,"createDeferredPromise");function O9e(t){return t.controller.state==="aborted"}i(O9e,"isAborted");function L9e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(L9e,"isCancelled");function M9e(t){return u9e[t.toLowerCase()]??t}i(M9e,"normalizeMethod");function F9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return yf(typeof e=="string"),e}i(F9e,"serializeJavascriptValueToJSONString");var U9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jne(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,U9e),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(jne,"createIterator");function q9e(t,e,r,n=0,s=1){let o=jne(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return JC.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return JC.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return JC.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(JC.brandCheck(this,e),JC.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(q9e,"iteratorMixin");async function $9e(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await Kne(o))}catch(a){s(a)}}i($9e,"fullyReadBody");function G9e(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(G9e,"isReadableStreamLike");function H9e(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(H9e,"readableStreamClose");var z9e=/[^\x00-\xFF]/;function PB(t){return yf(!z9e.test(t)),t}i(PB,"isomorphicEncode");async function Kne(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!d9e(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(Kne,"readAllBytes");function V9e(t){yf("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(V9e,"urlIsLocal");function pq(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(pq,"urlHasHttpsScheme");function Xne(t){yf("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(Xne,"urlIsHttpHttpsScheme");function W9e(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&gf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&gf(l=>l===" "||l===" ",r,n);let s=gf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&gf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&gf(l=>l===" "||l===" ",r,n);let a=gf(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(W9e,"simpleRangeHeaderValue");function J9e(t,e,r){let n="bytes ";return n+=PB(`${t}`),n+="-",n+=PB(`${e}`),n+="/",n+=PB(`${r}`),n}i(J9e,"buildContentRange");var fq=class extends e9e{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?qne.createInflate(this.#e):qne.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 Y9e(t){return new fq(t)}i(Y9e,"createInflate");function j9e(t){let e=null,r=null,n=null,s=Zne("content-type",t);if(s===null)return"failure";for(let o of s){let a=i9e(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(j9e,"extractMimeType");function K9e(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(K9e,"gettingDecodingSplitting");function Zne(t,e){let r=e.get(t,!0);return r===null?null:K9e(r)}i(Zne,"getDecodeSplit");var X9e=new TextDecoder;function Z9e(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),X9e.decode(t))}i(Z9e,"utf8DecodeBytes");var mq=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return $ne()}get origin(){return this.baseUrl?.origin}policyContainer=Jne()},hq=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new mq},eKe=new hq;ese.exports={isAborted:O9e,isCancelled:L9e,isValidEncodedURL:Vne,createDeferredPromise:k9e,ReadableStreamFrom:l9e,tryUpgradeRequestToAPotentiallyTrustworthyURL:D9e,clampAndCoarsenConnectionTimingInfo:x9e,coarsenedSharedCurrentTime:b9e,determineRequestsReferrer:N9e,makePolicyContainer:Jne,clonePolicyContainer:R9e,appendFetchMetadata:S9e,appendRequestOriginHeader:w9e,TAOCheck:I9e,corsCheck:C9e,crossOriginResourcePolicyCheck:E9e,createOpaqueTimingInfo:B9e,setRequestReferrerPolicyOnRedirect:y9e,isValidHTTPToken:Gne,requestBadPort:m9e,requestCurrentURL:jC,responseURL:zne,responseLocationURL:p9e,isBlobLike:c9e,isURLPotentiallyTrustworthy:YC,isValidReasonPhrase:A9e,sameOrigin:vB,normalizeMethod:M9e,serializeJavascriptValueToJSONString:F9e,iteratorMixin:q9e,createIterator:jne,isValidHeaderName:g9e,isValidHeaderValue:Wne,isErrorLike:h9e,fullyReadBody:$9e,bytesMatch:T9e,isReadableStreamLike:G9e,readableStreamClose:H9e,isomorphicEncode:PB,urlIsLocal:V9e,urlHasHttpsScheme:pq,urlIsHttpHttpsScheme:Xne,readAllBytes:Kne,simpleRangeHeaderValue:W9e,buildContentRange:J9e,parseMetadata:Yne,createInflate:Y9e,extractMimeType:j9e,getDecodeSplit:Zne,utf8DecodeBytes:Z9e,environmentSettingsObject:eKe}});var td=S((f7t,tse)=>{"use strict";tse.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var gq=S((m7t,rse)=>{"use strict";var{Blob:tKe,File:rKe}=require("node:buffer"),{kState:eu}=td(),{webidl:Xa}=bn(),Aq=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[eu]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return Xa.brandCheck(this,t),this[eu].blobLike.stream(...e)}arrayBuffer(...e){return Xa.brandCheck(this,t),this[eu].blobLike.arrayBuffer(...e)}slice(...e){return Xa.brandCheck(this,t),this[eu].blobLike.slice(...e)}text(...e){return Xa.brandCheck(this,t),this[eu].blobLike.text(...e)}get size(){return Xa.brandCheck(this,t),this[eu].blobLike.size}get type(){return Xa.brandCheck(this,t),this[eu].blobLike.type}get name(){return Xa.brandCheck(this,t),this[eu].name}get lastModified(){return Xa.brandCheck(this,t),this[eu].lastModified}get[Symbol.toStringTag](){return"File"}};Xa.converters.Blob=Xa.interfaceConverter(tKe);function nKe(t){return t instanceof rKe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(nKe,"isFileLike");rse.exports={FileLike:Aq,isFileLike:nKe}});var XC=S((A7t,ase)=>{"use strict";var{isBlobLike:QB,iteratorMixin:sKe}=ho(),{kState:os}=td(),{kEnumerableProperty:dA}=Je(),{FileLike:nse,isFileLike:oKe}=gq(),{webidl:Pt}=bn(),{File:ise}=require("node:buffer"),sse=require("node:util"),ose=globalThis.File??ise,KC=class t{static{i(this,"FormData")}constructor(e){if(Pt.util.markAsUncloneable(this),e!==void 0)throw Pt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[os]=[]}append(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.append";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!QB(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=QB(r)?Pt.converters.Blob(r,s,"value",{strict:!1}):Pt.converters.USVString(r,s,"value"),n=arguments.length===3?Pt.converters.USVString(n,s,"filename"):void 0;let o=yq(e,r,n);this[os].push(o)}delete(e){Pt.brandCheck(this,t);let r="FormData.delete";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os]=this[os].filter(n=>n.name!==e)}get(e){Pt.brandCheck(this,t);let r="FormData.get";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name");let n=this[os].findIndex(s=>s.name===e);return n===-1?null:this[os][n].value}getAll(e){Pt.brandCheck(this,t);let r="FormData.getAll";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os].filter(n=>n.name===e).map(n=>n.value)}has(e){Pt.brandCheck(this,t);let r="FormData.has";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[os].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.set";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!QB(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=QB(r)?Pt.converters.Blob(r,s,"name",{strict:!1}):Pt.converters.USVString(r,s,"name"),n=arguments.length===3?Pt.converters.USVString(n,s,"name"):void 0;let o=yq(e,r,n),a=this[os].findIndex(c=>c.name===e);a!==-1?this[os]=[...this[os].slice(0,a),o,...this[os].slice(a+1).filter(c=>c.name!==e)]:this[os].push(o)}[sse.inspect.custom](e,r){let n=this[os].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=sse.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};sKe("FormData",KC,os,"name","value");Object.defineProperties(KC.prototype,{append:dA,delete:dA,get:dA,getAll:dA,has:dA,set:dA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function yq(t,e,r){if(typeof e!="string"){if(oKe(e)||(e=e instanceof Blob?new ose([e],"blob",{type:e.type}):new nse(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof ise?new ose([e],r,n):new nse(e,r,n)}}return{name:t,value:e}}i(yq,"makeEntry");ase.exports={FormData:KC,makeEntry:yq}});var fse=S((y7t,pse)=>{"use strict";var{isUSVString:cse,bufferToLowerCasedHeaderName:iKe}=Je(),{utf8DecodeBytes:aKe}=ho(),{HTTP_TOKEN_CODEPOINTS:cKe,isomorphicDecode:lse}=_s(),{isFileLike:lKe}=gq(),{makeEntry:uKe}=XC(),DB=require("node:assert"),{File:dKe}=require("node:buffer"),pKe=globalThis.File??dKe,fKe=Buffer.from('form-data; name="'),use=Buffer.from("; filename"),mKe=Buffer.from("--"),hKe=Buffer.from(`--\r +`);function AKe(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(gKe,"validateBoundary");function yKe(t,e){DB(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&&kB(t,mKe,o)||o.position===t.length-4&&kB(t,hKe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=EKe(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let f;{let h=t.indexOf(n.subarray(2),o.position);if(h===-1)return"failure";f=t.subarray(o.position,h-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",AKe(d)||(d=""),m=new pKe([f],u,{type:d})):m=aKe(Buffer.from(f)),DB(cse(l)),DB(typeof m=="string"&&cse(m)||lKe(m)),s.push(uKe(l,m,u))}}i(yKe,"multipartFormDataParser");function EKe(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=Eq(a,!0,!0,c=>c===9||c===32),!cKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,pA(c=>c===32||c===9,t,e),iKe(a)){case"content-disposition":{if(r=n=null,!kB(t,fKe,e)||(e.position+=17,r=dse(t,e),r===null))return"failure";if(kB(t,use,e)){let c=e.position+use.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=dse(t,e),n===null))return"failure"}break}case"content-type":{let c=pA(l=>l!==10&&l!==13,t,e);c=Eq(c,!1,!0,l=>l===9||l===32),s=lse(c);break}case"content-transfer-encoding":{let c=pA(l=>l!==10&&l!==13,t,e);c=Eq(c,!1,!0,l=>l===9||l===32),o=lse(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(EKe,"parseMultipartFormDataHeaders");function dse(t,e){DB(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(dse,"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(Eq,"removeChars");function kB(t,e,r){if(t.length{"use strict";var ZC=Je(),{ReadableStreamFrom:CKe,isBlobLike:mse,isReadableStreamLike:IKe,readableStreamClose:SKe,createDeferredPromise:wKe,fullyReadBody:xKe,extractMimeType:bKe,utf8DecodeBytes:gse}=ho(),{FormData:hse}=XC(),{kState:mA}=td(),{webidl:BKe}=bn(),{Blob:RKe}=require("node:buffer"),Cq=require("node:assert"),{isErrored:yse,isDisturbed:NKe}=require("node:stream"),{isArrayBuffer:TKe}=require("node:util/types"),{serializeAMimeType:PKe}=_s(),{multipartFormDataParser:_Ke}=fse(),Iq;try{let t=require("node:crypto");Iq=i(e=>t.randomInt(0,e),"random")}catch{Iq=i(t=>Math.floor(Math.random(t)),"random")}var OB=new TextEncoder;function vKe(){}i(vKe,"noop");var Ese=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Cse;Ese&&(Cse=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!NKe(e)&&!yse(e)&&e.cancel("Response object has been garbage collected").catch(vKe)}));function Ise(t,e=!1){let r=null;t instanceof ReadableStream?r=t:mse(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?OB.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>SKe(l))},start(){},type:"bytes"}),Cq(IKe(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(TKe(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(ZC.isFormDataLike(t)){let l=`----formdata-undici-0${`${Iq(1e11)}`.padStart(11,"0")}`,u=`--${l}\r Content-Disposition: form-data`;let d=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(y=>y.replace(/\r?\n|\r/g,`\r -`),"normalizeLinefeeds"),f=[],m=new Uint8Array([13,10]);o=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let I=kB.encode(u+`; name="${d(p(y))}"\r +`),"normalizeLinefeeds"),f=[],m=new Uint8Array([13,10]);o=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let I=OB.encode(u+`; name="${d(p(y))}"\r \r ${p(E)}\r -`);f.push(I),o+=I.byteLength}else{let I=kB.encode(`${u}; name="${d(p(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r +`);f.push(I),o+=I.byteLength}else{let I=OB.encode(`${u}; name="${d(p(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r Content-Type: ${E.type||"application/octet-stream"}\r \r -`);f.push(I,E,m),typeof E.size=="number"?o+=I.byteLength+E.size+m.byteLength:h=!0}let A=kB.encode(`--${l}--\r -`);f.push(A),o+=A.byteLength,h&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(fse(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(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yKe(t)}if((typeof s=="string"||XC.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(!gse(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(Cse,"extractBody");function _Ke(t,e=!1){return t instanceof ReadableStream&&(Eq(!XC.isDisturbed(t),"The body has already been consumed."),Eq(!t.locked,"The stream is locked.")),Cse(t,e)}i(_Ke,"safelyExtractBody");function vKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(vKe,"cloneBody");function QKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(QKe,"throwIfAborted");function DKe(t){return{blob(){return pA(this,r=>{let n=hse(this);return n===null?n="":n&&(n=NKe(n)),new bKe([r],{type:n})},t)},arrayBuffer(){return pA(this,r=>new Uint8Array(r).buffer,t)},text(){return pA(this,Ase,t)},json(){return pA(this,OKe,t)},formData(){return pA(this,r=>{let n=hse(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=TKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new mse;return o[fA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new mse;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 pA(this,r=>new Uint8Array(r),t)}}}i(DKe,"bodyMixinMethods");function kKe(t){Object.assign(t.prototype,DKe(t))}i(kKe,"mixinBody");async function pA(t,e,r){if(xKe.brandCheck(t,r),Ise(t))throw new TypeError("Body is unusable: Body has already been read");QKe(t[fA]);let n=IKe(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[fA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await SKe(t[fA].body,o,s),n.promise)}i(pA,"consumeBody");function Ise(t){let e=t[fA].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}i(Ise,"bodyUnusable");function OKe(t){return JSON.parse(Ase(t))}i(OKe,"parseJSONFromBytes");function hse(t){let e=t[fA].headersList,r=wKe(e);return r==="failure"?null:r}i(hse,"bodyMimeType");Sse.exports={extractBody:Cse,safelyExtractBody:_Ke,cloneBody:vKe,mixinBody:kKe,streamRegistry:Ese,hasFinalizationRegistry:yse,bodyUnusable:Ise}});var Mse=S((g7t,Lse)=>{"use strict";var ge=require("node:assert"),le=Je(),{channels:wse}=tA(),Iq=rq(),{RequestContentLengthMismatchError:yf,ResponseContentLengthMismatchError:xse,RequestAbortedError:vse,InvalidArgumentError:LKe,HeadersTimeoutError:MKe,HeadersOverflowError:FKe,SocketError:hA,InformationalError:Ef,BodyTimeoutError:UKe,HTTPParserError:qKe,ResponseExceededMaxSizeError:$Ke}=at(),{kUrl:Qse,kReset:vs,kClient:FB,kParser:kt,kBlocking:tI,kRunning:kr,kPending:Dse,kSize:bse,kWriting:td,kQueue:Xi,kNoRef:ZC,kKeepAliveDefaultTimeout:GKe,kHostHeader:HKe,kPendingIdx:zKe,kRunningIdx:ri,kError:is,kPipelining:UB,kSocket:Cf,kKeepAliveTimeoutValue:$B,kMaxHeadersSize:Sq,kKeepAliveMaxTimeout:VKe,kKeepAliveTimeoutThreshold:WKe,kHeadersTimeout:JKe,kBodyTimeout:YKe,kStrictContentLength:bq,kMaxRequests:Bse,kCounter:jKe,kMaxResponseSize:KKe,kOnError:Rse,kResume:eu,kHTTPContext:kse}=Ht(),Ao=Ene(),Nse=Buffer.alloc(0),OB=Buffer[Symbol.species],LB=le.addListener,XKe=le.removeAllListeners,If=Symbol("kIdleSocketValidation"),AA=Symbol("kIdleSocketValidationTimeout"),Tq=Symbol("kSocketUsed"),wq;async function ZKe(){let t=process.env.JEST_WORKER_ID?oq():void 0,e;try{e=await WebAssembly.compile(Sne())}catch{e=await WebAssembly.compile(t||oq())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onStatus(new OB(Za.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(ge(lr.ptr===r),lr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderField(new OB(Za.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderValue(new OB(Za.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(ge(lr.ptr===r),lr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onBody(new OB(Za.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(ge(lr.ptr===r),lr.onMessageComplete()||0),"wasm_on_message_complete")}})}i(ZKe,"lazyllhttp");var xq=null,Bq=ZKe();Bq.catch();var lr=null,Za=null,MB=0,ec=null,eXe=0,eI=1,gA=2|eI,qB=4|eI,Rq=8|eXe,Nq=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){ge(Number.isFinite(e[Sq])&&e[Sq]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ao.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[Sq],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[KKe]}setTimeout(e,r){e!==this.timeoutValue||r&eI^this.timeoutType&eI?(this.timeout&&(Iq.clearTimeout(this.timeout),this.timeout=null),e&&(r&eI?this.timeout=Iq.setFastTimeout(Tse,e,new WeakRef(this)):(this.timeout=setTimeout(Tse,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||(ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_resume(this.ptr),ge(this.timeoutType===qB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Nse),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ge(this.ptr!=null),ge(lr==null),ge(!this.paused);let{socket:r,llhttp:n}=this;e.length>MB&&(ec&&n.free(ec),MB=Math.ceil(e.length/4096)*4096,ec=n.malloc(MB)),new Uint8Array(n.memory.buffer,ec,MB).set(e);try{let s;try{Za=e,lr=this,s=n.llhttp_execute(this.ptr,ec,e.length)}catch(a){throw a}finally{lr=null,Za=null}let o=n.llhttp_get_error_pos(this.ptr)-ec;if(s!==Ao.ERROR.OK){let a=e.subarray(o);if(s===Ao.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===Ao.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){le.destroy(r,s)}}finish(){ge(lr===null),ge(this.ptr!=null),ge(!this.paused);let{llhttp:e}=this,r;try{lr=this,r=e.llhttp_finish(this.ptr)}finally{lr=null}return r===Ao.ERROR.OK?null:r===Ao.ERROR.PAUSED||r===Ao.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,Nse)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new xse;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 qKe(c,Ao.ERROR[e],r)}destroy(){ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&Iq.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[kr]===0)return le.destroy(e,new hA("bad response",le.getSocketInfo(e))),-1;let n=r[Xi][r[ri]];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 FKe)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;ge(r),ge(n[Cf]===s),ge(!s.destroyed),ge(!this.paused),ge((o.length&1)===0);let l=n[Xi][n[ri]];ge(l),ge(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[kt].destroy(),s[kt]=null,s[FB]=null,s[is]=null,XKe(s),n[Cf]=null,n[kse]=null,n[Xi][n[ri]++]=null,n.emit("disconnect",n[Qse],[n],new Ef("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){le.errorRequest(n,l,u),le.destroy(s,u)}n[eu]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[kr]===0)return le.destroy(o,new hA("bad response",le.getSocketInfo(o))),-1;let l=s[Xi][s[ri]];if(!l)return-1;if(ge(!this.upgrade),ge(this.statusCode<200),e===100)return le.destroy(o,new hA("bad response",le.getSocketInfo(o))),-1;if(r&&!l.upgrade)return le.destroy(o,new hA("bad upgrade",le.getSocketInfo(o))),-1;if(ge(this.timeoutType===gA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[vs]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[YKe];this.setTimeout(d,qB)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return ge(s[kr]===1),this.upgrade=!0,2;if(r)return ge(s[kr]===1),this.upgrade=!0,2;if(ge((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[UB]){let d=this.keepAlive?le.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[WKe],s[VKe]);p<=0?o[vs]=!0:s[$B]=p}else s[$B]=s[GKe]}else o[vs]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[tI]&&(o[tI]=!1,s[eu]()),u?Ao.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[Xi][r[ri]];if(ge(a),ge(this.timeoutType===qB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),ge(s>=200),o>-1&&this.bytesRead+e.length>o)return le.destroy(n,new $Ke),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Ao.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;ge(n>=100),ge((this.headers.length&1)===0);let u=e[Xi][e[ri]];if(ge(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 xse),-1;if(u.onComplete(o),e[Xi][e[ri]++]=null,r[Tq]=!0,r[td])return ge(e[kr]===0),le.destroy(r,new Ef("reset")),Ao.ERROR.PAUSED;if(l){if(r[vs]&&e[kr]===0)return le.destroy(r,new Ef("reset")),Ao.ERROR.PAUSED;e[UB]==null||e[UB]===1?setImmediate(()=>e[eu]()):e[eu]()}else return le.destroy(r,new Ef("reset")),Ao.ERROR.PAUSED}}};function Tse(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===gA?(!e[td]||e.writableNeedDrain||n[kr]>1)&&(ge(!s,"cannot be paused while waiting for headers"),le.destroy(e,new MKe)):r===qB?s||le.destroy(e,new UKe):r===Rq&&(ge(n[kr]===0&&n[$B]),le.destroy(e,new Ef("socket idle timeout")))}i(Tse,"onParserTimeout");async function tXe(t,e){t[Cf]=e,xq||(xq=await Bq,Bq=null),e[ZC]=!1,e[td]=!1,e[vs]=!1,e[tI]=!1,e[If]=0,e[AA]=null,e[Tq]=!1,e[kt]=new Nq(t,e,xq),LB(e,"error",function(n){let s=this[kt];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[is]=o,this[FB][Rse](o));return}this[is]=n,this[FB][Rse](n)}),LB(e,"readable",function(){let n=this[kt];n&&n.readMore()}),LB(e,"end",function(){let n=this[kt];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&le.destroy(this,s);return}le.destroy(this,new hA("other side closed",le.getSocketInfo(this)))}),LB(e,"close",function(){let n=this[FB],s=this[kt];Ose(this),s&&(!this[is]&&s.statusCode&&!s.shouldKeepAlive&&(this[is]=s.finish()||this[is]),this[kt].destroy(),this[kt]=null);let o=this[is]||new hA("closed",le.getSocketInfo(this));if(n[Cf]=null,n[kse]=null,n.destroyed){ge(n[Dse]===0);let a=n[Xi].splice(n[ri]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[Xi][n[ri]];n[Xi][n[ri]++]=null,le.errorRequest(n,a,o)}n[zKe]=n[ri],ge(n[kr]===0),n.emit("disconnect",n[Qse],[n],o),n[eu]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return oXe(t,...n)},resume(){nXe(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[td]||e[vs]||e[tI]||e[If]===1||n&&(t[kr]>0&&!n.idempotent||t[kr]>0&&(n.upgrade||n.method==="CONNECT")||t[kr]>0&&le.bodyLength(n.body)!==0&&(le.isStream(n.body)||le.isAsyncIterable(n.body)||le.isFormDataLike(n.body))))}}}i(tXe,"connectH1");function Ose(t){t[AA]&&(clearImmediate(t[AA]),t[AA]=null),t[If]=0}i(Ose,"clearIdleSocketValidation");function rXe(t,e){e[If]=1,e[AA]=setImmediate(()=>{e[AA]=null,e[If]=2,t[Cf]===e&&!e.destroyed&&t[eu]()})}i(rXe,"scheduleIdleSocketValidation");function nXe(t){let e=t[Cf];if(e&&!e.destroyed){if(t[bse]===0?!e[ZC]&&e.unref&&(e.unref(),e[ZC]=!0):e[ZC]&&e.ref&&(e.ref(),e[ZC]=!1),t[kr]===0&&t[Dse]>0&&e[Tq]){if(e[If]===0)return rXe(t,e),e[kt].readMore(),e.destroyed,void 0;if(e[If]===1)return e[kt].readMore(),e.destroyed,void 0}if(t[kr]===0&&(e[kt].readMore(),e.destroyed))return;if(t[bse]===0)e[kt].timeoutType!==Rq&&e[kt].setTimeout(t[$B],Rq);else if(t[kr]>0&&e[kt].statusCode<200&&e[kt].timeoutType!==gA){let r=t[Xi][t[ri]],n=r.headersTimeout!=null?r.headersTimeout:t[JKe];e[kt].setTimeout(n,gA)}}}i(nXe,"resumeH1");function sXe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(sXe,"shouldSendContentLength");function oXe(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)){wq||(wq=mA().extractBody);let[y,E]=wq(l);e.contentType==null&&u.push("content-type",E),l=y.stream,d=y.length}else if(le.isBlobLike(l)&&e.contentType==null){let y=l.type;if(y){let E=`${y}`;if(!le.isValidHeaderValue(E))return le.errorRequest(t,e,new LKe("invalid content-type header")),!1;u.push("content-type",E)}}l&&typeof l.read=="function"&&l.read(0);let f=le.bodyLength(l);if(d=f??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),sXe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[bq])return le.errorRequest(t,e,new yf),!1;process.emitWarning(new yf)}let m=t[Cf];Ose(m);let h=i(y=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&le.destroy(m,new Ef("aborted"));return}le.errorRequest(t,e,y||new vse),le.destroy(l),le.destroy(m,new Ef("aborted"))}},"abort");try{e.onConnect(h)}catch(y){le.errorRequest(t,e,y)}if(e.aborted)return!1;r==="HEAD"&&(m[vs]=!0),(o||r==="CONNECT")&&(m[vs]=!0),c!=null&&(m[vs]=c),t[Bse]&&m[jKe]++>=t[Bse]&&(m[vs]=!0),a&&(m[tI]=!0);let A=`${r} ${n} HTTP/1.1\r +`);f.push(I,E,m),typeof E.size=="number"?o+=I.byteLength+E.size+m.byteLength:h=!0}let A=OB.encode(`--${l}--\r +`);f.push(A),o+=A.byteLength,h&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(mse(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(ZC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:CKe(t)}if((typeof s=="string"||ZC.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(!yse(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(Ise,"extractBody");function QKe(t,e=!1){return t instanceof ReadableStream&&(Cq(!ZC.isDisturbed(t),"The body has already been consumed."),Cq(!t.locked,"The stream is locked.")),Ise(t,e)}i(QKe,"safelyExtractBody");function DKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(DKe,"cloneBody");function kKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(kKe,"throwIfAborted");function OKe(t){return{blob(){return fA(this,r=>{let n=Ase(this);return n===null?n="":n&&(n=PKe(n)),new RKe([r],{type:n})},t)},arrayBuffer(){return fA(this,r=>new Uint8Array(r).buffer,t)},text(){return fA(this,gse,t)},json(){return fA(this,MKe,t)},formData(){return fA(this,r=>{let n=Ase(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_Ke(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new hse;return o[mA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new hse;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(OKe,"bodyMixinMethods");function LKe(t){Object.assign(t.prototype,OKe(t))}i(LKe,"mixinBody");async function fA(t,e,r){if(BKe.brandCheck(t,r),Sse(t))throw new TypeError("Body is unusable: Body has already been read");kKe(t[mA]);let n=wKe(),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 xKe(t[mA].body,o,s),n.promise)}i(fA,"consumeBody");function Sse(t){let e=t[mA].body;return e!=null&&(e.stream.locked||ZC.isDisturbed(e.stream))}i(Sse,"bodyUnusable");function MKe(t){return JSON.parse(gse(t))}i(MKe,"parseJSONFromBytes");function Ase(t){let e=t[mA].headersList,r=bKe(e);return r==="failure"?null:r}i(Ase,"bodyMimeType");wse.exports={extractBody:Ise,safelyExtractBody:QKe,cloneBody:DKe,mixinBody:LKe,streamRegistry:Cse,hasFinalizationRegistry:Ese,bodyUnusable:Sse}});var Fse=S((S7t,Mse)=>{"use strict";var ge=require("node:assert"),le=Je(),{channels:xse}=rA(),Sq=nq(),{RequestContentLengthMismatchError:Ef,ResponseContentLengthMismatchError:bse,RequestAbortedError:Qse,InvalidArgumentError:FKe,HeadersTimeoutError:UKe,HeadersOverflowError:qKe,SocketError:AA,InformationalError:Cf,BodyTimeoutError:$Ke,HTTPParserError:GKe,ResponseExceededMaxSizeError:HKe}=at(),{kUrl:Dse,kReset:vs,kClient:UB,kParser:kt,kBlocking:rI,kRunning:kr,kPending:kse,kSize:Bse,kWriting:rd,kQueue:Xi,kNoRef:eI,kKeepAliveDefaultTimeout:zKe,kHostHeader:VKe,kPendingIdx:WKe,kRunningIdx:ri,kError:is,kPipelining:qB,kSocket:If,kKeepAliveTimeoutValue:GB,kMaxHeadersSize:wq,kKeepAliveMaxTimeout:JKe,kKeepAliveTimeoutThreshold:YKe,kHeadersTimeout:jKe,kBodyTimeout:KKe,kStrictContentLength:Bq,kMaxRequests:Rse,kCounter:XKe,kMaxResponseSize:ZKe,kOnError:Nse,kResume:tu,kHTTPContext:Ose}=Ht(),Ao=Cne(),Tse=Buffer.alloc(0),LB=Buffer[Symbol.species],MB=le.addListener,eXe=le.removeAllListeners,Sf=Symbol("kIdleSocketValidation"),gA=Symbol("kIdleSocketValidationTimeout"),Pq=Symbol("kSocketUsed"),xq;async function tXe(){let t=process.env.JEST_WORKER_ID?iq():void 0,e;try{e=await WebAssembly.compile(wne())}catch{e=await WebAssembly.compile(t||iq())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onStatus(new LB(Za.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(ge(lr.ptr===r),lr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderField(new LB(Za.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onHeaderValue(new LB(Za.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(ge(lr.ptr===r),lr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{ge(lr.ptr===r);let o=n-ec+Za.byteOffset;return lr.onBody(new LB(Za.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(ge(lr.ptr===r),lr.onMessageComplete()||0),"wasm_on_message_complete")}})}i(tXe,"lazyllhttp");var bq=null,Rq=tXe();Rq.catch();var lr=null,Za=null,FB=0,ec=null,rXe=0,tI=1,yA=2|tI,$B=4|tI,Nq=8|rXe,Tq=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){ge(Number.isFinite(e[wq])&&e[wq]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Ao.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[wq],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ZKe]}setTimeout(e,r){e!==this.timeoutValue||r&tI^this.timeoutType&tI?(this.timeout&&(Sq.clearTimeout(this.timeout),this.timeout=null),e&&(r&tI?this.timeout=Sq.setFastTimeout(Pse,e,new WeakRef(this)):(this.timeout=setTimeout(Pse,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||(ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_resume(this.ptr),ge(this.timeoutType===$B),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Tse),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ge(this.ptr!=null),ge(lr==null),ge(!this.paused);let{socket:r,llhttp:n}=this;e.length>FB&&(ec&&n.free(ec),FB=Math.ceil(e.length/4096)*4096,ec=n.malloc(FB)),new Uint8Array(n.memory.buffer,ec,FB).set(e);try{let s;try{Za=e,lr=this,s=n.llhttp_execute(this.ptr,ec,e.length)}catch(a){throw a}finally{lr=null,Za=null}let o=n.llhttp_get_error_pos(this.ptr)-ec;if(s!==Ao.ERROR.OK){let a=e.subarray(o);if(s===Ao.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===Ao.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){le.destroy(r,s)}}finish(){ge(lr===null),ge(this.ptr!=null),ge(!this.paused);let{llhttp:e}=this,r;try{lr=this,r=e.llhttp_finish(this.ptr)}finally{lr=null}return r===Ao.ERROR.OK?null:r===Ao.ERROR.PAUSED||r===Ao.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,Tse)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new bse;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 GKe(c,Ao.ERROR[e],r)}destroy(){ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&Sq.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[kr]===0)return le.destroy(e,new AA("bad response",le.getSocketInfo(e))),-1;let n=r[Xi][r[ri]];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 qKe)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;ge(r),ge(n[If]===s),ge(!s.destroyed),ge(!this.paused),ge((o.length&1)===0);let l=n[Xi][n[ri]];ge(l),ge(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[kt].destroy(),s[kt]=null,s[UB]=null,s[is]=null,eXe(s),n[If]=null,n[Ose]=null,n[Xi][n[ri]++]=null,n.emit("disconnect",n[Dse],[n],new Cf("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){le.errorRequest(n,l,u),le.destroy(s,u)}n[tu]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[kr]===0)return le.destroy(o,new AA("bad response",le.getSocketInfo(o))),-1;let l=s[Xi][s[ri]];if(!l)return-1;if(ge(!this.upgrade),ge(this.statusCode<200),e===100)return le.destroy(o,new AA("bad response",le.getSocketInfo(o))),-1;if(r&&!l.upgrade)return le.destroy(o,new AA("bad upgrade",le.getSocketInfo(o))),-1;if(ge(this.timeoutType===yA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[vs]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[KKe];this.setTimeout(d,$B)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return ge(s[kr]===1),this.upgrade=!0,2;if(r)return ge(s[kr]===1),this.upgrade=!0,2;if(ge((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[qB]){let d=this.keepAlive?le.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[YKe],s[JKe]);p<=0?o[vs]=!0:s[GB]=p}else s[GB]=s[zKe]}else o[vs]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[rI]&&(o[rI]=!1,s[tu]()),u?Ao.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[Xi][r[ri]];if(ge(a),ge(this.timeoutType===$B),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),ge(s>=200),o>-1&&this.bytesRead+e.length>o)return le.destroy(n,new HKe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return Ao.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;ge(n>=100),ge((this.headers.length&1)===0);let u=e[Xi][e[ri]];if(ge(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 bse),-1;if(u.onComplete(o),e[Xi][e[ri]++]=null,r[Pq]=!0,r[rd])return ge(e[kr]===0),le.destroy(r,new Cf("reset")),Ao.ERROR.PAUSED;if(l){if(r[vs]&&e[kr]===0)return le.destroy(r,new Cf("reset")),Ao.ERROR.PAUSED;e[qB]==null||e[qB]===1?setImmediate(()=>e[tu]()):e[tu]()}else return le.destroy(r,new Cf("reset")),Ao.ERROR.PAUSED}}};function Pse(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===yA?(!e[rd]||e.writableNeedDrain||n[kr]>1)&&(ge(!s,"cannot be paused while waiting for headers"),le.destroy(e,new UKe)):r===$B?s||le.destroy(e,new $Ke):r===Nq&&(ge(n[kr]===0&&n[GB]),le.destroy(e,new Cf("socket idle timeout")))}i(Pse,"onParserTimeout");async function nXe(t,e){t[If]=e,bq||(bq=await Rq,Rq=null),e[eI]=!1,e[rd]=!1,e[vs]=!1,e[rI]=!1,e[Sf]=0,e[gA]=null,e[Pq]=!1,e[kt]=new Tq(t,e,bq),MB(e,"error",function(n){let s=this[kt];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[is]=o,this[UB][Nse](o));return}this[is]=n,this[UB][Nse](n)}),MB(e,"readable",function(){let n=this[kt];n&&n.readMore()}),MB(e,"end",function(){let n=this[kt];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&le.destroy(this,s);return}le.destroy(this,new AA("other side closed",le.getSocketInfo(this)))}),MB(e,"close",function(){let n=this[UB],s=this[kt];Lse(this),s&&(!this[is]&&s.statusCode&&!s.shouldKeepAlive&&(this[is]=s.finish()||this[is]),this[kt].destroy(),this[kt]=null);let o=this[is]||new AA("closed",le.getSocketInfo(this));if(n[If]=null,n[Ose]=null,n.destroyed){ge(n[kse]===0);let a=n[Xi].splice(n[ri]);for(let c=0;c0&&o.code!=="UND_ERR_INFO"){let a=n[Xi][n[ri]];n[Xi][n[ri]++]=null,le.errorRequest(n,a,o)}n[WKe]=n[ri],ge(n[kr]===0),n.emit("disconnect",n[Dse],[n],o),n[tu]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return aXe(t,...n)},resume(){oXe(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[rd]||e[vs]||e[rI]||e[Sf]===1||n&&(t[kr]>0&&!n.idempotent||t[kr]>0&&(n.upgrade||n.method==="CONNECT")||t[kr]>0&&le.bodyLength(n.body)!==0&&(le.isStream(n.body)||le.isAsyncIterable(n.body)||le.isFormDataLike(n.body))))}}}i(nXe,"connectH1");function Lse(t){t[gA]&&(clearImmediate(t[gA]),t[gA]=null),t[Sf]=0}i(Lse,"clearIdleSocketValidation");function sXe(t,e){e[Sf]=1,e[gA]=setImmediate(()=>{e[gA]=null,e[Sf]=2,t[If]===e&&!e.destroyed&&t[tu]()})}i(sXe,"scheduleIdleSocketValidation");function oXe(t){let e=t[If];if(e&&!e.destroyed){if(t[Bse]===0?!e[eI]&&e.unref&&(e.unref(),e[eI]=!0):e[eI]&&e.ref&&(e.ref(),e[eI]=!1),t[kr]===0&&t[kse]>0&&e[Pq]){if(e[Sf]===0)return sXe(t,e),e[kt].readMore(),e.destroyed,void 0;if(e[Sf]===1)return e[kt].readMore(),e.destroyed,void 0}if(t[kr]===0&&(e[kt].readMore(),e.destroyed))return;if(t[Bse]===0)e[kt].timeoutType!==Nq&&e[kt].setTimeout(t[GB],Nq);else if(t[kr]>0&&e[kt].statusCode<200&&e[kt].timeoutType!==yA){let r=t[Xi][t[ri]],n=r.headersTimeout!=null?r.headersTimeout:t[jKe];e[kt].setTimeout(n,yA)}}}i(oXe,"resumeH1");function iXe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(iXe,"shouldSendContentLength");function aXe(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)){xq||(xq=hA().extractBody);let[y,E]=xq(l);e.contentType==null&&u.push("content-type",E),l=y.stream,d=y.length}else if(le.isBlobLike(l)&&e.contentType==null){let y=l.type;if(y){let E=`${y}`;if(!le.isValidHeaderValue(E))return le.errorRequest(t,e,new FKe("invalid content-type header")),!1;u.push("content-type",E)}}l&&typeof l.read=="function"&&l.read(0);let f=le.bodyLength(l);if(d=f??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),iXe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[Bq])return le.errorRequest(t,e,new Ef),!1;process.emitWarning(new Ef)}let m=t[If];Lse(m);let h=i(y=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&le.destroy(m,new Cf("aborted"));return}le.errorRequest(t,e,y||new Qse),le.destroy(l),le.destroy(m,new Cf("aborted"))}},"abort");try{e.onConnect(h)}catch(y){le.errorRequest(t,e,y)}if(e.aborted)return!1;r==="HEAD"&&(m[vs]=!0),(o||r==="CONNECT")&&(m[vs]=!0),c!=null&&(m[vs]=c),t[Rse]&&m[XKe]++>=t[Rse]&&(m[vs]=!0),a&&(m[rI]=!0);let A=`${r} ${n} HTTP/1.1\r `;if(typeof s=="string"?A+=`host: ${s}\r -`:A+=t[HKe],o?A+=`connection: upgrade\r +`:A+=t[VKe],o?A+=`connection: upgrade\r upgrade: ${o}\r -`:t[UB]&&!m[vs]?A+=`connection: keep-alive\r +`:t[qB]&&!m[vs]?A+=`connection: keep-alive\r `:A+=`connection: close\r `,Array.isArray(u))for(let y=0;y{e.removeListener("error",m)}),!l){let h=new vse;queueMicrotask(()=>m(h))}},"onClose"),m=i(function(h){if(!l){if(l=!0,ge(s.destroyed||s[td]&&r[kr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!h)try{u.end()}catch(A){h=A}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?le.destroy(e,h):le.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(iXe,"writeStream");function Pse(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(ge(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r +`}return xse.sendHeaders.hasSubscribers&&xse.sendHeaders.publish({request:e,headers:A,socket:m}),!l||f===0?_se(h,null,t,e,m,d,A,p):le.isBuffer(l)?_se(h,l,t,e,m,d,A,p):le.isBlobLike(l)?typeof l.stream=="function"?vse(h,l.stream(),t,e,m,d,A,p):lXe(h,l,t,e,m,d,A,p):le.isStream(l)?cXe(h,l,t,e,m,d,A,p):le.isIterable(l)?vse(h,l,t,e,m,d,A,p):ge(!1),!0}i(aXe,"writeH1");function cXe(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===0,"stream body cannot be pipelined");let l=!1,u=new HB({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(A){le.destroy(this,A)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new Qse;queueMicrotask(()=>m(h))}},"onClose"),m=i(function(h){if(!l){if(l=!0,ge(s.destroyed||s[rd]&&r[kr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!h)try{u.end()}catch(A){h=A}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?le.destroy(e,h):le.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(cXe,"writeStream");function _se(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(ge(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[vs]=!0)):o===0?s.write(`${a}content-length: 0\r \r `,"latin1"):(ge(o===null,"no body must not have content length"),s.write(`${a}\r -`,"latin1")),n.onRequestSent(),r[eu]()}catch(l){t(l)}}i(Pse,"writeBuffer");async function aXe(t,e,r,n,s,o,a,c){ge(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new yf;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r +`,"latin1")),n.onRequestSent(),r[tu]()}catch(l){t(l)}}i(_se,"writeBuffer");async function lXe(t,e,r,n,s,o,a,c){ge(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Ef;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[vs]=!0),r[eu]()}catch(l){t(l)}}i(aXe,"writeBlob");async function _se(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===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)=>{ge(l===null),s[is]?m(s[is]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new GB({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[is])throw s[is];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(_se,"writeIterable");var GB=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[td]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[is])throw r[is];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[bq])throw new yf;process.emitWarning(new yf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[vs]=!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[vs]=!0),r[tu]()}catch(l){t(l)}}i(lXe,"writeBlob");async function vse(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===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)=>{ge(l===null),s[is]?m(s[is]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new HB({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[is])throw s[is];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(vse,"writeIterable");var HB=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[rd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[is])throw r[is];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[Bq])throw new Ef;process.emitWarning(new Ef)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[vs]=!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[kt].timeout&&r[kt].timeoutType===gA&&r[kt].timeout.refresh&&r[kt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[td]=!1,e[is])throw e[is];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[kt].timeout&&r[kt].timeoutType===yA&&r[kt].timeout.refresh&&r[kt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[rd]=!1,e[is])throw e[is];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[bq])throw new yf;process.emitWarning(new yf)}e[kt].timeout&&e[kt].timeoutType===gA&&e[kt].timeout.refresh&&e[kt].timeout.refresh(),n[eu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[td]=!1,e&&(ge(n[kr]<=1,"pipeline should only contain this request"),s(e))}};Lse.exports=tXe});var Vse=S((E7t,zse)=>{"use strict";var rc=require("node:assert"),{errorMonitor:Pq}=require("node:events"),{pipeline:cXe}=require("node:stream"),Ke=Je(),{RequestContentLengthMismatchError:vq,RequestAbortedError:_q,SocketError:rI,InformationalError:HB}=at(),{kUrl:zB,kReset:WB,kClient:yA,kRunning:JB,kPending:lXe,kQueue:Sf,kPendingIdx:Dq,kRunningIdx:tc,kError:ea,kSocket:sn,kStrictContentLength:uXe,kOnError:kq,kMaxConcurrentStreams:Gse,kHTTP2Session:Zi,kResume:nd,kSize:dXe,kHTTPContext:pXe}=Ht(),rd=Symbol("open streams"),Fse,Use=!1,VB;try{VB=require("node:http2")}catch{VB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fXe,HTTP2_HEADER_METHOD:mXe,HTTP2_HEADER_PATH:hXe,HTTP2_HEADER_SCHEME:AXe,HTTP2_HEADER_CONTENT_LENGTH:gXe,HTTP2_HEADER_EXPECT:yXe,HTTP2_HEADER_STATUS:Qq}}=VB;function Hse(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(Hse,"parseH2Headers");function EXe(t){let{[Qq]:e,...r}=t;return Hse(r)}i(EXe,"parseH2ResponseHeaders");async function CXe(t,e){t[sn]=e,Use||(Use=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=VB.connect(t[zB],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Gse]});r[rd]=0,r[yA]=t,r[sn]=e,Ke.addListener(r,"error",SXe),Ke.addListener(r,"frameError",wXe),Ke.addListener(r,"end",xXe),Ke.addListener(r,"goaway",bXe),Ke.addListener(r,"close",function(){let{[yA]:s}=this,{[sn]:o}=s,a=this[sn][ea]||this[ea]||new rI("closed",Ke.getSocketInfo(o));if(s[Zi]=null,s.destroyed){rc(s[lXe]===0);let c=s[Sf].splice(s[tc]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return RXe(t,...s)},resume(){IXe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(CXe,"connectH2");function IXe(t){let e=t[sn];e?.destroyed===!1&&(t[dXe]===0&&t[Gse]===0?(e.unref(),t[Zi].unref()):(e.ref(),t[Zi].ref()))}i(IXe,"resumeH2");function SXe(t){this[sn][ea]=t,this[yA][kq](t)}i(SXe,"onHttp2SessionError");function wXe(t,e,r){if(r===0){let n=new HB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[sn][ea]=n,this[yA][kq](n)}}i(wXe,"onHttp2FrameError");function xXe(){let t=new rI("other side closed",Ke.getSocketInfo(this[sn]));this.destroy(t),Ke.destroy(this[sn],t)}i(xXe,"onHttp2SessionEnd");function bXe(t){let e=this[ea]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ke.getSocketInfo(this)),r=this[yA];if(r[sn]=null,r[pXe]=null,this[Zi]!=null&&(this[Zi].destroy(e),this[Zi]=null),Ke.destroy(this[sn],e),r[tc]{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&Ke.destroy(f,b||new _q);return}b=b||new _q,Ke.errorRequest(t,e,b),f!=null&&Ke.destroy(f,b),Ke.destroy(d,b),t[Sf][t[tc]++]=null,t[nd]()}},"abort");try{e.onConnect(A)}catch(b){Ke.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(Y=>{b=!0,f.off(Pq,_),e.onUpgradeResponse(Number(Y[Qq]),Y,EXe)},"onResponse"),_=i(Y=>{b=!0,f.off("response",N),e.onUpgradeError(Y)},"onUpgradeError"),v=i(()=>{try{e.onUpgrade(null,null,f)}catch(Y){f.off("response",N),A(Y);return}e.aborted||(f.off("error",A),f.once(Pq,_),t[Sf][t[tc]++]=null)},"onReady");return f.once("response",N),f.once("error",A),++r[rd],v(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(Pq,_),e.onUpgradeError(new HB(`HTTP/2: "stream error" received - code ${f.rstCode}`))),r[rd]-=1,r[rd]===0&&r.unref()}),!0}p[hXe]=s,p[AXe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Ke.bodyLength(d);if(Ke.isFormDataLike(d)){Fse??=mA().extractBody;let[b,N]=Fse(d);p["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),BXe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[uXe])return Ke.errorRequest(t,e,new vq),!1;process.emitWarning(new vq)}E!=null&&(rc(d,"no body must not have content length"),p[gXe]=`${E}`),r.ref();let I=n==="GET"||n==="HEAD"||d===null;return c?(p[yXe]="100-continue",f=r.request(p,{endStream:I,signal:l}),f.once("continue",x)):(f=r.request(p,{endStream:I,signal:l}),x()),++r[rd],f.once("response",b=>{let{[Qq]:N,..._}=b;if(e.onResponseStarted(),e.aborted){let v=new _q;Ke.errorRequest(t,e,v),Ke.destroy(f,v);return}e.onHeaders(Number(N),Hse(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",v=>{e.onData(v)===!1&&f.pause()})}),f.once("end",()=>{(f.state?.state==null||f.state.state<6)&&e.onComplete([]),r[rd]===0&&r.unref(),A(new HB("HTTP/2: stream half-closed (remote)")),t[Sf][t[tc]++]=null,t[Dq]=t[tc],t[nd]()}),f.once("close",()=>{r[rd]-=1,r[rd]===0&&r.unref()}),f.once("error",function(b){A(b)}),f.once("frameError",(b,N)=>{A(new HB(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function x(){!d||E===0?qse(A,f,null,t,e,t[sn],E,y):Ke.isBuffer(d)?qse(A,f,d,t,e,t[sn],E,y):Ke.isBlobLike(d)?typeof d.stream=="function"?$se(A,f,d.stream(),t,e,t[sn],E,y):TXe(A,f,d,t,e,t[sn],E,y):Ke.isStream(d)?NXe(A,t[sn],y,f,d,t,e,E):Ke.isIterable(d)?$se(A,f,d,t,e,t[sn],E,y):rc(!1)}i(x,"writeBodyH2")}i(RXe,"writeH2");function qse(t,e,r,n,s,o,a,c){try{r!=null&&Ke.isBuffer(r)&&(rc(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[WB]=!0),s.onRequestSent(),n[nd]()}catch(l){t(l)}}i(qse,"writeBuffer");function NXe(t,e,r,n,s,o,a,c){rc(c!==0||o[JB]===0,"stream body cannot be pipelined");let l=cXe(s,n,d=>{d?(Ke.destroy(l,d),t(d)):(Ke.removeAllListeners(l),a.onRequestSent(),r||(e[WB]=!0),o[nd]())});Ke.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(NXe,"writeStream");async function TXe(t,e,r,n,s,o,a,c){rc(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new vq;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[WB]=!0),n[nd]()}catch(l){t(l)}}i(TXe,"writeBlob");async function $se(t,e,r,n,s,o,a,c){rc(a!==0||n[JB]===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)=>{rc(l===null),o[ea]?f(o[ea]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[ea])throw o[ea];let f=e.write(p);s.onBodySent(p),f||await d()}e.end(),s.onRequestSent(),c||(o[WB]=!0),n[nd]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i($se,"writeIterable");zse.exports=CXe});var jB=S((I7t,Yse)=>{"use strict";var nc=Je(),{kBodyUsed:nI}=Ht(),Lq=require("node:assert"),{InvalidArgumentError:PXe}=at(),_Xe=require("node:events"),vXe=[300,301,302,303,307,308],Wse=Symbol("body"),YB=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[Wse]=e,this[nI]=!1}async*[Symbol.asyncIterator](){Lq(!this[nI],"disturbed"),this[nI]=!0,yield*this[Wse]}},Oq=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new PXe("maxRedirections must be a positive number");nc.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,nc.isStream(this.opts.body)?(nc.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){Lq(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[nI]=!1,_Xe.prototype.on.call(this.opts.body,"data",function(){this[nI]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new YB(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&nc.isIterable(this.opts.body)&&(this.opts.body=new YB(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||nc.isDisturbed(this.opts.body)?null:QXe(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}=nc.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=DXe(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 QXe(t,e){if(vXe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var kXe=jB();function OXe({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new kXe(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(OXe,"createRedirectInterceptor");jse.exports=OXe});var IA=S((b7t,ioe)=>{"use strict";var tu=require("node:assert"),roe=require("node:net"),LXe=require("node:http"),wf=Je(),{channels:EA}=tA(),MXe=one(),FXe=oA(),{InvalidArgumentError:wr,InformationalError:UXe,ClientDestroyedError:qXe}=at(),$Xe=HC(),{kUrl:sc,kServerName:sd,kClient:GXe,kBusy:Mq,kConnect:HXe,kResuming:xf,kRunning:cI,kPending:lI,kSize:aI,kQueue:ta,kConnected:zXe,kConnecting:CA,kNeedDrain:id,kKeepAliveDefaultTimeout:Kse,kHostHeader:VXe,kPendingIdx:ra,kRunningIdx:ru,kError:WXe,kPipelining:XB,kKeepAliveTimeoutValue:JXe,kMaxHeadersSize:YXe,kKeepAliveMaxTimeout:jXe,kKeepAliveTimeoutThreshold:KXe,kHeadersTimeout:XXe,kBodyTimeout:ZXe,kStrictContentLength:e7e,kConnector:sI,kMaxRedirections:t7e,kMaxRequests:Fq,kCounter:r7e,kClose:n7e,kDestroy:s7e,kDispatch:o7e,kInterceptors:Xse,kLocalAddress:oI,kMaxResponseSize:i7e,kOnError:a7e,kHTTPContext:xr,kMaxConcurrentStreams:c7e,kResume:iI}=Ht(),l7e=Mse(),u7e=Vse(),Zse=!1,od=Symbol("kClosedResolve"),eoe=i(()=>{},"noop");function noe(t){return t[XB]??t[xr]?.defaultPipelining??1}i(noe,"getPipelining");var Uq=class extends FXe{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:h,socketPath:A,pipelining:y,tls:E,strictContentLength:I,maxCachedSessions:x,maxRedirections:b,connect:N,maxRequestsPerClient:_,localAddress:v,maxResponseSize:Y,autoSelectFamily:Qe,autoSelectFamilyAttemptTimeout:ke,maxConcurrentStreams:De,allowH2:ce,webSocket:Tt,eventSource:Be}={}){if(super({webSocket:Tt,eventSource:Be}),d!==void 0)throw new wr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new wr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new wr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new wr("unsupported idleTimeout, use keepAliveTimeout instead");if(f!==void 0)throw new wr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new wr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new wr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new wr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new wr("invalid keepAliveTimeout");if(m!=null&&(!Number.isFinite(m)||m<=0))throw new wr("invalid keepAliveMaxTimeout");if(h!=null&&!Number.isFinite(h))throw new wr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new wr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new wr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new wr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new wr("maxRedirections must be a positive number");if(_!=null&&(!Number.isInteger(_)||_<0))throw new wr("maxRequestsPerClient must be a positive number");if(v!=null&&(typeof v!="string"||roe.isIP(v)===0))throw new wr("localAddress must be valid string IP address");if(Y!=null&&(!Number.isInteger(Y)||Y<-1))throw new wr("maxResponseSize must be a positive number");if(ke!=null&&(!Number.isInteger(ke)||ke<-1))throw new wr("autoSelectFamilyAttemptTimeout must be a positive number");if(ce!=null&&typeof ce!="boolean")throw new wr("allowH2 must be a valid boolean value");if(De!=null&&(typeof De!="number"||De<1))throw new wr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=$Xe({...E,maxCachedSessions:x,allowH2:ce,socketPath:A,timeout:c,...Qe?{autoSelectFamily:Qe,autoSelectFamilyAttemptTimeout:ke}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[Xse]=r.Client,Zse||(Zse=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[Xse]=[d7e({maxRedirections:b})],this[sc]=wf.parseOrigin(e),this[sI]=N,this[XB]=y??1,this[YXe]=n||LXe.maxHeaderSize,this[Kse]=p??4e3,this[jXe]=m??6e5,this[KXe]=h??2e3,this[JXe]=this[Kse],this[sd]=null,this[oI]=v??null,this[xf]=0,this[id]=0,this[VXe]=`host: ${this[sc].hostname}${this[sc].port?`:${this[sc].port}`:""}\r -`,this[ZXe]=l??3e5,this[XXe]=s??3e5,this[e7e]=I??!0,this[t7e]=b,this[Fq]=_,this[od]=null,this[i7e]=Y>-1?Y:-1,this[c7e]=De??100,this[xr]=null,this[ta]=[],this[ru]=0,this[ra]=0,this[iI]=oe=>qq(this,oe),this[a7e]=oe=>soe(this,oe)}get pipelining(){return this[XB]}set pipelining(e){this[XB]=e,this[iI](!0)}get[lI](){return this[ta].length-this[ra]}get[cI](){return this[ra]-this[ru]}get[aI](){return this[ta].length-this[ru]}get[zXe](){return!!this[xr]&&!this[CA]&&!this[xr].destroyed}get[Mq](){return!!(this[xr]?.busy(null)||this[aI]>=(noe(this)||1)||this[lI]>0)}[HXe](e){ooe(this),this.once("connect",e)}[o7e](e,r){let n=e.origin||this[sc].origin,s=new MXe(n,e,r);return this[ta].push(s),this[xf]||(wf.bodyLength(s.body)==null&&wf.isIterable(s.body)?(this[xf]=1,queueMicrotask(()=>qq(this))):this[iI](!0)),this[xf]&&this[id]!==2&&this[Mq]&&(this[id]=2),this[id]<2}async[n7e](){return new Promise(e=>{this[aI]?this[od]=e:e(null)})}async[s7e](e){return new Promise(r=>{let n=this[ta].splice(this[ra]);for(let o=0;o{this[od]&&(this[od](),this[od]=null),r(null)},"callback");this[xr]?(this[xr].destroy(e,s),this[xr]=null):queueMicrotask(s),this[iI]()})}},d7e=KB();function soe(t,e){if(t[cI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){tu(t[ra]===t[ru]);let r=t[ta].splice(t[ru]);for(let n=0;n{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[sd],localAddress:t[oI]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){wf.destroy(o.on("error",eoe),new qXe);return}tu(o);try{t[xr]=o.alpnProtocol==="h2"?await u7e(t,o):await l7e(t,o)}catch(a){throw o.destroy().on("error",eoe),a}t[CA]=!1,o[r7e]=0,o[Fq]=t[Fq],o[GXe]=t,o[WXe]=null,EA.connected.hasSubscribers&&EA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[sd],localAddress:t[oI]},connector:t[sI],socket:o}),t.emit("connect",t[sc],[t])}catch(o){if(t.destroyed)return;if(t[CA]=!1,EA.connectError.hasSubscribers&&EA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[sd],localAddress:t[oI]},connector:t[sI],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(tu(t[cI]===0);t[lI]>0&&t[ta][t[ra]].servername===t[sd];){let a=t[ta][t[ra]++];wf.errorRequest(t,a,o)}else soe(t,o);t.emit("connectionError",t[sc],[t],o)}t[iI]()}i(ooe,"connect");function toe(t){t[id]=0,t.emit("drain",t[sc],[t])}i(toe,"emitDrain");function qq(t,e){t[xf]!==2&&(t[xf]=2,p7e(t,e),t[xf]=0,t[ru]>256&&(t[ta].splice(0,t[ru]),t[ra]-=t[ru],t[ru]=0))}i(qq,"resume");function p7e(t,e){for(;;){if(t.destroyed){tu(t[lI]===0);return}if(t[od]&&!t[aI]){t[od](),t[od]=null;return}if(t[xr]&&t[xr].resume(),t[Mq])t[id]=2;else if(t[id]===2){e?(t[id]=1,queueMicrotask(()=>toe(t))):toe(t);continue}if(t[lI]===0||t[cI]>=(noe(t)||1))return;let r=t[ta][t[ra]];if(t[sc].protocol==="https:"&&t[sd]!==r.servername){if(t[cI]>0)return;t[sd]=r.servername,t[xr]?.destroy(new UXe("servername changed"),()=>{t[xr]=null,qq(t)})}if(t[CA])return;if(!t[xr]){ooe(t);return}if(t[xr].destroyed||t[xr].busy(r))return;!r.aborted&&t[xr].write(r)?t[ra]++:t[ta].splice(t[ra],1)}}i(p7e,"_resume");ioe.exports=Uq});var $q=S((N7t,aoe)=>{"use strict";var ZB=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)}};aoe.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new ZB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ZB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var loe=S((P7t,coe)=>{var{kFree:f7e,kConnected:m7e,kPending:h7e,kQueued:A7e,kRunning:g7e,kSize:y7e}=Ht(),bf=Symbol("pool"),Gq=class{static{i(this,"PoolStats")}constructor(e){this[bf]=e}get connected(){return this[bf][m7e]}get free(){return this[bf][f7e]}get pending(){return this[bf][h7e]}get queued(){return this[bf][A7e]}get running(){return this[bf][g7e]}get size(){return this[bf][y7e]}};coe.exports=Gq});var Yq=S((v7t,Eoe)=>{"use strict";var E7e=oA(),C7e=$q(),{kConnected:Hq,kSize:uoe,kRunning:doe,kPending:poe,kQueued:uI,kBusy:I7e,kFree:S7e,kUrl:w7e,kClose:x7e,kDestroy:b7e,kDispatch:B7e}=Ht(),R7e=loe(),Qs=Symbol("clients"),as=Symbol("needDrain"),dI=Symbol("queue"),zq=Symbol("closed resolve"),Vq=Symbol("onDrain"),foe=Symbol("onConnect"),moe=Symbol("onDisconnect"),hoe=Symbol("onConnectionError"),Wq=Symbol("get dispatcher"),goe=Symbol("add client"),yoe=Symbol("remove client"),Aoe=Symbol("stats"),Jq=class extends E7e{static{i(this,"PoolBase")}constructor(e){super(e),this[dI]=new C7e,this[Qs]=[],this[uI]=0;let r=this;this[Vq]=i(function(s,o){let a=r[dI],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[uI]--,c=!this.dispatch(l.opts,l.handler)}this[as]=c,!this[as]&&r[as]&&(r[as]=!1,r.emit("drain",s,[r,...o])),r[zq]&&a.isEmpty()&&Promise.all(r[Qs].map(l=>l.close())).then(r[zq])},"onDrain"),this[foe]=(n,s)=>{r.emit("connect",n,[r,...s])},this[moe]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[hoe]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[Aoe]=new R7e(this)}get[I7e](){return this[as]}get[Hq](){return this[Qs].filter(e=>e[Hq]).length}get[S7e](){return this[Qs].filter(e=>e[Hq]&&!e[as]).length}get[poe](){let e=this[uI];for(let{[poe]:r}of this[Qs])e+=r;return e}get[doe](){let e=0;for(let{[doe]:r}of this[Qs])e+=r;return e}get[uoe](){let e=this[uI];for(let{[uoe]:r}of this[Qs])e+=r;return e}get stats(){return this[Aoe]}async[x7e](){this[dI].isEmpty()?await Promise.all(this[Qs].map(e=>e.close())):await new Promise(e=>{this[zq]=e})}async[b7e](e){for(;;){let r=this[dI].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Qs].map(r=>r.destroy(e)))}[B7e](e,r){let n=this[Wq]();return n?n.dispatch(e,r)||(n[as]=!0,this[as]=!this[Wq]()):(this[as]=!0,this[dI].push({opts:e,handler:r}),this[uI]++),!this[as]}[goe](e){return e.on("drain",this[Vq]).on("connect",this[foe]).on("disconnect",this[moe]).on("connectionError",this[hoe]),this[Qs].push(e),this[as]&&queueMicrotask(()=>{this[as]&&this[Vq](e[w7e],[this,e])}),this}[yoe](e){e.close(()=>{let r=this[Qs].indexOf(e);r!==-1&&this[Qs].splice(r,1)}),this[as]=this[Qs].some(r=>!r[as]&&r.closed!==!0&&r.destroyed!==!0)}};Eoe.exports={PoolBase:Jq,kClients:Qs,kNeedDrain:as,kAddClient:goe,kRemoveClient:yoe,kGetDispatcher:Wq}});var SA=S((D7t,woe)=>{"use strict";var{PoolBase:N7e,kClients:eR,kNeedDrain:T7e,kAddClient:P7e,kGetDispatcher:_7e}=Yq(),v7e=IA(),{InvalidArgumentError:jq}=at(),Coe=Je(),{kUrl:Ioe,kInterceptors:Q7e}=Ht(),D7e=HC(),Kq=Symbol("options"),Xq=Symbol("connections"),Soe=Symbol("factory");function k7e(t,e){return new v7e(t,e)}i(k7e,"defaultFactory");var Zq=class extends N7e{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=k7e,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 jq("invalid connections");if(typeof n!="function")throw new jq("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new jq("connect must be a function or an object");typeof s!="function"&&(s=D7e({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(f),this[Q7e]=f.interceptors?.Pool&&Array.isArray(f.interceptors.Pool)?f.interceptors.Pool:[],this[Xq]=r||null,this[Ioe]=Coe.parseOrigin(e),this[Kq]={...Coe.deepClone(f),connect:s,allowH2:p},this[Kq].interceptors=f.interceptors?{...f.interceptors}:void 0,this[Soe]=n,this.on("connectionError",(m,h,A)=>{for(let y of h){let E=this[eR].indexOf(y);E!==-1&&this[eR].splice(E,1)}})}[_7e](){for(let e of this[eR])if(!e[T7e])return e;if(!this[Xq]||this[eR].length{"use strict";var{BalancedPoolMissingUpstreamError:O7e,InvalidArgumentError:L7e}=at(),{PoolBase:M7e,kClients:Fn,kNeedDrain:pI,kAddClient:F7e,kRemoveClient:U7e,kGetDispatcher:q7e}=Yq(),$7e=SA(),{kUrl:e$,kInterceptors:G7e}=Ht(),{parseOrigin:xoe}=Je(),boe=Symbol("factory"),tR=Symbol("options"),Boe=Symbol("kGreatestCommonDivisor"),Bf=Symbol("kCurrentWeight"),Rf=Symbol("kIndex"),ni=Symbol("kWeight"),rR=Symbol("kMaxWeightPerServer"),nR=Symbol("kErrorPenalty");function H7e(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(H7e,"getGreatestCommonDivisor");function z7e(t,e){return new $7e(t,e)}i(z7e,"defaultFactory");var t$=class extends M7e{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=z7e,...n}={}){if(super(),this[tR]=n,this[Rf]=-1,this[Bf]=0,this[rR]=this[tR].maxWeightPerServer||100,this[nR]=this[tR].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new L7e("factory must be a function.");this[G7e]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[boe]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=xoe(e).origin;if(this[Fn].find(s=>s[e$].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[boe](r,Object.assign({},this[tR]));this[F7e](n),n.on("connect",()=>{n[ni]=Math.min(this[rR],n[ni]+this[nR])}),n.on("connectionError",()=>{n[ni]=Math.max(1,n[ni]-this[nR]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[ni]=Math.max(1,n[ni]-this[nR]),this._updateBalancedPoolStats())});for(let s of this[Fn])s[ni]=this[rR];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[e$].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[U7e](n),this}get upstreams(){return this[Fn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[e$].origin)}[q7e](){if(this[Fn].length===0)throw new O7e;if(!this[Fn].find(o=>!o[pI]&&o.closed!==!0&&o.destroyed!==!0)||this[Fn].map(o=>o[pI]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Fn].findIndex(o=>!o[pI]);for(;n++this[Fn][s][ni]&&!o[pI]&&(s=this[Rf]),this[Rf]===0&&(this[Bf]=this[Bf]-this[Boe],this[Bf]<=0&&(this[Bf]=this[rR])),o[ni]>=this[Bf]&&!o[pI])return o}return this[Bf]=this[Fn][s][ni],this[Rf]=s,this[Fn][s]}};Roe.exports=t$});var wA=S((M7t,koe)=>{"use strict";var{InvalidArgumentError:sR}=at(),{kClients:ad,kRunning:Toe,kClose:V7e,kDestroy:W7e,kDispatch:J7e,kInterceptors:Y7e}=Ht(),j7e=oA(),K7e=SA(),X7e=IA(),Z7e=Je(),eZe=KB(),Poe=Symbol("onConnect"),_oe=Symbol("onDisconnect"),voe=Symbol("onConnectionError"),tZe=Symbol("maxRedirections"),Qoe=Symbol("onDrain"),Doe=Symbol("factory"),r$=Symbol("options");function rZe(t,e){return e&&e.connections===1?new X7e(t,e):new K7e(t,e)}i(rZe,"defaultFactory");var n$=class extends j7e{static{i(this,"Agent")}constructor({factory:e=rZe,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new sR("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new sR("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new sR("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[Y7e]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[eZe({maxRedirections:r})],this[r$]={...Z7e.deepClone(o),connect:n,tls:s},this[r$].interceptors=o.interceptors?{...o.interceptors}:void 0,this[tZe]=r,this[Doe]=e,this[ad]=new Map,this[Qoe]=(a,c)=>{this.emit("drain",a,[this,...c])},this[Poe]=(a,c)=>{this.emit("connect",a,[this,...c])},this[_oe]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[voe]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[Toe](){let e=0;for(let r of this[ad].values())e+=r[Toe];return e}[J7e](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new sR("opts.origin must be a non-empty string or URL.");let s=this[ad].get(n);return s||(s=this[Doe](e.origin,this[r$]).on("drain",this[Qoe]).on("connect",this[Poe]).on("disconnect",this[_oe]).on("connectionError",this[voe]),this[ad].set(n,s)),s.dispatch(e,r)}async[V7e](){let e=[];for(let r of this[ad].values())e.push(r.close());this[ad].clear(),await Promise.all(e)}async[W7e](e){let r=[];for(let n of this[ad].values())r.push(n.destroy(e));this[ad].clear(),await Promise.all(r)}};koe.exports=n$});var c$=S((U7t,Voe)=>{"use strict";var{kProxy:s$,kClose:qoe,kDestroy:$oe,kDispatch:Ooe,kInterceptors:nZe}=Ht(),{URL:Nf}=require("node:url"),sZe=wA(),Goe=SA(),Hoe=oA(),{InvalidArgumentError:xA,RequestAbortedError:oZe,SecureProxyConnectionError:iZe}=at(),Loe=HC(),zoe=IA(),oR=Symbol("proxy agent"),iR=Symbol("proxy client"),cd=Symbol("proxy headers"),o$=Symbol("request tls settings"),Moe=Symbol("proxy tls settings"),Foe=Symbol("connect endpoint function"),Uoe=Symbol("tunnel proxy");function aZe(t){return t==="https:"?443:80}i(aZe,"defaultProtocolPort");function cZe(t,e){return new Goe(t,e)}i(cZe,"defaultFactory");var lZe=i(()=>{},"noop");function uZe(t,e){return e.connections===1?new zoe(t,e):new Goe(t,e)}i(uZe,"defaultAgentFactory");var i$=class extends Hoe{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new xA("Proxy URL is mandatory");this[cd]=r,s?this.#e=s(e,{connect:n}):this.#e=new zoe(e,{connect:n})}[Ooe](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new xA("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 Nf(s);a.host=c}return e.headers={...this[cd],...a},this.#e[Ooe](e,r)}async[qoe](){return this.#e.close()}async[$oe](e){return this.#e.destroy(e)}},a$=class extends Hoe{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Nf)&&!e.uri)throw new xA("Proxy uri is mandatory");let{clientFactory:r=cZe}=e;if(typeof r!="function")throw new xA("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[s$]={uri:o,protocol:l},this[nZe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[o$]=e.requestTls,this[Moe]=e.proxyTls,this[cd]=e.headers||{},this[Uoe]=n,e.auth&&e.token)throw new xA("opts.auth cannot be used in combination with opts.token");e.auth?this[cd]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[cd]["proxy-authorization"]=e.token:u&&d&&(this[cd]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let f=Loe({...e.proxyTls});this[Foe]=Loe({...e.requestTls});let m=e.factory||uZe,h=i((A,y)=>{let{protocol:E}=new Nf(A);return!this[Uoe]&&E==="http:"&&this[s$].protocol==="http:"?new i$(this[s$].uri,{headers:this[cd],connect:f,factory:m}):m(A,y)},"factory");this[iR]=r(s,{connect:f}),this[oR]=new sZe({...e,factory:h,connect:i(async(A,y)=>{let E=A.host;A.port||(E+=`:${aZe(A.protocol)}`);try{let{socket:I,statusCode:x}=await this[iR].connect({origin:a,port:c,path:E,signal:A.signal,headers:{...this[cd],host:A.host},servername:this[Moe]?.servername||p});if(x!==200&&(I.on("error",lZe).destroy(),y(new oZe(`Proxy response (${x}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){y(null,I);return}let b;this[o$]?b=this[o$].servername:b=A.servername,this[Foe]({...A,servername:b,httpSocket:I},y)}catch(I){I.code==="ERR_TLS_CERT_ALTNAME_INVALID"?y(new iZe(I)):y(I)}},"connect")})}dispatch(e,r){let n=dZe(e.headers);if(pZe(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Nf(e.origin);n.host=s}return this[oR].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Nf(e):e instanceof Nf?e:new Nf(e.uri)}async[qoe](){await this[oR].close(),await this[iR].close()}async[$oe](){await this[oR].destroy(),await this[iR].destroy()}};function dZe(t){if(Array.isArray(t)){let e={};for(let r=0;rr.toLowerCase()==="proxy-authorization"))throw new xA("Proxy-Authorization should be sent in ProxyAgent constructor")}i(pZe,"throwIfProxyAuthIsSent");Voe.exports=a$});var Xoe=S(($7t,Koe)=>{"use strict";var fZe=oA(),{kClose:mZe,kDestroy:hZe,kClosed:Woe,kDestroyed:Joe,kDispatch:AZe,kNoProxyAgent:fI,kHttpProxyAgent:ld,kHttpsProxyAgent:Tf}=Ht(),Yoe=c$(),gZe=wA(),yZe={"http:":80,"https:":443},joe=!1,l$=class extends fZe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,joe||(joe=!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[fI]=new gZe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[ld]=new Yoe({...o,uri:a}):this[ld]=this[fI];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[Tf]=new Yoe({...o,uri:c}):this[Tf]=this[ld],this.#o()}[AZe](e,r){let n=new URL(e.origin);return this.#r(n).dispatch(e,r)}async[mZe](){await this[fI].close(),this[ld][Woe]||await this[ld].close(),this[Tf][Woe]||await this[Tf].close()}async[hZe](e){await this[fI].destroy(e),this[ld][Joe]||await this[ld].destroy(e),this[Tf][Joe]||await this[Tf].destroy(e)}#r(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||yZe[r]||0,this.#s(n,s)?r==="https:"?this[Tf]:this[ld]:this[fI]}#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 mI=require("node:assert"),{kRetryHandlerDefaultRetry:Zoe}=Ht(),{RequestRetryError:Pf}=at(),{isDisturbed:eie,parseHeaders:EZe,parseRangeHeader:tie,wrapRequestBody:CZe}=Je();function IZe(t){let e=Date.now();return new Date(t).getTime()-e}i(IZe,"calculateRetryAfterHeader");function rie(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 Pf("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(rie,"validatePartialResponseContentLength");var u$=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:CZe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[Zoe],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(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,mI(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[Zoe](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:h,errorCodes:A,methods:y}=u,{counter:E}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){s(e);return}if(Array.isArray(y)&&!y.includes(l)){s(e);return}if(o!=null&&Array.isArray(h)&&!h.includes(o)){s(e);return}if(E>d){s(e);return}let I=c?.["retry-after"];I&&(I=Number(I),I=Number.isNaN(I)?IZe(I):I*1e3);let x=I>0?Math.min(I,f):Math.min(p*m**(E-1),f);setTimeout(()=>s(null),x)}onHeaders(e,r,n,s){let o=EZe(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 Pf("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 Pf("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=tie(o["content-range"]);if(!c)return this.abort(new Pf("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new Pf("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=rie(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 Pf("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=tie(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=rie(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;mI(u!=null&&Number.isFinite(u),"content-range mismatch"),mI(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 mI(Number.isFinite(this.start)),mI(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 Pf("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||eie(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||eie(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")}};nie.exports=u$});var oie=S((V7t,sie)=>{"use strict";var SZe=$C(),wZe=aR(),d$=class extends SZe{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 wZe({...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()}};sie.exports=d$});var g$=S((J7t,mie)=>{"use strict";var uie=require("node:assert"),{Readable:xZe}=require("node:stream"),{RequestAbortedError:die,NotSupportedError:bZe,InvalidArgumentError:BZe,AbortError:p$}=at(),pie=Je(),{ReadableStreamFrom:RZe}=Je(),go=Symbol("kConsume"),hI=Symbol("kReading"),ud=Symbol("kBody"),iie=Symbol("kAbort"),fie=Symbol("kContentType"),aie=Symbol("kContentLength"),NZe=i(()=>{},"noop"),f$=class extends xZe{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[iie]=r,this[go]=null,this[ud]=null,this[fie]=n,this[aie]=s,this[hI]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new die),e&&this[iie](),super.destroy(e)}_destroy(e,r){this[hI]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[hI]=!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[hI]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[go]&&e!==null?(h$(this[go],e),this[hI]?super.push(e):!0):super.push(e)}async text(){return AI(this,"text")}async json(){return AI(this,"json")}async blob(){return AI(this,"blob")}async bytes(){return AI(this,"bytes")}async arrayBuffer(){return AI(this,"arrayBuffer")}async formData(){throw new bZe}get bodyUsed(){return pie.isDisturbed(this)}get body(){return this[ud]||(this[ud]=RZe(this),this[go]&&(this[ud].getReader(),uie(this[ud].locked))),this[ud]}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 BZe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[aie]>r&&this.destroy(new p$);let a=i(()=>{this.destroy(n.reason??new p$)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new p$):s(null)}).on("error",NZe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function TZe(t){return t[ud]&&t[ud].locked===!0||t[go]}i(TZe,"isLocked");function PZe(t){return pie.isDisturbed(t)||TZe(t)}i(PZe,"isUnusable");async function AI(t,e){return uie(!t[go]),new Promise((r,n)=>{if(PZe(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[go]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){A$(this[go],s)}).on("close",function(){this[go].body!==null&&A$(this[go],new die)}),_Ze(t[go])})})}i(AI,"consume");function _Ze(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(m$,"chunksDecode");function cie(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 vZe=require("node:assert"),{ResponseStatusCodeError:hie}=at(),{chunksDecode:Aie}=g$(),QZe=128*1024;async function DZe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){vZe(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>QZe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new hie(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{gie(r)?d=JSON.parse(Aie(a,c)):yie(r)&&(d=Aie(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new hie(l,n,o,d)))}i(DZe,"getResolveErrorBodyCallback");var gie=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"),yie=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Eie.exports={getResolveErrorBodyCallback:DZe,isContentTypeApplicationJson:gie,isContentTypeText:yie}});var Sie=S((X7t,E$)=>{"use strict";var kZe=require("node:assert"),{Readable:OZe}=g$(),{InvalidArgumentError:bA,RequestAbortedError:Cie}=at(),yo=Je(),{getResolveErrorBodyCallback:LZe}=y$(),{AsyncResource:MZe}=require("node:async_hooks"),cR=class extends MZe{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 yo.isStream(a)&&yo.destroy(a.on("error",yo.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,yo.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new Cie:this.removeAbortListener=yo.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new Cie,this.res?yo.destroy(this.res.on("error",yo.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}kZe(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"?yo.parseRawHeaders(r):yo.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let f=u==="raw"?yo.parseHeaders(r):p,m=f["content-type"],h=f["content-length"],A=new OZe({resume:n,abort:c,contentType:m,contentLength:this.method!=="HEAD"&&h?Number(h):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(LZe,null,{callback:o,body:A,contentType:m,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){yo.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(()=>{yo.destroy(r,e)})),s&&(this.body=null,yo.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function Iie(t,e){if(e===void 0)return new Promise((r,n)=>{Iie.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new cR(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Iie,"request");E$.exports=Iie;E$.exports.RequestHandler=cR});var gI=S((eZt,bie)=>{var{addAbortListener:FZe}=Je(),{RequestAbortedError:UZe}=at(),BA=Symbol("kListener"),oc=Symbol("kSignal");function wie(t){t.abort?t.abort(t[oc]?.reason):t.reason=t[oc]?.reason??new UZe,xie(t)}i(wie,"abort");function qZe(t,e){if(t.reason=null,t[oc]=null,t[BA]=null,!!e){if(e.aborted){wie(t);return}t[oc]=e,t[BA]=()=>{wie(t)},FZe(t[oc],t[BA])}}i(qZe,"addSignal");function xie(t){t[oc]&&("removeEventListener"in t[oc]?t[oc].removeEventListener("abort",t[BA]):t[oc].removeListener("abort",t[BA]),t[oc]=null,t[BA]=null)}i(xie,"removeSignal");bie.exports={addSignal:qZe,removeSignal:xie}});var Tie=S((rZt,Nie)=>{"use strict";var $Ze=require("node:assert"),{finished:GZe,PassThrough:HZe}=require("node:stream"),{InvalidArgumentError:RA,InvalidReturnValueError:zZe}=at(),na=Je(),{getResolveErrorBodyCallback:VZe}=y$(),{AsyncResource:WZe}=require("node:async_hooks"),{addSignal:JZe,removeSignal:Bie}=gI(),C$=class extends WZe{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new RA("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 RA("invalid callback");if(typeof r!="function")throw new RA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new RA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new RA("invalid method");if(l&&typeof l!="function")throw new RA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw na.isStream(c)&&na.destroy(c.on("error",na.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,na.isStream(c)&&c.on("error",p=>{this.onError(p)}),JZe(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}$Ze(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"?na.parseRawHeaders(r):na.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 h=(u==="raw"?na.parseHeaders(r):d)["content-type"];p=new HZe,this.callback=null,this.runInAsyncScope(VZe,null,{callback:l,body:p,contentType:h,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 zZe("expected Writable");GZe(p,{readable:!1},m=>{let{callback:h,res:A,opaque:y,trailers:E,abort:I}=this;this.res=null,(m||!A.readable)&&na.destroy(A,m),this.callback=null,this.runInAsyncScope(h,null,m||null,{opaque:y,trailers:E}),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;Bie(this),r&&(this.trailers=na.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Bie(this),this.factory=null,r?(this.res=null,na.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,na.destroy(o,e))}};function Rie(t,e,r){if(r===void 0)return new Promise((n,s)=>{Rie.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new C$(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Rie,"stream");Nie.exports=Rie});var Qie=S((sZt,vie)=>{"use strict";var{Readable:_ie,Duplex:YZe,PassThrough:jZe}=require("node:stream"),{InvalidArgumentError:yI,InvalidReturnValueError:KZe,RequestAbortedError:I$}=at(),si=Je(),{AsyncResource:XZe}=require("node:async_hooks"),{addSignal:ZZe,removeSignal:eet}=gI(),Pie=require("node:assert"),NA=Symbol("resume"),S$=class extends _ie{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[NA]=null}_read(){let{[NA]:e}=this;e&&(this[NA]=null,e())}_destroy(e,r){this._read(),r(e)}},w$=class extends _ie{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[NA]=e}_read(){this[NA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new I$),r(e)}},x$=class extends XZe{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new yI("invalid opts");if(typeof r!="function")throw new yI("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 yI("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new yI("invalid method");if(a&&typeof a!="function")throw new yI("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 S$().on("error",si.nop),this.ret=new YZe({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[NA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:f,ret:m,abort:h}=this;!l&&!m._readableState.endEmitted&&(l=new I$),h&&l&&h(),si.destroy(d,l),si.destroy(p,l),si.destroy(f,l),eet(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,ZZe(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}Pie(!s,"pipeline cannot be retried"),Pie(!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"?si.parseRawHeaders(r):si.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new w$(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?si.parseRawHeaders(r):si.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",si.nop),l}if(!c||typeof c.on!="function")throw new KZe("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;si.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||si.destroy(l,new I$)}),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,si.destroy(r,e)}};function tet(t,e){try{let r=new x$(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new jZe().destroy(r)}}i(tet,"pipeline");vie.exports=tet});var Fie=S((iZt,Mie)=>{"use strict";var{InvalidArgumentError:b$,SocketError:ret}=at(),{AsyncResource:net}=require("node:async_hooks"),Die=Je(),{addSignal:set,removeSignal:kie}=gI(),Oie=require("node:assert"),B$=class extends net{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new b$("invalid opts");if(typeof r!="function")throw new b$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new b$("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,set(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Oie(this.callback),this.abort=e,this.context=null}onHeaders(){throw new ret("bad upgrade",null)}onUpgrade(e,r,n){Oie(e===101);let{callback:s,opaque:o,context:a}=this;kie(this),this.callback=null;let c=this.responseHeaders==="raw"?Die.parseRawHeaders(r):Die.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;kie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Lie(t,e){if(e===void 0)return new Promise((r,n)=>{Lie.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new B$(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(Lie,"upgrade");Mie.exports=Lie});var Hie=S((cZt,Gie)=>{"use strict";var oet=require("node:assert"),{AsyncResource:iet}=require("node:async_hooks"),{InvalidArgumentError:R$,SocketError:aet}=at(),Uie=Je(),{addSignal:cet,removeSignal:qie}=gI(),N$=class extends iet{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new R$("invalid opts");if(typeof r!="function")throw new R$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new R$("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,cet(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}oet(this.callback),this.abort=e,this.context=r}onHeaders(){throw new aet("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;qie(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?Uie.parseRawHeaders(r):Uie.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;qie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function $ie(t,e){if(e===void 0)return new Promise((r,n)=>{$ie.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new N$(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($ie,"connect");Gie.exports=$ie});var zie=S((uZt,TA)=>{"use strict";TA.exports.request=Sie();TA.exports.stream=Tie();TA.exports.pipeline=Qie();TA.exports.upgrade=Fie();TA.exports.connect=Hie()});var P$=S((dZt,Wie)=>{"use strict";var{UndiciError:uet}=at(),Vie=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),T$=class t extends uet{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[Vie]===!0}[Vie]=!0};Wie.exports={MockNotMatchedError:T$}});var PA=S((fZt,Jie)=>{"use strict";Jie.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 EI=S((mZt,oae)=>{"use strict";var{MockNotMatchedError:_f}=P$(),{kDispatches:lR,kMockAgent:det,kOriginalDispatch:pet,kOrigin:fet,kGetNetConnect:met}=PA(),{buildURL:het}=Je(),{STATUS_CODES:Aet}=require("node:http"),{types:{isPromise:get}}=require("node:util");function nu(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(nu,"matchValue");function jie(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(jie,"lowerCaseEntries");function Kie(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=Kie(e,r);if(!nu(n,s))return!1}return!0}i(Xie,"matchHeaders");function Yie(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(Yie,"safeUrl");function yet(t,{path:e,method:r,body:n,headers:s}){let o=nu(t.path,e),a=nu(t.method,r),c=typeof t.body<"u"?nu(t.body,n):!0,l=Xie(t,s);return o&&a&&c&&l}i(yet,"matchKey");function Zie(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(Zie,"getResponseData");function eae(t,e){let r=e.query?het(e.path,e.query):e.path,n=typeof r=="string"?Yie(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>nu(Yie(o),n));if(s.length===0)throw new _f(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>nu(o,e.method)),s.length===0)throw new _f(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?nu(o,e.body):!0),s.length===0)throw new _f(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>Xie(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new _f(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(eae,"getMockDispatch");function Eet(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(Eet,"addMockDispatch");function _$(t,e){let r=t.findIndex(n=>n.consumed?yet(n,e):!1);r!==-1&&t.splice(r,1)}i(_$,"deleteMockDispatch");function tae(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(tae,"buildKey");function v$(t){let e=Object.keys(t),r=[];for(let n=0;n=f,n.pending=p0?setTimeout(()=>{m(this[lR])},u):m(this[lR]);function m(A,y=o){let E=Array.isArray(t.headers)?Q$(t.headers):t.headers,I=typeof y=="function"?y({...t,headers:E}):y;if(get(I)){I.then(_=>m(A,_));return}let x=Zie(I),b=v$(a),N=v$(c);e.onConnect?.(_=>e.onError(_),null),e.onHeaders?.(s,b,h,rae(s)),e.onData?.(Buffer.from(x)),e.onComplete?.(N),_$(A,r)}i(m,"handleReply");function h(){}return i(h,"resume"),!0}i(nae,"mockDispatch");function Iet(){let t=this[det],e=this[fet],r=this[pet];return i(function(s,o){if(t.isMockActive)try{nae.call(this,s,o)}catch(a){if(a instanceof _f){let c=t[met]();if(c===!1)throw new _f(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(sae(c,e))r.call(this,s,o);else throw new _f(`${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(Iet,"buildMockDispatch");function sae(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>nu(n,r.host)))}i(sae,"checkNetConnect");function wet(t){if(t){let{agent:e,...r}=t;return r}}i(wet,"buildMockOptions");oae.exports={getResponseData:Zie,getMockDispatch:eae,addMockDispatch:Eet,deleteMockDispatch:_$,buildKey:tae,generateKeyValues:v$,matchValue:nu,getResponse:Cet,getStatusText:rae,mockDispatch:nae,buildMockDispatch:Iet,checkNetConnect:sae,buildMockOptions:wet,getHeaderByName:Kie,buildHeadersFromArray:Q$}});var U$=S((AZt,F$)=>{"use strict";var{getResponseData:xet,buildKey:bet,addMockDispatch:D$}=EI(),{kDispatches:uR,kDispatchKey:dR,kDefaultHeaders:k$,kDefaultTrailers:O$,kContentLength:L$,kMockDispatch:pR}=PA(),{InvalidArgumentError:ic}=at(),{buildURL:Bet}=Je(),_A=class{static{i(this,"MockScope")}constructor(e){this[pR]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ic("waitInMs must be a valid integer > 0");return this[pR].delay=e,this}persist(){return this[pR].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ic("repeatTimes must be a valid integer > 0");return this[pR].times=e,this}},M$=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new ic("opts must be an object");if(typeof e.path>"u")throw new ic("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=Bet(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[dR]=bet(e),this[uR]=r,this[k$]={},this[O$]={},this[L$]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=xet(r),o=this[L$]?{"content-length":s.length}:{},a={...this[k$],...o,...n.headers},c={...this[O$],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new ic("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new ic("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 ic("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=D$(this[uR],this[dR],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=D$(this[uR],this[dR],n);return new _A(s)}replyWithError(e){if(typeof e>"u")throw new ic("error must be defined");let r=D$(this[uR],this[dR],{error:e});return new _A(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new ic("headers must be defined");return this[k$]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new ic("trailers must be defined");return this[O$]=e,this}replyContentLength(){return this[L$]=!0,this}};F$.exports.MockInterceptor=M$;F$.exports.MockScope=_A});var G$=S((yZt,pae)=>{"use strict";var{promisify:Ret}=require("node:util"),Net=IA(),{buildMockDispatch:Tet}=EI(),{kDispatches:iae,kMockAgent:aae,kClose:cae,kOriginalClose:lae,kOrigin:uae,kOriginalDispatch:Pet,kConnected:q$}=PA(),{MockInterceptor:_et}=U$(),dae=Ht(),{InvalidArgumentError:vet}=at(),$$=class extends Net{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new vet("Argument opts.agent must implement Agent");this[aae]=r.agent,this[uae]=e,this[iae]=[],this[q$]=1,this[Pet]=this.dispatch,this[lae]=this.close.bind(this),this.dispatch=Tet.call(this),this.close=this[cae]}get[dae.kConnected](){return this[q$]}intercept(e){return new _et(e,this[iae])}async[cae](){await Ret(this[lae])(),this[q$]=0,this[aae][dae.kClients].delete(this[uae])}};pae.exports=$$});var V$=S((CZt,Eae)=>{"use strict";var{promisify:Qet}=require("node:util"),Det=SA(),{buildMockDispatch:ket}=EI(),{kDispatches:fae,kMockAgent:mae,kClose:hae,kOriginalClose:Aae,kOrigin:gae,kOriginalDispatch:Oet,kConnected:H$}=PA(),{MockInterceptor:Let}=U$(),yae=Ht(),{InvalidArgumentError:Met}=at(),z$=class extends Det{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new Met("Argument opts.agent must implement Agent");this[mae]=r.agent,this[gae]=e,this[fae]=[],this[H$]=1,this[Oet]=this.dispatch,this[Aae]=this.close.bind(this),this.dispatch=ket.call(this),this.close=this[hae]}get[yae.kConnected](){return this[H$]}intercept(e){return new Let(e,this[fae])}async[hae](){await Qet(this[Aae])(),this[H$]=0,this[mae][yae.kClients].delete(this[gae])}};Eae.exports=z$});var Iae=S((wZt,Cae)=>{"use strict";var Fet={pronoun:"it",is:"is",was:"was",this:"this"},Uet={pronoun:"they",is:"are",was:"were",this:"these"};Cae.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?Fet:Uet,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var wae=S((BZt,Sae)=>{"use strict";var{Transform:qet}=require("node:stream"),{Console:$et}=require("node:console"),Get=process.versions.icu?"\u2705":"Y ",Het=process.versions.icu?"\u274C":"N ";Sae.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new qet({transform(r,n,s){s(null,r)}}),this.logger=new $et({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?Get:Het,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Rae=S((NZt,Bae)=>{"use strict";var{kClients:vf}=Ht(),zet=wA(),{kAgent:W$,kMockAgentSet:fR,kMockAgentGet:xae,kDispatches:J$,kIsMockActive:mR,kNetConnect:Qf,kGetNetConnect:Vet,kOptions:hR,kFactory:AR}=PA(),Wet=G$(),Jet=V$(),{matchValue:Yet,buildMockOptions:jet}=EI(),{InvalidArgumentError:bae,UndiciError:Ket}=at(),Xet=$C(),Zet=Iae(),ett=wae(),Y$=class extends Xet{static{i(this,"MockAgent")}constructor(e){if(super(e),this[Qf]=!0,this[mR]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new bae("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new zet(e);this[W$]=r,this[vf]=r[vf],this[hR]=jet(e)}get(e){let r=this[xae](e);return r||(r=this[AR](e),this[fR](e,r)),r}dispatch(e,r){return this.get(e.origin),this[W$].dispatch(e,r)}async close(){await this[W$].close(),this[vf].clear()}deactivate(){this[mR]=!1}activate(){this[mR]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Qf])?this[Qf].push(e):this[Qf]=[e];else if(typeof e>"u")this[Qf]=!0;else throw new bae("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Qf]=!1}get isMockActive(){return this[mR]}[fR](e,r){this[vf].set(e,r)}[AR](e){let r=Object.assign({agent:this},this[hR]);return this[hR]&&this[hR].connections===1?new Wet(e,r):new Jet(e,r)}[xae](e){let r=this[vf].get(e);if(r)return r;if(typeof e!="string"){let n=this[AR]("http://localhost:9999");return this[fR](e,n),n}for(let[n,s]of Array.from(this[vf]))if(s&&typeof n!="string"&&Yet(n,e)){let o=this[AR](e);return this[fR](e,o),o[J$]=s[J$],o}}[Vet](){return this[Qf]}pendingInterceptors(){let e=this[vf];return Array.from(e.entries()).flatMap(([r,n])=>n[J$].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new ett}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new Zet("interceptor","interceptors").pluralize(r.length);throw new Ket(` +`,"latin1"),r!==null&&s!==r){if(n[Bq])throw new Ef;process.emitWarning(new Ef)}e[kt].timeout&&e[kt].timeoutType===yA&&e[kt].timeout.refresh&&e[kt].timeout.refresh(),n[tu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[rd]=!1,e&&(ge(n[kr]<=1,"pipeline should only contain this request"),s(e))}};Mse.exports=nXe});var Wse=S((x7t,Vse)=>{"use strict";var rc=require("node:assert"),{errorMonitor:_q}=require("node:events"),{pipeline:uXe}=require("node:stream"),Ke=Je(),{RequestContentLengthMismatchError:Qq,RequestAbortedError:vq,SocketError:nI,InformationalError:zB}=at(),{kUrl:VB,kReset:JB,kClient:EA,kRunning:YB,kPending:dXe,kQueue:wf,kPendingIdx:kq,kRunningIdx:tc,kError:ea,kSocket:sn,kStrictContentLength:pXe,kOnError:Oq,kMaxConcurrentStreams:Hse,kHTTP2Session:Zi,kResume:sd,kSize:fXe,kHTTPContext:mXe}=Ht(),nd=Symbol("open streams"),Use,qse=!1,WB;try{WB=require("node:http2")}catch{WB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:hXe,HTTP2_HEADER_METHOD:AXe,HTTP2_HEADER_PATH:gXe,HTTP2_HEADER_SCHEME:yXe,HTTP2_HEADER_CONTENT_LENGTH:EXe,HTTP2_HEADER_EXPECT:CXe,HTTP2_HEADER_STATUS:Dq}}=WB;function zse(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(zse,"parseH2Headers");function IXe(t){let{[Dq]:e,...r}=t;return zse(r)}i(IXe,"parseH2ResponseHeaders");async function SXe(t,e){t[sn]=e,qse||(qse=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=WB.connect(t[VB],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Hse]});r[nd]=0,r[EA]=t,r[sn]=e,Ke.addListener(r,"error",xXe),Ke.addListener(r,"frameError",bXe),Ke.addListener(r,"end",BXe),Ke.addListener(r,"goaway",RXe),Ke.addListener(r,"close",function(){let{[EA]:s}=this,{[sn]:o}=s,a=this[sn][ea]||this[ea]||new nI("closed",Ke.getSocketInfo(o));if(s[Zi]=null,s.destroyed){rc(s[dXe]===0);let c=s[wf].splice(s[tc]);for(let l=0;l{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return TXe(t,...s)},resume(){wXe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(SXe,"connectH2");function wXe(t){let e=t[sn];e?.destroyed===!1&&(t[fXe]===0&&t[Hse]===0?(e.unref(),t[Zi].unref()):(e.ref(),t[Zi].ref()))}i(wXe,"resumeH2");function xXe(t){this[sn][ea]=t,this[EA][Oq](t)}i(xXe,"onHttp2SessionError");function bXe(t,e,r){if(r===0){let n=new zB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[sn][ea]=n,this[EA][Oq](n)}}i(bXe,"onHttp2FrameError");function BXe(){let t=new nI("other side closed",Ke.getSocketInfo(this[sn]));this.destroy(t),Ke.destroy(this[sn],t)}i(BXe,"onHttp2SessionEnd");function RXe(t){let e=this[ea]||new nI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ke.getSocketInfo(this)),r=this[EA];if(r[sn]=null,r[mXe]=null,this[Zi]!=null&&(this[Zi].destroy(e),this[Zi]=null),Ke.destroy(this[sn],e),r[tc]{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&Ke.destroy(f,b||new vq);return}b=b||new vq,Ke.errorRequest(t,e,b),f!=null&&Ke.destroy(f,b),Ke.destroy(d,b),t[wf][t[tc]++]=null,t[sd]()}},"abort");try{e.onConnect(A)}catch(b){Ke.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(Y=>{b=!0,f.off(_q,_),e.onUpgradeResponse(Number(Y[Dq]),Y,IXe)},"onResponse"),_=i(Y=>{b=!0,f.off("response",N),e.onUpgradeError(Y)},"onUpgradeError"),v=i(()=>{try{e.onUpgrade(null,null,f)}catch(Y){f.off("response",N),A(Y);return}e.aborted||(f.off("error",A),f.once(_q,_),t[wf][t[tc]++]=null)},"onReady");return f.once("response",N),f.once("error",A),++r[nd],v(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(_q,_),e.onUpgradeError(new zB(`HTTP/2: "stream error" received - code ${f.rstCode}`))),r[nd]-=1,r[nd]===0&&r.unref()}),!0}p[gXe]=s,p[yXe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Ke.bodyLength(d);if(Ke.isFormDataLike(d)){Use??=hA().extractBody;let[b,N]=Use(d);p["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),NXe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[pXe])return Ke.errorRequest(t,e,new Qq),!1;process.emitWarning(new Qq)}E!=null&&(rc(d,"no body must not have content length"),p[EXe]=`${E}`),r.ref();let I=n==="GET"||n==="HEAD"||d===null;return c?(p[CXe]="100-continue",f=r.request(p,{endStream:I,signal:l}),f.once("continue",x)):(f=r.request(p,{endStream:I,signal:l}),x()),++r[nd],f.once("response",b=>{let{[Dq]:N,..._}=b;if(e.onResponseStarted(),e.aborted){let v=new vq;Ke.errorRequest(t,e,v),Ke.destroy(f,v);return}e.onHeaders(Number(N),zse(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",v=>{e.onData(v)===!1&&f.pause()})}),f.once("end",()=>{(f.state?.state==null||f.state.state<6)&&e.onComplete([]),r[nd]===0&&r.unref(),A(new zB("HTTP/2: stream half-closed (remote)")),t[wf][t[tc]++]=null,t[kq]=t[tc],t[sd]()}),f.once("close",()=>{r[nd]-=1,r[nd]===0&&r.unref()}),f.once("error",function(b){A(b)}),f.once("frameError",(b,N)=>{A(new zB(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function x(){!d||E===0?$se(A,f,null,t,e,t[sn],E,y):Ke.isBuffer(d)?$se(A,f,d,t,e,t[sn],E,y):Ke.isBlobLike(d)?typeof d.stream=="function"?Gse(A,f,d.stream(),t,e,t[sn],E,y):_Xe(A,f,d,t,e,t[sn],E,y):Ke.isStream(d)?PXe(A,t[sn],y,f,d,t,e,E):Ke.isIterable(d)?Gse(A,f,d,t,e,t[sn],E,y):rc(!1)}i(x,"writeBodyH2")}i(TXe,"writeH2");function $se(t,e,r,n,s,o,a,c){try{r!=null&&Ke.isBuffer(r)&&(rc(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[sd]()}catch(l){t(l)}}i($se,"writeBuffer");function PXe(t,e,r,n,s,o,a,c){rc(c!==0||o[YB]===0,"stream body cannot be pipelined");let l=uXe(s,n,d=>{d?(Ke.destroy(l,d),t(d)):(Ke.removeAllListeners(l),a.onRequestSent(),r||(e[JB]=!0),o[sd]())});Ke.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(PXe,"writeStream");async function _Xe(t,e,r,n,s,o,a,c){rc(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new Qq;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[sd]()}catch(l){t(l)}}i(_Xe,"writeBlob");async function Gse(t,e,r,n,s,o,a,c){rc(a!==0||n[YB]===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)=>{rc(l===null),o[ea]?f(o[ea]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[ea])throw o[ea];let f=e.write(p);s.onBodySent(p),f||await d()}e.end(),s.onRequestSent(),c||(o[JB]=!0),n[sd]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(Gse,"writeIterable");Vse.exports=SXe});var KB=S((B7t,jse)=>{"use strict";var nc=Je(),{kBodyUsed:sI}=Ht(),Mq=require("node:assert"),{InvalidArgumentError:vXe}=at(),QXe=require("node:events"),DXe=[300,301,302,303,307,308],Jse=Symbol("body"),jB=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[Jse]=e,this[sI]=!1}async*[Symbol.asyncIterator](){Mq(!this[sI],"disturbed"),this[sI]=!0,yield*this[Jse]}},Lq=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new vXe("maxRedirections must be a positive number");nc.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,nc.isStream(this.opts.body)?(nc.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){Mq(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[sI]=!1,QXe.prototype.on.call(this.opts.body,"data",function(){this[sI]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new jB(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&nc.isIterable(this.opts.body)&&(this.opts.body=new jB(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||nc.isDisturbed(this.opts.body)?null:kXe(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}=nc.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=OXe(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 kXe(t,e){if(DXe.indexOf(t)===-1)return null;for(let r=0;r{"use strict";var LXe=KB();function MXe({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new LXe(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(MXe,"createRedirectInterceptor");Kse.exports=MXe});var SA=S((P7t,aoe)=>{"use strict";var ru=require("node:assert"),noe=require("node:net"),FXe=require("node:http"),xf=Je(),{channels:CA}=rA(),UXe=ine(),qXe=iA(),{InvalidArgumentError:wr,InformationalError:$Xe,ClientDestroyedError:GXe}=at(),HXe=zC(),{kUrl:sc,kServerName:od,kClient:zXe,kBusy:Fq,kConnect:VXe,kResuming:bf,kRunning:lI,kPending:uI,kSize:cI,kQueue:ta,kConnected:WXe,kConnecting:IA,kNeedDrain:ad,kKeepAliveDefaultTimeout:Xse,kHostHeader:JXe,kPendingIdx:ra,kRunningIdx:nu,kError:YXe,kPipelining:ZB,kKeepAliveTimeoutValue:jXe,kMaxHeadersSize:KXe,kKeepAliveMaxTimeout:XXe,kKeepAliveTimeoutThreshold:ZXe,kHeadersTimeout:e7e,kBodyTimeout:t7e,kStrictContentLength:r7e,kConnector:oI,kMaxRedirections:n7e,kMaxRequests:Uq,kCounter:s7e,kClose:o7e,kDestroy:i7e,kDispatch:a7e,kInterceptors:Zse,kLocalAddress:iI,kMaxResponseSize:c7e,kOnError:l7e,kHTTPContext:xr,kMaxConcurrentStreams:u7e,kResume:aI}=Ht(),d7e=Fse(),p7e=Wse(),eoe=!1,id=Symbol("kClosedResolve"),toe=i(()=>{},"noop");function soe(t){return t[ZB]??t[xr]?.defaultPipelining??1}i(soe,"getPipelining");var qq=class extends qXe{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:h,socketPath:A,pipelining:y,tls:E,strictContentLength:I,maxCachedSessions:x,maxRedirections:b,connect:N,maxRequestsPerClient:_,localAddress:v,maxResponseSize:Y,autoSelectFamily:Qe,autoSelectFamilyAttemptTimeout:ke,maxConcurrentStreams:De,allowH2:ce,webSocket:Tt,eventSource:Be}={}){if(super({webSocket:Tt,eventSource:Be}),d!==void 0)throw new wr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new wr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new wr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new wr("unsupported idleTimeout, use keepAliveTimeout instead");if(f!==void 0)throw new wr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new wr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new wr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new wr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new wr("invalid keepAliveTimeout");if(m!=null&&(!Number.isFinite(m)||m<=0))throw new wr("invalid keepAliveMaxTimeout");if(h!=null&&!Number.isFinite(h))throw new wr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new wr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new wr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new wr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new wr("maxRedirections must be a positive number");if(_!=null&&(!Number.isInteger(_)||_<0))throw new wr("maxRequestsPerClient must be a positive number");if(v!=null&&(typeof v!="string"||noe.isIP(v)===0))throw new wr("localAddress must be valid string IP address");if(Y!=null&&(!Number.isInteger(Y)||Y<-1))throw new wr("maxResponseSize must be a positive number");if(ke!=null&&(!Number.isInteger(ke)||ke<-1))throw new wr("autoSelectFamilyAttemptTimeout must be a positive number");if(ce!=null&&typeof ce!="boolean")throw new wr("allowH2 must be a valid boolean value");if(De!=null&&(typeof De!="number"||De<1))throw new wr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=HXe({...E,maxCachedSessions:x,allowH2:ce,socketPath:A,timeout:c,...Qe?{autoSelectFamily:Qe,autoSelectFamilyAttemptTimeout:ke}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[Zse]=r.Client,eoe||(eoe=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[Zse]=[f7e({maxRedirections:b})],this[sc]=xf.parseOrigin(e),this[oI]=N,this[ZB]=y??1,this[KXe]=n||FXe.maxHeaderSize,this[Xse]=p??4e3,this[XXe]=m??6e5,this[ZXe]=h??2e3,this[jXe]=this[Xse],this[od]=null,this[iI]=v??null,this[bf]=0,this[ad]=0,this[JXe]=`host: ${this[sc].hostname}${this[sc].port?`:${this[sc].port}`:""}\r +`,this[t7e]=l??3e5,this[e7e]=s??3e5,this[r7e]=I??!0,this[n7e]=b,this[Uq]=_,this[id]=null,this[c7e]=Y>-1?Y:-1,this[u7e]=De??100,this[xr]=null,this[ta]=[],this[nu]=0,this[ra]=0,this[aI]=oe=>$q(this,oe),this[l7e]=oe=>ooe(this,oe)}get pipelining(){return this[ZB]}set pipelining(e){this[ZB]=e,this[aI](!0)}get[uI](){return this[ta].length-this[ra]}get[lI](){return this[ra]-this[nu]}get[cI](){return this[ta].length-this[nu]}get[WXe](){return!!this[xr]&&!this[IA]&&!this[xr].destroyed}get[Fq](){return!!(this[xr]?.busy(null)||this[cI]>=(soe(this)||1)||this[uI]>0)}[VXe](e){ioe(this),this.once("connect",e)}[a7e](e,r){let n=e.origin||this[sc].origin,s=new UXe(n,e,r);return this[ta].push(s),this[bf]||(xf.bodyLength(s.body)==null&&xf.isIterable(s.body)?(this[bf]=1,queueMicrotask(()=>$q(this))):this[aI](!0)),this[bf]&&this[ad]!==2&&this[Fq]&&(this[ad]=2),this[ad]<2}async[o7e](){return new Promise(e=>{this[cI]?this[id]=e:e(null)})}async[i7e](e){return new Promise(r=>{let n=this[ta].splice(this[ra]);for(let o=0;o{this[id]&&(this[id](),this[id]=null),r(null)},"callback");this[xr]?(this[xr].destroy(e,s),this[xr]=null):queueMicrotask(s),this[aI]()})}},f7e=XB();function ooe(t,e){if(t[lI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ru(t[ra]===t[nu]);let r=t[ta].splice(t[nu]);for(let n=0;n{t[oI]({host:e,hostname:r,protocol:n,port:s,servername:t[od],localAddress:t[iI]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){xf.destroy(o.on("error",toe),new GXe);return}ru(o);try{t[xr]=o.alpnProtocol==="h2"?await p7e(t,o):await d7e(t,o)}catch(a){throw o.destroy().on("error",toe),a}t[IA]=!1,o[s7e]=0,o[Uq]=t[Uq],o[zXe]=t,o[YXe]=null,CA.connected.hasSubscribers&&CA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[od],localAddress:t[iI]},connector:t[oI],socket:o}),t.emit("connect",t[sc],[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[xr]?.version,servername:t[od],localAddress:t[iI]},connector:t[oI],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ru(t[lI]===0);t[uI]>0&&t[ta][t[ra]].servername===t[od];){let a=t[ta][t[ra]++];xf.errorRequest(t,a,o)}else ooe(t,o);t.emit("connectionError",t[sc],[t],o)}t[aI]()}i(ioe,"connect");function roe(t){t[ad]=0,t.emit("drain",t[sc],[t])}i(roe,"emitDrain");function $q(t,e){t[bf]!==2&&(t[bf]=2,m7e(t,e),t[bf]=0,t[nu]>256&&(t[ta].splice(0,t[nu]),t[ra]-=t[nu],t[nu]=0))}i($q,"resume");function m7e(t,e){for(;;){if(t.destroyed){ru(t[uI]===0);return}if(t[id]&&!t[cI]){t[id](),t[id]=null;return}if(t[xr]&&t[xr].resume(),t[Fq])t[ad]=2;else if(t[ad]===2){e?(t[ad]=1,queueMicrotask(()=>roe(t))):roe(t);continue}if(t[uI]===0||t[lI]>=(soe(t)||1))return;let r=t[ta][t[ra]];if(t[sc].protocol==="https:"&&t[od]!==r.servername){if(t[lI]>0)return;t[od]=r.servername,t[xr]?.destroy(new $Xe("servername changed"),()=>{t[xr]=null,$q(t)})}if(t[IA])return;if(!t[xr]){ioe(t);return}if(t[xr].destroyed||t[xr].busy(r))return;!r.aborted&&t[xr].write(r)?t[ra]++:t[ta].splice(t[ra],1)}}i(m7e,"_resume");aoe.exports=qq});var Gq=S((Q7t,coe)=>{"use strict";var eR=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)}};coe.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new eR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var uoe=S((k7t,loe)=>{var{kFree:h7e,kConnected:A7e,kPending:g7e,kQueued:y7e,kRunning:E7e,kSize:C7e}=Ht(),Bf=Symbol("pool"),Hq=class{static{i(this,"PoolStats")}constructor(e){this[Bf]=e}get connected(){return this[Bf][A7e]}get free(){return this[Bf][h7e]}get pending(){return this[Bf][g7e]}get queued(){return this[Bf][y7e]}get running(){return this[Bf][E7e]}get size(){return this[Bf][C7e]}};loe.exports=Hq});var jq=S((L7t,Coe)=>{"use strict";var I7e=iA(),S7e=Gq(),{kConnected:zq,kSize:doe,kRunning:poe,kPending:foe,kQueued:dI,kBusy:w7e,kFree:x7e,kUrl:b7e,kClose:B7e,kDestroy:R7e,kDispatch:N7e}=Ht(),T7e=uoe(),Qs=Symbol("clients"),as=Symbol("needDrain"),pI=Symbol("queue"),Vq=Symbol("closed resolve"),Wq=Symbol("onDrain"),moe=Symbol("onConnect"),hoe=Symbol("onDisconnect"),Aoe=Symbol("onConnectionError"),Jq=Symbol("get dispatcher"),yoe=Symbol("add client"),Eoe=Symbol("remove client"),goe=Symbol("stats"),Yq=class extends I7e{static{i(this,"PoolBase")}constructor(e){super(e),this[pI]=new S7e,this[Qs]=[],this[dI]=0;let r=this;this[Wq]=i(function(s,o){let a=r[pI],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[dI]--,c=!this.dispatch(l.opts,l.handler)}this[as]=c,!this[as]&&r[as]&&(r[as]=!1,r.emit("drain",s,[r,...o])),r[Vq]&&a.isEmpty()&&Promise.all(r[Qs].map(l=>l.close())).then(r[Vq])},"onDrain"),this[moe]=(n,s)=>{r.emit("connect",n,[r,...s])},this[hoe]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[Aoe]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[goe]=new T7e(this)}get[w7e](){return this[as]}get[zq](){return this[Qs].filter(e=>e[zq]).length}get[x7e](){return this[Qs].filter(e=>e[zq]&&!e[as]).length}get[foe](){let e=this[dI];for(let{[foe]:r}of this[Qs])e+=r;return e}get[poe](){let e=0;for(let{[poe]:r}of this[Qs])e+=r;return e}get[doe](){let e=this[dI];for(let{[doe]:r}of this[Qs])e+=r;return e}get stats(){return this[goe]}async[B7e](){this[pI].isEmpty()?await Promise.all(this[Qs].map(e=>e.close())):await new Promise(e=>{this[Vq]=e})}async[R7e](e){for(;;){let r=this[pI].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Qs].map(r=>r.destroy(e)))}[N7e](e,r){let n=this[Jq]();return n?n.dispatch(e,r)||(n[as]=!0,this[as]=!this[Jq]()):(this[as]=!0,this[pI].push({opts:e,handler:r}),this[dI]++),!this[as]}[yoe](e){return e.on("drain",this[Wq]).on("connect",this[moe]).on("disconnect",this[hoe]).on("connectionError",this[Aoe]),this[Qs].push(e),this[as]&&queueMicrotask(()=>{this[as]&&this[Wq](e[b7e],[this,e])}),this}[Eoe](e){e.close(()=>{let r=this[Qs].indexOf(e);r!==-1&&this[Qs].splice(r,1)}),this[as]=this[Qs].some(r=>!r[as]&&r.closed!==!0&&r.destroyed!==!0)}};Coe.exports={PoolBase:Yq,kClients:Qs,kNeedDrain:as,kAddClient:yoe,kRemoveClient:Eoe,kGetDispatcher:Jq}});var wA=S((F7t,xoe)=>{"use strict";var{PoolBase:P7e,kClients:tR,kNeedDrain:_7e,kAddClient:v7e,kGetDispatcher:Q7e}=jq(),D7e=SA(),{InvalidArgumentError:Kq}=at(),Ioe=Je(),{kUrl:Soe,kInterceptors:k7e}=Ht(),O7e=zC(),Xq=Symbol("options"),Zq=Symbol("connections"),woe=Symbol("factory");function L7e(t,e){return new D7e(t,e)}i(L7e,"defaultFactory");var e$=class extends P7e{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=L7e,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 Kq("invalid connections");if(typeof n!="function")throw new Kq("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new Kq("connect must be a function or an object");typeof s!="function"&&(s=O7e({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(f),this[k7e]=f.interceptors?.Pool&&Array.isArray(f.interceptors.Pool)?f.interceptors.Pool:[],this[Zq]=r||null,this[Soe]=Ioe.parseOrigin(e),this[Xq]={...Ioe.deepClone(f),connect:s,allowH2:p},this[Xq].interceptors=f.interceptors?{...f.interceptors}:void 0,this[woe]=n,this.on("connectionError",(m,h,A)=>{for(let y of h){let E=this[tR].indexOf(y);E!==-1&&this[tR].splice(E,1)}})}[Q7e](){for(let e of this[tR])if(!e[_7e])return e;if(!this[Zq]||this[tR].length{"use strict";var{BalancedPoolMissingUpstreamError:M7e,InvalidArgumentError:F7e}=at(),{PoolBase:U7e,kClients:Fn,kNeedDrain:fI,kAddClient:q7e,kRemoveClient:$7e,kGetDispatcher:G7e}=jq(),H7e=wA(),{kUrl:t$,kInterceptors:z7e}=Ht(),{parseOrigin:boe}=Je(),Boe=Symbol("factory"),rR=Symbol("options"),Roe=Symbol("kGreatestCommonDivisor"),Rf=Symbol("kCurrentWeight"),Nf=Symbol("kIndex"),ni=Symbol("kWeight"),nR=Symbol("kMaxWeightPerServer"),sR=Symbol("kErrorPenalty");function V7e(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(V7e,"getGreatestCommonDivisor");function W7e(t,e){return new H7e(t,e)}i(W7e,"defaultFactory");var r$=class extends U7e{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=W7e,...n}={}){if(super(),this[rR]=n,this[Nf]=-1,this[Rf]=0,this[nR]=this[rR].maxWeightPerServer||100,this[sR]=this[rR].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new F7e("factory must be a function.");this[z7e]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[Boe]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=boe(e).origin;if(this[Fn].find(s=>s[t$].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[Boe](r,Object.assign({},this[rR]));this[q7e](n),n.on("connect",()=>{n[ni]=Math.min(this[nR],n[ni]+this[sR])}),n.on("connectionError",()=>{n[ni]=Math.max(1,n[ni]-this[sR]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[ni]=Math.max(1,n[ni]-this[sR]),this._updateBalancedPoolStats())});for(let s of this[Fn])s[ni]=this[nR];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;rs[t$].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[$7e](n),this}get upstreams(){return this[Fn].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[t$].origin)}[G7e](){if(this[Fn].length===0)throw new M7e;if(!this[Fn].find(o=>!o[fI]&&o.closed!==!0&&o.destroyed!==!0)||this[Fn].map(o=>o[fI]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Fn].findIndex(o=>!o[fI]);for(;n++this[Fn][s][ni]&&!o[fI]&&(s=this[Nf]),this[Nf]===0&&(this[Rf]=this[Rf]-this[Roe],this[Rf]<=0&&(this[Rf]=this[nR])),o[ni]>=this[Rf]&&!o[fI])return o}return this[Rf]=this[Fn][s][ni],this[Nf]=s,this[Fn][s]}};Noe.exports=r$});var xA=S((G7t,Ooe)=>{"use strict";var{InvalidArgumentError:oR}=at(),{kClients:cd,kRunning:Poe,kClose:J7e,kDestroy:Y7e,kDispatch:j7e,kInterceptors:K7e}=Ht(),X7e=iA(),Z7e=wA(),eZe=SA(),tZe=Je(),rZe=XB(),_oe=Symbol("onConnect"),voe=Symbol("onDisconnect"),Qoe=Symbol("onConnectionError"),nZe=Symbol("maxRedirections"),Doe=Symbol("onDrain"),koe=Symbol("factory"),n$=Symbol("options");function sZe(t,e){return e&&e.connections===1?new eZe(t,e):new Z7e(t,e)}i(sZe,"defaultFactory");var s$=class extends X7e{static{i(this,"Agent")}constructor({factory:e=sZe,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new oR("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new oR("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new oR("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[K7e]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[rZe({maxRedirections:r})],this[n$]={...tZe.deepClone(o),connect:n,tls:s},this[n$].interceptors=o.interceptors?{...o.interceptors}:void 0,this[nZe]=r,this[koe]=e,this[cd]=new Map,this[Doe]=(a,c)=>{this.emit("drain",a,[this,...c])},this[_oe]=(a,c)=>{this.emit("connect",a,[this,...c])},this[voe]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[Qoe]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[Poe](){let e=0;for(let r of this[cd].values())e+=r[Poe];return e}[j7e](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new oR("opts.origin must be a non-empty string or URL.");let s=this[cd].get(n);return s||(s=this[koe](e.origin,this[n$]).on("drain",this[Doe]).on("connect",this[_oe]).on("disconnect",this[voe]).on("connectionError",this[Qoe]),this[cd].set(n,s)),s.dispatch(e,r)}async[J7e](){let e=[];for(let r of this[cd].values())e.push(r.close());this[cd].clear(),await Promise.all(e)}async[Y7e](e){let r=[];for(let n of this[cd].values())r.push(n.destroy(e));this[cd].clear(),await Promise.all(r)}};Ooe.exports=s$});var l$=S((z7t,Woe)=>{"use strict";var{kProxy:o$,kClose:$oe,kDestroy:Goe,kDispatch:Loe,kInterceptors:oZe}=Ht(),{URL:Tf}=require("node:url"),iZe=xA(),Hoe=wA(),zoe=iA(),{InvalidArgumentError:bA,RequestAbortedError:aZe,SecureProxyConnectionError:cZe}=at(),Moe=zC(),Voe=SA(),iR=Symbol("proxy agent"),aR=Symbol("proxy client"),ld=Symbol("proxy headers"),i$=Symbol("request tls settings"),Foe=Symbol("proxy tls settings"),Uoe=Symbol("connect endpoint function"),qoe=Symbol("tunnel proxy");function lZe(t){return t==="https:"?443:80}i(lZe,"defaultProtocolPort");function uZe(t,e){return new Hoe(t,e)}i(uZe,"defaultFactory");var dZe=i(()=>{},"noop");function pZe(t,e){return e.connections===1?new Voe(t,e):new Hoe(t,e)}i(pZe,"defaultAgentFactory");var a$=class extends zoe{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new bA("Proxy URL is mandatory");this[ld]=r,s?this.#e=s(e,{connect:n}):this.#e=new Voe(e,{connect:n})}[Loe](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 Tf(s);a.host=c}return e.headers={...this[ld],...a},this.#e[Loe](e,r)}async[$oe](){return this.#e.close()}async[Goe](e){return this.#e.destroy(e)}},c$=class extends zoe{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Tf)&&!e.uri)throw new bA("Proxy uri is mandatory");let{clientFactory:r=uZe}=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[o$]={uri:o,protocol:l},this[oZe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[i$]=e.requestTls,this[Foe]=e.proxyTls,this[ld]=e.headers||{},this[qoe]=n,e.auth&&e.token)throw new bA("opts.auth cannot be used in combination with opts.token");e.auth?this[ld]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[ld]["proxy-authorization"]=e.token:u&&d&&(this[ld]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let f=Moe({...e.proxyTls});this[Uoe]=Moe({...e.requestTls});let m=e.factory||pZe,h=i((A,y)=>{let{protocol:E}=new Tf(A);return!this[qoe]&&E==="http:"&&this[o$].protocol==="http:"?new a$(this[o$].uri,{headers:this[ld],connect:f,factory:m}):m(A,y)},"factory");this[aR]=r(s,{connect:f}),this[iR]=new iZe({...e,factory:h,connect:i(async(A,y)=>{let E=A.host;A.port||(E+=`:${lZe(A.protocol)}`);try{let{socket:I,statusCode:x}=await this[aR].connect({origin:a,port:c,path:E,signal:A.signal,headers:{...this[ld],host:A.host},servername:this[Foe]?.servername||p});if(x!==200&&(I.on("error",dZe).destroy(),y(new aZe(`Proxy response (${x}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){y(null,I);return}let b;this[i$]?b=this[i$].servername:b=A.servername,this[Uoe]({...A,servername:b,httpSocket:I},y)}catch(I){I.code==="ERR_TLS_CERT_ALTNAME_INVALID"?y(new cZe(I)):y(I)}},"connect")})}dispatch(e,r){let n=fZe(e.headers);if(mZe(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Tf(e.origin);n.host=s}return this[iR].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Tf(e):e instanceof Tf?e:new Tf(e.uri)}async[$oe](){await this[iR].close(),await this[aR].close()}async[Goe](){await this[iR].destroy(),await this[aR].destroy()}};function fZe(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(mZe,"throwIfProxyAuthIsSent");Woe.exports=c$});var Zoe=S((W7t,Xoe)=>{"use strict";var hZe=iA(),{kClose:AZe,kDestroy:gZe,kClosed:Joe,kDestroyed:Yoe,kDispatch:yZe,kNoProxyAgent:mI,kHttpProxyAgent:ud,kHttpsProxyAgent:Pf}=Ht(),joe=l$(),EZe=xA(),CZe={"http:":80,"https:":443},Koe=!1,u$=class extends hZe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,Koe||(Koe=!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[mI]=new EZe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[ud]=new joe({...o,uri:a}):this[ud]=this[mI];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[Pf]=new joe({...o,uri:c}):this[Pf]=this[ud],this.#o()}[yZe](e,r){let n=new URL(e.origin);return this.#r(n).dispatch(e,r)}async[AZe](){await this[mI].close(),this[ud][Joe]||await this[ud].close(),this[Pf][Joe]||await this[Pf].close()}async[gZe](e){await this[mI].destroy(e),this[ud][Yoe]||await this[ud].destroy(e),this[Pf][Yoe]||await this[Pf].destroy(e)}#r(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||CZe[r]||0,this.#s(n,s)?r==="https:"?this[Pf]:this[ud]:this[mI]}#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 hI=require("node:assert"),{kRetryHandlerDefaultRetry:eie}=Ht(),{RequestRetryError:_f}=at(),{isDisturbed:tie,parseHeaders:IZe,parseRangeHeader:rie,wrapRequestBody:SZe}=Je();function wZe(t){let e=Date.now();return new Date(t).getTime()-e}i(wZe,"calculateRetryAfterHeader");function nie(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 _f("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(nie,"validatePartialResponseContentLength");var d$=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:SZe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[eie],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(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,hI(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[eie](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:h,errorCodes:A,methods:y}=u,{counter:E}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){s(e);return}if(Array.isArray(y)&&!y.includes(l)){s(e);return}if(o!=null&&Array.isArray(h)&&!h.includes(o)){s(e);return}if(E>d){s(e);return}let I=c?.["retry-after"];I&&(I=Number(I),I=Number.isNaN(I)?wZe(I):I*1e3);let x=I>0?Math.min(I,f):Math.min(p*m**(E-1),f);setTimeout(()=>s(null),x)}onHeaders(e,r,n,s){let o=IZe(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 _f("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 _f("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=rie(o["content-range"]);if(!c)return this.abort(new _f("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new _f("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=nie(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 _f("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=rie(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=nie(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;hI(u!=null&&Number.isFinite(u),"content-range mismatch"),hI(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 hI(Number.isFinite(this.start)),hI(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 _f("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||tie(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||tie(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")}};sie.exports=d$});var iie=S((K7t,oie)=>{"use strict";var xZe=GC(),bZe=cR(),p$=class extends xZe{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 bZe({...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()}};oie.exports=p$});var y$=S((Z7t,hie)=>{"use strict";var die=require("node:assert"),{Readable:BZe}=require("node:stream"),{RequestAbortedError:pie,NotSupportedError:RZe,InvalidArgumentError:NZe,AbortError:f$}=at(),fie=Je(),{ReadableStreamFrom:TZe}=Je(),go=Symbol("kConsume"),AI=Symbol("kReading"),dd=Symbol("kBody"),aie=Symbol("kAbort"),mie=Symbol("kContentType"),cie=Symbol("kContentLength"),PZe=i(()=>{},"noop"),m$=class extends BZe{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[aie]=r,this[go]=null,this[dd]=null,this[mie]=n,this[cie]=s,this[AI]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new pie),e&&this[aie](),super.destroy(e)}_destroy(e,r){this[AI]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[AI]=!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[AI]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[go]&&e!==null?(A$(this[go],e),this[AI]?super.push(e):!0):super.push(e)}async text(){return gI(this,"text")}async json(){return gI(this,"json")}async blob(){return gI(this,"blob")}async bytes(){return gI(this,"bytes")}async arrayBuffer(){return gI(this,"arrayBuffer")}async formData(){throw new RZe}get bodyUsed(){return fie.isDisturbed(this)}get body(){return this[dd]||(this[dd]=TZe(this),this[go]&&(this[dd].getReader(),die(this[dd].locked))),this[dd]}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 NZe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[cie]>r&&this.destroy(new f$);let a=i(()=>{this.destroy(n.reason??new f$)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new f$):s(null)}).on("error",PZe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function _Ze(t){return t[dd]&&t[dd].locked===!0||t[go]}i(_Ze,"isLocked");function vZe(t){return fie.isDisturbed(t)||_Ze(t)}i(vZe,"isUnusable");async function gI(t,e){return die(!t[go]),new Promise((r,n)=>{if(vZe(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[go]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){g$(this[go],s)}).on("close",function(){this[go].body!==null&&g$(this[go],new pie)}),QZe(t[go])})})}i(gI,"consume");function QZe(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(h$,"chunksDecode");function lie(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 DZe=require("node:assert"),{ResponseStatusCodeError:Aie}=at(),{chunksDecode:gie}=y$(),kZe=128*1024;async function OZe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){DZe(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>kZe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new Aie(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{yie(r)?d=JSON.parse(gie(a,c)):Eie(r)&&(d=gie(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new Aie(l,n,o,d)))}i(OZe,"getResolveErrorBodyCallback");var yie=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"),Eie=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Cie.exports={getResolveErrorBodyCallback:OZe,isContentTypeApplicationJson:yie,isContentTypeText:Eie}});var wie=S((nZt,C$)=>{"use strict";var LZe=require("node:assert"),{Readable:MZe}=y$(),{InvalidArgumentError:BA,RequestAbortedError:Iie}=at(),yo=Je(),{getResolveErrorBodyCallback:FZe}=E$(),{AsyncResource:UZe}=require("node:async_hooks"),lR=class extends UZe{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 yo.isStream(a)&&yo.destroy(a.on("error",yo.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,yo.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new Iie:this.removeAbortListener=yo.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new Iie,this.res?yo.destroy(this.res.on("error",yo.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}LZe(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"?yo.parseRawHeaders(r):yo.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let f=u==="raw"?yo.parseHeaders(r):p,m=f["content-type"],h=f["content-length"],A=new MZe({resume:n,abort:c,contentType:m,contentLength:this.method!=="HEAD"&&h?Number(h):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(FZe,null,{callback:o,body:A,contentType:m,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){yo.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(()=>{yo.destroy(r,e)})),s&&(this.body=null,yo.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function Sie(t,e){if(e===void 0)return new Promise((r,n)=>{Sie.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new lR(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Sie,"request");C$.exports=Sie;C$.exports.RequestHandler=lR});var yI=S((oZt,Bie)=>{var{addAbortListener:qZe}=Je(),{RequestAbortedError:$Ze}=at(),RA=Symbol("kListener"),oc=Symbol("kSignal");function xie(t){t.abort?t.abort(t[oc]?.reason):t.reason=t[oc]?.reason??new $Ze,bie(t)}i(xie,"abort");function GZe(t,e){if(t.reason=null,t[oc]=null,t[RA]=null,!!e){if(e.aborted){xie(t);return}t[oc]=e,t[RA]=()=>{xie(t)},qZe(t[oc],t[RA])}}i(GZe,"addSignal");function bie(t){t[oc]&&("removeEventListener"in t[oc]?t[oc].removeEventListener("abort",t[RA]):t[oc].removeListener("abort",t[RA]),t[oc]=null,t[RA]=null)}i(bie,"removeSignal");Bie.exports={addSignal:GZe,removeSignal:bie}});var Pie=S((aZt,Tie)=>{"use strict";var HZe=require("node:assert"),{finished:zZe,PassThrough:VZe}=require("node:stream"),{InvalidArgumentError:NA,InvalidReturnValueError:WZe}=at(),na=Je(),{getResolveErrorBodyCallback:JZe}=E$(),{AsyncResource:YZe}=require("node:async_hooks"),{addSignal:jZe,removeSignal:Rie}=yI(),I$=class extends YZe{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 na.isStream(c)&&na.destroy(c.on("error",na.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,na.isStream(c)&&c.on("error",p=>{this.onError(p)}),jZe(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}HZe(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"?na.parseRawHeaders(r):na.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 h=(u==="raw"?na.parseHeaders(r):d)["content-type"];p=new VZe,this.callback=null,this.runInAsyncScope(JZe,null,{callback:l,body:p,contentType:h,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 WZe("expected Writable");zZe(p,{readable:!1},m=>{let{callback:h,res:A,opaque:y,trailers:E,abort:I}=this;this.res=null,(m||!A.readable)&&na.destroy(A,m),this.callback=null,this.runInAsyncScope(h,null,m||null,{opaque:y,trailers:E}),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;Rie(this),r&&(this.trailers=na.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Rie(this),this.factory=null,r?(this.res=null,na.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,na.destroy(o,e))}};function Nie(t,e,r){if(r===void 0)return new Promise((n,s)=>{Nie.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new I$(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Nie,"stream");Tie.exports=Nie});var Die=S((lZt,Qie)=>{"use strict";var{Readable:vie,Duplex:KZe,PassThrough:XZe}=require("node:stream"),{InvalidArgumentError:EI,InvalidReturnValueError:ZZe,RequestAbortedError:S$}=at(),si=Je(),{AsyncResource:eet}=require("node:async_hooks"),{addSignal:tet,removeSignal:ret}=yI(),_ie=require("node:assert"),TA=Symbol("resume"),w$=class extends vie{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)}},x$=class extends vie{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[TA]=e}_read(){this[TA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new S$),r(e)}},b$=class extends eet{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new EI("invalid opts");if(typeof r!="function")throw new EI("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 EI("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new EI("invalid method");if(a&&typeof a!="function")throw new EI("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 w$().on("error",si.nop),this.ret=new KZe({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:h}=this;!l&&!m._readableState.endEmitted&&(l=new S$),h&&l&&h(),si.destroy(d,l),si.destroy(p,l),si.destroy(f,l),ret(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,tet(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}_ie(!s,"pipeline cannot be retried"),_ie(!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"?si.parseRawHeaders(r):si.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new x$(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?si.parseRawHeaders(r):si.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",si.nop),l}if(!c||typeof c.on!="function")throw new ZZe("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;si.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||si.destroy(l,new S$)}),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,si.destroy(r,e)}};function net(t,e){try{let r=new b$(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new XZe().destroy(r)}}i(net,"pipeline");Qie.exports=net});var Uie=S((dZt,Fie)=>{"use strict";var{InvalidArgumentError:B$,SocketError:set}=at(),{AsyncResource:oet}=require("node:async_hooks"),kie=Je(),{addSignal:iet,removeSignal:Oie}=yI(),Lie=require("node:assert"),R$=class extends oet{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new B$("invalid opts");if(typeof r!="function")throw new B$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new B$("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,iet(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Lie(this.callback),this.abort=e,this.context=null}onHeaders(){throw new set("bad upgrade",null)}onUpgrade(e,r,n){Lie(e===101);let{callback:s,opaque:o,context:a}=this;Oie(this),this.callback=null;let c=this.responseHeaders==="raw"?kie.parseRawHeaders(r):kie.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;Oie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Mie(t,e){if(e===void 0)return new Promise((r,n)=>{Mie.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new R$(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(Mie,"upgrade");Fie.exports=Mie});var zie=S((fZt,Hie)=>{"use strict";var aet=require("node:assert"),{AsyncResource:cet}=require("node:async_hooks"),{InvalidArgumentError:N$,SocketError:uet}=at(),qie=Je(),{addSignal:det,removeSignal:$ie}=yI(),T$=class extends cet{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new N$("invalid opts");if(typeof r!="function")throw new N$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new N$("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,det(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}aet(this.callback),this.abort=e,this.context=r}onHeaders(){throw new uet("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;$ie(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?qie.parseRawHeaders(r):qie.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;$ie(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function Gie(t,e){if(e===void 0)return new Promise((r,n)=>{Gie.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new T$(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(Gie,"connect");Hie.exports=Gie});var Vie=S((hZt,PA)=>{"use strict";PA.exports.request=wie();PA.exports.stream=Pie();PA.exports.pipeline=Die();PA.exports.upgrade=Uie();PA.exports.connect=zie()});var _$=S((AZt,Jie)=>{"use strict";var{UndiciError:pet}=at(),Wie=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),P$=class t extends pet{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[Wie]===!0}[Wie]=!0};Jie.exports={MockNotMatchedError:P$}});var _A=S((yZt,Yie)=>{"use strict";Yie.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 CI=S((EZt,iae)=>{"use strict";var{MockNotMatchedError:vf}=_$(),{kDispatches:uR,kMockAgent:fet,kOriginalDispatch:met,kOrigin:het,kGetNetConnect:Aet}=_A(),{buildURL:get}=Je(),{STATUS_CODES:yet}=require("node:http"),{types:{isPromise:Eet}}=require("node:util");function su(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(su,"matchValue");function Kie(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(Kie,"lowerCaseEntries");function Xie(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=Xie(e,r);if(!su(n,s))return!1}return!0}i(Zie,"matchHeaders");function jie(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(jie,"safeUrl");function Cet(t,{path:e,method:r,body:n,headers:s}){let o=su(t.path,e),a=su(t.method,r),c=typeof t.body<"u"?su(t.body,n):!0,l=Zie(t,s);return o&&a&&c&&l}i(Cet,"matchKey");function eae(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(eae,"getResponseData");function tae(t,e){let r=e.query?get(e.path,e.query):e.path,n=typeof r=="string"?jie(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>su(jie(o),n));if(s.length===0)throw new vf(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>su(o,e.method)),s.length===0)throw new vf(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?su(o,e.body):!0),s.length===0)throw new vf(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>Zie(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new vf(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(tae,"getMockDispatch");function Iet(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(Iet,"addMockDispatch");function v$(t,e){let r=t.findIndex(n=>n.consumed?Cet(n,e):!1);r!==-1&&t.splice(r,1)}i(v$,"deleteMockDispatch");function rae(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(rae,"buildKey");function Q$(t){let e=Object.keys(t),r=[];for(let n=0;n=f,n.pending=p0?setTimeout(()=>{m(this[uR])},u):m(this[uR]);function m(A,y=o){let E=Array.isArray(t.headers)?D$(t.headers):t.headers,I=typeof y=="function"?y({...t,headers:E}):y;if(Eet(I)){I.then(_=>m(A,_));return}let x=eae(I),b=Q$(a),N=Q$(c);e.onConnect?.(_=>e.onError(_),null),e.onHeaders?.(s,b,h,nae(s)),e.onData?.(Buffer.from(x)),e.onComplete?.(N),v$(A,r)}i(m,"handleReply");function h(){}return i(h,"resume"),!0}i(sae,"mockDispatch");function xet(){let t=this[fet],e=this[het],r=this[met];return i(function(s,o){if(t.isMockActive)try{sae.call(this,s,o)}catch(a){if(a instanceof vf){let c=t[Aet]();if(c===!1)throw new vf(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(oae(c,e))r.call(this,s,o);else throw new vf(`${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(xet,"buildMockDispatch");function oae(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>su(n,r.host)))}i(oae,"checkNetConnect");function bet(t){if(t){let{agent:e,...r}=t;return r}}i(bet,"buildMockOptions");iae.exports={getResponseData:eae,getMockDispatch:tae,addMockDispatch:Iet,deleteMockDispatch:v$,buildKey:rae,generateKeyValues:Q$,matchValue:su,getResponse:wet,getStatusText:nae,mockDispatch:sae,buildMockDispatch:xet,checkNetConnect:oae,buildMockOptions:bet,getHeaderByName:Xie,buildHeadersFromArray:D$}});var q$=S((IZt,U$)=>{"use strict";var{getResponseData:Bet,buildKey:Ret,addMockDispatch:k$}=CI(),{kDispatches:dR,kDispatchKey:pR,kDefaultHeaders:O$,kDefaultTrailers:L$,kContentLength:M$,kMockDispatch:fR}=_A(),{InvalidArgumentError:ic}=at(),{buildURL:Net}=Je(),vA=class{static{i(this,"MockScope")}constructor(e){this[fR]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ic("waitInMs must be a valid integer > 0");return this[fR].delay=e,this}persist(){return this[fR].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new ic("repeatTimes must be a valid integer > 0");return this[fR].times=e,this}},F$=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new ic("opts must be an object");if(typeof e.path>"u")throw new ic("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=Net(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[pR]=Ret(e),this[dR]=r,this[O$]={},this[L$]={},this[M$]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=Bet(r),o=this[M$]?{"content-length":s.length}:{},a={...this[O$],...o,...n.headers},c={...this[L$],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new ic("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new ic("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 ic("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=k$(this[dR],this[pR],o);return new vA(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=k$(this[dR],this[pR],n);return new vA(s)}replyWithError(e){if(typeof e>"u")throw new ic("error must be defined");let r=k$(this[dR],this[pR],{error:e});return new vA(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new ic("headers must be defined");return this[O$]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new ic("trailers must be defined");return this[L$]=e,this}replyContentLength(){return this[M$]=!0,this}};U$.exports.MockInterceptor=F$;U$.exports.MockScope=vA});var H$=S((wZt,fae)=>{"use strict";var{promisify:Tet}=require("node:util"),Pet=SA(),{buildMockDispatch:_et}=CI(),{kDispatches:aae,kMockAgent:cae,kClose:lae,kOriginalClose:uae,kOrigin:dae,kOriginalDispatch:vet,kConnected:$$}=_A(),{MockInterceptor:Qet}=q$(),pae=Ht(),{InvalidArgumentError:Det}=at(),G$=class extends Pet{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new Det("Argument opts.agent must implement Agent");this[cae]=r.agent,this[dae]=e,this[aae]=[],this[$$]=1,this[vet]=this.dispatch,this[uae]=this.close.bind(this),this.dispatch=_et.call(this),this.close=this[lae]}get[pae.kConnected](){return this[$$]}intercept(e){return new Qet(e,this[aae])}async[lae](){await Tet(this[uae])(),this[$$]=0,this[cae][pae.kClients].delete(this[dae])}};fae.exports=G$});var W$=S((bZt,Cae)=>{"use strict";var{promisify:ket}=require("node:util"),Oet=wA(),{buildMockDispatch:Let}=CI(),{kDispatches:mae,kMockAgent:hae,kClose:Aae,kOriginalClose:gae,kOrigin:yae,kOriginalDispatch:Met,kConnected:z$}=_A(),{MockInterceptor:Fet}=q$(),Eae=Ht(),{InvalidArgumentError:Uet}=at(),V$=class extends Oet{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new Uet("Argument opts.agent must implement Agent");this[hae]=r.agent,this[yae]=e,this[mae]=[],this[z$]=1,this[Met]=this.dispatch,this[gae]=this.close.bind(this),this.dispatch=Let.call(this),this.close=this[Aae]}get[Eae.kConnected](){return this[z$]}intercept(e){return new Fet(e,this[mae])}async[Aae](){await ket(this[gae])(),this[z$]=0,this[hae][Eae.kClients].delete(this[yae])}};Cae.exports=V$});var Sae=S((NZt,Iae)=>{"use strict";var qet={pronoun:"it",is:"is",was:"was",this:"this"},$et={pronoun:"they",is:"are",was:"were",this:"these"};Iae.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?qet:$et,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var xae=S((_Zt,wae)=>{"use strict";var{Transform:Get}=require("node:stream"),{Console:Het}=require("node:console"),zet=process.versions.icu?"\u2705":"Y ",Vet=process.versions.icu?"\u274C":"N ";wae.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new Get({transform(r,n,s){s(null,r)}}),this.logger=new Het({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?zet:Vet,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Nae=S((QZt,Rae)=>{"use strict";var{kClients:Qf}=Ht(),Wet=xA(),{kAgent:J$,kMockAgentSet:mR,kMockAgentGet:bae,kDispatches:Y$,kIsMockActive:hR,kNetConnect:Df,kGetNetConnect:Jet,kOptions:AR,kFactory:gR}=_A(),Yet=H$(),jet=W$(),{matchValue:Ket,buildMockOptions:Xet}=CI(),{InvalidArgumentError:Bae,UndiciError:Zet}=at(),ett=GC(),ttt=Sae(),rtt=xae(),j$=class extends ett{static{i(this,"MockAgent")}constructor(e){if(super(e),this[Df]=!0,this[hR]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new Bae("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new Wet(e);this[J$]=r,this[Qf]=r[Qf],this[AR]=Xet(e)}get(e){let r=this[bae](e);return r||(r=this[gR](e),this[mR](e,r)),r}dispatch(e,r){return this.get(e.origin),this[J$].dispatch(e,r)}async close(){await this[J$].close(),this[Qf].clear()}deactivate(){this[hR]=!1}activate(){this[hR]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[Df])?this[Df].push(e):this[Df]=[e];else if(typeof e>"u")this[Df]=!0;else throw new Bae("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[Df]=!1}get isMockActive(){return this[hR]}[mR](e,r){this[Qf].set(e,r)}[gR](e){let r=Object.assign({agent:this},this[AR]);return this[AR]&&this[AR].connections===1?new Yet(e,r):new jet(e,r)}[bae](e){let r=this[Qf].get(e);if(r)return r;if(typeof e!="string"){let n=this[gR]("http://localhost:9999");return this[mR](e,n),n}for(let[n,s]of Array.from(this[Qf]))if(s&&typeof n!="string"&&Ket(n,e)){let o=this[gR](e);return this[mR](e,o),o[Y$]=s[Y$],o}}[Jet](){return this[Df]}pendingInterceptors(){let e=this[Qf];return Array.from(e.entries()).flatMap(([r,n])=>n[Y$].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new rtt}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new ttt("interceptor","interceptors").pluralize(r.length);throw new Zet(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(r)} -`.trim())}};Bae.exports=Y$});var CI=S((PZt,_ae)=>{"use strict";var Nae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ttt}=at(),rtt=wA();Pae()===void 0&&Tae(new rtt);function Tae(t){if(!t||typeof t.dispatch!="function")throw new ttt("Argument agent must implement Agent");Object.defineProperty(globalThis,Nae,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Tae,"setGlobalDispatcher");function Pae(){return globalThis[Nae]}i(Pae,"getGlobalDispatcher");_ae.exports={setGlobalDispatcher:Tae,getGlobalDispatcher:Pae}});var gR=S((QZt,vae)=>{"use strict";vae.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 Dae=S((kZt,Qae)=>{"use strict";var ntt=jB();Qae.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 ntt(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Oae=S((LZt,kae)=>{"use strict";var stt=aR();kae.exports=t=>e=>i(function(n,s){return e(n,new stt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Mae=S((FZt,Lae)=>{"use strict";var ott=Je(),{InvalidArgumentError:itt,RequestAbortedError:att}=at(),ctt=gR(),j$=class extends ctt{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 itt("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=ott.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new att(`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 ltt({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new j$({maxSize:o},s);return e(n,a)},"Intercept")}i(ltt,"createDumpInterceptor");Lae.exports=ltt});var qae=S((qZt,Uae)=>{"use strict";var{isIP:utt}=require("node:net"),{lookup:dtt}=require("node:dns"),ptt=gR(),{InvalidArgumentError:vA,InformationalError:ftt}=at(),Fae=Math.pow(2,31)-1,K$=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 ftt("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){dtt(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===Fae?(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===Fae?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 X$(this,e,r)}},X$=class extends ptt{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}}};Uae.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new vA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new vA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new vA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new vA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new vA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new vA("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 K$(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return utt(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 Df=S((GZt,Jae)=>{"use strict";var{kConstruct:mtt}=Ht(),{kEnumerableProperty:QA}=Je(),{iteratorMixin:htt,isValidHeaderName:II,isValidHeaderValue:Gae}=ho(),{webidl:nt}=bn(),Z$=require("node:assert"),yR=require("node:util"),Or=Symbol("headers map"),Eo=Symbol("headers map sorted");function $ae(t){return t===10||t===13||t===9||t===32}i($ae,"isHTTPWhiteSpaceCharCode");function Hae(t){let e=0,r=t.length;for(;r>e&&$ae(t.charCodeAt(r-1));)--r;for(;r>e&&$ae(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(Hae,"headerValueNormalize");function zae(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i(zae,"fill");function eG(t,e,r){if(r=Hae(r),II(e)){if(!Gae(r))throw nt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Wae(t)==="immutable")throw new TypeError("immutable");return tG(t).append(e,r,!1)}i(eG,"appendHeader");function Vae(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[Or])r[n++]=[s,o],Z$(o!==null);return r.sort(Vae)}}},sa=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){nt.util.markAsUncloneable(this),e!==mtt&&(this.#t=new ER,this.#e="none",e!==void 0&&(e=nt.converters.HeadersInit(e,"Headers contructor","init"),zae(this,e)))}append(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),eG(this,e,r)}delete(e){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.delete"),e=nt.converters.ByteString(e,"Headers.delete","name"),!II(e))throw nt.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){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=nt.converters.ByteString(e,r,"name"),!II(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=nt.converters.ByteString(e,r,"name"),!II(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),r=Hae(r),II(e)){if(!Gae(r))throw nt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){nt.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[Eo](){if(this.#t[Eo])return this.#t[Eo];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[Eo]=r;for(let s=0;s>"](t,e,r,n.bind(t)):nt.converters["record"](t,e,r)}throw nt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};Jae.exports={fill:zae,compareHeaderName:Vae,Headers:sa,HeadersList:ER,getHeadersGuard:Wae,setHeadersGuard:Att,setHeadersList:gtt,getHeadersList:tG}});var wI=S((zZt,ice)=>{"use strict";var{Headers:ece,HeadersList:Yae,fill:ytt,getHeadersGuard:Ett,setHeadersGuard:tce,setHeadersList:rce}=Df(),{extractBody:jae,cloneBody:Ctt,mixinBody:Itt,hasFinalizationRegistry:nce,streamRegistry:sce,bodyUnusable:Stt}=mA(),rG=Je(),Kae=require("node:util"),{kEnumerableProperty:Co}=rG,{isValidReasonPhrase:wtt,isCancelled:xtt,isAborted:btt,isBlobLike:Btt,serializeJavascriptValueToJSONString:Rtt,isErrorLike:Ntt,isomorphicEncode:Ttt,environmentSettingsObject:Ptt}=ho(),{redirectStatusSet:_tt,nullBodyStatus:vtt}=zC(),{kState:Vt,kHeaders:su}=ed(),{webidl:$e}=bn(),{FormData:Qtt}=KC(),{URLSerializer:Xae}=_s(),{kConstruct:IR}=Ht(),nG=require("node:assert"),{types:Dtt}=require("node:util"),ktt=new TextEncoder("utf-8"),kf=class t{static{i(this,"Response")}static error(){return SI(SR(),"immutable")}static json(e,r={}){$e.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=$e.converters.ResponseInit(r));let n=ktt.encode(Rtt(e)),s=jae(n),o=SI(DA({}),"response");return Zae(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){$e.argumentLengthCheck(arguments,1,"Response.redirect"),e=$e.converters.USVString(e),r=$e.converters["unsigned short"](r);let n;try{n=new URL(e,Ptt.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!_tt.has(r))throw new RangeError(`Invalid status code ${r}`);let s=SI(DA({}),"immutable");s[Vt].status=r;let o=Ttt(Xae(n));return s[Vt].headersList.append("location",o,!0),s}constructor(e=null,r={}){if($e.util.markAsUncloneable(this),e===IR)return;e!==null&&(e=$e.converters.BodyInit(e)),r=$e.converters.ResponseInit(r),this[Vt]=DA({}),this[su]=new ece(IR),tce(this[su],"response"),rce(this[su],this[Vt].headersList);let n=null;if(e!=null){let[s,o]=jae(e);n={body:s,type:o}}Zae(this,r,n)}get type(){return $e.brandCheck(this,t),this[Vt].type}get url(){$e.brandCheck(this,t);let e=this[Vt].urlList,r=e[e.length-1]??null;return r===null?"":Xae(r,!0)}get redirected(){return $e.brandCheck(this,t),this[Vt].urlList.length>1}get status(){return $e.brandCheck(this,t),this[Vt].status}get ok(){return $e.brandCheck(this,t),this[Vt].status>=200&&this[Vt].status<=299}get statusText(){return $e.brandCheck(this,t),this[Vt].statusText}get headers(){return $e.brandCheck(this,t),this[su]}get body(){return $e.brandCheck(this,t),this[Vt].body?this[Vt].body.stream:null}get bodyUsed(){return $e.brandCheck(this,t),!!this[Vt].body&&rG.isDisturbed(this[Vt].body.stream)}clone(){if($e.brandCheck(this,t),Stt(this))throw $e.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=sG(this[Vt]);return nce&&this[Vt].body?.stream&&sce.register(this,new WeakRef(this[Vt].body.stream)),SI(e,Ett(this[su]))}[Kae.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 ${Kae.formatWithOptions(r,n)}`}};Itt(kf);Object.defineProperties(kf.prototype,{type:Co,url:Co,status:Co,ok:Co,redirected:Co,statusText:Co,headers:Co,clone:Co,body:Co,bodyUsed:Co,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(kf,{json:Co,redirect:Co,error:Co});function sG(t){if(t.internalResponse)return oce(sG(t.internalResponse),t.type);let e=DA({...t,body:null});return t.body!=null&&(e.body=Ctt(e,t.body)),e}i(sG,"cloneResponse");function DA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Yae(t?.headersList):new Yae,urlList:t?.urlList?[...t.urlList]:[]}}i(DA,"makeResponse");function SR(t){let e=Ntt(t);return DA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(SR,"makeNetworkError");function Ott(t){return t.type==="error"&&t.status===0}i(Ott,"isNetworkError");function CR(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 nG(!(n in e)),r[n]=s,!0}})}i(CR,"makeFilteredResponse");function oce(t,e){if(e==="basic")return CR(t,{type:"basic",headersList:t.headersList});if(e==="cors")return CR(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return CR(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return CR(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});nG(!1)}i(oce,"filterResponse");function Ltt(t,e=null){return nG(xtt(t)),btt(t)?SR(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):SR(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(Ltt,"makeAppropriateNetworkError");function Zae(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&&!wtt(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[Vt].status=e.status),"statusText"in e&&e.statusText!=null&&(t[Vt].statusText=e.statusText),"headers"in e&&e.headers!=null&&ytt(t[su],e.headers),r){if(vtt.includes(t.status))throw $e.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[Vt].body=r.body,r.type!=null&&!t[Vt].headersList.contains("content-type",!0)&&t[Vt].headersList.append("content-type",r.type,!0)}}i(Zae,"initializeResponse");function SI(t,e){let r=new kf(IR);return r[Vt]=t,r[su]=new ece(IR),rce(r[su],t.headersList),tce(r[su],e),nce&&t.body?.stream&&sce.register(r,new WeakRef(t.body.stream)),r}i(SI,"fromInnerResponse");$e.converters.ReadableStream=$e.interfaceConverter(ReadableStream);$e.converters.FormData=$e.interfaceConverter(Qtt);$e.converters.URLSearchParams=$e.interfaceConverter(URLSearchParams);$e.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?$e.converters.USVString(t,e,r):Btt(t)?$e.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Dtt.isArrayBuffer(t)?$e.converters.BufferSource(t,e,r):rG.isFormDataLike(t)?$e.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?$e.converters.URLSearchParams(t,e,r):$e.converters.DOMString(t,e,r)};$e.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?$e.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:$e.converters.XMLHttpRequestBodyInit(t,e,r)};$e.converters.ResponseInit=$e.dictionaryConverter([{key:"status",converter:$e.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:$e.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:$e.converters.HeadersInit}]);ice.exports={isNetworkError:Ott,makeNetworkError:SR,makeResponse:DA,makeAppropriateNetworkError:Ltt,filterResponse:oce,Response:kf,cloneResponse:sG,fromInnerResponse:SI}});var uce=S((WZt,lce)=>{"use strict";var{kConnected:ace,kSize:cce}=Ht(),oG=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[ace]===0&&this.value[cce]===0?void 0:this.value}},iG=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[ace]===0&&e[cce]===0&&this.finalizer(r)})}unregister(e){}};lce.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:oG,FinalizationRegistry:iG}):{WeakRef,FinalizationRegistry}}});var kA=S((YZt,bce)=>{"use strict";var{extractBody:Mtt,mixinBody:Ftt,cloneBody:Utt,bodyUnusable:dce}=mA(),{Headers:Cce,fill:qtt,HeadersList:BR,setHeadersGuard:cG,getHeadersGuard:$tt,setHeadersList:Ice,getHeadersList:pce}=Df(),{FinalizationRegistry:Gtt}=uce()(),xR=Je(),fce=require("node:util"),{isValidHTTPToken:Htt,sameOrigin:mce,environmentSettingsObject:wR}=ho(),{forbiddenMethodsSet:ztt,corsSafeListedMethodsSet:Vtt,referrerPolicy:Wtt,requestRedirect:Jtt,requestMode:Ytt,requestCredentials:jtt,requestCache:Ktt,requestDuplex:Xtt}=zC(),{kEnumerableProperty:Lr,normalizedMethodRecordsBase:Ztt,normalizedMethodRecords:ert}=xR,{kHeaders:Io,kSignal:bR,kState:Ot,kDispatcher:aG}=ed(),{webidl:Ee}=bn(),{URLSerializer:trt}=_s(),{kConstruct:RR}=Ht(),rrt=require("node:assert"),{getMaxListeners:hce,setMaxListeners:Ace,getEventListeners:nrt,defaultMaxListeners:gce}=require("node:events"),srt=Symbol("abortController"),Sce=new Gtt(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),NR=new WeakMap;function yce(t){return e;function e(){let r=t.deref();if(r!==void 0){Sce.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=NR.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()}NR.delete(r.signal)}}}}i(yce,"buildAbort");var Ece=!1,dd=class t{static{i(this,"Request")}constructor(e,r={}){if(Ee.util.markAsUncloneable(this),e===RR)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=wR.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[aG]=r.dispatcher;let E;try{E=new URL(e,a)}catch(I){throw new TypeError("Failed to parse URL from "+e,{cause:I})}if(E.username||E.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=TR({urlList:[E]}),o="cors"}else this[aG]=r.dispatcher||e[aG],rrt(e instanceof t),s=e[Ot],c=e[bR];let l=wR.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&mce(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=TR({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:wR.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 E=r.referrer;if(E==="")s.referrer="no-referrer";else{let I;try{I=new URL(E,a)}catch(x){throw new TypeError(`Referrer "${E}" is not a valid URL.`,{cause:x})}I.protocol==="about:"&&I.hostname==="client"||l&&!mce(I,wR.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 E=r.method,I=ert[E];if(I!==void 0)s.method=I;else{if(!Htt(E))throw new TypeError(`'${E}' is not a valid HTTP method.`);let x=E.toUpperCase();if(ztt.has(x))throw new TypeError(`'${E}' HTTP method is unsupported.`);E=Ztt[x]??E,s.method=E}!Ece&&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"}),Ece=!0)}r.signal!==void 0&&(c=r.signal),this[Ot]=s;let f=new AbortController;if(this[bR]=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[srt]=f;let E=new WeakRef(f),I=yce(E);try{(typeof hce=="function"&&hce(c)===gce||nrt(c,"abort").length>=gce)&&Ace(1500,c)}catch{}xR.addAbortListener(c,I),Sce.register(f,{signal:c,abort:I},I)}}if(this[Io]=new Cce(RR),Ice(this[Io],s.headersList),cG(this[Io],"request"),p==="no-cors"){if(!Vtt.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);cG(this[Io],"request-no-cors")}if(d){let E=pce(this[Io]),I=r.headers!==void 0?r.headers:new BR(E);if(E.clear(),I instanceof BR){for(let{name:x,value:b}of I.rawValues())E.append(x,b,!1);E.cookies=I.cookies}else qtt(this[Io],I)}let m=e instanceof t?e[Ot].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 h=null;if(r.body!=null){let[E,I]=Mtt(r.body,s.keepalive);h=E,I&&!pce(this[Io]).contains("content-type",!0)&&this[Io].append("content-type",I)}let A=h??m;if(A!=null&&A.source==null){if(h!=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 y=A;if(h==null&&m!=null){if(dce(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let E=new TransformStream;m.stream.pipeThrough(E),y={source:m.source,length:m.length,stream:E.readable}}this[Ot].body=y}get method(){return Ee.brandCheck(this,t),this[Ot].method}get url(){return Ee.brandCheck(this,t),trt(this[Ot].url)}get headers(){return Ee.brandCheck(this,t),this[Io]}get destination(){return Ee.brandCheck(this,t),this[Ot].destination}get referrer(){return Ee.brandCheck(this,t),this[Ot].referrer==="no-referrer"?"":this[Ot].referrer==="client"?"about:client":this[Ot].referrer.toString()}get referrerPolicy(){return Ee.brandCheck(this,t),this[Ot].referrerPolicy}get mode(){return Ee.brandCheck(this,t),this[Ot].mode}get credentials(){return this[Ot].credentials}get cache(){return Ee.brandCheck(this,t),this[Ot].cache}get redirect(){return Ee.brandCheck(this,t),this[Ot].redirect}get integrity(){return Ee.brandCheck(this,t),this[Ot].integrity}get keepalive(){return Ee.brandCheck(this,t),this[Ot].keepalive}get isReloadNavigation(){return Ee.brandCheck(this,t),this[Ot].reloadNavigation}get isHistoryNavigation(){return Ee.brandCheck(this,t),this[Ot].historyNavigation}get signal(){return Ee.brandCheck(this,t),this[bR]}get body(){return Ee.brandCheck(this,t),this[Ot].body?this[Ot].body.stream:null}get bodyUsed(){return Ee.brandCheck(this,t),!!this[Ot].body&&xR.isDisturbed(this[Ot].body.stream)}get duplex(){return Ee.brandCheck(this,t),"half"}clone(){if(Ee.brandCheck(this,t),dce(this))throw new TypeError("unusable");let e=wce(this[Ot]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=NR.get(this.signal);n===void 0&&(n=new Set,NR.set(this.signal,n));let s=new WeakRef(r);n.add(s),xR.addAbortListener(r.signal,yce(s))}return xce(e,r.signal,$tt(this[Io]))}[fce.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 ${fce.formatWithOptions(r,n)}`}};Ftt(dd);function TR(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 BR(t.headersList):new BR}}i(TR,"makeRequest");function wce(t){let e=TR({...t,body:null});return t.body!=null&&(e.body=Utt(e,t.body)),e}i(wce,"cloneRequest");function xce(t,e,r){let n=new dd(RR);return n[Ot]=t,n[bR]=e,n[Io]=new Cce(RR),Ice(n[Io],t.headersList),cG(n[Io],r),n}i(xce,"fromInnerRequest");Object.defineProperties(dd.prototype,{method:Lr,url:Lr,headers:Lr,redirect:Lr,clone:Lr,signal:Lr,duplex:Lr,destination:Lr,body:Lr,bodyUsed:Lr,isHistoryNavigation:Lr,isReloadNavigation:Lr,keepalive:Lr,integrity:Lr,cache:Lr,credentials:Lr,attribute:Lr,referrerPolicy:Lr,referrer:Lr,mode:Lr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Ee.converters.Request=Ee.interfaceConverter(dd);Ee.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Ee.converters.USVString(t,e,r):t instanceof dd?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:Wtt},{key:"mode",converter:Ee.converters.DOMString,allowedValues:Ytt},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:jtt},{key:"cache",converter:Ee.converters.DOMString,allowedValues:Ktt},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:Jtt},{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:Xtt},{key:"dispatcher",converter:Ee.converters.any}]);bce.exports={Request:dd,makeRequest:TR,fromInnerRequest:xce,cloneRequest:wce}});var bI=S((KZt,Uce)=>{"use strict";var{makeNetworkError:gt,makeAppropriateNetworkError:PR,filterResponse:lG,makeResponse:_R,fromInnerResponse:ort}=wI(),{HeadersList:Bce}=Df(),{Request:irt,cloneRequest:art}=kA(),pd=require("node:zlib"),{bytesMatch:crt,makePolicyContainer:lrt,clonePolicyContainer:urt,requestBadPort:drt,TAOCheck:prt,appendRequestOriginHeader:frt,responseLocationURL:mrt,requestCurrentURL:ac,setRequestReferrerPolicyOnRedirect:hrt,tryUpgradeRequestToAPotentiallyTrustworthyURL:Art,createOpaqueTimingInfo:mG,appendFetchMetadata:grt,corsCheck:yrt,crossOriginResourcePolicyCheck:Ert,determineRequestsReferrer:Crt,coarsenedSharedCurrentTime:xI,createDeferredPromise:Irt,isBlobLike:Srt,sameOrigin:fG,isCancelled:Of,isAborted:Rce,isErrorLike:wrt,fullyReadBody:xrt,readableStreamClose:brt,isomorphicEncode:vR,urlIsLocal:Brt,urlIsHttpHttpsScheme:hG,urlHasHttpsScheme:Rrt,clampAndCoarsenConnectionTimingInfo:Nrt,simpleRangeHeaderValue:Trt,buildContentRange:Prt,createInflate:_rt,extractMimeType:vrt}=ho(),{kState:_ce,kDispatcher:Qrt}=ed(),Lf=require("node:assert"),{safelyExtractBody:AG,extractBody:Nce}=mA(),{redirectStatusSet:vce,nullBodyStatus:Qce,safeMethodsSet:Drt,requestBodyHeader:krt,subresourceSet:Ort}=zC(),Lrt=require("node:events"),{Readable:Mrt,pipeline:Frt,finished:Urt}=require("node:stream"),{addAbortListener:qrt,isErrored:$rt,isReadable:QR,bufferToLowerCasedHeaderName:Tce}=Je(),{dataURLProcessor:Grt,serializeAMimeType:Hrt,minimizeSupportedMimeType:zrt}=_s(),{getGlobalDispatcher:Vrt}=CI(),{webidl:Wrt}=bn(),{STATUS_CODES:Jrt}=require("node:http"),Yrt=["GET","HEAD"],jrt=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",uG,DR=class extends Lrt{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 Krt(t){Dce(t,"fetch")}i(Krt,"handleFetchDone");function Xrt(t,e=void 0){Wrt.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=Irt(),n;try{n=new irt(t,e)}catch(d){return r.reject(d),r.promise}let s=n[_ce];if(n.signal.aborted)return dG(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 qrt(n.signal,()=>{c=!0,Lf(l!=null),l.abort(n.signal.reason);let d=a?.deref();dG(r,s,d,n.signal.reason)}),l=Oce({request:s,processResponseEndOfBody:Krt,processResponse:i(d=>{if(!c){if(d.aborted){dG(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(ort(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[Qrt]}),r.promise}i(Xrt,"fetch");function Dce(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;hG(r)&&n!==null&&(t.timingAllowPassed||(n=mG({startTime:n.startTime}),s=""),n.endTime=xI(),t.timingInfo=n,kce(n,r.href,e,globalThis,s))}i(Dce,"finalizeAndReportTiming");var kce=performance.markResourceTiming;function dG(t,e,r,n){if(t&&t.reject(n),e.body!=null&&QR(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[_ce];s.body!=null&&QR(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(dG,"abortFetch");function Oce({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=Vrt()}){Lf(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=xI(u),p=mG({startTime:d}),f={controller:new DR(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return Lf(!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=urt(t.client.policyContainer):t.policyContainer=lrt()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,Ort.has(t.destination),Lce(f).catch(m=>{f.controller.terminate(m)}),f.controller}i(Oce,"fetching");async function Lce(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!Brt(ac(r))&&(n=gt("local URLs only")),Art(r),drt(r)==="blocked"&&(n=gt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=Crt(r)),n===null&&(n=await(async()=>{let o=ac(r);return fG(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await Pce(t)):r.mode==="same-origin"?gt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?gt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await Pce(t)):hG(ac(r))?(r.responseTainting="cors",await Mce(t)):gt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=lG(n,"basic"):r.responseTainting==="cors"?n=lG(n,"cors"):r.responseTainting==="opaque"?n=lG(n,"opaque"):Lf(!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=gt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Qce.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>pG(t,gt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!crt(c,r.integrity)){o("integrity mismatch");return}n.body=AG(c)[0],pG(t,n)},"processBody");await xrt(n.body,a,o)}else pG(t,n)}i(Lce,"mainFetch");function Pce(t){if(Of(t)&&t.request.redirectCount===0)return Promise.resolve(PR(t));let{request:e}=t,{protocol:r}=ac(e);switch(r){case"about:":return Promise.resolve(gt("about scheme is not supported"));case"blob:":{uG||(uG=require("node:buffer").resolveObjectURL);let n=ac(e);if(n.search.length!==0)return Promise.resolve(gt("NetworkError when attempting to fetch resource."));let s=uG(n.toString());if(e.method!=="GET"||!Srt(s))return Promise.resolve(gt("invalid method"));let o=_R(),a=s.size,c=vR(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=Trt(u,!0);if(d==="failure")return Promise.resolve(gt("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(gt("Range start is greater than the blob's size."));(f===null||f>=a)&&(f=a-1)}let m=s.slice(p,f,l),h=Nce(m);o.body=h[0];let A=vR(`${m.size}`),y=Prt(p,f,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",A,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",y,!0)}else{let u=Nce(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=ac(e),s=Grt(n);if(s==="failure")return Promise.resolve(gt("failed to fetch the data URL"));let o=Hrt(s.mimeType);return Promise.resolve(_R({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:AG(s.body)[0]}))}case"file:":return Promise.resolve(gt("not implemented... yet..."));case"http:":case"https:":return Mce(t).catch(n=>gt(n));default:return Promise.resolve(gt("unknown scheme"))}}i(Pce,"schemeFetch");function Zrt(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(Zrt,"finalizeResponse");function pG(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=mG(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=vrt(e.headersList);d!=="failure"&&(l.contentType=zrt(d))}t.request.initiatorType!=null&&kce(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():Urt(s.body.stream,()=>{n()})}i(pG,"fetchFinale");async function Mce(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 Fce(t),e.responseTainting==="cors"&&yrt(e,r)==="failure")return gt("cors failure");prt(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&Ert(e.origin,e.client,e.destination,n)==="blocked"?gt("blocked"):(vce.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=gt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await ent(t,r):Lf(!1)),r.timingInfo=s,r)}i(Mce,"httpFetch");function ent(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=mrt(n,ac(r).hash),s==null)return e}catch(a){return Promise.resolve(gt(a))}if(!hG(s))return Promise.resolve(gt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(gt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!fG(r,s))return Promise.resolve(gt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(gt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(gt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!Yrt.includes(r.method)){r.method="GET",r.body=null;for(let a of krt)r.headersList.delete(a)}fG(ac(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&&(Lf(r.body.source!=null),r.body=AG(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=xI(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),hrt(r,n),Lce(t,!0)}i(ent,"httpRedirectFetch");async function Fce(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=art(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=vR(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",vR(o.referrer.href),!0),frt(o),grt(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",jrt),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)||(Rrt(ac(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 gt("only if cached");let f=await tnt(s,u,r);!Drt.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"?gt():Of(t)?PR(t):gt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Of(t))return PR(t);t.controller.connection.destroy(),a=await Fce(t,e,!0)}return a}i(Fce,"httpNetworkOrCacheFetch");async function tnt(t,e=!1,r=!1){Lf(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(h,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(h??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 h=i(async function*(E){Of(t)||(yield E,t.processRequestBodyChunkLength?.(E.byteLength))},"processBodyChunk"),A=i(()=>{Of(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),y=i(E=>{Of(t)||(E.name==="AbortError"?t.controller.abort():t.controller.terminate(E))},"processBodyError");l=(async function*(){try{for await(let E of n.body.stream)yield*h(E);A()}catch(E){y(E)}})()}try{let{body:h,status:A,statusText:y,headersList:E,socket:I}=await m({body:l});if(I)s=_R({status:A,statusText:y,headersList:E,socket:I});else{let x=h[Symbol.asyncIterator]();t.controller.next=()=>x.next(),s=_R({status:A,statusText:y,headersList:E})}}catch(h){return h.name==="AbortError"?(t.controller.connection.destroy(),PR(t,h)):gt(h)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(h=>{Of(t)||t.controller.abort(h)},"cancelAlgorithm"),p=new ReadableStream({async start(h){t.controller.controller=h},async pull(h){await u(h)},async cancel(h){await d(h)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.resume||t.controller.on("terminated",f),t.controller.resume=async()=>{for(;;){let h,A;try{let{done:E,value:I}=await t.controller.next();if(Rce(t))break;h=E?void 0:I}catch(E){t.controller.ended&&!o.encodedBodySize?h=void 0:(h=E,A=!0)}if(h===void 0){brt(t.controller.controller),Zrt(t,s);return}if(o.decodedBodySize+=h?.byteLength??0,A){t.controller.terminate(h);return}let y=new Uint8Array(h);if(y.byteLength&&t.controller.controller.enqueue(y),$rt(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function f(h){Rce(t)?(s.aborted=!0,QR(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):QR(p)&&t.controller.controller.error(new TypeError("terminated",{cause:wrt(h)?h:void 0})),t.controller.connection.destroy()}return i(f,"onAborted"),s;function m({body:h}){let A=ac(n),y=t.controller.dispatcher;return new Promise((E,I)=>y.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:y.isMockActive?n.body&&(n.body.source||n.body.stream):h,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=Nrt(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=xI(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=xI(t.crossOriginIsolatedCapability)},onHeaders(x,b,N,_){if(x<200)return;let v="",Y=new Bce;for(let ce=0;ceBe)return this.abort(new Error(`too many content-encodings in response: ${Tt.length}, maximum allowed is ${Be}`)),!0;for(let oe=Tt.length-1;oe>=0;--oe){let Q=Tt[oe].trim();if(Q==="x-gzip"||Q==="gzip")Qe.push(pd.createGunzip({flush:pd.constants.Z_SYNC_FLUSH,finishFlush:pd.constants.Z_SYNC_FLUSH}));else if(Q==="deflate")Qe.push(_rt({flush:pd.constants.Z_SYNC_FLUSH,finishFlush:pd.constants.Z_SYNC_FLUSH}));else if(Q==="br")Qe.push(pd.createBrotliDecompress({flush:pd.constants.BROTLI_OPERATION_FLUSH,finishFlush:pd.constants.BROTLI_OPERATION_FLUSH}));else{Qe.length=0;break}}}this.body=new Mrt({read:N});let De=this.onError.bind(this);return E({status:x,statusText:_,headersList:Y,body:Qe.length?Frt(this.body,...Qe,ce=>{ce&&this.onError(ce)}).on("error",De):this.body.on("error",De)}),!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 _=new Bce;for(let v=0;v{"use strict";qce.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 Gce=S((eer,$ce)=>{"use strict";var{webidl:So}=bn(),kR=Symbol("ProgressEvent state"),yG=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=So.converters.DOMString(e,"ProgressEvent constructor","type"),r=So.converters.ProgressEventInit(r??{}),super(e,r),this[kR]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return So.brandCheck(this,t),this[kR].lengthComputable}get loaded(){return So.brandCheck(this,t),this[kR].loaded}get total(){return So.brandCheck(this,t),this[kR].total}};So.converters.ProgressEventInit=So.dictionaryConverter([{key:"lengthComputable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);$ce.exports={ProgressEvent:yG}});var zce=S((rer,Hce)=>{"use strict";function rnt(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(rnt,"getEncoding");Hce.exports={getEncoding:rnt}});var Zce=S((ser,Xce)=>{"use strict";var{kState:OA,kError:EG,kResult:Vce,kAborted:BI,kLastProgressEventFired:CG}=gG(),{ProgressEvent:nnt}=Gce(),{getEncoding:Wce}=zce(),{serializeAMimeType:snt,parseMIMEType:Jce}=_s(),{types:ont}=require("node:util"),{StringDecoder:Yce}=require("string_decoder"),{btoa:jce}=require("node:buffer"),int={enumerable:!0,writable:!1,configurable:!1};function ant(t,e,r,n){if(t[OA]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[OA]="loading",t[Vce]=null,t[EG]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[BI];)try{let{done:u,value:d}=await c;if(l&&!t[BI]&&queueMicrotask(()=>{fd("loadstart",t)}),l=!1,!u&&ont.isUint8Array(d))a.push(d),(t[CG]===void 0||Date.now()-t[CG]>=50)&&!t[BI]&&(t[CG]=Date.now(),queueMicrotask(()=>{fd("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[OA]="done";try{let p=cnt(a,r,e.type,n);if(t[BI])return;t[Vce]=p,fd("load",t)}catch(p){t[EG]=p,fd("error",t)}t[OA]!=="loading"&&fd("loadend",t)});break}}catch(u){if(t[BI])return;queueMicrotask(()=>{t[OA]="done",t[EG]=u,fd("error",t),t[OA]!=="loading"&&fd("loadend",t)});break}})()}i(ant,"readOperation");function fd(t,e){let r=new nnt(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(fd,"fireAProgressEvent");function cnt(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=Jce(r||"application/octet-stream");o!=="failure"&&(s+=snt(o)),s+=";base64,";let a=new Yce("latin1");for(let c of t)s+=jce(a.write(c));return s+=jce(a.end()),s}case"Text":{let s="failure";if(n&&(s=Wce(n)),s==="failure"&&r){let o=Jce(r);o!=="failure"&&(s=Wce(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),lnt(t,s)}case"ArrayBuffer":return Kce(t).buffer;case"BinaryString":{let s="",o=new Yce("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(cnt,"packageData");function lnt(t,e){let r=Kce(t),n=unt(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(lnt,"decode");function unt(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(unt,"BOMSniffing");function Kce(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(Kce,"combineByteSequences");Xce.exports={staticPropertyDescriptors:int,readOperation:ant,fireAProgressEvent:fd}});var nle=S((ier,rle)=>{"use strict";var{staticPropertyDescriptors:LA,readOperation:OR,fireAProgressEvent:ele}=Zce(),{kState:Mf,kError:tle,kResult:LR,kEvents:dt,kAborted:dnt}=gG(),{webidl:St}=bn(),{kEnumerableProperty:Ds}=Je(),oa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[Mf]="empty",this[LR]=null,this[tle]=null,this[dt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=St.converters.Blob(e,{strict:!1}),OR(this,e,"ArrayBuffer")}readAsBinaryString(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=St.converters.Blob(e,{strict:!1}),OR(this,e,"BinaryString")}readAsText(e,r=void 0){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=St.converters.Blob(e,{strict:!1}),r!==void 0&&(r=St.converters.DOMString(r,"FileReader.readAsText","encoding")),OR(this,e,"Text",r)}readAsDataURL(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=St.converters.Blob(e,{strict:!1}),OR(this,e,"DataURL")}abort(){if(this[Mf]==="empty"||this[Mf]==="done"){this[LR]=null;return}this[Mf]==="loading"&&(this[Mf]="done",this[LR]=null),this[dnt]=!0,ele("abort",this),this[Mf]!=="loading"&&ele("loadend",this)}get readyState(){switch(St.brandCheck(this,t),this[Mf]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return St.brandCheck(this,t),this[LR]}get error(){return St.brandCheck(this,t),this[tle]}get onloadend(){return St.brandCheck(this,t),this[dt].loadend}set onloadend(e){St.brandCheck(this,t),this[dt].loadend&&this.removeEventListener("loadend",this[dt].loadend),typeof e=="function"?(this[dt].loadend=e,this.addEventListener("loadend",e)):this[dt].loadend=null}get onerror(){return St.brandCheck(this,t),this[dt].error}set onerror(e){St.brandCheck(this,t),this[dt].error&&this.removeEventListener("error",this[dt].error),typeof e=="function"?(this[dt].error=e,this.addEventListener("error",e)):this[dt].error=null}get onloadstart(){return St.brandCheck(this,t),this[dt].loadstart}set onloadstart(e){St.brandCheck(this,t),this[dt].loadstart&&this.removeEventListener("loadstart",this[dt].loadstart),typeof e=="function"?(this[dt].loadstart=e,this.addEventListener("loadstart",e)):this[dt].loadstart=null}get onprogress(){return St.brandCheck(this,t),this[dt].progress}set onprogress(e){St.brandCheck(this,t),this[dt].progress&&this.removeEventListener("progress",this[dt].progress),typeof e=="function"?(this[dt].progress=e,this.addEventListener("progress",e)):this[dt].progress=null}get onload(){return St.brandCheck(this,t),this[dt].load}set onload(e){St.brandCheck(this,t),this[dt].load&&this.removeEventListener("load",this[dt].load),typeof e=="function"?(this[dt].load=e,this.addEventListener("load",e)):this[dt].load=null}get onabort(){return St.brandCheck(this,t),this[dt].abort}set onabort(e){St.brandCheck(this,t),this[dt].abort&&this.removeEventListener("abort",this[dt].abort),typeof e=="function"?(this[dt].abort=e,this.addEventListener("abort",e)):this[dt].abort=null}};oa.EMPTY=oa.prototype.EMPTY=0;oa.LOADING=oa.prototype.LOADING=1;oa.DONE=oa.prototype.DONE=2;Object.defineProperties(oa.prototype,{EMPTY:LA,LOADING:LA,DONE:LA,readAsArrayBuffer:Ds,readAsBinaryString:Ds,readAsText:Ds,readAsDataURL:Ds,abort:Ds,readyState:Ds,result:Ds,error:Ds,onloadstart:Ds,onprogress:Ds,onload:Ds,onabort:Ds,onerror:Ds,onloadend:Ds,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(oa,{EMPTY:LA,LOADING:LA,DONE:LA});rle.exports={FileReader:oa}});var MR=S((cer,sle)=>{"use strict";sle.exports={kConstruct:Ht().kConstruct}});var ale=S((ler,ile)=>{"use strict";var pnt=require("node:assert"),{URLSerializer:ole}=_s(),{isValidHeaderName:fnt}=ho();function mnt(t,e,r=!1){let n=ole(t,r),s=ole(e,r);return n===s}i(mnt,"urlEquals");function hnt(t){pnt(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),fnt(r)&&e.push(r);return e}i(hnt,"getFieldValues");ile.exports={urlEquals:mnt,getFieldValues:hnt}});var ule=S((der,lle)=>{"use strict";var{kConstruct:Ant}=MR(),{urlEquals:gnt,getFieldValues:IG}=ale(),{kEnumerableProperty:Ff,isDisturbed:ynt}=Je(),{webidl:ue}=bn(),{Response:Ent,cloneResponse:Cnt,fromInnerResponse:Int}=wI(),{Request:ou,fromInnerRequest:Snt}=kA(),{kState:ia}=ed(),{fetching:wnt}=bI(),{urlIsHttpHttpsScheme:FR,createDeferredPromise:MA,readAllBytes:xnt}=ho(),SG=require("node:assert"),UR=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==Ant&&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.#s(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.#s(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 f of e){if(f===void 0)throw ue.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(f=ue.converters.RequestInfo(f),typeof f=="string")continue;let m=f[ia];if(!FR(m.url)||m.method!=="GET")throw ue.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let f of e){let m=new ou(f)[ia];if(!FR(m.url))throw ue.errors.exception({header:r,message:"Expected http/s scheme."});m.initiator="fetch",m.destination="subresource",s.push(m);let h=MA();o.push(wnt({request:m,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)h.reject(ue.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let y=IG(A.headersList.get("vary"));for(let E of y)if(E==="*"){h.reject(ue.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let I of o)I.abort();return}}},processResponseEndOfBody(A){if(A.aborted){h.reject(new DOMException("aborted","AbortError"));return}h.resolve(A)}})),n.push(h.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=MA(),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){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 ou?s=e[ia]:s=new ou(e)[ia],!FR(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[ia];if(o.status===206)throw ue.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let m=IG(o.headersList.get("vary"));for(let h of m)if(h==="*")throw ue.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(ynt(o.body.stream)||o.body.stream.locked))throw ue.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=Cnt(o),c=MA();if(o.body!=null){let h=o.body.stream.getReader();xnt(h).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=MA(),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={}){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 ou){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return!1}else SG(typeof e=="string"),s=new ou(e)[ia];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=MA(),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 ou){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new ou(e)[ia]);let o=MA(),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=Snt(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.#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);SG(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(!FR(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.#n(a.request);for(let u of c){let d=r.indexOf(u);SG(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=""),!gnt(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=IG(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 ou){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new ou(e)[ia]);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=Int(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(UR.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Ff,matchAll:Ff,add:Ff,addAll:Ff,put:Ff,delete:Ff,keys:Ff});var cle=[{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(cle);ue.converters.MultiCacheQueryOptions=ue.dictionaryConverter([...cle,{key:"cacheName",converter:ue.converters.DOMString}]);ue.converters.Response=ue.interfaceConverter(Ent);ue.converters["sequence"]=ue.sequenceConverter(ue.converters.RequestInfo);lle.exports={Cache:UR}});var ple=S((fer,dle)=>{"use strict";var{kConstruct:RI}=MR(),{Cache:qR}=ule(),{webidl:Un}=bn(),{kEnumerableProperty:NI}=Je(),$R=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==RI&&Un.illegalConstructor(),Un.util.markAsUncloneable(this)}async match(e,r={}){if(Un.brandCheck(this,t),Un.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=Un.converters.RequestInfo(e),r=Un.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new qR(RI,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new qR(RI,n).match(e,r);if(o!==void 0)return o}}async has(e){Un.brandCheck(this,t);let r="CacheStorage.has";return Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){Un.brandCheck(this,t);let r="CacheStorage.open";if(Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new qR(RI,s)}let n=[];return this.#e.set(e,n),new qR(RI,n)}async delete(e){Un.brandCheck(this,t);let r="CacheStorage.delete";return Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return Un.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties($R.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:NI,has:NI,open:NI,delete:NI,keys:NI});dle.exports={CacheStorage:$R}});var mle=S((her,fle)=>{"use strict";fle.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var bG=S((Aer,yle)=>{"use strict";function bnt(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(bnt,"isCTLExcludingHtab");function wG(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(wG,"validateCookieName");function xG(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(xG,"validateCookieValue");function Ale(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}i(Ale,"validateCookiePath");function hle(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(hle,"isLetterOrDigit");function Bnt(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(Bnt,"validateCookieDomain");var Rnt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nnt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],GR=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function gle(t){return typeof t=="number"&&(t=new Date(t)),`${Rnt[t.getUTCDay()]}, ${GR[t.getUTCDate()]} ${Nnt[t.getUTCMonth()]} ${t.getUTCFullYear()} ${GR[t.getUTCHours()]}:${GR[t.getUTCMinutes()]}:${GR[t.getUTCSeconds()]} GMT`}i(gle,"toIMFDate");function Tnt(t){if(t<0)throw new Error("Invalid cookie max-age")}i(Tnt,"validateCookieMaxAge");function Pnt(t){if(t.name.length===0)return null;wG(t.name),xG(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"&&(Tnt(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(Bnt(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(Ale(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${gle(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("=");wG(o),xG(a),e.push(`${o}=${a}`)}return e.join("; ")}i(Pnt,"stringify");yle.exports={isCTLExcludingHtab:bnt,validateCookieName:wG,validateCookiePath:Ale,validateCookieValue:xG,toIMFDate:gle,stringify:Pnt}});var Cle=S((yer,Ele)=>{"use strict";var{maxNameValuePairSize:_nt,maxAttributeValueSize:vnt}=mle(),{isCTLExcludingHtab:Qnt}=bG(),{collectASequenceOfCodePointsFast:HR}=_s(),Dnt=require("node:assert");function knt(t){if(Qnt(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=HR(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=HR("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>_nt?null:{name:n,value:s,...FA(r)}}i(knt,"parseSetCookie");function FA(t,e={}){if(t.length===0)return e;Dnt(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=HR(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=HR("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>vnt)return FA(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 FA(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 FA(t,e)}i(FA,"parseUnparsedAttributes");Ele.exports={parseSetCookie:knt,parseUnparsedAttributes:FA}});var wle=S((Cer,Sle)=>{"use strict";var{parseSetCookie:Ont}=Cle(),{stringify:Lnt}=bG(),{webidl:tt}=bn(),{Headers:zR}=Df();function Mnt(t){tt.argumentLengthCheck(arguments,1,"getCookies"),tt.brandCheck(t,zR,{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(Mnt,"getCookies");function Fnt(t,e,r){tt.brandCheck(t,zR,{strict:!1});let n="deleteCookie";tt.argumentLengthCheck(arguments,2,n),e=tt.converters.DOMString(e,n,"name"),r=tt.converters.DeleteCookieAttributes(r),Ile(t,{name:e,value:"",expires:new Date(0),...r})}i(Fnt,"deleteCookie");function Unt(t){tt.argumentLengthCheck(arguments,1,"getSetCookies"),tt.brandCheck(t,zR,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>Ont(r)):[]}i(Unt,"getSetCookies");function Ile(t,e){tt.argumentLengthCheck(arguments,2,"setCookie"),tt.brandCheck(t,zR,{strict:!1}),e=tt.converters.Cookie(e);let r=Lnt(e);r&&t.append("Set-Cookie",r)}i(Ile,"setCookie");tt.converters.DeleteCookieAttributes=tt.dictionaryConverter([{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);tt.converters.Cookie=tt.dictionaryConverter([{converter:tt.converters.DOMString,key:"name"},{converter:tt.converters.DOMString,key:"value"},{converter:tt.nullableConverter(t=>typeof t=="number"?tt.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:tt.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:tt.sequenceConverter(tt.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);Sle.exports={getCookies:Mnt,deleteCookie:Fnt,getSetCookies:Unt,setCookie:Ile}});var qA=S((Ser,ble)=>{"use strict";var{webidl:ie}=bn(),{kEnumerableProperty:ks}=Je(),{kConstruct:xle}=Ht(),{MessagePort:qnt}=require("node:worker_threads"),UA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===xle){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(xle,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:$nt}=UA;delete UA.createFastMessageEvent;var VR=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}},WR=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(UA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:ks,origin:ks,lastEventId:ks,source:ks,ports:ks,initMessageEvent:ks});Object.defineProperties(VR.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:ks,code:ks,wasClean:ks});Object.defineProperties(WR.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:ks,filename:ks,lineno:ks,colno:ks,error:ks});ie.converters.MessagePort=ie.interfaceConverter(qnt);ie.converters["sequence"]=ie.sequenceConverter(ie.converters.MessagePort);var BG=[{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([...BG,{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([...BG,{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([...BG,{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}]);ble.exports={MessageEvent:UA,CloseEvent:VR,ErrorEvent:WR,createFastMessageEvent:$nt}});var Uf=S((xer,Ble)=>{"use strict";var Gnt="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",Hnt={enumerable:!0,writable:!1,configurable:!1},znt={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},Vnt={NOT_SENT:0,PROCESSING:1,SENT:2},Wnt={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},Jnt=2**16-1,Ynt={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},jnt=Buffer.allocUnsafe(0),Knt={string:1,typedArray:2,arrayBuffer:3,blob:4};Ble.exports={uid:Gnt,sentCloseFrameState:Vnt,staticPropertyDescriptors:Hnt,states:znt,opcodes:Wnt,maxUnsigned16Bit:Jnt,parserStates:Ynt,emptyBuffer:jnt,sendHints:Knt}});var TI=S((ber,Rle)=>{"use strict";Rle.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 vI=S((Ber,Ole)=>{"use strict";var{kReadyState:PI,kController:Xnt,kResponse:Znt,kBinaryType:est,kWebSocketURL:tst}=TI(),{states:_I,opcodes:md}=Uf(),{ErrorEvent:rst,createFastMessageEvent:nst}=qA(),{isUtf8:sst}=require("node:buffer"),{collectASequenceOfCodePointsFast:ost,removeHTTPWhitespace:Nle}=_s();function ist(t){return t[PI]===_I.CONNECTING}i(ist,"isConnecting");function ast(t){return t[PI]===_I.OPEN}i(ast,"isEstablished");function cst(t){return t[PI]===_I.CLOSING}i(cst,"isClosing");function lst(t){return t[PI]===_I.CLOSED}i(lst,"isClosed");function RG(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(RG,"fireEvent");function ust(t,e,r){if(t[PI]!==_I.OPEN)return;let n;if(e===md.TEXT)try{n=kle(r)}catch{Ple(t,"Received invalid UTF-8 in text frame.");return}else e===md.BINARY&&(t[est]==="blob"?n=new Blob([r]):n=dst(r));RG("message",t,nst,{origin:t[tst].origin,data:n})}i(ust,"websocketMessageReceived");function dst(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(dst,"toArrayBuffer");function pst(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(pst,"isValidSubprotocol");function fst(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(fst,"isValidStatusCode");function Ple(t,e){let{[Xnt]:r,[Znt]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&RG("error",t,(s,o)=>new rst(s,o),{error:new Error(e),message:e})}i(Ple,"failWebsocketConnection");function _le(t){return t===md.CLOSE||t===md.PING||t===md.PONG}i(_le,"isControlFrame");function vle(t){return t===md.CONTINUATION}i(vle,"isContinuationFrame");function Qle(t){return t===md.TEXT||t===md.BINARY}i(Qle,"isTextBinaryFrame");function mst(t){return Qle(t)||vle(t)||_le(t)}i(mst,"isValidOpcode");function hst(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(Ast,"isValidClientWindowBits");var Dle=typeof process.versions.icu=="string",Tle=Dle?new TextDecoder("utf-8",{fatal:!0}):void 0,kle=Dle?Tle.decode.bind(Tle):function(t){if(sst(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Ole.exports={isConnecting:ist,isEstablished:ast,isClosing:cst,isClosed:lst,fireEvent:RG,isValidSubprotocol:pst,isValidStatusCode:fst,failWebsocketConnection:Ple,websocketMessageReceived:ust,utf8Decode:kle,isControlFrame:_le,isContinuationFrame:vle,isTextBinaryFrame:Qle,isValidOpcode:mst,parseExtensions:hst,isValidClientWindowBits:Ast}});var YR=S((Ner,Lle)=>{"use strict";var{maxUnsigned16Bit:gst}=Uf(),JR=16386,NG,QI=null,$A=JR;try{NG=require("node:crypto")}catch{NG={randomFillSync:i(function(e,r,n){for(let s=0;sgst?(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:Est,states:DI,sentCloseFrameState:jR,emptyBuffer:Cst,opcodes:Ist}=Uf(),{kReadyState:kI,kSentClose:KR,kByteParser:Fle,kReceivedClose:Mle,kResponse:Ule}=TI(),{fireEvent:Sst,failWebsocketConnection:hd,isClosing:wst,isClosed:xst,isEstablished:bst,parseExtensions:Bst}=vI(),{channels:GA}=tA(),{CloseEvent:Rst}=qA(),{makeRequest:Nst}=kA(),{fetching:Tst}=bI(),{Headers:Pst,getHeadersList:_st}=Df(),{getDecodeSplit:vst}=ho(),{WebsocketFrameSend:Qst}=YR(),PG;try{PG=require("node:crypto")}catch{}function Dst(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=Nst({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=_st(new Pst(o.headers));c.headersList=p}let l=PG.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"),Tst({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){hd(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){hd(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){hd(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){hd(n,'Server did not set Connection header to "upgrade".');return}let f=p.headersList.get("Sec-WebSocket-Accept"),m=PG.createHash("sha1").update(l+Est).digest("base64");if(f!==m){hd(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let h=p.headersList.get("Sec-WebSocket-Extensions"),A;if(h!==null&&(A=Bst(h),!A.has("permessage-deflate"))){hd(n,"Sec-WebSocket-Extensions header does not match.");return}let y=p.headersList.get("Sec-WebSocket-Protocol");if(y!==null){let E=vst("sec-websocket-protocol",c.headersList);if(E===null||!E.includes(y)){hd(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",qle),p.socket.on("close",$le),p.socket.on("error",Gle),GA.open.hasSubscribers&&GA.open.publish({address:p.socket.address(),protocol:y,extensions:h}),s(p,A)}})}i(Dst,"establishWebSocketConnection");function kst(t,e,r,n){if(!(wst(t)||xst(t)))if(!bst(t))hd(t,"Connection was closed before it was established."),t[kI]=DI.CLOSING;else if(t[KR]===jR.NOT_SENT){t[KR]=jR.PROCESSING;let s=new Qst;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=Cst,t[Ule].socket.write(s.createFrame(Ist.CLOSE)),t[KR]=jR.SENT,t[kI]=DI.CLOSING}else t[kI]=DI.CLOSING}i(kst,"closeWebSocketConnection");function qle(t){this.ws[Fle].write(t)||this.pause()}i(qle,"onSocketData");function $le(){let{ws:t}=this,{[Ule]:e}=t;e.socket.off("data",qle),e.socket.off("close",$le),e.socket.off("error",Gle);let r=t[KR]===jR.SENT&&t[Mle],n=1005,s="",o=t[Fle].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Mle]||(n=1006),t[kI]=DI.CLOSED,Sst("close",t,(a,c)=>new Rst(a,c),{wasClean:r,code:n,reason:s}),GA.close.hasSubscribers&&GA.close.publish({websocket:t,code:n,reason:s})}i($le,"onSocketClose");function Gle(t){let{ws:e}=this;e[kI]=DI.CLOSING,GA.socketError.hasSubscribers&&GA.socketError.publish(t),this.destroy()}i(Gle,"onSocketError");Hle.exports={establishWebSocketConnection:Dst,closeWebSocketConnection:kst}});var Vle=S((ver,zle)=>{"use strict";var{createInflateRaw:Ost,Z_DEFAULT_WINDOWBITS:Lst}=require("node:zlib"),{isValidClientWindowBits:Mst}=vI(),{MessageSizeExceededError:Fst}=at(),Ust=Buffer.from([0,0,255,255]),XR=Symbol("kBuffer"),OI=Symbol("kLength"),vG=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=Lst;if(this.#t.serverMaxWindowBits){if(!Mst(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=Ost({windowBits:s})}catch(o){n(o);return}this.#e[XR]=[],this.#e[OI]=0,this.#e.on("data",o=>{if(this.#e[OI]+=o.length,this.#n>0&&this.#e[OI]>this.#n){n(new Fst),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[XR].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(Ust),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[XR],this.#e[OI]);this.#e[XR].length=0,this.#e[OI]=0,n(null,s)})}};zle.exports={PerMessageDeflate:vG}});var tue=S((Der,eue)=>{"use strict";var{Writable:qst}=require("node:stream"),$st=require("node:assert"),{parserStates:Os,opcodes:HA,states:Gst,emptyBuffer:Wle,sentCloseFrameState:Jle}=Uf(),{kReadyState:Hst,kSentClose:Yle,kResponse:QG,kReceivedClose:jle}=TI(),{channels:ZR}=tA(),{isValidStatusCode:zst,isValidOpcode:Vst,failWebsocketConnection:wo,websocketMessageReceived:Kle,utf8Decode:Wst,isControlFrame:DG,isTextBinaryFrame:kG,isContinuationFrame:Jst}=vI(),{WebsocketFrameSend:Xle}=YR(),{closeWebSocketConnection:Zle}=_G(),{PerMessageDeflate:Yst}=Vle(),{MessageSizeExceededError:OG}=at();function LI(t,e,r){Zle(t,e,r,Buffer.byteLength(r)),wo(t,r)}i(LI,"failWebsocketConnectionWithCode");var LG=class extends qst{static{i(this,"ByteParser")}#e=[];#t=0;#n=0;#r=!1;#s=Os.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 Yst(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&&!DG(this.#o.opcode)&&this.#o.payloadLength+this.#t>this.#c?(LI(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#r;)if(this.#s===Os.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!==HA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!Vst(s))return wo(this.ws,"Invalid opcode received"),e();if(o)return wo(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){wo(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){wo(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!kG(s)){wo(this.ws,"Invalid frame type was fragmented.");return}if(kG(s)&&this.#i.length>0){wo(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&a){wo(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&DG(s)){wo(this.ws,"Control frame either too large or fragmented");return}if(Jst(s)&&this.#i.length===0&&!this.#o.compressed){wo(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#o.payloadLength=c,this.#s=Os.READ_DATA,!this.#u())return}else c===126?this.#s=Os.PAYLOADLENGTH_16:c===127&&(this.#s=Os.PAYLOADLENGTH_64);kG(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===Os.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#o.payloadLength=r.readUInt16BE(0),this.#s=Os.READ_DATA,!this.#u())return}else if(this.#s===Os.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){wo(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#o.payloadLength=s,this.#s=Os.READ_DATA,!this.#u())return}else if(this.#s===Os.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 OG?1009:1007;LI(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){LI(this.ws,1009,new OG().message);return}if(!this.#o.fin){this.#s=Os.INFO,this.#r=!0,this.run(e);return}Kle(this.ws,this.#o.binaryType,this.consumeFragments()),this.#r=!0,this.#s=Os.INFO,this.run(e)}}),this.#r=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){LI(this.ws,1009,new OG().message);return}!this.#o.fragmented&&this.#o.fin&&Kle(this.ws,this.#o.binaryType,this.consumeFragments()),this.#s=Os.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return Wle;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?(LI(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){$st(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!zst(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=Wst(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===HA.CLOSE){if(n===1)return wo(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 Zle(this.ws,s,o,o.length),wo(this.ws,o),!1}if(this.ws[Yle]!==Jle.SENT){let s=Wle;this.#o.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#o.closeInfo.code,0));let o=new Xle(s);this.ws[QG].socket.write(o.createFrame(HA.CLOSE),a=>{a||(this.ws[Yle]=Jle.SENT)})}return this.ws[Hst]=Gst.CLOSING,this.ws[jle]=!0,!1}else if(r===HA.PING){if(!this.ws[jle]){let s=new Xle(e);this.ws[QG].socket.write(s.createFrame(HA.PONG)),ZR.ping.hasSubscribers&&ZR.ping.publish({payload:e})}}else r===HA.PONG&&ZR.pong.hasSubscribers&&ZR.pong.publish({payload:e});return!0}get closingInfo(){return this.#o.closeInfo}};eue.exports={ByteParser:LG}});var iue=S((Oer,oue)=>{"use strict";var{WebsocketFrameSend:jst}=YR(),{opcodes:rue,sendHints:zA}=Uf(),Kst=$q(),nue=Buffer[Symbol.species],MG=class{static{i(this,"SendQueue")}#e=new Kst;#t=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==zA.blob){let o=sue(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=sue(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 sue(t,e){return new jst(Xst(t,e)).createFrame(e===zA.string?rue.TEXT:rue.BINARY)}i(sue,"createFrame");function Xst(t,e){switch(e){case zA.string:return Buffer.from(t);case zA.arrayBuffer:case zA.blob:return new nue(t);case zA.typedArray:return new nue(t.buffer,t.byteOffset,t.byteLength)}}i(Xst,"toBuffer");oue.exports={SendQueue:MG}});var Aue=S((Mer,hue)=>{"use strict";var{webidl:Te}=bn(),{URLSerializer:Zst}=_s(),{environmentSettingsObject:aue}=ho(),{staticPropertyDescriptors:Ad,states:MI,sentCloseFrameState:eot,sendHints:eN}=Uf(),{kWebSocketURL:cue,kReadyState:FG,kController:lue,kBinaryType:tN,kResponse:uue,kSentClose:tot,kByteParser:rot}=TI(),{isConnecting:not,isEstablished:sot,isClosing:oot,isValidSubprotocol:iot,fireEvent:due}=vI(),{establishWebSocketConnection:aot,closeWebSocketConnection:pue}=_G(),{ByteParser:cot}=tue(),{kEnumerableProperty:oi,isBlobLike:fue}=Je(),{getGlobalDispatcher:lot}=CI(),{types:mue}=require("node:util"),{ErrorEvent:uot,CloseEvent:dot}=qA(),{SendQueue:pot}=iue(),xo=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(),Te.util.markAsUncloneable(this);let n="WebSocket constructor";Te.argumentLengthCheck(arguments,1,n);let s=Te.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Te.converters.USVString(e,n,"url"),r=s.protocols;let o=aue.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=>iot(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[cue]=new URL(a.href);let c=aue.settingsObject;this[lue]=aot(a,r,c,this,(l,u)=>this.#o(l,u),s),this[FG]=t.CONNECTING,this[tot]=eot.NOT_SENT,this[tN]="blob"}close(e=void 0,r=void 0){Te.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Te.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Te.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");pue(this,e,r,s)}send(e){Te.brandCheck(this,t);let r="WebSocket.send";if(Te.argumentLengthCheck(arguments,1,r),e=Te.converters.WebSocketSendData(e,r,"data"),not(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!sot(this)||oot(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},eN.string)}else mue.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},eN.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},eN.typedArray)):fue(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},eN.blob))}get readyState(){return Te.brandCheck(this,t),this[FG]}get bufferedAmount(){return Te.brandCheck(this,t),this.#t}get url(){return Te.brandCheck(this,t),Zst(this[cue])}get extensions(){return Te.brandCheck(this,t),this.#r}get protocol(){return Te.brandCheck(this,t),this.#n}get onopen(){return Te.brandCheck(this,t),this.#e.open}set onopen(e){Te.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 Te.brandCheck(this,t),this.#e.error}set onerror(e){Te.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 Te.brandCheck(this,t),this.#e.close}set onclose(e){Te.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 Te.brandCheck(this,t),this.#e.message}set onmessage(e){Te.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 Te.brandCheck(this,t),this[tN]}set binaryType(e){Te.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[tN]="blob":this[tN]=e}#o(e,r){this[uue]=e;let n=this[lue]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new cot(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",fot),a.on("error",mot.bind(this)),e.socket.ws=this,this[rot]=a,this.#s=new pot(e.socket),this[FG]=MI.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),due("open",this)}};xo.CONNECTING=xo.prototype.CONNECTING=MI.CONNECTING;xo.OPEN=xo.prototype.OPEN=MI.OPEN;xo.CLOSING=xo.prototype.CLOSING=MI.CLOSING;xo.CLOSED=xo.prototype.CLOSED=MI.CLOSED;Object.defineProperties(xo.prototype,{CONNECTING:Ad,OPEN:Ad,CLOSING:Ad,CLOSED:Ad,url:oi,readyState:oi,bufferedAmount:oi,onopen:oi,onerror:oi,onclose:oi,close:oi,onmessage:oi,binaryType:oi,send:oi,extensions:oi,protocol:oi,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(xo,{CONNECTING:Ad,OPEN:Ad,CLOSING:Ad,CLOSED:Ad});Te.converters["sequence"]=Te.sequenceConverter(Te.converters.DOMString);Te.converters["DOMString or sequence"]=function(t,e,r){return Te.util.Type(t)==="Object"&&Symbol.iterator in t?Te.converters["sequence"](t):Te.converters.DOMString(t,e,r)};Te.converters.WebSocketInit=Te.dictionaryConverter([{key:"protocols",converter:Te.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Te.converters.any,defaultValue:i(()=>lot(),"defaultValue")},{key:"headers",converter:Te.nullableConverter(Te.converters.HeadersInit)}]);Te.converters["DOMString or sequence or WebSocketInit"]=function(t){return Te.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Te.converters.WebSocketInit(t):{protocols:Te.converters["DOMString or sequence"](t)}};Te.converters.WebSocketSendData=function(t){if(Te.util.Type(t)==="Object"){if(fue(t))return Te.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||mue.isArrayBuffer(t))return Te.converters.BufferSource(t)}return Te.converters.USVString(t)};function fot(){this.ws[uue].socket.resume()}i(fot,"onParserDrain");function mot(t){let e,r;t instanceof dot?(e=t.reason,r=t.code):e=t.message,due("error",this,()=>new uot("error",{error:t,message:e})),pue(this,r)}i(mot,"onParserError");hue.exports={WebSocket:xo}});var UG=S((Uer,gue)=>{"use strict";function hot(t){return t.indexOf("\0")===-1}i(hot,"isValidLastEventId");function Aot(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(Aot,"isASCIINumber");function got(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(got,"delay");gue.exports={isValidLastEventId:hot,isASCIINumber:Aot,delay:got}});var Eue=S(($er,yue)=>{"use strict";var yot=require("node:buffer"),{Transform:Eot}=require("node:stream"),{isASCIINumber:Cot,isValidLastEventId:Iot}=UG(),VA=[239,187,191],rN=10,FI=13,Sot=58,wot=32,xot=yot.kStringMaxLength,bot=Buffer.from("data"),Bot=Buffer.from("event"),Rot=Buffer.from("id"),Not=Buffer.from("retry"),Tot=1024,Pot=131072,_ot=128;function vot(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}i(vot,"isASCIINumberBytes");function Qot(t,e){for(let r=e;r0?Math.min(Pot,Math.max(Tot,Math.floor(this.maxEventSize/_ot))):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]!==rN&&e[0]!==FI){n(sN());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===rN){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===rN||s===FI){s===FI&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===rN||s===FI){s===FI&&(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(sN());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(Sot);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===wot&&++o),nN(e,s,bot)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw sN();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(nN(e,s,Not)){vot(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(nN(e,s,Rot)){Qot(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}nN(e,s,Bot)&&o0&&n>this.maxEventSize)throw sN();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&Cot(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iot(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:Dot}=require("node:stream"),{fetching:kot}=bI(),{makeRequest:Oot}=kA(),{webidl:iu}=bn(),{EventSourceStream:Lot}=Eue(),{parseMIMEType:Mot}=_s(),{createFastMessageEvent:Fot}=qA(),{isNetworkError:Cue}=wI(),{delay:Uot}=UG(),{kEnumerableProperty:qf}=Je(),{environmentSettingsObject:Iue}=ho(),{getGlobalDispatcher:qot}=CI(),Sue=!1,wue=3e3,UI=0,xue=1,qI=2,$ot="anonymous",Got="use-credentials",WA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=UI;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),iu.util.markAsUncloneable(this);let n="EventSource constructor";iu.argumentLengthCheck(arguments,1,n),Sue||(Sue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=iu.converters.USVString(e,n,"url"),r=iu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:wue};let s=Iue,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=$ot;r.withCredentials&&(a=Got,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Iue.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=Oot(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===qI)return;this.#r=UI;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{Cue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Cue(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?Mot(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=xue,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new Lot({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(Fot(l.type,l.options))},"push")});Dot(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=kot(e)}async#c(){this.#r!==qI&&(this.#r=UI,this.dispatchEvent(new Event("error")),await Uot(this.#a.reconnectionTime),this.#r===UI&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){iu.brandCheck(this,t),this.#r!==qI&&(this.#r=qI,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}},bue={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:UI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:xue,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:qI,writable:!1}};Object.defineProperties(WA,bue);Object.defineProperties(WA.prototype,bue);Object.defineProperties(WA.prototype,{close:qf,onerror:qf,onmessage:qf,onopen:qf,readyState:qf,url:qf,withCredentials:qf});iu.converters.EventSourceInitDict=iu.dictionaryConverter([{key:"withCredentials",converter:iu.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:iu.converters.any,defaultValue:i(()=>qot(),"defaultValue")}]);Bue.exports={EventSource:WA,defaultReconnectionTime:wue}});var $f=S((Ver,Se)=>{"use strict";var Hot=IA(),Nue=$C(),zot=SA(),Vot=Noe(),Wot=wA(),Jot=c$(),Yot=Xoe(),jot=oie(),Tue=at(),iN=Je(),{InvalidArgumentError:oN}=Tue,JA=zie(),Kot=HC(),Xot=G$(),Zot=Rae(),eit=V$(),tit=P$(),rit=aR(),{getGlobalDispatcher:Pue,setGlobalDispatcher:nit}=CI(),sit=gR(),oit=jB(),iit=KB();Object.assign(Nue.prototype,JA);Se.exports.Dispatcher=Nue;Se.exports.Client=Hot;Se.exports.Pool=zot;Se.exports.BalancedPool=Vot;Se.exports.Agent=Wot;Se.exports.ProxyAgent=Jot;Se.exports.EnvHttpProxyAgent=Yot;Se.exports.RetryAgent=jot;Se.exports.RetryHandler=rit;Se.exports.DecoratorHandler=sit;Se.exports.RedirectHandler=oit;Se.exports.createRedirectInterceptor=iit;Se.exports.interceptors={redirect:Dae(),retry:Oae(),dump:Mae(),dns:qae()};Se.exports.buildConnector=Kot;Se.exports.errors=Tue;Se.exports.util={parseHeaders:iN.parseHeaders,headerNameToString:iN.headerNameToString};function $I(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 oN("invalid url");if(r!=null&&typeof r!="object")throw new oN("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new oN("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(iN.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=iN.parseURL(e);let{agent:s,dispatcher:o=Pue()}=r;if(s)throw new oN("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($I,"makeDispatcher");Se.exports.setGlobalDispatcher=nit;Se.exports.getGlobalDispatcher=Pue;var ait=bI().fetch;Se.exports.fetch=i(async function(e,r=void 0){try{return await ait(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Se.exports.Headers=Df().Headers;Se.exports.Response=wI().Response;Se.exports.Request=kA().Request;Se.exports.FormData=KC().FormData;Se.exports.File=globalThis.File??require("node:buffer").File;Se.exports.FileReader=nle().FileReader;var{setGlobalOrigin:cit,getGlobalOrigin:lit}=aq();Se.exports.setGlobalOrigin=cit;Se.exports.getGlobalOrigin=lit;var{CacheStorage:uit}=ple(),{kConstruct:dit}=MR();Se.exports.caches=new uit(dit);var{deleteCookie:pit,getCookies:fit,getSetCookies:mit,setCookie:hit}=wle();Se.exports.deleteCookie=pit;Se.exports.getCookies=fit;Se.exports.getSetCookies=mit;Se.exports.setCookie=hit;var{parseMIMEType:Ait,serializeAMimeType:git}=_s();Se.exports.parseMIMEType=Ait;Se.exports.serializeAMimeType=git;var{CloseEvent:yit,ErrorEvent:Eit,MessageEvent:Cit}=qA();Se.exports.WebSocket=Aue().WebSocket;Se.exports.CloseEvent=yit;Se.exports.ErrorEvent=Eit;Se.exports.MessageEvent=Cit;Se.exports.request=$I(JA.request);Se.exports.stream=$I(JA.stream);Se.exports.pipeline=$I(JA.pipeline);Se.exports.connect=$I(JA.connect);Se.exports.upgrade=$I(JA.upgrade);Se.exports.MockClient=Xot;Se.exports.MockPool=eit;Se.exports.MockAgent=Zot;Se.exports.mockErrors=tit;var{EventSource:Iit}=Rue();Se.exports.EventSource=Iit});var eS=S((Brr,fde)=>{"use strict";var Yit="2.0.0",jit=Number.MAX_SAFE_INTEGER||9007199254740991,Kit=16,Xit=250,Zit=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Kit,MAX_SAFE_BUILD_LENGTH:Xit,MAX_SAFE_INTEGER:jit,RELEASE_TYPES:Zit,SEMVER_SPEC_VERSION:Yit,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var tS=S((Rrr,mde)=>{"use strict";var eat=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};mde.exports=eat});var XA=S((uc,hde)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:aH,MAX_SAFE_BUILD_LENGTH:tat,MAX_LENGTH:rat}=eS(),nat=tS();uc=hde.exports={};var sat=uc.re=[],oat=uc.safeRe=[],G=uc.src=[],iat=uc.safeSrc=[],H=uc.t={},aat=0,cH="[a-zA-Z0-9-]",cat=[["\\s",1],["\\d",rat],[cH,tat]],lat=i(t=>{for(let[e,r]of cat)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Oe=i((t,e,r)=>{let n=lat(e),s=aat++;nat(t,s,e),H[t]=s,G[s]=e,iat[s]=n,sat[s]=new RegExp(e,r?"g":void 0),oat[s]=new RegExp(n,r?"g":void 0)},"createToken");Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${cH}*`);Oe("MAINVERSION",`(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${G[H.PRERELEASEIDENTIFIER]}(?:\\.${G[H.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${G[H.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${G[H.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${cH}+`);Oe("BUILD",`(?:\\+(${G[H.BUILDIDENTIFIER]}(?:\\.${G[H.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${G[H.MAINVERSION]}${G[H.PRERELEASE]}?${G[H.BUILD]}?`);Oe("FULL",`^${G[H.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${G[H.MAINVERSIONLOOSE]}${G[H.PRERELEASELOOSE]}?${G[H.BUILD]}?`);Oe("LOOSE",`^${G[H.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${G[H.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${G[H.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:${G[H.PRERELEASE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:${G[H.PRERELEASELOOSE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${aH}})(?:\\.(\\d{1,${aH}}))?(?:\\.(\\d{1,${aH}}))?`);Oe("COERCE",`${G[H.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",G[H.COERCEPLAIN]+`(?:${G[H.PRERELEASE]})?(?:${G[H.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",G[H.COERCE],!0);Oe("COERCERTLFULL",G[H.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${G[H.LONETILDE]}\\s+`,!0);uc.tildeTrimReplace="$1~";Oe("TILDE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${G[H.LONECARET]}\\s+`,!0);uc.caretTrimReplace="$1^";Oe("CARET",`^${G[H.LONECARET]}${G[H.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${G[H.LONECARET]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${G[H.GTLT]}\\s*(${G[H.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]}|${G[H.XRANGEPLAIN]})`,!0);uc.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${G[H.XRANGEPLAIN]})\\s+-\\s+(${G[H.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${G[H.XRANGEPLAINLOOSE]})\\s+-\\s+(${G[H.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var hN=S((Trr,Ade)=>{"use strict";var uat=Object.freeze({loose:!0}),dat=Object.freeze({}),pat=i(t=>t?typeof t!="object"?uat:t:dat,"parseOptions");Ade.exports=pat});var lH=S((_rr,Ede)=>{"use strict";var gde=/^[0-9]+$/,yde=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tyde(e,t),"rcompareIdentifiers");Ede.exports={compareIdentifiers:yde,rcompareIdentifiers:fat}});var $n=S((Qrr,Ide)=>{"use strict";var AN=tS(),{MAX_LENGTH:Cde,MAX_SAFE_INTEGER:gN}=eS(),{safeRe:yN,t:EN}=XA(),mat=hN(),{compareIdentifiers:uH}=lH(),dH=class t{static{i(this,"SemVer")}constructor(e,r){if(r=mat(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>Cde)throw new TypeError(`version is longer than ${Cde} characters`);AN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?yN[EN.LOOSE]:yN[EN.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>gN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>gN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>gN||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(AN("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 uH(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(AN("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 uH(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?yN[EN.PRERELEASELOOSE]:yN[EN.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]),uH(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}};Ide.exports=dH});var Jf=S((krr,wde)=>{"use strict";var Sde=$n(),hat=i((t,e,r=!1)=>{if(t instanceof Sde)return t;try{return new Sde(t,e)}catch(n){if(!r)return null;throw n}},"parse");wde.exports=hat});var bde=S((Lrr,xde)=>{"use strict";var Aat=Jf(),gat=i((t,e)=>{let r=Aat(t,e);return r?r.version:null},"valid");xde.exports=gat});var Rde=S((Frr,Bde)=>{"use strict";var yat=Jf(),Eat=i((t,e)=>{let r=yat(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Bde.exports=Eat});var Pde=S((qrr,Tde)=>{"use strict";var Nde=$n(),Cat=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Nde(t instanceof Nde?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Tde.exports=Cat});var Qde=S((Grr,vde)=>{"use strict";var _de=Jf(),Iat=i((t,e)=>{let r=_de(t,null,!0),n=_de(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");vde.exports=Iat});var kde=S((zrr,Dde)=>{"use strict";var Sat=$n(),wat=i((t,e)=>new Sat(t,e).major,"major");Dde.exports=wat});var Lde=S((Wrr,Ode)=>{"use strict";var xat=$n(),bat=i((t,e)=>new xat(t,e).minor,"minor");Ode.exports=bat});var Fde=S((Yrr,Mde)=>{"use strict";var Bat=$n(),Rat=i((t,e)=>new Bat(t,e).patch,"patch");Mde.exports=Rat});var qde=S((Krr,Ude)=>{"use strict";var Nat=Jf(),Tat=i((t,e)=>{let r=Nat(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Ude.exports=Tat});var ai=S((Zrr,Gde)=>{"use strict";var $de=$n(),Pat=i((t,e,r)=>new $de(t,r).compare(new $de(e,r)),"compare");Gde.exports=Pat});var zde=S((tnr,Hde)=>{"use strict";var _at=ai(),vat=i((t,e,r)=>_at(e,t,r),"rcompare");Hde.exports=vat});var Wde=S((nnr,Vde)=>{"use strict";var Qat=ai(),Dat=i((t,e)=>Qat(t,e,!0),"compareLoose");Vde.exports=Dat});var CN=S((onr,Yde)=>{"use strict";var Jde=$n(),kat=i((t,e,r)=>{let n=new Jde(t,r),s=new Jde(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Yde.exports=kat});var Kde=S((anr,jde)=>{"use strict";var Oat=CN(),Lat=i((t,e)=>t.sort((r,n)=>Oat(r,n,e)),"sort");jde.exports=Lat});var Zde=S((lnr,Xde)=>{"use strict";var Mat=CN(),Fat=i((t,e)=>t.sort((r,n)=>Mat(n,r,e)),"rsort");Xde.exports=Fat});var rS=S((dnr,epe)=>{"use strict";var Uat=ai(),qat=i((t,e,r)=>Uat(t,e,r)>0,"gt");epe.exports=qat});var IN=S((fnr,tpe)=>{"use strict";var $at=ai(),Gat=i((t,e,r)=>$at(t,e,r)<0,"lt");tpe.exports=Gat});var pH=S((hnr,rpe)=>{"use strict";var Hat=ai(),zat=i((t,e,r)=>Hat(t,e,r)===0,"eq");rpe.exports=zat});var fH=S((gnr,npe)=>{"use strict";var Vat=ai(),Wat=i((t,e,r)=>Vat(t,e,r)!==0,"neq");npe.exports=Wat});var SN=S((Enr,spe)=>{"use strict";var Jat=ai(),Yat=i((t,e,r)=>Jat(t,e,r)>=0,"gte");spe.exports=Yat});var wN=S((Inr,ope)=>{"use strict";var jat=ai(),Kat=i((t,e,r)=>jat(t,e,r)<=0,"lte");ope.exports=Kat});var mH=S((wnr,ipe)=>{"use strict";var Xat=pH(),Zat=fH(),ect=rS(),tct=SN(),rct=IN(),nct=wN(),sct=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 Xat(t,r,n);case"!=":return Zat(t,r,n);case">":return ect(t,r,n);case">=":return tct(t,r,n);case"<":return rct(t,r,n);case"<=":return nct(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");ipe.exports=sct});var cpe=S((bnr,ape)=>{"use strict";var oct=$n(),ict=Jf(),{safeRe:xN,t:bN}=XA(),act=i((t,e)=>{if(t instanceof oct)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?xN[bN.COERCEFULL]:xN[bN.COERCE]);else{let l=e.includePrerelease?xN[bN.COERCERTLFULL]:xN[bN.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 ict(`${n}.${s}.${o}${a}${c}`,e)},"coerce");ape.exports=act});var upe=S((Rnr,lpe)=>{"use strict";var hH=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}};lpe.exports=hH});var ci=S((Tnr,mpe)=>{"use strict";var cct=/\s+/g,AH=class t{static{i(this,"Range")}constructor(e,r){if(r=uct(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof gH)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(cct," "),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=>!ppe(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&&gct(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&&hct)|(this.options.loose&&Act))+":"+e,s=dpe.get(n);if(s)return s;let o=this.options.loose,a=o?us[Gn.HYPHENRANGELOOSE]:us[Gn.HYPHENRANGE];e=e.replace(a,Rct(this.options.includePrerelease)),Lt("hyphen replace",e),e=e.replace(us[Gn.COMPARATORTRIM],pct),Lt("comparator trim",e),e=e.replace(us[Gn.TILDETRIM],fct),Lt("tilde trim",e),e=e.replace(us[Gn.CARETTRIM],mct),Lt("caret trim",e);let c=e.split(" ").map(p=>yct(p,this.options)).join(" ").split(/\s+/).map(p=>Bct(p,this.options));o&&(c=c.filter(p=>(Lt("loose invalid filter",p,this.options),!!p.match(us[Gn.COMPARATORLOOSE])))),Lt("range list",c);let l=new Map,u=c.map(p=>new gH(p,this.options));for(let p of u){if(ppe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return dpe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>fpe(n,r)&&e.set.some(s=>fpe(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 dct(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),gct=i(t=>t.value==="","isAny"),fpe=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"),yct=i((t,e)=>(t=t.replace(us[Gn.BUILD],""),Lt("comp",t,e),t=Ict(t,e),Lt("caret",t),t=Ect(t,e),Lt("tildes",t),t=wct(t,e),Lt("xrange",t),t=bct(t,e),Lt("stars",t),t),"parseComparator"),ds=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Ect=i((t,e)=>t.trim().split(/\s+/).map(r=>Cct(r,e)).join(" "),"replaceTildes"),Cct=i((t,e)=>{let r=e.loose?us[Gn.TILDELOOSE]:us[Gn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Lt("tilde",t,n,s,o,a,c);let l;return ds(s)?l="":ds(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ds(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Lt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Lt("tilde return",l),l})},"replaceTilde"),Ict=i((t,e)=>t.trim().split(/\s+/).map(r=>Sct(r,e)).join(" "),"replaceCarets"),Sct=i((t,e)=>{Lt("caret",t,e);let r=e.loose?us[Gn.CARETLOOSE]:us[Gn.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 ds(o)?u="":ds(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ds(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}${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`),Lt("caret return",u),u})},"replaceCaret"),wct=i((t,e)=>(Lt("replaceXRanges",t,e),t.split(/\s+/).map(r=>xct(r,e)).join(" ")),"replaceXRanges"),xct=i((t,e)=>{t=t.trim();let r=e.loose?us[Gn.XRANGELOOSE]:us[Gn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Lt("xRange",t,n,s,o,a,c,l);let u=ds(o),d=u||ds(a),p=d||ds(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"),bct=i((t,e)=>(Lt("replaceStars",t,e),t.trim().replace(us[Gn.STAR],"")),"replaceStars"),Bct=i((t,e)=>(Lt("replaceGTE0",t,e),t.trim().replace(us[e.includePrerelease?Gn.GTE0PRE:Gn.GTE0],"")),"replaceGTE0"),Rct=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(ds(n)?r="":ds(s)?r=`>=${n}.0.0${t?"-0":""}`:ds(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ds(u)?l="":ds(d)?l=`<${+u+1}.0.0-0`:ds(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"),Nct=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 nS=S((_nr,Cpe)=>{"use strict";var sS=Symbol("SemVer ANY"),CH=class t{static{i(this,"Comparator")}static get ANY(){return sS}constructor(e,r){if(r=hpe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),EH("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===sS?this.value="":this.value=this.operator+this.semver.version,EH("comp",this)}parse(e){let r=this.options.loose?Ape[gpe.COMPARATORLOOSE]:Ape[gpe.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 ype(n[2],this.options.loose):this.semver=sS}toString(){return this.value}test(e){if(EH("Comparator.test",e,this.options.loose),this.semver===sS||e===sS)return!0;if(typeof e=="string")try{e=new ype(e,this.options)}catch{return!1}return yH(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 Epe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Epe(this.value,r).test(e.semver):(r=hpe(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("=")||yH(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||yH(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Cpe.exports=CH;var hpe=hN(),{safeRe:Ape,t:gpe}=XA(),yH=mH(),EH=tS(),ype=$n(),Epe=ci()});var oS=S((Qnr,Ipe)=>{"use strict";var Tct=ci(),Pct=i((t,e,r)=>{try{e=new Tct(e,r)}catch{return!1}return e.test(t)},"satisfies");Ipe.exports=Pct});var wpe=S((knr,Spe)=>{"use strict";var _ct=ci(),vct=i((t,e)=>new _ct(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Spe.exports=vct});var bpe=S((Lnr,xpe)=>{"use strict";var Qct=$n(),Dct=ci(),kct=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Dct(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Qct(n,r))}),n},"maxSatisfying");xpe.exports=kct});var Rpe=S((Fnr,Bpe)=>{"use strict";var Oct=$n(),Lct=ci(),Mct=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Lct(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Oct(n,r))}),n},"minSatisfying");Bpe.exports=Mct});var Ppe=S((qnr,Tpe)=>{"use strict";var IH=$n(),Fct=ci(),Npe=rS(),Uct=i((t,e)=>{t=new Fct(t,e);let r=new IH("0.0.0");if(t.test(r)||(r=new IH("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new IH(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Npe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Npe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Tpe.exports=Uct});var vpe=S((Gnr,_pe)=>{"use strict";var qct=ci(),$ct=i((t,e)=>{try{return new qct(t,e).range||"*"}catch{return null}},"validRange");_pe.exports=$ct});var BN=S((znr,Ope)=>{"use strict";var Gct=$n(),kpe=nS(),{ANY:Hct}=kpe,zct=ci(),Vct=oS(),Qpe=rS(),Dpe=IN(),Wct=wN(),Jct=SN(),Yct=i((t,e,r,n)=>{t=new Gct(t,n),e=new zct(e,n);let s,o,a,c,l;switch(r){case">":s=Qpe,o=Wct,a=Dpe,c=">",l=">=";break;case"<":s=Dpe,o=Jct,a=Qpe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vct(t,e,n))return!1;for(let u=0;u{m.semver===Hct&&(m=new kpe(">=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");Ope.exports=Yct});var Mpe=S((Wnr,Lpe)=>{"use strict";var jct=BN(),Kct=i((t,e,r)=>jct(t,e,">",r),"gtr");Lpe.exports=Kct});var Upe=S((Ynr,Fpe)=>{"use strict";var Xct=BN(),Zct=i((t,e,r)=>Xct(t,e,"<",r),"ltr");Fpe.exports=Zct});var Gpe=S((Knr,$pe)=>{"use strict";var qpe=ci(),elt=i((t,e,r)=>(t=new qpe(t,r),e=new qpe(e,r),t.intersects(e,r)),"intersects");$pe.exports=elt});var zpe=S((Znr,Hpe)=>{"use strict";var tlt=oS(),rlt=ai();Hpe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>rlt(d,p,r));for(let d of a)tlt(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 Vpe=ci(),wH=nS(),{ANY:SH}=wH,iS=oS(),xH=ai(),nlt=i((t,e,r={})=>{if(t===e)return!0;t=new Vpe(t,r),e=new Vpe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=olt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),slt=[new wH(">=0.0.0-0")],Wpe=[new wH(">=0.0.0")],olt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===SH){if(e.length===1&&e[0].semver===SH)return!0;r.includePrerelease?t=slt:t=Wpe}if(e.length===1&&e[0].semver===SH){if(r.includePrerelease)return!0;e=Wpe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=Jpe(s,m,r):m.operator==="<"||m.operator==="<="?o=Ype(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=xH(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&&!iS(m,String(s),r)||o&&!iS(m,String(o),r))return null;for(let h of e)if(!iS(m,String(h),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=Jpe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!iS(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=Ype(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!iS(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"),Jpe=i((t,e,r)=>{if(!t)return e;let n=xH(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Ype=i((t,e,r)=>{if(!t)return e;let n=xH(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");jpe.exports=nlt});var BH=S((rsr,efe)=>{"use strict";var bH=XA(),Xpe=eS(),ilt=$n(),Zpe=lH(),alt=Jf(),clt=bde(),llt=Rde(),ult=Pde(),dlt=Qde(),plt=kde(),flt=Lde(),mlt=Fde(),hlt=qde(),Alt=ai(),glt=zde(),ylt=Wde(),Elt=CN(),Clt=Kde(),Ilt=Zde(),Slt=rS(),wlt=IN(),xlt=pH(),blt=fH(),Blt=SN(),Rlt=wN(),Nlt=mH(),Tlt=cpe(),Plt=nS(),_lt=ci(),vlt=oS(),Qlt=wpe(),Dlt=bpe(),klt=Rpe(),Olt=Ppe(),Llt=vpe(),Mlt=BN(),Flt=Mpe(),Ult=Upe(),qlt=Gpe(),$lt=zpe(),Glt=Kpe();efe.exports={parse:alt,valid:clt,clean:llt,inc:ult,diff:dlt,major:plt,minor:flt,patch:mlt,prerelease:hlt,compare:Alt,rcompare:glt,compareLoose:ylt,compareBuild:Elt,sort:Clt,rsort:Ilt,gt:Slt,lt:wlt,eq:xlt,neq:blt,gte:Blt,lte:Rlt,cmp:Nlt,coerce:Tlt,Comparator:Plt,Range:_lt,satisfies:vlt,toComparators:Qlt,maxSatisfying:Dlt,minSatisfying:klt,minVersion:Olt,validRange:Llt,outside:Mlt,gtr:Flt,ltr:Ult,intersects:qlt,simplifyRange:$lt,subset:Glt,SemVer:ilt,re:bH.re,src:bH.src,tokens:bH.t,SEMVER_SPEC_VERSION:Xpe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Xpe.RELEASE_TYPES,compareIdentifiers:Zpe.compareIdentifiers,rcompareIdentifiers:Zpe.rcompareIdentifiers}});var ng=S((mir,Lfe)=>{"use strict";var Sdt="2.0.0",wdt=Number.MAX_SAFE_INTEGER||9007199254740991,xdt=16,bdt=250,Bdt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lfe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xdt,MAX_SAFE_BUILD_LENGTH:bdt,MAX_SAFE_INTEGER:wdt,RELEASE_TYPES:Bdt,SEMVER_SPEC_VERSION:Sdt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var AS=S((hir,Mfe)=>{"use strict";var Rdt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Mfe.exports=Rdt});var sg=S((pc,Ffe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:HH,MAX_SAFE_BUILD_LENGTH:Ndt,MAX_LENGTH:Tdt}=ng(),Pdt=AS();pc=Ffe.exports={};var _dt=pc.re=[],vdt=pc.safeRe=[],z=pc.src=[],Qdt=pc.safeSrc=[],V=pc.t={},Ddt=0,zH="[a-zA-Z0-9-]",kdt=[["\\s",1],["\\d",Tdt],[zH,Ndt]],Odt=i(t=>{for(let[e,r]of kdt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=i((t,e,r)=>{let n=Odt(e),s=Ddt++;Pdt(t,s,e),V[t]=s,z[s]=e,Qdt[s]=n,_dt[s]=new RegExp(e,r?"g":void 0),vdt[s]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${zH}*`);Le("MAINVERSION",`(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${z[V.PRERELEASEIDENTIFIER]}(?:\\.${z[V.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${z[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[V.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${zH}+`);Le("BUILD",`(?:\\+(${z[V.BUILDIDENTIFIER]}(?:\\.${z[V.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${z[V.MAINVERSION]}${z[V.PRERELEASE]}?${z[V.BUILD]}?`);Le("FULL",`^${z[V.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${z[V.MAINVERSIONLOOSE]}${z[V.PRERELEASELOOSE]}?${z[V.BUILD]}?`);Le("LOOSE",`^${z[V.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${z[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${z[V.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:${z[V.PRERELEASE]})?${z[V.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:${z[V.PRERELEASELOOSE]})?${z[V.BUILD]}?)?)?`);Le("XRANGE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${HH}})(?:\\.(\\d{1,${HH}}))?(?:\\.(\\d{1,${HH}}))?`);Le("COERCE",`${z[V.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",z[V.COERCEPLAIN]+`(?:${z[V.PRERELEASE]})?(?:${z[V.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",z[V.COERCE],!0);Le("COERCERTLFULL",z[V.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${z[V.LONETILDE]}\\s+`,!0);pc.tildeTrimReplace="$1~";Le("TILDE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${z[V.LONECARET]}\\s+`,!0);pc.caretTrimReplace="$1^";Le("CARET",`^${z[V.LONECARET]}${z[V.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${z[V.LONECARET]}${z[V.XRANGEPLAINLOOSE]}$`);Le("COMPARATORLOOSE",`^${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]})$|^$`);Le("COMPARATOR",`^${z[V.GTLT]}\\s*(${z[V.FULLPLAIN]})$|^$`);Le("COMPARATORTRIM",`(\\s*)${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]}|${z[V.XRANGEPLAIN]})`,!0);pc.comparatorTrimReplace="$1$2$3";Le("HYPHENRANGE",`^\\s*(${z[V.XRANGEPLAIN]})\\s+-\\s+(${z[V.XRANGEPLAIN]})\\s*$`);Le("HYPHENRANGELOOSE",`^\\s*(${z[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[V.XRANGEPLAINLOOSE]})\\s*$`);Le("STAR","(<|>)?=?\\s*\\*");Le("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Le("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DN=S((gir,Ufe)=>{"use strict";var Ldt=Object.freeze({loose:!0}),Mdt=Object.freeze({}),Fdt=i(t=>t?typeof t!="object"?Ldt:t:Mdt,"parseOptions");Ufe.exports=Fdt});var VH=S((Eir,Gfe)=>{"use strict";var qfe=/^[0-9]+$/,$fe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t$fe(e,t),"rcompareIdentifiers");Gfe.exports={compareIdentifiers:$fe,rcompareIdentifiers:Udt}});var Bn=S((Iir,zfe)=>{"use strict";var kN=AS(),{MAX_LENGTH:Hfe,MAX_SAFE_INTEGER:ON}=ng(),{safeRe:LN,t:MN}=sg(),qdt=DN(),{compareIdentifiers:WH}=VH(),$dt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nHfe)throw new TypeError(`version is longer than ${Hfe} characters`);kN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?LN[MN.LOOSE]:LN[MN.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>ON||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ON||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ON||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(kN("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 WH(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(kN("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 WH(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?LN[MN.PRERELEASELOOSE]:LN[MN.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]),$dt(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}};zfe.exports=JH});var Rd=S((wir,Wfe)=>{"use strict";var Vfe=Bn(),Gdt=i((t,e,r=!1)=>{if(t instanceof Vfe)return t;try{return new Vfe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Wfe.exports=Gdt});var Yfe=S((bir,Jfe)=>{"use strict";var Hdt=Rd(),zdt=i((t,e)=>{let r=Hdt(t,e);return r?r.version:null},"valid");Jfe.exports=zdt});var Kfe=S((Rir,jfe)=>{"use strict";var Vdt=Rd(),Wdt=i((t,e)=>{let r=Vdt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");jfe.exports=Wdt});var eme=S((Tir,Zfe)=>{"use strict";var Xfe=Bn(),Jdt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Xfe(t instanceof Xfe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Zfe.exports=Jdt});var nme=S((_ir,rme)=>{"use strict";var tme=Rd(),Ydt=i((t,e)=>{let r=tme(t,null,!0),n=tme(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");rme.exports=Ydt});var ome=S((Qir,sme)=>{"use strict";var jdt=Bn(),Kdt=i((t,e)=>new jdt(t,e).major,"major");sme.exports=Kdt});var ame=S((kir,ime)=>{"use strict";var Xdt=Bn(),Zdt=i((t,e)=>new Xdt(t,e).minor,"minor");ime.exports=Zdt});var lme=S((Lir,cme)=>{"use strict";var ept=Bn(),tpt=i((t,e)=>new ept(t,e).patch,"patch");cme.exports=tpt});var dme=S((Fir,ume)=>{"use strict";var rpt=Rd(),npt=i((t,e)=>{let r=rpt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");ume.exports=npt});var pi=S((qir,fme)=>{"use strict";var pme=Bn(),spt=i((t,e,r)=>new pme(t,r).compare(new pme(e,r)),"compare");fme.exports=spt});var hme=S((Gir,mme)=>{"use strict";var opt=pi(),ipt=i((t,e,r)=>opt(e,t,r),"rcompare");mme.exports=ipt});var gme=S((zir,Ame)=>{"use strict";var apt=pi(),cpt=i((t,e)=>apt(t,e,!0),"compareLoose");Ame.exports=cpt});var FN=S((Wir,Eme)=>{"use strict";var yme=Bn(),lpt=i((t,e,r)=>{let n=new yme(t,r),s=new yme(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Eme.exports=lpt});var Ime=S((Yir,Cme)=>{"use strict";var upt=FN(),dpt=i((t,e)=>t.sort((r,n)=>upt(r,n,e)),"sort");Cme.exports=dpt});var wme=S((Kir,Sme)=>{"use strict";var ppt=FN(),fpt=i((t,e)=>t.sort((r,n)=>ppt(n,r,e)),"rsort");Sme.exports=fpt});var gS=S((Zir,xme)=>{"use strict";var mpt=pi(),hpt=i((t,e,r)=>mpt(t,e,r)>0,"gt");xme.exports=hpt});var UN=S((tar,bme)=>{"use strict";var Apt=pi(),gpt=i((t,e,r)=>Apt(t,e,r)<0,"lt");bme.exports=gpt});var YH=S((nar,Bme)=>{"use strict";var ypt=pi(),Ept=i((t,e,r)=>ypt(t,e,r)===0,"eq");Bme.exports=Ept});var jH=S((oar,Rme)=>{"use strict";var Cpt=pi(),Ipt=i((t,e,r)=>Cpt(t,e,r)!==0,"neq");Rme.exports=Ipt});var qN=S((aar,Nme)=>{"use strict";var Spt=pi(),wpt=i((t,e,r)=>Spt(t,e,r)>=0,"gte");Nme.exports=wpt});var $N=S((lar,Tme)=>{"use strict";var xpt=pi(),bpt=i((t,e,r)=>xpt(t,e,r)<=0,"lte");Tme.exports=bpt});var KH=S((dar,Pme)=>{"use strict";var Bpt=YH(),Rpt=jH(),Npt=gS(),Tpt=qN(),Ppt=UN(),_pt=$N(),vpt=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 Bpt(t,r,n);case"!=":return Rpt(t,r,n);case">":return Npt(t,r,n);case">=":return Tpt(t,r,n);case"<":return Ppt(t,r,n);case"<=":return _pt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Pme.exports=vpt});var vme=S((far,_me)=>{"use strict";var Qpt=Bn(),Dpt=Rd(),{safeRe:GN,t:HN}=sg(),kpt=i((t,e)=>{if(t instanceof Qpt)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?GN[HN.COERCEFULL]:GN[HN.COERCE]);else{let l=e.includePrerelease?GN[HN.COERCERTLFULL]:GN[HN.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 Dpt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");_me.exports=kpt});var Dme=S((har,Qme)=>{"use strict";var Opt=Rd(),Lpt=ng(),Mpt=Bn(),Fpt=i((t,e,r)=>{if(!Lpt.RELEASE_TYPES.includes(e))return null;let n=Upt(t,r);return n&&qpt(n,e)},"truncate"),Upt=i((t,e)=>{let r=t instanceof Mpt?t.version:t;return Opt(r,e)},"cloneInputVersion"),qpt=i((t,e)=>{if($pt(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"),$pt=i(t=>t.startsWith("pre"),"isPrerelease");Qme.exports=Fpt});var Ome=S((gar,kme)=>{"use strict";var XH=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}};kme.exports=XH});var fi=S((Ear,Ume)=>{"use strict";var Gpt=/\s+/g,ZH=class t{static{i(this,"Range")}constructor(e,r){if(r=zpt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof ez)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(Gpt," "),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=>!Mme(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&&eft(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(Zpt,"");let n=((this.options.includePrerelease&&Kpt)|(this.options.loose&&Xpt))+":"+e,s=Lme.get(n);if(s)return s;let o=this.options.loose,a=o?fs[Rn.HYPHENRANGELOOSE]:fs[Rn.HYPHENRANGE];e=e.replace(a,dft(this.options.includePrerelease)),Mt("hyphen replace",e),e=e.replace(fs[Rn.COMPARATORTRIM],Jpt),Mt("comparator trim",e),e=e.replace(fs[Rn.TILDETRIM],Ypt),Mt("tilde trim",e),e=e.replace(fs[Rn.CARETTRIM],jpt),Mt("caret trim",e);let c=e.split(" ").map(p=>tft(p,this.options)).join(" ").split(/\s+/).map(p=>uft(p,this.options));o&&(c=c.filter(p=>(Mt("loose invalid filter",p,this.options),!!p.match(fs[Rn.COMPARATORLOOSE])))),Mt("range list",c);let l=new Map,u=c.map(p=>new ez(p,this.options));for(let p of u){if(Mme(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Lme.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Fme(n,r)&&e.set.some(s=>Fme(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 Vpt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),eft=i(t=>t.value==="","isAny"),Fme=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"),tft=i((t,e)=>(t=t.replace(fs[Rn.BUILD],""),Mt("comp",t,e),t=oft(t,e),Mt("caret",t),t=nft(t,e),Mt("tildes",t),t=aft(t,e),Mt("xrange",t),t=lft(t,e),Mt("stars",t),t),"parseComparator"),Hr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),rft=i((t,e,r)=>Hr(t)&&!Hr(e)||Hr(e)&&r&&!Hr(r),"invalidXRangeOrder"),nft=i((t,e)=>t.trim().split(/\s+/).map(r=>sft(r,e)).join(" "),"replaceTildes"),sft=i((t,e)=>{let r=e.loose?fs[Rn.TILDELOOSE]:fs[Rn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("tilde",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Mt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Mt("tilde return",u),u})},"replaceTilde"),oft=i((t,e)=>t.trim().split(/\s+/).map(r=>ift(r,e)).join(" "),"replaceCarets"),ift=i((t,e)=>{Mt("caret",t,e);let r=e.loose?fs[Rn.CARETLOOSE]:fs[Rn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("caret",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Mt("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`):(Mt("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`),Mt("caret return",u),u})},"replaceCaret"),aft=i((t,e)=>(Mt("replaceXRanges",t,e),t.split(/\s+/).map(r=>cft(r,e)).join(" ")),"replaceXRanges"),cft=i((t,e)=>{t=t.trim();let r=e.loose?fs[Rn.XRANGELOOSE]:fs[Rn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Mt("xRange",t,n,s,o,a,c,l),rft(o,a,c))return t;let u=Hr(o),d=u||Hr(a),p=d||Hr(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`),Mt("xRange return",n),n})},"replaceXRange"),lft=i((t,e)=>(Mt("replaceStars",t,e),t.trim().replace(fs[Rn.STAR],"")),"replaceStars"),uft=i((t,e)=>(Mt("replaceGTE0",t,e),t.trim().replace(fs[e.includePrerelease?Rn.GTE0PRE:Rn.GTE0],"")),"replaceGTE0"),dft=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Hr(n)?r="":Hr(s)?r=`>=${n}.0.0${t?"-0":""}`:Hr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Hr(u)?l="":Hr(d)?l=`<${+u+1}.0.0-0`:Hr(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"),pft=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 yS=S((Iar,Vme)=>{"use strict";var ES=Symbol("SemVer ANY"),nz=class t{static{i(this,"Comparator")}static get ANY(){return ES}constructor(e,r){if(r=qme(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),rz("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===ES?this.value="":this.value=this.operator+this.semver.version,rz("comp",this)}parse(e){let r=this.options.loose?$me[Gme.COMPARATORLOOSE]:$me[Gme.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 Hme(n[2],this.options.loose):this.semver=ES}toString(){return this.value}test(e){if(rz("Comparator.test",e,this.options.loose),this.semver===ES||e===ES)return!0;if(typeof e=="string")try{e=new Hme(e,this.options)}catch{return!1}return tz(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 zme(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new zme(this.value,r).test(e.semver):(r=qme(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("=")||tz(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||tz(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Vme.exports=nz;var qme=DN(),{safeRe:$me,t:Gme}=sg(),tz=KH(),rz=AS(),Hme=Bn(),zme=fi()});var CS=S((war,Wme)=>{"use strict";var fft=fi(),mft=i((t,e,r)=>{try{e=new fft(e,r)}catch{return!1}return e.test(t)},"satisfies");Wme.exports=mft});var Yme=S((bar,Jme)=>{"use strict";var hft=fi(),Aft=i((t,e)=>new hft(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Jme.exports=Aft});var Kme=S((Rar,jme)=>{"use strict";var gft=Bn(),yft=fi(),Eft=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new yft(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new gft(n,r))}),n},"maxSatisfying");jme.exports=Eft});var Zme=S((Tar,Xme)=>{"use strict";var Cft=Bn(),Ift=fi(),Sft=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Ift(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Cft(n,r))}),n},"minSatisfying");Xme.exports=Sft});var rhe=S((_ar,the)=>{"use strict";var sz=Bn(),wft=fi(),ehe=gS(),xft=i((t,e)=>{t=new wft(t,e);let r=new sz("0.0.0");if(t.test(r)||(r=new sz("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new sz(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||ehe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||ehe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");the.exports=xft});var she=S((Dar,nhe)=>{"use strict";var bft=fi(),Bft=i((t,e)=>{try{return new bft(t,e).range||"*"}catch{return null}},"validRange");nhe.exports=Bft});var zN=S((Oar,che)=>{"use strict";var Rft=Bn(),ahe=yS(),{ANY:Nft}=ahe,Tft=fi(),Pft=CS(),ohe=gS(),ihe=UN(),_ft=$N(),vft=qN(),Qft=i((t,e,r,n)=>{t=new Rft(t,n),e=new Tft(e,n);let s,o,a,c,l;switch(r){case">":s=ohe,o=_ft,a=ihe,c=">",l=">=";break;case"<":s=ihe,o=vft,a=ohe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pft(t,e,n))return!1;for(let u=0;u{m.semver===Nft&&(m=new ahe(">=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");che.exports=Qft});var uhe=S((Mar,lhe)=>{"use strict";var Dft=zN(),kft=i((t,e,r)=>Dft(t,e,">",r),"gtr");lhe.exports=kft});var phe=S((Uar,dhe)=>{"use strict";var Oft=zN(),Lft=i((t,e,r)=>Oft(t,e,"<",r),"ltr");dhe.exports=Lft});var hhe=S(($ar,mhe)=>{"use strict";var fhe=fi(),Mft=i((t,e,r)=>(t=new fhe(t,r),e=new fhe(e,r),t.intersects(e,r)),"intersects");mhe.exports=Mft});var ghe=S((Har,Ahe)=>{"use strict";var Fft=CS(),Uft=pi();Ahe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Uft(d,p,r));for(let d of a)Fft(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 yhe=fi(),az=yS(),{ANY:oz}=az,iz=CS(),cz=pi(),qft=i((t,e,r={})=>{if(t===e)return!0;t=new yhe(t,r),e=new yhe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=Gft(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),$ft=[new az(">=0.0.0-0")],Ehe=[new az(">=0.0.0")],Gft=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===oz){if(e.length===1&&e[0].semver===oz)return!0;r.includePrerelease?t=$ft:t=Ehe}if(e.length===1&&e[0].semver===oz){if(r.includePrerelease)return!0;e=Ehe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=Che(s,m,r):m.operator==="<"||m.operator==="<="?o=Ihe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=cz(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&&!iz(m,String(s),r)||o&&!iz(m,String(o),r))return null;for(let h of e)if(!iz(m,String(h),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=Che(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=Ihe(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"),Che=i((t,e,r)=>{if(!t)return e;let n=cz(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Ihe=i((t,e,r)=>{if(!t)return e;let n=cz(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");She.exports=qft});var Rhe=S((War,Bhe)=>{"use strict";var lz=sg(),xhe=ng(),Hft=Bn(),bhe=VH(),zft=Rd(),Vft=Yfe(),Wft=Kfe(),Jft=eme(),Yft=nme(),jft=ome(),Kft=ame(),Xft=lme(),Zft=dme(),emt=pi(),tmt=hme(),rmt=gme(),nmt=FN(),smt=Ime(),omt=wme(),imt=gS(),amt=UN(),cmt=YH(),lmt=jH(),umt=qN(),dmt=$N(),pmt=KH(),fmt=vme(),mmt=Dme(),hmt=yS(),Amt=fi(),gmt=CS(),ymt=Yme(),Emt=Kme(),Cmt=Zme(),Imt=rhe(),Smt=she(),wmt=zN(),xmt=uhe(),bmt=phe(),Bmt=hhe(),Rmt=ghe(),Nmt=whe();Bhe.exports={parse:zft,valid:Vft,clean:Wft,inc:Jft,diff:Yft,major:jft,minor:Kft,patch:Xft,prerelease:Zft,compare:emt,rcompare:tmt,compareLoose:rmt,compareBuild:nmt,sort:smt,rsort:omt,gt:imt,lt:amt,eq:cmt,neq:lmt,gte:umt,lte:dmt,cmp:pmt,coerce:fmt,truncate:mmt,Comparator:hmt,Range:Amt,satisfies:gmt,toComparators:ymt,maxSatisfying:Emt,minSatisfying:Cmt,minVersion:Imt,validRange:Smt,outside:wmt,gtr:xmt,ltr:bmt,intersects:Bmt,simplifyRange:Rmt,subset:Nmt,SemVer:Hft,re:lz.re,src:lz.src,tokens:lz.t,SEMVER_SPEC_VERSION:xhe.SEMVER_SPEC_VERSION,RELEASE_TYPES:xhe.RELEASE_TYPES,compareIdentifiers:bhe.compareIdentifiers,rcompareIdentifiers:bhe.rcompareIdentifiers}});var AAe=S((Klr,hAe)=>{var dg=1e3,pg=dg*60,fg=pg*60,om=fg*24,uht=om*7,dht=om*365.25;hAe.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return pht(t);if(r==="number"&&isFinite(t))return e.long?mht(t):fht(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function pht(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*dht;case"weeks":case"week":case"w":return r*uht;case"days":case"day":case"d":return r*om;case"hours":case"hour":case"hrs":case"hr":case"h":return r*fg;case"minutes":case"minute":case"mins":case"min":case"m":return r*pg;case"seconds":case"second":case"secs":case"sec":case"s":return r*dg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(pht,"parse");function fht(t){var e=Math.abs(t);return e>=om?Math.round(t/om)+"d":e>=fg?Math.round(t/fg)+"h":e>=pg?Math.round(t/pg)+"m":e>=dg?Math.round(t/dg)+"s":t+"ms"}i(fht,"fmtShort");function mht(t){var e=Math.abs(t);return e>=om?gT(t,e,om,"day"):e>=fg?gT(t,e,fg,"hour"):e>=pg?gT(t,e,pg,"minute"):e>=dg?gT(t,e,dg,"second"):t+" ms"}i(mht,"fmtLong");function gT(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(gT,"plural")});var Dz=S((Zlr,gAe)=>{function hht(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=AAe(),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(_==="%%")return"%";b++;let Y=r.formatters[v];if(typeof Y=="function"){let Qe=y[b];_=Y.call(E,Qe),y.splice(b,1),b--}return _}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return i(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,h=r.enabled(d)),h),"get"),set:i(y=>{f=y},"set")}),typeof r.init=="function"&&r.init(A),A}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{To.formatArgs=ght;To.save=yht;To.load=Eht;To.useColors=Aht;To.storage=Cht();To.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`."))}})();To.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 Aht(){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(Aht,"useColors");function ght(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+yT.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(ght,"formatArgs");To.log=console.debug||console.log||(()=>{});function yht(t){try{t?To.storage.setItem("debug",t):To.storage.removeItem("debug")}catch{}}i(yht,"save");function Eht(){let t;try{t=To.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(Eht,"load");function Cht(){try{return localStorage}catch{}}i(Cht,"localstorage");yT.exports=Dz()(To);var{formatters:Iht}=yT.exports;Iht.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var CAe=S((rur,EAe)=>{"use strict";EAe.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 Sht=require("os"),IAe=require("tty"),hi=CAe(),{env:on}=process,Pd;hi("no-color")||hi("no-colors")||hi("color=false")||hi("color=never")?Pd=0:(hi("color")||hi("colors")||hi("color=true")||hi("color=always"))&&(Pd=1);"FORCE_COLOR"in on&&(on.FORCE_COLOR==="true"?Pd=1:on.FORCE_COLOR==="false"?Pd=0:Pd=on.FORCE_COLOR.length===0?1:Math.min(parseInt(on.FORCE_COLOR,10),3));function kz(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(kz,"translateLevel");function Oz(t,e){if(Pd===0)return 0;if(hi("color=16m")||hi("color=full")||hi("color=truecolor"))return 3;if(hi("color=256"))return 2;if(t&&!e&&Pd===void 0)return 0;let r=Pd||0;if(on.TERM==="dumb")return r;if(process.platform==="win32"){let n=Sht.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in on)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in on)||on.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in on)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(on.TEAMCITY_VERSION)?1:0;if(on.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in on){let n=parseInt((on.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(on.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(on.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(on.TERM)||"COLORTERM"in on?1:r}i(Oz,"supportsColor");function wht(t){let e=Oz(t,t&&t.isTTY);return kz(e)}i(wht,"getSupportLevel");SAe.exports={supportsColor:wht,stdout:kz(Oz(!0,IAe.isatty(1))),stderr:kz(Oz(!0,IAe.isatty(2)))}});var bAe=S((Nn,CT)=>{var xht=require("tty"),ET=require("util");Nn.init=_ht;Nn.log=Nht;Nn.formatArgs=Bht;Nn.save=Tht;Nn.load=Pht;Nn.useColors=bht;Nn.destroy=ET.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Nn.colors=[6,2,3,4,5,1];try{let t=wAe();t&&(t.stderr||t).level>=2&&(Nn.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{}Nn.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 bht(){return"colors"in Nn.inspectOpts?!!Nn.inspectOpts.colors:xht.isatty(process.stderr.fd)}i(bht,"useColors");function Bht(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())}};Rae.exports=j$});var II=S((kZt,vae)=>{"use strict";var Tae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ntt}=at(),stt=xA();_ae()===void 0&&Pae(new stt);function Pae(t){if(!t||typeof t.dispatch!="function")throw new ntt("Argument agent must implement Agent");Object.defineProperty(globalThis,Tae,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(Pae,"setGlobalDispatcher");function _ae(){return globalThis[Tae]}i(_ae,"getGlobalDispatcher");vae.exports={setGlobalDispatcher:Pae,getGlobalDispatcher:_ae}});var yR=S((MZt,Qae)=>{"use strict";Qae.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 kae=S((UZt,Dae)=>{"use strict";var ott=KB();Dae.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 ott(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var Lae=S(($Zt,Oae)=>{"use strict";var itt=cR();Oae.exports=t=>e=>i(function(n,s){return e(n,new itt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var Fae=S((HZt,Mae)=>{"use strict";var att=Je(),{InvalidArgumentError:ctt,RequestAbortedError:ltt}=at(),utt=yR(),K$=class extends utt{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 ctt("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=att.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new ltt(`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 dtt({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new K$({maxSize:o},s);return e(n,a)},"Intercept")}i(dtt,"createDumpInterceptor");Mae.exports=dtt});var $ae=S((VZt,qae)=>{"use strict";var{isIP:ptt}=require("node:net"),{lookup:ftt}=require("node:dns"),mtt=yR(),{InvalidArgumentError:QA,InformationalError:htt}=at(),Uae=Math.pow(2,31)-1,X$=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 htt("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){ftt(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===Uae?(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===Uae?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 Z$(this,e,r)}},Z$=class extends mtt{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}}};qae.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 X$(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return ptt(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 kf=S((JZt,Yae)=>{"use strict";var{kConstruct:Att}=Ht(),{kEnumerableProperty:DA}=Je(),{iteratorMixin:gtt,isValidHeaderName:SI,isValidHeaderValue:Hae}=ho(),{webidl:nt}=bn(),eG=require("node:assert"),ER=require("node:util"),Or=Symbol("headers map"),Eo=Symbol("headers map sorted");function Gae(t){return t===10||t===13||t===9||t===32}i(Gae,"isHTTPWhiteSpaceCharCode");function zae(t){let e=0,r=t.length;for(;r>e&&Gae(t.charCodeAt(r-1));)--r;for(;r>e&&Gae(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(zae,"headerValueNormalize");function Vae(t,e){if(Array.isArray(e))for(let r=0;r>","record"]})}i(Vae,"fill");function tG(t,e,r){if(r=zae(r),SI(e)){if(!Hae(r))throw nt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Jae(t)==="immutable")throw new TypeError("immutable");return rG(t).append(e,r,!1)}i(tG,"appendHeader");function Wae(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[Or])r[n++]=[s,o],eG(o!==null);return r.sort(Wae)}}},sa=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){nt.util.markAsUncloneable(this),e!==Att&&(this.#t=new CR,this.#e="none",e!==void 0&&(e=nt.converters.HeadersInit(e,"Headers contructor","init"),Vae(this,e)))}append(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),tG(this,e,r)}delete(e){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.delete"),e=nt.converters.ByteString(e,"Headers.delete","name"),!SI(e))throw nt.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){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=nt.converters.ByteString(e,r,"name"),!SI(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=nt.converters.ByteString(e,r,"name"),!SI(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),r=zae(r),SI(e)){if(!Hae(r))throw nt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){nt.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[Eo](){if(this.#t[Eo])return this.#t[Eo];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[Eo]=r;for(let s=0;s>"](t,e,r,n.bind(t)):nt.converters["record"](t,e,r)}throw nt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};Yae.exports={fill:Vae,compareHeaderName:Wae,Headers:sa,HeadersList:CR,getHeadersGuard:Jae,setHeadersGuard:ytt,setHeadersList:Ett,getHeadersList:rG}});var xI=S((jZt,ace)=>{"use strict";var{Headers:tce,HeadersList:jae,fill:Ctt,getHeadersGuard:Itt,setHeadersGuard:rce,setHeadersList:nce}=kf(),{extractBody:Kae,cloneBody:Stt,mixinBody:wtt,hasFinalizationRegistry:sce,streamRegistry:oce,bodyUnusable:xtt}=hA(),nG=Je(),Xae=require("node:util"),{kEnumerableProperty:Co}=nG,{isValidReasonPhrase:btt,isCancelled:Btt,isAborted:Rtt,isBlobLike:Ntt,serializeJavascriptValueToJSONString:Ttt,isErrorLike:Ptt,isomorphicEncode:_tt,environmentSettingsObject:vtt}=ho(),{redirectStatusSet:Qtt,nullBodyStatus:Dtt}=VC(),{kState:Vt,kHeaders:ou}=td(),{webidl:$e}=bn(),{FormData:ktt}=XC(),{URLSerializer:Zae}=_s(),{kConstruct:SR}=Ht(),sG=require("node:assert"),{types:Ott}=require("node:util"),Ltt=new TextEncoder("utf-8"),Of=class t{static{i(this,"Response")}static error(){return wI(wR(),"immutable")}static json(e,r={}){$e.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=$e.converters.ResponseInit(r));let n=Ltt.encode(Ttt(e)),s=Kae(n),o=wI(kA({}),"response");return ece(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){$e.argumentLengthCheck(arguments,1,"Response.redirect"),e=$e.converters.USVString(e),r=$e.converters["unsigned short"](r);let n;try{n=new URL(e,vtt.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!Qtt.has(r))throw new RangeError(`Invalid status code ${r}`);let s=wI(kA({}),"immutable");s[Vt].status=r;let o=_tt(Zae(n));return s[Vt].headersList.append("location",o,!0),s}constructor(e=null,r={}){if($e.util.markAsUncloneable(this),e===SR)return;e!==null&&(e=$e.converters.BodyInit(e)),r=$e.converters.ResponseInit(r),this[Vt]=kA({}),this[ou]=new tce(SR),rce(this[ou],"response"),nce(this[ou],this[Vt].headersList);let n=null;if(e!=null){let[s,o]=Kae(e);n={body:s,type:o}}ece(this,r,n)}get type(){return $e.brandCheck(this,t),this[Vt].type}get url(){$e.brandCheck(this,t);let e=this[Vt].urlList,r=e[e.length-1]??null;return r===null?"":Zae(r,!0)}get redirected(){return $e.brandCheck(this,t),this[Vt].urlList.length>1}get status(){return $e.brandCheck(this,t),this[Vt].status}get ok(){return $e.brandCheck(this,t),this[Vt].status>=200&&this[Vt].status<=299}get statusText(){return $e.brandCheck(this,t),this[Vt].statusText}get headers(){return $e.brandCheck(this,t),this[ou]}get body(){return $e.brandCheck(this,t),this[Vt].body?this[Vt].body.stream:null}get bodyUsed(){return $e.brandCheck(this,t),!!this[Vt].body&&nG.isDisturbed(this[Vt].body.stream)}clone(){if($e.brandCheck(this,t),xtt(this))throw $e.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=oG(this[Vt]);return sce&&this[Vt].body?.stream&&oce.register(this,new WeakRef(this[Vt].body.stream)),wI(e,Itt(this[ou]))}[Xae.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 ${Xae.formatWithOptions(r,n)}`}};wtt(Of);Object.defineProperties(Of.prototype,{type:Co,url:Co,status:Co,ok:Co,redirected:Co,statusText:Co,headers:Co,clone:Co,body:Co,bodyUsed:Co,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Of,{json:Co,redirect:Co,error:Co});function oG(t){if(t.internalResponse)return ice(oG(t.internalResponse),t.type);let e=kA({...t,body:null});return t.body!=null&&(e.body=Stt(e,t.body)),e}i(oG,"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 jae(t?.headersList):new jae,urlList:t?.urlList?[...t.urlList]:[]}}i(kA,"makeResponse");function wR(t){let e=Ptt(t);return kA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(wR,"makeNetworkError");function Mtt(t){return t.type==="error"&&t.status===0}i(Mtt,"isNetworkError");function IR(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 sG(!(n in e)),r[n]=s,!0}})}i(IR,"makeFilteredResponse");function ice(t,e){if(e==="basic")return IR(t,{type:"basic",headersList:t.headersList});if(e==="cors")return IR(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return IR(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return IR(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});sG(!1)}i(ice,"filterResponse");function Ftt(t,e=null){return sG(Btt(t)),Rtt(t)?wR(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):wR(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(Ftt,"makeAppropriateNetworkError");function ece(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&&!btt(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[Vt].status=e.status),"statusText"in e&&e.statusText!=null&&(t[Vt].statusText=e.statusText),"headers"in e&&e.headers!=null&&Ctt(t[ou],e.headers),r){if(Dtt.includes(t.status))throw $e.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[Vt].body=r.body,r.type!=null&&!t[Vt].headersList.contains("content-type",!0)&&t[Vt].headersList.append("content-type",r.type,!0)}}i(ece,"initializeResponse");function wI(t,e){let r=new Of(SR);return r[Vt]=t,r[ou]=new tce(SR),nce(r[ou],t.headersList),rce(r[ou],e),sce&&t.body?.stream&&oce.register(r,new WeakRef(t.body.stream)),r}i(wI,"fromInnerResponse");$e.converters.ReadableStream=$e.interfaceConverter(ReadableStream);$e.converters.FormData=$e.interfaceConverter(ktt);$e.converters.URLSearchParams=$e.interfaceConverter(URLSearchParams);$e.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?$e.converters.USVString(t,e,r):Ntt(t)?$e.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Ott.isArrayBuffer(t)?$e.converters.BufferSource(t,e,r):nG.isFormDataLike(t)?$e.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?$e.converters.URLSearchParams(t,e,r):$e.converters.DOMString(t,e,r)};$e.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?$e.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:$e.converters.XMLHttpRequestBodyInit(t,e,r)};$e.converters.ResponseInit=$e.dictionaryConverter([{key:"status",converter:$e.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:$e.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:$e.converters.HeadersInit}]);ace.exports={isNetworkError:Mtt,makeNetworkError:wR,makeResponse:kA,makeAppropriateNetworkError:Ftt,filterResponse:ice,Response:Of,cloneResponse:oG,fromInnerResponse:wI}});var dce=S((XZt,uce)=>{"use strict";var{kConnected:cce,kSize:lce}=Ht(),iG=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[cce]===0&&this.value[lce]===0?void 0:this.value}},aG=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[cce]===0&&e[lce]===0&&this.finalizer(r)})}unregister(e){}};uce.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:iG,FinalizationRegistry:aG}):{WeakRef,FinalizationRegistry}}});var OA=S((eer,Bce)=>{"use strict";var{extractBody:Utt,mixinBody:qtt,cloneBody:$tt,bodyUnusable:pce}=hA(),{Headers:Ice,fill:Gtt,HeadersList:RR,setHeadersGuard:lG,getHeadersGuard:Htt,setHeadersList:Sce,getHeadersList:fce}=kf(),{FinalizationRegistry:ztt}=dce()(),bR=Je(),mce=require("node:util"),{isValidHTTPToken:Vtt,sameOrigin:hce,environmentSettingsObject:xR}=ho(),{forbiddenMethodsSet:Wtt,corsSafeListedMethodsSet:Jtt,referrerPolicy:Ytt,requestRedirect:jtt,requestMode:Ktt,requestCredentials:Xtt,requestCache:Ztt,requestDuplex:ert}=VC(),{kEnumerableProperty:Lr,normalizedMethodRecordsBase:trt,normalizedMethodRecords:rrt}=bR,{kHeaders:Io,kSignal:BR,kState:Ot,kDispatcher:cG}=td(),{webidl:Ee}=bn(),{URLSerializer:nrt}=_s(),{kConstruct:NR}=Ht(),srt=require("node:assert"),{getMaxListeners:Ace,setMaxListeners:gce,getEventListeners:ort,defaultMaxListeners:yce}=require("node:events"),irt=Symbol("abortController"),wce=new ztt(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),TR=new WeakMap;function Ece(t){return e;function e(){let r=t.deref();if(r!==void 0){wce.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=TR.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()}TR.delete(r.signal)}}}}i(Ece,"buildAbort");var Cce=!1,pd=class t{static{i(this,"Request")}constructor(e,r={}){if(Ee.util.markAsUncloneable(this),e===NR)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=xR.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[cG]=r.dispatcher;let E;try{E=new URL(e,a)}catch(I){throw new TypeError("Failed to parse URL from "+e,{cause:I})}if(E.username||E.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=PR({urlList:[E]}),o="cors"}else this[cG]=r.dispatcher||e[cG],srt(e instanceof t),s=e[Ot],c=e[BR];let l=xR.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&hce(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=PR({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:xR.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 E=r.referrer;if(E==="")s.referrer="no-referrer";else{let I;try{I=new URL(E,a)}catch(x){throw new TypeError(`Referrer "${E}" is not a valid URL.`,{cause:x})}I.protocol==="about:"&&I.hostname==="client"||l&&!hce(I,xR.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 E=r.method,I=rrt[E];if(I!==void 0)s.method=I;else{if(!Vtt(E))throw new TypeError(`'${E}' is not a valid HTTP method.`);let x=E.toUpperCase();if(Wtt.has(x))throw new TypeError(`'${E}' HTTP method is unsupported.`);E=trt[x]??E,s.method=E}!Cce&&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"}),Cce=!0)}r.signal!==void 0&&(c=r.signal),this[Ot]=s;let f=new AbortController;if(this[BR]=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[irt]=f;let E=new WeakRef(f),I=Ece(E);try{(typeof Ace=="function"&&Ace(c)===yce||ort(c,"abort").length>=yce)&&gce(1500,c)}catch{}bR.addAbortListener(c,I),wce.register(f,{signal:c,abort:I},I)}}if(this[Io]=new Ice(NR),Sce(this[Io],s.headersList),lG(this[Io],"request"),p==="no-cors"){if(!Jtt.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);lG(this[Io],"request-no-cors")}if(d){let E=fce(this[Io]),I=r.headers!==void 0?r.headers:new RR(E);if(E.clear(),I instanceof RR){for(let{name:x,value:b}of I.rawValues())E.append(x,b,!1);E.cookies=I.cookies}else Gtt(this[Io],I)}let m=e instanceof t?e[Ot].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 h=null;if(r.body!=null){let[E,I]=Utt(r.body,s.keepalive);h=E,I&&!fce(this[Io]).contains("content-type",!0)&&this[Io].append("content-type",I)}let A=h??m;if(A!=null&&A.source==null){if(h!=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 y=A;if(h==null&&m!=null){if(pce(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let E=new TransformStream;m.stream.pipeThrough(E),y={source:m.source,length:m.length,stream:E.readable}}this[Ot].body=y}get method(){return Ee.brandCheck(this,t),this[Ot].method}get url(){return Ee.brandCheck(this,t),nrt(this[Ot].url)}get headers(){return Ee.brandCheck(this,t),this[Io]}get destination(){return Ee.brandCheck(this,t),this[Ot].destination}get referrer(){return Ee.brandCheck(this,t),this[Ot].referrer==="no-referrer"?"":this[Ot].referrer==="client"?"about:client":this[Ot].referrer.toString()}get referrerPolicy(){return Ee.brandCheck(this,t),this[Ot].referrerPolicy}get mode(){return Ee.brandCheck(this,t),this[Ot].mode}get credentials(){return this[Ot].credentials}get cache(){return Ee.brandCheck(this,t),this[Ot].cache}get redirect(){return Ee.brandCheck(this,t),this[Ot].redirect}get integrity(){return Ee.brandCheck(this,t),this[Ot].integrity}get keepalive(){return Ee.brandCheck(this,t),this[Ot].keepalive}get isReloadNavigation(){return Ee.brandCheck(this,t),this[Ot].reloadNavigation}get isHistoryNavigation(){return Ee.brandCheck(this,t),this[Ot].historyNavigation}get signal(){return Ee.brandCheck(this,t),this[BR]}get body(){return Ee.brandCheck(this,t),this[Ot].body?this[Ot].body.stream:null}get bodyUsed(){return Ee.brandCheck(this,t),!!this[Ot].body&&bR.isDisturbed(this[Ot].body.stream)}get duplex(){return Ee.brandCheck(this,t),"half"}clone(){if(Ee.brandCheck(this,t),pce(this))throw new TypeError("unusable");let e=xce(this[Ot]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=TR.get(this.signal);n===void 0&&(n=new Set,TR.set(this.signal,n));let s=new WeakRef(r);n.add(s),bR.addAbortListener(r.signal,Ece(s))}return bce(e,r.signal,Htt(this[Io]))}[mce.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 ${mce.formatWithOptions(r,n)}`}};qtt(pd);function PR(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 RR(t.headersList):new RR}}i(PR,"makeRequest");function xce(t){let e=PR({...t,body:null});return t.body!=null&&(e.body=$tt(e,t.body)),e}i(xce,"cloneRequest");function bce(t,e,r){let n=new pd(NR);return n[Ot]=t,n[BR]=e,n[Io]=new Ice(NR),Sce(n[Io],t.headersList),lG(n[Io],r),n}i(bce,"fromInnerRequest");Object.defineProperties(pd.prototype,{method:Lr,url:Lr,headers:Lr,redirect:Lr,clone:Lr,signal:Lr,duplex:Lr,destination:Lr,body:Lr,bodyUsed:Lr,isHistoryNavigation:Lr,isReloadNavigation:Lr,keepalive:Lr,integrity:Lr,cache:Lr,credentials:Lr,attribute:Lr,referrerPolicy:Lr,referrer:Lr,mode:Lr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Ee.converters.Request=Ee.interfaceConverter(pd);Ee.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Ee.converters.USVString(t,e,r):t instanceof pd?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:Ytt},{key:"mode",converter:Ee.converters.DOMString,allowedValues:Ktt},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:Xtt},{key:"cache",converter:Ee.converters.DOMString,allowedValues:Ztt},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:jtt},{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:ert},{key:"dispatcher",converter:Ee.converters.any}]);Bce.exports={Request:pd,makeRequest:PR,fromInnerRequest:bce,cloneRequest:xce}});var BI=S((rer,qce)=>{"use strict";var{makeNetworkError:gt,makeAppropriateNetworkError:_R,filterResponse:uG,makeResponse:vR,fromInnerResponse:art}=xI(),{HeadersList:Rce}=kf(),{Request:crt,cloneRequest:lrt}=OA(),fd=require("node:zlib"),{bytesMatch:urt,makePolicyContainer:drt,clonePolicyContainer:prt,requestBadPort:frt,TAOCheck:mrt,appendRequestOriginHeader:hrt,responseLocationURL:Art,requestCurrentURL:ac,setRequestReferrerPolicyOnRedirect:grt,tryUpgradeRequestToAPotentiallyTrustworthyURL:yrt,createOpaqueTimingInfo:hG,appendFetchMetadata:Ert,corsCheck:Crt,crossOriginResourcePolicyCheck:Irt,determineRequestsReferrer:Srt,coarsenedSharedCurrentTime:bI,createDeferredPromise:wrt,isBlobLike:xrt,sameOrigin:mG,isCancelled:Lf,isAborted:Nce,isErrorLike:brt,fullyReadBody:Brt,readableStreamClose:Rrt,isomorphicEncode:QR,urlIsLocal:Nrt,urlIsHttpHttpsScheme:AG,urlHasHttpsScheme:Trt,clampAndCoarsenConnectionTimingInfo:Prt,simpleRangeHeaderValue:_rt,buildContentRange:vrt,createInflate:Qrt,extractMimeType:Drt}=ho(),{kState:vce,kDispatcher:krt}=td(),Mf=require("node:assert"),{safelyExtractBody:gG,extractBody:Tce}=hA(),{redirectStatusSet:Qce,nullBodyStatus:Dce,safeMethodsSet:Ort,requestBodyHeader:Lrt,subresourceSet:Mrt}=VC(),Frt=require("node:events"),{Readable:Urt,pipeline:qrt,finished:$rt}=require("node:stream"),{addAbortListener:Grt,isErrored:Hrt,isReadable:DR,bufferToLowerCasedHeaderName:Pce}=Je(),{dataURLProcessor:zrt,serializeAMimeType:Vrt,minimizeSupportedMimeType:Wrt}=_s(),{getGlobalDispatcher:Jrt}=II(),{webidl:Yrt}=bn(),{STATUS_CODES:jrt}=require("node:http"),Krt=["GET","HEAD"],Xrt=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",dG,kR=class extends Frt{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 Zrt(t){kce(t,"fetch")}i(Zrt,"handleFetchDone");function ent(t,e=void 0){Yrt.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=wrt(),n;try{n=new crt(t,e)}catch(d){return r.reject(d),r.promise}let s=n[vce];if(n.signal.aborted)return pG(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 Grt(n.signal,()=>{c=!0,Mf(l!=null),l.abort(n.signal.reason);let d=a?.deref();pG(r,s,d,n.signal.reason)}),l=Lce({request:s,processResponseEndOfBody:Zrt,processResponse:i(d=>{if(!c){if(d.aborted){pG(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(art(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[krt]}),r.promise}i(ent,"fetch");function kce(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;AG(r)&&n!==null&&(t.timingAllowPassed||(n=hG({startTime:n.startTime}),s=""),n.endTime=bI(),t.timingInfo=n,Oce(n,r.href,e,globalThis,s))}i(kce,"finalizeAndReportTiming");var Oce=performance.markResourceTiming;function pG(t,e,r,n){if(t&&t.reject(n),e.body!=null&&DR(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[vce];s.body!=null&&DR(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(pG,"abortFetch");function Lce({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=Jrt()}){Mf(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=bI(u),p=hG({startTime:d}),f={controller:new kR(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return Mf(!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=prt(t.client.policyContainer):t.policyContainer=drt()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,Mrt.has(t.destination),Mce(f).catch(m=>{f.controller.terminate(m)}),f.controller}i(Lce,"fetching");async function Mce(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!Nrt(ac(r))&&(n=gt("local URLs only")),yrt(r),frt(r)==="blocked"&&(n=gt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=Srt(r)),n===null&&(n=await(async()=>{let o=ac(r);return mG(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await _ce(t)):r.mode==="same-origin"?gt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?gt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await _ce(t)):AG(ac(r))?(r.responseTainting="cors",await Fce(t)):gt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=uG(n,"basic"):r.responseTainting==="cors"?n=uG(n,"cors"):r.responseTainting==="opaque"?n=uG(n,"opaque"):Mf(!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=gt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||Dce.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>fG(t,gt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!urt(c,r.integrity)){o("integrity mismatch");return}n.body=gG(c)[0],fG(t,n)},"processBody");await Brt(n.body,a,o)}else fG(t,n)}i(Mce,"mainFetch");function _ce(t){if(Lf(t)&&t.request.redirectCount===0)return Promise.resolve(_R(t));let{request:e}=t,{protocol:r}=ac(e);switch(r){case"about:":return Promise.resolve(gt("about scheme is not supported"));case"blob:":{dG||(dG=require("node:buffer").resolveObjectURL);let n=ac(e);if(n.search.length!==0)return Promise.resolve(gt("NetworkError when attempting to fetch resource."));let s=dG(n.toString());if(e.method!=="GET"||!xrt(s))return Promise.resolve(gt("invalid method"));let o=vR(),a=s.size,c=QR(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=_rt(u,!0);if(d==="failure")return Promise.resolve(gt("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(gt("Range start is greater than the blob's size."));(f===null||f>=a)&&(f=a-1)}let m=s.slice(p,f,l),h=Tce(m);o.body=h[0];let A=QR(`${m.size}`),y=vrt(p,f,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",A,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",y,!0)}else{let u=Tce(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=ac(e),s=zrt(n);if(s==="failure")return Promise.resolve(gt("failed to fetch the data URL"));let o=Vrt(s.mimeType);return Promise.resolve(vR({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:gG(s.body)[0]}))}case"file:":return Promise.resolve(gt("not implemented... yet..."));case"http:":case"https:":return Fce(t).catch(n=>gt(n));default:return Promise.resolve(gt("unknown scheme"))}}i(_ce,"schemeFetch");function tnt(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(tnt,"finalizeResponse");function fG(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=hG(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=Drt(e.headersList);d!=="failure"&&(l.contentType=Wrt(d))}t.request.initiatorType!=null&&Oce(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():$rt(s.body.stream,()=>{n()})}i(fG,"fetchFinale");async function Fce(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 Uce(t),e.responseTainting==="cors"&&Crt(e,r)==="failure")return gt("cors failure");mrt(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&Irt(e.origin,e.client,e.destination,n)==="blocked"?gt("blocked"):(Qce.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=gt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await rnt(t,r):Mf(!1)),r.timingInfo=s,r)}i(Fce,"httpFetch");function rnt(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=Art(n,ac(r).hash),s==null)return e}catch(a){return Promise.resolve(gt(a))}if(!AG(s))return Promise.resolve(gt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(gt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!mG(r,s))return Promise.resolve(gt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(gt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(gt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!Krt.includes(r.method)){r.method="GET",r.body=null;for(let a of Lrt)r.headersList.delete(a)}mG(ac(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&&(Mf(r.body.source!=null),r.body=gG(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=bI(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),grt(r,n),Mce(t,!0)}i(rnt,"httpRedirectFetch");async function Uce(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=lrt(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=QR(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",QR(o.referrer.href),!0),hrt(o),Ert(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",Xrt),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)||(Trt(ac(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 gt("only if cached");let f=await nnt(s,u,r);!Ort.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"?gt():Lf(t)?_R(t):gt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Lf(t))return _R(t);t.controller.connection.destroy(),a=await Uce(t,e,!0)}return a}i(Uce,"httpNetworkOrCacheFetch");async function nnt(t,e=!1,r=!1){Mf(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(h,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(h??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 h=i(async function*(E){Lf(t)||(yield E,t.processRequestBodyChunkLength?.(E.byteLength))},"processBodyChunk"),A=i(()=>{Lf(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),y=i(E=>{Lf(t)||(E.name==="AbortError"?t.controller.abort():t.controller.terminate(E))},"processBodyError");l=(async function*(){try{for await(let E of n.body.stream)yield*h(E);A()}catch(E){y(E)}})()}try{let{body:h,status:A,statusText:y,headersList:E,socket:I}=await m({body:l});if(I)s=vR({status:A,statusText:y,headersList:E,socket:I});else{let x=h[Symbol.asyncIterator]();t.controller.next=()=>x.next(),s=vR({status:A,statusText:y,headersList:E})}}catch(h){return h.name==="AbortError"?(t.controller.connection.destroy(),_R(t,h)):gt(h)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(h=>{Lf(t)||t.controller.abort(h)},"cancelAlgorithm"),p=new ReadableStream({async start(h){t.controller.controller=h},async pull(h){await u(h)},async cancel(h){await d(h)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.resume||t.controller.on("terminated",f),t.controller.resume=async()=>{for(;;){let h,A;try{let{done:E,value:I}=await t.controller.next();if(Nce(t))break;h=E?void 0:I}catch(E){t.controller.ended&&!o.encodedBodySize?h=void 0:(h=E,A=!0)}if(h===void 0){Rrt(t.controller.controller),tnt(t,s);return}if(o.decodedBodySize+=h?.byteLength??0,A){t.controller.terminate(h);return}let y=new Uint8Array(h);if(y.byteLength&&t.controller.controller.enqueue(y),Hrt(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function f(h){Nce(t)?(s.aborted=!0,DR(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):DR(p)&&t.controller.controller.error(new TypeError("terminated",{cause:brt(h)?h:void 0})),t.controller.connection.destroy()}return i(f,"onAborted"),s;function m({body:h}){let A=ac(n),y=t.controller.dispatcher;return new Promise((E,I)=>y.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:y.isMockActive?n.body&&(n.body.source||n.body.stream):h,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=Prt(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=bI(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=bI(t.crossOriginIsolatedCapability)},onHeaders(x,b,N,_){if(x<200)return;let v="",Y=new Rce;for(let ce=0;ceBe)return this.abort(new Error(`too many content-encodings in response: ${Tt.length}, maximum allowed is ${Be}`)),!0;for(let oe=Tt.length-1;oe>=0;--oe){let Q=Tt[oe].trim();if(Q==="x-gzip"||Q==="gzip")Qe.push(fd.createGunzip({flush:fd.constants.Z_SYNC_FLUSH,finishFlush:fd.constants.Z_SYNC_FLUSH}));else if(Q==="deflate")Qe.push(Qrt({flush:fd.constants.Z_SYNC_FLUSH,finishFlush:fd.constants.Z_SYNC_FLUSH}));else if(Q==="br")Qe.push(fd.createBrotliDecompress({flush:fd.constants.BROTLI_OPERATION_FLUSH,finishFlush:fd.constants.BROTLI_OPERATION_FLUSH}));else{Qe.length=0;break}}}this.body=new Urt({read:N});let De=this.onError.bind(this);return E({status:x,statusText:_,headersList:Y,body:Qe.length?qrt(this.body,...Qe,ce=>{ce&&this.onError(ce)}).on("error",De):this.body.on("error",De)}),!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 _=new Rce;for(let v=0;v{"use strict";$ce.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 Hce=S((oer,Gce)=>{"use strict";var{webidl:So}=bn(),OR=Symbol("ProgressEvent state"),EG=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=So.converters.DOMString(e,"ProgressEvent constructor","type"),r=So.converters.ProgressEventInit(r??{}),super(e,r),this[OR]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return So.brandCheck(this,t),this[OR].lengthComputable}get loaded(){return So.brandCheck(this,t),this[OR].loaded}get total(){return So.brandCheck(this,t),this[OR].total}};So.converters.ProgressEventInit=So.dictionaryConverter([{key:"lengthComputable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:So.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:So.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);Gce.exports={ProgressEvent:EG}});var Vce=S((aer,zce)=>{"use strict";function snt(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(snt,"getEncoding");zce.exports={getEncoding:snt}});var ele=S((ler,Zce)=>{"use strict";var{kState:LA,kError:CG,kResult:Wce,kAborted:RI,kLastProgressEventFired:IG}=yG(),{ProgressEvent:ont}=Hce(),{getEncoding:Jce}=Vce(),{serializeAMimeType:int,parseMIMEType:Yce}=_s(),{types:ant}=require("node:util"),{StringDecoder:jce}=require("string_decoder"),{btoa:Kce}=require("node:buffer"),cnt={enumerable:!0,writable:!1,configurable:!1};function lnt(t,e,r,n){if(t[LA]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[LA]="loading",t[Wce]=null,t[CG]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[RI];)try{let{done:u,value:d}=await c;if(l&&!t[RI]&&queueMicrotask(()=>{md("loadstart",t)}),l=!1,!u&&ant.isUint8Array(d))a.push(d),(t[IG]===void 0||Date.now()-t[IG]>=50)&&!t[RI]&&(t[IG]=Date.now(),queueMicrotask(()=>{md("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[LA]="done";try{let p=unt(a,r,e.type,n);if(t[RI])return;t[Wce]=p,md("load",t)}catch(p){t[CG]=p,md("error",t)}t[LA]!=="loading"&&md("loadend",t)});break}}catch(u){if(t[RI])return;queueMicrotask(()=>{t[LA]="done",t[CG]=u,md("error",t),t[LA]!=="loading"&&md("loadend",t)});break}})()}i(lnt,"readOperation");function md(t,e){let r=new ont(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(md,"fireAProgressEvent");function unt(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=Yce(r||"application/octet-stream");o!=="failure"&&(s+=int(o)),s+=";base64,";let a=new jce("latin1");for(let c of t)s+=Kce(a.write(c));return s+=Kce(a.end()),s}case"Text":{let s="failure";if(n&&(s=Jce(n)),s==="failure"&&r){let o=Yce(r);o!=="failure"&&(s=Jce(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),dnt(t,s)}case"ArrayBuffer":return Xce(t).buffer;case"BinaryString":{let s="",o=new jce("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(unt,"packageData");function dnt(t,e){let r=Xce(t),n=pnt(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(dnt,"decode");function pnt(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(pnt,"BOMSniffing");function Xce(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(Xce,"combineByteSequences");Zce.exports={staticPropertyDescriptors:cnt,readOperation:lnt,fireAProgressEvent:md}});var sle=S((der,nle)=>{"use strict";var{staticPropertyDescriptors:MA,readOperation:LR,fireAProgressEvent:tle}=ele(),{kState:Ff,kError:rle,kResult:MR,kEvents:dt,kAborted:fnt}=yG(),{webidl:St}=bn(),{kEnumerableProperty:Ds}=Je(),oa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[Ff]="empty",this[MR]=null,this[rle]=null,this[dt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=St.converters.Blob(e,{strict:!1}),LR(this,e,"ArrayBuffer")}readAsBinaryString(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=St.converters.Blob(e,{strict:!1}),LR(this,e,"BinaryString")}readAsText(e,r=void 0){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=St.converters.Blob(e,{strict:!1}),r!==void 0&&(r=St.converters.DOMString(r,"FileReader.readAsText","encoding")),LR(this,e,"Text",r)}readAsDataURL(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=St.converters.Blob(e,{strict:!1}),LR(this,e,"DataURL")}abort(){if(this[Ff]==="empty"||this[Ff]==="done"){this[MR]=null;return}this[Ff]==="loading"&&(this[Ff]="done",this[MR]=null),this[fnt]=!0,tle("abort",this),this[Ff]!=="loading"&&tle("loadend",this)}get readyState(){switch(St.brandCheck(this,t),this[Ff]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return St.brandCheck(this,t),this[MR]}get error(){return St.brandCheck(this,t),this[rle]}get onloadend(){return St.brandCheck(this,t),this[dt].loadend}set onloadend(e){St.brandCheck(this,t),this[dt].loadend&&this.removeEventListener("loadend",this[dt].loadend),typeof e=="function"?(this[dt].loadend=e,this.addEventListener("loadend",e)):this[dt].loadend=null}get onerror(){return St.brandCheck(this,t),this[dt].error}set onerror(e){St.brandCheck(this,t),this[dt].error&&this.removeEventListener("error",this[dt].error),typeof e=="function"?(this[dt].error=e,this.addEventListener("error",e)):this[dt].error=null}get onloadstart(){return St.brandCheck(this,t),this[dt].loadstart}set onloadstart(e){St.brandCheck(this,t),this[dt].loadstart&&this.removeEventListener("loadstart",this[dt].loadstart),typeof e=="function"?(this[dt].loadstart=e,this.addEventListener("loadstart",e)):this[dt].loadstart=null}get onprogress(){return St.brandCheck(this,t),this[dt].progress}set onprogress(e){St.brandCheck(this,t),this[dt].progress&&this.removeEventListener("progress",this[dt].progress),typeof e=="function"?(this[dt].progress=e,this.addEventListener("progress",e)):this[dt].progress=null}get onload(){return St.brandCheck(this,t),this[dt].load}set onload(e){St.brandCheck(this,t),this[dt].load&&this.removeEventListener("load",this[dt].load),typeof e=="function"?(this[dt].load=e,this.addEventListener("load",e)):this[dt].load=null}get onabort(){return St.brandCheck(this,t),this[dt].abort}set onabort(e){St.brandCheck(this,t),this[dt].abort&&this.removeEventListener("abort",this[dt].abort),typeof e=="function"?(this[dt].abort=e,this.addEventListener("abort",e)):this[dt].abort=null}};oa.EMPTY=oa.prototype.EMPTY=0;oa.LOADING=oa.prototype.LOADING=1;oa.DONE=oa.prototype.DONE=2;Object.defineProperties(oa.prototype,{EMPTY:MA,LOADING:MA,DONE:MA,readAsArrayBuffer:Ds,readAsBinaryString:Ds,readAsText:Ds,readAsDataURL:Ds,abort:Ds,readyState:Ds,result:Ds,error:Ds,onloadstart:Ds,onprogress:Ds,onload:Ds,onabort:Ds,onerror:Ds,onloadend:Ds,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(oa,{EMPTY:MA,LOADING:MA,DONE:MA});nle.exports={FileReader:oa}});var FR=S((fer,ole)=>{"use strict";ole.exports={kConstruct:Ht().kConstruct}});var cle=S((mer,ale)=>{"use strict";var mnt=require("node:assert"),{URLSerializer:ile}=_s(),{isValidHeaderName:hnt}=ho();function Ant(t,e,r=!1){let n=ile(t,r),s=ile(e,r);return n===s}i(Ant,"urlEquals");function gnt(t){mnt(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),hnt(r)&&e.push(r);return e}i(gnt,"getFieldValues");ale.exports={urlEquals:Ant,getFieldValues:gnt}});var dle=S((Aer,ule)=>{"use strict";var{kConstruct:ynt}=FR(),{urlEquals:Ent,getFieldValues:SG}=cle(),{kEnumerableProperty:Uf,isDisturbed:Cnt}=Je(),{webidl:ue}=bn(),{Response:Int,cloneResponse:Snt,fromInnerResponse:wnt}=xI(),{Request:iu,fromInnerRequest:xnt}=OA(),{kState:ia}=td(),{fetching:bnt}=BI(),{urlIsHttpHttpsScheme:UR,createDeferredPromise:FA,readAllBytes:Bnt}=ho(),wG=require("node:assert"),qR=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==ynt&&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.#s(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.#s(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 f of e){if(f===void 0)throw ue.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(f=ue.converters.RequestInfo(f),typeof f=="string")continue;let m=f[ia];if(!UR(m.url)||m.method!=="GET")throw ue.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let f of e){let m=new iu(f)[ia];if(!UR(m.url))throw ue.errors.exception({header:r,message:"Expected http/s scheme."});m.initiator="fetch",m.destination="subresource",s.push(m);let h=FA();o.push(bnt({request:m,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)h.reject(ue.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let y=SG(A.headersList.get("vary"));for(let E of y)if(E==="*"){h.reject(ue.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let I of o)I.abort();return}}},processResponseEndOfBody(A){if(A.aborted){h.reject(new DOMException("aborted","AbortError"));return}h.resolve(A)}})),n.push(h.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){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 iu?s=e[ia]:s=new iu(e)[ia],!UR(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[ia];if(o.status===206)throw ue.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let m=SG(o.headersList.get("vary"));for(let h of m)if(h==="*")throw ue.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(Cnt(o.body.stream)||o.body.stream.locked))throw ue.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=Snt(o),c=FA();if(o.body!=null){let h=o.body.stream.getReader();Bnt(h).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={}){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 iu){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return!1}else wG(typeof e=="string"),s=new iu(e)[ia];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={}){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 iu){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new iu(e)[ia]);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=xnt(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.#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);wG(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(!UR(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.#n(a.request);for(let u of c){let d=r.indexOf(u);wG(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=""),!Ent(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=SG(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 iu){if(s=e[ia],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new iu(e)[ia]);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=wnt(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(qR.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Uf,matchAll:Uf,add:Uf,addAll:Uf,put:Uf,delete:Uf,keys:Uf});var lle=[{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(lle);ue.converters.MultiCacheQueryOptions=ue.dictionaryConverter([...lle,{key:"cacheName",converter:ue.converters.DOMString}]);ue.converters.Response=ue.interfaceConverter(Int);ue.converters["sequence"]=ue.sequenceConverter(ue.converters.RequestInfo);ule.exports={Cache:qR}});var fle=S((yer,ple)=>{"use strict";var{kConstruct:NI}=FR(),{Cache:$R}=dle(),{webidl:Un}=bn(),{kEnumerableProperty:TI}=Je(),GR=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==NI&&Un.illegalConstructor(),Un.util.markAsUncloneable(this)}async match(e,r={}){if(Un.brandCheck(this,t),Un.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=Un.converters.RequestInfo(e),r=Un.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new $R(NI,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new $R(NI,n).match(e,r);if(o!==void 0)return o}}async has(e){Un.brandCheck(this,t);let r="CacheStorage.has";return Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){Un.brandCheck(this,t);let r="CacheStorage.open";if(Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new $R(NI,s)}let n=[];return this.#e.set(e,n),new $R(NI,n)}async delete(e){Un.brandCheck(this,t);let r="CacheStorage.delete";return Un.argumentLengthCheck(arguments,1,r),e=Un.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return Un.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(GR.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:TI,has:TI,open:TI,delete:TI,keys:TI});ple.exports={CacheStorage:GR}});var hle=S((Cer,mle)=>{"use strict";mle.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var BG=S((Ier,Ele)=>{"use strict";function Rnt(t){for(let e=0;e=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(Rnt,"isCTLExcludingHtab");function xG(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(xG,"validateCookieName");function bG(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(bG,"validateCookieValue");function gle(t){for(let e=0;e126||r===59)throw new Error("Invalid cookie path")}}i(gle,"validateCookiePath");function Ale(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(Ale,"isLetterOrDigit");function Nnt(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(Nnt,"validateCookieDomain");var Tnt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pnt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],HR=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function yle(t){return typeof t=="number"&&(t=new Date(t)),`${Tnt[t.getUTCDay()]}, ${HR[t.getUTCDate()]} ${Pnt[t.getUTCMonth()]} ${t.getUTCFullYear()} ${HR[t.getUTCHours()]}:${HR[t.getUTCMinutes()]}:${HR[t.getUTCSeconds()]} GMT`}i(yle,"toIMFDate");function _nt(t){if(t<0)throw new Error("Invalid cookie max-age")}i(_nt,"validateCookieMaxAge");function vnt(t){if(t.name.length===0)return null;xG(t.name),bG(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"&&(_nt(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(Nnt(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(gle(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${yle(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("=");xG(o),bG(a),e.push(`${o}=${a}`)}return e.join("; ")}i(vnt,"stringify");Ele.exports={isCTLExcludingHtab:Rnt,validateCookieName:xG,validateCookiePath:gle,validateCookieValue:bG,toIMFDate:yle,stringify:vnt}});var Ile=S((wer,Cle)=>{"use strict";var{maxNameValuePairSize:Qnt,maxAttributeValueSize:Dnt}=hle(),{isCTLExcludingHtab:knt}=BG(),{collectASequenceOfCodePointsFast:zR}=_s(),Ont=require("node:assert");function Lnt(t){if(knt(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=zR(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=zR("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>Qnt?null:{name:n,value:s,...UA(r)}}i(Lnt,"parseSetCookie");function UA(t,e={}){if(t.length===0)return e;Ont(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=zR(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=zR("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>Dnt)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");Cle.exports={parseSetCookie:Lnt,parseUnparsedAttributes:UA}});var xle=S((ber,wle)=>{"use strict";var{parseSetCookie:Mnt}=Ile(),{stringify:Fnt}=BG(),{webidl:tt}=bn(),{Headers:VR}=kf();function Unt(t){tt.argumentLengthCheck(arguments,1,"getCookies"),tt.brandCheck(t,VR,{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(Unt,"getCookies");function qnt(t,e,r){tt.brandCheck(t,VR,{strict:!1});let n="deleteCookie";tt.argumentLengthCheck(arguments,2,n),e=tt.converters.DOMString(e,n,"name"),r=tt.converters.DeleteCookieAttributes(r),Sle(t,{name:e,value:"",expires:new Date(0),...r})}i(qnt,"deleteCookie");function $nt(t){tt.argumentLengthCheck(arguments,1,"getSetCookies"),tt.brandCheck(t,VR,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>Mnt(r)):[]}i($nt,"getSetCookies");function Sle(t,e){tt.argumentLengthCheck(arguments,2,"setCookie"),tt.brandCheck(t,VR,{strict:!1}),e=tt.converters.Cookie(e);let r=Fnt(e);r&&t.append("Set-Cookie",r)}i(Sle,"setCookie");tt.converters.DeleteCookieAttributes=tt.dictionaryConverter([{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);tt.converters.Cookie=tt.dictionaryConverter([{converter:tt.converters.DOMString,key:"name"},{converter:tt.converters.DOMString,key:"value"},{converter:tt.nullableConverter(t=>typeof t=="number"?tt.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:tt.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:tt.sequenceConverter(tt.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);wle.exports={getCookies:Unt,deleteCookie:qnt,getSetCookies:$nt,setCookie:Sle}});var $A=S((Rer,Ble)=>{"use strict";var{webidl:ie}=bn(),{kEnumerableProperty:ks}=Je(),{kConstruct:ble}=Ht(),{MessagePort:Gnt}=require("node:worker_threads"),qA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===ble){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(ble,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:Hnt}=qA;delete qA.createFastMessageEvent;var WR=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}},JR=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:ks,origin:ks,lastEventId:ks,source:ks,ports:ks,initMessageEvent:ks});Object.defineProperties(WR.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:ks,code:ks,wasClean:ks});Object.defineProperties(JR.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:ks,filename:ks,lineno:ks,colno:ks,error:ks});ie.converters.MessagePort=ie.interfaceConverter(Gnt);ie.converters["sequence"]=ie.sequenceConverter(ie.converters.MessagePort);var RG=[{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([...RG,{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([...RG,{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([...RG,{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}]);Ble.exports={MessageEvent:qA,CloseEvent:WR,ErrorEvent:JR,createFastMessageEvent:Hnt}});var qf=S((Ter,Rle)=>{"use strict";var znt="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",Vnt={enumerable:!0,writable:!1,configurable:!1},Wnt={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},Jnt={NOT_SENT:0,PROCESSING:1,SENT:2},Ynt={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},jnt=2**16-1,Knt={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},Xnt=Buffer.allocUnsafe(0),Znt={string:1,typedArray:2,arrayBuffer:3,blob:4};Rle.exports={uid:znt,sentCloseFrameState:Jnt,staticPropertyDescriptors:Vnt,states:Wnt,opcodes:Ynt,maxUnsigned16Bit:jnt,parserStates:Knt,emptyBuffer:Xnt,sendHints:Znt}});var PI=S((Per,Nle)=>{"use strict";Nle.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 QI=S((_er,Lle)=>{"use strict";var{kReadyState:_I,kController:est,kResponse:tst,kBinaryType:rst,kWebSocketURL:nst}=PI(),{states:vI,opcodes:hd}=qf(),{ErrorEvent:sst,createFastMessageEvent:ost}=$A(),{isUtf8:ist}=require("node:buffer"),{collectASequenceOfCodePointsFast:ast,removeHTTPWhitespace:Tle}=_s();function cst(t){return t[_I]===vI.CONNECTING}i(cst,"isConnecting");function lst(t){return t[_I]===vI.OPEN}i(lst,"isEstablished");function ust(t){return t[_I]===vI.CLOSING}i(ust,"isClosing");function dst(t){return t[_I]===vI.CLOSED}i(dst,"isClosed");function NG(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(NG,"fireEvent");function pst(t,e,r){if(t[_I]!==vI.OPEN)return;let n;if(e===hd.TEXT)try{n=Ole(r)}catch{_le(t,"Received invalid UTF-8 in text frame.");return}else e===hd.BINARY&&(t[rst]==="blob"?n=new Blob([r]):n=fst(r));NG("message",t,ost,{origin:t[nst].origin,data:n})}i(pst,"websocketMessageReceived");function fst(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(fst,"toArrayBuffer");function mst(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(mst,"isValidSubprotocol");function hst(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(hst,"isValidStatusCode");function _le(t,e){let{[est]:r,[tst]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&NG("error",t,(s,o)=>new sst(s,o),{error:new Error(e),message:e})}i(_le,"failWebsocketConnection");function vle(t){return t===hd.CLOSE||t===hd.PING||t===hd.PONG}i(vle,"isControlFrame");function Qle(t){return t===hd.CONTINUATION}i(Qle,"isContinuationFrame");function Dle(t){return t===hd.TEXT||t===hd.BINARY}i(Dle,"isTextBinaryFrame");function Ast(t){return Dle(t)||Qle(t)||vle(t)}i(Ast,"isValidOpcode");function gst(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(yst,"isValidClientWindowBits");var kle=typeof process.versions.icu=="string",Ple=kle?new TextDecoder("utf-8",{fatal:!0}):void 0,Ole=kle?Ple.decode.bind(Ple):function(t){if(ist(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};Lle.exports={isConnecting:cst,isEstablished:lst,isClosing:ust,isClosed:dst,fireEvent:NG,isValidSubprotocol:mst,isValidStatusCode:hst,failWebsocketConnection:_le,websocketMessageReceived:pst,utf8Decode:Ole,isControlFrame:vle,isContinuationFrame:Qle,isTextBinaryFrame:Dle,isValidOpcode:Ast,parseExtensions:gst,isValidClientWindowBits:yst}});var jR=S((Qer,Mle)=>{"use strict";var{maxUnsigned16Bit:Est}=qf(),YR=16386,TG,DI=null,GA=YR;try{TG=require("node:crypto")}catch{TG={randomFillSync:i(function(e,r,n){for(let s=0;sEst?(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:Ist,states:kI,sentCloseFrameState:KR,emptyBuffer:Sst,opcodes:wst}=qf(),{kReadyState:OI,kSentClose:XR,kByteParser:Ule,kReceivedClose:Fle,kResponse:qle}=PI(),{fireEvent:xst,failWebsocketConnection:Ad,isClosing:bst,isClosed:Bst,isEstablished:Rst,parseExtensions:Nst}=QI(),{channels:HA}=rA(),{CloseEvent:Tst}=$A(),{makeRequest:Pst}=OA(),{fetching:_st}=BI(),{Headers:vst,getHeadersList:Qst}=kf(),{getDecodeSplit:Dst}=ho(),{WebsocketFrameSend:kst}=jR(),_G;try{_G=require("node:crypto")}catch{}function Ost(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=Pst({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=Qst(new vst(o.headers));c.headersList=p}let l=_G.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"),_st({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){Ad(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){Ad(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Ad(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Ad(n,'Server did not set Connection header to "upgrade".');return}let f=p.headersList.get("Sec-WebSocket-Accept"),m=_G.createHash("sha1").update(l+Ist).digest("base64");if(f!==m){Ad(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let h=p.headersList.get("Sec-WebSocket-Extensions"),A;if(h!==null&&(A=Nst(h),!A.has("permessage-deflate"))){Ad(n,"Sec-WebSocket-Extensions header does not match.");return}let y=p.headersList.get("Sec-WebSocket-Protocol");if(y!==null){let E=Dst("sec-websocket-protocol",c.headersList);if(E===null||!E.includes(y)){Ad(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",$le),p.socket.on("close",Gle),p.socket.on("error",Hle),HA.open.hasSubscribers&&HA.open.publish({address:p.socket.address(),protocol:y,extensions:h}),s(p,A)}})}i(Ost,"establishWebSocketConnection");function Lst(t,e,r,n){if(!(bst(t)||Bst(t)))if(!Rst(t))Ad(t,"Connection was closed before it was established."),t[OI]=kI.CLOSING;else if(t[XR]===KR.NOT_SENT){t[XR]=KR.PROCESSING;let s=new kst;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=Sst,t[qle].socket.write(s.createFrame(wst.CLOSE)),t[XR]=KR.SENT,t[OI]=kI.CLOSING}else t[OI]=kI.CLOSING}i(Lst,"closeWebSocketConnection");function $le(t){this.ws[Ule].write(t)||this.pause()}i($le,"onSocketData");function Gle(){let{ws:t}=this,{[qle]:e}=t;e.socket.off("data",$le),e.socket.off("close",Gle),e.socket.off("error",Hle);let r=t[XR]===KR.SENT&&t[Fle],n=1005,s="",o=t[Ule].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[Fle]||(n=1006),t[OI]=kI.CLOSED,xst("close",t,(a,c)=>new Tst(a,c),{wasClean:r,code:n,reason:s}),HA.close.hasSubscribers&&HA.close.publish({websocket:t,code:n,reason:s})}i(Gle,"onSocketClose");function Hle(t){let{ws:e}=this;e[OI]=kI.CLOSING,HA.socketError.hasSubscribers&&HA.socketError.publish(t),this.destroy()}i(Hle,"onSocketError");zle.exports={establishWebSocketConnection:Ost,closeWebSocketConnection:Lst}});var Wle=S((Ler,Vle)=>{"use strict";var{createInflateRaw:Mst,Z_DEFAULT_WINDOWBITS:Fst}=require("node:zlib"),{isValidClientWindowBits:Ust}=QI(),{MessageSizeExceededError:qst}=at(),$st=Buffer.from([0,0,255,255]),ZR=Symbol("kBuffer"),LI=Symbol("kLength"),QG=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=Fst;if(this.#t.serverMaxWindowBits){if(!Ust(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=Mst({windowBits:s})}catch(o){n(o);return}this.#e[ZR]=[],this.#e[LI]=0,this.#e.on("data",o=>{if(this.#e[LI]+=o.length,this.#n>0&&this.#e[LI]>this.#n){n(new qst),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[ZR].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write($st),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[ZR],this.#e[LI]);this.#e[ZR].length=0,this.#e[LI]=0,n(null,s)})}};Vle.exports={PerMessageDeflate:QG}});var rue=S((Fer,tue)=>{"use strict";var{Writable:Gst}=require("node:stream"),Hst=require("node:assert"),{parserStates:Os,opcodes:zA,states:zst,emptyBuffer:Jle,sentCloseFrameState:Yle}=qf(),{kReadyState:Vst,kSentClose:jle,kResponse:DG,kReceivedClose:Kle}=PI(),{channels:eN}=rA(),{isValidStatusCode:Wst,isValidOpcode:Jst,failWebsocketConnection:wo,websocketMessageReceived:Xle,utf8Decode:Yst,isControlFrame:kG,isTextBinaryFrame:OG,isContinuationFrame:jst}=QI(),{WebsocketFrameSend:Zle}=jR(),{closeWebSocketConnection:eue}=vG(),{PerMessageDeflate:Kst}=Wle(),{MessageSizeExceededError:LG}=at();function MI(t,e,r){eue(t,e,r,Buffer.byteLength(r)),wo(t,r)}i(MI,"failWebsocketConnectionWithCode");var MG=class extends Gst{static{i(this,"ByteParser")}#e=[];#t=0;#n=0;#r=!1;#s=Os.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 Kst(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&&!kG(this.#o.opcode)&&this.#o.payloadLength+this.#t>this.#c?(MI(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#r;)if(this.#s===Os.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(!Jst(s))return wo(this.ws,"Invalid opcode received"),e();if(o)return wo(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){wo(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){wo(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!OG(s)){wo(this.ws,"Invalid frame type was fragmented.");return}if(OG(s)&&this.#i.length>0){wo(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&a){wo(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&kG(s)){wo(this.ws,"Control frame either too large or fragmented");return}if(jst(s)&&this.#i.length===0&&!this.#o.compressed){wo(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#o.payloadLength=c,this.#s=Os.READ_DATA,!this.#u())return}else c===126?this.#s=Os.PAYLOADLENGTH_16:c===127&&(this.#s=Os.PAYLOADLENGTH_64);OG(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===Os.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#o.payloadLength=r.readUInt16BE(0),this.#s=Os.READ_DATA,!this.#u())return}else if(this.#s===Os.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){wo(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#o.payloadLength=s,this.#s=Os.READ_DATA,!this.#u())return}else if(this.#s===Os.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 LG?1009:1007;MI(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){MI(this.ws,1009,new LG().message);return}if(!this.#o.fin){this.#s=Os.INFO,this.#r=!0,this.run(e);return}Xle(this.ws,this.#o.binaryType,this.consumeFragments()),this.#r=!0,this.#s=Os.INFO,this.run(e)}}),this.#r=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){MI(this.ws,1009,new LG().message);return}!this.#o.fragmented&&this.#o.fin&&Xle(this.ws,this.#o.binaryType,this.consumeFragments()),this.#s=Os.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return Jle;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?(MI(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){Hst(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!Wst(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=Yst(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 wo(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 eue(this.ws,s,o,o.length),wo(this.ws,o),!1}if(this.ws[jle]!==Yle.SENT){let s=Jle;this.#o.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#o.closeInfo.code,0));let o=new Zle(s);this.ws[DG].socket.write(o.createFrame(zA.CLOSE),a=>{a||(this.ws[jle]=Yle.SENT)})}return this.ws[Vst]=zst.CLOSING,this.ws[Kle]=!0,!1}else if(r===zA.PING){if(!this.ws[Kle]){let s=new Zle(e);this.ws[DG].socket.write(s.createFrame(zA.PONG)),eN.ping.hasSubscribers&&eN.ping.publish({payload:e})}}else r===zA.PONG&&eN.pong.hasSubscribers&&eN.pong.publish({payload:e});return!0}get closingInfo(){return this.#o.closeInfo}};tue.exports={ByteParser:MG}});var aue=S((qer,iue)=>{"use strict";var{WebsocketFrameSend:Xst}=jR(),{opcodes:nue,sendHints:VA}=qf(),Zst=Gq(),sue=Buffer[Symbol.species],FG=class{static{i(this,"SendQueue")}#e=new Zst;#t=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==VA.blob){let o=oue(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=oue(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 oue(t,e){return new Xst(eot(t,e)).createFrame(e===VA.string?nue.TEXT:nue.BINARY)}i(oue,"createFrame");function eot(t,e){switch(e){case VA.string:return Buffer.from(t);case VA.arrayBuffer:case VA.blob:return new sue(t);case VA.typedArray:return new sue(t.buffer,t.byteOffset,t.byteLength)}}i(eot,"toBuffer");iue.exports={SendQueue:FG}});var gue=S((Ger,Aue)=>{"use strict";var{webidl:Te}=bn(),{URLSerializer:tot}=_s(),{environmentSettingsObject:cue}=ho(),{staticPropertyDescriptors:gd,states:FI,sentCloseFrameState:rot,sendHints:tN}=qf(),{kWebSocketURL:lue,kReadyState:UG,kController:uue,kBinaryType:rN,kResponse:due,kSentClose:not,kByteParser:sot}=PI(),{isConnecting:oot,isEstablished:iot,isClosing:aot,isValidSubprotocol:cot,fireEvent:pue}=QI(),{establishWebSocketConnection:lot,closeWebSocketConnection:fue}=vG(),{ByteParser:uot}=rue(),{kEnumerableProperty:oi,isBlobLike:mue}=Je(),{getGlobalDispatcher:dot}=II(),{types:hue}=require("node:util"),{ErrorEvent:pot,CloseEvent:fot}=$A(),{SendQueue:mot}=aue(),xo=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(),Te.util.markAsUncloneable(this);let n="WebSocket constructor";Te.argumentLengthCheck(arguments,1,n);let s=Te.converters["DOMString or sequence or WebSocketInit"](r,n,"options");e=Te.converters.USVString(e,n,"url"),r=s.protocols;let o=cue.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=>cot(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[lue]=new URL(a.href);let c=cue.settingsObject;this[uue]=lot(a,r,c,this,(l,u)=>this.#o(l,u),s),this[UG]=t.CONNECTING,this[not]=rot.NOT_SENT,this[rN]="blob"}close(e=void 0,r=void 0){Te.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Te.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Te.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");fue(this,e,r,s)}send(e){Te.brandCheck(this,t);let r="WebSocket.send";if(Te.argumentLengthCheck(arguments,1,r),e=Te.converters.WebSocketSendData(e,r,"data"),oot(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!iot(this)||aot(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},tN.string)}else hue.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},tN.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},tN.typedArray)):mue(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},tN.blob))}get readyState(){return Te.brandCheck(this,t),this[UG]}get bufferedAmount(){return Te.brandCheck(this,t),this.#t}get url(){return Te.brandCheck(this,t),tot(this[lue])}get extensions(){return Te.brandCheck(this,t),this.#r}get protocol(){return Te.brandCheck(this,t),this.#n}get onopen(){return Te.brandCheck(this,t),this.#e.open}set onopen(e){Te.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 Te.brandCheck(this,t),this.#e.error}set onerror(e){Te.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 Te.brandCheck(this,t),this.#e.close}set onclose(e){Te.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 Te.brandCheck(this,t),this.#e.message}set onmessage(e){Te.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 Te.brandCheck(this,t),this[rN]}set binaryType(e){Te.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[rN]="blob":this[rN]=e}#o(e,r){this[due]=e;let n=this[uue]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new uot(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",hot),a.on("error",Aot.bind(this)),e.socket.ws=this,this[sot]=a,this.#s=new mot(e.socket),this[UG]=FI.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),pue("open",this)}};xo.CONNECTING=xo.prototype.CONNECTING=FI.CONNECTING;xo.OPEN=xo.prototype.OPEN=FI.OPEN;xo.CLOSING=xo.prototype.CLOSING=FI.CLOSING;xo.CLOSED=xo.prototype.CLOSED=FI.CLOSED;Object.defineProperties(xo.prototype,{CONNECTING:gd,OPEN:gd,CLOSING:gd,CLOSED:gd,url:oi,readyState:oi,bufferedAmount:oi,onopen:oi,onerror:oi,onclose:oi,close:oi,onmessage:oi,binaryType:oi,send:oi,extensions:oi,protocol:oi,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(xo,{CONNECTING:gd,OPEN:gd,CLOSING:gd,CLOSED:gd});Te.converters["sequence"]=Te.sequenceConverter(Te.converters.DOMString);Te.converters["DOMString or sequence"]=function(t,e,r){return Te.util.Type(t)==="Object"&&Symbol.iterator in t?Te.converters["sequence"](t):Te.converters.DOMString(t,e,r)};Te.converters.WebSocketInit=Te.dictionaryConverter([{key:"protocols",converter:Te.converters["DOMString or sequence"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Te.converters.any,defaultValue:i(()=>dot(),"defaultValue")},{key:"headers",converter:Te.nullableConverter(Te.converters.HeadersInit)}]);Te.converters["DOMString or sequence or WebSocketInit"]=function(t){return Te.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Te.converters.WebSocketInit(t):{protocols:Te.converters["DOMString or sequence"](t)}};Te.converters.WebSocketSendData=function(t){if(Te.util.Type(t)==="Object"){if(mue(t))return Te.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||hue.isArrayBuffer(t))return Te.converters.BufferSource(t)}return Te.converters.USVString(t)};function hot(){this.ws[due].socket.resume()}i(hot,"onParserDrain");function Aot(t){let e,r;t instanceof fot?(e=t.reason,r=t.code):e=t.message,pue("error",this,()=>new pot("error",{error:t,message:e})),fue(this,r)}i(Aot,"onParserError");Aue.exports={WebSocket:xo}});var qG=S((zer,yue)=>{"use strict";function got(t){return t.indexOf("\0")===-1}i(got,"isValidLastEventId");function yot(t){if(t.length===0)return!1;for(let e=0;e57)return!1;return!0}i(yot,"isASCIINumber");function Eot(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(Eot,"delay");yue.exports={isValidLastEventId:got,isASCIINumber:yot,delay:Eot}});var Cue=S((Wer,Eue)=>{"use strict";var Cot=require("node:buffer"),{Transform:Iot}=require("node:stream"),{isASCIINumber:Sot,isValidLastEventId:wot}=qG(),WA=[239,187,191],nN=10,UI=13,xot=58,bot=32,Bot=Cot.kStringMaxLength,Rot=Buffer.from("data"),Not=Buffer.from("event"),Tot=Buffer.from("id"),Pot=Buffer.from("retry"),_ot=1024,vot=131072,Qot=128;function Dot(t,e){if(e>=t.length)return!1;for(let r=e;r57)return!1;return!0}i(Dot,"isASCIINumberBytes");function kot(t,e){for(let r=e;r0?Math.min(vot,Math.max(_ot,Math.floor(this.maxEventSize/Qot))):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]!==nN&&e[0]!==UI){n(oN());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===nN){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===nN||s===UI){s===UI&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===nN||s===UI){s===UI&&(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(oN());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(xot);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===bot&&++o),sN(e,s,Rot)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw oN();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(sN(e,s,Pot)){Dot(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(sN(e,s,Tot)){kot(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}sN(e,s,Not)&&o0&&n>this.maxEventSize)throw oN();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&Sot(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&wot(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:Oot}=require("node:stream"),{fetching:Lot}=BI(),{makeRequest:Mot}=OA(),{webidl:au}=bn(),{EventSourceStream:Fot}=Cue(),{parseMIMEType:Uot}=_s(),{createFastMessageEvent:qot}=$A(),{isNetworkError:Iue}=xI(),{delay:$ot}=qG(),{kEnumerableProperty:$f}=Je(),{environmentSettingsObject:Sue}=ho(),{getGlobalDispatcher:Got}=II(),wue=!1,xue=3e3,qI=0,bue=1,$I=2,Hot="anonymous",zot="use-credentials",JA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=qI;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),au.util.markAsUncloneable(this);let n="EventSource constructor";au.argumentLengthCheck(arguments,1,n),wue||(wue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=au.converters.USVString(e,n,"url"),r=au.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:xue};let s=Sue,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=Hot;r.withCredentials&&(a=zot,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Sue.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=Mot(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===$I)return;this.#r=qI;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{Iue(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Iue(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?Uot(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=bue,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new Fot({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(qot(l.type,l.options))},"push")});Oot(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=Lot(e)}async#c(){this.#r!==$I&&(this.#r=qI,this.dispatchEvent(new Event("error")),await $ot(this.#a.reconnectionTime),this.#r===qI&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){au.brandCheck(this,t),this.#r!==$I&&(this.#r=$I,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}},Bue={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:qI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bue,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:$I,writable:!1}};Object.defineProperties(JA,Bue);Object.defineProperties(JA.prototype,Bue);Object.defineProperties(JA.prototype,{close:$f,onerror:$f,onmessage:$f,onopen:$f,readyState:$f,url:$f,withCredentials:$f});au.converters.EventSourceInitDict=au.dictionaryConverter([{key:"withCredentials",converter:au.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:au.converters.any,defaultValue:i(()=>Got(),"defaultValue")}]);Rue.exports={EventSource:JA,defaultReconnectionTime:xue}});var Gf=S((Ker,Se)=>{"use strict";var Vot=SA(),Tue=GC(),Wot=wA(),Jot=Toe(),Yot=xA(),jot=l$(),Kot=Zoe(),Xot=iie(),Pue=at(),aN=Je(),{InvalidArgumentError:iN}=Pue,YA=Vie(),Zot=zC(),eit=H$(),tit=Nae(),rit=W$(),nit=_$(),sit=cR(),{getGlobalDispatcher:_ue,setGlobalDispatcher:oit}=II(),iit=yR(),ait=KB(),cit=XB();Object.assign(Tue.prototype,YA);Se.exports.Dispatcher=Tue;Se.exports.Client=Vot;Se.exports.Pool=Wot;Se.exports.BalancedPool=Jot;Se.exports.Agent=Yot;Se.exports.ProxyAgent=jot;Se.exports.EnvHttpProxyAgent=Kot;Se.exports.RetryAgent=Xot;Se.exports.RetryHandler=sit;Se.exports.DecoratorHandler=iit;Se.exports.RedirectHandler=ait;Se.exports.createRedirectInterceptor=cit;Se.exports.interceptors={redirect:kae(),retry:Lae(),dump:Fae(),dns:$ae()};Se.exports.buildConnector=Zot;Se.exports.errors=Pue;Se.exports.util={parseHeaders:aN.parseHeaders,headerNameToString:aN.headerNameToString};function GI(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 iN("invalid url");if(r!=null&&typeof r!="object")throw new iN("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new iN("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(aN.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=aN.parseURL(e);let{agent:s,dispatcher:o=_ue()}=r;if(s)throw new iN("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(GI,"makeDispatcher");Se.exports.setGlobalDispatcher=oit;Se.exports.getGlobalDispatcher=_ue;var lit=BI().fetch;Se.exports.fetch=i(async function(e,r=void 0){try{return await lit(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Se.exports.Headers=kf().Headers;Se.exports.Response=xI().Response;Se.exports.Request=OA().Request;Se.exports.FormData=XC().FormData;Se.exports.File=globalThis.File??require("node:buffer").File;Se.exports.FileReader=sle().FileReader;var{setGlobalOrigin:uit,getGlobalOrigin:dit}=cq();Se.exports.setGlobalOrigin=uit;Se.exports.getGlobalOrigin=dit;var{CacheStorage:pit}=fle(),{kConstruct:fit}=FR();Se.exports.caches=new pit(fit);var{deleteCookie:mit,getCookies:hit,getSetCookies:Ait,setCookie:git}=xle();Se.exports.deleteCookie=mit;Se.exports.getCookies=hit;Se.exports.getSetCookies=Ait;Se.exports.setCookie=git;var{parseMIMEType:yit,serializeAMimeType:Eit}=_s();Se.exports.parseMIMEType=yit;Se.exports.serializeAMimeType=Eit;var{CloseEvent:Cit,ErrorEvent:Iit,MessageEvent:Sit}=$A();Se.exports.WebSocket=gue().WebSocket;Se.exports.CloseEvent=Cit;Se.exports.ErrorEvent=Iit;Se.exports.MessageEvent=Sit;Se.exports.request=GI(YA.request);Se.exports.stream=GI(YA.stream);Se.exports.pipeline=GI(YA.pipeline);Se.exports.connect=GI(YA.connect);Se.exports.upgrade=GI(YA.upgrade);Se.exports.MockClient=eit;Se.exports.MockPool=rit;Se.exports.MockAgent=tit;Se.exports.mockErrors=nit;var{EventSource:wit}=Nue();Se.exports.EventSource=wit});var tS=S((_rr,mde)=>{"use strict";var Kit="2.0.0",Xit=Number.MAX_SAFE_INTEGER||9007199254740991,Zit=16,eat=250,tat=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Zit,MAX_SAFE_BUILD_LENGTH:eat,MAX_SAFE_INTEGER:Xit,RELEASE_TYPES:tat,SEMVER_SPEC_VERSION:Kit,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var rS=S((vrr,hde)=>{"use strict";var rat=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};hde.exports=rat});var ZA=S((uc,Ade)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:cH,MAX_SAFE_BUILD_LENGTH:nat,MAX_LENGTH:sat}=tS(),oat=rS();uc=Ade.exports={};var iat=uc.re=[],aat=uc.safeRe=[],G=uc.src=[],cat=uc.safeSrc=[],H=uc.t={},lat=0,lH="[a-zA-Z0-9-]",uat=[["\\s",1],["\\d",sat],[lH,nat]],dat=i(t=>{for(let[e,r]of uat)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Oe=i((t,e,r)=>{let n=dat(e),s=lat++;oat(t,s,e),H[t]=s,G[s]=e,cat[s]=n,iat[s]=new RegExp(e,r?"g":void 0),aat[s]=new RegExp(n,r?"g":void 0)},"createToken");Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${lH}*`);Oe("MAINVERSION",`(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${G[H.PRERELEASEIDENTIFIER]}(?:\\.${G[H.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${G[H.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${G[H.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${lH}+`);Oe("BUILD",`(?:\\+(${G[H.BUILDIDENTIFIER]}(?:\\.${G[H.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${G[H.MAINVERSION]}${G[H.PRERELEASE]}?${G[H.BUILD]}?`);Oe("FULL",`^${G[H.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${G[H.MAINVERSIONLOOSE]}${G[H.PRERELEASELOOSE]}?${G[H.BUILD]}?`);Oe("LOOSE",`^${G[H.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${G[H.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${G[H.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:${G[H.PRERELEASE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:${G[H.PRERELEASELOOSE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${cH}})(?:\\.(\\d{1,${cH}}))?(?:\\.(\\d{1,${cH}}))?`);Oe("COERCE",`${G[H.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",G[H.COERCEPLAIN]+`(?:${G[H.PRERELEASE]})?(?:${G[H.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",G[H.COERCE],!0);Oe("COERCERTLFULL",G[H.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${G[H.LONETILDE]}\\s+`,!0);uc.tildeTrimReplace="$1~";Oe("TILDE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${G[H.LONECARET]}\\s+`,!0);uc.caretTrimReplace="$1^";Oe("CARET",`^${G[H.LONECARET]}${G[H.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${G[H.LONECARET]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${G[H.GTLT]}\\s*(${G[H.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]}|${G[H.XRANGEPLAIN]})`,!0);uc.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${G[H.XRANGEPLAIN]})\\s+-\\s+(${G[H.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${G[H.XRANGEPLAINLOOSE]})\\s+-\\s+(${G[H.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var AN=S((Drr,gde)=>{"use strict";var pat=Object.freeze({loose:!0}),fat=Object.freeze({}),mat=i(t=>t?typeof t!="object"?pat:t:fat,"parseOptions");gde.exports=mat});var uH=S((Orr,Cde)=>{"use strict";var yde=/^[0-9]+$/,Ede=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tEde(e,t),"rcompareIdentifiers");Cde.exports={compareIdentifiers:Ede,rcompareIdentifiers:hat}});var $n=S((Mrr,Sde)=>{"use strict";var gN=rS(),{MAX_LENGTH:Ide,MAX_SAFE_INTEGER:yN}=tS(),{safeRe:EN,t:CN}=ZA(),Aat=AN(),{compareIdentifiers:dH}=uH(),pH=class t{static{i(this,"SemVer")}constructor(e,r){if(r=Aat(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>Ide)throw new TypeError(`version is longer than ${Ide} characters`);gN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?EN[CN.LOOSE]:EN[CN.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>yN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yN||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(gN("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 dH(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(gN("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 dH(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?EN[CN.PRERELEASELOOSE]:EN[CN.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]),dH(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}};Sde.exports=pH});var Yf=S((Urr,xde)=>{"use strict";var wde=$n(),gat=i((t,e,r=!1)=>{if(t instanceof wde)return t;try{return new wde(t,e)}catch(n){if(!r)return null;throw n}},"parse");xde.exports=gat});var Bde=S(($rr,bde)=>{"use strict";var yat=Yf(),Eat=i((t,e)=>{let r=yat(t,e);return r?r.version:null},"valid");bde.exports=Eat});var Nde=S((Hrr,Rde)=>{"use strict";var Cat=Yf(),Iat=i((t,e)=>{let r=Cat(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Rde.exports=Iat});var _de=S((Vrr,Pde)=>{"use strict";var Tde=$n(),Sat=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Tde(t instanceof Tde?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Pde.exports=Sat});var Dde=S((Jrr,Qde)=>{"use strict";var vde=Yf(),wat=i((t,e)=>{let r=vde(t,null,!0),n=vde(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");Qde.exports=wat});var Ode=S((jrr,kde)=>{"use strict";var xat=$n(),bat=i((t,e)=>new xat(t,e).major,"major");kde.exports=bat});var Mde=S((Xrr,Lde)=>{"use strict";var Bat=$n(),Rat=i((t,e)=>new Bat(t,e).minor,"minor");Lde.exports=Rat});var Ude=S((enr,Fde)=>{"use strict";var Nat=$n(),Tat=i((t,e)=>new Nat(t,e).patch,"patch");Fde.exports=Tat});var $de=S((rnr,qde)=>{"use strict";var Pat=Yf(),_at=i((t,e)=>{let r=Pat(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");qde.exports=_at});var ai=S((snr,Hde)=>{"use strict";var Gde=$n(),vat=i((t,e,r)=>new Gde(t,r).compare(new Gde(e,r)),"compare");Hde.exports=vat});var Vde=S((inr,zde)=>{"use strict";var Qat=ai(),Dat=i((t,e,r)=>Qat(e,t,r),"rcompare");zde.exports=Dat});var Jde=S((cnr,Wde)=>{"use strict";var kat=ai(),Oat=i((t,e)=>kat(t,e,!0),"compareLoose");Wde.exports=Oat});var IN=S((unr,jde)=>{"use strict";var Yde=$n(),Lat=i((t,e,r)=>{let n=new Yde(t,r),s=new Yde(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");jde.exports=Lat});var Xde=S((pnr,Kde)=>{"use strict";var Mat=IN(),Fat=i((t,e)=>t.sort((r,n)=>Mat(r,n,e)),"sort");Kde.exports=Fat});var epe=S((mnr,Zde)=>{"use strict";var Uat=IN(),qat=i((t,e)=>t.sort((r,n)=>Uat(n,r,e)),"rsort");Zde.exports=qat});var nS=S((Anr,tpe)=>{"use strict";var $at=ai(),Gat=i((t,e,r)=>$at(t,e,r)>0,"gt");tpe.exports=Gat});var SN=S((ynr,rpe)=>{"use strict";var Hat=ai(),zat=i((t,e,r)=>Hat(t,e,r)<0,"lt");rpe.exports=zat});var fH=S((Cnr,npe)=>{"use strict";var Vat=ai(),Wat=i((t,e,r)=>Vat(t,e,r)===0,"eq");npe.exports=Wat});var mH=S((Snr,spe)=>{"use strict";var Jat=ai(),Yat=i((t,e,r)=>Jat(t,e,r)!==0,"neq");spe.exports=Yat});var wN=S((xnr,ope)=>{"use strict";var jat=ai(),Kat=i((t,e,r)=>jat(t,e,r)>=0,"gte");ope.exports=Kat});var xN=S((Bnr,ipe)=>{"use strict";var Xat=ai(),Zat=i((t,e,r)=>Xat(t,e,r)<=0,"lte");ipe.exports=Zat});var hH=S((Nnr,ape)=>{"use strict";var ect=fH(),tct=mH(),rct=nS(),nct=wN(),sct=SN(),oct=xN(),ict=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 ect(t,r,n);case"!=":return tct(t,r,n);case">":return rct(t,r,n);case">=":return nct(t,r,n);case"<":return sct(t,r,n);case"<=":return oct(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");ape.exports=ict});var lpe=S((Pnr,cpe)=>{"use strict";var act=$n(),cct=Yf(),{safeRe:bN,t:BN}=ZA(),lct=i((t,e)=>{if(t instanceof act)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?bN[BN.COERCEFULL]:bN[BN.COERCE]);else{let l=e.includePrerelease?bN[BN.COERCERTLFULL]:bN[BN.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 cct(`${n}.${s}.${o}${a}${c}`,e)},"coerce");cpe.exports=lct});var dpe=S((vnr,upe)=>{"use strict";var AH=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}};upe.exports=AH});var ci=S((Dnr,hpe)=>{"use strict";var uct=/\s+/g,gH=class t{static{i(this,"Range")}constructor(e,r){if(r=pct(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof yH)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(uct," "),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=>!fpe(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&&Ect(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&&gct)|(this.options.loose&&yct))+":"+e,s=ppe.get(n);if(s)return s;let o=this.options.loose,a=o?us[Gn.HYPHENRANGELOOSE]:us[Gn.HYPHENRANGE];e=e.replace(a,Tct(this.options.includePrerelease)),Lt("hyphen replace",e),e=e.replace(us[Gn.COMPARATORTRIM],mct),Lt("comparator trim",e),e=e.replace(us[Gn.TILDETRIM],hct),Lt("tilde trim",e),e=e.replace(us[Gn.CARETTRIM],Act),Lt("caret trim",e);let c=e.split(" ").map(p=>Cct(p,this.options)).join(" ").split(/\s+/).map(p=>Nct(p,this.options));o&&(c=c.filter(p=>(Lt("loose invalid filter",p,this.options),!!p.match(us[Gn.COMPARATORLOOSE])))),Lt("range list",c);let l=new Map,u=c.map(p=>new yH(p,this.options));for(let p of u){if(fpe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return ppe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>mpe(n,r)&&e.set.some(s=>mpe(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 fct(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),Ect=i(t=>t.value==="","isAny"),mpe=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"),Cct=i((t,e)=>(t=t.replace(us[Gn.BUILD],""),Lt("comp",t,e),t=wct(t,e),Lt("caret",t),t=Ict(t,e),Lt("tildes",t),t=bct(t,e),Lt("xrange",t),t=Rct(t,e),Lt("stars",t),t),"parseComparator"),ds=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Ict=i((t,e)=>t.trim().split(/\s+/).map(r=>Sct(r,e)).join(" "),"replaceTildes"),Sct=i((t,e)=>{let r=e.loose?us[Gn.TILDELOOSE]:us[Gn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Lt("tilde",t,n,s,o,a,c);let l;return ds(s)?l="":ds(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ds(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Lt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Lt("tilde return",l),l})},"replaceTilde"),wct=i((t,e)=>t.trim().split(/\s+/).map(r=>xct(r,e)).join(" "),"replaceCarets"),xct=i((t,e)=>{Lt("caret",t,e);let r=e.loose?us[Gn.CARETLOOSE]:us[Gn.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 ds(o)?u="":ds(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ds(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}${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`),Lt("caret return",u),u})},"replaceCaret"),bct=i((t,e)=>(Lt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Bct(r,e)).join(" ")),"replaceXRanges"),Bct=i((t,e)=>{t=t.trim();let r=e.loose?us[Gn.XRANGELOOSE]:us[Gn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Lt("xRange",t,n,s,o,a,c,l);let u=ds(o),d=u||ds(a),p=d||ds(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"),Rct=i((t,e)=>(Lt("replaceStars",t,e),t.trim().replace(us[Gn.STAR],"")),"replaceStars"),Nct=i((t,e)=>(Lt("replaceGTE0",t,e),t.trim().replace(us[e.includePrerelease?Gn.GTE0PRE:Gn.GTE0],"")),"replaceGTE0"),Tct=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(ds(n)?r="":ds(s)?r=`>=${n}.0.0${t?"-0":""}`:ds(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ds(u)?l="":ds(d)?l=`<${+u+1}.0.0-0`:ds(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"),Pct=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 sS=S((Onr,Ipe)=>{"use strict";var oS=Symbol("SemVer ANY"),IH=class t{static{i(this,"Comparator")}static get ANY(){return oS}constructor(e,r){if(r=Ape(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),CH("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===oS?this.value="":this.value=this.operator+this.semver.version,CH("comp",this)}parse(e){let r=this.options.loose?gpe[ype.COMPARATORLOOSE]:gpe[ype.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 Epe(n[2],this.options.loose):this.semver=oS}toString(){return this.value}test(e){if(CH("Comparator.test",e,this.options.loose),this.semver===oS||e===oS)return!0;if(typeof e=="string")try{e=new Epe(e,this.options)}catch{return!1}return EH(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 Cpe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Cpe(this.value,r).test(e.semver):(r=Ape(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("=")||EH(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||EH(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Ipe.exports=IH;var Ape=AN(),{safeRe:gpe,t:ype}=ZA(),EH=hH(),CH=rS(),Epe=$n(),Cpe=ci()});var iS=S((Mnr,Spe)=>{"use strict";var _ct=ci(),vct=i((t,e,r)=>{try{e=new _ct(e,r)}catch{return!1}return e.test(t)},"satisfies");Spe.exports=vct});var xpe=S((Unr,wpe)=>{"use strict";var Qct=ci(),Dct=i((t,e)=>new Qct(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");wpe.exports=Dct});var Bpe=S(($nr,bpe)=>{"use strict";var kct=$n(),Oct=ci(),Lct=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Oct(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new kct(n,r))}),n},"maxSatisfying");bpe.exports=Lct});var Npe=S((Hnr,Rpe)=>{"use strict";var Mct=$n(),Fct=ci(),Uct=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Fct(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");Rpe.exports=Uct});var _pe=S((Vnr,Ppe)=>{"use strict";var SH=$n(),qct=ci(),Tpe=nS(),$ct=i((t,e)=>{t=new qct(t,e);let r=new SH("0.0.0");if(t.test(r)||(r=new SH("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new SH(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Tpe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Tpe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Ppe.exports=$ct});var Qpe=S((Jnr,vpe)=>{"use strict";var Gct=ci(),Hct=i((t,e)=>{try{return new Gct(t,e).range||"*"}catch{return null}},"validRange");vpe.exports=Hct});var RN=S((jnr,Lpe)=>{"use strict";var zct=$n(),Ope=sS(),{ANY:Vct}=Ope,Wct=ci(),Jct=iS(),Dpe=nS(),kpe=SN(),Yct=xN(),jct=wN(),Kct=i((t,e,r,n)=>{t=new zct(t,n),e=new Wct(e,n);let s,o,a,c,l;switch(r){case">":s=Dpe,o=Yct,a=kpe,c=">",l=">=";break;case"<":s=kpe,o=jct,a=Dpe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jct(t,e,n))return!1;for(let u=0;u{m.semver===Vct&&(m=new Ope(">=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");Lpe.exports=Kct});var Fpe=S((Xnr,Mpe)=>{"use strict";var Xct=RN(),Zct=i((t,e,r)=>Xct(t,e,">",r),"gtr");Mpe.exports=Zct});var qpe=S((esr,Upe)=>{"use strict";var elt=RN(),tlt=i((t,e,r)=>elt(t,e,"<",r),"ltr");Upe.exports=tlt});var Hpe=S((rsr,Gpe)=>{"use strict";var $pe=ci(),rlt=i((t,e,r)=>(t=new $pe(t,r),e=new $pe(e,r),t.intersects(e,r)),"intersects");Gpe.exports=rlt});var Vpe=S((ssr,zpe)=>{"use strict";var nlt=iS(),slt=ai();zpe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>slt(d,p,r));for(let d of a)nlt(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 Wpe=ci(),xH=sS(),{ANY:wH}=xH,aS=iS(),bH=ai(),olt=i((t,e,r={})=>{if(t===e)return!0;t=new Wpe(t,r),e=new Wpe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=alt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),ilt=[new xH(">=0.0.0-0")],Jpe=[new xH(">=0.0.0")],alt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===wH){if(e.length===1&&e[0].semver===wH)return!0;r.includePrerelease?t=ilt:t=Jpe}if(e.length===1&&e[0].semver===wH){if(r.includePrerelease)return!0;e=Jpe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=Ype(s,m,r):m.operator==="<"||m.operator==="<="?o=jpe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=bH(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&&!aS(m,String(s),r)||o&&!aS(m,String(o),r))return null;for(let h of e)if(!aS(m,String(h),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=Ype(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!aS(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=jpe(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!aS(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"),Ype=i((t,e,r)=>{if(!t)return e;let n=bH(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),jpe=i((t,e,r)=>{if(!t)return e;let n=bH(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Kpe.exports=olt});var RH=S((asr,tfe)=>{"use strict";var BH=ZA(),Zpe=tS(),clt=$n(),efe=uH(),llt=Yf(),ult=Bde(),dlt=Nde(),plt=_de(),flt=Dde(),mlt=Ode(),hlt=Mde(),Alt=Ude(),glt=$de(),ylt=ai(),Elt=Vde(),Clt=Jde(),Ilt=IN(),Slt=Xde(),wlt=epe(),xlt=nS(),blt=SN(),Blt=fH(),Rlt=mH(),Nlt=wN(),Tlt=xN(),Plt=hH(),_lt=lpe(),vlt=sS(),Qlt=ci(),Dlt=iS(),klt=xpe(),Olt=Bpe(),Llt=Npe(),Mlt=_pe(),Flt=Qpe(),Ult=RN(),qlt=Fpe(),$lt=qpe(),Glt=Hpe(),Hlt=Vpe(),zlt=Xpe();tfe.exports={parse:llt,valid:ult,clean:dlt,inc:plt,diff:flt,major:mlt,minor:hlt,patch:Alt,prerelease:glt,compare:ylt,rcompare:Elt,compareLoose:Clt,compareBuild:Ilt,sort:Slt,rsort:wlt,gt:xlt,lt:blt,eq:Blt,neq:Rlt,gte:Nlt,lte:Tlt,cmp:Plt,coerce:_lt,Comparator:vlt,Range:Qlt,satisfies:Dlt,toComparators:klt,maxSatisfying:Olt,minSatisfying:Llt,minVersion:Mlt,validRange:Flt,outside:Ult,gtr:qlt,ltr:$lt,intersects:Glt,simplifyRange:Hlt,subset:zlt,SemVer:clt,re:BH.re,src:BH.src,tokens:BH.t,SEMVER_SPEC_VERSION:Zpe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Zpe.RELEASE_TYPES,compareIdentifiers:efe.compareIdentifiers,rcompareIdentifiers:efe.rcompareIdentifiers}});var sg=S((Eir,Mfe)=>{"use strict";var xdt="2.0.0",bdt=Number.MAX_SAFE_INTEGER||9007199254740991,Bdt=16,Rdt=250,Ndt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Mfe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Bdt,MAX_SAFE_BUILD_LENGTH:Rdt,MAX_SAFE_INTEGER:bdt,RELEASE_TYPES:Ndt,SEMVER_SPEC_VERSION:xdt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gS=S((Cir,Ffe)=>{"use strict";var Tdt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ffe.exports=Tdt});var og=S((pc,Ufe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:zH,MAX_SAFE_BUILD_LENGTH:Pdt,MAX_LENGTH:_dt}=sg(),vdt=gS();pc=Ufe.exports={};var Qdt=pc.re=[],Ddt=pc.safeRe=[],z=pc.src=[],kdt=pc.safeSrc=[],V=pc.t={},Odt=0,VH="[a-zA-Z0-9-]",Ldt=[["\\s",1],["\\d",_dt],[VH,Pdt]],Mdt=i(t=>{for(let[e,r]of Ldt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=i((t,e,r)=>{let n=Mdt(e),s=Odt++;vdt(t,s,e),V[t]=s,z[s]=e,kdt[s]=n,Qdt[s]=new RegExp(e,r?"g":void 0),Ddt[s]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${VH}*`);Le("MAINVERSION",`(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${z[V.PRERELEASEIDENTIFIER]}(?:\\.${z[V.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${z[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[V.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${VH}+`);Le("BUILD",`(?:\\+(${z[V.BUILDIDENTIFIER]}(?:\\.${z[V.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${z[V.MAINVERSION]}${z[V.PRERELEASE]}?${z[V.BUILD]}?`);Le("FULL",`^${z[V.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${z[V.MAINVERSIONLOOSE]}${z[V.PRERELEASELOOSE]}?${z[V.BUILD]}?`);Le("LOOSE",`^${z[V.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${z[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${z[V.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:${z[V.PRERELEASE]})?${z[V.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:${z[V.PRERELEASELOOSE]})?${z[V.BUILD]}?)?)?`);Le("XRANGE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${zH}})(?:\\.(\\d{1,${zH}}))?(?:\\.(\\d{1,${zH}}))?`);Le("COERCE",`${z[V.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",z[V.COERCEPLAIN]+`(?:${z[V.PRERELEASE]})?(?:${z[V.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",z[V.COERCE],!0);Le("COERCERTLFULL",z[V.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${z[V.LONETILDE]}\\s+`,!0);pc.tildeTrimReplace="$1~";Le("TILDE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${z[V.LONECARET]}\\s+`,!0);pc.caretTrimReplace="$1^";Le("CARET",`^${z[V.LONECARET]}${z[V.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${z[V.LONECARET]}${z[V.XRANGEPLAINLOOSE]}$`);Le("COMPARATORLOOSE",`^${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]})$|^$`);Le("COMPARATOR",`^${z[V.GTLT]}\\s*(${z[V.FULLPLAIN]})$|^$`);Le("COMPARATORTRIM",`(\\s*)${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]}|${z[V.XRANGEPLAIN]})`,!0);pc.comparatorTrimReplace="$1$2$3";Le("HYPHENRANGE",`^\\s*(${z[V.XRANGEPLAIN]})\\s+-\\s+(${z[V.XRANGEPLAIN]})\\s*$`);Le("HYPHENRANGELOOSE",`^\\s*(${z[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[V.XRANGEPLAINLOOSE]})\\s*$`);Le("STAR","(<|>)?=?\\s*\\*");Le("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Le("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var kN=S((Sir,qfe)=>{"use strict";var Fdt=Object.freeze({loose:!0}),Udt=Object.freeze({}),qdt=i(t=>t?typeof t!="object"?Fdt:t:Udt,"parseOptions");qfe.exports=qdt});var WH=S((xir,Hfe)=>{"use strict";var $fe=/^[0-9]+$/,Gfe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tGfe(e,t),"rcompareIdentifiers");Hfe.exports={compareIdentifiers:Gfe,rcompareIdentifiers:$dt}});var Bn=S((Bir,Vfe)=>{"use strict";var ON=gS(),{MAX_LENGTH:zfe,MAX_SAFE_INTEGER:LN}=sg(),{safeRe:MN,t:FN}=og(),Gdt=kN(),{compareIdentifiers:JH}=WH(),Hdt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nzfe)throw new TypeError(`version is longer than ${zfe} characters`);ON("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?MN[FN.LOOSE]:MN[FN.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>LN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>LN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>LN||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(ON("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 JH(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(ON("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 JH(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?MN[FN.PRERELEASELOOSE]:MN[FN.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]),Hdt(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}};Vfe.exports=YH});var Nd=S((Nir,Jfe)=>{"use strict";var Wfe=Bn(),zdt=i((t,e,r=!1)=>{if(t instanceof Wfe)return t;try{return new Wfe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Jfe.exports=zdt});var jfe=S((Pir,Yfe)=>{"use strict";var Vdt=Nd(),Wdt=i((t,e)=>{let r=Vdt(t,e);return r?r.version:null},"valid");Yfe.exports=Wdt});var Xfe=S((vir,Kfe)=>{"use strict";var Jdt=Nd(),Ydt=i((t,e)=>{let r=Jdt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Kfe.exports=Ydt});var tme=S((Dir,eme)=>{"use strict";var Zfe=Bn(),jdt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Zfe(t instanceof Zfe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");eme.exports=jdt});var sme=S((Oir,nme)=>{"use strict";var rme=Nd(),Kdt=i((t,e)=>{let r=rme(t,null,!0),n=rme(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");nme.exports=Kdt});var ime=S((Mir,ome)=>{"use strict";var Xdt=Bn(),Zdt=i((t,e)=>new Xdt(t,e).major,"major");ome.exports=Zdt});var cme=S((Uir,ame)=>{"use strict";var ept=Bn(),tpt=i((t,e)=>new ept(t,e).minor,"minor");ame.exports=tpt});var ume=S(($ir,lme)=>{"use strict";var rpt=Bn(),npt=i((t,e)=>new rpt(t,e).patch,"patch");lme.exports=npt});var pme=S((Hir,dme)=>{"use strict";var spt=Nd(),opt=i((t,e)=>{let r=spt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");dme.exports=opt});var pi=S((Vir,mme)=>{"use strict";var fme=Bn(),ipt=i((t,e,r)=>new fme(t,r).compare(new fme(e,r)),"compare");mme.exports=ipt});var Ame=S((Jir,hme)=>{"use strict";var apt=pi(),cpt=i((t,e,r)=>apt(e,t,r),"rcompare");hme.exports=cpt});var yme=S((jir,gme)=>{"use strict";var lpt=pi(),upt=i((t,e)=>lpt(t,e,!0),"compareLoose");gme.exports=upt});var UN=S((Xir,Cme)=>{"use strict";var Eme=Bn(),dpt=i((t,e,r)=>{let n=new Eme(t,r),s=new Eme(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Cme.exports=dpt});var Sme=S((ear,Ime)=>{"use strict";var ppt=UN(),fpt=i((t,e)=>t.sort((r,n)=>ppt(r,n,e)),"sort");Ime.exports=fpt});var xme=S((rar,wme)=>{"use strict";var mpt=UN(),hpt=i((t,e)=>t.sort((r,n)=>mpt(n,r,e)),"rsort");wme.exports=hpt});var yS=S((sar,bme)=>{"use strict";var Apt=pi(),gpt=i((t,e,r)=>Apt(t,e,r)>0,"gt");bme.exports=gpt});var qN=S((iar,Bme)=>{"use strict";var ypt=pi(),Ept=i((t,e,r)=>ypt(t,e,r)<0,"lt");Bme.exports=Ept});var jH=S((car,Rme)=>{"use strict";var Cpt=pi(),Ipt=i((t,e,r)=>Cpt(t,e,r)===0,"eq");Rme.exports=Ipt});var KH=S((uar,Nme)=>{"use strict";var Spt=pi(),wpt=i((t,e,r)=>Spt(t,e,r)!==0,"neq");Nme.exports=wpt});var $N=S((par,Tme)=>{"use strict";var xpt=pi(),bpt=i((t,e,r)=>xpt(t,e,r)>=0,"gte");Tme.exports=bpt});var GN=S((mar,Pme)=>{"use strict";var Bpt=pi(),Rpt=i((t,e,r)=>Bpt(t,e,r)<=0,"lte");Pme.exports=Rpt});var XH=S((Aar,_me)=>{"use strict";var Npt=jH(),Tpt=KH(),Ppt=yS(),_pt=$N(),vpt=qN(),Qpt=GN(),Dpt=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 Npt(t,r,n);case"!=":return Tpt(t,r,n);case">":return Ppt(t,r,n);case">=":return _pt(t,r,n);case"<":return vpt(t,r,n);case"<=":return Qpt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");_me.exports=Dpt});var Qme=S((yar,vme)=>{"use strict";var kpt=Bn(),Opt=Nd(),{safeRe:HN,t:zN}=og(),Lpt=i((t,e)=>{if(t instanceof kpt)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?HN[zN.COERCEFULL]:HN[zN.COERCE]);else{let l=e.includePrerelease?HN[zN.COERCERTLFULL]:HN[zN.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 Opt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");vme.exports=Lpt});var kme=S((Car,Dme)=>{"use strict";var Mpt=Nd(),Fpt=sg(),Upt=Bn(),qpt=i((t,e,r)=>{if(!Fpt.RELEASE_TYPES.includes(e))return null;let n=$pt(t,r);return n&&Gpt(n,e)},"truncate"),$pt=i((t,e)=>{let r=t instanceof Upt?t.version:t;return Mpt(r,e)},"cloneInputVersion"),Gpt=i((t,e)=>{if(Hpt(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"),Hpt=i(t=>t.startsWith("pre"),"isPrerelease");Dme.exports=qpt});var Lme=S((Sar,Ome)=>{"use strict";var ZH=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}};Ome.exports=ZH});var fi=S((xar,qme)=>{"use strict";var zpt=/\s+/g,ez=class t{static{i(this,"Range")}constructor(e,r){if(r=Wpt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof tz)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(zpt," "),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=>!Fme(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&&rft(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(tft,"");let n=((this.options.includePrerelease&&Zpt)|(this.options.loose&&eft))+":"+e,s=Mme.get(n);if(s)return s;let o=this.options.loose,a=o?fs[Rn.HYPHENRANGELOOSE]:fs[Rn.HYPHENRANGE];e=e.replace(a,fft(this.options.includePrerelease)),Mt("hyphen replace",e),e=e.replace(fs[Rn.COMPARATORTRIM],jpt),Mt("comparator trim",e),e=e.replace(fs[Rn.TILDETRIM],Kpt),Mt("tilde trim",e),e=e.replace(fs[Rn.CARETTRIM],Xpt),Mt("caret trim",e);let c=e.split(" ").map(p=>nft(p,this.options)).join(" ").split(/\s+/).map(p=>pft(p,this.options));o&&(c=c.filter(p=>(Mt("loose invalid filter",p,this.options),!!p.match(fs[Rn.COMPARATORLOOSE])))),Mt("range list",c);let l=new Map,u=c.map(p=>new tz(p,this.options));for(let p of u){if(Fme(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Mme.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Ume(n,r)&&e.set.some(s=>Ume(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 Jpt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),rft=i(t=>t.value==="","isAny"),Ume=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"),nft=i((t,e)=>(t=t.replace(fs[Rn.BUILD],""),Mt("comp",t,e),t=aft(t,e),Mt("caret",t),t=oft(t,e),Mt("tildes",t),t=lft(t,e),Mt("xrange",t),t=dft(t,e),Mt("stars",t),t),"parseComparator"),Hr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),sft=i((t,e,r)=>Hr(t)&&!Hr(e)||Hr(e)&&r&&!Hr(r),"invalidXRangeOrder"),oft=i((t,e)=>t.trim().split(/\s+/).map(r=>ift(r,e)).join(" "),"replaceTildes"),ift=i((t,e)=>{let r=e.loose?fs[Rn.TILDELOOSE]:fs[Rn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("tilde",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Mt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Mt("tilde return",u),u})},"replaceTilde"),aft=i((t,e)=>t.trim().split(/\s+/).map(r=>cft(r,e)).join(" "),"replaceCarets"),cft=i((t,e)=>{Mt("caret",t,e);let r=e.loose?fs[Rn.CARETLOOSE]:fs[Rn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("caret",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Mt("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`):(Mt("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`),Mt("caret return",u),u})},"replaceCaret"),lft=i((t,e)=>(Mt("replaceXRanges",t,e),t.split(/\s+/).map(r=>uft(r,e)).join(" ")),"replaceXRanges"),uft=i((t,e)=>{t=t.trim();let r=e.loose?fs[Rn.XRANGELOOSE]:fs[Rn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Mt("xRange",t,n,s,o,a,c,l),sft(o,a,c))return t;let u=Hr(o),d=u||Hr(a),p=d||Hr(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`),Mt("xRange return",n),n})},"replaceXRange"),dft=i((t,e)=>(Mt("replaceStars",t,e),t.trim().replace(fs[Rn.STAR],"")),"replaceStars"),pft=i((t,e)=>(Mt("replaceGTE0",t,e),t.trim().replace(fs[e.includePrerelease?Rn.GTE0PRE:Rn.GTE0],"")),"replaceGTE0"),fft=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Hr(n)?r="":Hr(s)?r=`>=${n}.0.0${t?"-0":""}`:Hr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Hr(u)?l="":Hr(d)?l=`<${+u+1}.0.0-0`:Hr(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"),mft=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 ES=S((Bar,Wme)=>{"use strict";var CS=Symbol("SemVer ANY"),sz=class t{static{i(this,"Comparator")}static get ANY(){return CS}constructor(e,r){if(r=$me(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),nz("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===CS?this.value="":this.value=this.operator+this.semver.version,nz("comp",this)}parse(e){let r=this.options.loose?Gme[Hme.COMPARATORLOOSE]:Gme[Hme.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 zme(n[2],this.options.loose):this.semver=CS}toString(){return this.value}test(e){if(nz("Comparator.test",e,this.options.loose),this.semver===CS||e===CS)return!0;if(typeof e=="string")try{e=new zme(e,this.options)}catch{return!1}return rz(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 Vme(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Vme(this.value,r).test(e.semver):(r=$me(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("=")||rz(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||rz(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Wme.exports=sz;var $me=kN(),{safeRe:Gme,t:Hme}=og(),rz=XH(),nz=gS(),zme=Bn(),Vme=fi()});var IS=S((Nar,Jme)=>{"use strict";var hft=fi(),Aft=i((t,e,r)=>{try{e=new hft(e,r)}catch{return!1}return e.test(t)},"satisfies");Jme.exports=Aft});var jme=S((Par,Yme)=>{"use strict";var gft=fi(),yft=i((t,e)=>new gft(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Yme.exports=yft});var Xme=S((Qar,Kme)=>{"use strict";var Eft=Bn(),Cft=fi(),Ift=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Cft(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Eft(n,r))}),n},"maxSatisfying");Kme.exports=Ift});var ehe=S((kar,Zme)=>{"use strict";var Sft=Bn(),wft=fi(),xft=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new wft(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Sft(n,r))}),n},"minSatisfying");Zme.exports=xft});var nhe=S((Lar,rhe)=>{"use strict";var oz=Bn(),bft=fi(),the=yS(),Bft=i((t,e)=>{t=new bft(t,e);let r=new oz("0.0.0");if(t.test(r)||(r=new oz("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new oz(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||the(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||the(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");rhe.exports=Bft});var ohe=S((Far,she)=>{"use strict";var Rft=fi(),Nft=i((t,e)=>{try{return new Rft(t,e).range||"*"}catch{return null}},"validRange");she.exports=Nft});var VN=S((qar,lhe)=>{"use strict";var Tft=Bn(),che=ES(),{ANY:Pft}=che,_ft=fi(),vft=IS(),ihe=yS(),ahe=qN(),Qft=GN(),Dft=$N(),kft=i((t,e,r,n)=>{t=new Tft(t,n),e=new _ft(e,n);let s,o,a,c,l;switch(r){case">":s=ihe,o=Qft,a=ahe,c=">",l=">=";break;case"<":s=ahe,o=Dft,a=ihe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vft(t,e,n))return!1;for(let u=0;u{m.semver===Pft&&(m=new che(">=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");lhe.exports=kft});var dhe=S((Gar,uhe)=>{"use strict";var Oft=VN(),Lft=i((t,e,r)=>Oft(t,e,">",r),"gtr");uhe.exports=Lft});var fhe=S((zar,phe)=>{"use strict";var Mft=VN(),Fft=i((t,e,r)=>Mft(t,e,"<",r),"ltr");phe.exports=Fft});var Ahe=S((War,hhe)=>{"use strict";var mhe=fi(),Uft=i((t,e,r)=>(t=new mhe(t,r),e=new mhe(e,r),t.intersects(e,r)),"intersects");hhe.exports=Uft});var yhe=S((Yar,ghe)=>{"use strict";var qft=IS(),$ft=pi();ghe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>$ft(d,p,r));for(let d of a)qft(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 Ehe=fi(),cz=ES(),{ANY:iz}=cz,az=IS(),lz=pi(),Gft=i((t,e,r={})=>{if(t===e)return!0;t=new Ehe(t,r),e=new Ehe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=zft(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),Hft=[new cz(">=0.0.0-0")],Che=[new cz(">=0.0.0")],zft=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===iz){if(e.length===1&&e[0].semver===iz)return!0;r.includePrerelease?t=Hft:t=Che}if(e.length===1&&e[0].semver===iz){if(r.includePrerelease)return!0;e=Che}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=Ihe(s,m,r):m.operator==="<"||m.operator==="<="?o=She(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=lz(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&&!az(m,String(s),r)||o&&!az(m,String(o),r))return null;for(let h of e)if(!az(m,String(h),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=Ihe(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=She(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"),Ihe=i((t,e,r)=>{if(!t)return e;let n=lz(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),She=i((t,e,r)=>{if(!t)return e;let n=lz(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");whe.exports=Gft});var Nhe=S((Xar,Rhe)=>{"use strict";var uz=og(),bhe=sg(),Vft=Bn(),Bhe=WH(),Wft=Nd(),Jft=jfe(),Yft=Xfe(),jft=tme(),Kft=sme(),Xft=ime(),Zft=cme(),emt=ume(),tmt=pme(),rmt=pi(),nmt=Ame(),smt=yme(),omt=UN(),imt=Sme(),amt=xme(),cmt=yS(),lmt=qN(),umt=jH(),dmt=KH(),pmt=$N(),fmt=GN(),mmt=XH(),hmt=Qme(),Amt=kme(),gmt=ES(),ymt=fi(),Emt=IS(),Cmt=jme(),Imt=Xme(),Smt=ehe(),wmt=nhe(),xmt=ohe(),bmt=VN(),Bmt=dhe(),Rmt=fhe(),Nmt=Ahe(),Tmt=yhe(),Pmt=xhe();Rhe.exports={parse:Wft,valid:Jft,clean:Yft,inc:jft,diff:Kft,major:Xft,minor:Zft,patch:emt,prerelease:tmt,compare:rmt,rcompare:nmt,compareLoose:smt,compareBuild:omt,sort:imt,rsort:amt,gt:cmt,lt:lmt,eq:umt,neq:dmt,gte:pmt,lte:fmt,cmp:mmt,coerce:hmt,truncate:Amt,Comparator:gmt,Range:ymt,satisfies:Emt,toComparators:Cmt,maxSatisfying:Imt,minSatisfying:Smt,minVersion:wmt,validRange:xmt,outside:bmt,gtr:Bmt,ltr:Rmt,intersects:Nmt,simplifyRange:Tmt,subset:Pmt,SemVer:Vft,re:uz.re,src:uz.src,tokens:uz.t,SEMVER_SPEC_VERSION:bhe.SEMVER_SPEC_VERSION,RELEASE_TYPES:bhe.RELEASE_TYPES,compareIdentifiers:Bhe.compareIdentifiers,rcompareIdentifiers:Bhe.rcompareIdentifiers}});var gAe=S((rur,AAe)=>{var pg=1e3,fg=pg*60,mg=fg*60,im=mg*24,pht=im*7,fht=im*365.25;AAe.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return mht(t);if(r==="number"&&isFinite(t))return e.long?Aht(t):hht(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function mht(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*fht;case"weeks":case"week":case"w":return r*pht;case"days":case"day":case"d":return r*im;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mg;case"minutes":case"minute":case"mins":case"min":case"m":return r*fg;case"seconds":case"second":case"secs":case"sec":case"s":return r*pg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(mht,"parse");function hht(t){var e=Math.abs(t);return e>=im?Math.round(t/im)+"d":e>=mg?Math.round(t/mg)+"h":e>=fg?Math.round(t/fg)+"m":e>=pg?Math.round(t/pg)+"s":t+"ms"}i(hht,"fmtShort");function Aht(t){var e=Math.abs(t);return e>=im?yT(t,e,im,"day"):e>=mg?yT(t,e,mg,"hour"):e>=fg?yT(t,e,fg,"minute"):e>=pg?yT(t,e,pg,"second"):t+" ms"}i(Aht,"fmtLong");function yT(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(yT,"plural")});var kz=S((sur,yAe)=>{function ght(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=gAe(),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(_==="%%")return"%";b++;let Y=r.formatters[v];if(typeof Y=="function"){let Qe=y[b];_=Y.call(E,Qe),y.splice(b,1),b--}return _}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return i(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,h=r.enabled(d)),h),"get"),set:i(y=>{f=y},"set")}),typeof r.init=="function"&&r.init(A),A}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{To.formatArgs=Eht;To.save=Cht;To.load=Iht;To.useColors=yht;To.storage=Sht();To.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`."))}})();To.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 yht(){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(yht,"useColors");function Eht(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ET.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(Eht,"formatArgs");To.log=console.debug||console.log||(()=>{});function Cht(t){try{t?To.storage.setItem("debug",t):To.storage.removeItem("debug")}catch{}}i(Cht,"save");function Iht(){let t;try{t=To.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(Iht,"load");function Sht(){try{return localStorage}catch{}}i(Sht,"localstorage");ET.exports=kz()(To);var{formatters:wht}=ET.exports;wht.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var IAe=S((aur,CAe)=>{"use strict";CAe.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 xht=require("os"),SAe=require("tty"),hi=IAe(),{env:on}=process,_d;hi("no-color")||hi("no-colors")||hi("color=false")||hi("color=never")?_d=0:(hi("color")||hi("colors")||hi("color=true")||hi("color=always"))&&(_d=1);"FORCE_COLOR"in on&&(on.FORCE_COLOR==="true"?_d=1:on.FORCE_COLOR==="false"?_d=0:_d=on.FORCE_COLOR.length===0?1:Math.min(parseInt(on.FORCE_COLOR,10),3));function Oz(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(Oz,"translateLevel");function Lz(t,e){if(_d===0)return 0;if(hi("color=16m")||hi("color=full")||hi("color=truecolor"))return 3;if(hi("color=256"))return 2;if(t&&!e&&_d===void 0)return 0;let r=_d||0;if(on.TERM==="dumb")return r;if(process.platform==="win32"){let n=xht.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in on)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in on)||on.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in on)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(on.TEAMCITY_VERSION)?1:0;if(on.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in on){let n=parseInt((on.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(on.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(on.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(on.TERM)||"COLORTERM"in on?1:r}i(Lz,"supportsColor");function bht(t){let e=Lz(t,t&&t.isTTY);return Oz(e)}i(bht,"getSupportLevel");wAe.exports={supportsColor:bht,stdout:Oz(Lz(!0,SAe.isatty(1))),stderr:Oz(Lz(!0,SAe.isatty(2)))}});var BAe=S((Nn,IT)=>{var Bht=require("tty"),CT=require("util");Nn.init=Qht;Nn.log=Pht;Nn.formatArgs=Nht;Nn.save=_ht;Nn.load=vht;Nn.useColors=Rht;Nn.destroy=CT.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Nn.colors=[6,2,3,4,5,1];try{let t=xAe();t&&(t.stderr||t).level>=2&&(Nn.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{}Nn.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 Rht(){return"colors"in Nn.inspectOpts?!!Nn.inspectOpts.colors:Bht.isatty(process.stderr.fd)}i(Rht,"useColors");function Nht(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+"+CT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Rht()+e+" "+t[0]}i(Bht,"formatArgs");function Rht(){return Nn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Rht,"getDate");function Nht(...t){return process.stderr.write(ET.format(...t)+` -`)}i(Nht,"log");function Tht(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(Tht,"save");function Pht(){return process.env.DEBUG}i(Pht,"load");function _ht(t){t.inspectOpts={};let e=Object.keys(Nn.inspectOpts);for(let r=0;re.trim()).join(" ")};xAe.O=function(t){return this.inspectOpts.colors=this.useColors,ET.inspect(t,this.inspectOpts)}});var im=S((iur,Lz)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Lz.exports=yAe():Lz.exports=bAe()});var NAe=S(qs=>{"use strict";var vht=qs&&qs.__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]})),Qht=qs&&qs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BAe=qs&&qs.__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)&&vht(e,t,r);return Qht(e,t),e};Object.defineProperty(qs,"__esModule",{value:!0});qs.req=qs.json=qs.toBuffer=void 0;var Dht=BAe(require("http")),kht=BAe(require("https"));async function RAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(RAe,"toBuffer");qs.toBuffer=RAe;async function Oht(t){let r=(await RAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Oht,"json");qs.json=Oht;function Lht(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?kht:Dht).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(Lht,"req");qs.req=Lht});var vAe=S(Po=>{"use strict";var PAe=Po&&Po.__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]})),Mht=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Ae=Po&&Po.__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)&&PAe(e,t,r);return Mht(e,t),e},Fht=Po&&Po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PAe(e,t,r)};Object.defineProperty(Po,"__esModule",{value:!0});Po.Agent=void 0;var Uht=_Ae(require("net")),TAe=_Ae(require("http")),qht=require("https");Fht(NAe(),Po);var Ac=Symbol("AgentBaseInternalState"),Mz=class extends TAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ac]={}}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 Uht.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))?qht.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 TAe.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ac].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Ac].currentSocket;if(this[Ac].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ac].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ac]&&(this[Ac].defaultPort=e)}get protocol(){return this[Ac].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ac]&&(this[Ac].protocol=e)}};Po.Agent=Mz});var QAe=S(mg=>{"use strict";var $ht=mg&&mg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mg,"__esModule",{value:!0});mg.parseProxyResponse=void 0;var Ght=$ht(im()),IT=(0,Ght.default)("https-proxy-agent:parse-proxy-response");function Hht(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(),IT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),IT("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 +`+o),t.push(s+"m+"+IT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Tht()+e+" "+t[0]}i(Nht,"formatArgs");function Tht(){return Nn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Tht,"getDate");function Pht(...t){return process.stderr.write(CT.format(...t)+` +`)}i(Pht,"log");function _ht(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(_ht,"save");function vht(){return process.env.DEBUG}i(vht,"load");function Qht(t){t.inspectOpts={};let e=Object.keys(Nn.inspectOpts);for(let r=0;re.trim()).join(" ")};bAe.O=function(t){return this.inspectOpts.colors=this.useColors,CT.inspect(t,this.inspectOpts)}});var am=S((dur,Mz)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Mz.exports=EAe():Mz.exports=BAe()});var TAe=S(qs=>{"use strict";var Dht=qs&&qs.__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]})),kht=qs&&qs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),RAe=qs&&qs.__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)&&Dht(e,t,r);return kht(e,t),e};Object.defineProperty(qs,"__esModule",{value:!0});qs.req=qs.json=qs.toBuffer=void 0;var Oht=RAe(require("http")),Lht=RAe(require("https"));async function NAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(NAe,"toBuffer");qs.toBuffer=NAe;async function Mht(t){let r=(await NAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Mht,"json");qs.json=Mht;function Fht(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Lht:Oht).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(Fht,"req");qs.req=Fht});var QAe=S(Po=>{"use strict";var _Ae=Po&&Po.__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]})),Uht=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vAe=Po&&Po.__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)&&_Ae(e,t,r);return Uht(e,t),e},qht=Po&&Po.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_Ae(e,t,r)};Object.defineProperty(Po,"__esModule",{value:!0});Po.Agent=void 0;var $ht=vAe(require("net")),PAe=vAe(require("http")),Ght=require("https");qht(TAe(),Po);var Ac=Symbol("AgentBaseInternalState"),Fz=class extends PAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ac]={}}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 $ht.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))?Ght.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 PAe.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ac].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Ac].currentSocket;if(this[Ac].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ac].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ac]&&(this[Ac].defaultPort=e)}get protocol(){return this[Ac].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ac]&&(this[Ac].protocol=e)}};Po.Agent=Fz});var DAe=S(hg=>{"use strict";var Hht=hg&&hg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hg,"__esModule",{value:!0});hg.parseProxyResponse=void 0;var zht=Hht(am()),ST=(0,zht.default)("https-proxy-agent:parse-proxy-response");function Vht(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(),ST("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),ST("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(f===-1){IT("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r -`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.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(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}IT("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Hht,"parseProxyResponse");mg.parseProxyResponse=Hht});var FAe=S(Ai=>{"use strict";var zht=Ai&&Ai.__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]})),Vht=Ai&&Ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LAe=Ai&&Ai.__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)&&zht(e,t,r);return Vht(e,t),e},MAe=Ai&&Ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.HttpsProxyAgent=void 0;var ST=LAe(require("net")),DAe=LAe(require("tls")),Wht=MAe(require("assert")),Jht=MAe(im()),Yht=vAe(),jht=require("url"),Kht=QAe(),PS=(0,Jht.default)("https-proxy-agent"),kAe=i(t=>t.servername===void 0&&t.host&&!ST.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),wT=class extends Yht.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new jht.URL(e):e,this.proxyHeaders=r?.headers??{},PS("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?OAe(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:"?(PS("Creating `tls.Socket`: %o",this.connectOpts),s=DAe.connect(kAe(this.connectOpts))):(PS("Creating `net.Socket`: %o",this.connectOpts),s=ST.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ST.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`);if(f===-1){ST("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r +`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.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(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}ST("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Vht,"parseProxyResponse");hg.parseProxyResponse=Vht});var UAe=S(Ai=>{"use strict";var Wht=Ai&&Ai.__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]})),Jht=Ai&&Ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MAe=Ai&&Ai.__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)&&Wht(e,t,r);return Jht(e,t),e},FAe=Ai&&Ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.HttpsProxyAgent=void 0;var wT=MAe(require("net")),kAe=MAe(require("tls")),Yht=FAe(require("assert")),jht=FAe(am()),Kht=QAe(),Xht=require("url"),Zht=DAe(),_S=(0,jht.default)("https-proxy-agent"),OAe=i(t=>t.servername===void 0&&t.host&&!wT.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),xT=class extends Kht.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Xht.URL(e):e,this.proxyHeaders=r?.headers??{},_S("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?LAe(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:"?(_S("Creating `tls.Socket`: %o",this.connectOpts),s=kAe.connect(OAe(this.connectOpts))):(_S("Creating `net.Socket`: %o",this.connectOpts),s=wT.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=wT.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,Kht.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",Xht),r.secureEndpoint?(PS("Upgrading socket connection to TLS"),DAe.connect({...OAe(kAe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new ST.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{PS("Replaying proxy buffer for failed request"),(0,Wht.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};wT.protocols=["http","https"];Ai.HttpsProxyAgent=wT;function Xht(t){t.resume()}i(Xht,"resume");function OAe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(OAe,"omit")});var $Ae=S($s=>{"use strict";var Zht=$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]})),eAt=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UAe=$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)&&Zht(e,t,r);return eAt(e,t),e};Object.defineProperty($s,"__esModule",{value:!0});$s.req=$s.json=$s.toBuffer=void 0;var tAt=UAe(require("http")),rAt=UAe(require("https"));async function qAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(qAe,"toBuffer");$s.toBuffer=qAe;async function nAt(t){let r=(await qAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(nAt,"json");$s.json=nAt;function sAt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?rAt:tAt).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(sAt,"req");$s.req=sAt});var zAe=S(_o=>{"use strict";var HAe=_o&&_o.__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]})),oAt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iAt=_o&&_o.__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)&&HAe(e,t,r);return oAt(e,t),e},aAt=_o&&_o.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HAe(e,t,r)};Object.defineProperty(_o,"__esModule",{value:!0});_o.Agent=void 0;var GAe=iAt(require("http"));aAt($Ae(),_o);var gc=Symbol("AgentBaseInternalState"),Fz=class extends GAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[gc]={}}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 GAe.Agent)return o.addRequest(e,s);this[gc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[gc].currentSocket;if(this[gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[gc]&&(this[gc].defaultPort=e)}get protocol(){return this[gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[gc]&&(this[gc].protocol=e)}};_o.Agent=Fz});var JAe=S(gi=>{"use strict";var cAt=gi&&gi.__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]})),lAt=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WAe=gi&&gi.__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)&&cAt(e,t,r);return lAt(e,t),e},uAt=gi&&gi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.HttpProxyAgent=void 0;var dAt=WAe(require("net")),pAt=WAe(require("tls")),fAt=uAt(im()),mAt=require("events"),hAt=zAe(),VAe=require("url"),hg=(0,fAt.default)("http-proxy-agent"),xT=class extends hAt.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new VAe.URL(e):e,this.proxyHeaders=r?.headers??{},hg("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?AAt(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 VAe.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;hg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hg("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`;let l=(0,Zht.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",eAt),r.secureEndpoint?(_S("Upgrading socket connection to TLS"),kAe.connect({...LAe(OAe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new wT.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{_S("Replaying proxy buffer for failed request"),(0,Yht.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};xT.protocols=["http","https"];Ai.HttpsProxyAgent=xT;function eAt(t){t.resume()}i(eAt,"resume");function LAe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(LAe,"omit")});var GAe=S($s=>{"use strict";var tAt=$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]})),rAt=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qAe=$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)&&tAt(e,t,r);return rAt(e,t),e};Object.defineProperty($s,"__esModule",{value:!0});$s.req=$s.json=$s.toBuffer=void 0;var nAt=qAe(require("http")),sAt=qAe(require("https"));async function $Ae(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i($Ae,"toBuffer");$s.toBuffer=$Ae;async function oAt(t){let r=(await $Ae(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(oAt,"json");$s.json=oAt;function iAt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?sAt:nAt).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(iAt,"req");$s.req=iAt});var VAe=S(_o=>{"use strict";var zAe=_o&&_o.__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]})),aAt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cAt=_o&&_o.__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)&&zAe(e,t,r);return aAt(e,t),e},lAt=_o&&_o.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zAe(e,t,r)};Object.defineProperty(_o,"__esModule",{value:!0});_o.Agent=void 0;var HAe=cAt(require("http"));lAt(GAe(),_o);var gc=Symbol("AgentBaseInternalState"),Uz=class extends HAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[gc]={}}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 HAe.Agent)return o.addRequest(e,s);this[gc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[gc].currentSocket;if(this[gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[gc]&&(this[gc].defaultPort=e)}get protocol(){return this[gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[gc]&&(this[gc].protocol=e)}};_o.Agent=Uz});var YAe=S(gi=>{"use strict";var uAt=gi&&gi.__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]})),dAt=gi&&gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JAe=gi&&gi.__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)&&uAt(e,t,r);return dAt(e,t),e},pAt=gi&&gi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.HttpProxyAgent=void 0;var fAt=JAe(require("net")),mAt=JAe(require("tls")),hAt=pAt(am()),AAt=require("events"),gAt=VAe(),WAe=require("url"),Ag=(0,hAt.default)("http-proxy-agent"),bT=class extends gAt.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new WAe.URL(e):e,this.proxyHeaders=r?.headers??{},Ag("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?yAt(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 WAe.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;Ag("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ag("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),hg("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(hg("Creating `tls.Socket`: %o",this.connectOpts),o=pAt.connect(this.connectOpts)):(hg("Creating `net.Socket`: %o",this.connectOpts),o=dAt.connect(this.connectOpts)),await(0,mAt.once)(o,"connect"),o}};xT.protocols=["http","https"];gi.HttpProxyAgent=xT;function AAt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(AAt,"omit")});var Age=S(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.state=void 0;MT.state={instrumenterImplementation:void 0}});var Qge=S(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.state=void 0;GT.state={operationRequestMap:new WeakMap}});var dCe=S(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var OIt=require("os"),LIt=require("util");function MIt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(MIt,"_interopDefaultLegacy");var FIt=MIt(LIt);function UIt(t,...e){process.stderr.write(`${FIt.default.format(t,...e)}${OIt.EOL}`)}i(UIt,"log");var tCe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nCe,g8=[],y8=[],c_=[];tCe&&E8(tCe);var sCe=Object.assign(t=>oCe(t),{enable:E8,enabled:C8,disable:qIt,log:UIt});function E8(t){nCe=t,g8=[],y8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?y8.push(new RegExp(`^${n.substr(1)}$`)):g8.push(new RegExp(`^${n}$`));for(let n of c_)n.enabled=C8(n.namespace)}i(E8,"enable");function C8(t){if(t.endsWith("*"))return!0;for(let e of y8)if(e.test(t))return!1;for(let e of g8)if(e.test(t))return!0;return!1}i(C8,"enabled");function qIt(){let t=nCe||"";return E8(""),t}i(qIt,"disable");function oCe(t){let e=Object.assign(r,{enabled:C8(t),destroy:$It,log:sCe.log,namespace:t,extend:GIt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),c_.push(e),e}i(oCe,"createDebugger");function $It(){let t=c_.indexOf(this);return t>=0?(c_.splice(t,1),!0):!1}i($It,"destroy");function GIt(t){let e=oCe(`${this.namespace}:${t}`);return e.log=this.log,e}i(GIt,"extend");var gw=sCe,iCe=new Set,i_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,l_,u_=gw("azure");u_.log=(...t)=>{gw.log(...t)};var I8=["verbose","info","warning","error"];i_&&(uCe(i_)?aCe(i_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${i_}'; logging is not enabled. Acceptable values: ${I8.join(", ")}.`));function aCe(t){if(t&&!uCe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${I8.join(",")}`);l_=t;let e=[];for(let r of iCe)lCe(r)&&e.push(r.namespace);gw.enable(e.join(","))}i(aCe,"setLogLevel");function HIt(){return l_}i(HIt,"getLogLevel");var rCe={verbose:400,info:300,warning:200,error:100};function zIt(t){let e=u_.extend(t);return cCe(u_,e),{error:a_(e,"error"),warning:a_(e,"warning"),info:a_(e,"info"),verbose:a_(e,"verbose")}}i(zIt,"createClientLogger");function cCe(t,e){e.log=(...r)=>{t.log(...r)}}i(cCe,"patchLogMethod");function a_(t,e){let r=Object.assign(t.extend(e),{level:e});if(cCe(t,r),lCe(r)){let n=gw.disable();gw.enable(n+","+r.namespace)}return iCe.add(r),r}i(a_,"createLogger");function lCe(t){return!!(l_&&rCe[t.level]<=rCe[l_])}i(lCe,"shouldEnable");function uCe(t){return I8.includes(t)}i(uCe,"isAzureLogLevel");Qg.AzureLogger=u_;Qg.createClientLogger=zIt;Qg.getLogLevel=HIt;Qg.setLogLevel=aCe});var x8=S(Ew=>{"use strict";Object.defineProperty(Ew,"__esModule",{value:!0});var Dg=new WeakMap,d_=new WeakMap,yw=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Dg.set(this,[]),d_.set(this,!1)}get aborted(){if(!d_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return d_.get(this)}static get none(){return new t}addEventListener(e,r){if(!Dg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Dg.get(this).push(r)}removeEventListener(e,r){if(!Dg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Dg.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 pCe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Dg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),d_.set(t,!0)}i(pCe,"abortSignal");var S8=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},w8=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new yw,!!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(){pCe(this._signal)}static timeout(e){let r=new yw,n=setTimeout(pCe,e,r);return typeof n.unref=="function"&&n.unref(),r}};Ew.AbortController=w8;Ew.AbortError=S8;Ew.AbortSignal=yw});var gCe=S(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var VIt=x8(),N8=require("crypto"),b8,WIt=typeof process<"u"&&!!process.version&&!!(!((b8=process.versions)===null||b8===void 0)&&b8.node);function fCe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new VIt.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(fCe,"createAbortablePromise");var JIt="The delay was aborted.";function YIt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return fCe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??JIt})}i(YIt,"delay");function jIt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(jIt,"getRandomIntegerInclusive");function mCe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(mCe,"isObject");function hCe(t){if(mCe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(hCe,"isError");function KIt(t){if(hCe(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(KIt,"getErrorMessage");async function XIt(t,e,r){let n=Buffer.from(t,"base64");return N8.createHmac("sha256",n).update(e).digest(r)}i(XIt,"computeSha256Hmac");async function ZIt(t,e){return N8.createHash("sha256").update(t).digest(e)}i(ZIt,"computeSha256Hash");function T8(t){return typeof t<"u"&&t!==null}i(T8,"isDefined");function eSt(t,e){if(!T8(t)||typeof t!="object")return!1;for(let r of e)if(!ACe(t,r))return!1;return!0}i(eSt,"isObjectWithProperties");function ACe(t,e){return T8(t)&&typeof t=="object"&&e in t}i(ACe,"objectHasProperty");function tSt(){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(tSt,"generateUUID");var B8,R8=typeof((B8=globalThis?.crypto)===null||B8===void 0?void 0:B8.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):N8.randomUUID;R8||(R8=tSt);function rSt(){return R8()}i(rSt,"randomUUID");Es.computeSha256Hash=ZIt;Es.computeSha256Hmac=XIt;Es.createAbortablePromise=fCe;Es.delay=YIt;Es.getErrorMessage=KIt;Es.getRandomIntegerInclusive=jIt;Es.isDefined=T8;Es.isError=hCe;Es.isNode=WIt;Es.isObject=mCe;Es.isObjectWithProperties=eSt;Es.objectHasProperty=ACe;Es.randomUUID=rSt});var MCe=S(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var nSt=dCe(),yCe=x8(),sSt=gCe(),xm=nSt.createClientLogger("core-lro"),CCe=2e3,ICe=["succeeded","canceled","failed"];function SCe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(SCe,"deserializeState");function ECe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(ECe,"setStateError");function oSt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(oSt,"appendReadableErrorMessage");function iSt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=oSt(e,n.message);return{code:r,message:e}}i(iSt,"simplifyError");function wCe(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}=iSt(u);d=`. ${f}. ${m}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),xm.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,aSt({response:c,state:e,processResult:o}))}i(wCe,"processOperationStatus");function aSt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(aSt,"buildResult");async function xCe(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};xm.verbose("LRO: Operation description:",p);let f=r.initState(p),m=s({response:d,state:f,operationLocation:c});return wCe({state:f,status:m,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),f}i(xCe,"initOperation");async function cSt(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(ECe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(xm.verbose(`LRO: Status: +`)+4,e.outputData[0].data=e._header+n.substring(s),Ag("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Ag("Creating `tls.Socket`: %o",this.connectOpts),o=mAt.connect(this.connectOpts)):(Ag("Creating `net.Socket`: %o",this.connectOpts),o=fAt.connect(this.connectOpts)),await(0,AAt.once)(o,"connect"),o}};bT.protocols=["http","https"];gi.HttpProxyAgent=bT;function yAt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(yAt,"omit")});var gge=S(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.state=void 0;FT.state={instrumenterImplementation:void 0}});var Dge=S(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.state=void 0;HT.state={operationRequestMap:new WeakMap}});var pCe=S(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});var MIt=require("os"),FIt=require("util");function UIt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(UIt,"_interopDefaultLegacy");var qIt=UIt(FIt);function $It(t,...e){process.stderr.write(`${qIt.default.format(t,...e)}${MIt.EOL}`)}i($It,"log");var rCe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,sCe,y8=[],E8=[],l_=[];rCe&&C8(rCe);var oCe=Object.assign(t=>iCe(t),{enable:C8,enabled:I8,disable:GIt,log:$It});function C8(t){sCe=t,y8=[],E8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?E8.push(new RegExp(`^${n.substr(1)}$`)):y8.push(new RegExp(`^${n}$`));for(let n of l_)n.enabled=I8(n.namespace)}i(C8,"enable");function I8(t){if(t.endsWith("*"))return!0;for(let e of E8)if(e.test(t))return!1;for(let e of y8)if(e.test(t))return!0;return!1}i(I8,"enabled");function GIt(){let t=sCe||"";return C8(""),t}i(GIt,"disable");function iCe(t){let e=Object.assign(r,{enabled:I8(t),destroy:HIt,log:oCe.log,namespace:t,extend:zIt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),l_.push(e),e}i(iCe,"createDebugger");function HIt(){let t=l_.indexOf(this);return t>=0?(l_.splice(t,1),!0):!1}i(HIt,"destroy");function zIt(t){let e=iCe(`${this.namespace}:${t}`);return e.log=this.log,e}i(zIt,"extend");var yw=oCe,aCe=new Set,a_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,u_,d_=yw("azure");d_.log=(...t)=>{yw.log(...t)};var S8=["verbose","info","warning","error"];a_&&(dCe(a_)?cCe(a_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${a_}'; logging is not enabled. Acceptable values: ${S8.join(", ")}.`));function cCe(t){if(t&&!dCe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${S8.join(",")}`);u_=t;let e=[];for(let r of aCe)uCe(r)&&e.push(r.namespace);yw.enable(e.join(","))}i(cCe,"setLogLevel");function VIt(){return u_}i(VIt,"getLogLevel");var nCe={verbose:400,info:300,warning:200,error:100};function WIt(t){let e=d_.extend(t);return lCe(d_,e),{error:c_(e,"error"),warning:c_(e,"warning"),info:c_(e,"info"),verbose:c_(e,"verbose")}}i(WIt,"createClientLogger");function lCe(t,e){e.log=(...r)=>{t.log(...r)}}i(lCe,"patchLogMethod");function c_(t,e){let r=Object.assign(t.extend(e),{level:e});if(lCe(t,r),uCe(r)){let n=yw.disable();yw.enable(n+","+r.namespace)}return aCe.add(r),r}i(c_,"createLogger");function uCe(t){return!!(u_&&nCe[t.level]<=nCe[u_])}i(uCe,"shouldEnable");function dCe(t){return S8.includes(t)}i(dCe,"isAzureLogLevel");Dg.AzureLogger=d_;Dg.createClientLogger=WIt;Dg.getLogLevel=VIt;Dg.setLogLevel=cCe});var b8=S(Cw=>{"use strict";Object.defineProperty(Cw,"__esModule",{value:!0});var kg=new WeakMap,p_=new WeakMap,Ew=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,kg.set(this,[]),p_.set(this,!1)}get aborted(){if(!p_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return p_.get(this)}static get none(){return new t}addEventListener(e,r){if(!kg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");kg.get(this).push(r)}removeEventListener(e,r){if(!kg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=kg.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 fCe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=kg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),p_.set(t,!0)}i(fCe,"abortSignal");var w8=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},x8=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new Ew,!!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(){fCe(this._signal)}static timeout(e){let r=new Ew,n=setTimeout(fCe,e,r);return typeof n.unref=="function"&&n.unref(),r}};Cw.AbortController=x8;Cw.AbortError=w8;Cw.AbortSignal=Ew});var yCe=S(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var JIt=b8(),T8=require("crypto"),B8,YIt=typeof process<"u"&&!!process.version&&!!(!((B8=process.versions)===null||B8===void 0)&&B8.node);function mCe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new JIt.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(mCe,"createAbortablePromise");var jIt="The delay was aborted.";function KIt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return mCe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??jIt})}i(KIt,"delay");function XIt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(XIt,"getRandomIntegerInclusive");function hCe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(hCe,"isObject");function ACe(t){if(hCe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(ACe,"isError");function ZIt(t){if(ACe(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(ZIt,"getErrorMessage");async function eSt(t,e,r){let n=Buffer.from(t,"base64");return T8.createHmac("sha256",n).update(e).digest(r)}i(eSt,"computeSha256Hmac");async function tSt(t,e){return T8.createHash("sha256").update(t).digest(e)}i(tSt,"computeSha256Hash");function P8(t){return typeof t<"u"&&t!==null}i(P8,"isDefined");function rSt(t,e){if(!P8(t)||typeof t!="object")return!1;for(let r of e)if(!gCe(t,r))return!1;return!0}i(rSt,"isObjectWithProperties");function gCe(t,e){return P8(t)&&typeof t=="object"&&e in t}i(gCe,"objectHasProperty");function nSt(){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(nSt,"generateUUID");var R8,N8=typeof((R8=globalThis?.crypto)===null||R8===void 0?void 0:R8.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):T8.randomUUID;N8||(N8=nSt);function sSt(){return N8()}i(sSt,"randomUUID");Es.computeSha256Hash=tSt;Es.computeSha256Hmac=eSt;Es.createAbortablePromise=mCe;Es.delay=KIt;Es.getErrorMessage=ZIt;Es.getRandomIntegerInclusive=XIt;Es.isDefined=P8;Es.isError=ACe;Es.isNode=YIt;Es.isObject=hCe;Es.isObjectWithProperties=rSt;Es.objectHasProperty=gCe;Es.randomUUID=sSt});var FCe=S(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var oSt=pCe(),ECe=b8(),iSt=yCe(),bm=oSt.createClientLogger("core-lro"),ICe=2e3,SCe=["succeeded","canceled","failed"];function wCe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(wCe,"deserializeState");function CCe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(CCe,"setStateError");function aSt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(aSt,"appendReadableErrorMessage");function cSt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=aSt(e,n.message);return{code:r,message:e}}i(cSt,"simplifyError");function xCe(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}=cSt(u);d=`. ${f}. ${m}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),bm.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,lSt({response:c,state:e,processResult:o}))}i(xCe,"processOperationStatus");function lSt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(lSt,"buildResult");async function bCe(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};bm.verbose("LRO: Operation description:",p);let f=r.initState(p),m=s({response:d,state:f,operationLocation:c});return xCe({state:f,status:m,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),f}i(bCe,"initOperation");async function uSt(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(CCe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(bm.verbose(`LRO: Status: Polling from: ${r.config.operationLocation} Operation status: ${d} - Polling status: ${ICe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(ECe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(cSt,"pollOperationHelper");async function bCe(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:h,isDone:A,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:x}=await cSt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(wCe({status:x,response:I,state:r,stateProxy:n,isDone:A,processResult:p,getError:f,setErrorAsResult:y}),!ICe.includes(x)){let b=d?.(I);b&&h(b);let N=c?.(I,r);if(N!==void 0){let _=E!==N;r.config.operationLocation=N,u?.(N,_)}else u?.(E,!1)}m?.(r,I)}}i(bCe,"pollOperation");function BCe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(BCe,"getOperationLocationPollingUrl");function RCe(t){return t.headers.location}i(RCe,"getLocationHeader");function NCe(t){return t.headers["operation-location"]}i(NCe,"getOperationLocationHeader");function TCe(t){return t.headers["azure-asyncoperation"]}i(TCe,"getAzureAsyncOperationHeader");function lSt(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(lSt,"findResourceLocation");function PCe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=NCe(e),a=TCe(e),c=BCe({operationLocation:o,azureAsyncOperation:a}),l=RCe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:lSt({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(PCe,"inferLroMode");function _Ce(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 v8(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 xm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(_Ce,"transformStatus");function uSt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return _Ce({status:r,statusCode:t.statusCode})}i(uSt,"getStatus");function dSt(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 _Ce({status:o,statusCode:t.statusCode})}i(dSt,"getProvisioningState");function v8(t){return t===202?"running":t<300?"succeeded":"failed"}i(v8,"toOperationStatus");function vCe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?pSt(new Date(e)):r*1e3}}i(vCe,"parseRetryAfter");function QCe(t){let e=t.flatResponse.error;if(!e){xm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xm.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(QCe,"getErrorFromResponse");function pSt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=PCe({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:DCe,setErrorAsResult:o})}i(fSt,"initHttpOperation");function kCe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return BCe({operationLocation:NCe(t),azureAsyncOperation:TCe(t)});case"ResourceLocation":return RCe(t);default:return}}i(kCe,"getOperationLocation");function Q8({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return uSt(t);case"ResourceLocation":return v8(t.statusCode);case"Body":return dSt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(Q8,"getOperationStatus");function OCe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(OCe,"getResourceLocation");function LCe(t){return t.name==="RestError"}i(LCe,"isOperationError");async function mSt(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return bCe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:QCe,updateState:o,getPollingInterval:vCe,getOperationLocation:kCe,getOperationStatus:Q8,isOperationError:LCe,getResourceLocation:OCe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(mSt,"pollHttpOperation");var hSt=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 ASt(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:h,intervalInMs:A=CCe,restoreFrom:y}=p||{},E=hSt(),I=h?(()=>{let De=!1;return(ce,Tt)=>{Tt?h(ce):De||h(ce),De=!0}})():void 0,x=y?SCe(y):await xCe({init:u,stateProxy:E,processResult:f,getOperationStatus:r,withOperationLocation:I,setErrorAsResult:!l}),b,N=new yCe.AbortController,_=new Map,v=i(async()=>_.forEach(De=>De(x)),"handleProgressEvents"),Y="Operation was canceled",Qe=A,ke={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(De=>{let ce=Symbol();return _.set(ce,De),()=>_.delete(ce)},"onProgress"),pollUntilDone:i(De=>b??(b=(async()=>{let{abortSignal:ce}=De||{},{signal:Tt}=ce?new yCe.AbortController([ce,N.signal]):N;if(!ke.isDone())for(await ke.poll({abortSignal:Tt});!ke.isDone();)await sSt.delay(Qe,{abortSignal:Tt}),await ke.poll({abortSignal:Tt});if(l)return ke.getResult();switch(x.status){case"succeeded":return ke.getResult();case"canceled":throw new Error(Y);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(De){if(l){if(ke.isDone())return}else switch(x.status){case"succeeded":return;case"canceled":throw new Error(Y);case"failed":throw x.error}if(await bCe({poll:d,state:x,stateProxy:E,getOperationLocation:e,isOperationError:s,withOperationLocation:I,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:f,getError:c,updateState:m,options:De,setDelay:i(ce=>{Qe=ce},"setDelay"),setErrorAsResult:!l}),await v(),!l)switch(x.status){case"canceled":throw new Error(Y);case"failed":throw x.error}}};return ke}}i(ASt,"buildCreatePoller");async function gSt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return ASt({getStatusFromInitialResponse:DCe,getStatusFromPollResponse:Q8,isOperationError:LCe,getOperationLocation:kCe,getResourceLocation:OCe,getPollingInterval:vCe,getError:QCe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=PCe({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(gSt,"createHttpPoller");var ySt=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"),P8=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=ySt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await fSt({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 mSt({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 xm.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},p_=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},f_=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},m_=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 f_("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 p_("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()}},_8=class extends m_{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=CCe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?SCe(s):{},p=new P8(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))}};bm.LroEngine=_8;bm.Poller=m_;bm.PollerCancelledError=f_;bm.PollerStoppedError=p_;bm.createHttpPoller=gSt});var iIe=S((ANr,FSt)=>{FSt.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 cIe=S((gNr,aIe)=>{var USt=iIe();aIe.exports={version:USt.version}});var R_=S(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.isJsonObject=Fg.typeofJsonValue=void 0;function JSt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(JSt,"typeofJsonValue");Fg.typeofJsonValue=JSt;function YSt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(YSt,"isJsonObject");Fg.isJsonObject=YSt});var T_=S(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});Ug.base64encode=Ug.base64decode=void 0;var bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),N_=[];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(jSt,"base64decode");Ug.base64decode=jSt;function KSt(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=bu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=bu[s|n>>6],e+=bu[n&63],r=0;break}return r&&(e+=bu[s],e+="=",r==1&&(e+="=")),e}i(KSt,"base64encode");Ug.base64encode=KSt});var mIe=S(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.utf8read=void 0;var H8=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function XSt(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(H8(n)),s=0);return r.length?(s&&r.push(H8(n.slice(0,s))),r.join("")):H8(n.slice(0,s))}i(XSt,"utf8read");P_.utf8read=XSt});var Rw=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.WireType=Gc.mergeBinaryOptions=Gc.UnknownFieldHandler=void 0;var ZSt;(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")})(ZSt=Gc.UnknownFieldHandler||(Gc.UnknownFieldHandler={}));function ewt(t,e){return Object.assign(Object.assign({},t),e)}i(ewt,"mergeBinaryOptions");Gc.mergeBinaryOptions=ewt;var twt;(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"})(twt=Gc.WireType||(Gc.WireType={}))});var v_=S(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.varint32read=Ys.varint32write=Ys.int64toString=Ys.int64fromString=Ys.varint64write=Ys.varint64read=void 0;function rwt(){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(nwt,"varint64write");Ys.varint64write=nwt;var __=65536*65536;function swt(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>=__&&(s=s+(n/__|0),n=n%__)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(swt,"int64fromString");Ys.int64fromString=swt;function owt(t,e){if(e>>>0<=2097151)return""+(__*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(owt,"int64toString");Ys.int64toString=owt;function iwt(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(iwt,"varint32write");Ys.varint32write=iwt;function awt(){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(awt,"varint32read");Ys.varint32read=awt});var Gd=S($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.PbLong=$d.PbULong=$d.detectBi=void 0;var Nw=v_(),Rt;function hIe(){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(hIe,"detectBi");$d.detectBi=hIe;hIe();function AIe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(AIe,"assertBi");var gIe=/^-?[0-9]+$/,D_=4294967296,Q_=2147483648,k_=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*D_+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},Tw=class t extends k_{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(),!gIe.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/D_)}throw new Error("unknown value "+typeof e)}toString(){return Rt?this.toBigInt().toString():Nw.int64toString(this.lo,this.hi)}toBigInt(){return AIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigUint64(0,!0)}};$d.PbULong=Tw;Tw.ZERO=new Tw(0,0);var Pw=class t extends k_{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(),!gIe.test(e))throw new Error("string is no integer");let[r,n,s]=Nw.int64fromString(e);if(r){if(s>Q_||s==Q_&&n!=0)throw new Error("signed long too small")}else if(s>=Q_)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/D_):new t(-e,-e/D_).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&Q_)!==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 AIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigInt64(0,!0)}};$d.PbLong=Pw;Pw.ZERO=new Pw(0,0)});var z8=S($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.BinaryReader=$g.binaryReadOptions=void 0;var qg=Rw(),_w=Gd(),yIe=v_(),EIe={readUnknownField:!0,readerFactory:i(t=>new O_(t),"readerFactory")};function cwt(t){return t?Object.assign(Object.assign({},EIe),t):EIe}i(cwt,"binaryReadOptions");$g.binaryReadOptions=cwt;var O_=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=yIe.varint64read,this.uint32=yIe.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 qg.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case qg.WireType.Bit64:this.pos+=4;case qg.WireType.Bit32:this.pos+=4;break;case qg.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case qg.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==qg.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 _w.PbLong(...this.varint64())}uint64(){return new _w.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 _w.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 _w.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new _w.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())}};$g.BinaryReader=O_});var Gg=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.assertFloat32=xi.assertUInt32=xi.assertInt32=xi.assertNever=xi.assert=void 0;function lwt(t,e){if(!t)throw new Error(e)}i(lwt,"assert");xi.assert=lwt;function uwt(t,e){throw new Error(e??"Unexpected object: "+t)}i(uwt,"assertNever");xi.assertNever=uwt;var dwt=34028234663852886e22,pwt=-34028234663852886e22,fwt=4294967295,mwt=2147483647,hwt=-2147483648;function Awt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>mwt||tfwt||t<0)throw new Error("invalid uint 32: "+t)}i(gwt,"assertUInt32");xi.assertUInt32=gwt;function ywt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>dwt||t{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.BinaryWriter=zg.binaryWriteOptions=void 0;var vw=Gd(),Qw=v_(),Hg=Gg(),CIe={writeUnknownFields:!0,writerFactory:i(()=>new L_,"writerFactory")};function Ewt(t){return t?Object.assign(Object.assign({},CIe),t):CIe}i(Ewt,"binaryWriteOptions");zg.binaryWriteOptions=Ewt;var L_=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(Hg.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Hg.assertInt32(e),Qw.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){Hg.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){Hg.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Hg.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Hg.assertInt32(e),e=(e<<1^e>>31)>>>0,Qw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=vw.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=vw.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=vw.PbLong.from(e);return Qw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=vw.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return Qw.varint64write(s,o,this.buf),this}uint64(e){let r=vw.PbULong.from(e);return Qw.varint64write(r.lo,r.hi,this.buf),this}};zg.BinaryWriter=L_});var W8=S(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.mergeJsonOptions=Hd.jsonWriteOptions=Hd.jsonReadOptions=void 0;var IIe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},SIe={ignoreUnknownFields:!1};function Cwt(t){return t?Object.assign(Object.assign({},SIe),t):SIe}i(Cwt,"jsonReadOptions");Hd.jsonReadOptions=Cwt;function Iwt(t){return t?Object.assign(Object.assign({},IIe),t):IIe}i(Iwt,"jsonWriteOptions");Hd.jsonWriteOptions=Iwt;function Swt(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(Swt,"mergeJsonOptions");Hd.mergeJsonOptions=Swt});var Dw=S(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.MESSAGE_TYPE=void 0;M_.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var J8=S(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.lowerCamelCase=void 0;function wwt(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.readMessageOption=Yr.readFieldOption=Yr.readFieldOptions=Yr.normalizeFieldInfo=Yr.RepeatType=Yr.LongType=Yr.ScalarType=void 0;var wIe=J8(),xwt;(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"})(xwt=Yr.ScalarType||(Yr.ScalarType={}));var bwt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(bwt=Yr.LongType||(Yr.LongType={}));var xIe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(xIe=Yr.RepeatType||(Yr.RepeatType={}));function Bwt(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:wIe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:wIe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:xIe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(Bwt,"normalizeFieldInfo");Yr.normalizeFieldInfo=Bwt;function Rwt(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(Rwt,"readFieldOptions");Yr.readFieldOptions=Rwt;function Nwt(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(Nwt,"readFieldOption");Yr.readFieldOption=Nwt;function Twt(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(Twt,"readMessageOption");Yr.readMessageOption=Twt});var Y8=S(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.getSelectedOneofValue=js.clearOneofValue=js.setUnknownOneofValue=js.setOneofValue=js.getOneofValue=js.isOneofGroup=void 0;function Pwt(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(Pwt,"isOneofGroup");js.isOneofGroup=Pwt;function _wt(t,e){return t[e]}i(_wt,"getOneofValue");js.getOneofValue=_wt;function vwt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(vwt,"setOneofValue");js.setOneofValue=vwt;function Qwt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(Qwt,"setUnknownOneofValue");js.setUnknownOneofValue=Qwt;function Dwt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Dwt,"clearOneofValue");js.clearOneofValue=Dwt;function kwt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(kwt,"getSelectedOneofValue");js.getSelectedOneofValue=kwt});var K8=S(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});U_.ReflectionTypeCheck=void 0;var hr=ga(),Owt=Y8(),j8=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(!Owt.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,hr.ScalarType.INT32,s):this.scalar(e,hr.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),hr.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 hr.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,hr.LongType.STRING)}}};U_.ReflectionTypeCheck=j8});var $_=S(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.reflectionLongConvert=void 0;var bIe=ga();function Lwt(t,e){switch(e){case bIe.LongType.BIGINT:return t.toBigInt();case bIe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(Lwt,"reflectionLongConvert");q_.reflectionLongConvert=Lwt});var Z8=S(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.ReflectionJsonReader=void 0;var BIe=R_(),Mwt=T_(),jr=ga(),G_=Gd(),Rm=Gg(),H_=$_(),X8=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=BIe.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(BIe.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 h=p;c.K==jr.ScalarType.BOOL&&(h=h=="true"?!0:h=="false"?!1:h),h=this.scalar(h,c.K,jr.LongType.STRING,c.name).toString(),d[h]=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"&&Rm.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 Rm.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:(Rm.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}Rm.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 jr.ScalarType.DOUBLE:case jr.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==jr.ScalarType.FLOAT&&Rm.assertFloat32(a),a;case jr.ScalarType.INT32:case jr.ScalarType.FIXED32:case jr.ScalarType.SFIXED32:case jr.ScalarType.SINT32:case jr.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==jr.ScalarType.UINT32?Rm.assertUInt32(c):Rm.assertInt32(c),c;case jr.ScalarType.INT64:case jr.ScalarType.SFIXED64:case jr.ScalarType.SINT64:if(e===null)return H_.reflectionLongConvert(G_.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return H_.reflectionLongConvert(G_.PbLong.from(e),n);case jr.ScalarType.FIXED64:case jr.ScalarType.UINT64:if(e===null)return H_.reflectionLongConvert(G_.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return H_.reflectionLongConvert(G_.PbULong.from(e),n);case jr.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case jr.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 jr.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Mwt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};z_.ReflectionJsonReader=X8});var tJ=S(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.ReflectionJsonWriter=void 0;var Fwt=T_(),RIe=Gd(),Cs=ga(),Yt=Gg(),eJ=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);Yt.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){Yt.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);Yt.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);Yt.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Yt.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Yt.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){Yt.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){Yt.assert(s);return}if(!(r===0&&!o&&!s))return Yt.assert(typeof r=="number"),Yt.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){Yt.assert(s);return}let a=o||s;switch(e){case Cs.ScalarType.INT32:case Cs.ScalarType.SFIXED32:case Cs.ScalarType.SINT32:return r===0?a?0:void 0:(Yt.assertInt32(r),r);case Cs.ScalarType.FIXED32:case Cs.ScalarType.UINT32:return r===0?a?0:void 0:(Yt.assertUInt32(r),r);case Cs.ScalarType.FLOAT:Yt.assertFloat32(r);case Cs.ScalarType.DOUBLE:return r===0?a?0:void 0:(Yt.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Cs.ScalarType.STRING:return r===""?a?"":void 0:(Yt.assert(typeof r=="string"),r);case Cs.ScalarType.BOOL:return r===!1?a?!1:void 0:(Yt.assert(typeof r=="boolean"),r);case Cs.ScalarType.UINT64:case Cs.ScalarType.FIXED64:Yt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=RIe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Cs.ScalarType.INT64:case Cs.ScalarType.SFIXED64:case Cs.ScalarType.SINT64:Yt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=RIe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Cs.ScalarType.BYTES:return Yt.assert(r instanceof Uint8Array),r.byteLength?Fwt.base64encode(r):a?"":void 0}}};V_.ReflectionJsonWriter=eJ});var J_=S(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.reflectionScalarDefault=void 0;var ya=ga(),NIe=$_(),TIe=Gd();function Uwt(t,e=ya.LongType.STRING){switch(t){case ya.ScalarType.BOOL:return!1;case ya.ScalarType.UINT64:case ya.ScalarType.FIXED64:return NIe.reflectionLongConvert(TIe.PbULong.ZERO,e);case ya.ScalarType.INT64:case ya.ScalarType.SFIXED64:case ya.ScalarType.SINT64:return NIe.reflectionLongConvert(TIe.PbLong.ZERO,e);case ya.ScalarType.DOUBLE:case ya.ScalarType.FLOAT:return 0;case ya.ScalarType.BYTES:return new Uint8Array(0);case ya.ScalarType.STRING:return"";default:return 0}}i(Uwt,"reflectionScalarDefault");W_.reflectionScalarDefault=Uwt});var nJ=S(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.ReflectionBinaryReader=void 0;var PIe=Rw(),Pr=ga(),kw=$_(),_Ie=J_(),rJ=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(j_,"__esModule",{value:!0});j_.ReflectionBinaryWriter=void 0;var Lo=Rw(),_t=ga(),Vg=Gg(),Ow=Gd(),sJ=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"?_t.ScalarType.INT32:o.T;if(l)if(Vg.assert(Array.isArray(a)),l==_t.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?Vg.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){Vg.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":Vg.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?Lo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,Lo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case _t.ScalarType.INT32:case _t.ScalarType.FIXED32:case _t.ScalarType.UINT32:case _t.ScalarType.SFIXED32:case _t.ScalarType.SINT32:a=Number.parseInt(s);break;case _t.ScalarType.BOOL:Vg.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,_t.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,Lo.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;Vg.assert(r!==_t.ScalarType.BYTES&&r!==_t.ScalarType.STRING),e.tag(n,Lo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.reflectionCreate=void 0;var qwt=J_(),$wt=Dw();function Gwt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},$wt.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]=qwt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(Gwt,"reflectionCreate");K_.reflectionCreate=Gwt});var aJ=S(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.reflectionMergePartial=void 0;function Hwt(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(ev,"__esModule",{value:!0});ev.reflectionEquals=void 0;var cJ=ga();function zwt(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"?cJ.ScalarType.INT32:n.T;if(!(n.repeat?vIe(c,o,a):DIe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?QIe(n.V.T(),Z_(o),Z_(a)):vIe(n.V.kind=="enum"?cJ.ScalarType.INT32:n.V.T,Z_(o),Z_(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?QIe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(zwt,"reflectionEquals");ev.reflectionEquals=zwt;var Z_=Object.values;function DIe(t,e,r){if(e===r)return!0;if(t!==cJ.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(tv,"__esModule",{value:!0});tv.MessageType=void 0;var Vwt=Dw(),Wwt=ga(),Jwt=K8(),Ywt=Z8(),jwt=tJ(),Kwt=nJ(),Xwt=oJ(),Zwt=iJ(),uJ=aJ(),ext=R_(),kIe=W8(),txt=lJ(),rxt=V8(),nxt=z8(),OIe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),sxt=OIe[Vwt.MESSAGE_TYPE]={},dJ=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Wwt.normalizeFieldInfo),this.options=n??{},sxt.value=this,this.messagePrototype=Object.create(null,OIe),this.refTypeCheck=new Jwt.ReflectionTypeCheck(this),this.refJsonReader=new Ywt.ReflectionJsonReader(this),this.refJsonWriter=new jwt.ReflectionJsonWriter(this),this.refBinReader=new Kwt.ReflectionBinaryReader(this),this.refBinWriter=new Xwt.ReflectionBinaryWriter(this)}create(e){let r=Zwt.reflectionCreate(this);return e!==void 0&&uJ.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return uJ.reflectionMergePartial(this,r,e),r}equals(e,r){return txt.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){uJ.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=nxt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,kIe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,kIe.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=rxt.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 ${ext.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}};tv.MessageType=dJ});var MIe=S(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.containsMessageType=void 0;var oxt=Dw();function ixt(t){return t[oxt.MESSAGE_TYPE]!=null}i(ixt,"containsMessageType");rv.containsMessageType=ixt});var UIe=S(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.listEnumNumbers=Hc.listEnumNames=Hc.listEnumValues=Hc.isEnumObject=void 0;function FIe(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(FIe,"isEnumObject");Hc.isEnumObject=FIe;function pJ(t){if(!FIe(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(pJ,"listEnumValues");Hc.listEnumValues=pJ;function axt(t){return pJ(t).map(e=>e.name)}i(axt,"listEnumNames");Hc.listEnumNames=axt;function cxt(t){return pJ(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(cxt,"listEnumNumbers");Hc.listEnumNumbers=cxt});var _r=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});var qIe=R_();Object.defineProperty(me,"typeofJsonValue",{enumerable:!0,get:i(function(){return qIe.typeofJsonValue},"get")});Object.defineProperty(me,"isJsonObject",{enumerable:!0,get:i(function(){return qIe.isJsonObject},"get")});var $Ie=T_();Object.defineProperty(me,"base64decode",{enumerable:!0,get:i(function(){return $Ie.base64decode},"get")});Object.defineProperty(me,"base64encode",{enumerable:!0,get:i(function(){return $Ie.base64encode},"get")});var lxt=mIe();Object.defineProperty(me,"utf8read",{enumerable:!0,get:i(function(){return lxt.utf8read},"get")});var fJ=Rw();Object.defineProperty(me,"WireType",{enumerable:!0,get:i(function(){return fJ.WireType},"get")});Object.defineProperty(me,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return fJ.mergeBinaryOptions},"get")});Object.defineProperty(me,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return fJ.UnknownFieldHandler},"get")});var GIe=z8();Object.defineProperty(me,"BinaryReader",{enumerable:!0,get:i(function(){return GIe.BinaryReader},"get")});Object.defineProperty(me,"binaryReadOptions",{enumerable:!0,get:i(function(){return GIe.binaryReadOptions},"get")});var HIe=V8();Object.defineProperty(me,"BinaryWriter",{enumerable:!0,get:i(function(){return HIe.BinaryWriter},"get")});Object.defineProperty(me,"binaryWriteOptions",{enumerable:!0,get:i(function(){return HIe.binaryWriteOptions},"get")});var zIe=Gd();Object.defineProperty(me,"PbLong",{enumerable:!0,get:i(function(){return zIe.PbLong},"get")});Object.defineProperty(me,"PbULong",{enumerable:!0,get:i(function(){return zIe.PbULong},"get")});var mJ=W8();Object.defineProperty(me,"jsonReadOptions",{enumerable:!0,get:i(function(){return mJ.jsonReadOptions},"get")});Object.defineProperty(me,"jsonWriteOptions",{enumerable:!0,get:i(function(){return mJ.jsonWriteOptions},"get")});Object.defineProperty(me,"mergeJsonOptions",{enumerable:!0,get:i(function(){return mJ.mergeJsonOptions},"get")});var uxt=Dw();Object.defineProperty(me,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return uxt.MESSAGE_TYPE},"get")});var dxt=LIe();Object.defineProperty(me,"MessageType",{enumerable:!0,get:i(function(){return dxt.MessageType},"get")});var Nm=ga();Object.defineProperty(me,"ScalarType",{enumerable:!0,get:i(function(){return Nm.ScalarType},"get")});Object.defineProperty(me,"LongType",{enumerable:!0,get:i(function(){return Nm.LongType},"get")});Object.defineProperty(me,"RepeatType",{enumerable:!0,get:i(function(){return Nm.RepeatType},"get")});Object.defineProperty(me,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Nm.normalizeFieldInfo},"get")});Object.defineProperty(me,"readFieldOptions",{enumerable:!0,get:i(function(){return Nm.readFieldOptions},"get")});Object.defineProperty(me,"readFieldOption",{enumerable:!0,get:i(function(){return Nm.readFieldOption},"get")});Object.defineProperty(me,"readMessageOption",{enumerable:!0,get:i(function(){return Nm.readMessageOption},"get")});var pxt=K8();Object.defineProperty(me,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return pxt.ReflectionTypeCheck},"get")});var fxt=iJ();Object.defineProperty(me,"reflectionCreate",{enumerable:!0,get:i(function(){return fxt.reflectionCreate},"get")});var mxt=J_();Object.defineProperty(me,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return mxt.reflectionScalarDefault},"get")});var hxt=aJ();Object.defineProperty(me,"reflectionMergePartial",{enumerable:!0,get:i(function(){return hxt.reflectionMergePartial},"get")});var Axt=lJ();Object.defineProperty(me,"reflectionEquals",{enumerable:!0,get:i(function(){return Axt.reflectionEquals},"get")});var gxt=nJ();Object.defineProperty(me,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return gxt.ReflectionBinaryReader},"get")});var yxt=oJ();Object.defineProperty(me,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return yxt.ReflectionBinaryWriter},"get")});var Ext=Z8();Object.defineProperty(me,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return Ext.ReflectionJsonReader},"get")});var Cxt=tJ();Object.defineProperty(me,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return Cxt.ReflectionJsonWriter},"get")});var Ixt=MIe();Object.defineProperty(me,"containsMessageType",{enumerable:!0,get:i(function(){return Ixt.containsMessageType},"get")});var Lw=Y8();Object.defineProperty(me,"isOneofGroup",{enumerable:!0,get:i(function(){return Lw.isOneofGroup},"get")});Object.defineProperty(me,"setOneofValue",{enumerable:!0,get:i(function(){return Lw.setOneofValue},"get")});Object.defineProperty(me,"getOneofValue",{enumerable:!0,get:i(function(){return Lw.getOneofValue},"get")});Object.defineProperty(me,"clearOneofValue",{enumerable:!0,get:i(function(){return Lw.clearOneofValue},"get")});Object.defineProperty(me,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return Lw.getSelectedOneofValue},"get")});var nv=UIe();Object.defineProperty(me,"listEnumValues",{enumerable:!0,get:i(function(){return nv.listEnumValues},"get")});Object.defineProperty(me,"listEnumNames",{enumerable:!0,get:i(function(){return nv.listEnumNames},"get")});Object.defineProperty(me,"listEnumNumbers",{enumerable:!0,get:i(function(){return nv.listEnumNumbers},"get")});Object.defineProperty(me,"isEnumObject",{enumerable:!0,get:i(function(){return nv.isEnumObject},"get")});var Sxt=J8();Object.defineProperty(me,"lowerCamelCase",{enumerable:!0,get:i(function(){return Sxt.lowerCamelCase},"get")});var Mw=Gg();Object.defineProperty(me,"assert",{enumerable:!0,get:i(function(){return Mw.assert},"get")});Object.defineProperty(me,"assertNever",{enumerable:!0,get:i(function(){return Mw.assertNever},"get")});Object.defineProperty(me,"assertInt32",{enumerable:!0,get:i(function(){return Mw.assertInt32},"get")});Object.defineProperty(me,"assertUInt32",{enumerable:!0,get:i(function(){return Mw.assertUInt32},"get")});Object.defineProperty(me,"assertFloat32",{enumerable:!0,get:i(function(){return Mw.assertFloat32},"get")})});var hJ=S(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.readServiceOption=zc.readMethodOption=zc.readMethodOptions=zc.normalizeMethodInfo=void 0;var wxt=_r();function xxt(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:wxt.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(xxt,"normalizeMethodInfo");zc.normalizeMethodInfo=xxt;function bxt(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(bxt,"readMethodOptions");zc.readMethodOptions=bxt;function Bxt(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(Bxt,"readMethodOption");zc.readMethodOption=Bxt;function Rxt(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(Rxt,"readServiceOption");zc.readServiceOption=Rxt});var VIe=S(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.ServiceType=void 0;var Nxt=hJ(),AJ=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>Nxt.normalizeMethodInfo(s,this)),this.options=n??{}}};sv.ServiceType=AJ});var yJ=S(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});ov.RpcError=void 0;var gJ=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(` -`)}};ov.RpcError=gJ});var EJ=S(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});av.mergeRpcOptions=void 0;var WIe=_r();function Txt(t,e){if(!e)return t;let r={};iv(t,r),iv(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=WIe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=WIe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iv(t.meta,r.meta),iv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(Txt,"mergeRpcOptions");av.mergeRpcOptions=Txt;function iv(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(iv,"copy")});var IJ=S(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.Deferred=Tm.DeferredState=void 0;var Vc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vc=Tm.DeferredState||(Tm.DeferredState={}));var CJ=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Vc.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!==Vc.PENDING)throw new Error(`cannot resolve ${Vc[this.state].toLowerCase()}`);this._resolve(e),this._state=Vc.RESOLVED}reject(e){if(this.state!==Vc.PENDING)throw new Error(`cannot reject ${Vc[this.state].toLowerCase()}`);this._reject(e),this._state=Vc.REJECTED}resolvePending(e){this._state===Vc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vc.PENDING&&this.reject(e)}};Tm.Deferred=CJ});var wJ=S(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.RpcOutputStreamController=void 0;var JIe=IJ(),Pm=_r(),SJ=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){Pm.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){Pm.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){Pm.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(){Pm.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;Pm.assert(e,"bad state"),Pm.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 JIe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Pm.assert(n.state==JIe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};cv.RpcOutputStreamController=SJ});var bJ=S(Wg=>{"use strict";var Pxt=Wg&&Wg.__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(Wg,"__esModule",{value:!0});Wg.UnaryCall=void 0;var xJ=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 Pxt(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}})}};Wg.UnaryCall=xJ});var RJ=S(Jg=>{"use strict";var _xt=Jg&&Jg.__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(Jg,"__esModule",{value:!0});Jg.ServerStreamingCall=void 0;var BJ=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 _xt(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}})}};Jg.ServerStreamingCall=BJ});var TJ=S(Yg=>{"use strict";var vxt=Yg&&Yg.__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(Yg,"__esModule",{value:!0});Yg.ClientStreamingCall=void 0;var NJ=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 vxt(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}})}};Yg.ClientStreamingCall=NJ});var _J=S(jg=>{"use strict";var Qxt=jg&&jg.__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(jg,"__esModule",{value:!0});jg.DuplexStreamingCall=void 0;var PJ=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 Qxt(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}})}};jg.DuplexStreamingCall=PJ});var jIe=S(Zg=>{"use strict";var Dxt=Zg&&Zg.__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(Zg,"__esModule",{value:!0});Zg.TestTransport=void 0;var bi=yJ(),lv=_r(),YIe=wJ(),kxt=EJ(),Oxt=bJ(),Lxt=RJ(),Mxt=TJ(),Fxt=_J(),Xg=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 Kg?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof Kg?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 bi.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof bi.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(lv.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),lv.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Dxt(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)lv.assert(e.O.is(o)),s.push(o);else this.data.response instanceof bi.RpcError||(lv.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield dn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof bi.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield dn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof bi.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof bi.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 bi.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 bi.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return kxt.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(dn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(dn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Oxt.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(dn(this.headerDelay,n.abort)),c=new YIe.RpcOutputStreamController,l=a.then(dn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(dn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Lxt.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(dn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(dn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new Kg(this.data,r.abort),new Mxt.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(dn(this.headerDelay,r.abort)),a=new YIe.RpcOutputStreamController,c=o.then(dn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(dn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new Kg(this.data,r.abort),new Fxt.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};Zg.TestTransport=Xg;Xg.defaultHeaders={responseHeader:"test"};Xg.defaultStatus={code:"OK",detail:"all good"};Xg.defaultTrailers={responseTrailer:"test"};function dn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new bi.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new bi.RpcError("user cancel","CANCELLED"))})}})}i(dn,"delay");var Kg=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 bi.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(dn(r,this.abort))}complete(){if(this.data.inputComplete instanceof bi.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(dn(e,this.abort))}}});var KIe=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.stackDuplexStreamingInterceptors=Bi.stackClientStreamingInterceptors=Bi.stackServerStreamingInterceptors=Bi.stackUnaryInterceptors=Bi.stackIntercept=void 0;var Uxt=_r();function Fw(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,h)=>d.interceptUnary(p,f,m,h),"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,h)=>d.interceptServerStreaming(p,f,m,h),"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)}Uxt.assertNever(t)}i(Fw,"stackIntercept");Bi.stackIntercept=Fw;function qxt(t,e,r,n){return Fw("unary",t,e,n,r)}i(qxt,"stackUnaryInterceptors");Bi.stackUnaryInterceptors=qxt;function $xt(t,e,r,n){return Fw("serverStreaming",t,e,n,r)}i($xt,"stackServerStreamingInterceptors");Bi.stackServerStreamingInterceptors=$xt;function Gxt(t,e,r){return Fw("clientStreaming",t,e,r)}i(Gxt,"stackClientStreamingInterceptors");Bi.stackClientStreamingInterceptors=Gxt;function Hxt(t,e,r){return Fw("duplex",t,e,r)}i(Hxt,"stackDuplexStreamingInterceptors");Bi.stackDuplexStreamingInterceptors=Hxt});var XIe=S(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});uv.ServerCallContextController=void 0;var vJ=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)}}};uv.ServerCallContextController=vJ});var eSe=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var zxt=VIe();Object.defineProperty(Ar,"ServiceType",{enumerable:!0,get:i(function(){return zxt.ServiceType},"get")});var QJ=hJ();Object.defineProperty(Ar,"readMethodOptions",{enumerable:!0,get:i(function(){return QJ.readMethodOptions},"get")});Object.defineProperty(Ar,"readMethodOption",{enumerable:!0,get:i(function(){return QJ.readMethodOption},"get")});Object.defineProperty(Ar,"readServiceOption",{enumerable:!0,get:i(function(){return QJ.readServiceOption},"get")});var Vxt=yJ();Object.defineProperty(Ar,"RpcError",{enumerable:!0,get:i(function(){return Vxt.RpcError},"get")});var Wxt=EJ();Object.defineProperty(Ar,"mergeRpcOptions",{enumerable:!0,get:i(function(){return Wxt.mergeRpcOptions},"get")});var Jxt=wJ();Object.defineProperty(Ar,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return Jxt.RpcOutputStreamController},"get")});var Yxt=jIe();Object.defineProperty(Ar,"TestTransport",{enumerable:!0,get:i(function(){return Yxt.TestTransport},"get")});var ZIe=IJ();Object.defineProperty(Ar,"Deferred",{enumerable:!0,get:i(function(){return ZIe.Deferred},"get")});Object.defineProperty(Ar,"DeferredState",{enumerable:!0,get:i(function(){return ZIe.DeferredState},"get")});var jxt=_J();Object.defineProperty(Ar,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return jxt.DuplexStreamingCall},"get")});var Kxt=TJ();Object.defineProperty(Ar,"ClientStreamingCall",{enumerable:!0,get:i(function(){return Kxt.ClientStreamingCall},"get")});var Xxt=RJ();Object.defineProperty(Ar,"ServerStreamingCall",{enumerable:!0,get:i(function(){return Xxt.ServerStreamingCall},"get")});var Zxt=bJ();Object.defineProperty(Ar,"UnaryCall",{enumerable:!0,get:i(function(){return Zxt.UnaryCall},"get")});var Uw=KIe();Object.defineProperty(Ar,"stackIntercept",{enumerable:!0,get:i(function(){return Uw.stackIntercept},"get")});Object.defineProperty(Ar,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return Uw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return Uw.stackClientStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return Uw.stackServerStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return Uw.stackUnaryInterceptors},"get")});var ebt=XIe();Object.defineProperty(Ar,"ServerCallContextController",{enumerable:!0,get:i(function(){return ebt.ServerCallContextController},"get")})});var Lm=S((y_r,lwe)=>{"use strict";var NBt="2.0.0",TBt=Number.MAX_SAFE_INTEGER||9007199254740991,PBt=16,_Bt=250,vBt=[" ",` -`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],QBt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:PBt,MAX_SAFE_BUILD_LENGTH:_Bt,MAX_SAFE_INTEGER:TBt,WHITESPACE_CHARACTERS:vBt,RELEASE_TYPES:QBt,SEMVER_SPEC_VERSION:NBt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var zw=S((E_r,uwe)=>{"use strict";var DBt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};uwe.exports=DBt});var dy=S((Yc,dwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:NY,MAX_SAFE_BUILD_LENGTH:kBt,MAX_LENGTH:OBt}=Lm(),LBt=zw();Yc=dwe.exports={};var MBt=Yc.re=[],FBt=Yc.safeRe=[],W=Yc.src=[],UBt=Yc.safeSrc=[],J=Yc.t={},qBt=0,TY="[a-zA-Z0-9-]",$Bt=[["\\s",1],["\\d",OBt],[TY,kBt]],GBt=i(t=>{for(let[e,r]of $Bt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ue=i((t,e,r)=>{let n=GBt(e),s=qBt++;LBt(t,s,e),J[t]=s,W[s]=e,UBt[s]=n,MBt[s]=new RegExp(e,r?"g":void 0),FBt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ue("NUMERICIDENTIFIER","0|[1-9]\\d*");Ue("NUMERICIDENTIFIERLOOSE","\\d+");Ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${TY}*`);Ue("MAINVERSION",`(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})`);Ue("MAINVERSIONLOOSE",`(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASEIDENTIFIER",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIER]})`);Ue("PRERELEASEIDENTIFIERLOOSE",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASE",`(?:-(${W[J.PRERELEASEIDENTIFIER]}(?:\\.${W[J.PRERELEASEIDENTIFIER]})*))`);Ue("PRERELEASELOOSE",`(?:-?(${W[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[J.PRERELEASEIDENTIFIERLOOSE]})*))`);Ue("BUILDIDENTIFIER",`${TY}+`);Ue("BUILD",`(?:\\+(${W[J.BUILDIDENTIFIER]}(?:\\.${W[J.BUILDIDENTIFIER]})*))`);Ue("FULLPLAIN",`v?${W[J.MAINVERSION]}${W[J.PRERELEASE]}?${W[J.BUILD]}?`);Ue("FULL",`^${W[J.FULLPLAIN]}$`);Ue("LOOSEPLAIN",`[v=\\s]*${W[J.MAINVERSIONLOOSE]}${W[J.PRERELEASELOOSE]}?${W[J.BUILD]}?`);Ue("LOOSE",`^${W[J.LOOSEPLAIN]}$`);Ue("GTLT","((?:<|>)?=?)");Ue("XRANGEIDENTIFIERLOOSE",`${W[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ue("XRANGEIDENTIFIER",`${W[J.NUMERICIDENTIFIER]}|x|X|\\*`);Ue("XRANGEPLAIN",`[v=\\s]*(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:${W[J.PRERELEASE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGEPLAINLOOSE",`[v=\\s]*(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:${W[J.PRERELEASELOOSE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAIN]}$`);Ue("XRANGELOOSE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAINLOOSE]}$`);Ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${NY}})(?:\\.(\\d{1,${NY}}))?(?:\\.(\\d{1,${NY}}))?`);Ue("COERCE",`${W[J.COERCEPLAIN]}(?:$|[^\\d])`);Ue("COERCEFULL",W[J.COERCEPLAIN]+`(?:${W[J.PRERELEASE]})?(?:${W[J.BUILD]})?(?:$|[^\\d])`);Ue("COERCERTL",W[J.COERCE],!0);Ue("COERCERTLFULL",W[J.COERCEFULL],!0);Ue("LONETILDE","(?:~>?)");Ue("TILDETRIM",`(\\s*)${W[J.LONETILDE]}\\s+`,!0);Yc.tildeTrimReplace="$1~";Ue("TILDE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAIN]}$`);Ue("TILDELOOSE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("LONECARET","(?:\\^)");Ue("CARETTRIM",`(\\s*)${W[J.LONECARET]}\\s+`,!0);Yc.caretTrimReplace="$1^";Ue("CARET",`^${W[J.LONECARET]}${W[J.XRANGEPLAIN]}$`);Ue("CARETLOOSE",`^${W[J.LONECARET]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("COMPARATORLOOSE",`^${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]})$|^$`);Ue("COMPARATOR",`^${W[J.GTLT]}\\s*(${W[J.FULLPLAIN]})$|^$`);Ue("COMPARATORTRIM",`(\\s*)${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]}|${W[J.XRANGEPLAIN]})`,!0);Yc.comparatorTrimReplace="$1$2$3";Ue("HYPHENRANGE",`^\\s*(${W[J.XRANGEPLAIN]})\\s+-\\s+(${W[J.XRANGEPLAIN]})\\s*$`);Ue("HYPHENRANGELOOSE",`^\\s*(${W[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[J.XRANGEPLAINLOOSE]})\\s*$`);Ue("STAR","(<|>)?=?\\s*\\*");Ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bv=S((I_r,pwe)=>{"use strict";var HBt=Object.freeze({loose:!0}),zBt=Object.freeze({}),VBt=i(t=>t?typeof t!="object"?HBt:t:zBt,"parseOptions");pwe.exports=VBt});var PY=S((w_r,hwe)=>{"use strict";var fwe=/^[0-9]+$/,mwe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:tmwe(e,t),"rcompareIdentifiers");hwe.exports={compareIdentifiers:mwe,rcompareIdentifiers:WBt}});var Pn=S((b_r,gwe)=>{"use strict";var Rv=zw(),{MAX_LENGTH:Awe,MAX_SAFE_INTEGER:Nv}=Lm(),{safeRe:Tv,t:Pv}=dy(),JBt=Bv(),{compareIdentifiers:_Y}=PY(),YBt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;nAwe)throw new TypeError(`version is longer than ${Awe} characters`);Rv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Tv[Pv.LOOSE]:Tv[Pv.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>Nv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Nv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Nv||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(Rv("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 _Y(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(Rv("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 _Y(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?Tv[Pv.PRERELEASELOOSE]:Tv[Pv.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]),YBt(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}};gwe.exports=vY});var Wd=S((R_r,Ewe)=>{"use strict";var ywe=Pn(),jBt=i((t,e,r=!1)=>{if(t instanceof ywe)return t;try{return new ywe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Ewe.exports=jBt});var Iwe=S((T_r,Cwe)=>{"use strict";var KBt=Wd(),XBt=i((t,e)=>{let r=KBt(t,e);return r?r.version:null},"valid");Cwe.exports=XBt});var wwe=S((__r,Swe)=>{"use strict";var ZBt=Wd(),eRt=i((t,e)=>{let r=ZBt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Swe.exports=eRt});var Bwe=S((Q_r,bwe)=>{"use strict";var xwe=Pn(),tRt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new xwe(t instanceof xwe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");bwe.exports=tRt});var Twe=S((k_r,Nwe)=>{"use strict";var Rwe=Wd(),rRt=i((t,e)=>{let r=Rwe(t,null,!0),n=Rwe(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");Nwe.exports=rRt});var _we=S((L_r,Pwe)=>{"use strict";var nRt=Pn(),sRt=i((t,e)=>new nRt(t,e).major,"major");Pwe.exports=sRt});var Qwe=S((F_r,vwe)=>{"use strict";var oRt=Pn(),iRt=i((t,e)=>new oRt(t,e).minor,"minor");vwe.exports=iRt});var kwe=S((q_r,Dwe)=>{"use strict";var aRt=Pn(),cRt=i((t,e)=>new aRt(t,e).patch,"patch");Dwe.exports=cRt});var Lwe=S((G_r,Owe)=>{"use strict";var lRt=Wd(),uRt=i((t,e)=>{let r=lRt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Owe.exports=uRt});var Ri=S((z_r,Fwe)=>{"use strict";var Mwe=Pn(),dRt=i((t,e,r)=>new Mwe(t,r).compare(new Mwe(e,r)),"compare");Fwe.exports=dRt});var qwe=S((W_r,Uwe)=>{"use strict";var pRt=Ri(),fRt=i((t,e,r)=>pRt(e,t,r),"rcompare");Uwe.exports=fRt});var Gwe=S((Y_r,$we)=>{"use strict";var mRt=Ri(),hRt=i((t,e)=>mRt(t,e,!0),"compareLoose");$we.exports=hRt});var _v=S((K_r,zwe)=>{"use strict";var Hwe=Pn(),ARt=i((t,e,r)=>{let n=new Hwe(t,r),s=new Hwe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");zwe.exports=ARt});var Wwe=S((Z_r,Vwe)=>{"use strict";var gRt=_v(),yRt=i((t,e)=>t.sort((r,n)=>gRt(r,n,e)),"sort");Vwe.exports=yRt});var Ywe=S((tvr,Jwe)=>{"use strict";var ERt=_v(),CRt=i((t,e)=>t.sort((r,n)=>ERt(n,r,e)),"rsort");Jwe.exports=CRt});var Vw=S((nvr,jwe)=>{"use strict";var IRt=Ri(),SRt=i((t,e,r)=>IRt(t,e,r)>0,"gt");jwe.exports=SRt});var vv=S((ovr,Kwe)=>{"use strict";var wRt=Ri(),xRt=i((t,e,r)=>wRt(t,e,r)<0,"lt");Kwe.exports=xRt});var QY=S((avr,Xwe)=>{"use strict";var bRt=Ri(),BRt=i((t,e,r)=>bRt(t,e,r)===0,"eq");Xwe.exports=BRt});var DY=S((lvr,Zwe)=>{"use strict";var RRt=Ri(),NRt=i((t,e,r)=>RRt(t,e,r)!==0,"neq");Zwe.exports=NRt});var Qv=S((dvr,exe)=>{"use strict";var TRt=Ri(),PRt=i((t,e,r)=>TRt(t,e,r)>=0,"gte");exe.exports=PRt});var Dv=S((fvr,txe)=>{"use strict";var _Rt=Ri(),vRt=i((t,e,r)=>_Rt(t,e,r)<=0,"lte");txe.exports=vRt});var kY=S((hvr,rxe)=>{"use strict";var QRt=QY(),DRt=DY(),kRt=Vw(),ORt=Qv(),LRt=vv(),MRt=Dv(),FRt=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 QRt(t,r,n);case"!=":return DRt(t,r,n);case">":return kRt(t,r,n);case">=":return ORt(t,r,n);case"<":return LRt(t,r,n);case"<=":return MRt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");rxe.exports=FRt});var sxe=S((gvr,nxe)=>{"use strict";var URt=Pn(),qRt=Wd(),{safeRe:kv,t:Ov}=dy(),$Rt=i((t,e)=>{if(t instanceof URt)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?kv[Ov.COERCEFULL]:kv[Ov.COERCE]);else{let l=e.includePrerelease?kv[Ov.COERCERTLFULL]:kv[Ov.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 qRt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");nxe.exports=$Rt});var ixe=S((Evr,oxe)=>{"use strict";var GRt=Wd(),HRt=Lm(),zRt=Pn(),VRt=i((t,e,r)=>{if(!HRt.RELEASE_TYPES.includes(e))return null;let n=WRt(t,r);return n&&JRt(n,e)},"truncate"),WRt=i((t,e)=>{let r=t instanceof zRt?t.version:t;return GRt(r,e)},"cloneInputVersion"),JRt=i((t,e)=>{if(YRt(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"),YRt=i(t=>t.startsWith("pre"),"isPrerelease");oxe.exports=VRt});var cxe=S((Ivr,axe)=>{"use strict";var OY=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}};axe.exports=OY});var Cxe=S((wvr,Exe)=>{"use strict";var{MAX_LENGTH:MY,MAX_SAFE_BUILD_LENGTH:pxe,WHITESPACE_CHARACTERS:jRt}=Lm(),fxe=new Uint8Array(65536);for(let t of jRt)fxe[t.charCodeAt(0)]=1;var FY=i(t=>t!==void 0&&fxe[t.charCodeAt(0)]===1,"isWhitespace"),lxe=i(t=>t==="v"||t==="="||FY(t),"isVersionPrefix"),Ww=i(t=>t!==void 0&&t>="0"&&t<="9","isDigit"),mxe=i(t=>t!==void 0&&(t>="a"&&t<="z"||t>="A"&&t<="Z"),"isLetter"),hxe=i(t=>Ww(t)||mxe(t)||t==="-","isIdentifierCharacter"),UY=i(t=>Ww(t)||t==="x"||t==="X"||t==="*","isVersionStart"),Axe=i((t,e,r,n)=>{if(!Ww(t[e]))return e;if(e>=n.start&&e=n.previousStart&&e!r&&t[e]==="0"?e+1:Axe(t,e,r?MY:MY+1,n),"findVersionNumberEndIndex"),LY=i((t,e,r,n)=>{let s=Axe(t,e,MY,n);if(mxe(t[s])||t[s]==="-"){let o=s+1,a=o+pxe;for(;o{let s=t[e]==="-";if(!r&&!s)return e;let o=e+(s?1:0),a=LY(t,o,r,n);if(a===o){if(!r||!s)return e;a=LY(t,e,r,n)}for(;t[a]===".";){let c=LY(t,a+1,r,n);if(c===a+1)break;a=c}return a},"findPrereleaseEndIndex"),uxe=i((t,e)=>{let r=e;for(;r-e{if(t[e]!=="+")return e;let r=uxe(t,e+1);if(r===e+1)return e;for(;t[r]===".";){let n=uxe(t,r+1);if(n===r+1)break;r=n}return r},"findBuildEndIndex"),KRt=i((t,e,r)=>{let n=e;for(let o=0;o<3;o++){let a=qY(t,n,!0,r);if(a===n)return e;if(n=a,o<2){if(t[n]!==".")return e;n++}}let s=gxe(t,n,!0,r);return yxe(t,s)},"findLooseFullVersionEndIndex"),dxe=i((t,e,r)=>Ww(t[e])?qY(t,e,!1,r):UY(t[e])?e+1:e,"findPartialVersionComponentEndIndex"),XRt=i((t,e,r)=>{let n=dxe(t,e,r);for(let o=0;o<2;o++){if(t[n]!==".")return n;let a=dxe(t,n+1,r);if(a===n+1)return n;n=a}let s=gxe(t,n,!1,r);return yxe(t,s)},"findPartialVersionEndIndex"),ZRt=i((t,e,r)=>{let n=KRt(t,e,r);return n!==e?n:XRt(t,e,r)},"findVersionEndIndex"),eNt=i((t,e)=>{let r=e;return FY(t[r])&&r++,(t[r]==="<"||t[r]===">")&&r++,t[r]==="="&&r++,FY(t[r])?r:-1},"findRemovableWhitespaceIndex"),tNt=i(t=>{let e="",r=0,n=0,s={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n")n++;else if(!lxe(t[n])&&!UY(t[n])){n++;continue}for(;n{"use strict";var rNt=/\s+/g,$Y=class t{static{i(this,"Range")}constructor(e,r){if(r=sNt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof GY)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(rNt," "),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=>!Sxe(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&&fNt(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(pNt,"");let n=((this.options.includePrerelease&&uNt)|(this.options.loose&&dNt))+":"+e,s=Ixe.get(n);if(s)return s;let o=this.options.loose,a=o?Xs[Jn.HYPHENRANGELOOSE]:Xs[Jn.HYPHENRANGE];e=e.replace(a,xNt(this.options.includePrerelease)),Ft("hyphen replace",e),e=iNt(e),Ft("comparator trim",e),e=e.replace(Xs[Jn.TILDETRIM],cNt),Ft("tilde trim",e),e=e.replace(Xs[Jn.CARETTRIM],lNt),Ft("caret trim",e);let c=e.split(" ").map(p=>mNt(p,this.options)).join(" ").split(/\s+/).map(p=>wNt(p,this.options));o&&(c=c.filter(p=>(Ft("loose invalid filter",p,this.options),!!p.match(Xs[Jn.COMPARATORLOOSE])))),Ft("range list",c);let l=new Map,u=c.map(p=>new GY(p,this.options));for(let p of u){if(Sxe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Ixe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>wxe(n,r)&&e.set.some(s=>wxe(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 oNt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),fNt=i(t=>t.value==="","isAny"),wxe=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"),mNt=i((t,e)=>(t=t.replace(Xs[Jn.BUILD],""),Ft("comp",t,e),t=yNt(t,e),Ft("caret",t),t=ANt(t,e),Ft("tildes",t),t=CNt(t,e),Ft("xrange",t),t=SNt(t,e),Ft("stars",t),t),"parseComparator"),Kr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),hNt=i((t,e,r)=>Kr(t)&&!Kr(e)||Kr(e)&&r&&!Kr(r),"invalidXRangeOrder"),ANt=i((t,e)=>t.trim().split(/\s+/).map(r=>gNt(r,e)).join(" "),"replaceTildes"),gNt=i((t,e)=>{let r=e.loose?Xs[Jn.TILDELOOSE]:Xs[Jn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("tilde",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Ft("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Ft("tilde return",u),u})},"replaceTilde"),yNt=i((t,e)=>t.trim().split(/\s+/).map(r=>ENt(r,e)).join(" "),"replaceCarets"),ENt=i((t,e)=>{Ft("caret",t,e);let r=e.loose?Xs[Jn.CARETLOOSE]:Xs[Jn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("caret",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Ft("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`):(Ft("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`),Ft("caret return",u),u})},"replaceCaret"),CNt=i((t,e)=>(Ft("replaceXRanges",t,e),t.split(/\s+/).map(r=>INt(r,e)).join(" ")),"replaceXRanges"),INt=i((t,e)=>{t=t.trim();let r=e.loose?Xs[Jn.XRANGELOOSE]:Xs[Jn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Ft("xRange",t,n,s,o,a,c,l),hNt(o,a,c))return t;let u=Kr(o),d=u||Kr(a),p=d||Kr(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`),Ft("xRange return",n),n})},"replaceXRange"),SNt=i((t,e)=>(Ft("replaceStars",t,e),t.trim().replace(Xs[Jn.STAR],"")),"replaceStars"),wNt=i((t,e)=>(Ft("replaceGTE0",t,e),t.trim().replace(Xs[e.includePrerelease?Jn.GTE0PRE:Jn.GTE0],"")),"replaceGTE0"),xNt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Kr(n)?r="":Kr(s)?r=`>=${n}.0.0${t?"-0":""}`:Kr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Kr(u)?l="":Kr(d)?l=`<${+u+1}.0.0-0`:Kr(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"),bNt=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 Jw=S((Rvr,Pxe)=>{"use strict";var Yw=Symbol("SemVer ANY"),VY=class t{static{i(this,"Comparator")}static get ANY(){return Yw}constructor(e,r){if(r=bxe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),zY("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Yw?this.value="":this.value=this.operator+this.semver.version,zY("comp",this)}parse(e){let r=this.options.loose?Bxe[Rxe.COMPARATORLOOSE]:Bxe[Rxe.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 Nxe(n[2],this.options.loose):this.semver=Yw}toString(){return this.value}test(e){if(zY("Comparator.test",e,this.options.loose),this.semver===Yw||e===Yw)return!0;if(typeof e=="string")try{e=new Nxe(e,this.options)}catch{return!1}return HY(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 Txe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Txe(this.value,r).test(e.semver):(r=bxe(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("=")||HY(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||HY(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Pxe.exports=VY;var bxe=Bv(),{safeRe:Bxe,t:Rxe}=dy(),HY=kY(),zY=zw(),Nxe=Pn(),Txe=Ni()});var jw=S((Tvr,_xe)=>{"use strict";var BNt=Ni(),RNt=i((t,e,r)=>{try{e=new BNt(e,r)}catch{return!1}return e.test(t)},"satisfies");_xe.exports=RNt});var Qxe=S((_vr,vxe)=>{"use strict";var NNt=Ni(),TNt=i((t,e)=>new NNt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");vxe.exports=TNt});var kxe=S((Qvr,Dxe)=>{"use strict";var PNt=Pn(),_Nt=Ni(),vNt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new _Nt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new PNt(n,r))}),n},"maxSatisfying");Dxe.exports=vNt});var Lxe=S((kvr,Oxe)=>{"use strict";var QNt=Pn(),DNt=Ni(),kNt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new DNt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new QNt(n,r))}),n},"minSatisfying");Oxe.exports=kNt});var Uxe=S((Lvr,Fxe)=>{"use strict";var WY=Pn(),ONt=Ni(),Mxe=Vw(),LNt=i((t,e)=>{t=new ONt(t,e);let r=new WY("0.0.0");if(t.test(r)||(r=new WY("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new WY(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Mxe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Mxe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Fxe.exports=LNt});var $xe=S((Fvr,qxe)=>{"use strict";var MNt=Ni(),FNt=i((t,e)=>{try{return new MNt(t,e).range||"*"}catch{return null}},"validRange");qxe.exports=FNt});var Lv=S((qvr,Vxe)=>{"use strict";var UNt=Pn(),zxe=Jw(),{ANY:qNt}=zxe,$Nt=Ni(),GNt=jw(),Gxe=Vw(),Hxe=vv(),HNt=Dv(),zNt=Qv(),VNt=i((t,e,r,n)=>{t=new UNt(t,n),e=new $Nt(e,n);let s,o,a,c,l;switch(r){case">":s=Gxe,o=HNt,a=Hxe,c=">",l=">=";break;case"<":s=Hxe,o=zNt,a=Gxe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(GNt(t,e,n))return!1;for(let u=0;u{m.semver===qNt&&(m=new zxe(">=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");Vxe.exports=VNt});var Jxe=S((Gvr,Wxe)=>{"use strict";var WNt=Lv(),JNt=i((t,e,r)=>WNt(t,e,">",r),"gtr");Wxe.exports=JNt});var jxe=S((zvr,Yxe)=>{"use strict";var YNt=Lv(),jNt=i((t,e,r)=>YNt(t,e,"<",r),"ltr");Yxe.exports=jNt});var Zxe=S((Wvr,Xxe)=>{"use strict";var Kxe=Ni(),KNt=i((t,e,r)=>(t=new Kxe(t,r),e=new Kxe(e,r),t.intersects(e,r)),"intersects");Xxe.exports=KNt});var tbe=S((Yvr,ebe)=>{"use strict";var XNt=jw(),ZNt=Ri();ebe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>ZNt(d,p,r));for(let d of a)XNt(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 rbe=Ni(),jY=Jw(),{ANY:JY}=jY,YY=jw(),KY=Ri(),eTt=i((t,e,r={})=>{if(t===e)return!0;t=new rbe(t,r),e=new rbe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=rTt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),tTt=[new jY(">=0.0.0-0")],nbe=[new jY(">=0.0.0")],rTt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===JY){if(e.length===1&&e[0].semver===JY)return!0;r.includePrerelease?t=tTt:t=nbe}if(e.length===1&&e[0].semver===JY){if(r.includePrerelease)return!0;e=nbe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=sbe(s,m,r):m.operator==="<"||m.operator==="<="?o=obe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=KY(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&&!YY(m,String(s),r)||o&&!YY(m,String(o),r))return null;for(let h of e)if(!YY(m,String(h),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=sbe(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=obe(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"),sbe=i((t,e,r)=>{if(!t)return e;let n=KY(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),obe=i((t,e,r)=>{if(!t)return e;let n=KY(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");ibe.exports=eTt});var dbe=S((Xvr,ube)=>{"use strict";var XY=dy(),cbe=Lm(),nTt=Pn(),lbe=PY(),sTt=Wd(),oTt=Iwe(),iTt=wwe(),aTt=Bwe(),cTt=Twe(),lTt=_we(),uTt=Qwe(),dTt=kwe(),pTt=Lwe(),fTt=Ri(),mTt=qwe(),hTt=Gwe(),ATt=_v(),gTt=Wwe(),yTt=Ywe(),ETt=Vw(),CTt=vv(),ITt=QY(),STt=DY(),wTt=Qv(),xTt=Dv(),bTt=kY(),BTt=sxe(),RTt=ixe(),NTt=Jw(),TTt=Ni(),PTt=jw(),_Tt=Qxe(),vTt=kxe(),QTt=Lxe(),DTt=Uxe(),kTt=$xe(),OTt=Lv(),LTt=Jxe(),MTt=jxe(),FTt=Zxe(),UTt=tbe(),qTt=abe();ube.exports={parse:sTt,valid:oTt,clean:iTt,inc:aTt,diff:cTt,major:lTt,minor:uTt,patch:dTt,prerelease:pTt,compare:fTt,rcompare:mTt,compareLoose:hTt,compareBuild:ATt,sort:gTt,rsort:yTt,gt:ETt,lt:CTt,eq:ITt,neq:STt,gte:wTt,lte:xTt,cmp:bTt,coerce:BTt,truncate:RTt,Comparator:NTt,Range:TTt,satisfies:PTt,toComparators:_Tt,maxSatisfying:vTt,minSatisfying:QTt,minVersion:DTt,validRange:kTt,outside:OTt,gtr:LTt,ltr:MTt,intersects:FTt,simplifyRange:UTt,subset:qTt,SemVer:nTt,re:XY.re,src:XY.src,tokens:XY.t,SEMVER_SPEC_VERSION:cbe.SEMVER_SPEC_VERSION,RELEASE_TYPES:cbe.RELEASE_TYPES,compareIdentifiers:lbe.compareIdentifiers,rcompareIdentifiers:lbe.rcompareIdentifiers}});var fbe=S((tQr,pbe)=>{function Ti(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(Ti,"RetryOperation");pbe.exports=Ti;Ti.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ti.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ti.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};Ti.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)};Ti.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ti.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ti.prototype.start=Ti.prototype.try;Ti.prototype.errors=function(){return this._errors};Ti.prototype.attempts=function(){return this._attempts};Ti.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 mbe=S(Mm=>{var $Tt=fbe();Mm.operation=function(t){var e=Mm.timeouts(t);return new $Tt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Mm.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{hbe.exports=mbe()});var ybe=S((iQr,gbe)=>{var GTt=Abe();function HTt(t,e){function r(n,s){var o=e||{},a;"randomize"in o||(o.randomize=!0),a=GTt.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(HTt,"retry");gbe.exports=HTt});var Obe=S((cQr,Ru)=>{var wt=require("fs"),Uv=require("os"),Xr=require("path"),Ebe=require("crypto"),jc={fs:wt.constants,os:Uv.constants},Cbe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",xbe=/XXXXXX/,zTt=3,bbe=(jc.O_CREAT||jc.fs.O_CREAT)|(jc.O_EXCL||jc.fs.O_EXCL)|(jc.O_RDWR||jc.fs.O_RDWR),VTt=Uv.platform()==="win32",WTt=jc.EBADF||jc.os.errno.EBADF,JTt=jc.ENOENT||jc.os.errno.ENOENT,Bbe=448,Rbe=384,YTt="exit",py=[],Nbe=wt.rmdirSync.bind(wt),Tbe=!1;function jTt(t,e){return wt.rm(t,{recursive:!0},e)}i(jTt,"rimraf");function Pbe(t){return wt.rmSync(t,{recursive:!0})}i(Pbe,"FN_RIMRAF_SYNC");function rj(t,e){let r=fy(t,e),n=r[0],s=r[1];iPt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=vbe(a);wt.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(rj,"tmpName");function nj(t){let e=fy(t),r=e[0],n=aPt(r),s=n.tries;do{let o=vbe(n);try{wt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(nj,"tmpNameSync");function KTt(t,e){let r=fy(t,e),n=r[0],s=r[1];rj(n,i(function(a,c){if(a)return s(a);wt.open(c,bbe,n.mode||Rbe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return wt.close(d,i(function(f){return s(f,c,void 0,ej(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,ej(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(KTt,"file");function XTt(t){let e=fy(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=nj(r),o=wt.openSync(s,bbe,r.mode||Rbe);return r.discardDescriptor&&(wt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:ej(s,n?-1:o,r,!0)}}i(XTt,"fileSync");function ZTt(t,e){let r=fy(t,e),n=r[0],s=r[1];rj(n,i(function(a,c){if(a)return s(a);wt.mkdir(c,n.mode||Bbe,i(function(u){if(u)return s(u);s(null,c,_be(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(ZTt,"dir");function ePt(t){let e=fy(t),r=e[0],n=nj(r);return wt.mkdirSync(n,r.mode||Bbe),{name:n,removeCallback:_be(n,r,!0)}}i(ePt,"dirSync");function tPt(t,e){let r=i(function(n){if(n&&!tj(n))return e(n);e()},"_handler");0<=t[0]?wt.close(t[0],function(){wt.unlink(t[1],r)}):wt.unlink(t[1],r)}i(tPt,"_removeFileAsync");function rPt(t){let e=null;try{0<=t[0]&&wt.closeSync(t[0])}catch(r){if(!cPt(r)&&!tj(r))throw r}finally{try{wt.unlinkSync(t[1])}catch(r){tj(r)||(e=r)}}if(e!==null)throw e}i(rPt,"_removeFileSync");function ej(t,e,r,n){let s=Fv(rPt,[e,t],n),o=Fv(tPt,[e,t],n,s);return r.keep||py.unshift(s),n?s:o}i(ej,"_prepareTmpFileRemoveCallback");function _be(t,e,r){let n=e.unsafeCleanup?jTt:wt.rmdir.bind(wt),s=e.unsafeCleanup?Pbe:Nbe,o=Fv(s,t,r),a=Fv(n,t,r,o);return e.keep||py.unshift(o),r?o:a}i(_be,"_prepareTmpDirRemoveCallback");function Fv(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=py.indexOf(c);return l>=0&&py.splice(l,1),s=!0,r||t===Nbe||t===Pbe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(Fv,"_prepareRemoveCallback");function nPt(){if(Tbe)for(;py.length;)try{py[0]()}catch{}}i(nPt,"_garbageCollector");function Ibe(t){let e=[],r=null;try{r=Ebe.randomBytes(t)}catch{r=Ebe.pseudoRandomBytes(t)}for(let n=0;n"u"}i(Zs,"_isUndefined");function fy(t,e){if(typeof t=="function")return[{},t];if(Zs(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(fy,"_parseArguments");function sPt(t,e,r){let n=Xr.isAbsolute(t)?t:Xr.join(e,t);wt.stat(n,function(s){s?wt.realpath(Xr.dirname(n),function(o,a){if(o)return r(o);r(null,Xr.join(a,Xr.basename(n)))}):wt.realpath(n,r)})}i(sPt,"_resolvePath");function oPt(t,e){let r=Xr.isAbsolute(t)?t:Xr.join(e,t);try{return wt.statSync(r),wt.realpathSync(r)}catch{let s=wt.realpathSync(Xr.dirname(r));return Xr.join(s,Xr.basename(r))}}i(oPt,"_resolvePathSync");function vbe(t){let e=t.tmpdir;if(!Zs(t.name))return Xr.join(e,t.dir,t.name);if(!Zs(t.template))return Xr.join(e,t.dir,t.template).replace(xbe,Ibe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",Ibe(12),t.postfix?"-"+t.postfix:""].join("");return Xr.join(e,t.dir,r)}i(vbe,"_generateTmpName");function ZY(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(ZY,"_assertPath");function Qbe(t){if(!Zs(t.name)){let e=t.name;if(Xr.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=Xr.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!Zs(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(xbe))throw new Error(`Invalid template, found "${t.template}".`)}if(!Zs(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Zs(t.name)?t.tries||zTt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Zs(t.prefix)?"":ZY("prefix",t.prefix),t.postfix=Zs(t.postfix)?"":ZY("postfix",t.postfix),t.template=Zs(t.template)?void 0:ZY("template",t.template)}i(Qbe,"_assertOptionsBase");function Sbe(t,e,r,n){if(Zs(e))return n(null);sPt(e,r,function(s,o){if(s)return n(s);let a=Xr.relative(r,o);if(a.startsWith("..")||Xr.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(Sbe,"_getRelativePath");function wbe(t,e,r){if(Zs(e))return;let n=oPt(e,r),s=Xr.relative(r,n);if(s.startsWith("..")||Xr.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(wbe,"_getRelativePathSync");function iPt(t,e){uPt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{Qbe(t,n)}catch(s){return e(s)}Sbe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=Zs(o)?"":o,Sbe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(iPt,"_assertAndSanitizeOptions");function aPt(t){let e=t.tmpdir=kbe(t);Qbe(t,e);let r=wbe("dir",t.dir,e);return t.dir=Zs(r)?"":r,t.template=wbe("template",t.template,e),t}i(aPt,"_assertAndSanitizeOptionsSync");function cPt(t){return Dbe(t,-WTt,"EBADF")}i(cPt,"_isEBADF");function tj(t){return Dbe(t,-JTt,"ENOENT")}i(tj,"_isENOENT");function Dbe(t,e,r){return VTt?t.code===r:t.code===r&&t.errno===e}i(Dbe,"_isExpectedError");function lPt(){Tbe=!0}i(lPt,"setGracefulCleanup");function uPt(t,e){return wt.realpath(t&&t.tmpdir||Uv.tmpdir(),e)}i(uPt,"_getTmpDir");function kbe(t){return wt.realpathSync(t&&t.tmpdir||Uv.tmpdir())}i(kbe,"_getTmpDirSync");process.addListener(YTt,nPt);Object.defineProperty(Ru.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return kbe()},"get")});Ru.exports.dir=ZTt;Ru.exports.dirSync=ePt;Ru.exports.file=KTt;Ru.exports.fileSync=XTt;Ru.exports.tmpName=rj;Ru.exports.tmpNameSync=nj;Ru.exports.setGracefulCleanup=lPt});var Yn=S(Uo=>{"use strict";Uo.__esModule=!0;Uo.extend=Ube;Uo.indexOf=hPt;Uo.escapeExpression=APt;Uo.isEmpty=gPt;Uo.createFrame=yPt;Uo.blockParams=EPt;Uo.appendContextPath=CPt;var dPt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},pPt=/[&<>"'`=]/g,fPt=/[&<>"'`=]/;function mPt(t){return dPt[t]}i(mPt,"escapeChar");function Ube(t){for(var e=1;e{"use strict";$v.__esModule=!0;var aj=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function cj(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";Gv.__esModule=!0;var lj=Yn();Gv.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(lj.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=lj.createFrame(r.data);o.contextPath=lj.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};Gbe.exports=Gv.default});var Vbe=S((Hv,zbe)=>{"use strict";Hv.__esModule=!0;function IPt(t){return t&&t.__esModule?t:{default:t}}i(IPt,"_interopRequireDefault");var my=Yn(),SPt=Pi(),wPt=IPt(SPt);function xPt(t){try{var e=t.return;my.isFunction(e)&&e.call(t)}catch{}}i(xPt,"closeIterator");Hv.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new wPt.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=my.appendContextPath(r.data.contextPath,r.ids[0])+"."),my.isFunction(e)&&(e=e.call(this)),r.data&&(c=my.createFrame(r.data));function u(h,A,y,E){c&&(c.key=h,c.index=A,c.first=A===0,c.last=!!y,l&&(c.contextPath=l+h)),a=a+n(E,{data:c,blockParams:my.blockParams([E,h],[l+h,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(my.isArray(e))for(var d=e.length;o{"use strict";zv.__esModule=!0;function bPt(t){return t&&t.__esModule?t:{default:t}}i(bPt,"_interopRequireDefault");var BPt=Pi(),RPt=bPt(BPt);zv.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new RPt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Wbe.exports=zv.default});var Xbe=S((Vv,Kbe)=>{"use strict";Vv.__esModule=!0;function NPt(t){return t&&t.__esModule?t:{default:t}}i(NPt,"_interopRequireDefault");var Ybe=Yn(),TPt=Pi(),jbe=NPt(TPt);Vv.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new jbe.default("#if requires exactly one argument");return Ybe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||Ybe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new jbe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Kbe.exports=Vv.default});var e0e=S((Wv,Zbe)=>{"use strict";Wv.__esModule=!0;Wv.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";Jv.__esModule=!0;Jv.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};t0e.exports=Jv.default});var s0e=S((Yv,n0e)=>{"use strict";Yv.__esModule=!0;function PPt(t){return t&&t.__esModule?t:{default:t}}i(PPt,"_interopRequireDefault");var Kw=Yn(),_Pt=Pi(),vPt=PPt(_Pt);Yv.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new vPt.default("#with requires exactly one argument");Kw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(Kw.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=Kw.createFrame(r.data),s.contextPath=Kw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:Kw.blockParams([e],[s&&s.contextPath])})})};n0e.exports=Yv.default});var uj=S(jv=>{"use strict";jv.__esModule=!0;jv.registerDefaultHelpers=WPt;jv.moveHelperToHooks=JPt;function Fm(t){return t&&t.__esModule?t:{default:t}}i(Fm,"_interopRequireDefault");var QPt=Hbe(),DPt=Fm(QPt),kPt=Vbe(),OPt=Fm(kPt),LPt=Jbe(),MPt=Fm(LPt),FPt=Xbe(),UPt=Fm(FPt),qPt=e0e(),$Pt=Fm(qPt),GPt=r0e(),HPt=Fm(GPt),zPt=s0e(),VPt=Fm(zPt);function WPt(t){DPt.default(t),OPt.default(t),MPt.default(t),UPt.default(t),$Pt.default(t),HPt.default(t),VPt.default(t)}i(WPt,"registerDefaultHelpers");function JPt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(JPt,"moveHelperToHooks")});var i0e=S((Kv,o0e)=>{"use strict";Kv.__esModule=!0;var YPt=Yn();Kv.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=YPt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};o0e.exports=Kv.default});var a0e=S(dj=>{"use strict";dj.__esModule=!0;dj.registerDefaultDecorators=ZPt;function jPt(t){return t&&t.__esModule?t:{default:t}}i(jPt,"_interopRequireDefault");var KPt=i0e(),XPt=jPt(KPt);function ZPt(t){XPt.default(t)}i(ZPt,"registerDefaultDecorators")});var pj=S((Xv,c0e)=>{"use strict";Xv.__esModule=!0;var e_t=Yn(),hy={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=e_t.indexOf(hy.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=hy.lookupLevel(e),typeof console<"u"&&hy.lookupLevel(hy.level)<=e){var r=hy.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";Ay.__esModule=!0;Ay.createProtoAccessControl=s_t;Ay.resultIsAllowed=o_t;Ay.isPrototypeConstructor=i_t;Ay.resetLoggedProperties=c_t;function t_t(t){return t&&t.__esModule?t:{default:t}}i(t_t,"_interopRequireDefault");var l0e=Yn(),r_t=pj(),n_t=t_t(r_t),Zv=Object.create(null);function s_t(t){var e=Object.create(null);e.__proto__=!1,l0e.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,l0e.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(s_t,"createProtoAccessControl");function o_t(t,e,r){return u0e(typeof t=="function"?e.methods:e.properties,r)}i(o_t,"resultIsAllowed");function i_t(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(i_t,"isPrototypeConstructor");function u0e(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(a_t(e),!1)}i(u0e,"checkWhiteList");function a_t(t){Zv[t]!==!0&&(Zv[t]=!0,n_t.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: ${SCe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(CCe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(uSt,"pollOperationHelper");async function BCe(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:h,isDone:A,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:x}=await uSt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(xCe({status:x,response:I,state:r,stateProxy:n,isDone:A,processResult:p,getError:f,setErrorAsResult:y}),!SCe.includes(x)){let b=d?.(I);b&&h(b);let N=c?.(I,r);if(N!==void 0){let _=E!==N;r.config.operationLocation=N,u?.(N,_)}else u?.(E,!1)}m?.(r,I)}}i(BCe,"pollOperation");function RCe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(RCe,"getOperationLocationPollingUrl");function NCe(t){return t.headers.location}i(NCe,"getLocationHeader");function TCe(t){return t.headers["operation-location"]}i(TCe,"getOperationLocationHeader");function PCe(t){return t.headers["azure-asyncoperation"]}i(PCe,"getAzureAsyncOperationHeader");function dSt(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(dSt,"findResourceLocation");function _Ce(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=TCe(e),a=PCe(e),c=RCe({operationLocation:o,azureAsyncOperation:a}),l=NCe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:dSt({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(_Ce,"inferLroMode");function vCe(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 Q8(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 bm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(vCe,"transformStatus");function pSt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return vCe({status:r,statusCode:t.statusCode})}i(pSt,"getStatus");function fSt(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 vCe({status:o,statusCode:t.statusCode})}i(fSt,"getProvisioningState");function Q8(t){return t===202?"running":t<300?"succeeded":"failed"}i(Q8,"toOperationStatus");function QCe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?mSt(new Date(e)):r*1e3}}i(QCe,"parseRetryAfter");function DCe(t){let e=t.flatResponse.error;if(!e){bm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){bm.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(DCe,"getErrorFromResponse");function mSt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e{let a=await s.sendInitialRequest(),c=_Ce({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:kCe,setErrorAsResult:o})}i(hSt,"initHttpOperation");function OCe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return RCe({operationLocation:TCe(t),azureAsyncOperation:PCe(t)});case"ResourceLocation":return NCe(t);default:return}}i(OCe,"getOperationLocation");function D8({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return pSt(t);case"ResourceLocation":return Q8(t.statusCode);case"Body":return fSt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(D8,"getOperationStatus");function LCe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(LCe,"getResourceLocation");function MCe(t){return t.name==="RestError"}i(MCe,"isOperationError");async function ASt(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return BCe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:DCe,updateState:o,getPollingInterval:QCe,getOperationLocation:OCe,getOperationStatus:D8,isOperationError:MCe,getResourceLocation:LCe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(ASt,"pollHttpOperation");var gSt=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 ySt(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:h,intervalInMs:A=ICe,restoreFrom:y}=p||{},E=gSt(),I=h?(()=>{let De=!1;return(ce,Tt)=>{Tt?h(ce):De||h(ce),De=!0}})():void 0,x=y?wCe(y):await bCe({init:u,stateProxy:E,processResult:f,getOperationStatus:r,withOperationLocation:I,setErrorAsResult:!l}),b,N=new ECe.AbortController,_=new Map,v=i(async()=>_.forEach(De=>De(x)),"handleProgressEvents"),Y="Operation was canceled",Qe=A,ke={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(De=>{let ce=Symbol();return _.set(ce,De),()=>_.delete(ce)},"onProgress"),pollUntilDone:i(De=>b??(b=(async()=>{let{abortSignal:ce}=De||{},{signal:Tt}=ce?new ECe.AbortController([ce,N.signal]):N;if(!ke.isDone())for(await ke.poll({abortSignal:Tt});!ke.isDone();)await iSt.delay(Qe,{abortSignal:Tt}),await ke.poll({abortSignal:Tt});if(l)return ke.getResult();switch(x.status){case"succeeded":return ke.getResult();case"canceled":throw new Error(Y);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(De){if(l){if(ke.isDone())return}else switch(x.status){case"succeeded":return;case"canceled":throw new Error(Y);case"failed":throw x.error}if(await BCe({poll:d,state:x,stateProxy:E,getOperationLocation:e,isOperationError:s,withOperationLocation:I,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:f,getError:c,updateState:m,options:De,setDelay:i(ce=>{Qe=ce},"setDelay"),setErrorAsResult:!l}),await v(),!l)switch(x.status){case"canceled":throw new Error(Y);case"failed":throw x.error}}};return ke}}i(ySt,"buildCreatePoller");async function ESt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return ySt({getStatusFromInitialResponse:kCe,getStatusFromPollResponse:D8,isOperationError:MCe,getOperationLocation:OCe,getResourceLocation:LCe,getPollingInterval:QCe,getError:DCe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=_Ce({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(ESt,"createHttpPoller");var CSt=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"),_8=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=CSt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await hSt({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 ASt({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 bm.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},f_=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},m_=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},h_=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 m_("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 f_("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()}},v8=class extends h_{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=ICe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?wCe(s):{},p=new _8(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))}};Bm.LroEngine=v8;Bm.Poller=h_;Bm.PollerCancelledError=m_;Bm.PollerStoppedError=f_;Bm.createHttpPoller=ESt});var aIe=S((INr,qSt)=>{qSt.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 lIe=S((SNr,cIe)=>{var $St=aIe();cIe.exports={version:$St.version}});var N_=S(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});Ug.isJsonObject=Ug.typeofJsonValue=void 0;function jSt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(jSt,"typeofJsonValue");Ug.typeofJsonValue=jSt;function KSt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(KSt,"isJsonObject");Ug.isJsonObject=KSt});var P_=S(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.base64encode=qg.base64decode=void 0;var Bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),T_=[];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(XSt,"base64decode");qg.base64decode=XSt;function ZSt(t){let e="",r=0,n,s=0;for(let o=0;o>2],s=(n&3)<<4,r=1;break;case 1:e+=Bu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Bu[s|n>>6],e+=Bu[n&63],r=0;break}return r&&(e+=Bu[s],e+="=",r==1&&(e+="=")),e}i(ZSt,"base64encode");qg.base64encode=ZSt});var hIe=S(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.utf8read=void 0;var z8=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function ewt(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(z8(n)),s=0);return r.length?(s&&r.push(z8(n.slice(0,s))),r.join("")):z8(n.slice(0,s))}i(ewt,"utf8read");__.utf8read=ewt});var Nw=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.WireType=Gc.mergeBinaryOptions=Gc.UnknownFieldHandler=void 0;var twt;(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")})(twt=Gc.UnknownFieldHandler||(Gc.UnknownFieldHandler={}));function rwt(t,e){return Object.assign(Object.assign({},t),e)}i(rwt,"mergeBinaryOptions");Gc.mergeBinaryOptions=rwt;var nwt;(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"})(nwt=Gc.WireType||(Gc.WireType={}))});var Q_=S(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.varint32read=Ys.varint32write=Ys.int64toString=Ys.int64fromString=Ys.varint64write=Ys.varint64read=void 0;function swt(){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(owt,"varint64write");Ys.varint64write=owt;var v_=65536*65536;function iwt(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>=v_&&(s=s+(n/v_|0),n=n%v_)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(iwt,"int64fromString");Ys.int64fromString=iwt;function awt(t,e){if(e>>>0<=2097151)return""+(v_*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(awt,"int64toString");Ys.int64toString=awt;function cwt(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(cwt,"varint32write");Ys.varint32write=cwt;function lwt(){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(lwt,"varint32read");Ys.varint32read=lwt});var Hd=S(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.PbLong=Gd.PbULong=Gd.detectBi=void 0;var Tw=Q_(),Rt;function AIe(){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(AIe,"detectBi");Gd.detectBi=AIe;AIe();function gIe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(gIe,"assertBi");var yIe=/^-?[0-9]+$/,k_=4294967296,D_=2147483648,O_=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*k_+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},Pw=class t extends O_{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(),!yIe.test(e))throw new Error("string is no integer");let[r,n,s]=Tw.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/k_)}throw new Error("unknown value "+typeof e)}toString(){return Rt?this.toBigInt().toString():Tw.int64toString(this.lo,this.hi)}toBigInt(){return gIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigUint64(0,!0)}};Gd.PbULong=Pw;Pw.ZERO=new Pw(0,0);var _w=class t extends O_{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(),!yIe.test(e))throw new Error("string is no integer");let[r,n,s]=Tw.int64fromString(e);if(r){if(s>D_||s==D_&&n!=0)throw new Error("signed long too small")}else if(s>=D_)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/k_):new t(-e,-e/k_).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&D_)!==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"-"+Tw.int64toString(e.lo,e.hi)}return Tw.int64toString(this.lo,this.hi)}toBigInt(){return gIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigInt64(0,!0)}};Gd.PbLong=_w;_w.ZERO=new _w(0,0)});var V8=S(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.BinaryReader=Gg.binaryReadOptions=void 0;var $g=Nw(),vw=Hd(),EIe=Q_(),CIe={readUnknownField:!0,readerFactory:i(t=>new L_(t),"readerFactory")};function uwt(t){return t?Object.assign(Object.assign({},CIe),t):CIe}i(uwt,"binaryReadOptions");Gg.binaryReadOptions=uwt;var L_=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=EIe.varint64read,this.uint32=EIe.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 $g.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case $g.WireType.Bit64:this.pos+=4;case $g.WireType.Bit32:this.pos+=4;break;case $g.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case $g.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==$g.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 vw.PbLong(...this.varint64())}uint64(){return new vw.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 vw.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 vw.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new vw.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())}};Gg.BinaryReader=L_});var Hg=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.assertFloat32=xi.assertUInt32=xi.assertInt32=xi.assertNever=xi.assert=void 0;function dwt(t,e){if(!t)throw new Error(e)}i(dwt,"assert");xi.assert=dwt;function pwt(t,e){throw new Error(e??"Unexpected object: "+t)}i(pwt,"assertNever");xi.assertNever=pwt;var fwt=34028234663852886e22,mwt=-34028234663852886e22,hwt=4294967295,Awt=2147483647,gwt=-2147483648;function ywt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>Awt||thwt||t<0)throw new Error("invalid uint 32: "+t)}i(Ewt,"assertUInt32");xi.assertUInt32=Ewt;function Cwt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>fwt||t{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.BinaryWriter=Vg.binaryWriteOptions=void 0;var Qw=Hd(),Dw=Q_(),zg=Hg(),IIe={writeUnknownFields:!0,writerFactory:i(()=>new M_,"writerFactory")};function Iwt(t){return t?Object.assign(Object.assign({},IIe),t):IIe}i(Iwt,"binaryWriteOptions");Vg.binaryWriteOptions=Iwt;var M_=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(zg.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return zg.assertInt32(e),Dw.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){zg.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){zg.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){zg.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return zg.assertInt32(e),e=(e<<1^e>>31)>>>0,Dw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=Qw.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=Qw.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=Qw.PbLong.from(e);return Dw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=Qw.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return Dw.varint64write(s,o,this.buf),this}uint64(e){let r=Qw.PbULong.from(e);return Dw.varint64write(r.lo,r.hi,this.buf),this}};Vg.BinaryWriter=M_});var J8=S(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.mergeJsonOptions=zd.jsonWriteOptions=zd.jsonReadOptions=void 0;var SIe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},wIe={ignoreUnknownFields:!1};function Swt(t){return t?Object.assign(Object.assign({},wIe),t):wIe}i(Swt,"jsonReadOptions");zd.jsonReadOptions=Swt;function wwt(t){return t?Object.assign(Object.assign({},SIe),t):SIe}i(wwt,"jsonWriteOptions");zd.jsonWriteOptions=wwt;function xwt(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(xwt,"mergeJsonOptions");zd.mergeJsonOptions=xwt});var kw=S(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.MESSAGE_TYPE=void 0;F_.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var Y8=S(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});U_.lowerCamelCase=void 0;function bwt(t){let e=!1,r=[];for(let n=0;n{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.readMessageOption=Yr.readFieldOption=Yr.readFieldOptions=Yr.normalizeFieldInfo=Yr.RepeatType=Yr.LongType=Yr.ScalarType=void 0;var xIe=Y8(),Bwt;(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"})(Bwt=Yr.ScalarType||(Yr.ScalarType={}));var Rwt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(Rwt=Yr.LongType||(Yr.LongType={}));var bIe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(bIe=Yr.RepeatType||(Yr.RepeatType={}));function Nwt(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:xIe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:xIe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:bIe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(Nwt,"normalizeFieldInfo");Yr.normalizeFieldInfo=Nwt;function Twt(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(Twt,"readFieldOptions");Yr.readFieldOptions=Twt;function Pwt(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(Pwt,"readFieldOption");Yr.readFieldOption=Pwt;function _wt(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(_wt,"readMessageOption");Yr.readMessageOption=_wt});var j8=S(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.getSelectedOneofValue=js.clearOneofValue=js.setUnknownOneofValue=js.setOneofValue=js.getOneofValue=js.isOneofGroup=void 0;function vwt(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(vwt,"isOneofGroup");js.isOneofGroup=vwt;function Qwt(t,e){return t[e]}i(Qwt,"getOneofValue");js.getOneofValue=Qwt;function Dwt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(Dwt,"setOneofValue");js.setOneofValue=Dwt;function kwt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(kwt,"setUnknownOneofValue");js.setUnknownOneofValue=kwt;function Owt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Owt,"clearOneofValue");js.clearOneofValue=Owt;function Lwt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(Lwt,"getSelectedOneofValue");js.getSelectedOneofValue=Lwt});var X8=S(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.ReflectionTypeCheck=void 0;var hr=ga(),Mwt=j8(),K8=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(!Mwt.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,hr.ScalarType.INT32,s):this.scalar(e,hr.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),hr.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 hr.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,hr.LongType.STRING)}}};q_.ReflectionTypeCheck=K8});var G_=S($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.reflectionLongConvert=void 0;var BIe=ga();function Fwt(t,e){switch(e){case BIe.LongType.BIGINT:return t.toBigInt();case BIe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(Fwt,"reflectionLongConvert");$_.reflectionLongConvert=Fwt});var eJ=S(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.ReflectionJsonReader=void 0;var RIe=N_(),Uwt=P_(),jr=ga(),H_=Hd(),Nm=Hg(),z_=G_(),Z8=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=RIe.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(RIe.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 h=p;c.K==jr.ScalarType.BOOL&&(h=h=="true"?!0:h=="false"?!1:h),h=this.scalar(h,c.K,jr.LongType.STRING,c.name).toString(),d[h]=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"&&Nm.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 Nm.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:(Nm.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}Nm.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 jr.ScalarType.DOUBLE:case jr.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==jr.ScalarType.FLOAT&&Nm.assertFloat32(a),a;case jr.ScalarType.INT32:case jr.ScalarType.FIXED32:case jr.ScalarType.SFIXED32:case jr.ScalarType.SINT32:case jr.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==jr.ScalarType.UINT32?Nm.assertUInt32(c):Nm.assertInt32(c),c;case jr.ScalarType.INT64:case jr.ScalarType.SFIXED64:case jr.ScalarType.SINT64:if(e===null)return z_.reflectionLongConvert(H_.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return z_.reflectionLongConvert(H_.PbLong.from(e),n);case jr.ScalarType.FIXED64:case jr.ScalarType.UINT64:if(e===null)return z_.reflectionLongConvert(H_.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return z_.reflectionLongConvert(H_.PbULong.from(e),n);case jr.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case jr.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 jr.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return Uwt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};V_.ReflectionJsonReader=Z8});var rJ=S(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.ReflectionJsonWriter=void 0;var qwt=P_(),NIe=Hd(),Cs=ga(),Yt=Hg(),tJ=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);Yt.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){Yt.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);Yt.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);Yt.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Yt.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Yt.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){Yt.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){Yt.assert(s);return}if(!(r===0&&!o&&!s))return Yt.assert(typeof r=="number"),Yt.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){Yt.assert(s);return}let a=o||s;switch(e){case Cs.ScalarType.INT32:case Cs.ScalarType.SFIXED32:case Cs.ScalarType.SINT32:return r===0?a?0:void 0:(Yt.assertInt32(r),r);case Cs.ScalarType.FIXED32:case Cs.ScalarType.UINT32:return r===0?a?0:void 0:(Yt.assertUInt32(r),r);case Cs.ScalarType.FLOAT:Yt.assertFloat32(r);case Cs.ScalarType.DOUBLE:return r===0?a?0:void 0:(Yt.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Cs.ScalarType.STRING:return r===""?a?"":void 0:(Yt.assert(typeof r=="string"),r);case Cs.ScalarType.BOOL:return r===!1?a?!1:void 0:(Yt.assert(typeof r=="boolean"),r);case Cs.ScalarType.UINT64:case Cs.ScalarType.FIXED64:Yt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=NIe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Cs.ScalarType.INT64:case Cs.ScalarType.SFIXED64:case Cs.ScalarType.SINT64:Yt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=NIe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Cs.ScalarType.BYTES:return Yt.assert(r instanceof Uint8Array),r.byteLength?qwt.base64encode(r):a?"":void 0}}};W_.ReflectionJsonWriter=tJ});var Y_=S(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.reflectionScalarDefault=void 0;var ya=ga(),TIe=G_(),PIe=Hd();function $wt(t,e=ya.LongType.STRING){switch(t){case ya.ScalarType.BOOL:return!1;case ya.ScalarType.UINT64:case ya.ScalarType.FIXED64:return TIe.reflectionLongConvert(PIe.PbULong.ZERO,e);case ya.ScalarType.INT64:case ya.ScalarType.SFIXED64:case ya.ScalarType.SINT64:return TIe.reflectionLongConvert(PIe.PbLong.ZERO,e);case ya.ScalarType.DOUBLE:case ya.ScalarType.FLOAT:return 0;case ya.ScalarType.BYTES:return new Uint8Array(0);case ya.ScalarType.STRING:return"";default:return 0}}i($wt,"reflectionScalarDefault");J_.reflectionScalarDefault=$wt});var sJ=S(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.ReflectionBinaryReader=void 0;var _Ie=Nw(),Pr=ga(),Ow=G_(),vIe=Y_(),nJ=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(K_,"__esModule",{value:!0});K_.ReflectionBinaryWriter=void 0;var Lo=Nw(),_t=ga(),Wg=Hg(),Lw=Hd(),oJ=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"?_t.ScalarType.INT32:o.T;if(l)if(Wg.assert(Array.isArray(a)),l==_t.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?Wg.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){Wg.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":Wg.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?Lo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,Lo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case _t.ScalarType.INT32:case _t.ScalarType.FIXED32:case _t.ScalarType.UINT32:case _t.ScalarType.SFIXED32:case _t.ScalarType.SINT32:a=Number.parseInt(s);break;case _t.ScalarType.BOOL:Wg.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,_t.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,Lo.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;Wg.assert(r!==_t.ScalarType.BYTES&&r!==_t.ScalarType.STRING),e.tag(n,Lo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.reflectionCreate=void 0;var Gwt=Y_(),Hwt=kw();function zwt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Hwt.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]=Gwt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(zwt,"reflectionCreate");X_.reflectionCreate=zwt});var cJ=S(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.reflectionMergePartial=void 0;function Vwt(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(tv,"__esModule",{value:!0});tv.reflectionEquals=void 0;var lJ=ga();function Wwt(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"?lJ.ScalarType.INT32:n.T;if(!(n.repeat?QIe(c,o,a):kIe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?DIe(n.V.T(),ev(o),ev(a)):QIe(n.V.kind=="enum"?lJ.ScalarType.INT32:n.V.T,ev(o),ev(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?DIe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(Wwt,"reflectionEquals");tv.reflectionEquals=Wwt;var ev=Object.values;function kIe(t,e,r){if(e===r)return!0;if(t!==lJ.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(rv,"__esModule",{value:!0});rv.MessageType=void 0;var Jwt=kw(),Ywt=ga(),jwt=X8(),Kwt=eJ(),Xwt=rJ(),Zwt=sJ(),ext=iJ(),txt=aJ(),dJ=cJ(),rxt=N_(),OIe=J8(),nxt=uJ(),sxt=W8(),oxt=V8(),LIe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),ixt=LIe[Jwt.MESSAGE_TYPE]={},pJ=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Ywt.normalizeFieldInfo),this.options=n??{},ixt.value=this,this.messagePrototype=Object.create(null,LIe),this.refTypeCheck=new jwt.ReflectionTypeCheck(this),this.refJsonReader=new Kwt.ReflectionJsonReader(this),this.refJsonWriter=new Xwt.ReflectionJsonWriter(this),this.refBinReader=new Zwt.ReflectionBinaryReader(this),this.refBinWriter=new ext.ReflectionBinaryWriter(this)}create(e){let r=txt.reflectionCreate(this);return e!==void 0&&dJ.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return dJ.reflectionMergePartial(this,r,e),r}equals(e,r){return nxt.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){dJ.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=oxt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,OIe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,OIe.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=sxt.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 ${rxt.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}};rv.MessageType=pJ});var FIe=S(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.containsMessageType=void 0;var axt=kw();function cxt(t){return t[axt.MESSAGE_TYPE]!=null}i(cxt,"containsMessageType");nv.containsMessageType=cxt});var qIe=S(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.listEnumNumbers=Hc.listEnumNames=Hc.listEnumValues=Hc.isEnumObject=void 0;function UIe(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(UIe,"isEnumObject");Hc.isEnumObject=UIe;function fJ(t){if(!UIe(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(fJ,"listEnumValues");Hc.listEnumValues=fJ;function lxt(t){return fJ(t).map(e=>e.name)}i(lxt,"listEnumNames");Hc.listEnumNames=lxt;function uxt(t){return fJ(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(uxt,"listEnumNumbers");Hc.listEnumNumbers=uxt});var _r=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});var $Ie=N_();Object.defineProperty(me,"typeofJsonValue",{enumerable:!0,get:i(function(){return $Ie.typeofJsonValue},"get")});Object.defineProperty(me,"isJsonObject",{enumerable:!0,get:i(function(){return $Ie.isJsonObject},"get")});var GIe=P_();Object.defineProperty(me,"base64decode",{enumerable:!0,get:i(function(){return GIe.base64decode},"get")});Object.defineProperty(me,"base64encode",{enumerable:!0,get:i(function(){return GIe.base64encode},"get")});var dxt=hIe();Object.defineProperty(me,"utf8read",{enumerable:!0,get:i(function(){return dxt.utf8read},"get")});var mJ=Nw();Object.defineProperty(me,"WireType",{enumerable:!0,get:i(function(){return mJ.WireType},"get")});Object.defineProperty(me,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return mJ.mergeBinaryOptions},"get")});Object.defineProperty(me,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return mJ.UnknownFieldHandler},"get")});var HIe=V8();Object.defineProperty(me,"BinaryReader",{enumerable:!0,get:i(function(){return HIe.BinaryReader},"get")});Object.defineProperty(me,"binaryReadOptions",{enumerable:!0,get:i(function(){return HIe.binaryReadOptions},"get")});var zIe=W8();Object.defineProperty(me,"BinaryWriter",{enumerable:!0,get:i(function(){return zIe.BinaryWriter},"get")});Object.defineProperty(me,"binaryWriteOptions",{enumerable:!0,get:i(function(){return zIe.binaryWriteOptions},"get")});var VIe=Hd();Object.defineProperty(me,"PbLong",{enumerable:!0,get:i(function(){return VIe.PbLong},"get")});Object.defineProperty(me,"PbULong",{enumerable:!0,get:i(function(){return VIe.PbULong},"get")});var hJ=J8();Object.defineProperty(me,"jsonReadOptions",{enumerable:!0,get:i(function(){return hJ.jsonReadOptions},"get")});Object.defineProperty(me,"jsonWriteOptions",{enumerable:!0,get:i(function(){return hJ.jsonWriteOptions},"get")});Object.defineProperty(me,"mergeJsonOptions",{enumerable:!0,get:i(function(){return hJ.mergeJsonOptions},"get")});var pxt=kw();Object.defineProperty(me,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return pxt.MESSAGE_TYPE},"get")});var fxt=MIe();Object.defineProperty(me,"MessageType",{enumerable:!0,get:i(function(){return fxt.MessageType},"get")});var Tm=ga();Object.defineProperty(me,"ScalarType",{enumerable:!0,get:i(function(){return Tm.ScalarType},"get")});Object.defineProperty(me,"LongType",{enumerable:!0,get:i(function(){return Tm.LongType},"get")});Object.defineProperty(me,"RepeatType",{enumerable:!0,get:i(function(){return Tm.RepeatType},"get")});Object.defineProperty(me,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Tm.normalizeFieldInfo},"get")});Object.defineProperty(me,"readFieldOptions",{enumerable:!0,get:i(function(){return Tm.readFieldOptions},"get")});Object.defineProperty(me,"readFieldOption",{enumerable:!0,get:i(function(){return Tm.readFieldOption},"get")});Object.defineProperty(me,"readMessageOption",{enumerable:!0,get:i(function(){return Tm.readMessageOption},"get")});var mxt=X8();Object.defineProperty(me,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return mxt.ReflectionTypeCheck},"get")});var hxt=aJ();Object.defineProperty(me,"reflectionCreate",{enumerable:!0,get:i(function(){return hxt.reflectionCreate},"get")});var Axt=Y_();Object.defineProperty(me,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return Axt.reflectionScalarDefault},"get")});var gxt=cJ();Object.defineProperty(me,"reflectionMergePartial",{enumerable:!0,get:i(function(){return gxt.reflectionMergePartial},"get")});var yxt=uJ();Object.defineProperty(me,"reflectionEquals",{enumerable:!0,get:i(function(){return yxt.reflectionEquals},"get")});var Ext=sJ();Object.defineProperty(me,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return Ext.ReflectionBinaryReader},"get")});var Cxt=iJ();Object.defineProperty(me,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return Cxt.ReflectionBinaryWriter},"get")});var Ixt=eJ();Object.defineProperty(me,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return Ixt.ReflectionJsonReader},"get")});var Sxt=rJ();Object.defineProperty(me,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return Sxt.ReflectionJsonWriter},"get")});var wxt=FIe();Object.defineProperty(me,"containsMessageType",{enumerable:!0,get:i(function(){return wxt.containsMessageType},"get")});var Mw=j8();Object.defineProperty(me,"isOneofGroup",{enumerable:!0,get:i(function(){return Mw.isOneofGroup},"get")});Object.defineProperty(me,"setOneofValue",{enumerable:!0,get:i(function(){return Mw.setOneofValue},"get")});Object.defineProperty(me,"getOneofValue",{enumerable:!0,get:i(function(){return Mw.getOneofValue},"get")});Object.defineProperty(me,"clearOneofValue",{enumerable:!0,get:i(function(){return Mw.clearOneofValue},"get")});Object.defineProperty(me,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return Mw.getSelectedOneofValue},"get")});var sv=qIe();Object.defineProperty(me,"listEnumValues",{enumerable:!0,get:i(function(){return sv.listEnumValues},"get")});Object.defineProperty(me,"listEnumNames",{enumerable:!0,get:i(function(){return sv.listEnumNames},"get")});Object.defineProperty(me,"listEnumNumbers",{enumerable:!0,get:i(function(){return sv.listEnumNumbers},"get")});Object.defineProperty(me,"isEnumObject",{enumerable:!0,get:i(function(){return sv.isEnumObject},"get")});var xxt=Y8();Object.defineProperty(me,"lowerCamelCase",{enumerable:!0,get:i(function(){return xxt.lowerCamelCase},"get")});var Fw=Hg();Object.defineProperty(me,"assert",{enumerable:!0,get:i(function(){return Fw.assert},"get")});Object.defineProperty(me,"assertNever",{enumerable:!0,get:i(function(){return Fw.assertNever},"get")});Object.defineProperty(me,"assertInt32",{enumerable:!0,get:i(function(){return Fw.assertInt32},"get")});Object.defineProperty(me,"assertUInt32",{enumerable:!0,get:i(function(){return Fw.assertUInt32},"get")});Object.defineProperty(me,"assertFloat32",{enumerable:!0,get:i(function(){return Fw.assertFloat32},"get")})});var AJ=S(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.readServiceOption=zc.readMethodOption=zc.readMethodOptions=zc.normalizeMethodInfo=void 0;var bxt=_r();function Bxt(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:bxt.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(Bxt,"normalizeMethodInfo");zc.normalizeMethodInfo=Bxt;function Rxt(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(Rxt,"readMethodOptions");zc.readMethodOptions=Rxt;function Nxt(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(Nxt,"readMethodOption");zc.readMethodOption=Nxt;function Txt(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(Txt,"readServiceOption");zc.readServiceOption=Txt});var WIe=S(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});ov.ServiceType=void 0;var Pxt=AJ(),gJ=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>Pxt.normalizeMethodInfo(s,this)),this.options=n??{}}};ov.ServiceType=gJ});var EJ=S(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.RpcError=void 0;var yJ=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(` +`)}};iv.RpcError=yJ});var CJ=S(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.mergeRpcOptions=void 0;var JIe=_r();function _xt(t,e){if(!e)return t;let r={};av(t,r),av(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=JIe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=JIe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},av(t.meta,r.meta),av(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(_xt,"mergeRpcOptions");cv.mergeRpcOptions=_xt;function av(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(av,"copy")});var SJ=S(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.Deferred=Pm.DeferredState=void 0;var Vc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vc=Pm.DeferredState||(Pm.DeferredState={}));var IJ=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Vc.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!==Vc.PENDING)throw new Error(`cannot resolve ${Vc[this.state].toLowerCase()}`);this._resolve(e),this._state=Vc.RESOLVED}reject(e){if(this.state!==Vc.PENDING)throw new Error(`cannot reject ${Vc[this.state].toLowerCase()}`);this._reject(e),this._state=Vc.REJECTED}resolvePending(e){this._state===Vc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vc.PENDING&&this.reject(e)}};Pm.Deferred=IJ});var xJ=S(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});lv.RpcOutputStreamController=void 0;var YIe=SJ(),_m=_r(),wJ=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){_m.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){_m.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){_m.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(){_m.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;_m.assert(e,"bad state"),_m.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 YIe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;_m.assert(n.state==YIe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};lv.RpcOutputStreamController=wJ});var BJ=S(Jg=>{"use strict";var vxt=Jg&&Jg.__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(Jg,"__esModule",{value:!0});Jg.UnaryCall=void 0;var bJ=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 vxt(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}})}};Jg.UnaryCall=bJ});var NJ=S(Yg=>{"use strict";var Qxt=Yg&&Yg.__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(Yg,"__esModule",{value:!0});Yg.ServerStreamingCall=void 0;var RJ=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 Qxt(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}})}};Yg.ServerStreamingCall=RJ});var PJ=S(jg=>{"use strict";var Dxt=jg&&jg.__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(jg,"__esModule",{value:!0});jg.ClientStreamingCall=void 0;var TJ=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 Dxt(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}})}};jg.ClientStreamingCall=TJ});var vJ=S(Kg=>{"use strict";var kxt=Kg&&Kg.__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(Kg,"__esModule",{value:!0});Kg.DuplexStreamingCall=void 0;var _J=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 kxt(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}})}};Kg.DuplexStreamingCall=_J});var KIe=S(ey=>{"use strict";var Oxt=ey&&ey.__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(ey,"__esModule",{value:!0});ey.TestTransport=void 0;var bi=EJ(),uv=_r(),jIe=xJ(),Lxt=CJ(),Mxt=BJ(),Fxt=NJ(),Uxt=PJ(),qxt=vJ(),Zg=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 Xg?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof Xg?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 bi.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof bi.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(uv.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),uv.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Oxt(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)uv.assert(e.O.is(o)),s.push(o);else this.data.response instanceof bi.RpcError||(uv.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield dn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof bi.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield dn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof bi.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof bi.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 bi.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 bi.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Lxt.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(dn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(dn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Mxt.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(dn(this.headerDelay,n.abort)),c=new jIe.RpcOutputStreamController,l=a.then(dn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(dn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new Fxt.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(dn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(dn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new Xg(this.data,r.abort),new Uxt.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(dn(this.headerDelay,r.abort)),a=new jIe.RpcOutputStreamController,c=o.then(dn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(dn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new Xg(this.data,r.abort),new qxt.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};ey.TestTransport=Zg;Zg.defaultHeaders={responseHeader:"test"};Zg.defaultStatus={code:"OK",detail:"all good"};Zg.defaultTrailers={responseTrailer:"test"};function dn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new bi.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new bi.RpcError("user cancel","CANCELLED"))})}})}i(dn,"delay");var Xg=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 bi.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(dn(r,this.abort))}complete(){if(this.data.inputComplete instanceof bi.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(dn(e,this.abort))}}});var XIe=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.stackDuplexStreamingInterceptors=Bi.stackClientStreamingInterceptors=Bi.stackServerStreamingInterceptors=Bi.stackUnaryInterceptors=Bi.stackIntercept=void 0;var $xt=_r();function Uw(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,h)=>d.interceptUnary(p,f,m,h),"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,h)=>d.interceptServerStreaming(p,f,m,h),"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)}$xt.assertNever(t)}i(Uw,"stackIntercept");Bi.stackIntercept=Uw;function Gxt(t,e,r,n){return Uw("unary",t,e,n,r)}i(Gxt,"stackUnaryInterceptors");Bi.stackUnaryInterceptors=Gxt;function Hxt(t,e,r,n){return Uw("serverStreaming",t,e,n,r)}i(Hxt,"stackServerStreamingInterceptors");Bi.stackServerStreamingInterceptors=Hxt;function zxt(t,e,r){return Uw("clientStreaming",t,e,r)}i(zxt,"stackClientStreamingInterceptors");Bi.stackClientStreamingInterceptors=zxt;function Vxt(t,e,r){return Uw("duplex",t,e,r)}i(Vxt,"stackDuplexStreamingInterceptors");Bi.stackDuplexStreamingInterceptors=Vxt});var ZIe=S(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.ServerCallContextController=void 0;var QJ=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)}}};dv.ServerCallContextController=QJ});var tSe=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Wxt=WIe();Object.defineProperty(Ar,"ServiceType",{enumerable:!0,get:i(function(){return Wxt.ServiceType},"get")});var DJ=AJ();Object.defineProperty(Ar,"readMethodOptions",{enumerable:!0,get:i(function(){return DJ.readMethodOptions},"get")});Object.defineProperty(Ar,"readMethodOption",{enumerable:!0,get:i(function(){return DJ.readMethodOption},"get")});Object.defineProperty(Ar,"readServiceOption",{enumerable:!0,get:i(function(){return DJ.readServiceOption},"get")});var Jxt=EJ();Object.defineProperty(Ar,"RpcError",{enumerable:!0,get:i(function(){return Jxt.RpcError},"get")});var Yxt=CJ();Object.defineProperty(Ar,"mergeRpcOptions",{enumerable:!0,get:i(function(){return Yxt.mergeRpcOptions},"get")});var jxt=xJ();Object.defineProperty(Ar,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return jxt.RpcOutputStreamController},"get")});var Kxt=KIe();Object.defineProperty(Ar,"TestTransport",{enumerable:!0,get:i(function(){return Kxt.TestTransport},"get")});var eSe=SJ();Object.defineProperty(Ar,"Deferred",{enumerable:!0,get:i(function(){return eSe.Deferred},"get")});Object.defineProperty(Ar,"DeferredState",{enumerable:!0,get:i(function(){return eSe.DeferredState},"get")});var Xxt=vJ();Object.defineProperty(Ar,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return Xxt.DuplexStreamingCall},"get")});var Zxt=PJ();Object.defineProperty(Ar,"ClientStreamingCall",{enumerable:!0,get:i(function(){return Zxt.ClientStreamingCall},"get")});var ebt=NJ();Object.defineProperty(Ar,"ServerStreamingCall",{enumerable:!0,get:i(function(){return ebt.ServerStreamingCall},"get")});var tbt=BJ();Object.defineProperty(Ar,"UnaryCall",{enumerable:!0,get:i(function(){return tbt.UnaryCall},"get")});var qw=XIe();Object.defineProperty(Ar,"stackIntercept",{enumerable:!0,get:i(function(){return qw.stackIntercept},"get")});Object.defineProperty(Ar,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return qw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return qw.stackClientStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return qw.stackServerStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return qw.stackUnaryInterceptors},"get")});var rbt=ZIe();Object.defineProperty(Ar,"ServerCallContextController",{enumerable:!0,get:i(function(){return rbt.ServerCallContextController},"get")})});var Mm=S((w_r,uwe)=>{"use strict";var PBt="2.0.0",_Bt=Number.MAX_SAFE_INTEGER||9007199254740991,vBt=16,QBt=250,DBt=[" ",` +`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],kBt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:vBt,MAX_SAFE_BUILD_LENGTH:QBt,MAX_SAFE_INTEGER:_Bt,WHITESPACE_CHARACTERS:DBt,RELEASE_TYPES:kBt,SEMVER_SPEC_VERSION:PBt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Vw=S((x_r,dwe)=>{"use strict";var OBt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};dwe.exports=OBt});var py=S((Yc,pwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:TY,MAX_SAFE_BUILD_LENGTH:LBt,MAX_LENGTH:MBt}=Mm(),FBt=Vw();Yc=pwe.exports={};var UBt=Yc.re=[],qBt=Yc.safeRe=[],W=Yc.src=[],$Bt=Yc.safeSrc=[],J=Yc.t={},GBt=0,PY="[a-zA-Z0-9-]",HBt=[["\\s",1],["\\d",MBt],[PY,LBt]],zBt=i(t=>{for(let[e,r]of HBt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ue=i((t,e,r)=>{let n=zBt(e),s=GBt++;FBt(t,s,e),J[t]=s,W[s]=e,$Bt[s]=n,UBt[s]=new RegExp(e,r?"g":void 0),qBt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ue("NUMERICIDENTIFIER","0|[1-9]\\d*");Ue("NUMERICIDENTIFIERLOOSE","\\d+");Ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${PY}*`);Ue("MAINVERSION",`(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})\\.(${W[J.NUMERICIDENTIFIER]})`);Ue("MAINVERSIONLOOSE",`(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})\\.(${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASEIDENTIFIER",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIER]})`);Ue("PRERELEASEIDENTIFIERLOOSE",`(?:${W[J.NONNUMERICIDENTIFIER]}|${W[J.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASE",`(?:-(${W[J.PRERELEASEIDENTIFIER]}(?:\\.${W[J.PRERELEASEIDENTIFIER]})*))`);Ue("PRERELEASELOOSE",`(?:-?(${W[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[J.PRERELEASEIDENTIFIERLOOSE]})*))`);Ue("BUILDIDENTIFIER",`${PY}+`);Ue("BUILD",`(?:\\+(${W[J.BUILDIDENTIFIER]}(?:\\.${W[J.BUILDIDENTIFIER]})*))`);Ue("FULLPLAIN",`v?${W[J.MAINVERSION]}${W[J.PRERELEASE]}?${W[J.BUILD]}?`);Ue("FULL",`^${W[J.FULLPLAIN]}$`);Ue("LOOSEPLAIN",`[v=\\s]*${W[J.MAINVERSIONLOOSE]}${W[J.PRERELEASELOOSE]}?${W[J.BUILD]}?`);Ue("LOOSE",`^${W[J.LOOSEPLAIN]}$`);Ue("GTLT","((?:<|>)?=?)");Ue("XRANGEIDENTIFIERLOOSE",`${W[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ue("XRANGEIDENTIFIER",`${W[J.NUMERICIDENTIFIER]}|x|X|\\*`);Ue("XRANGEPLAIN",`[v=\\s]*(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:\\.(${W[J.XRANGEIDENTIFIER]})(?:${W[J.PRERELEASE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGEPLAINLOOSE",`[v=\\s]*(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[J.XRANGEIDENTIFIERLOOSE]})(?:${W[J.PRERELEASELOOSE]})?${W[J.BUILD]}?)?)?`);Ue("XRANGE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAIN]}$`);Ue("XRANGELOOSE",`^${W[J.GTLT]}\\s*${W[J.XRANGEPLAINLOOSE]}$`);Ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${TY}})(?:\\.(\\d{1,${TY}}))?(?:\\.(\\d{1,${TY}}))?`);Ue("COERCE",`${W[J.COERCEPLAIN]}(?:$|[^\\d])`);Ue("COERCEFULL",W[J.COERCEPLAIN]+`(?:${W[J.PRERELEASE]})?(?:${W[J.BUILD]})?(?:$|[^\\d])`);Ue("COERCERTL",W[J.COERCE],!0);Ue("COERCERTLFULL",W[J.COERCEFULL],!0);Ue("LONETILDE","(?:~>?)");Ue("TILDETRIM",`(\\s*)${W[J.LONETILDE]}\\s+`,!0);Yc.tildeTrimReplace="$1~";Ue("TILDE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAIN]}$`);Ue("TILDELOOSE",`^${W[J.LONETILDE]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("LONECARET","(?:\\^)");Ue("CARETTRIM",`(\\s*)${W[J.LONECARET]}\\s+`,!0);Yc.caretTrimReplace="$1^";Ue("CARET",`^${W[J.LONECARET]}${W[J.XRANGEPLAIN]}$`);Ue("CARETLOOSE",`^${W[J.LONECARET]}${W[J.XRANGEPLAINLOOSE]}$`);Ue("COMPARATORLOOSE",`^${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]})$|^$`);Ue("COMPARATOR",`^${W[J.GTLT]}\\s*(${W[J.FULLPLAIN]})$|^$`);Ue("COMPARATORTRIM",`(\\s*)${W[J.GTLT]}\\s*(${W[J.LOOSEPLAIN]}|${W[J.XRANGEPLAIN]})`,!0);Yc.comparatorTrimReplace="$1$2$3";Ue("HYPHENRANGE",`^\\s*(${W[J.XRANGEPLAIN]})\\s+-\\s+(${W[J.XRANGEPLAIN]})\\s*$`);Ue("HYPHENRANGELOOSE",`^\\s*(${W[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[J.XRANGEPLAINLOOSE]})\\s*$`);Ue("STAR","(<|>)?=?\\s*\\*");Ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rv=S((B_r,fwe)=>{"use strict";var VBt=Object.freeze({loose:!0}),WBt=Object.freeze({}),JBt=i(t=>t?typeof t!="object"?VBt:t:WBt,"parseOptions");fwe.exports=JBt});var _Y=S((N_r,Awe)=>{"use strict";var mwe=/^[0-9]+$/,hwe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:thwe(e,t),"rcompareIdentifiers");Awe.exports={compareIdentifiers:hwe,rcompareIdentifiers:YBt}});var Pn=S((P_r,ywe)=>{"use strict";var Nv=Vw(),{MAX_LENGTH:gwe,MAX_SAFE_INTEGER:Tv}=Mm(),{safeRe:Pv,t:_v}=py(),jBt=Rv(),{compareIdentifiers:vY}=_Y(),KBt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;ngwe)throw new TypeError(`version is longer than ${gwe} characters`);Nv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Pv[_v.LOOSE]:Pv[_v.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>Tv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Tv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Tv||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(Nv("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 vY(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(Nv("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 vY(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?Pv[_v.PRERELEASELOOSE]:Pv[_v.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]),KBt(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}};ywe.exports=QY});var Jd=S((v_r,Cwe)=>{"use strict";var Ewe=Pn(),XBt=i((t,e,r=!1)=>{if(t instanceof Ewe)return t;try{return new Ewe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Cwe.exports=XBt});var Swe=S((D_r,Iwe)=>{"use strict";var ZBt=Jd(),eRt=i((t,e)=>{let r=ZBt(t,e);return r?r.version:null},"valid");Iwe.exports=eRt});var xwe=S((O_r,wwe)=>{"use strict";var tRt=Jd(),rRt=i((t,e)=>{let r=tRt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");wwe.exports=rRt});var Rwe=S((M_r,Bwe)=>{"use strict";var bwe=Pn(),nRt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new bwe(t instanceof bwe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Bwe.exports=nRt});var Pwe=S((U_r,Twe)=>{"use strict";var Nwe=Jd(),sRt=i((t,e)=>{let r=Nwe(t,null,!0),n=Nwe(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");Twe.exports=sRt});var vwe=S(($_r,_we)=>{"use strict";var oRt=Pn(),iRt=i((t,e)=>new oRt(t,e).major,"major");_we.exports=iRt});var Dwe=S((H_r,Qwe)=>{"use strict";var aRt=Pn(),cRt=i((t,e)=>new aRt(t,e).minor,"minor");Qwe.exports=cRt});var Owe=S((V_r,kwe)=>{"use strict";var lRt=Pn(),uRt=i((t,e)=>new lRt(t,e).patch,"patch");kwe.exports=uRt});var Mwe=S((J_r,Lwe)=>{"use strict";var dRt=Jd(),pRt=i((t,e)=>{let r=dRt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");Lwe.exports=pRt});var Ri=S((j_r,Uwe)=>{"use strict";var Fwe=Pn(),fRt=i((t,e,r)=>new Fwe(t,r).compare(new Fwe(e,r)),"compare");Uwe.exports=fRt});var $we=S((X_r,qwe)=>{"use strict";var mRt=Ri(),hRt=i((t,e,r)=>mRt(e,t,r),"rcompare");qwe.exports=hRt});var Hwe=S((evr,Gwe)=>{"use strict";var ARt=Ri(),gRt=i((t,e)=>ARt(t,e,!0),"compareLoose");Gwe.exports=gRt});var vv=S((rvr,Vwe)=>{"use strict";var zwe=Pn(),yRt=i((t,e,r)=>{let n=new zwe(t,r),s=new zwe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Vwe.exports=yRt});var Jwe=S((svr,Wwe)=>{"use strict";var ERt=vv(),CRt=i((t,e)=>t.sort((r,n)=>ERt(r,n,e)),"sort");Wwe.exports=CRt});var jwe=S((ivr,Ywe)=>{"use strict";var IRt=vv(),SRt=i((t,e)=>t.sort((r,n)=>IRt(n,r,e)),"rsort");Ywe.exports=SRt});var Ww=S((cvr,Kwe)=>{"use strict";var wRt=Ri(),xRt=i((t,e,r)=>wRt(t,e,r)>0,"gt");Kwe.exports=xRt});var Qv=S((uvr,Xwe)=>{"use strict";var bRt=Ri(),BRt=i((t,e,r)=>bRt(t,e,r)<0,"lt");Xwe.exports=BRt});var DY=S((pvr,Zwe)=>{"use strict";var RRt=Ri(),NRt=i((t,e,r)=>RRt(t,e,r)===0,"eq");Zwe.exports=NRt});var kY=S((mvr,exe)=>{"use strict";var TRt=Ri(),PRt=i((t,e,r)=>TRt(t,e,r)!==0,"neq");exe.exports=PRt});var Dv=S((Avr,txe)=>{"use strict";var _Rt=Ri(),vRt=i((t,e,r)=>_Rt(t,e,r)>=0,"gte");txe.exports=vRt});var kv=S((yvr,rxe)=>{"use strict";var QRt=Ri(),DRt=i((t,e,r)=>QRt(t,e,r)<=0,"lte");rxe.exports=DRt});var OY=S((Cvr,nxe)=>{"use strict";var kRt=DY(),ORt=kY(),LRt=Ww(),MRt=Dv(),FRt=Qv(),URt=kv(),qRt=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 kRt(t,r,n);case"!=":return ORt(t,r,n);case">":return LRt(t,r,n);case">=":return MRt(t,r,n);case"<":return FRt(t,r,n);case"<=":return URt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");nxe.exports=qRt});var oxe=S((Svr,sxe)=>{"use strict";var $Rt=Pn(),GRt=Jd(),{safeRe:Ov,t:Lv}=py(),HRt=i((t,e)=>{if(t instanceof $Rt)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?Ov[Lv.COERCEFULL]:Ov[Lv.COERCE]);else{let l=e.includePrerelease?Ov[Lv.COERCERTLFULL]:Ov[Lv.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 GRt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");sxe.exports=HRt});var axe=S((xvr,ixe)=>{"use strict";var zRt=Jd(),VRt=Mm(),WRt=Pn(),JRt=i((t,e,r)=>{if(!VRt.RELEASE_TYPES.includes(e))return null;let n=YRt(t,r);return n&&jRt(n,e)},"truncate"),YRt=i((t,e)=>{let r=t instanceof WRt?t.version:t;return zRt(r,e)},"cloneInputVersion"),jRt=i((t,e)=>{if(KRt(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"),KRt=i(t=>t.startsWith("pre"),"isPrerelease");ixe.exports=JRt});var lxe=S((Bvr,cxe)=>{"use strict";var LY=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}};cxe.exports=LY});var Ixe=S((Nvr,Cxe)=>{"use strict";var{MAX_LENGTH:FY,MAX_SAFE_BUILD_LENGTH:fxe,WHITESPACE_CHARACTERS:XRt}=Mm(),mxe=new Uint8Array(65536);for(let t of XRt)mxe[t.charCodeAt(0)]=1;var UY=i(t=>t!==void 0&&mxe[t.charCodeAt(0)]===1,"isWhitespace"),uxe=i(t=>t==="v"||t==="="||UY(t),"isVersionPrefix"),Jw=i(t=>t!==void 0&&t>="0"&&t<="9","isDigit"),hxe=i(t=>t!==void 0&&(t>="a"&&t<="z"||t>="A"&&t<="Z"),"isLetter"),Axe=i(t=>Jw(t)||hxe(t)||t==="-","isIdentifierCharacter"),qY=i(t=>Jw(t)||t==="x"||t==="X"||t==="*","isVersionStart"),gxe=i((t,e,r,n)=>{if(!Jw(t[e]))return e;if(e>=n.start&&e=n.previousStart&&e!r&&t[e]==="0"?e+1:gxe(t,e,r?FY:FY+1,n),"findVersionNumberEndIndex"),MY=i((t,e,r,n)=>{let s=gxe(t,e,FY,n);if(hxe(t[s])||t[s]==="-"){let o=s+1,a=o+fxe;for(;o{let s=t[e]==="-";if(!r&&!s)return e;let o=e+(s?1:0),a=MY(t,o,r,n);if(a===o){if(!r||!s)return e;a=MY(t,e,r,n)}for(;t[a]===".";){let c=MY(t,a+1,r,n);if(c===a+1)break;a=c}return a},"findPrereleaseEndIndex"),dxe=i((t,e)=>{let r=e;for(;r-e{if(t[e]!=="+")return e;let r=dxe(t,e+1);if(r===e+1)return e;for(;t[r]===".";){let n=dxe(t,r+1);if(n===r+1)break;r=n}return r},"findBuildEndIndex"),ZRt=i((t,e,r)=>{let n=e;for(let o=0;o<3;o++){let a=$Y(t,n,!0,r);if(a===n)return e;if(n=a,o<2){if(t[n]!==".")return e;n++}}let s=yxe(t,n,!0,r);return Exe(t,s)},"findLooseFullVersionEndIndex"),pxe=i((t,e,r)=>Jw(t[e])?$Y(t,e,!1,r):qY(t[e])?e+1:e,"findPartialVersionComponentEndIndex"),eNt=i((t,e,r)=>{let n=pxe(t,e,r);for(let o=0;o<2;o++){if(t[n]!==".")return n;let a=pxe(t,n+1,r);if(a===n+1)return n;n=a}let s=yxe(t,n,!1,r);return Exe(t,s)},"findPartialVersionEndIndex"),tNt=i((t,e,r)=>{let n=ZRt(t,e,r);return n!==e?n:eNt(t,e,r)},"findVersionEndIndex"),rNt=i((t,e)=>{let r=e;return UY(t[r])&&r++,(t[r]==="<"||t[r]===">")&&r++,t[r]==="="&&r++,UY(t[r])?r:-1},"findRemovableWhitespaceIndex"),nNt=i(t=>{let e="",r=0,n=0,s={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n")n++;else if(!uxe(t[n])&&!qY(t[n])){n++;continue}for(;n{"use strict";var sNt=/\s+/g,GY=class t{static{i(this,"Range")}constructor(e,r){if(r=iNt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof HY)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(sNt," "),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=>!wxe(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&&hNt(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(mNt,"");let n=((this.options.includePrerelease&&pNt)|(this.options.loose&&fNt))+":"+e,s=Sxe.get(n);if(s)return s;let o=this.options.loose,a=o?Xs[Jn.HYPHENRANGELOOSE]:Xs[Jn.HYPHENRANGE];e=e.replace(a,BNt(this.options.includePrerelease)),Ft("hyphen replace",e),e=cNt(e),Ft("comparator trim",e),e=e.replace(Xs[Jn.TILDETRIM],uNt),Ft("tilde trim",e),e=e.replace(Xs[Jn.CARETTRIM],dNt),Ft("caret trim",e);let c=e.split(" ").map(p=>ANt(p,this.options)).join(" ").split(/\s+/).map(p=>bNt(p,this.options));o&&(c=c.filter(p=>(Ft("loose invalid filter",p,this.options),!!p.match(Xs[Jn.COMPARATORLOOSE])))),Ft("range list",c);let l=new Map,u=c.map(p=>new HY(p,this.options));for(let p of u){if(wxe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Sxe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>xxe(n,r)&&e.set.some(s=>xxe(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 aNt(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0","isNullSet"),hNt=i(t=>t.value==="","isAny"),xxe=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"),ANt=i((t,e)=>(t=t.replace(Xs[Jn.BUILD],""),Ft("comp",t,e),t=CNt(t,e),Ft("caret",t),t=yNt(t,e),Ft("tildes",t),t=SNt(t,e),Ft("xrange",t),t=xNt(t,e),Ft("stars",t),t),"parseComparator"),Kr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),gNt=i((t,e,r)=>Kr(t)&&!Kr(e)||Kr(e)&&r&&!Kr(r),"invalidXRangeOrder"),yNt=i((t,e)=>t.trim().split(/\s+/).map(r=>ENt(r,e)).join(" "),"replaceTildes"),ENt=i((t,e)=>{let r=e.loose?Xs[Jn.TILDELOOSE]:Xs[Jn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("tilde",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Ft("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Ft("tilde return",u),u})},"replaceTilde"),CNt=i((t,e)=>t.trim().split(/\s+/).map(r=>INt(r,e)).join(" "),"replaceCarets"),INt=i((t,e)=>{Ft("caret",t,e);let r=e.loose?Xs[Jn.CARETLOOSE]:Xs[Jn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("caret",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Ft("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`):(Ft("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`),Ft("caret return",u),u})},"replaceCaret"),SNt=i((t,e)=>(Ft("replaceXRanges",t,e),t.split(/\s+/).map(r=>wNt(r,e)).join(" ")),"replaceXRanges"),wNt=i((t,e)=>{t=t.trim();let r=e.loose?Xs[Jn.XRANGELOOSE]:Xs[Jn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Ft("xRange",t,n,s,o,a,c,l),gNt(o,a,c))return t;let u=Kr(o),d=u||Kr(a),p=d||Kr(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`),Ft("xRange return",n),n})},"replaceXRange"),xNt=i((t,e)=>(Ft("replaceStars",t,e),t.trim().replace(Xs[Jn.STAR],"")),"replaceStars"),bNt=i((t,e)=>(Ft("replaceGTE0",t,e),t.trim().replace(Xs[e.includePrerelease?Jn.GTE0PRE:Jn.GTE0],"")),"replaceGTE0"),BNt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Kr(n)?r="":Kr(s)?r=`>=${n}.0.0${t?"-0":""}`:Kr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Kr(u)?l="":Kr(d)?l=`<${+u+1}.0.0-0`:Kr(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"),RNt=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 Yw=S((vvr,_xe)=>{"use strict";var jw=Symbol("SemVer ANY"),WY=class t{static{i(this,"Comparator")}static get ANY(){return jw}constructor(e,r){if(r=Bxe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),VY("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===jw?this.value="":this.value=this.operator+this.semver.version,VY("comp",this)}parse(e){let r=this.options.loose?Rxe[Nxe.COMPARATORLOOSE]:Rxe[Nxe.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 Txe(n[2],this.options.loose):this.semver=jw}toString(){return this.value}test(e){if(VY("Comparator.test",e,this.options.loose),this.semver===jw||e===jw)return!0;if(typeof e=="string")try{e=new Txe(e,this.options)}catch{return!1}return zY(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 Pxe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Pxe(this.value,r).test(e.semver):(r=Bxe(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("=")||zY(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||zY(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};_xe.exports=WY;var Bxe=Rv(),{safeRe:Rxe,t:Nxe}=py(),zY=OY(),VY=Vw(),Txe=Pn(),Pxe=Ni()});var Kw=S((Dvr,vxe)=>{"use strict";var NNt=Ni(),TNt=i((t,e,r)=>{try{e=new NNt(e,r)}catch{return!1}return e.test(t)},"satisfies");vxe.exports=TNt});var Dxe=S((Ovr,Qxe)=>{"use strict";var PNt=Ni(),_Nt=i((t,e)=>new PNt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Qxe.exports=_Nt});var Oxe=S((Mvr,kxe)=>{"use strict";var vNt=Pn(),QNt=Ni(),DNt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new QNt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new vNt(n,r))}),n},"maxSatisfying");kxe.exports=DNt});var Mxe=S((Uvr,Lxe)=>{"use strict";var kNt=Pn(),ONt=Ni(),LNt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new ONt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new kNt(n,r))}),n},"minSatisfying");Lxe.exports=LNt});var qxe=S(($vr,Uxe)=>{"use strict";var JY=Pn(),MNt=Ni(),Fxe=Ww(),FNt=i((t,e)=>{t=new MNt(t,e);let r=new JY("0.0.0");if(t.test(r)||(r=new JY("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let c=new JY(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Fxe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Fxe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Uxe.exports=FNt});var Gxe=S((Hvr,$xe)=>{"use strict";var UNt=Ni(),qNt=i((t,e)=>{try{return new UNt(t,e).range||"*"}catch{return null}},"validRange");$xe.exports=qNt});var Mv=S((Vvr,Wxe)=>{"use strict";var $Nt=Pn(),Vxe=Yw(),{ANY:GNt}=Vxe,HNt=Ni(),zNt=Kw(),Hxe=Ww(),zxe=Qv(),VNt=kv(),WNt=Dv(),JNt=i((t,e,r,n)=>{t=new $Nt(t,n),e=new HNt(e,n);let s,o,a,c,l;switch(r){case">":s=Hxe,o=VNt,a=zxe,c=">",l=">=";break;case"<":s=zxe,o=WNt,a=Hxe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(zNt(t,e,n))return!1;for(let u=0;u{m.semver===GNt&&(m=new Vxe(">=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");Wxe.exports=JNt});var Yxe=S((Jvr,Jxe)=>{"use strict";var YNt=Mv(),jNt=i((t,e,r)=>YNt(t,e,">",r),"gtr");Jxe.exports=jNt});var Kxe=S((jvr,jxe)=>{"use strict";var KNt=Mv(),XNt=i((t,e,r)=>KNt(t,e,"<",r),"ltr");jxe.exports=XNt});var ebe=S((Xvr,Zxe)=>{"use strict";var Xxe=Ni(),ZNt=i((t,e,r)=>(t=new Xxe(t,r),e=new Xxe(e,r),t.intersects(e,r)),"intersects");Zxe.exports=ZNt});var rbe=S((eQr,tbe)=>{"use strict";var eTt=Kw(),tTt=Ri();tbe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>tTt(d,p,r));for(let d of a)eTt(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 nbe=Ni(),KY=Yw(),{ANY:YY}=KY,jY=Kw(),XY=Ri(),rTt=i((t,e,r={})=>{if(t===e)return!0;t=new nbe(t,r),e=new nbe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=sTt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),nTt=[new KY(">=0.0.0-0")],sbe=[new KY(">=0.0.0")],sTt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===YY){if(e.length===1&&e[0].semver===YY)return!0;r.includePrerelease?t=nTt:t=sbe}if(e.length===1&&e[0].semver===YY){if(r.includePrerelease)return!0;e=sbe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=obe(s,m,r):m.operator==="<"||m.operator==="<="?o=ibe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=XY(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&&!jY(m,String(s),r)||o&&!jY(m,String(o),r))return null;for(let h of e)if(!jY(m,String(h),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=obe(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=ibe(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"),obe=i((t,e,r)=>{if(!t)return e;let n=XY(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),ibe=i((t,e,r)=>{if(!t)return e;let n=XY(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");abe.exports=rTt});var pbe=S((nQr,dbe)=>{"use strict";var ZY=py(),lbe=Mm(),oTt=Pn(),ube=_Y(),iTt=Jd(),aTt=Swe(),cTt=xwe(),lTt=Rwe(),uTt=Pwe(),dTt=vwe(),pTt=Dwe(),fTt=Owe(),mTt=Mwe(),hTt=Ri(),ATt=$we(),gTt=Hwe(),yTt=vv(),ETt=Jwe(),CTt=jwe(),ITt=Ww(),STt=Qv(),wTt=DY(),xTt=kY(),bTt=Dv(),BTt=kv(),RTt=OY(),NTt=oxe(),TTt=axe(),PTt=Yw(),_Tt=Ni(),vTt=Kw(),QTt=Dxe(),DTt=Oxe(),kTt=Mxe(),OTt=qxe(),LTt=Gxe(),MTt=Mv(),FTt=Yxe(),UTt=Kxe(),qTt=ebe(),$Tt=rbe(),GTt=cbe();dbe.exports={parse:iTt,valid:aTt,clean:cTt,inc:lTt,diff:uTt,major:dTt,minor:pTt,patch:fTt,prerelease:mTt,compare:hTt,rcompare:ATt,compareLoose:gTt,compareBuild:yTt,sort:ETt,rsort:CTt,gt:ITt,lt:STt,eq:wTt,neq:xTt,gte:bTt,lte:BTt,cmp:RTt,coerce:NTt,truncate:TTt,Comparator:PTt,Range:_Tt,satisfies:vTt,toComparators:QTt,maxSatisfying:DTt,minSatisfying:kTt,minVersion:OTt,validRange:LTt,outside:MTt,gtr:FTt,ltr:UTt,intersects:qTt,simplifyRange:$Tt,subset:GTt,SemVer:oTt,re:ZY.re,src:ZY.src,tokens:ZY.t,SEMVER_SPEC_VERSION:lbe.SEMVER_SPEC_VERSION,RELEASE_TYPES:lbe.RELEASE_TYPES,compareIdentifiers:ube.compareIdentifiers,rcompareIdentifiers:ube.rcompareIdentifiers}});var mbe=S((iQr,fbe)=>{function Ti(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(Ti,"RetryOperation");fbe.exports=Ti;Ti.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ti.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ti.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};Ti.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)};Ti.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Ti.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Ti.prototype.start=Ti.prototype.try;Ti.prototype.errors=function(){return this._errors};Ti.prototype.attempts=function(){return this._attempts};Ti.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 hbe=S(Fm=>{var HTt=mbe();Fm.operation=function(t){var e=Fm.timeouts(t);return new HTt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Fm.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{Abe.exports=hbe()});var Ebe=S((dQr,ybe)=>{var zTt=gbe();function VTt(t,e){function r(n,s){var o=e||{},a;"randomize"in o||(o.randomize=!0),a=zTt.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(VTt,"retry");ybe.exports=VTt});var Lbe=S((fQr,Nu)=>{var wt=require("fs"),qv=require("os"),Xr=require("path"),Cbe=require("crypto"),jc={fs:wt.constants,os:qv.constants},Ibe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",bbe=/XXXXXX/,WTt=3,Bbe=(jc.O_CREAT||jc.fs.O_CREAT)|(jc.O_EXCL||jc.fs.O_EXCL)|(jc.O_RDWR||jc.fs.O_RDWR),JTt=qv.platform()==="win32",YTt=jc.EBADF||jc.os.errno.EBADF,jTt=jc.ENOENT||jc.os.errno.ENOENT,Rbe=448,Nbe=384,KTt="exit",fy=[],Tbe=wt.rmdirSync.bind(wt),Pbe=!1;function XTt(t,e){return wt.rm(t,{recursive:!0},e)}i(XTt,"rimraf");function _be(t){return wt.rmSync(t,{recursive:!0})}i(_be,"FN_RIMRAF_SYNC");function nj(t,e){let r=my(t,e),n=r[0],s=r[1];cPt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=Qbe(a);wt.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(nj,"tmpName");function sj(t){let e=my(t),r=e[0],n=lPt(r),s=n.tries;do{let o=Qbe(n);try{wt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(sj,"tmpNameSync");function ZTt(t,e){let r=my(t,e),n=r[0],s=r[1];nj(n,i(function(a,c){if(a)return s(a);wt.open(c,Bbe,n.mode||Nbe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return wt.close(d,i(function(f){return s(f,c,void 0,tj(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,tj(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(ZTt,"file");function ePt(t){let e=my(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=sj(r),o=wt.openSync(s,Bbe,r.mode||Nbe);return r.discardDescriptor&&(wt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:tj(s,n?-1:o,r,!0)}}i(ePt,"fileSync");function tPt(t,e){let r=my(t,e),n=r[0],s=r[1];nj(n,i(function(a,c){if(a)return s(a);wt.mkdir(c,n.mode||Rbe,i(function(u){if(u)return s(u);s(null,c,vbe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(tPt,"dir");function rPt(t){let e=my(t),r=e[0],n=sj(r);return wt.mkdirSync(n,r.mode||Rbe),{name:n,removeCallback:vbe(n,r,!0)}}i(rPt,"dirSync");function nPt(t,e){let r=i(function(n){if(n&&!rj(n))return e(n);e()},"_handler");0<=t[0]?wt.close(t[0],function(){wt.unlink(t[1],r)}):wt.unlink(t[1],r)}i(nPt,"_removeFileAsync");function sPt(t){let e=null;try{0<=t[0]&&wt.closeSync(t[0])}catch(r){if(!uPt(r)&&!rj(r))throw r}finally{try{wt.unlinkSync(t[1])}catch(r){rj(r)||(e=r)}}if(e!==null)throw e}i(sPt,"_removeFileSync");function tj(t,e,r,n){let s=Uv(sPt,[e,t],n),o=Uv(nPt,[e,t],n,s);return r.keep||fy.unshift(s),n?s:o}i(tj,"_prepareTmpFileRemoveCallback");function vbe(t,e,r){let n=e.unsafeCleanup?XTt:wt.rmdir.bind(wt),s=e.unsafeCleanup?_be:Tbe,o=Uv(s,t,r),a=Uv(n,t,r,o);return e.keep||fy.unshift(o),r?o:a}i(vbe,"_prepareTmpDirRemoveCallback");function Uv(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=fy.indexOf(c);return l>=0&&fy.splice(l,1),s=!0,r||t===Tbe||t===_be?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(Uv,"_prepareRemoveCallback");function oPt(){if(Pbe)for(;fy.length;)try{fy[0]()}catch{}}i(oPt,"_garbageCollector");function Sbe(t){let e=[],r=null;try{r=Cbe.randomBytes(t)}catch{r=Cbe.pseudoRandomBytes(t)}for(let n=0;n"u"}i(Zs,"_isUndefined");function my(t,e){if(typeof t=="function")return[{},t];if(Zs(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(my,"_parseArguments");function iPt(t,e,r){let n=Xr.isAbsolute(t)?t:Xr.join(e,t);wt.stat(n,function(s){s?wt.realpath(Xr.dirname(n),function(o,a){if(o)return r(o);r(null,Xr.join(a,Xr.basename(n)))}):wt.realpath(n,r)})}i(iPt,"_resolvePath");function aPt(t,e){let r=Xr.isAbsolute(t)?t:Xr.join(e,t);try{return wt.statSync(r),wt.realpathSync(r)}catch{let s=wt.realpathSync(Xr.dirname(r));return Xr.join(s,Xr.basename(r))}}i(aPt,"_resolvePathSync");function Qbe(t){let e=t.tmpdir;if(!Zs(t.name))return Xr.join(e,t.dir,t.name);if(!Zs(t.template))return Xr.join(e,t.dir,t.template).replace(bbe,Sbe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",Sbe(12),t.postfix?"-"+t.postfix:""].join("");return Xr.join(e,t.dir,r)}i(Qbe,"_generateTmpName");function ej(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(ej,"_assertPath");function Dbe(t){if(!Zs(t.name)){let e=t.name;if(Xr.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=Xr.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!Zs(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(bbe))throw new Error(`Invalid template, found "${t.template}".`)}if(!Zs(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=Zs(t.name)?t.tries||WTt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Zs(t.prefix)?"":ej("prefix",t.prefix),t.postfix=Zs(t.postfix)?"":ej("postfix",t.postfix),t.template=Zs(t.template)?void 0:ej("template",t.template)}i(Dbe,"_assertOptionsBase");function wbe(t,e,r,n){if(Zs(e))return n(null);iPt(e,r,function(s,o){if(s)return n(s);let a=Xr.relative(r,o);if(a.startsWith("..")||Xr.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(wbe,"_getRelativePath");function xbe(t,e,r){if(Zs(e))return;let n=aPt(e,r),s=Xr.relative(r,n);if(s.startsWith("..")||Xr.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(xbe,"_getRelativePathSync");function cPt(t,e){pPt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{Dbe(t,n)}catch(s){return e(s)}wbe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=Zs(o)?"":o,wbe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(cPt,"_assertAndSanitizeOptions");function lPt(t){let e=t.tmpdir=Obe(t);Dbe(t,e);let r=xbe("dir",t.dir,e);return t.dir=Zs(r)?"":r,t.template=xbe("template",t.template,e),t}i(lPt,"_assertAndSanitizeOptionsSync");function uPt(t){return kbe(t,-YTt,"EBADF")}i(uPt,"_isEBADF");function rj(t){return kbe(t,-jTt,"ENOENT")}i(rj,"_isENOENT");function kbe(t,e,r){return JTt?t.code===r:t.code===r&&t.errno===e}i(kbe,"_isExpectedError");function dPt(){Pbe=!0}i(dPt,"setGracefulCleanup");function pPt(t,e){return wt.realpath(t&&t.tmpdir||qv.tmpdir(),e)}i(pPt,"_getTmpDir");function Obe(t){return wt.realpathSync(t&&t.tmpdir||qv.tmpdir())}i(Obe,"_getTmpDirSync");process.addListener(KTt,oPt);Object.defineProperty(Nu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return Obe()},"get")});Nu.exports.dir=tPt;Nu.exports.dirSync=rPt;Nu.exports.file=ZTt;Nu.exports.fileSync=ePt;Nu.exports.tmpName=nj;Nu.exports.tmpNameSync=sj;Nu.exports.setGracefulCleanup=dPt});var Yn=S(Uo=>{"use strict";Uo.__esModule=!0;Uo.extend=qbe;Uo.indexOf=gPt;Uo.escapeExpression=yPt;Uo.isEmpty=EPt;Uo.createFrame=CPt;Uo.blockParams=IPt;Uo.appendContextPath=SPt;var fPt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},mPt=/[&<>"'`=]/g,hPt=/[&<>"'`=]/;function APt(t){return fPt[t]}i(APt,"escapeChar");function qbe(t){for(var e=1;e{"use strict";Gv.__esModule=!0;var cj=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function lj(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";Hv.__esModule=!0;var uj=Yn();Hv.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(uj.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=uj.createFrame(r.data);o.contextPath=uj.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};Hbe.exports=Hv.default});var Wbe=S((zv,Vbe)=>{"use strict";zv.__esModule=!0;function wPt(t){return t&&t.__esModule?t:{default:t}}i(wPt,"_interopRequireDefault");var hy=Yn(),xPt=Pi(),bPt=wPt(xPt);function BPt(t){try{var e=t.return;hy.isFunction(e)&&e.call(t)}catch{}}i(BPt,"closeIterator");zv.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new bPt.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=hy.appendContextPath(r.data.contextPath,r.ids[0])+"."),hy.isFunction(e)&&(e=e.call(this)),r.data&&(c=hy.createFrame(r.data));function u(h,A,y,E){c&&(c.key=h,c.index=A,c.first=A===0,c.last=!!y,l&&(c.contextPath=l+h)),a=a+n(E,{data:c,blockParams:hy.blockParams([E,h],[l+h,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(hy.isArray(e))for(var d=e.length;o{"use strict";Vv.__esModule=!0;function RPt(t){return t&&t.__esModule?t:{default:t}}i(RPt,"_interopRequireDefault");var NPt=Pi(),TPt=RPt(NPt);Vv.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new TPt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};Jbe.exports=Vv.default});var Zbe=S((Wv,Xbe)=>{"use strict";Wv.__esModule=!0;function PPt(t){return t&&t.__esModule?t:{default:t}}i(PPt,"_interopRequireDefault");var jbe=Yn(),_Pt=Pi(),Kbe=PPt(_Pt);Wv.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new Kbe.default("#if requires exactly one argument");return jbe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||jbe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new Kbe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};Xbe.exports=Wv.default});var t0e=S((Jv,e0e)=>{"use strict";Jv.__esModule=!0;Jv.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n{"use strict";Yv.__esModule=!0;Yv.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};r0e.exports=Yv.default});var o0e=S((jv,s0e)=>{"use strict";jv.__esModule=!0;function vPt(t){return t&&t.__esModule?t:{default:t}}i(vPt,"_interopRequireDefault");var Xw=Yn(),QPt=Pi(),DPt=vPt(QPt);jv.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new DPt.default("#with requires exactly one argument");Xw.isFunction(e)&&(e=e.call(this));var n=r.fn;if(Xw.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=Xw.createFrame(r.data),s.contextPath=Xw.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:Xw.blockParams([e],[s&&s.contextPath])})})};s0e.exports=jv.default});var dj=S(Kv=>{"use strict";Kv.__esModule=!0;Kv.registerDefaultHelpers=YPt;Kv.moveHelperToHooks=jPt;function Um(t){return t&&t.__esModule?t:{default:t}}i(Um,"_interopRequireDefault");var kPt=zbe(),OPt=Um(kPt),LPt=Wbe(),MPt=Um(LPt),FPt=Ybe(),UPt=Um(FPt),qPt=Zbe(),$Pt=Um(qPt),GPt=t0e(),HPt=Um(GPt),zPt=n0e(),VPt=Um(zPt),WPt=o0e(),JPt=Um(WPt);function YPt(t){OPt.default(t),MPt.default(t),UPt.default(t),$Pt.default(t),HPt.default(t),VPt.default(t),JPt.default(t)}i(YPt,"registerDefaultHelpers");function jPt(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(jPt,"moveHelperToHooks")});var a0e=S((Xv,i0e)=>{"use strict";Xv.__esModule=!0;var KPt=Yn();Xv.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=KPt.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};i0e.exports=Xv.default});var c0e=S(pj=>{"use strict";pj.__esModule=!0;pj.registerDefaultDecorators=t_t;function XPt(t){return t&&t.__esModule?t:{default:t}}i(XPt,"_interopRequireDefault");var ZPt=a0e(),e_t=XPt(ZPt);function t_t(t){e_t.default(t)}i(t_t,"registerDefaultDecorators")});var fj=S((Zv,l0e)=>{"use strict";Zv.__esModule=!0;var r_t=Yn(),Ay={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=r_t.indexOf(Ay.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=Ay.lookupLevel(e),typeof console<"u"&&Ay.lookupLevel(Ay.level)<=e){var r=Ay.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o{"use strict";gy.__esModule=!0;gy.createProtoAccessControl=i_t;gy.resultIsAllowed=a_t;gy.isPrototypeConstructor=c_t;gy.resetLoggedProperties=u_t;function n_t(t){return t&&t.__esModule?t:{default:t}}i(n_t,"_interopRequireDefault");var u0e=Yn(),s_t=fj(),o_t=n_t(s_t),eQ=Object.create(null);function i_t(t){var e=Object.create(null);e.__proto__=!1,u0e.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,u0e.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(i_t,"createProtoAccessControl");function a_t(t,e,r){return d0e(typeof t=="function"?e.methods:e.properties,r)}i(a_t,"resultIsAllowed");function c_t(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(c_t,"isPrototypeConstructor");function d0e(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(l_t(e),!1)}i(d0e,"checkWhiteList");function l_t(t){eQ[t]!==!0&&(eQ[t]=!0,o_t.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(a_t,"logUnexpecedPropertyAccessOnce");function c_t(){Object.keys(Zv).forEach(function(t){delete Zv[t]})}i(c_t,"resetLoggedProperties")});var tQ=S(Kc=>{"use strict";Kc.__esModule=!0;Kc.HandlebarsEnvironment=Aj;function d0e(t){return t&&t.__esModule?t:{default:t}}i(d0e,"_interopRequireDefault");var Um=Yn(),l_t=Pi(),mj=d0e(l_t),u_t=uj(),d_t=a0e(),p_t=pj(),eQ=d0e(p_t),f_t=fj(),m_t="4.7.10";Kc.VERSION=m_t;var h_t=8;Kc.COMPILER_REVISION=h_t;var A_t=7;Kc.LAST_COMPATIBLE_COMPILER_REVISION=A_t;var g_t={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"};Kc.REVISION_CHANGES=g_t;var hj="[object Object]";function Aj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},u_t.registerDefaultHelpers(this),d_t.registerDefaultDecorators(this)}i(Aj,"HandlebarsEnvironment");Aj.prototype={constructor:Aj,logger:eQ.default,log:eQ.default.log,registerHelper:i(function(e,r){if(Um.toString.call(e)===hj){if(r)throw new mj.default("Arg not supported with multiple helpers");Um.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(Um.toString.call(e)===hj)Um.extend(this.partials,e);else{if(typeof r>"u")throw new mj.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(Um.toString.call(e)===hj){if(r)throw new mj.default("Arg not supported with multiple decorators");Um.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){f_t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var y_t=eQ.default.log;Kc.log=y_t;Kc.createFrame=Um.createFrame;Kc.logger=eQ.default});var f0e=S((rQ,p0e)=>{"use strict";rQ.__esModule=!0;function gj(t){this.string=t}i(gj,"SafeString");gj.prototype.toString=gj.prototype.toHTML=function(){return""+this.string};rQ.default=gj;p0e.exports=rQ.default});var m0e=S(yj=>{"use strict";yj.__esModule=!0;yj.wrapHelper=E_t;function E_t(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(E_t,"wrapHelper")});var E0e=S(Jd=>{"use strict";Jd.__esModule=!0;Jd.checkRevision=b_t;Jd.template=B_t;Jd.wrapProgram=nQ;Jd.resolvePartial=R_t;Jd.invokePartial=N_t;Jd.noop=g0e;function C_t(t){return t&&t.__esModule?t:{default:t}}i(C_t,"_interopRequireDefault");function I_t(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(I_t,"_interopRequireWildcard");var S_t=Yn(),qm=I_t(S_t),w_t=Pi(),Ia=C_t(w_t),Tu=tQ(),h0e=uj(),x_t=m0e(),Ej=fj();function b_t(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";Kc.__esModule=!0;Kc.HandlebarsEnvironment=gj;function p0e(t){return t&&t.__esModule?t:{default:t}}i(p0e,"_interopRequireDefault");var qm=Yn(),d_t=Pi(),hj=p0e(d_t),p_t=dj(),f_t=c0e(),m_t=fj(),tQ=p0e(m_t),h_t=mj(),A_t="4.7.10";Kc.VERSION=A_t;var g_t=8;Kc.COMPILER_REVISION=g_t;var y_t=7;Kc.LAST_COMPATIBLE_COMPILER_REVISION=y_t;var E_t={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"};Kc.REVISION_CHANGES=E_t;var Aj="[object Object]";function gj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},p_t.registerDefaultHelpers(this),f_t.registerDefaultDecorators(this)}i(gj,"HandlebarsEnvironment");gj.prototype={constructor:gj,logger:tQ.default,log:tQ.default.log,registerHelper:i(function(e,r){if(qm.toString.call(e)===Aj){if(r)throw new hj.default("Arg not supported with multiple helpers");qm.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(qm.toString.call(e)===Aj)qm.extend(this.partials,e);else{if(typeof r>"u")throw new hj.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(qm.toString.call(e)===Aj){if(r)throw new hj.default("Arg not supported with multiple decorators");qm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){h_t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var C_t=tQ.default.log;Kc.log=C_t;Kc.createFrame=qm.createFrame;Kc.logger=tQ.default});var m0e=S((nQ,f0e)=>{"use strict";nQ.__esModule=!0;function yj(t){this.string=t}i(yj,"SafeString");yj.prototype.toString=yj.prototype.toHTML=function(){return""+this.string};nQ.default=yj;f0e.exports=nQ.default});var h0e=S(Ej=>{"use strict";Ej.__esModule=!0;Ej.wrapHelper=I_t;function I_t(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(I_t,"wrapHelper")});var C0e=S(Yd=>{"use strict";Yd.__esModule=!0;Yd.checkRevision=R_t;Yd.template=N_t;Yd.wrapProgram=sQ;Yd.resolvePartial=T_t;Yd.invokePartial=P_t;Yd.noop=y0e;function S_t(t){return t&&t.__esModule?t:{default:t}}i(S_t,"_interopRequireDefault");function w_t(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(w_t,"_interopRequireWildcard");var x_t=Yn(),$m=w_t(x_t),b_t=Pi(),Ia=S_t(b_t),Pu=rQ(),A0e=dj(),B_t=h0e(),Cj=mj();function R_t(t){var e=t&&t[0]||1,r=Pu.COMPILER_REVISION;if(!(e>=Pu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Pu.COMPILER_REVISION))if(e{"use strict";oQ.__esModule=!0;oQ.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}};C0e.exports=oQ.default});var b0e=S((iQ,x0e)=>{"use strict";iQ.__esModule=!0;function Sj(t){return t&&t.__esModule?t:{default:t}}i(Sj,"_interopRequireDefault");function wj(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(wj,"_interopRequireWildcard");var __t=tQ(),I0e=wj(__t),v_t=f0e(),Q_t=Sj(v_t),D_t=Pi(),k_t=Sj(D_t),O_t=Yn(),Ij=wj(O_t),L_t=E0e(),S0e=wj(L_t),M_t=Cj(),F_t=Sj(M_t);function w0e(){var t=new I0e.HandlebarsEnvironment;return Ij.extend(t,I0e),t.SafeString=Q_t.default,t.Exception=k_t.default,t.Utils=Ij,t.escapeExpression=Ij.escapeExpression,t.VM=S0e,t.template=function(e){return S0e.template(e,t)},t}i(w0e,"create");var Xw=w0e();Xw.create=w0e;F_t.default(Xw);Xw.default=Xw;iQ.default=Xw;x0e.exports=iQ.default});var xj=S((aQ,R0e)=>{"use strict";aQ.__esModule=!0;var B0e={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&&!B0e.helpers.scopedId(e)&&!e.depth},"simpleId")}};aQ.default=B0e;R0e.exports=aQ.default});var T0e=S((cQ,N0e)=>{"use strict";cQ.__esModule=!0;var U_t=(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,h=2,A=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 y=this.lexer.yylloc;l.push(y);var E=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function I(Q){a.length=a.length-2*Q,c.length=c.length-Q,l.length=l.length-Q}i(I,"popStack");function x(){var Q;return Q=o.lexer.lex()||1,typeof Q!="number"&&(Q=o.symbols_[Q]||Q),Q}i(x,"lex");for(var b,N,_,v,Y,Qe,ke={},De,ce,Tt,Be;;){if(_=a[a.length-1],this.defaultActions[_]?v=this.defaultActions[_]:((b===null||typeof b>"u")&&(b=x()),v=u[_]&&u[_][b]),typeof v>"u"||!v.length||!v[0]){var oe="";if(!m){Be=[];for(De in u[_])this.terminals_[De]&&De>2&&Be.push("'"+this.terminals_[De]+"'");this.lexer.showPosition?oe="Parse error on line "+(p+1)+`: +`)}return u}else throw new Ia.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var s={strict:i(function(c,l,u){if(!c||!(l in c))throw new Ia.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:i(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!Cj.isPrototypeConstructor(c,l,u)||Cj.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:i(function(c,l){for(var u=c.length,d=0;d{"use strict";iQ.__esModule=!0;iQ.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}};I0e.exports=iQ.default});var B0e=S((aQ,b0e)=>{"use strict";aQ.__esModule=!0;function wj(t){return t&&t.__esModule?t:{default:t}}i(wj,"_interopRequireDefault");function xj(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(xj,"_interopRequireWildcard");var Q_t=rQ(),S0e=xj(Q_t),D_t=m0e(),k_t=wj(D_t),O_t=Pi(),L_t=wj(O_t),M_t=Yn(),Sj=xj(M_t),F_t=C0e(),w0e=xj(F_t),U_t=Ij(),q_t=wj(U_t);function x0e(){var t=new S0e.HandlebarsEnvironment;return Sj.extend(t,S0e),t.SafeString=k_t.default,t.Exception=L_t.default,t.Utils=Sj,t.escapeExpression=Sj.escapeExpression,t.VM=w0e,t.template=function(e){return w0e.template(e,t)},t}i(x0e,"create");var Zw=x0e();Zw.create=x0e;q_t.default(Zw);Zw.default=Zw;aQ.default=Zw;b0e.exports=aQ.default});var bj=S((cQ,N0e)=>{"use strict";cQ.__esModule=!0;var R0e={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&&!R0e.helpers.scopedId(e)&&!e.depth},"simpleId")}};cQ.default=R0e;N0e.exports=cQ.default});var P0e=S((lQ,T0e)=>{"use strict";lQ.__esModule=!0;var $_t=(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,h=2,A=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 y=this.lexer.yylloc;l.push(y);var E=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function I(Q){a.length=a.length-2*Q,c.length=c.length-Q,l.length=l.length-Q}i(I,"popStack");function x(){var Q;return Q=o.lexer.lex()||1,typeof Q!="number"&&(Q=o.symbols_[Q]||Q),Q}i(x,"lex");for(var b,N,_,v,Y,Qe,ke={},De,ce,Tt,Be;;){if(_=a[a.length-1],this.defaultActions[_]?v=this.defaultActions[_]:((b===null||typeof b>"u")&&(b=x()),v=u[_]&&u[_][b]),typeof v>"u"||!v.length||!v[0]){var oe="";if(!m){Be=[];for(De in u[_])this.terminals_[De]&&De>2&&Be.push("'"+this.terminals_[De]+"'");this.lexer.showPosition?oe="Parse error on line "+(p+1)+`: `+this.lexer.showPosition()+` Expecting `+Be.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:Be})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(v[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(ce=this.productions_[v[1]][1],ke.$=c[c.length-ce],ke._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(ke._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),Qe=this.performAction.call(ke,d,f,p,this.yy,v[1],c,l),typeof Qe<"u")return Qe;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),l=l.slice(0,-1*ce)),a.push(this.productions_[v[1]][0]),c.push(ke.$),l.push(ke._$),Tt=u[a[a.length-2]][a[a.length-1]],a.push(Tt);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})();cQ.default=U_t;N0e.exports=cQ.default});var Bj=S(bj=>{"use strict";bj.__esModule=!0;var q_t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];bj.NODE_TYPES=q_t});var pQ=S((dQ,Q0e)=>{"use strict";dQ.__esModule=!0;function $_t(t){return t&&t.__esModule?t:{default:t}}i($_t,"_interopRequireDefault");var G_t=Pi(),Rj=$_t(G_t),H_t=Yn(),z_t=Bj();function uQ(){this.parents=[]}i(uQ,"Visitor");function P0e(t,e){return H_t.indexOf(z_t.NODE_TYPES,e)!==-1||!(e in uQ.prototype)&&typeof t[e]=="function"}i(P0e,"isDispatchable");uQ.prototype={constructor:uQ,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!P0e(this,n.type))throw new Rj.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 Rj.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";fQ.__esModule=!0;function V_t(t){return t&&t.__esModule?t:{default:t}}i(V_t,"_interopRequireDefault");var W_t=pQ(),J_t=V_t(W_t);function Xc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(Xc,"WhitespaceControl");Xc.prototype=new J_t.default;Xc.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";_i.__esModule=!0;_i.SourceLocation=K_t;_i.id=X_t;_i.stripFlags=Z_t;_i.stripComment=evt;_i.preparePath=tvt;_i.prepareMustache=rvt;_i.prepareRawBlock=nvt;_i.prepareBlock=svt;_i.prepareProgram=ovt;_i.preparePartialBlock=ivt;function Y_t(t){return t&&t.__esModule?t:{default:t}}i(Y_t,"_interopRequireDefault");var j_t=Pi(),Pj=Y_t(j_t);function _j(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new Pj.default(t.path.original+" doesn't match "+e,r)}}i(_j,"validateClose");function K_t(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(K_t,"SourceLocation");function X_t(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(X_t,"id");function Z_t(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(Z_t,"stripFlags");function evt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(evt,"stripComment");function tvt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new Pj.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(tvt,"preparePath");function rvt(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(rvt,"prepareMustache");function nvt(t,e,r,n){_j(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(nvt,"prepareRawBlock");function svt(t,e,r,n,s,o){n&&n.path&&_j(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new Pj.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(svt,"prepareBlock");function ovt(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(ovt,"prepareProgram");function ivt(t,e,r,n){return _j(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(ivt,"preparePartialBlock")});var F0e=S(Zw=>{"use strict";Zw.__esModule=!0;Zw.parseWithoutProcessing=M0e;Zw.parse=mvt;function avt(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(avt,"_interopRequireWildcard");function L0e(t){return t&&t.__esModule?t:{default:t}}i(L0e,"_interopRequireDefault");var cvt=T0e(),vj=L0e(cvt),lvt=k0e(),uvt=L0e(lvt),dvt=O0e(),pvt=avt(dvt),fvt=Yn();Zw.parser=vj.default;var mQ={};fvt.extend(mQ,pvt);function M0e(t,e){if(t.type==="Program")return t;vj.default.yy=mQ,mQ.locInfo=function(n){return new mQ.SourceLocation(e&&e.srcName,n)};var r=vj.default.parse(t);return r}i(M0e,"parseWithoutProcessing");function mvt(t,e){var r=M0e(t,e),n=new uvt.default(e);return n.accept(r)}i(mvt,"parse")});var H0e=S(tx=>{"use strict";tx.__esModule=!0;tx.Compiler=kj;tx.precompile=Evt;tx.compile=Cvt;function q0e(t){return t&&t.__esModule?t:{default:t}}i(q0e,"_interopRequireDefault");var hvt=Pi(),gy=q0e(hvt),jd=Yn(),Avt=xj(),ex=q0e(Avt),gvt=Bj(),yvt=[].slice;function kj(){}i(kj,"Compiler");kj.prototype={compiler:kj,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new gy.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 Pu(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){U0e(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",Qj(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 gy.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,ex.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=Qj(e),n=Dj(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=ex.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){hQ(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){hQ(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){hQ(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(!jd.isArray(r))throw Pu(e,"pairs must be an array");s=r.length;for(var o=0;o=0)return[r,o]}},"blockParamIndex")};function Evt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new gy.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(Evt,"precompile");function Cvt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new gy.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=jd.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(Cvt,"compile");function Pu(t,e){return new gy.default("Invalid AST: "+t.type+" "+e,t)}i(Pu,"invalidAst");function Qj(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw Pu(t,"depth must be a non-negative integer");return e}i(Qj,"validateDepth");function hQ(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw Pu(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw Pu(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw Pu(t,"value must be a boolean")}i(hQ,"validateLiteral");function $0e(t,e,r){if(!jd.isArray(e))throw Pu(t,r+" must be an array");for(var n=0;n{var z0e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Oj.encode=function(t){if(0<=t&&t{var W0e=V0e(),Lj=5,J0e=1<>1;return e?-r:r}i(wvt,"fromVLQSigned");Mj.encode=i(function(e){var r="",n,s=Svt(e);do n=s&Y0e,s>>>=Lj,s>0&&(n|=j0e),r+=W0e.encode(n);while(s>0);return r},"base64VLQ_encode");Mj.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=W0e.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&j0e),l&=Y0e,o=o+(l<{function xvt(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(xvt,"getArg");jn.getArg=xvt;var K0e=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,bvt=/^data:.+\,.+$/;function rx(t){var e=t.match(K0e);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(rx,"urlParse");jn.urlParse=rx;function yy(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(yy,"urlGenerate");jn.urlGenerate=yy;function Uj(t){var e=t,r=rx(t);if(r){if(!r.path)return t;e=r.path}for(var n=jn.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,yy(r)):e}i(Uj,"normalize");jn.normalize=Uj;function X0e(t,e){t===""&&(t="."),e===""&&(e=".");var r=rx(e),n=rx(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),yy(r);if(r||e.match(bvt))return e;if(n&&!n.host&&!n.path)return n.host=e,yy(n);var s=e.charAt(0)==="/"?e:Uj(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,yy(n)):s}i(X0e,"join");jn.join=X0e;jn.isAbsolute=function(t){return t.charAt(0)==="/"||K0e.test(t)};function Bvt(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(Bvt,"relative");jn.relative=Bvt;var Z0e=(function(){var t=Object.create(null);return!("__proto__"in t)})();function eBe(t){return t}i(eBe,"identity");function Rvt(t){return tBe(t)?"$"+t:t}i(Rvt,"toSetString");jn.toSetString=Z0e?eBe:Rvt;function Nvt(t){return tBe(t)?t.slice(1):t}i(Nvt,"fromSetString");jn.fromSetString=Z0e?eBe:Nvt;function tBe(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(tBe,"isProtoString");function Tvt(t,e,r){var n=Ey(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:Ey(t.name,e.name)}i(Tvt,"compareByOriginalPositions");jn.compareByOriginalPositions=Tvt;function Pvt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ey(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ey(t.name,e.name)}i(Pvt,"compareByGeneratedPositionsDeflated");jn.compareByGeneratedPositionsDeflated=Pvt;function Ey(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(Ey,"strcmp");function _vt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ey(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ey(t.name,e.name)}i(_vt,"compareByGeneratedPositionsInflated");jn.compareByGeneratedPositionsInflated=_vt;function vvt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(vvt,"parseSourceMapInput");jn.parseSourceMapInput=vvt;function Qvt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=rx(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=X0e(yy(n),e)}return Uj(e)}i(Qvt,"computeSourceURL");jn.computeSourceURL=Qvt});var Gj=S(rBe=>{var qj=Cy(),$j=Object.prototype.hasOwnProperty,Gm=typeof Map<"u";function _u(){this._array=[],this._set=Gm?new Map:Object.create(null)}i(_u,"ArraySet");_u.fromArray=i(function(e,r){for(var n=new _u,s=0,o=e.length;s=0)return r}else{var n=qj.toSetString(e);if($j.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");_u.prototype.at=i(function(e){if(e>=0&&e{var nBe=Cy();function Dvt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||nBe.compareByGeneratedPositionsInflated(t,e)<=0}i(Dvt,"generatedPositionAfter");function AQ(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(AQ,"MappingList");AQ.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");AQ.prototype.add=i(function(e){Dvt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");AQ.prototype.toArray=i(function(){return this._sorted||(this._array.sort(nBe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");sBe.MappingList=AQ});var Hj=S(iBe=>{var nx=Fj(),Fr=Cy(),gQ=Gj().ArraySet,kvt=oBe().MappingList;function vi(t){t||(t={}),this._file=Fr.getArg(t,"file",null),this._sourceRoot=Fr.getArg(t,"sourceRoot",null),this._skipValidation=Fr.getArg(t,"skipValidation",!1),this._sources=new gQ,this._names=new gQ,this._mappings=new kvt,this._sourcesContents=null}i(vi,"SourceMapGenerator");vi.prototype._version=3;vi.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new vi({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=Fr.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=Fr.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");vi.prototype.addMapping=i(function(e){var r=Fr.getArg(e,"generated"),n=Fr.getArg(e,"original",null),s=Fr.getArg(e,"source",null),o=Fr.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");vi.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Fr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Fr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Fr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");vi.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=Fr.relative(o,s));var a=new gQ,c=new gQ;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=Fr.join(n,l.source)),o!=null&&(l.source=Fr.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=Fr.join(n,l)),o!=null&&(l=Fr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");vi.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");vi.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,h=f.length;m0){if(!Fr.compareByGeneratedPositionsInflated(u,f[m-1]))continue;l+=","}l+=nx.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=nx.encode(p-a),a=p,l+=nx.encode(u.originalLine-1-s),s=u.originalLine-1,l+=nx.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=nx.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");vi.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Fr.relative(r,n));var s=Fr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");vi.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");vi.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");iBe.SourceMapGenerator=vi});var aBe=S(Hm=>{Hm.GREATEST_LOWER_BOUND=1;Hm.LEAST_UPPER_BOUND=2;function zj(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?zj(a,e,r,n,s,o):o==Hm.LEAST_UPPER_BOUND?e1?zj(t,a,r,n,s,o):o==Hm.LEAST_UPPER_BOUND?a:t<0?-1:t}i(zj,"recursiveSearch");Hm.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=zj(-1,r.length,e,r,n,s||Hm.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 lBe=S(cBe=>{function Vj(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(Vj,"swap");function Ovt(t,e){return Math.round(t+Math.random()*(e-t))}i(Ovt,"randomIntInRange");function Wj(t,e,r,n){if(r{var K=Cy(),Jj=aBe(),Iy=Gj().ArraySet,Lvt=Fj(),sx=lBe().quickSort;function Ut(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new Sa(r,e):new _n(r,e)}i(Ut,"SourceMapConsumer");Ut.fromSourceMap=function(t,e){return _n.fromSourceMap(t,e)};Ut.prototype._version=3;Ut.prototype.__generatedMappings=null;Object.defineProperty(Ut.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ut.prototype.__originalMappings=null;Object.defineProperty(Ut.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ut.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ut.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ut.GENERATED_ORDER=1;Ut.ORIGINAL_ORDER=2;Ut.GREATEST_LOWER_BOUND=1;Ut.LEAST_UPPER_BOUND=2;Ut.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Ut.GENERATED_ORDER,a;switch(o){case Ut.GENERATED_ORDER:a=this._generatedMappings;break;case Ut.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");Ut.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,Jj.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");yQ.SourceMapConsumer=Ut;function _n(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=Iy.fromArray(o.map(String),!0),this._sources=Iy.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(_n,"BasicSourceMapConsumer");_n.prototype=Object.create(Ut.prototype);_n.prototype.consumer=Ut;_n.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&&(A.source=c+E[1],c+=E[1],A.originalLine=o+E[2],o=A.originalLine,A.originalLine+=1,A.originalColumn=a+E[3],a=A.originalColumn,E.length>4&&(A.name=l+E[4],l+=E[4])),h.push(A),typeof A.originalLine=="number"&&m.push(A)}sx(h,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,sx(m,K.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");_n.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 Jj.search(e,r,o,a)},"SourceMapConsumer_findMapping");_n.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");_n.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");_n.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");_n.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",Ut.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");yQ.BasicSourceMapConsumer=_n;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 Iy,this._names=new Iy;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 Mvt=Hj().SourceMapGenerator,EQ=Cy(),Fvt=/(\r?\n)/,Uvt=10,Sy="$$$isSourceNode$$$";function qo(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[Sy]=!0,n!=null&&this.add(n)}i(qo,"SourceNode");qo.fromStringWithSourceMap=i(function(e,r,n){var s=new qo,o=e.split(Fvt),a=0,c=i(function(){var f=h(),m=h()||"";return f+m;function h(){return a=0;r--)this.prepend(e[r]);else if(e[Sy]||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");qo.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{CQ.SourceMapGenerator=Hj().SourceMapGenerator;CQ.SourceMapConsumer=dBe().SourceMapConsumer;CQ.SourceNode=fBe().SourceNode});var yBe=S(IQ=>{"use strict";IQ.__esModule=!0;IQ.safeJsonLiteral=ABe;var jj=Yn(),qvt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,$vt=/<(?=!--|\/?script)/gi;function Gvt(t){return t.replace($vt,"\\u003C")}i(Gvt,"escapeScriptDelimiters");function Hvt(t){return"\\u"+t.charCodeAt(0).toString(16)}i(Hvt,"escapeSurrogate");function ABe(t){return Gvt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,Hvt))}i(ABe,"safeJsonLiteral");var zm=void 0;try{(typeof define!="function"||!define.amd)&&(hBe=mBe(),zm=hBe.SourceNode)}catch{}var hBe;zm||(zm=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),zm.prototype={add:i(function(e){jj.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){jj.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 Yj(t,e,r){if(jj.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";SQ.__esModule=!0;function IBe(t){return t&&t.__esModule?t:{default:t}}i(IBe,"_interopRequireDefault");var EBe=tQ(),zvt=Pi(),Kj=IBe(zvt),Vvt=Yn(),SBe=yBe(),CBe=IBe(SBe);function wy(t){this.value=t}i(wy,"Literal");function xy(){}i(xy,"JavaScriptCompiler");xy.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=EBe.COMPILER_REVISION,r=EBe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Vvt.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;l@\[-\^`\{-~]+(?=[=}\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})();lQ.default=$_t;T0e.exports=lQ.default});var Rj=S(Bj=>{"use strict";Bj.__esModule=!0;var G_t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];Bj.NODE_TYPES=G_t});var fQ=S((pQ,D0e)=>{"use strict";pQ.__esModule=!0;function H_t(t){return t&&t.__esModule?t:{default:t}}i(H_t,"_interopRequireDefault");var z_t=Pi(),Nj=H_t(z_t),V_t=Yn(),W_t=Rj();function dQ(){this.parents=[]}i(dQ,"Visitor");function _0e(t,e){return V_t.indexOf(W_t.NODE_TYPES,e)!==-1||!(e in dQ.prototype)&&typeof t[e]=="function"}i(_0e,"isDispatchable");dQ.prototype={constructor:dQ,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!_0e(this,n.type))throw new Nj.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 Nj.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r{"use strict";mQ.__esModule=!0;function J_t(t){return t&&t.__esModule?t:{default:t}}i(J_t,"_interopRequireDefault");var Y_t=fQ(),j_t=J_t(Y_t);function Xc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(Xc,"WhitespaceControl");Xc.prototype=new j_t.default;Xc.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";_i.__esModule=!0;_i.SourceLocation=Z_t;_i.id=evt;_i.stripFlags=tvt;_i.stripComment=rvt;_i.preparePath=nvt;_i.prepareMustache=svt;_i.prepareRawBlock=ovt;_i.prepareBlock=ivt;_i.prepareProgram=avt;_i.preparePartialBlock=cvt;function K_t(t){return t&&t.__esModule?t:{default:t}}i(K_t,"_interopRequireDefault");var X_t=Pi(),_j=K_t(X_t);function vj(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new _j.default(t.path.original+" doesn't match "+e,r)}}i(vj,"validateClose");function Z_t(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(Z_t,"SourceLocation");function evt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(evt,"id");function tvt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(tvt,"stripFlags");function rvt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(rvt,"stripComment");function nvt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a0)throw new _j.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(nvt,"preparePath");function svt(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(svt,"prepareMustache");function ovt(t,e,r,n){vj(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(ovt,"prepareRawBlock");function ivt(t,e,r,n,s,o){n&&n.path&&vj(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new _j.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(ivt,"prepareBlock");function avt(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(avt,"prepareProgram");function cvt(t,e,r,n){return vj(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(cvt,"preparePartialBlock")});var U0e=S(ex=>{"use strict";ex.__esModule=!0;ex.parseWithoutProcessing=F0e;ex.parse=Avt;function lvt(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(lvt,"_interopRequireWildcard");function M0e(t){return t&&t.__esModule?t:{default:t}}i(M0e,"_interopRequireDefault");var uvt=P0e(),Qj=M0e(uvt),dvt=O0e(),pvt=M0e(dvt),fvt=L0e(),mvt=lvt(fvt),hvt=Yn();ex.parser=Qj.default;var hQ={};hvt.extend(hQ,mvt);function F0e(t,e){if(t.type==="Program")return t;Qj.default.yy=hQ,hQ.locInfo=function(n){return new hQ.SourceLocation(e&&e.srcName,n)};var r=Qj.default.parse(t);return r}i(F0e,"parseWithoutProcessing");function Avt(t,e){var r=F0e(t,e),n=new pvt.default(e);return n.accept(r)}i(Avt,"parse")});var z0e=S(rx=>{"use strict";rx.__esModule=!0;rx.Compiler=Oj;rx.precompile=Ivt;rx.compile=Svt;function $0e(t){return t&&t.__esModule?t:{default:t}}i($0e,"_interopRequireDefault");var gvt=Pi(),yy=$0e(gvt),Kd=Yn(),yvt=bj(),tx=$0e(yvt),Evt=Rj(),Cvt=[].slice;function Oj(){}i(Oj,"Compiler");Oj.prototype={compiler:Oj,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n1)throw new yy.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 _u(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){q0e(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",Dj(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 yy.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,tx.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=Dj(e),n=kj(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=tx.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){AQ(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){AQ(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){AQ(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(!Kd.isArray(r))throw _u(e,"pairs must be an array");s=r.length;for(var o=0;o=0)return[r,o]}},"blockParamIndex")};function Ivt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new yy.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(Ivt,"precompile");function Svt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new yy.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Kd.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(Svt,"compile");function _u(t,e){return new yy.default("Invalid AST: "+t.type+" "+e,t)}i(_u,"invalidAst");function Dj(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw _u(t,"depth must be a non-negative integer");return e}i(Dj,"validateDepth");function AQ(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw _u(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw _u(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw _u(t,"value must be a boolean")}i(AQ,"validateLiteral");function G0e(t,e,r){if(!Kd.isArray(e))throw _u(t,r+" must be an array");for(var n=0;n{var V0e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Lj.encode=function(t){if(0<=t&&t{var J0e=W0e(),Mj=5,Y0e=1<>1;return e?-r:r}i(bvt,"fromVLQSigned");Fj.encode=i(function(e){var r="",n,s=xvt(e);do n=s&j0e,s>>>=Mj,s>0&&(n|=K0e),r+=J0e.encode(n);while(s>0);return r},"base64VLQ_encode");Fj.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=J0e.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&K0e),l&=j0e,o=o+(l<{function Bvt(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(Bvt,"getArg");jn.getArg=Bvt;var X0e=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Rvt=/^data:.+\,.+$/;function nx(t){var e=t.match(X0e);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(nx,"urlParse");jn.urlParse=nx;function Ey(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(Ey,"urlGenerate");jn.urlGenerate=Ey;function qj(t){var e=t,r=nx(t);if(r){if(!r.path)return t;e=r.path}for(var n=jn.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,Ey(r)):e}i(qj,"normalize");jn.normalize=qj;function Z0e(t,e){t===""&&(t="."),e===""&&(e=".");var r=nx(e),n=nx(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ey(r);if(r||e.match(Rvt))return e;if(n&&!n.host&&!n.path)return n.host=e,Ey(n);var s=e.charAt(0)==="/"?e:qj(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,Ey(n)):s}i(Z0e,"join");jn.join=Z0e;jn.isAbsolute=function(t){return t.charAt(0)==="/"||X0e.test(t)};function Nvt(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(Nvt,"relative");jn.relative=Nvt;var eBe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function tBe(t){return t}i(tBe,"identity");function Tvt(t){return rBe(t)?"$"+t:t}i(Tvt,"toSetString");jn.toSetString=eBe?tBe:Tvt;function Pvt(t){return rBe(t)?t.slice(1):t}i(Pvt,"fromSetString");jn.fromSetString=eBe?tBe:Pvt;function rBe(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(rBe,"isProtoString");function _vt(t,e,r){var n=Cy(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:Cy(t.name,e.name)}i(_vt,"compareByOriginalPositions");jn.compareByOriginalPositions=_vt;function vvt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Cy(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Cy(t.name,e.name)}i(vvt,"compareByGeneratedPositionsDeflated");jn.compareByGeneratedPositionsDeflated=vvt;function Cy(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(Cy,"strcmp");function Qvt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Cy(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Cy(t.name,e.name)}i(Qvt,"compareByGeneratedPositionsInflated");jn.compareByGeneratedPositionsInflated=Qvt;function Dvt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(Dvt,"parseSourceMapInput");jn.parseSourceMapInput=Dvt;function kvt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=nx(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=Z0e(Ey(n),e)}return qj(e)}i(kvt,"computeSourceURL");jn.computeSourceURL=kvt});var Hj=S(nBe=>{var $j=Iy(),Gj=Object.prototype.hasOwnProperty,Hm=typeof Map<"u";function vu(){this._array=[],this._set=Hm?new Map:Object.create(null)}i(vu,"ArraySet");vu.fromArray=i(function(e,r){for(var n=new vu,s=0,o=e.length;s=0)return r}else{var n=$j.toSetString(e);if(Gj.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");vu.prototype.at=i(function(e){if(e>=0&&e{var sBe=Iy();function Ovt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||sBe.compareByGeneratedPositionsInflated(t,e)<=0}i(Ovt,"generatedPositionAfter");function gQ(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(gQ,"MappingList");gQ.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");gQ.prototype.add=i(function(e){Ovt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");gQ.prototype.toArray=i(function(){return this._sorted||(this._array.sort(sBe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");oBe.MappingList=gQ});var zj=S(aBe=>{var sx=Uj(),Fr=Iy(),yQ=Hj().ArraySet,Lvt=iBe().MappingList;function vi(t){t||(t={}),this._file=Fr.getArg(t,"file",null),this._sourceRoot=Fr.getArg(t,"sourceRoot",null),this._skipValidation=Fr.getArg(t,"skipValidation",!1),this._sources=new yQ,this._names=new yQ,this._mappings=new Lvt,this._sourcesContents=null}i(vi,"SourceMapGenerator");vi.prototype._version=3;vi.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new vi({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=Fr.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=Fr.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");vi.prototype.addMapping=i(function(e){var r=Fr.getArg(e,"generated"),n=Fr.getArg(e,"original",null),s=Fr.getArg(e,"source",null),o=Fr.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");vi.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Fr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Fr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Fr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");vi.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=Fr.relative(o,s));var a=new yQ,c=new yQ;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=Fr.join(n,l.source)),o!=null&&(l.source=Fr.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=Fr.join(n,l)),o!=null&&(l=Fr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");vi.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");vi.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,h=f.length;m0){if(!Fr.compareByGeneratedPositionsInflated(u,f[m-1]))continue;l+=","}l+=sx.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=sx.encode(p-a),a=p,l+=sx.encode(u.originalLine-1-s),s=u.originalLine-1,l+=sx.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=sx.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");vi.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Fr.relative(r,n));var s=Fr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");vi.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");vi.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");aBe.SourceMapGenerator=vi});var cBe=S(zm=>{zm.GREATEST_LOWER_BOUND=1;zm.LEAST_UPPER_BOUND=2;function Vj(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?Vj(a,e,r,n,s,o):o==zm.LEAST_UPPER_BOUND?e1?Vj(t,a,r,n,s,o):o==zm.LEAST_UPPER_BOUND?a:t<0?-1:t}i(Vj,"recursiveSearch");zm.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=Vj(-1,r.length,e,r,n,s||zm.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 uBe=S(lBe=>{function Wj(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(Wj,"swap");function Mvt(t,e){return Math.round(t+Math.random()*(e-t))}i(Mvt,"randomIntInRange");function Jj(t,e,r,n){if(r{var K=Iy(),Yj=cBe(),Sy=Hj().ArraySet,Fvt=Uj(),ox=uBe().quickSort;function Ut(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new Sa(r,e):new _n(r,e)}i(Ut,"SourceMapConsumer");Ut.fromSourceMap=function(t,e){return _n.fromSourceMap(t,e)};Ut.prototype._version=3;Ut.prototype.__generatedMappings=null;Object.defineProperty(Ut.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ut.prototype.__originalMappings=null;Object.defineProperty(Ut.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ut.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ut.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ut.GENERATED_ORDER=1;Ut.ORIGINAL_ORDER=2;Ut.GREATEST_LOWER_BOUND=1;Ut.LEAST_UPPER_BOUND=2;Ut.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Ut.GENERATED_ORDER,a;switch(o){case Ut.GENERATED_ORDER:a=this._generatedMappings;break;case Ut.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");Ut.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,Yj.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");EQ.SourceMapConsumer=Ut;function _n(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=Sy.fromArray(o.map(String),!0),this._sources=Sy.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(_n,"BasicSourceMapConsumer");_n.prototype=Object.create(Ut.prototype);_n.prototype.consumer=Ut;_n.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&&(A.source=c+E[1],c+=E[1],A.originalLine=o+E[2],o=A.originalLine,A.originalLine+=1,A.originalColumn=a+E[3],a=A.originalColumn,E.length>4&&(A.name=l+E[4],l+=E[4])),h.push(A),typeof A.originalLine=="number"&&m.push(A)}ox(h,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,ox(m,K.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");_n.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 Yj.search(e,r,o,a)},"SourceMapConsumer_findMapping");_n.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");_n.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");_n.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");_n.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",Ut.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");EQ.BasicSourceMapConsumer=_n;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 Sy,this._names=new Sy;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 Uvt=zj().SourceMapGenerator,CQ=Iy(),qvt=/(\r?\n)/,$vt=10,wy="$$$isSourceNode$$$";function qo(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[wy]=!0,n!=null&&this.add(n)}i(qo,"SourceNode");qo.fromStringWithSourceMap=i(function(e,r,n){var s=new qo,o=e.split(qvt),a=0,c=i(function(){var f=h(),m=h()||"";return f+m;function h(){return a=0;r--)this.prepend(e[r]);else if(e[wy]||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");qo.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n0){for(r=[],n=0;n{IQ.SourceMapGenerator=zj().SourceMapGenerator;IQ.SourceMapConsumer=pBe().SourceMapConsumer;IQ.SourceNode=mBe().SourceNode});var EBe=S(SQ=>{"use strict";SQ.__esModule=!0;SQ.safeJsonLiteral=gBe;var Kj=Yn(),Gvt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,Hvt=/<(?=!--|\/?script)/gi;function zvt(t){return t.replace(Hvt,"\\u003C")}i(zvt,"escapeScriptDelimiters");function Vvt(t){return"\\u"+t.charCodeAt(0).toString(16)}i(Vvt,"escapeSurrogate");function gBe(t){return zvt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,Vvt))}i(gBe,"safeJsonLiteral");var Vm=void 0;try{(typeof define!="function"||!define.amd)&&(ABe=hBe(),Vm=ABe.SourceNode)}catch{}var ABe;Vm||(Vm=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),Vm.prototype={add:i(function(e){Kj.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){Kj.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 jj(t,e,r){if(Kj.isArray(t)){for(var n=[],s=0,o=t.length;s{"use strict";wQ.__esModule=!0;function SBe(t){return t&&t.__esModule?t:{default:t}}i(SBe,"_interopRequireDefault");var CBe=rQ(),Wvt=Pi(),Xj=SBe(Wvt),Jvt=Yn(),wBe=EBe(),IBe=SBe(wBe);function xy(t){this.value=t}i(xy,"Literal");function by(){}i(by,"JavaScriptCompiler");by.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=CBe.COMPILER_REVISION,r=CBe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Jvt.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,h=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,60 +84,60 @@ Expecting `+Be.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error } 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(Wvt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var f=a.nameLookup(p,r[d],e);return s?[" && ",f]:[" != null ? ",f," : ",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";wQ.__esModule=!0;function ox(t){return t&&t.__esModule?t:{default:t}}i(ox,"_interopRequireDefault");var Jvt=b0e(),Yvt=ox(Jvt),jvt=xj(),Kvt=ox(jvt),Xj=F0e(),Zj=H0e(),Xvt=bBe(),Zvt=ox(Xvt),eQt=pQ(),tQt=ox(eQt),rQt=Cj(),nQt=ox(rQt),sQt=Yvt.default.create;function BBe(){var t=sQt();return t.compile=function(e,r){return Zj.compile(e,r,t)},t.precompile=function(e,r){return Zj.precompile(e,r,t)},t.AST=Kvt.default,t.Compiler=Zj.Compiler,t.JavaScriptCompiler=Zvt.default,t.Parser=Xj.parser,t.parse=Xj.parse,t.parseWithoutProcessing=Xj.parseWithoutProcessing,t}i(BBe,"create");var by=BBe();by.create=BBe;nQt.default(by);by.Visitor=tQt.default;by.default=by;wQ.default=by;RBe.exports=wQ.default});var TBe=S(xQ=>{"use strict";xQ.__esModule=!0;xQ.print=cQt;xQ.PrintVisitor=gr;function oQt(t){return t&&t.__esModule?t:{default:t}}i(oQt,"_interopRequireDefault");var iQt=pQ(),aQt=oQt(iQt);function cQt(t){return new gr().accept(t)}i(cQt,"print");function gr(){this.padding=0}i(gr,"PrintVisitor");gr.prototype=new aQt.default;gr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};gr.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+" }}")};gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty(PQ,"__esModule",{value:!0});PQ.getProxyUrl=pQt;PQ.checkBypass=VBe;function pQt(t){let e=t.protocol==="https:";if(VBe(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 TQ(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new TQ(`http://${r}`)}else return}i(pQt,"getProxyUrl");function VBe(t){if(!t.hostname)return!1;let e=t.hostname;if(fQt(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(VBe,"checkBypass");function fQt(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(fQt,"isLoopbackAddress");var TQ=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 YBe=S(jt=>{"use strict";var mQt=jt&&jt.__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]})),hQt=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DQ=jt&&jt.__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;sQr(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 Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};jt.HttpClientResponse=QQ;function wQt(t){return new URL(t).protocol==="https:"}i(wQt,"isHttps");var i5=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 Qr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Qr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Qr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Qr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Qr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Qr(this,arguments,void 0,function*(r,n={}){n[Ss.Accept]=this._getExistingOrDefaultHeader(n,Ss.Accept,vu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,vu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,vu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,vu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,vu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,vu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,vu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Qr(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&&CQt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Qi.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&&yQt.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||!EQt.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 QQ(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=o5.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?JBe:s5;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({},lx(this.requestOptions.headers),lx(e||{})):lx(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=lx(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=lx(this.requestOptions.headers)[Ss.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ss.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=o5.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||s5.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?_Q.httpsOverHttps:_Q.httpsOverHttp:l=u?_Q.httpOverHttps:_Q.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new JBe.Agent(c):new s5.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 AQt.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 Qr(this,void 0,void 0,function*(){e=Math.min(IQt,e);let r=SQt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Qr(this,void 0,void 0,function*(){return new Promise((n,s)=>Qr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===Qi.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 vQ(d,o);p.result=a.result,s(p)}else n(a)}))})}};jt.HttpClient=i5;var lx=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var gRe=S((kkr,dx)=>{"use strict";var MQ=i(function(){},"NullObject");MQ.prototype=Object.create(null);var OQ=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,LQ=/\\([\v\u0020-\u00ff])/gu,mRe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Vm={type:"",parameters:new MQ};Object.freeze(Vm.parameters);Object.freeze(Vm);function hRe(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(mRe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new MQ};if(e===-1)return n;let s,o,a;for(OQ.lastIndex=e;o=OQ.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),LQ.test(a)&&(a=a.replace(LQ,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(hRe,"parse");function ARe(t){if(typeof t!="string")return Vm;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(mRe.test(r)===!1)return Vm;let n={type:r.toLowerCase(),parameters:new MQ};if(e===-1)return n;let s,o,a;for(OQ.lastIndex=e;o=OQ.exec(t);){if(o.index!==e)return Vm;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),LQ.test(a)&&(a=a.replace(LQ,"$1"))),n.parameters[s]=a}return e!==t.length?Vm:n}i(ARe,"safeParse");dx.exports.default={parse:hRe,safeParse:ARe};dx.exports.parse=hRe;dx.exports.safeParse=ARe;dx.exports.defaultContentType=Vm});var fx,Zc,YRe=g(()=>{fx={warningEmitted:!1},Zc=i(t=>{if(t&&!fx.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){fx.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";xQ.__esModule=!0;function ix(t){return t&&t.__esModule?t:{default:t}}i(ix,"_interopRequireDefault");var jvt=B0e(),Kvt=ix(jvt),Xvt=bj(),Zvt=ix(Xvt),Zj=U0e(),e5=z0e(),eQt=BBe(),tQt=ix(eQt),rQt=fQ(),nQt=ix(rQt),sQt=Ij(),oQt=ix(sQt),iQt=Kvt.default.create;function RBe(){var t=iQt();return t.compile=function(e,r){return e5.compile(e,r,t)},t.precompile=function(e,r){return e5.precompile(e,r,t)},t.AST=Zvt.default,t.Compiler=e5.Compiler,t.JavaScriptCompiler=tQt.default,t.Parser=Zj.parser,t.parse=Zj.parse,t.parseWithoutProcessing=Zj.parseWithoutProcessing,t}i(RBe,"create");var By=RBe();By.create=RBe;oQt.default(By);By.Visitor=nQt.default;By.default=By;xQ.default=By;NBe.exports=xQ.default});var PBe=S(bQ=>{"use strict";bQ.__esModule=!0;bQ.print=uQt;bQ.PrintVisitor=gr;function aQt(t){return t&&t.__esModule?t:{default:t}}i(aQt,"_interopRequireDefault");var cQt=fQ(),lQt=aQt(cQt);function uQt(t){return new gr().accept(t)}i(uQt,"print");function gr(){this.padding=0}i(gr,"PrintVisitor");gr.prototype=new lQt.default;gr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r "+e+" }}")};gr.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+" }}")};gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.getProxyUrl=mQt;_Q.checkBypass=WBe;function mQt(t){let e=t.protocol==="https:";if(WBe(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 PQ(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new PQ(`http://${r}`)}else return}i(mQt,"getProxyUrl");function WBe(t){if(!t.hostname)return!1;let e=t.hostname;if(hQt(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(WBe,"checkBypass");function hQt(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(hQt,"isLoopbackAddress");var PQ=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 jBe=S(jt=>{"use strict";var AQt=jt&&jt.__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]})),gQt=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kQ=jt&&jt.__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;sQr(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 Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};jt.HttpClientResponse=DQ;function bQt(t){return new URL(t).protocol==="https:"}i(bQt,"isHttps");var a5=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 Qr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Qr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Qr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Qr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Qr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Qr(this,arguments,void 0,function*(r,n={}){n[Ss.Accept]=this._getExistingOrDefaultHeader(n,Ss.Accept,Qu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,Qu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Qu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,Qu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Qu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Ss.Accept]=this._getExistingOrDefaultHeader(o,Ss.Accept,Qu.ApplicationJson),o[Ss.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Qu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Qr(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&&SQt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===Qi.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&&CQt.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||!IQt.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 DQ(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=i5.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?YBe:o5;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({},ux(this.requestOptions.headers),ux(e||{})):ux(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=ux(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=ux(this.requestOptions.headers)[Ss.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Ss.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=i5.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||o5.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?vQ.httpsOverHttps:vQ.httpsOverHttp:l=u?vQ.httpOverHttps:vQ.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new YBe.Agent(c):new o5.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 yQt.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 Qr(this,void 0,void 0,function*(){e=Math.min(wQt,e);let r=xQt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Qr(this,void 0,void 0,function*(){return new Promise((n,s)=>Qr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===Qi.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 QQ(d,o);p.result=a.result,s(p)}else n(a)}))})}};jt.HttpClient=a5;var ux=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var yRe=S((Ukr,px)=>{"use strict";var FQ=i(function(){},"NullObject");FQ.prototype=Object.create(null);var LQ=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,MQ=/\\([\v\u0020-\u00ff])/gu,hRe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Wm={type:"",parameters:new FQ};Object.freeze(Wm.parameters);Object.freeze(Wm);function ARe(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(hRe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new FQ};if(e===-1)return n;let s,o,a;for(LQ.lastIndex=e;o=LQ.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),MQ.test(a)&&(a=a.replace(MQ,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(ARe,"parse");function gRe(t){if(typeof t!="string")return Wm;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(hRe.test(r)===!1)return Wm;let n={type:r.toLowerCase(),parameters:new FQ};if(e===-1)return n;let s,o,a;for(LQ.lastIndex=e;o=LQ.exec(t);){if(o.index!==e)return Wm;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),MQ.test(a)&&(a=a.replace(MQ,"$1"))),n.parameters[s]=a}return e!==t.length?Wm:n}i(gRe,"safeParse");px.exports.default={parse:ARe,safeParse:gRe};px.exports.parse=ARe;px.exports.safeParse=gRe;px.exports.defaultContentType=Wm});var mx,Zc,jRe=g(()=>{mx={warningEmitted:!1},Zc=i(t=>{if(t&&!mx.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){mx.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 RDt,NDt,jRe,KRe=g(()=>{RDt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),NDt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},jRe=i(t=>({applyToStack:i(e=>{e.add(RDt(),NDt)},"applyToStack")}),"getLongPollPlugin")});function ep(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var XRe=g(()=>{i(ep,"setCredentialFeature")});var ZRe,w5,eNe=g(()=>{ZRe=require("node:stream"),w5=i(t=>t?.body instanceof ZRe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Km,tp,rp,tNe,rNe,GQ=g(()=>{Km=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),tp=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),rp=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>tNe[m.step]-tNe[f.step]||rNe[m.priority||"normal"]-rNe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let A=Km(h.name,h.aliases);if(A.includes(p)){f=!0;for(let y of A)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(h=>{if(h.middleware===p){f=!0;for(let A of Km(h.name,h.aliases))n.delete(A);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=[],h={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Km(E.name,E.aliases))h[I]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Km(E.name,E.aliases))h[I]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=h[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${tp(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&E.after.push(y),y.relation==="before"&&E.before.push(y)}}),s(f).map(l).reduce((y,E)=>(y.push(...E),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:h,aliases:A}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=Km(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${tp(m,A)}'`);for(let I of E){let x=t.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${tp(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${tp(m,A)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let I of E)n.add(I)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:A}=f,y={middleware:p,...f},E=Km(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${tp(m,A)}'`);for(let I of E){let x=e.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${tp(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${tp(m,A)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of E)n.add(I)}e.push(y)},"addRelativeTo"),clone:i(()=>c(rp()),"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(h=>{let{tags:A,name:y,aliases:E}=h;if(A&&A.includes(p)){let I=Km(y,E);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(rp());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 tp(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(h=>h.middleware).reverse())p=m(p,f);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),tNe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},rNe={high:3,normal:2,low:1}});var Kn=S(wa=>{var x5;(function(t){t.HEADER="header",t.QUERY="query"})(x5||(x5={}));var b5;(function(t){t.HEADER="header",t.QUERY="query"})(b5||(b5={}));var B5;(function(t){t.HTTP="http",t.HTTPS="https"})(B5||(B5={}));var mx;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(mx||(mx={}));var TDt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>mx.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>mx.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),PDt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),_Dt=i(t=>TDt(t),"getDefaultClientConfiguration"),vDt=i(t=>PDt(t),"resolveDefaultRuntimeConfig"),R5;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(R5||(R5={}));var QDt="__smithy_context",N5;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(N5||(N5={}));var T5;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(T5||(T5={}));wa.AlgorithmId=mx;wa.EndpointURLScheme=B5;wa.FieldPosition=R5;wa.HttpApiKeyAuthLocation=b5;wa.HttpAuthLocation=x5;wa.IniSectionType=N5;wa.RequestHandlerProtocol=T5;wa.SMITHY_CONTEXT_KEY=QDt;wa.getDefaultClientConfiguration=_Dt;wa.resolveDefaultRuntimeConfig=vDt});var P5,vt,nNe=g(()=>{P5=R(Kn()),vt=i(t=>t[P5.SMITHY_CONTEXT_KEY]||(t[P5.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var _5=g(()=>{i(X,"hasOwn")});function DDt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Ye,sNe=g(()=>{Ye=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=DDt(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(DDt,"cloneQuery")});var fn,oNe=g(()=>{fn=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 kDt,xa,iNe=g(()=>{kDt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),xa=i((t,e=!1)=>{if(!e)return kDt.test(t);let r=t.split(".");for(let n of r)if(!xa(n))return!1;return!0},"isValidHostLabel")});function hx(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var aNe=g(()=>{i(hx,"isValidHostname")});var xt,cNe=g(()=>{xt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Ax(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 v5=g(()=>{i(Ax,"parseQueryString")});var vn,Q5=g(()=>{v5();vn=i(t=>{if(typeof t=="string")return vn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Ax(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var $o,lNe=g(()=>{_5();Q5();$o=i(t=>{if(typeof t=="object"){if("url"in t){let e=vn(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 vn(t)},"toEndpointV1")});var _e=g(()=>{nNe();_5();sNe();oNe();iNe();aNe();cNe();v5();Q5();lNe()});var uNe,dNe=g(()=>{uNe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var pNe,fNe=g(()=>{pNe=i(t=>()=>Promise.reject(t),"invalidProvider")});var Qy,D5=g(()=>{Qy=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 mNe,hNe=g(()=>{mNe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var HQ,Go,ANe,zQ=g(()=>{D5();HQ={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(Go||(Go={}));ANe=i(t=>{if(t.state===Go.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Qy())}`);throw e.name="AbortError",e}else if(t.state===Go.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Qy())}`);throw e.name="TimeoutError",e}else if(t.state!==Go.SUCCESS)throw new Error(`${JSON.stringify(t,Qy())}`);return t},"checkExceptions")});var gNe,ODt,LDt,MDt,FDt,yNe=g(()=>{D5();hNe();zQ();gNe=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,h=!1;for(;;){if(p>0){let E=MDt(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let I="AbortController signal aborted.";return l[I]|=0,l[I]+=1,{state:Go.ABORTED,observedResponses:l}}if(Date.now()+E>f)return{state:Go.TIMEOUT,observedResponses:l};await mNe(E/1e3)}let{state:A,reason:y}=await c(s,a);if(y){let E=LDt(y);l[E]|=0,l[E]+=1}if(A!==Go.RETRY)return{state:A,reason:y,final:y,observedResponses:l};p+=1,!h&&Date.now()>=m&&(ODt(l,s),h=!0)}},"runPolling"),ODt=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"),LDt=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,Qy())??"Unknown")},"createMessageFromResponse"),MDt=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=FDt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),FDt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var ENe,CNe=g(()=>{ENe=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{yNe();CNe();zQ();INe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:Go.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"),SNe=i(async(t,e,r)=>{let n={...HQ,...t};ENe(n);let s=[gNe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=INe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=INe(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 Xn,xNe=g(()=>{GQ();Xn=class{static{i(this,"Client")}config;middlewareStack=rp();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 ki,k5=g(()=>{ki=i(t=>typeof t=="function"?t():t,"deref")});var Dy,VQ=g(()=>{Dy=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var bNe,O5,BNe=g(()=>{_e();VQ();bNe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=vt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(Dy(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(fn.isInstance(s)){let{headers:m={},statusCode:h}=s,A=Object.entries(m);p.$metadata={httpStatusCode:h,requestId:O5(/^x-[\w-]+-request-?id$/,A),extendedRequestId:O5(/^x-[\w-]+-id-2$/,A),cfId:O5(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),O5=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var RNe,NNe=g(()=>{_e();VQ();RNe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=vt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>$o(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Dy(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function el(t){return{applyToStack:i(e=>{e.add(RNe(t),M5),e.add(bNe(t),L5),t.protocol.setSerdeContext(t)},"applyToStack")}}var L5,M5,TNe=g(()=>{BNe();NNe();L5={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},M5={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(el,"getSchemaSerdePlugin")});var yr,np=g(()=>{yr=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 gx,PNe,_Ne=g(()=>{np();gx=class t extends yr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},PNe=i((t,e,r,n)=>yr.assign(new gx,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var yx,vNe,QNe=g(()=>{np();yx=class t extends yr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},vNe=i((t,e,r,n,s)=>yr.assign(new yx,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var Ex,DNe,kNe=g(()=>{np();Ex=class t extends yr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},DNe=i((t,e,r,n,s)=>yr.assign(new Ex,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var Xm,ONe,F5=g(()=>{np();Xm=class t extends yr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},ONe=i((t,e,r,n,s)=>yr.assign(new Xm,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Cx,LNe,MNe=g(()=>{np();F5();Cx=class t extends Xm{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},LNe=i((t,e,r,n,s,o)=>yr.assign(new Cx,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function ba(t){if(typeof t=="object")return t;if(t=t|0,Ix[t])return Ix[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Ix[t]=e}var Ix,U5=g(()=>{Ix=[];i(ba,"translateTraits")});function wx(t,e){if(t instanceof O)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=O;return new r(t,e)}var Sx,xx,bx,O,q5,$5,FNe=g(()=>{k5();U5();Sx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},xx=[],bx={},O=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;q5(s);)n.push(s[1]),s=s[0],o=ki(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,ba(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=ki(o),$5(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(xx[e])return xx[e]}else if(typeof e=="string"){if(bx[e])return bx[e]}else if(r&&e[Sx.ns])return e[Sx.ns];let n=ki(e);if(n instanceof t)return n;if(q5(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),ba(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[Sx.ns]=s:typeof n=="string"?bx[n]=s:typeof n=="number"?xx[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 ba(this.memberTraits)}getOwnTraits(){return ba(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 wx([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 wx([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 wx(q5(s)?s:[s,0],e)}if(this.isDocumentSchema())return wx([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[Sx.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),$5=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var ky,UNe,qNe,$Ne=g(()=>{np();ky=class t extends yr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},UNe=i((t,e,r,n)=>yr.assign(new ky,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),qNe=i((t,e,r,n)=>yr.assign(new ky,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var GNe,HNe=g(()=>{GNe={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 yt,zNe=g(()=>{yt=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 G5={};cr(G5,{ErrorSchema:()=>Cx,ListSchema:()=>gx,MapSchema:()=>yx,NormalizedSchema:()=>O,OperationSchema:()=>Ex,SCHEMA:()=>GNe,Schema:()=>yr,SimpleSchema:()=>ky,StructureSchema:()=>Xm,TypeRegistry:()=>yt,deref:()=>ki,deserializerMiddlewareOption:()=>L5,error:()=>LNe,getSchemaSerdePlugin:()=>el,isStaticSchema:()=>$5,list:()=>PNe,map:()=>vNe,op:()=>DNe,operation:()=>Dy,serializerMiddlewareOption:()=>M5,sim:()=>UNe,simAdapter:()=>qNe,simpleSchemaCacheN:()=>xx,simpleSchemaCacheS:()=>bx,struct:()=>ONe,traitsCache:()=>Ix,translateTraits:()=>ba});var He=g(()=>{k5();TNe();_Ne();QNe();kNe();VQ();MNe();FNe();np();$Ne();F5();HNe();U5();zNe()});function sp(t,e){if(e==null)return e;let r=O.of(t);if(r.getMergedTraits().sensitive)return H5;if(r.isListSchema()){let n=r.getValueSchema();if(n.getMergedTraits().sensitive)return H5;if(Array.isArray(e))return e.map(s=>sp(n,s))}else if(r.isMapSchema()){let n=r.getValueSchema();if(r.getKeySchema().getMergedTraits().sensitive||n.getMergedTraits().sensitive)return H5;if(typeof e=="object")return Object.fromEntries(Object.entries(e).map(([s,o])=>[s,sp(n,o)]))}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=sp(a,n[o]));return s}return e}var H5,z5=g(()=>{He();H5="***SensitiveInformation***";i(sp,"schemaLogFilter")});var V5,VNe,ws,W5,J5=g(()=>{V5=R(Kn());GQ();z5();He();VNe=Symbol.for("@smithy/op-event-stream"),ws=class{static{i(this,"Command")}middlewareStack=rp();schema;static classBuilder(){return new W5}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let N of s.bind(this)(p,e,r,n))this.middlewareStack.use(N);let f=e.concat(this.middlewareStack),{logger:m}=r,h=d[V5.SMITHY_CONTEXT_KEY],A={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[V5.SMITHY_CONTEXT_KEY]:{...h,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:y}=r,E=n??{};E.metricsRecorder&&(E={...E},delete E.metricsRecorder);let I,x=this.schema,b=x?.[VNe];if(b!==void 0)I=b;else if(x&&Array.isArray(x)&&x[0]===9){let[,,,,N,_]=x;I=x[VNe]=!!(O.of(N).getEventStreamMember()||O.of(_).getEventStreamMember())}return I&&(E={isEventStream:I,...E}),f.resolve(N=>y.handle(N.request,E),A)}},W5=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 ws{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?sp.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?sp.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var WNe,JNe=g(()=>{WNe="***SensitiveInformation***"});var tl,YNe=g(()=>{tl=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 Oi,Zm,Y5=g(()=>{Oi=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}},Zm=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 j5,jNe,UDt,KNe=g(()=>{Y5();j5=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=UDt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw Zm(a,e)},"throwDefaultError"),jNe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{j5({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),UDt=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 rl,XNe=g(()=>{rl=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 ZNe,nl,eTe=g(()=>{ZNe=!1,nl=i(t=>{t&&!ZNe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(ZNe=!0)},"emitWarningIfUnsupportedVersion")});var eh,tTe,WQ,JQ,K5=g(()=>{_e();eh=R(Kn()),tTe=Object.values(eh.AlgorithmId),WQ=i(t=>{let e=[];for(let r in eh.AlgorithmId){if(!X(eh.AlgorithmId,r))continue;let n=eh.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();tTe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),JQ=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();tTe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var YQ,jQ,X5=g(()=>{YQ=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),jQ=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var Ba,rTe,sl,nTe=g(()=>{K5();X5();Ba=i(t=>Object.assign(WQ(t),YQ(t)),"getDefaultExtensionConfiguration"),rTe=Ba,sl=i(t=>Object.assign(JQ(t),jQ(t)),"resolveDefaultRuntimeConfig")});var sTe,oTe=g(()=>{sTe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var th,iTe=g(()=>{_e();th=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]=th(t[r])));return t},"getValueFromTextNode")});var aTe,cTe=g(()=>{aTe=i(t=>t!=null,"isSerializableHeaderValue")});var to,lTe=g(()=>{to=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function Z5(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,qDt(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}pTe(n,null,o,a)}return n}var uTe,dTe,qDt,pTe,$Dt,GDt,fTe=g(()=>{_e();i(Z5,"map");uTe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),dTe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&pTe(r,t,e,n);return r},"take"),qDt=i((t,e,r)=>Z5(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"),pTe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=$Dt,l=GDt,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"),$Dt=i(t=>t!=null,"nonNullish"),GDt=i(t=>t,"pass")});var mTe,hTe,ATe=g(()=>{mTe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),hTe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var KQ,gTe=g(()=>{_e();KQ=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(KQ);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=KQ(t[r]));return e}return t},"_json")});function ol(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return ws.classBuilder().ep(d).m(function(p,f,m,h){let A=a.call(this,p,f,m,h);return A.unshift(n(m,p.getEndpointParameterInstructions())),A}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var yTe=g(()=>{J5();i(ol,"makeBuilder")});var Oy={};cr(Oy,{AlgorithmId:()=>eh.AlgorithmId,Client:()=>Xn,Command:()=>ws,NoOpLogger:()=>to,SENSITIVE_STRING:()=>WNe,ServiceException:()=>Oi,WaiterState:()=>Go,_json:()=>KQ,checkExceptions:()=>ANe,constructStack:()=>rp,convertMap:()=>uTe,createAggregatedClient:()=>tl,createWaiter:()=>SNe,decorateServiceException:()=>Zm,emitWarningIfUnsupportedVersion:()=>nl,getArrayIfSingleItem:()=>sTe,getChecksumConfiguration:()=>WQ,getDefaultClientConfiguration:()=>rTe,getDefaultExtensionConfiguration:()=>Ba,getRetryConfiguration:()=>YQ,getSmithyContext:()=>vt,getValueFromTextNode:()=>th,invalidFunction:()=>uNe,invalidProvider:()=>pNe,isSerializableHeaderValue:()=>aTe,loadConfigsForDefaultMode:()=>rl,makeBuilder:()=>ol,map:()=>Z5,normalizeProvider:()=>xt,resolveChecksumRuntimeConfig:()=>JQ,resolveDefaultRuntimeConfig:()=>sl,resolveRetryRuntimeConfig:()=>jQ,schemaLogFilter:()=>sp,serializeDateTime:()=>hTe,serializeFloat:()=>mTe,take:()=>dTe,throwDefaultError:()=>j5,waiterServiceDefaults:()=>HQ,withBaseException:()=>jNe});var we=g(()=>{GQ();_e();_e();dNe();fNe();wNe();zQ();xNe();J5();JNe();YNe();KNe();XNe();eTe();Y5();nTe();K5();X5();oTe();iTe();cTe();lTe();fTe();z5();ATe();gTe();yTe()});var XQ,e6=g(()=>{XQ=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var Ra,op,ip=g(()=>{e6();Ra=i((t,e=0,r=t.byteLength-e)=>{if(!XQ(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),op=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 HDt,Er,ETe=g(()=>{ip();HDt=/^[A-Za-z0-9+/]*={0,2}$/,Er=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!HDt.exec(t))throw new TypeError("Invalid base64 string.");let e=op(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Zr,ZQ=g(()=>{ip();Zr=i(t=>{let e=op(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Qt,t6=g(()=>{ip();ZQ();Qt=i(t=>{let e;if(typeof t=="string"?e=Zr(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 Ra(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function CTe(t,e,r,n){return class eD extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?eD.mutate(n(o)):eD.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,eD.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var ITe=g(()=>{i(CTe,"bindUint8ArrayBlobAdapter")});var qt,STe=g(()=>{ip();qt=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 Ra(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function wTe(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,xTe=g(()=>{Zn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(wTe,"bindV4")});var bTe,BTe=g(()=>{bTe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var RTe,NTe,Ly,zDt,Bx,My,TTe,tD,rD,nD,r6,VDt,PTe,n6,_Te,oD,Rx,vTe,iD,WDt,Uy,aD,QTe,DTe,kTe,OTe,s6,LTe,MTe,ap,cD,sD,Fy,o6=g(()=>{_e();RTe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),NTe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Fy.warn(sD(`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")&&Fy.warn(sD(`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"),Ly=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Fy.warn(sD(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),zDt=Math.ceil(2**127*(2-2**-23)),Bx=i(t=>{let e=Ly(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>zDt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),My=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),TTe=My,tD=i(t=>r6(t,32),"expectInt32"),rD=i(t=>r6(t,16),"expectShort"),nD=i(t=>r6(t,8),"expectByte"),r6=i((t,e)=>{let r=My(t);if(r!==void 0&&VDt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),VDt=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"),PTe=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"),n6=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"),_Te=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Fy.warn(sD(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),oD=i(t=>{if(t==null)return;let e=n6(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"),Rx=i(t=>Ly(typeof t=="string"?Uy(t):t),"strictParseDouble"),vTe=Rx,iD=i(t=>Bx(typeof t=="string"?Uy(t):t),"strictParseFloat32"),WDt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Uy=i(t=>{let e=t.match(WDt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),aD=i(t=>typeof t=="string"?OTe(t):Ly(t),"limitedParseDouble"),QTe=aD,DTe=aD,kTe=i(t=>typeof t=="string"?OTe(t):Bx(t),"limitedParseFloat32"),OTe=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"),s6=i(t=>My(typeof t=="string"?Uy(t):t),"strictParseLong"),LTe=s6,MTe=i(t=>tD(typeof t=="string"?Uy(t):t),"strictParseInt32"),ap=i(t=>rD(typeof t=="string"?Uy(t):t),"strictParseShort"),cD=i(t=>nD(typeof t=="string"?Uy(t):t),"strictParseByte"),sD=i(t=>String(new TypeError(t).stack||t).split(` +More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var TDt,PDt,KRe,XRe=g(()=>{TDt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),PDt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},KRe=i(t=>({applyToStack:i(e=>{e.add(TDt(),PDt)},"applyToStack")}),"getLongPollPlugin")});function tp(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var ZRe=g(()=>{i(tp,"setCredentialFeature")});var eNe,x5,tNe=g(()=>{eNe=require("node:stream"),x5=i(t=>t?.body instanceof eNe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Xm,rp,np,rNe,nNe,HQ=g(()=>{Xm=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),rp=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),np=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>rNe[m.step]-rNe[f.step]||nNe[m.priority||"normal"]-nNe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let A=Xm(h.name,h.aliases);if(A.includes(p)){f=!0;for(let y of A)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(h=>{if(h.middleware===p){f=!0;for(let A of Xm(h.name,h.aliases))n.delete(A);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=[],h={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Xm(E.name,E.aliases))h[I]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let I of Xm(E.name,E.aliases))h[I]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=h[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${rp(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&E.after.push(y),y.relation==="before"&&E.before.push(y)}}),s(f).map(l).reduce((y,E)=>(y.push(...E),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:h,aliases:A}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=Xm(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${rp(m,A)}'`);for(let I of E){let x=t.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${rp(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${rp(m,A)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let I of E)n.add(I)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:A}=f,y={middleware:p,...f},E=Xm(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${rp(m,A)}'`);for(let I of E){let x=e.findIndex(N=>N.name===I||N.aliases?.some(_=>_===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${rp(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${rp(m,A)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of E)n.add(I)}e.push(y)},"addRelativeTo"),clone:i(()=>c(np()),"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(h=>{let{tags:A,name:y,aliases:E}=h;if(A&&A.includes(p)){let I=Xm(y,E);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(np());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 rp(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(h=>h.middleware).reverse())p=m(p,f);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),rNe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},nNe={high:3,normal:2,low:1}});var Kn=S(wa=>{var b5;(function(t){t.HEADER="header",t.QUERY="query"})(b5||(b5={}));var B5;(function(t){t.HEADER="header",t.QUERY="query"})(B5||(B5={}));var R5;(function(t){t.HTTP="http",t.HTTPS="https"})(R5||(R5={}));var hx;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(hx||(hx={}));var _Dt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>hx.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>hx.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),vDt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),QDt=i(t=>_Dt(t),"getDefaultClientConfiguration"),DDt=i(t=>vDt(t),"resolveDefaultRuntimeConfig"),N5;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(N5||(N5={}));var kDt="__smithy_context",T5;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(T5||(T5={}));var P5;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(P5||(P5={}));wa.AlgorithmId=hx;wa.EndpointURLScheme=R5;wa.FieldPosition=N5;wa.HttpApiKeyAuthLocation=B5;wa.HttpAuthLocation=b5;wa.IniSectionType=T5;wa.RequestHandlerProtocol=P5;wa.SMITHY_CONTEXT_KEY=kDt;wa.getDefaultClientConfiguration=QDt;wa.resolveDefaultRuntimeConfig=DDt});var _5,vt,sNe=g(()=>{_5=R(Kn()),vt=i(t=>t[_5.SMITHY_CONTEXT_KEY]||(t[_5.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var v5=g(()=>{i(X,"hasOwn")});function ODt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Ye,oNe=g(()=>{Ye=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=ODt(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(ODt,"cloneQuery")});var fn,iNe=g(()=>{fn=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 LDt,xa,aNe=g(()=>{LDt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),xa=i((t,e=!1)=>{if(!e)return LDt.test(t);let r=t.split(".");for(let n of r)if(!xa(n))return!1;return!0},"isValidHostLabel")});function Ax(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var cNe=g(()=>{i(Ax,"isValidHostname")});var xt,lNe=g(()=>{xt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function gx(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 Q5=g(()=>{i(gx,"parseQueryString")});var vn,D5=g(()=>{Q5();vn=i(t=>{if(typeof t=="string")return vn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=gx(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var $o,uNe=g(()=>{v5();D5();$o=i(t=>{if(typeof t=="object"){if("url"in t){let e=vn(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 vn(t)},"toEndpointV1")});var _e=g(()=>{sNe();v5();oNe();iNe();aNe();cNe();lNe();Q5();D5();uNe()});var dNe,pNe=g(()=>{dNe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var fNe,mNe=g(()=>{fNe=i(t=>()=>Promise.reject(t),"invalidProvider")});var Dy,k5=g(()=>{Dy=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 hNe,ANe=g(()=>{hNe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var zQ,Go,gNe,VQ=g(()=>{k5();zQ={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(Go||(Go={}));gNe=i(t=>{if(t.state===Go.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Dy())}`);throw e.name="AbortError",e}else if(t.state===Go.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Dy())}`);throw e.name="TimeoutError",e}else if(t.state!==Go.SUCCESS)throw new Error(`${JSON.stringify(t,Dy())}`);return t},"checkExceptions")});var yNe,MDt,FDt,UDt,qDt,ENe=g(()=>{k5();ANe();VQ();yNe=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,h=!1;for(;;){if(p>0){let E=UDt(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let I="AbortController signal aborted.";return l[I]|=0,l[I]+=1,{state:Go.ABORTED,observedResponses:l}}if(Date.now()+E>f)return{state:Go.TIMEOUT,observedResponses:l};await hNe(E/1e3)}let{state:A,reason:y}=await c(s,a);if(y){let E=FDt(y);l[E]|=0,l[E]+=1}if(A!==Go.RETRY)return{state:A,reason:y,final:y,observedResponses:l};p+=1,!h&&Date.now()>=m&&(MDt(l,s),h=!0)}},"runPolling"),MDt=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"),FDt=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,Dy())??"Unknown")},"createMessageFromResponse"),UDt=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=qDt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),qDt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var CNe,INe=g(()=>{CNe=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{ENe();INe();VQ();SNe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:Go.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"),wNe=i(async(t,e,r)=>{let n={...zQ,...t};CNe(n);let s=[yNe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=SNe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=SNe(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 Xn,bNe=g(()=>{HQ();Xn=class{static{i(this,"Client")}config;middlewareStack=np();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 ki,O5=g(()=>{ki=i(t=>typeof t=="function"?t():t,"deref")});var ky,WQ=g(()=>{ky=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var BNe,L5,RNe=g(()=>{_e();WQ();BNe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=vt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(ky(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(fn.isInstance(s)){let{headers:m={},statusCode:h}=s,A=Object.entries(m);p.$metadata={httpStatusCode:h,requestId:L5(/^x-[\w-]+-request-?id$/,A),extendedRequestId:L5(/^x-[\w-]+-id-2$/,A),cfId:L5(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),L5=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var NNe,TNe=g(()=>{_e();WQ();NNe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=vt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>$o(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(ky(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function el(t){return{applyToStack:i(e=>{e.add(NNe(t),F5),e.add(BNe(t),M5),t.protocol.setSerdeContext(t)},"applyToStack")}}var M5,F5,PNe=g(()=>{RNe();TNe();M5={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},F5={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(el,"getSchemaSerdePlugin")});var yr,sp=g(()=>{yr=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 yx,_Ne,vNe=g(()=>{sp();yx=class t extends yr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},_Ne=i((t,e,r,n)=>yr.assign(new yx,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var Ex,QNe,DNe=g(()=>{sp();Ex=class t extends yr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},QNe=i((t,e,r,n,s)=>yr.assign(new Ex,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var Cx,kNe,ONe=g(()=>{sp();Cx=class t extends yr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},kNe=i((t,e,r,n,s)=>yr.assign(new Cx,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var Zm,LNe,U5=g(()=>{sp();Zm=class t extends yr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},LNe=i((t,e,r,n,s)=>yr.assign(new Zm,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var Ix,MNe,FNe=g(()=>{sp();U5();Ix=class t extends Zm{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},MNe=i((t,e,r,n,s,o)=>yr.assign(new Ix,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function ba(t){if(typeof t=="object")return t;if(t=t|0,Sx[t])return Sx[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Sx[t]=e}var Sx,q5=g(()=>{Sx=[];i(ba,"translateTraits")});function xx(t,e){if(t instanceof O)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=O;return new r(t,e)}var wx,bx,Bx,O,$5,G5,UNe=g(()=>{O5();q5();wx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},bx=[],Bx={},O=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;$5(s);)n.push(s[1]),s=s[0],o=ki(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,ba(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=ki(o),G5(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(bx[e])return bx[e]}else if(typeof e=="string"){if(Bx[e])return Bx[e]}else if(r&&e[wx.ns])return e[wx.ns];let n=ki(e);if(n instanceof t)return n;if($5(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),ba(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[wx.ns]=s:typeof n=="string"?Bx[n]=s:typeof n=="number"?bx[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 ba(this.memberTraits)}getOwnTraits(){return ba(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 xx([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 xx([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 xx($5(s)?s:[s,0],e)}if(this.isDocumentSchema())return xx([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[wx.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),G5=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Oy,qNe,$Ne,GNe=g(()=>{sp();Oy=class t extends yr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},qNe=i((t,e,r,n)=>yr.assign(new Oy,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),$Ne=i((t,e,r,n)=>yr.assign(new Oy,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var HNe,zNe=g(()=>{HNe={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 yt,VNe=g(()=>{yt=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 H5={};cr(H5,{ErrorSchema:()=>Ix,ListSchema:()=>yx,MapSchema:()=>Ex,NormalizedSchema:()=>O,OperationSchema:()=>Cx,SCHEMA:()=>HNe,Schema:()=>yr,SimpleSchema:()=>Oy,StructureSchema:()=>Zm,TypeRegistry:()=>yt,deref:()=>ki,deserializerMiddlewareOption:()=>M5,error:()=>MNe,getSchemaSerdePlugin:()=>el,isStaticSchema:()=>G5,list:()=>_Ne,map:()=>QNe,op:()=>kNe,operation:()=>ky,serializerMiddlewareOption:()=>F5,sim:()=>qNe,simAdapter:()=>$Ne,simpleSchemaCacheN:()=>bx,simpleSchemaCacheS:()=>Bx,struct:()=>LNe,traitsCache:()=>Sx,translateTraits:()=>ba});var He=g(()=>{O5();PNe();vNe();DNe();ONe();WQ();FNe();UNe();sp();GNe();U5();zNe();q5();VNe()});function op(t,e){if(e==null)return e;let r=O.of(t);if(r.getMergedTraits().sensitive)return z5;if(r.isListSchema()){let n=r.getValueSchema();if(n.getMergedTraits().sensitive)return z5;if(Array.isArray(e))return e.map(s=>op(n,s))}else if(r.isMapSchema()){let n=r.getValueSchema();if(r.getKeySchema().getMergedTraits().sensitive||n.getMergedTraits().sensitive)return z5;if(typeof e=="object")return Object.fromEntries(Object.entries(e).map(([s,o])=>[s,op(n,o)]))}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=op(a,n[o]));return s}return e}var z5,V5=g(()=>{He();z5="***SensitiveInformation***";i(op,"schemaLogFilter")});var W5,WNe,ws,J5,Y5=g(()=>{W5=R(Kn());HQ();V5();He();WNe=Symbol.for("@smithy/op-event-stream"),ws=class{static{i(this,"Command")}middlewareStack=np();schema;static classBuilder(){return new J5}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let N of s.bind(this)(p,e,r,n))this.middlewareStack.use(N);let f=e.concat(this.middlewareStack),{logger:m}=r,h=d[W5.SMITHY_CONTEXT_KEY],A={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[W5.SMITHY_CONTEXT_KEY]:{...h,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:y}=r,E=n??{};E.metricsRecorder&&(E={...E},delete E.metricsRecorder);let I,x=this.schema,b=x?.[WNe];if(b!==void 0)I=b;else if(x&&Array.isArray(x)&&x[0]===9){let[,,,,N,_]=x;I=x[WNe]=!!(O.of(N).getEventStreamMember()||O.of(_).getEventStreamMember())}return I&&(E={isEventStream:I,...E}),f.resolve(N=>y.handle(N.request,E),A)}},J5=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 ws{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?op.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?op.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var JNe,YNe=g(()=>{JNe="***SensitiveInformation***"});var tl,jNe=g(()=>{tl=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 Oi,eh,j5=g(()=>{Oi=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}},eh=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 K5,KNe,$Dt,XNe=g(()=>{j5();K5=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=$Dt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw eh(a,e)},"throwDefaultError"),KNe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{K5({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),$Dt=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 rl,ZNe=g(()=>{rl=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 eTe,nl,tTe=g(()=>{eTe=!1,nl=i(t=>{t&&!eTe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(eTe=!0)},"emitWarningIfUnsupportedVersion")});var th,rTe,JQ,YQ,X5=g(()=>{_e();th=R(Kn()),rTe=Object.values(th.AlgorithmId),JQ=i(t=>{let e=[];for(let r in th.AlgorithmId){if(!X(th.AlgorithmId,r))continue;let n=th.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();rTe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),YQ=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();rTe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var jQ,KQ,Z5=g(()=>{jQ=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),KQ=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var Ba,nTe,sl,sTe=g(()=>{X5();Z5();Ba=i(t=>Object.assign(JQ(t),jQ(t)),"getDefaultExtensionConfiguration"),nTe=Ba,sl=i(t=>Object.assign(YQ(t),KQ(t)),"resolveDefaultRuntimeConfig")});var oTe,iTe=g(()=>{oTe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var rh,aTe=g(()=>{_e();rh=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]=rh(t[r])));return t},"getValueFromTextNode")});var cTe,lTe=g(()=>{cTe=i(t=>t!=null,"isSerializableHeaderValue")});var to,uTe=g(()=>{to=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function e6(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,GDt(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}fTe(n,null,o,a)}return n}var dTe,pTe,GDt,fTe,HDt,zDt,mTe=g(()=>{_e();i(e6,"map");dTe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),pTe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&fTe(r,t,e,n);return r},"take"),GDt=i((t,e,r)=>e6(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"),fTe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=HDt,l=zDt,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"),HDt=i(t=>t!=null,"nonNullish"),zDt=i(t=>t,"pass")});var hTe,ATe,gTe=g(()=>{hTe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),ATe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var XQ,yTe=g(()=>{_e();XQ=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(XQ);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=XQ(t[r]));return e}return t},"_json")});function ol(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return ws.classBuilder().ep(d).m(function(p,f,m,h){let A=a.call(this,p,f,m,h);return A.unshift(n(m,p.getEndpointParameterInstructions())),A}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var ETe=g(()=>{Y5();i(ol,"makeBuilder")});var Ly={};cr(Ly,{AlgorithmId:()=>th.AlgorithmId,Client:()=>Xn,Command:()=>ws,NoOpLogger:()=>to,SENSITIVE_STRING:()=>JNe,ServiceException:()=>Oi,WaiterState:()=>Go,_json:()=>XQ,checkExceptions:()=>gNe,constructStack:()=>np,convertMap:()=>dTe,createAggregatedClient:()=>tl,createWaiter:()=>wNe,decorateServiceException:()=>eh,emitWarningIfUnsupportedVersion:()=>nl,getArrayIfSingleItem:()=>oTe,getChecksumConfiguration:()=>JQ,getDefaultClientConfiguration:()=>nTe,getDefaultExtensionConfiguration:()=>Ba,getRetryConfiguration:()=>jQ,getSmithyContext:()=>vt,getValueFromTextNode:()=>rh,invalidFunction:()=>dNe,invalidProvider:()=>fNe,isSerializableHeaderValue:()=>cTe,loadConfigsForDefaultMode:()=>rl,makeBuilder:()=>ol,map:()=>e6,normalizeProvider:()=>xt,resolveChecksumRuntimeConfig:()=>YQ,resolveDefaultRuntimeConfig:()=>sl,resolveRetryRuntimeConfig:()=>KQ,schemaLogFilter:()=>op,serializeDateTime:()=>ATe,serializeFloat:()=>hTe,take:()=>pTe,throwDefaultError:()=>K5,waiterServiceDefaults:()=>zQ,withBaseException:()=>KNe});var we=g(()=>{HQ();_e();_e();pNe();mNe();xNe();VQ();bNe();Y5();YNe();jNe();XNe();ZNe();tTe();j5();sTe();X5();Z5();iTe();aTe();lTe();uTe();mTe();V5();gTe();yTe();ETe()});var ZQ,t6=g(()=>{ZQ=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var Ra,ip,ap=g(()=>{t6();Ra=i((t,e=0,r=t.byteLength-e)=>{if(!ZQ(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),ip=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 VDt,Er,CTe=g(()=>{ap();VDt=/^[A-Za-z0-9+/]*={0,2}$/,Er=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!VDt.exec(t))throw new TypeError("Invalid base64 string.");let e=ip(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Zr,eD=g(()=>{ap();Zr=i(t=>{let e=ip(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Qt,r6=g(()=>{ap();eD();Qt=i(t=>{let e;if(typeof t=="string"?e=Zr(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 Ra(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function ITe(t,e,r,n){return class tD extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?tD.mutate(n(o)):tD.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,tD.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var STe=g(()=>{i(ITe,"bindUint8ArrayBlobAdapter")});var qt,wTe=g(()=>{ap();qt=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 Ra(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function xTe(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,bTe=g(()=>{Zn=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(xTe,"bindV4")});var BTe,RTe=g(()=>{BTe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var NTe,TTe,My,WDt,Rx,Fy,PTe,rD,nD,sD,n6,JDt,_Te,s6,vTe,iD,Nx,QTe,aD,YDt,qy,cD,DTe,kTe,OTe,LTe,o6,MTe,FTe,cp,lD,oD,Uy,i6=g(()=>{_e();NTe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),TTe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Uy.warn(oD(`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")&&Uy.warn(oD(`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"),My=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Uy.warn(oD(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),WDt=Math.ceil(2**127*(2-2**-23)),Rx=i(t=>{let e=My(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>WDt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),Fy=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),PTe=Fy,rD=i(t=>n6(t,32),"expectInt32"),nD=i(t=>n6(t,16),"expectShort"),sD=i(t=>n6(t,8),"expectByte"),n6=i((t,e)=>{let r=Fy(t);if(r!==void 0&&JDt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),JDt=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"),_Te=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"),s6=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"),vTe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Uy.warn(oD(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),iD=i(t=>{if(t==null)return;let e=s6(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"),Nx=i(t=>My(typeof t=="string"?qy(t):t),"strictParseDouble"),QTe=Nx,aD=i(t=>Rx(typeof t=="string"?qy(t):t),"strictParseFloat32"),YDt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,qy=i(t=>{let e=t.match(YDt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),cD=i(t=>typeof t=="string"?LTe(t):My(t),"limitedParseDouble"),DTe=cD,kTe=cD,OTe=i(t=>typeof t=="string"?LTe(t):Rx(t),"limitedParseFloat32"),LTe=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"),o6=i(t=>Fy(typeof t=="string"?qy(t):t),"strictParseLong"),MTe=o6,FTe=i(t=>rD(typeof t=="string"?qy(t):t),"strictParseInt32"),cp=i(t=>nD(typeof t=="string"?qy(t):t),"strictParseShort"),lD=i(t=>sD(typeof t=="string"?qy(t):t),"strictParseByte"),oD=i(t=>String(new TypeError(t).stack||t).split(` `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Fy={warn:console.warn}});function Ho(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`${JDt[n]}, ${l} ${a6[r]} ${e} ${u}:${d}:${p} GMT`}var JDt,a6,YDt,FTe,jDt,$y,KDt,XDt,ZDt,cp,Gy,Nx,ekt,tkt,rkt,i6,nkt,skt,okt,il,ikt,akt,qy,UTe=g(()=>{o6();JDt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Ho,"dateToUtcString");YDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),FTe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=YDt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=ap(qy(n)),p=il(s,"month",1,12),f=il(o,"day",1,31);return Nx(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),jDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),$y=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=jDt.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=ap(qy(n)),f=il(s,"month",1,12),m=il(o,"day",1,31),h=Nx(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-akt(d)),h},"parseRfc3339DateTimeWithOffset"),KDt=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$/),XDt=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$/),ZDt=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})$/),cp=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=KDt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Nx(ap(qy(o)),i6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=XDt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return rkt(Nx(ekt(o),i6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=ZDt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Nx(ap(qy(u)),i6(n),il(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Gy=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Rx(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"),Nx=i((t,e,r,n)=>{let s=e-1;return skt(t,s,r),new Date(Date.UTC(t,s,r,il(n.hours,"hour",0,23),il(n.minutes,"minute",0,59),il(n.seconds,"seconds",0,60),ikt(n.fractionalMilliseconds)))},"buildDate"),ekt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+ap(qy(t));return rt.getTime()-new Date().getTime()>tkt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),i6=i(t=>{let e=a6.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),nkt=[31,28,31,30,31,30,31,31,30,31,30,31],skt=i((t,e,r)=>{let n=nkt[e];if(e===1&&okt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${a6[e]} in ${t}: ${r}`)},"validateDayOfMonth"),okt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),il=i((t,e,r,n)=>{let s=cD(qy(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),ikt=i(t=>t==null?0:iD("0."+t)*1e3,"parseMilliseconds"),akt=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"),qy=i(t=>{let e=0;for(;e{Ur=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Ur.from=t=>t&&typeof t=="object"&&(t instanceof Ur||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Ur(String(t)):Ur(JSON.stringify(t));Ur.fromObject=Ur.from});function lD(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var $Te=g(()=>{i(lD,"quoteHeader")});function Qu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var c6,l6,u6,GTe,HTe,ckt,lkt,ukt,dkt,pkt,lp,uD,dD,zTe=g(()=>{c6="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",l6="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",u6="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",GTe="(\\d?\\d)",HTe="(\\d{4})",ckt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),lkt=new RegExp(`^${c6}, ${GTe} ${l6} ${HTe} ${u6} GMT$`),ukt=new RegExp(`^${c6}, ${GTe}-${l6}-(\\d\\d) ${u6} GMT$`),dkt=new RegExp(`^${c6} ${l6} ( [1-9]|\\d\\d) ${u6} ${HTe}$`),pkt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lp=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"),uD=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=ckt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Qu(n,1,12),Qu(s,1,31),Qu(o,0,23),Qu(a,0,59),Qu(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],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),dD=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=lkt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=ukt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=dkt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),pkt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Qu(e,1,31),Qu(s,0,23),Qu(o,0,59),Qu(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(Qu,"range")});function pD(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(pD,"splitEvery")});var Hy,WTe=g(()=>{Hy=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 fD(t){return new je(String(t),"bigDecimal")}var JTe,je,YTe=g(()=>{JTe=/^-?((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,!JTe.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"&&JTe.test(r.string)}};i(fD,"nv")});function mD(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{jTe={},d6={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),jTe[t]=e,d6[e]=t}i(mD,"fromHex");i(Li,"toHex")});var zy,al,KTe=g(()=>{zy=require("node:fs"),al=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 zy.ReadStream){if(t.path!=null)return(0,zy.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,zy.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var xs,f6=g(()=>{ZQ();xs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Zr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function cl(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 Tx=g(()=>{i(cl,"concatBytes")});var hD,m6,h6=g(()=>{_e();hD=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(fn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:m6(/^x-[\w-]+-request-?id$/,u),extendedRequestId:m6(/^x-[\w-]+-id-2$/,u),cfId:m6(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),m6=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var zo,Px=g(()=>{zo=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 up,AD=g(()=>{Px();up=class t extends zo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var gD,XTe=g(()=>{Px();gD=class t extends zo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var yD,A6=g(()=>{Px();yD=i((...t)=>async()=>{if(t.length===0)throw new zo("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 ED,g6=g(()=>{ED=i(t=>()=>Promise.resolve(t),"fromValue")});var Vy,CD=g(()=>{Vy=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 mn,ID=g(()=>{mn=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 ZTe,ePe=g(()=>{ZTe=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 qr,SD=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(qr||(qr={}))});var tPe,rPe,y6,fkt,ll,Wy=g(()=>{tPe=require("node:os"),rPe=require("node:path"),y6={},fkt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),ll=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${rPe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=fkt();return y6[s]||(y6[s]=(0,tPe.homedir)()),y6[s]},"getHomeDir")});var E6,C6,wD,I6=g(()=>{E6="AWS_PROFILE",C6="default",wD=i(t=>t.profile||process.env[E6]||C6,"getProfileName")});var nPe,sPe,xD,S6=g(()=>{nPe=require("node:crypto"),sPe=require("node:path");Wy();xD=i(t=>{let r=(0,nPe.createHash)("sha1").update(t).digest("hex");return(0,sPe.join)(ll(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var oPe,_x,iPe,w6=g(()=>{oPe=require("node:fs/promises");S6();_x={},iPe=i(async t=>{if(_x[t])return _x[t];let e=xD(t),r=await(0,oPe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var ul,aPe=g(()=>{ul="."});var x6,cPe,lPe=g(()=>{x6=R(Kn()),cPe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(x6.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===x6.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var uPe,mkt,bD,b6=g(()=>{uPe=require("node:path");Wy();mkt="AWS_CONFIG_FILE",bD=i(()=>process.env[mkt]||(0,uPe.join)(ll(),".aws","config"),"getConfigFilepath")});var dPe,hkt,pPe,fPe=g(()=>{dPe=require("node:path");Wy();hkt="AWS_SHARED_CREDENTIALS_FILE",pPe=i(()=>process.env[hkt]||(0,dPe.join)(ll(),".aws","credentials"),"getCredentialsFilepath")});var mPe,Akt,gkt,vx,B6=g(()=>{mPe=R(Kn()),Akt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,gkt=["__proto__","profile __proto__"],vx=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=Akt.exec(c);if(l){let[,u,,d]=l;Object.values(mPe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(gkt.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 hPe,R6,Qx,rh,Dx=g(()=>{hPe=require("node:fs/promises"),R6={},Qx={},rh=i((t,e)=>Qx[t]!==void 0?Qx[t]:((!R6[t]||e?.ignoreCache)&&(R6[t]=(0,hPe.readFile)(t,"utf8")),R6[t]),"readFile")});var N6,APe,Jy,BD=g(()=>{N6=require("node:path");lPe();b6();fPe();Wy();B6();Dx();APe=i(()=>({}),"swallowError"),Jy=i(async(t={})=>{let{filepath:e=pPe(),configFilepath:r=bD()}=t,n=ll(),s="~/",o=e;e.startsWith(s)&&(o=(0,N6.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,N6.join)(n,r.slice(2)));let c=await Promise.all([rh(a,{ignoreCache:t.ignoreCache}).then(vx).then(cPe).catch(APe),rh(o,{ignoreCache:t.ignoreCache}).then(vx).catch(APe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var gPe,yPe,EPe=g(()=>{gPe=R(Kn()),yPe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(gPe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var ykt,CPe,IPe=g(()=>{b6();EPe();B6();Dx();ykt=i(()=>({}),"swallowError"),CPe=i(async(t={})=>rh(t.configFilepath??bD()).then(vx).then(yPe).catch(ykt),"loadSsoSessionData")});var SPe,wPe=g(()=>{SPe=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 xPe,bPe=g(()=>{BD();wPe();xPe=i(async t=>{let e=await Jy(t);return SPe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var BPe,RPe=g(()=>{w6();Dx();BPe={getFileRecord(){return Qx},interceptFile(t,e){Qx[t]=Promise.resolve(e)},getTokenRecord(){return _x},interceptToken(t,e){_x[t]=e}}});function RD(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 T6=g(()=>{i(RD,"getSelectorName")});var NPe,TPe=g(()=>{AD();T6();NPe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new up(r.message||`Not found in ENV: ${RD(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var PPe,_Pe=g(()=>{AD();I6();BD();T6();PPe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=wD(r),{configFile:s,credentialsFile:o}=await Jy(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 up(u.message||`Not found in config files w/ profile [${n}]: ${RD(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var Ekt,ND,P6=g(()=>{g6();Ekt=i(t=>typeof t=="function","isFunction"),ND=i(t=>Ekt(t)?async()=>await t():ED(t),"fromStatic")});var ve,_6=g(()=>{A6();CD();TPe();_Pe();P6();ve=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return Vy(yD(NPe(t,{signingName:s,logger:o}),PPe(e,n),ND(r)))},"loadConfig")});var TD,PD,vPe,dl,QPe,DPe=g(()=>{ID();SD();TD="AWS_USE_DUALSTACK_ENDPOINT",PD="use_dualstack_endpoint",vPe=!1,dl={environmentVariableSelector:i(t=>mn(t,TD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,PD,qr.CONFIG),"configFileSelector"),default:!1},QPe={environmentVariableSelector:i(t=>mn(t,TD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,PD,qr.CONFIG),"configFileSelector"),default:void 0}});var _D,vD,kPe,pl,OPe,LPe=g(()=>{ID();SD();_D="AWS_USE_FIPS_ENDPOINT",vD="use_fips_endpoint",kPe=!1,pl={environmentVariableSelector:i(t=>mn(t,_D,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,vD,qr.CONFIG),"configFileSelector"),default:!1},OPe={environmentVariableSelector:i(t=>mn(t,_D,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,vD,qr.CONFIG),"configFileSelector"),default:void 0}});var MPe,FPe=g(()=>{we();MPe=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:xt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:xt(s??!1)})},"resolveCustomEndpointsConfig")});var UPe,qPe=g(()=>{UPe=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 $Pe,GPe=g(()=>{we();qPe();$Pe=i(t=>{let e=xt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?xt(typeof r=="string"?s(r):r):()=>UPe({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var HPe,v6,Q6,zPe,VPe,WPe,JPe,YPe,jPe,D6=g(()=>{HPe="AWS_EXECUTION_ENV",v6="AWS_REGION",Q6="AWS_DEFAULT_REGION",zPe="AWS_EC2_METADATA_DISABLED",VPe=["in-region","cross-region","mobile","standard","legacy"],WPe="/latest/meta-data/placement/region",JPe="/latest/api/token",YPe="x-aws-ec2-metadata-token",jPe="x-aws-ec2-metadata-token-ttl-seconds"});var KPe,Ckt,e_e,QD,XPe,Ikt,ZPe,k6=g(()=>{D6();KPe=1e3,Ckt=6e4,e_e=0,QD=i(async()=>{if(!process.env[zPe]&&!(Date.now(){e_e=Date.now()+Ckt},"cacheNegativeAndReturnUndefined"),Ikt=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"),ZPe=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:KPe,signal:AbortSignal.timeout(KPe)});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 Yy,jy,Qn,bs,O6=g(()=>{k6();Yy="AWS_REGION",jy="region",Qn={environmentVariableSelector:i(t=>t[Yy],"environmentVariableSelector"),configFileSelector:i(t=>t[jy],"configFileSelector"),default:i(async()=>{let t=await QD();if(t)return t;throw new Error("Region is missing")},"default")},bs={preferredFile:"credentials"}});var t_e,r_e,n_e=g(()=>{_e();t_e=new Set,r_e=i((t,e=xa)=>{if(!t_e.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 t_e.add(t)},"checkRegion")});var DD,L6=g(()=>{DD=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var s_e,o_e=g(()=>{L6();s_e=i(t=>DD(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var Vo,i_e=g(()=>{n_e();o_e();L6();Vo=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=s_e(n);return r_e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return DD(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var M6,a_e=g(()=>{M6=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var c_e,l_e=g(()=>{c_e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var u_e,d_e=g(()=>{u_e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var p_e,f_e=g(()=>{p_e=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 m_e,h_e=g(()=>{a_e();l_e();d_e();f_e();m_e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=u_e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=M6(s[c]?.variants,l),d=M6(o[a]?.variants,l),p=c_e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=p_e(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 Skt,wkt,A_e,g_e=g(()=>{Skt="AWS_DEFAULTS_MODE",wkt="defaults_mode",A_e={environmentVariableSelector:i(t=>t[Skt],"environmentVariableSelector"),configFileSelector:i(t=>t[wkt],"configFileSelector"),default:"legacy"}});var fl,xkt,bkt,y_e=g(()=>{O6();k6();_6();CD();D6();g_e();fl=i(({region:t=ve(Qn),defaultsMode:e=ve(A_e)}={})=>Vy(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return xkt(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 ${VPe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),xkt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await bkt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),bkt=i(async()=>process.env[HPe]&&(process.env[v6]||process.env[Q6])?process.env[v6]??process.env[Q6]:QD(),"inferPhysicalRegion")});var Mi={};cr(Mi,{CONFIG_PREFIX_SEPARATOR:()=>ul,CONFIG_USE_DUALSTACK_ENDPOINT:()=>PD,CONFIG_USE_FIPS_ENDPOINT:()=>vD,CredentialsProviderError:()=>up,DEFAULT_PROFILE:()=>C6,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>vPe,DEFAULT_USE_FIPS_ENDPOINT:()=>kPe,ENV_PROFILE:()=>E6,ENV_USE_DUALSTACK_ENDPOINT:()=>TD,ENV_USE_FIPS_ENDPOINT:()=>_D,NODE_REGION_CONFIG_FILE_OPTIONS:()=>bs,NODE_REGION_CONFIG_OPTIONS:()=>Qn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>dl,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>pl,ProviderError:()=>zo,REGION_ENV_NAME:()=>Yy,REGION_INI_NAME:()=>jy,SelectorType:()=>qr,TokenProviderError:()=>gD,booleanSelector:()=>mn,chain:()=>yD,externalDataInterceptor:()=>BPe,fromStatic:()=>ND,fromValue:()=>ED,getHomeDir:()=>ll,getProfileName:()=>wD,getRegionInfo:()=>m_e,getSSOTokenFilepath:()=>xD,getSSOTokenFromFile:()=>iPe,loadConfig:()=>ve,loadSharedConfigFiles:()=>Jy,loadSsoSessionData:()=>CPe,memoize:()=>Vy,nodeDualstackConfigSelectors:()=>QPe,nodeFipsConfigSelectors:()=>OPe,numberSelector:()=>ZTe,parseKnownFiles:()=>xPe,readFile:()=>rh,resolveCustomEndpointsConfig:()=>MPe,resolveDefaultsModeConfig:()=>fl,resolveEndpointsConfig:()=>$Pe,resolveRegionConfig:()=>Vo});var bt=g(()=>{Px();AD();XTe();A6();g6();CD();ID();ePe();SD();Wy();I6();S6();w6();aPe();BD();IPe();bPe();RPe();Dx();_6();P6();DPe();LPe();FPe();GPe();O6();i_e();h_e();y_e()});var E_e,C_e,I_e,S_e=g(()=>{E_e="AWS_ENDPOINT_URL",C_e="endpoint_url",I_e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[E_e,...r].join("_")];if(n)return n;let s=e[E_e];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("_"),C_e].join(".")];if(c)return c}let n=e[C_e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Bkt,Rkt,w_e,x_e=g(()=>{bt();Bkt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Rkt="ignore_configured_endpoint_urls",w_e={environmentVariableSelector:i(t=>mn(t,Bkt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,Rkt,qr.CONFIG),"configFileSelector"),default:!1}});var kx,b_e=g(()=>{bt();S_e();x_e();kx=i(async t=>{if(!await ve(w_e)())return ve(I_e(t??""))()},"getEndpointFromConfig")});var F6,Nkt,Tkt,Pkt,B_e,R_e,N_e=g(()=>{F6=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),R_e(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!B_e(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"),Nkt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,Tkt=/(\d+\.){3}\d+/,Pkt=/\.\./,B_e=i(t=>Nkt.test(t)&&!Tkt.test(t)&&!Pkt.test(t),"isDnsCompatibleBucketName"),R_e=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 T_e=g(()=>{N_e()});var P_e,__e=g(()=>{P_e=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 kD=g(()=>{_e()});function OD(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($o(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await Ox(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 Ox,LD=g(()=>{T_e();__e();kD();i(OD,"bindGetEndpointFromInstructions");Ox=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 P_e(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 F6(n),n},"resolveParams")});function _kt(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 MD(t){let e=OD(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&_kt(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=vt(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 U6=g(()=>{_e();LD();i(_kt,"setFeature");i(MD,"bindEndpointMiddleware")});function v_e(t){let e=MD(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),q6)},"applyToStack")})}var vkt,q6,$6=g(()=>{U6();vkt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},q6={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:vkt.name};i(v_e,"bindGetEndpointPlugin")});function Q_e(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>$o(await xt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:xt(s??!1),useFipsEndpoint:xt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var D_e=g(()=>{_e();kD();i(Q_e,"bindResolveEndpointConfig")});var Fi,k_e=g(()=>{Fi=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 Ui,O_e=g(()=>{Ui=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 it,L_e=g(()=>{it=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Wo=g(()=>{L_e()});var ml,M_e=g(()=>{ml="endpoints"});function Jo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Jo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Jo).join(", ")})`:JSON.stringify(t,null,2)}var F_e=g(()=>{i(Jo,"toDebugString")});var Lx=g(()=>{M_e();F_e()});var ro,G6=g(()=>{ro={}});var H6,U_e=g(()=>{H6=i((t,e)=>t===e,"booleanEquals")});function z6(...t){for(let e of t)if(e!=null)return e}var q_e=g(()=>{i(z6,"coalesce")});var $_e,G_e=g(()=>{Wo();$_e=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 it(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new it(`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 Mx,H_e=g(()=>{Wo();G_e();Mx=i((t,e)=>$_e(e).reduce((r,n)=>{if(typeof r!="object")throw new it(`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 V6,z_e=g(()=>{V6=i(t=>t!=null,"isSet")});function W6(t,e,r){return t?e:r}var V_e=g(()=>{i(W6,"ite")});var J6,W_e=g(()=>{J6=i(t=>!t,"not")});var Qkt,Du,Y6=g(()=>{Qkt=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}$"),Du=i(t=>Qkt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var FD,j6,K6,J_e=g(()=>{FD=R(Kn());Y6();j6={[FD.EndpointURLScheme.HTTP]:80,[FD.EndpointURLScheme.HTTPS]:443},K6=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:f,port:m,protocol:h="",path:A="",query:y={}}=t,E=new URL(`${h}//${f}${m?`:${m}`:""}${A}`);return E.search=Object.entries(y).map(([I,x])=>`${I}=${x}`).join("&"),E}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(FD.EndpointURLScheme).includes(l))return null;let u=Du(s),d=r.includes(`${n}:${j6[l]}`)||typeof t=="string"&&t.includes(`${n}:${j6[l]}`),p=`${n}${d?`:${j6[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function X6(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 Y_e=g(()=>{i(X6,"split")});var Z6,j_e=g(()=>{Z6=i((t,e)=>t===e,"stringEquals")});var e9,K_e=g(()=>{e9=i((t,e,r,n)=>t==null||e>=r||t.length{t9=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var r9=g(()=>{U_e();q_e();H_e();z_e();_e();V_e();W_e();J_e();Y_e();j_e();K_e();X_e()});var Z_e,eve=g(()=>{r9();Z_e={booleanEquals:H6,coalesce:z6,getAttr:Mx,isSet:V6,isValidHostLabel:xa,ite:W6,not:J6,parseURL:K6,split:X6,stringEquals:Z6,substring:e9,uriEncode:t9}});var UD,n9=g(()=>{r9();UD=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{tve=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var ku,qD,nve,Ky=g(()=>{Wo();G6();eve();n9();rve();ku=i((t,e,r)=>{if(typeof t=="string")return UD(t,r);if(t.fn)return nve.callFunction(t,r);if(t.ref)return tve(t,r);throw new it(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),qD=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{Ky()});var $D,s9=g(()=>{Lx();Wo();sve();$D=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new it(`'${r}' is already defined in Reference Record.`);let n=qD(t,e);e.logger?.debug?.(`${ml} evaluateCondition: ${Jo(t)} = ${Jo(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var GD,o9=g(()=>{Wo();Ky();GD=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=ku(o,"Header value entry",e);if(typeof a!="string")throw new it(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var Fx,ove,ive,i9=g(()=>{Wo();n9();Fx=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=ive.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),ove=i((t,e)=>{if(Array.isArray(t))return t.map(r=>ove(r,e));switch(typeof t){case"string":return UD(t,e);case"object":if(t===null)throw new it(`Unexpected endpoint property: ${t}`);return ive.getEndpointProperties(t,e);case"boolean":return t;default:throw new it(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),ive={getEndpointProperty:ove,getEndpointProperties:Fx}});var HD,a9=g(()=>{Wo();Ky();HD=i((t,e)=>{let r=ku(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 it(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var c9,hl,ave=g(()=>{Wo();s9();Ky();o9();i9();a9();c9=1e8,hl=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===y.result?p:f}if(a>=c9){let u=s[a-c9];if(u[0]===-1){let[,m]=u;throw new it(ku(m,"Error",l))}let[d,p,f]=u;return{url:HD(d,l),properties:Fx(p,l),headers:GD(f??{},l)}}throw new it("No matching endpoint.")},"decideEndpoint")});var Xy,zD=g(()=>{Lx();s9();Xy=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=$D(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${ml} assign: ${c.name} := ${Jo(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var cve,lve=g(()=>{Lx();zD();o9();i9();a9();cve=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=Xy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${ml} Resolving endpoint from template: ${Jo(n)}`);let d={url:HD(c,a)};return u!=null&&(d.headers=GD(u,a)),l!=null&&(d.properties=Fx(l,a)),d},"evaluateEndpointRule")});var uve,dve=g(()=>{Wo();zD();Ky();uve=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=Xy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new it(ku(n,"Error",a))},"evaluateErrorRule")});var VD,pve,l9,fve=g(()=>{Wo();zD();lve();dve();VD=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=cve(r,e);if(n)return n}else if(r.type==="error")uve(r,e);else if(r.type==="tree"){let n=l9.evaluateTreeRule(r,e);if(n)return n}else throw new it(`Unknown endpoint rule: ${r}`);throw new it("Rules evaluation failed")},"evaluateRules"),pve=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=Xy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return l9.evaluateRules(n,a)},"evaluateTreeRule"),l9={evaluateRules:VD,evaluateTreeRule:pve}});var mve=g(()=>{fve()});var Ux,hve=g(()=>{_e();Lx();Wo();mve();Ux=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${ml} Initial EndpointParams: ${Jo(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 it(`Missing required parameter: '${c}'`)}let a=VD(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${ml} Resolved endpoint: ${Jo(a)}`),a},"resolveEndpoint")});var Ave,gve=g(()=>{Ave=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 u9={};cr(u9,{BinaryDecisionDiagram:()=>Fi,EndpointCache:()=>Ui,EndpointError:()=>it,customEndpointFunctions:()=>ro,decideEndpoint:()=>hl,endpointMiddleware:()=>kkt,endpointMiddlewareOptions:()=>q6,getEndpointFromInstructions:()=>Dkt,getEndpointPlugin:()=>Lu,isIpAddress:()=>Du,isValidHostLabel:()=>xa,middlewareEndpointToEndpointV1:()=>$o,resolveEndpoint:()=>Ux,resolveEndpointConfig:()=>Ou,resolveEndpointRequiredConfig:()=>Ave,resolveParams:()=>Ox,toEndpointV1:()=>$o});var Dkt,Ou,kkt,Lu,Dt=g(()=>{b_e();LD();U6();$6();D_e();_e();k_e();O_e();ave();Y6();_e();G6();hve();Wo();LD();kD();$6();gve();Dkt=OD(kx),Ou=Q_e(kx),kkt=MD(kx),Lu=v_e(kx)});var WD,d9=g(()=>{Dt();WD=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>$o(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 yve(t,e,r){return{applyToStack:i(n=>{n.add(hD(t,r),p9),n.add(WD(t,e),f9)},"applyToStack")}}var p9,f9,Eve=g(()=>{h6();d9();p9={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},f9={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(yve,"getSerdePlugin")});function Cve(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?op(t,e):ArrayBuffer.isView(t)?Ra(t.buffer,t.byteOffset,t.byteLength):Ra(t)}var YD,JD,Ive=g(()=>{YD=require("node:crypto");ip();f6();JD=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(xs(Cve(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,YD.createHmac)(this.algorithmIdentifier,Cve(this.secret)):(0,YD.createHash)(this.algorithmIdentifier)}};i(Cve,"castSourceData")});var Sve,Zy,m9=g(()=>{Sve=require("node:stream");t6();Zy=class extends Sve.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??Qt,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 en,dp,Na=g(()=>{en=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),dp=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var wve,xve=g(()=>{wve=i(t=>new TextEncoder().encode(t),"fromUtf8")});var bve,V3r,Bve,jD,h9,Rve,Nve=g(()=>{bve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V3r=Object.entries(bve).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),Bve=bve.split(""),jD=6,h9=8,Rve=63});function KD(t){let e;typeof t=="string"?e=wve(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 A9=g(()=>{xve();Nve();i(KD,"toBase64")});var Okt,XD,Tve=g(()=>{Okt=typeof ReadableStream=="function"?ReadableStream:function(){},XD=class extends Okt{static{i(this,"ChecksumStream")}}});var Pve,_ve=g(()=>{A9();Na();Tve();Pve=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!en(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??KD;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,XD.prototype),c},"createChecksumStream")});function vve(t){return typeof ReadableStream=="function"&&en(t.source)?Pve(t):new Zy(t)}var Qve=g(()=>{Na();m9();_ve();i(vve,"createChecksumStream")});var nh,g9=g(()=>{nh=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=sh(a,c);Mu(m)>0&&u.enqueue(m)}u.close()}else{let m=E9(f,!1);if(c!==m&&(c>=0&&u.enqueue(sh(a,c)),c=m),c===-1){u.enqueue(f);return}let h=Mu(f);o+=h;let A=Mu(a[c]);if(h>=e&&A===0)u.enqueue(f);else{let y=y9(a,c,f);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${e}, automatically buffering.`)),y>=e?u.enqueue(sh(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function y9(t,e,r){switch(e){case 0:return t[0]+=r,Mu(t[0]);case 1:case 2:return t[e].push(r),Mu(t[e])}}function sh(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 Mu(t){return t?.byteLength??t?.length??0}function E9(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var kve=g(()=>{g9();i(Dve,"createBufferedReadableStream");i(y9,"merge");i(sh,"flush");i(Mu,"sizeOf");i(E9,"modeOf")});function Lve(t,e,r){if(en(t))return Dve(t,e,r);let n=new Ove.Readable({read(){}}),s=!1,o=0,a=["",new nh(l=>new Uint8Array(l)),new nh(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=E9(l,!0);if(c!==u&&(c>=0&&n.push(sh(a,c)),c=u),c===-1){n.push(l);return}let d=Mu(l);o+=d;let p=Mu(a[c]);if(d>=e&&p===0)n.push(l);else{let f=y9(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(sh(a,c))}}),t.on("end",()=>{if(c!==-1){let l=sh(a,c);Mu(l)>0&&n.push(l)}n.push(null)}),n}var Ove,Mve=g(()=>{Ove=require("node:stream");g9();kve();Na();i(Lve,"createBufferedReadable")});var Fve,Uve=g(()=>{Fve=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 +`),"stackTraceWarning"),Uy={warn:console.warn}});function Ho(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`${jDt[n]}, ${l} ${c6[r]} ${e} ${u}:${d}:${p} GMT`}var jDt,c6,KDt,UTe,XDt,Gy,ZDt,ekt,tkt,lp,Hy,Tx,rkt,nkt,skt,a6,okt,ikt,akt,il,ckt,lkt,$y,qTe=g(()=>{i6();jDt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Ho,"dateToUtcString");KDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),UTe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=KDt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=cp($y(n)),p=il(s,"month",1,12),f=il(o,"day",1,31);return Tx(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),XDt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Gy=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=XDt.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=cp($y(n)),f=il(s,"month",1,12),m=il(o,"day",1,31),h=Tx(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-lkt(d)),h},"parseRfc3339DateTimeWithOffset"),ZDt=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$/),ekt=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$/),tkt=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})$/),lp=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=ZDt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Tx(cp($y(o)),a6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=ekt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return skt(Tx(rkt(o),a6(s),il(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=tkt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Tx(cp($y(u)),a6(n),il(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Hy=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Nx(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"),Tx=i((t,e,r,n)=>{let s=e-1;return ikt(t,s,r),new Date(Date.UTC(t,s,r,il(n.hours,"hour",0,23),il(n.minutes,"minute",0,59),il(n.seconds,"seconds",0,60),ckt(n.fractionalMilliseconds)))},"buildDate"),rkt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+cp($y(t));return rt.getTime()-new Date().getTime()>nkt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),a6=i(t=>{let e=c6.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),okt=[31,28,31,30,31,30,31,31,30,31,30,31],ikt=i((t,e,r)=>{let n=okt[e];if(e===1&&akt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${c6[e]} in ${t}: ${r}`)},"validateDayOfMonth"),akt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),il=i((t,e,r,n)=>{let s=lD($y(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),ckt=i(t=>t==null?0:aD("0."+t)*1e3,"parseMilliseconds"),lkt=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"),$y=i(t=>{let e=0;for(;e{Ur=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Ur.from=t=>t&&typeof t=="object"&&(t instanceof Ur||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Ur(String(t)):Ur(JSON.stringify(t));Ur.fromObject=Ur.from});function uD(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var GTe=g(()=>{i(uD,"quoteHeader")});function Du(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var l6,u6,d6,HTe,zTe,ukt,dkt,pkt,fkt,mkt,up,dD,pD,VTe=g(()=>{l6="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",u6="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",d6="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",HTe="(\\d?\\d)",zTe="(\\d{4})",ukt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dkt=new RegExp(`^${l6}, ${HTe} ${u6} ${zTe} ${d6} GMT$`),pkt=new RegExp(`^${l6}, ${HTe}-${u6}-(\\d\\d) ${d6} GMT$`),fkt=new RegExp(`^${l6} ${u6} ( [1-9]|\\d\\d) ${d6} ${zTe}$`),mkt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],up=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"),dD=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=ukt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Du(n,1,12),Du(s,1,31),Du(o,0,23),Du(a,0,59),Du(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],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),pD=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=dkt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=pkt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=fkt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),mkt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Du(e,1,31),Du(s,0,23),Du(o,0,59),Du(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(Du,"range")});function fD(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(fD,"splitEvery")});var zy,JTe=g(()=>{zy=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 mD(t){return new je(String(t),"bigDecimal")}var YTe,je,jTe=g(()=>{YTe=/^-?((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,!YTe.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"&&YTe.test(r.string)}};i(mD,"nv")});function hD(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{KTe={},p6={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),KTe[t]=e,p6[e]=t}i(hD,"fromHex");i(Li,"toHex")});var Vy,al,XTe=g(()=>{Vy=require("node:fs"),al=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 Vy.ReadStream){if(t.path!=null)return(0,Vy.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Vy.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var xs,m6=g(()=>{eD();xs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Zr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function cl(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 Px=g(()=>{i(cl,"concatBytes")});var AD,h6,A6=g(()=>{_e();AD=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(fn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:h6(/^x-[\w-]+-request-?id$/,u),extendedRequestId:h6(/^x-[\w-]+-id-2$/,u),cfId:h6(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),h6=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var zo,_x=g(()=>{zo=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 dp,gD=g(()=>{_x();dp=class t extends zo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var yD,ZTe=g(()=>{_x();yD=class t extends zo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var ED,g6=g(()=>{_x();ED=i((...t)=>async()=>{if(t.length===0)throw new zo("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 CD,y6=g(()=>{CD=i(t=>()=>Promise.resolve(t),"fromValue")});var Wy,ID=g(()=>{Wy=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 mn,SD=g(()=>{mn=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 ePe,tPe=g(()=>{ePe=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 qr,wD=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(qr||(qr={}))});var rPe,nPe,E6,hkt,ll,Jy=g(()=>{rPe=require("node:os"),nPe=require("node:path"),E6={},hkt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),ll=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${nPe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=hkt();return E6[s]||(E6[s]=(0,rPe.homedir)()),E6[s]},"getHomeDir")});var C6,I6,xD,S6=g(()=>{C6="AWS_PROFILE",I6="default",xD=i(t=>t.profile||process.env[C6]||I6,"getProfileName")});var sPe,oPe,bD,w6=g(()=>{sPe=require("node:crypto"),oPe=require("node:path");Jy();bD=i(t=>{let r=(0,sPe.createHash)("sha1").update(t).digest("hex");return(0,oPe.join)(ll(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var iPe,vx,aPe,x6=g(()=>{iPe=require("node:fs/promises");w6();vx={},aPe=i(async t=>{if(vx[t])return vx[t];let e=bD(t),r=await(0,iPe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var ul,cPe=g(()=>{ul="."});var b6,lPe,uPe=g(()=>{b6=R(Kn()),lPe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(b6.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===b6.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var dPe,Akt,BD,B6=g(()=>{dPe=require("node:path");Jy();Akt="AWS_CONFIG_FILE",BD=i(()=>process.env[Akt]||(0,dPe.join)(ll(),".aws","config"),"getConfigFilepath")});var pPe,gkt,fPe,mPe=g(()=>{pPe=require("node:path");Jy();gkt="AWS_SHARED_CREDENTIALS_FILE",fPe=i(()=>process.env[gkt]||(0,pPe.join)(ll(),".aws","credentials"),"getCredentialsFilepath")});var hPe,ykt,Ekt,Qx,R6=g(()=>{hPe=R(Kn()),ykt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Ekt=["__proto__","profile __proto__"],Qx=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=ykt.exec(c);if(l){let[,u,,d]=l;Object.values(hPe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(Ekt.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 APe,N6,Dx,nh,kx=g(()=>{APe=require("node:fs/promises"),N6={},Dx={},nh=i((t,e)=>Dx[t]!==void 0?Dx[t]:((!N6[t]||e?.ignoreCache)&&(N6[t]=(0,APe.readFile)(t,"utf8")),N6[t]),"readFile")});var T6,gPe,Yy,RD=g(()=>{T6=require("node:path");uPe();B6();mPe();Jy();R6();kx();gPe=i(()=>({}),"swallowError"),Yy=i(async(t={})=>{let{filepath:e=fPe(),configFilepath:r=BD()}=t,n=ll(),s="~/",o=e;e.startsWith(s)&&(o=(0,T6.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,T6.join)(n,r.slice(2)));let c=await Promise.all([nh(a,{ignoreCache:t.ignoreCache}).then(Qx).then(lPe).catch(gPe),nh(o,{ignoreCache:t.ignoreCache}).then(Qx).catch(gPe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var yPe,EPe,CPe=g(()=>{yPe=R(Kn()),EPe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(yPe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var Ckt,IPe,SPe=g(()=>{B6();CPe();R6();kx();Ckt=i(()=>({}),"swallowError"),IPe=i(async(t={})=>nh(t.configFilepath??BD()).then(Qx).then(EPe).catch(Ckt),"loadSsoSessionData")});var wPe,xPe=g(()=>{wPe=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 bPe,BPe=g(()=>{RD();xPe();bPe=i(async t=>{let e=await Yy(t);return wPe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var RPe,NPe=g(()=>{x6();kx();RPe={getFileRecord(){return Dx},interceptFile(t,e){Dx[t]=Promise.resolve(e)},getTokenRecord(){return vx},interceptToken(t,e){vx[t]=e}}});function ND(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 P6=g(()=>{i(ND,"getSelectorName")});var TPe,PPe=g(()=>{gD();P6();TPe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new dp(r.message||`Not found in ENV: ${ND(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var _Pe,vPe=g(()=>{gD();S6();RD();P6();_Pe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=xD(r),{configFile:s,credentialsFile:o}=await Yy(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 dp(u.message||`Not found in config files w/ profile [${n}]: ${ND(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var Ikt,TD,_6=g(()=>{y6();Ikt=i(t=>typeof t=="function","isFunction"),TD=i(t=>Ikt(t)?async()=>await t():CD(t),"fromStatic")});var ve,v6=g(()=>{g6();ID();PPe();vPe();_6();ve=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return Wy(ED(TPe(t,{signingName:s,logger:o}),_Pe(e,n),TD(r)))},"loadConfig")});var PD,_D,QPe,dl,DPe,kPe=g(()=>{SD();wD();PD="AWS_USE_DUALSTACK_ENDPOINT",_D="use_dualstack_endpoint",QPe=!1,dl={environmentVariableSelector:i(t=>mn(t,PD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,_D,qr.CONFIG),"configFileSelector"),default:!1},DPe={environmentVariableSelector:i(t=>mn(t,PD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,_D,qr.CONFIG),"configFileSelector"),default:void 0}});var vD,QD,OPe,pl,LPe,MPe=g(()=>{SD();wD();vD="AWS_USE_FIPS_ENDPOINT",QD="use_fips_endpoint",OPe=!1,pl={environmentVariableSelector:i(t=>mn(t,vD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,QD,qr.CONFIG),"configFileSelector"),default:!1},LPe={environmentVariableSelector:i(t=>mn(t,vD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,QD,qr.CONFIG),"configFileSelector"),default:void 0}});var FPe,UPe=g(()=>{we();FPe=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:xt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:xt(s??!1)})},"resolveCustomEndpointsConfig")});var qPe,$Pe=g(()=>{qPe=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 GPe,HPe=g(()=>{we();$Pe();GPe=i(t=>{let e=xt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?xt(typeof r=="string"?s(r):r):()=>qPe({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var zPe,Q6,D6,VPe,WPe,JPe,YPe,jPe,KPe,k6=g(()=>{zPe="AWS_EXECUTION_ENV",Q6="AWS_REGION",D6="AWS_DEFAULT_REGION",VPe="AWS_EC2_METADATA_DISABLED",WPe=["in-region","cross-region","mobile","standard","legacy"],JPe="/latest/meta-data/placement/region",YPe="/latest/api/token",jPe="x-aws-ec2-metadata-token",KPe="x-aws-ec2-metadata-token-ttl-seconds"});var XPe,Skt,t_e,DD,ZPe,wkt,e_e,O6=g(()=>{k6();XPe=1e3,Skt=6e4,t_e=0,DD=i(async()=>{if(!process.env[VPe]&&!(Date.now(){t_e=Date.now()+Skt},"cacheNegativeAndReturnUndefined"),wkt=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"),e_e=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:XPe,signal:AbortSignal.timeout(XPe)});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 jy,Ky,Qn,bs,L6=g(()=>{O6();jy="AWS_REGION",Ky="region",Qn={environmentVariableSelector:i(t=>t[jy],"environmentVariableSelector"),configFileSelector:i(t=>t[Ky],"configFileSelector"),default:i(async()=>{let t=await DD();if(t)return t;throw new Error("Region is missing")},"default")},bs={preferredFile:"credentials"}});var r_e,n_e,s_e=g(()=>{_e();r_e=new Set,n_e=i((t,e=xa)=>{if(!r_e.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 r_e.add(t)},"checkRegion")});var kD,M6=g(()=>{kD=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var o_e,i_e=g(()=>{M6();o_e=i(t=>kD(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var Vo,a_e=g(()=>{s_e();i_e();M6();Vo=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=o_e(n);return n_e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return kD(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var F6,c_e=g(()=>{F6=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var l_e,u_e=g(()=>{l_e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var d_e,p_e=g(()=>{d_e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var f_e,m_e=g(()=>{f_e=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 h_e,A_e=g(()=>{c_e();u_e();p_e();m_e();h_e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=d_e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=F6(s[c]?.variants,l),d=F6(o[a]?.variants,l),p=l_e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=f_e(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 xkt,bkt,g_e,y_e=g(()=>{xkt="AWS_DEFAULTS_MODE",bkt="defaults_mode",g_e={environmentVariableSelector:i(t=>t[xkt],"environmentVariableSelector"),configFileSelector:i(t=>t[bkt],"configFileSelector"),default:"legacy"}});var fl,Bkt,Rkt,E_e=g(()=>{L6();O6();v6();ID();k6();y_e();fl=i(({region:t=ve(Qn),defaultsMode:e=ve(g_e)}={})=>Wy(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return Bkt(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 ${WPe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),Bkt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await Rkt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Rkt=i(async()=>process.env[zPe]&&(process.env[Q6]||process.env[D6])?process.env[Q6]??process.env[D6]:DD(),"inferPhysicalRegion")});var Mi={};cr(Mi,{CONFIG_PREFIX_SEPARATOR:()=>ul,CONFIG_USE_DUALSTACK_ENDPOINT:()=>_D,CONFIG_USE_FIPS_ENDPOINT:()=>QD,CredentialsProviderError:()=>dp,DEFAULT_PROFILE:()=>I6,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>QPe,DEFAULT_USE_FIPS_ENDPOINT:()=>OPe,ENV_PROFILE:()=>C6,ENV_USE_DUALSTACK_ENDPOINT:()=>PD,ENV_USE_FIPS_ENDPOINT:()=>vD,NODE_REGION_CONFIG_FILE_OPTIONS:()=>bs,NODE_REGION_CONFIG_OPTIONS:()=>Qn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>dl,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>pl,ProviderError:()=>zo,REGION_ENV_NAME:()=>jy,REGION_INI_NAME:()=>Ky,SelectorType:()=>qr,TokenProviderError:()=>yD,booleanSelector:()=>mn,chain:()=>ED,externalDataInterceptor:()=>RPe,fromStatic:()=>TD,fromValue:()=>CD,getHomeDir:()=>ll,getProfileName:()=>xD,getRegionInfo:()=>h_e,getSSOTokenFilepath:()=>bD,getSSOTokenFromFile:()=>aPe,loadConfig:()=>ve,loadSharedConfigFiles:()=>Yy,loadSsoSessionData:()=>IPe,memoize:()=>Wy,nodeDualstackConfigSelectors:()=>DPe,nodeFipsConfigSelectors:()=>LPe,numberSelector:()=>ePe,parseKnownFiles:()=>bPe,readFile:()=>nh,resolveCustomEndpointsConfig:()=>FPe,resolveDefaultsModeConfig:()=>fl,resolveEndpointsConfig:()=>GPe,resolveRegionConfig:()=>Vo});var bt=g(()=>{_x();gD();ZTe();g6();y6();ID();SD();tPe();wD();Jy();S6();w6();x6();cPe();RD();SPe();BPe();NPe();kx();v6();_6();kPe();MPe();UPe();HPe();L6();a_e();A_e();E_e()});var C_e,I_e,S_e,w_e=g(()=>{C_e="AWS_ENDPOINT_URL",I_e="endpoint_url",S_e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[C_e,...r].join("_")];if(n)return n;let s=e[C_e];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("_"),I_e].join(".")];if(c)return c}let n=e[I_e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Nkt,Tkt,x_e,b_e=g(()=>{bt();Nkt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Tkt="ignore_configured_endpoint_urls",x_e={environmentVariableSelector:i(t=>mn(t,Nkt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,Tkt,qr.CONFIG),"configFileSelector"),default:!1}});var Ox,B_e=g(()=>{bt();w_e();b_e();Ox=i(async t=>{if(!await ve(x_e)())return ve(S_e(t??""))()},"getEndpointFromConfig")});var U6,Pkt,_kt,vkt,R_e,N_e,T_e=g(()=>{U6=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),N_e(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!R_e(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"),Pkt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,_kt=/(\d+\.){3}\d+/,vkt=/\.\./,R_e=i(t=>Pkt.test(t)&&!_kt.test(t)&&!vkt.test(t),"isDnsCompatibleBucketName"),N_e=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 P_e=g(()=>{T_e()});var __e,v_e=g(()=>{__e=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 OD=g(()=>{_e()});function LD(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($o(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await Lx(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 Lx,MD=g(()=>{P_e();v_e();OD();i(LD,"bindGetEndpointFromInstructions");Lx=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 __e(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 U6(n),n},"resolveParams")});function Qkt(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 FD(t){let e=LD(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&Qkt(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=vt(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 q6=g(()=>{_e();MD();i(Qkt,"setFeature");i(FD,"bindEndpointMiddleware")});function Q_e(t){let e=FD(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),$6)},"applyToStack")})}var Dkt,$6,G6=g(()=>{q6();Dkt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},$6={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dkt.name};i(Q_e,"bindGetEndpointPlugin")});function D_e(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>$o(await xt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:xt(s??!1),useFipsEndpoint:xt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var k_e=g(()=>{_e();OD();i(D_e,"bindResolveEndpointConfig")});var Fi,O_e=g(()=>{Fi=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 Ui,L_e=g(()=>{Ui=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 it,M_e=g(()=>{it=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Wo=g(()=>{M_e()});var ml,F_e=g(()=>{ml="endpoints"});function Jo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Jo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Jo).join(", ")})`:JSON.stringify(t,null,2)}var U_e=g(()=>{i(Jo,"toDebugString")});var Mx=g(()=>{F_e();U_e()});var ro,H6=g(()=>{ro={}});var z6,q_e=g(()=>{z6=i((t,e)=>t===e,"booleanEquals")});function V6(...t){for(let e of t)if(e!=null)return e}var $_e=g(()=>{i(V6,"coalesce")});var G_e,H_e=g(()=>{Wo();G_e=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 it(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new it(`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 Fx,z_e=g(()=>{Wo();H_e();Fx=i((t,e)=>G_e(e).reduce((r,n)=>{if(typeof r!="object")throw new it(`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 W6,V_e=g(()=>{W6=i(t=>t!=null,"isSet")});function J6(t,e,r){return t?e:r}var W_e=g(()=>{i(J6,"ite")});var Y6,J_e=g(()=>{Y6=i(t=>!t,"not")});var kkt,ku,j6=g(()=>{kkt=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}$"),ku=i(t=>kkt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var UD,K6,X6,Y_e=g(()=>{UD=R(Kn());j6();K6={[UD.EndpointURLScheme.HTTP]:80,[UD.EndpointURLScheme.HTTPS]:443},X6=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:f,port:m,protocol:h="",path:A="",query:y={}}=t,E=new URL(`${h}//${f}${m?`:${m}`:""}${A}`);return E.search=Object.entries(y).map(([I,x])=>`${I}=${x}`).join("&"),E}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(UD.EndpointURLScheme).includes(l))return null;let u=ku(s),d=r.includes(`${n}:${K6[l]}`)||typeof t=="string"&&t.includes(`${n}:${K6[l]}`),p=`${n}${d?`:${K6[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function Z6(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 j_e=g(()=>{i(Z6,"split")});var e9,K_e=g(()=>{e9=i((t,e)=>t===e,"stringEquals")});var t9,X_e=g(()=>{t9=i((t,e,r,n)=>t==null||e>=r||t.length{r9=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var n9=g(()=>{q_e();$_e();z_e();V_e();_e();W_e();J_e();Y_e();j_e();K_e();X_e();Z_e()});var eve,tve=g(()=>{n9();eve={booleanEquals:z6,coalesce:V6,getAttr:Fx,isSet:W6,isValidHostLabel:xa,ite:J6,not:Y6,parseURL:X6,split:Z6,stringEquals:e9,substring:t9,uriEncode:r9}});var qD,s9=g(()=>{n9();qD=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o{rve=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var Ou,$D,sve,Xy=g(()=>{Wo();H6();tve();s9();nve();Ou=i((t,e,r)=>{if(typeof t=="string")return qD(t,r);if(t.fn)return sve.callFunction(t,r);if(t.ref)return rve(t,r);throw new it(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),$D=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a{Xy()});var GD,o9=g(()=>{Mx();Wo();ove();GD=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new it(`'${r}' is already defined in Reference Record.`);let n=$D(t,e);e.logger?.debug?.(`${ml} evaluateCondition: ${Jo(t)} = ${Jo(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var HD,i9=g(()=>{Wo();Xy();HD=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=Ou(o,"Header value entry",e);if(typeof a!="string")throw new it(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var Ux,ive,ave,a9=g(()=>{Wo();s9();Ux=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=ave.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),ive=i((t,e)=>{if(Array.isArray(t))return t.map(r=>ive(r,e));switch(typeof t){case"string":return qD(t,e);case"object":if(t===null)throw new it(`Unexpected endpoint property: ${t}`);return ave.getEndpointProperties(t,e);case"boolean":return t;default:throw new it(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),ave={getEndpointProperty:ive,getEndpointProperties:Ux}});var zD,c9=g(()=>{Wo();Xy();zD=i((t,e)=>{let r=Ou(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 it(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var l9,hl,cve=g(()=>{Wo();o9();Xy();i9();a9();c9();l9=1e8,hl=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===y.result?p:f}if(a>=l9){let u=s[a-l9];if(u[0]===-1){let[,m]=u;throw new it(Ou(m,"Error",l))}let[d,p,f]=u;return{url:zD(d,l),properties:Ux(p,l),headers:HD(f??{},l)}}throw new it("No matching endpoint.")},"decideEndpoint")});var Zy,VD=g(()=>{Mx();o9();Zy=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=GD(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${ml} assign: ${c.name} := ${Jo(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var lve,uve=g(()=>{Mx();VD();i9();a9();c9();lve=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=Zy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${ml} Resolving endpoint from template: ${Jo(n)}`);let d={url:zD(c,a)};return u!=null&&(d.headers=HD(u,a)),l!=null&&(d.properties=Ux(l,a)),d},"evaluateEndpointRule")});var dve,pve=g(()=>{Wo();VD();Xy();dve=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=Zy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new it(Ou(n,"Error",a))},"evaluateErrorRule")});var WD,fve,u9,mve=g(()=>{Wo();VD();uve();pve();WD=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=lve(r,e);if(n)return n}else if(r.type==="error")dve(r,e);else if(r.type==="tree"){let n=u9.evaluateTreeRule(r,e);if(n)return n}else throw new it(`Unknown endpoint rule: ${r}`);throw new it("Rules evaluation failed")},"evaluateRules"),fve=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=Zy(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return u9.evaluateRules(n,a)},"evaluateTreeRule"),u9={evaluateRules:WD,evaluateTreeRule:fve}});var hve=g(()=>{mve()});var qx,Ave=g(()=>{_e();Mx();Wo();hve();qx=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${ml} Initial EndpointParams: ${Jo(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 it(`Missing required parameter: '${c}'`)}let a=WD(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${ml} Resolved endpoint: ${Jo(a)}`),a},"resolveEndpoint")});var gve,yve=g(()=>{gve=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 d9={};cr(d9,{BinaryDecisionDiagram:()=>Fi,EndpointCache:()=>Ui,EndpointError:()=>it,customEndpointFunctions:()=>ro,decideEndpoint:()=>hl,endpointMiddleware:()=>Lkt,endpointMiddlewareOptions:()=>$6,getEndpointFromInstructions:()=>Okt,getEndpointPlugin:()=>Mu,isIpAddress:()=>ku,isValidHostLabel:()=>xa,middlewareEndpointToEndpointV1:()=>$o,resolveEndpoint:()=>qx,resolveEndpointConfig:()=>Lu,resolveEndpointRequiredConfig:()=>gve,resolveParams:()=>Lx,toEndpointV1:()=>$o});var Okt,Lu,Lkt,Mu,Dt=g(()=>{B_e();MD();q6();G6();k_e();_e();O_e();L_e();cve();j6();_e();H6();Ave();Wo();MD();OD();G6();yve();Okt=LD(Ox),Lu=D_e(Ox),Lkt=FD(Ox),Mu=Q_e(Ox)});var JD,p9=g(()=>{Dt();JD=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>$o(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 Eve(t,e,r){return{applyToStack:i(n=>{n.add(AD(t,r),f9),n.add(JD(t,e),m9)},"applyToStack")}}var f9,m9,Cve=g(()=>{A6();p9();f9={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},m9={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Eve,"getSerdePlugin")});function Ive(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ip(t,e):ArrayBuffer.isView(t)?Ra(t.buffer,t.byteOffset,t.byteLength):Ra(t)}var jD,YD,Sve=g(()=>{jD=require("node:crypto");ap();m6();YD=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(xs(Ive(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,jD.createHmac)(this.algorithmIdentifier,Ive(this.secret)):(0,jD.createHash)(this.algorithmIdentifier)}};i(Ive,"castSourceData")});var wve,eE,h9=g(()=>{wve=require("node:stream");r6();eE=class extends wve.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??Qt,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 en,pp,Na=g(()=>{en=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),pp=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var xve,bve=g(()=>{xve=i(t=>new TextEncoder().encode(t),"fromUtf8")});var Bve,K3r,Rve,KD,A9,Nve,Tve=g(()=>{Bve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K3r=Object.entries(Bve).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),Rve=Bve.split(""),KD=6,A9=8,Nve=63});function XD(t){let e;typeof t=="string"?e=xve(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 g9=g(()=>{bve();Tve();i(XD,"toBase64")});var Mkt,ZD,Pve=g(()=>{Mkt=typeof ReadableStream=="function"?ReadableStream:function(){},ZD=class extends Mkt{static{i(this,"ChecksumStream")}}});var _ve,vve=g(()=>{g9();Na();Pve();_ve=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!en(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??XD;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,ZD.prototype),c},"createChecksumStream")});function Qve(t){return typeof ReadableStream=="function"&&en(t.source)?_ve(t):new eE(t)}var Dve=g(()=>{Na();h9();vve();i(Qve,"createChecksumStream")});var sh,y9=g(()=>{sh=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=oh(a,c);Fu(m)>0&&u.enqueue(m)}u.close()}else{let m=C9(f,!1);if(c!==m&&(c>=0&&u.enqueue(oh(a,c)),c=m),c===-1){u.enqueue(f);return}let h=Fu(f);o+=h;let A=Fu(a[c]);if(h>=e&&A===0)u.enqueue(f);else{let y=E9(a,c,f);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${e}, automatically buffering.`)),y>=e?u.enqueue(oh(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function E9(t,e,r){switch(e){case 0:return t[0]+=r,Fu(t[0]);case 1:case 2:return t[e].push(r),Fu(t[e])}}function oh(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 Fu(t){return t?.byteLength??t?.length??0}function C9(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var Ove=g(()=>{y9();i(kve,"createBufferedReadableStream");i(E9,"merge");i(oh,"flush");i(Fu,"sizeOf");i(C9,"modeOf")});function Mve(t,e,r){if(en(t))return kve(t,e,r);let n=new Lve.Readable({read(){}}),s=!1,o=0,a=["",new sh(l=>new Uint8Array(l)),new sh(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=C9(l,!0);if(c!==u&&(c>=0&&n.push(oh(a,c)),c=u),c===-1){n.push(l);return}let d=Fu(l);o+=d;let p=Fu(a[c]);if(d>=e&&p===0)n.push(l);else{let f=E9(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(oh(a,c))}}),t.on("end",()=>{if(c!==-1){let l=oh(a,c);Fu(l)>0&&n.push(l)}n.push(null)}),n}var Lve,Fve=g(()=>{Lve=require("node:stream");y9();Ove();Na();i(Mve,"createBufferedReadable")});var Uve,qve=g(()=>{Uve=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 $ve(t,e){let r=t,n=t;if(en(n))return Fve(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 qve.Readable({read(){r.resume()}});return r.on("data",f=>{let m=o(f)||0;m!==0&&(p.push(`${m.toString(16)}\r +`)}})},"getAwsChunkedEncodingStream")});function Gve(t,e){let r=t,n=t;if(en(n))return Uve(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 $ve.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(f){p.destroy(f)}}),p}var qve,Gve=g(()=>{qve=require("node:stream");Uve();Na();i($ve,"getAwsChunkedEncodingStream")});async function Hve(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 zve=g(()=>{i(Hve,"headStream")});var Vve,Wve,C9,Jve=g(()=>{Vve=require("node:stream");Tx();zve();Na();Wve=i((t,e)=>en(t)?Hve(t,e):new Promise((r,n)=>{let s=new C9;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=cl(this.buffers);r(o)})}),"headStream"),C9=class extends Vve.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 Yve,jve=g(()=>{Yve=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 I9(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function S9(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 cl(e,n)}var Kve,w9=g(()=>{Tx();Na();Kve=i(async t=>dp(t)?I9(t):S9(t),"streamCollector");i(I9,"collectBlob");i(S9,"collectReadableStream")});var Xve,eQe,Zve,tQe=g(()=>{A9();p6();jve();w9();Na();Xve="The stream has already been transformed.",eQe=i(t=>{if(!Zve(t)&&!en(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(Xve);return e=!0,await Kve(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 KD(o);if(s==="hex")return Li(o);if(s===void 0||s==="utf8"||s==="utf-8")return Yve(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(Xve);if(e=!0,Zve(t))return n(t);if(en(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),Zve=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var rQe,ZD,x9,b9=g(()=>{rQe=require("node:stream");Tx();w9();Na();ZD=i(t=>dp(t)?I9(t):en(t)?S9(t):new Promise((e,r)=>{let n=new x9,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=cl(this.bufferedBytes);e(o)})}),"streamCollector"),x9=class extends rQe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var ek,nQe,tk,sQe=g(()=>{ek=require("node:stream");ip();tQe();b9();nQe="The stream has already been transformed.",tk=i(t=>{if(!(t instanceof ek.Readable))try{return eQe(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(nQe);return e=!0,await ZD(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?Ra(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(nQe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof ek.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,ek.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function oQe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var iQe=g(()=>{i(oQe,"splitStream")});async function aQe(t){if(en(t)||dp(t))return oQe(t);let e=new B9.PassThrough,r=new B9.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var B9,cQe=g(()=>{B9=require("node:stream");iQe();Na();i(aQe,"splitStream")});function qi(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var lQe=g(()=>{i(qi,"writeKey")});var ih={};cr(ih,{ChecksumStream:()=>Zy,Hash:()=>JD,LazyJsonString:()=>Ur,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>oh,_parseEpochTimestamp:()=>lp,_parseRfc3339DateTimeWithOffset:()=>uD,_parseRfc7231DateTime:()=>dD,calculateBodyLength:()=>al,concatBytes:()=>cl,copyDocumentWithTransform:()=>bTe,createBufferedReadable:()=>Lve,createChecksumStream:()=>vve,dateToUtcString:()=>Ho,deserializerMiddleware:()=>hD,deserializerMiddlewareOption:()=>p9,expectBoolean:()=>NTe,expectByte:()=>nD,expectFloat32:()=>Bx,expectInt:()=>TTe,expectInt32:()=>tD,expectLong:()=>My,expectNonNull:()=>PTe,expectNumber:()=>Ly,expectObject:()=>n6,expectShort:()=>rD,expectString:()=>_Te,expectUnion:()=>oD,fromArrayBuffer:()=>Ra,fromBase64:()=>Er,fromHex:()=>mD,fromString:()=>op,fromUtf8:()=>Zr,generateIdempotencyToken:()=>Yo,getAwsChunkedEncodingStream:()=>$ve,getSerdePlugin:()=>yve,handleFloat:()=>QTe,hasOwn:()=>X,headStream:()=>Wve,isArrayBuffer:()=>XQ,isBlob:()=>dp,isReadableStream:()=>en,limitedParseDouble:()=>aD,limitedParseFloat:()=>DTe,limitedParseFloat32:()=>kTe,logger:()=>Fy,nv:()=>fD,parseBoolean:()=>RTe,parseEpochTimestamp:()=>Gy,parseRfc3339DateTime:()=>FTe,parseRfc3339DateTimeWithOffset:()=>$y,parseRfc7231DateTime:()=>cp,quoteHeader:()=>lD,sdkStreamMixin:()=>tk,serializerMiddleware:()=>WD,serializerMiddlewareOption:()=>f9,splitEvery:()=>pD,splitHeader:()=>Hy,splitStream:()=>aQe,streamCollector:()=>ZD,strictParseByte:()=>cD,strictParseDouble:()=>Rx,strictParseFloat:()=>vTe,strictParseFloat32:()=>iD,strictParseInt:()=>LTe,strictParseInt32:()=>MTe,strictParseLong:()=>s6,strictParseShort:()=>ap,toBase64:()=>Qt,toHex:()=>Li,toUint8Array:()=>xs,toUtf8:()=>qt,v4:()=>eE,writeKey:()=>qi});var uQe,oh,Lkt,eE,Yo,xe=g(()=>{uQe=require("node:crypto");ETe();t6();ITe();ZQ();STe();xTe();BTe();UTe();qTe();o6();$Te();zTe();VTe();WTe();YTe();p6();KTe();f6();Tx();ip();e6();h6();Eve();d9();Ive();m9();Qve();Mve();Gve();Jve();sQe();cQe();Na();b9();_e();lQe();oh=class extends CTe(qt,Zr,Qt,Er){static{i(this,"Uint8ArrayBlobAdapter")}},Lkt=uQe.getRandomValues,eE=wTe(Lkt),Yo=eE});var tn,tE=g(()=>{xe();tn=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return oh.mutate(t);if(!t)return oh.mutate(new Uint8Array);let r=e.streamCollector(t);return oh.mutate(await r)},"collectBody")});function Ta(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var rk=g(()=>{i(Ta,"extendedEncodeURIComponent")});var hn,rE=g(()=>{hn=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function nk(t,e,r=1024*1024){let n=t.size,s=0;for(;s{i(nk,"blobReader")});var dQe,pQe=g(()=>{R9();dQe=i(async function(e,r){let n=new e;return await nk(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var fQe,nE,N9=g(()=>{fQe=require("node:stream");xe();nE=class extends fQe.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(xs(e))}catch(s){return n(s)}n()}}});var mQe,hQe,Mkt,AQe=g(()=>{mQe=require("node:fs");N9();hQe=i((t,e)=>new Promise((r,n)=>{if(!Mkt(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,mQe.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new nE(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"),Mkt=i(t=>typeof t.path=="string","isReadStream")});var gQe,yQe=g(()=>{N9();gQe=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new nE(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 T9(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=Fkt[(a>>4)*4+(a&3)],f=(r+c&pp)+(u+Ukt[a]&pp)&pp;n=n+((f<>>32-p)>>>0)&pp,r=d}t[0]=t[0]+r&pp,t[1]=t[1]+n&pp,t[2]=t[2]+s&pp,t[3]=t[3]+o&pp}var sE,EQe,pp,Fkt,Ukt,P9=g(()=>{xe();sE=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(EQe);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=xs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(T9(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);T9(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),T9(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(EQe),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},EQe=[1732584193,4023233417,2562383102,271733878],pp=4294967295,Fkt=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Ukt=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(T9,"compress")});function $kt(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,sk.createHash)("md5");update(e){this.hash.update(xs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,sk.createHash)("md5")}}}var sk,qkt,_9,CQe=g(()=>{sk=require("node:crypto");xe();P9();qkt=(()=>{try{return(0,sk.createHash)("md5"),!0}catch{return!1}})(),_9=qkt?$kt():sE;i($kt,"buildNativeClass")});var IQe,v9,oE,Q9=g(()=>{IQe=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;IQe[t]=e>>>0}v9=4294967295,oE=class{static{i(this,"Crc32Js")}digestLength=4;checksum=v9;update(e){for(let r=0;r>>8^IQe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^v9)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=v9}}});function Gkt(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 D9,SQe,ah,wQe=g(()=>{D9=R(require("node:zlib"));Q9();SQe=typeof D9.crc32=="function"?D9.crc32:void 0,ah=SQe?Gkt(SQe):oE;i(Gkt,"buildNativeClass")});var Dn,xQe,Hkt,Fu,bQe,zkt,ok=g(()=>{xe();Dn=64,xQe=32,Hkt=2**53-1,Fu=class t{static{i(this,"Sha256Js")}digestLength=xQe;state=Int32Array.from(bQe);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(Dn*2);for(let a=0;aHkt)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===Dn&&(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(bQe),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)%Dn>=Dn-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=xs(e);if(r.byteLength>Dn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(Dn);return o.set(s),o}if(r.byteLength>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[f-15];let E=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[f]=(y+n[f-7]|0)+(E+n[f-16]|0)}let m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(p+(zkt[f]+n[f]|0)|0)|0,h=((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+h|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}},bQe=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zkt=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 Wkt(){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,qx.createHmac)("sha256",Jkt(this.secret)):(0,qx.createHash)("sha256")}}}function Jkt(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var qx,Vkt,Pa,BQe=g(()=>{qx=require("node:crypto");ok();Vkt=(()=>{try{return(0,qx.createHash)("sha256"),!0}catch{return!1}})(),Pa=Vkt?Wkt():Fu;i(Wkt,"buildNativeClass");i(Jkt,"toBuffer")});var Ykt,jkt,Kkt,ik,Xkt,ak,RQe=g(()=>{xe();ok();({digest:Ykt,sign:jkt,importKey:Kkt}=globalThis?.crypto?.subtle??{}),ik=typeof Ykt=="function"&&typeof jkt=="function"&&typeof Kkt=="function"?globalThis.crypto.subtle:void 0,Xkt=8*1024*1024,ak=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=xs(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>=Xkt&&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=cl(this.pending);if(ik){if(this.secret){this.finished=!0;let s=await ik.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await ik.sign("HMAC",s,e);return new Uint8Array(o)}let n=await ik.digest("SHA-256",e);return new Uint8Array(n)}let r=new Fu(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 Fu(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var k9={};cr(k9,{Crc32:()=>ah,Crc32Js:()=>oE,Crc32Node:()=>ah,Md5:()=>_9,Md5Js:()=>sE,Md5Node:()=>_9,Sha256:()=>Pa,Sha256Js:()=>Fu,Sha256Node:()=>Pa,Sha256WebCrypto:()=>ak,blobHasher:()=>dQe,blobReader:()=>nk,fileStreamHasher:()=>hQe,readableStreamHasher:()=>gQe});var Uu=g(()=>{pQe();AQe();yQe();P9();CQe();Q9();wQe();ok();BQe();RQe();R9()});function NQe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var fp,O9=g(()=>{xe();fp=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&&NQe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&NQe(e),parseInt(Li(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(NQe,"negate")});var iE,TQe,PQe,Zkt,eOt,tOt,rOt,nOt,sOt,oOt,iOt,aOt,ck,L9=g(()=>{_e();xe();O9();iE=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);if(a.byteLength>255)throw new Error(`@smithy/core/event-streams - header name exceeds 255 bytes: ${a.byteLength}`);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":if(e.value.byteLength>ck)throw new Error(`@smithy/core/event-streams - header value (binary) exceeds ${ck} bytes: ${e.value.byteLength}`);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);if(c.byteLength>ck)throw new Error(`@smithy/core/event-streams - header value (string) exceeds ${ck} bytes: ${c.byteLength}`);let 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(fp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!aOt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(mD(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{Uu();_Qe=4,mp=_Qe*2,ch=4,cOt=mp+ch*2;i(vQe,"splitMessage")});var aE,M9=g(()=>{Uu();L9();QQe();aE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new iE(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 ah;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}=vQe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var cE,F9=g(()=>{cE=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 lE,U9=g(()=>{lE=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 uE,q9=g(()=>{uE=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 dE,$9=g(()=>{dE=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 lk(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(lk,"getChunkedStream")});function DQe(t,e){let r=$x(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 $x(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 H9=g(()=>{i(DQe,"getUnmarshalledStream");i($x,"getMessageUnmarshaller")});var lh,kQe,z9=g(()=>{M9();F9();U9();q9();$9();G9();H9();lh=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new aE(e,r),this.utfEncoder=e}deserialize(e,r){let n=lk(e);return new uE({messageStream:new cE({inputStream:n,decoder:this.eventStreamCodec}),deserializer:$x(r,this.utfEncoder)})}serialize(e,r){return new lE({messageStream:new dE({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},kQe=i(t=>new lh(t),"eventStreamSerdeProvider")});async function*lOt(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 OQe,Gx,LQe,MQe=g(()=>{OQe=require("node:stream");z9();Gx=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new lh({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:lOt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return OQe.Readable.from(this.universalMarshaller.serialize(e,r))}},LQe=i(t=>new Gx(t),"eventStreamSerdeProvider");i(lOt,"readableToIterable")});var FQe,UQe,qQe=g(()=>{FQe=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"),UQe=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 $Qe,GQe=g(()=>{$Qe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var uk,HQe=g(()=>{_e();He();xe();uk=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:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}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 h="";for(let y in m)if(X(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(I=I||!!(N||_),_)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??qt)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let v=m[h].headers[x]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[x]=BigInt(v.toString()):E[x]=Number(v):E[x]=v)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}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:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=yt.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,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},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??Zr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var zQe={};cr(zQe,{EventStreamCodec:()=>aE,EventStreamMarshaller:()=>Gx,EventStreamSerde:()=>uk,HeaderMarshaller:()=>iE,Int64:()=>fp,MessageDecoderStream:()=>cE,MessageEncoderStream:()=>lE,SmithyMessageDecoderStream:()=>uE,SmithyMessageEncoderStream:()=>dE,UniversalEventStreamMarshaller:()=>lh,eventStreamSerdeProvider:()=>LQe,getChunkedStream:()=>lk,getMessageUnmarshaller:()=>$x,getUnmarshalledStream:()=>DQe,iterableToReadableStream:()=>UQe,readableStreamToIterable:()=>FQe,resolveEventStreamSerdeConfig:()=>$Qe,universalEventStreamSerdeProvider:()=>kQe});var VQe=g(()=>{M9();L9();O9();F9();U9();q9();$9();MQe();qQe();z9();G9();H9();GQe();HQe()});var hp,dk=g(()=>{_e();He();_e();rE();hp=class extends hn{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new yt(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Ye}getResponseType(){return fn}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=O.of(r.input),o=ba(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,!hx(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(()=>(VQe(),zQe)),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 Ap,WQe=g(()=>{_e();He();xe();_e();dk();tE();rk();Ap=class extends hp{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=O.of(e?.input),d=[],p=[],f=!1,m,h=new Ye({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=ba(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(Ta).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,Ta(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!X(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}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=O.of(e.output),a={};if(n.statusCode>=300){let l=await tn(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 tn(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 tn(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=O.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]=tk(n.body);else if(n.body){let A=await tn(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=pD(A,",",2):E=Hy(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(X(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var Al,V9=g(()=>{_e();He();_e();dk();tE();Al=class extends hp{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=O.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Ye({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 h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}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=O.of(e.output),a={};if(this.isErrorResponse(n.statusCode)){let l=await tn(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 tn(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}isErrorResponse(e){return e>=300}}});var gp,W9=g(()=>{He();_e();V9();gp=class extends Al{static{i(this,"AbstractRpcV2Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":this.getSmithyProtocolHeaderValue(),accept:this.getDefaultContentType()}),ki(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):this.applyEmptyBody(s);let{service:o,operation:a}=vt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}isErrorResponse(e){return e!==200}}});var pk,J9=g(()=>{rk();pk=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=>Ta(c)).join("/"):Ta(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function fk(t,e){return new Hx(t,e)}var Hx,JQe=g(()=>{_e();J9();i(fk,"requestBuilder");Hx=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 Ye({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=pk(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 An(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 yp=g(()=>{i(An,"determineTimestampFormat")});var Ep,Y9=g(()=>{He();xe();rE();yp();Ep=class extends hn{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=O.of(e);if(n.isListSchema())return Hy(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Er)(r);if(n.isTimestampSchema())switch(An(n,this.settings)){case 5:return uD(r);case 6:return dD(r);case 7:return lp(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=Ur.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??qt)((this.serdeContext?.base64Decoder??Er)(e))}}});var Cp,YQe=g(()=>{He();xe();rE();Y9();Cp=class extends hn{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new Ep(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=O.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??qt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Zr;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 pE,j9=g(()=>{He();xe();rE();yp();pE=class extends hn{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=O.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(An(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Ho(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??Qt)(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:lD(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=Ur.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Qt)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Yo():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var Ip,jQe=g(()=>{He();j9();Ip=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new pE(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=O.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 KQe,mk,XQe=g(()=>{KQe=R(Kn()),mk=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=KQe.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 hk,ZQe=g(()=>{hk=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 gl,yl,eDe=g(()=>{gl=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),t.defaultSocketTimeout&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"),t.defaultSocketTimeout),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),yl=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function K9(t){return e=>async r=>{let n=r.request;if(Ye.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(tDe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[tDe]:String(a)})}catch{}}return e({...r,request:n})}}var tDe,X9,El,rDe=g(()=>{_e();tDe="content-length";i(K9,"contentLengthMiddleware");X9={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},El=i(t=>({applyToStack:i(e=>{e.add(K9(t.bodyLengthChecker),X9)},"applyToStack")}),"getContentLengthPlugin")});var Sp,uOt,Ak=g(()=>{Sp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,uOt),"escapeUri"),uOt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var nDe,sDe=g(()=>{Ak();nDe=i(t=>t.split("/").map(Sp).join("/"),"escapeUriPath")});function oDe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Sp(r),Array.isArray(n))for(let s=0,o=n.length;s{Ak();i(oDe,"buildQueryString")});var no,uh=g(()=>{no=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var fE,Z9=g(()=>{fE=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 gk(){if(zx===void 0)try{if(typeof Buffer!="function")zx=!1;else{let t=JSON.parse(Buffer.from([123,125]));zx=t!==null&&typeof t=="object"}}catch{zx=!1}return zx}var zx,eK=g(()=>{i(gk,"detectBufferParsing")});function mE(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?pOt(n,e)?e:new je(n,"bigDecimal"):dOt(n)?new je(n,"bigDecimal"):/[eE]/.test(n)?fOt(n):BigInt(n)}return e}function dOt(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 fOt(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 yk=g(()=>{xe();i(mE,"jsonReviver");i(dOt,"isFractionalBigNumeric");i(pOt,"isRepresentable");i(tK,"expandToDecimal");i(fOt,"expandExponentToBigInt")});function hE(t){let e=O.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(rK in r)return r[rK];let n=Ek(e,new Set);return r[rK]=n,n}return Ek(e,new Set)}function Ek(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(Ek(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Ek(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var rK,Ck=g(()=>{He();rK=Symbol.for("@aws-sdk/reviver");i(hE,"needsReviver");i(Ek,"_check")});var aDe,cDe=g(()=>{tE();xe();aDe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});async function qu(t,e,r){let n;if(gk()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await tn(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await aDe(t,e)),n.length===0)return{};let s=r&&hE(r)?mE: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 Ik,lDe,nK,AE,gE,yE,uDe,Vx=g(()=>{tE();cDe();eK();yk();Ck();i(qu,"parseJsonBody");Ik=i(async(t,e)=>{let r=await qu(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),lDe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),nK=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"),AE=i((t,e)=>uDe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),gE=i((t,e,r=!1)=>uDe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),yE=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"),uDe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=lDe(t??{},"x-amzn-errortype");if(s!==void 0)return nK(t[s]);break;case"code":let o=lDe(e??{},"code");if(o&&e[o]!==void 0)return nK(e[o]);break;case"type":if(e?.__type!==void 0)return nK(e.__type);break}},"loadErrorCode")});var wp,sK=g(()=>{yp();He();xe();uh();Z9();eK();yk();Ck();Vx();_e();wp=class extends no{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=hE(e)?mE:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&gk()){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 qu(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=O.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{xe();Sk=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>dDe+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."),dDe=e),this.string=qt(this)}return this.string}},dDe=0});function oK(t){return Sk.allocUnsafe(t)}var wk,fDe,mDe,mOt,hOt,EE,xk,bk,hDe,AOt,gOt,yOt,Cl,ADe,xp,iK=g(()=>{yp();He();xe();uh();_e();pDe();wk=new TextEncoder,fDe=123,mDe=125,mOt=91,hOt=93,EE=34,xk=58,bk=44,hDe=92,AOt=new Uint8Array([116,114,117,101]),gOt=new Uint8Array([102,97,108,115,101]),yOt=new Uint8Array([110,117,108,108]),Cl=new Array(128).fill(null);Cl[8]="b";Cl[9]="t";Cl[10]="n";Cl[12]="f";Cl[13]="r";Cl[34]='"';Cl[92]="\\";for(let t=0;t<32;t++)Cl[t]===null&&(Cl[t]="u00"+t.toString(16).padStart(2,"0"));ADe=2048;i(oK,"alloc");xp=class t extends no{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=oK(ADe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=O.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=O.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),wk.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=oK(ADe),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=Cl[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=hDe;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=wk.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++]=EE}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=hDe,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++]=EE;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++]=EE,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&O.of(e).isIdempotencyToken()){this.writeAsciiQuoted(Yo());return}return}this.ensure(4),this.json.set(yOt,this.i),this.i+=4;return}let s=O.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Ur.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??Qt)(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(AOt,a),a+=4):(c.set(gOt,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++]=fDe;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++]=bk),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++]=xk,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++]=xk,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++]=bk),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=xk,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=mDe}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{uh();sK();iK();$i=class extends no{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new xp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new wp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var CE,gDe=g(()=>{W9();He();aK();Vx();CE=class extends gp{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new $i({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-json"}applyEmptyBody(e){e.body||(e.body="{}")}async handleError(e,r,n,s,o){let a=yE(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=yt.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=yt.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=O.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var bp,cK=g(()=>{yp();He();xe();xe();_e();uh();Z9();yk();Ck();Vx();bp=class extends no{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=hE(e)?mE:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await qu(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=O.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 fE(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!X(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=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__"&&qi(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Er(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Ur.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(An(s,this.settings)){case 5:return $y(r);case 6:return cp(r);case 7:return Gy(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__"&&qi(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 yDe,Bk,EDe=g(()=>{xe();yDe="\u039D",Bk=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=`${yDe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${yDe+"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 Bp,lK=g(()=>{yp();He();xe();uh();EDe();_e();Bp=class extends no{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=O.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 Bk;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=O.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=O.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 h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&qi(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__"&&qi(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Qt)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(An(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Ho(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 Yo();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Ur.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??Qt)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Qt)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&qi(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 IE,CDe=g(()=>{uh();cK();lK();IE=class extends no{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Bp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new bp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var dh={};cr(dh,{AbstractRpcV2Protocol:()=>gp,Field:()=>mk,Fields:()=>hk,FromStringShapeDeserializer:()=>Ep,HttpBindingProtocol:()=>Ap,HttpInterceptingShapeDeserializer:()=>Cp,HttpInterceptingShapeSerializer:()=>Ip,HttpProtocol:()=>hp,HttpRequest:()=>Ye,HttpResponse:()=>fn,JsonCodec:()=>IE,JsonCodec2:()=>$i,JsonShapeDeserializer:()=>bp,JsonShapeDeserializer2:()=>wp,JsonShapeSerializer:()=>Bp,JsonShapeSerializer2:()=>xp,RequestBuilder:()=>Hx,RpcProtocol:()=>Al,SerdeContext:()=>hn,SmithyRpcV2JsonProtocol:()=>CE,ToStringShapeSerializer:()=>pE,buildQueryString:()=>oDe,collectBody:()=>tn,contentLengthMiddleware:()=>K9,contentLengthMiddlewareOptions:()=>X9,determineTimestampFormat:()=>An,escapeUri:()=>Sp,escapeUriPath:()=>nDe,extendedEncodeURIComponent:()=>Ta,getContentLengthPlugin:()=>El,getHttpHandlerExtensionConfiguration:()=>gl,isValidHostname:()=>hx,loadJsonRpcErrorCode:()=>gE,loadRestJsonErrorCode:()=>AE,loadSmithyRpcV2JsonErrorCode:()=>yE,parseJsonBody:()=>qu,parseJsonErrorBody:()=>Ik,parseQueryString:()=>Ax,parseUrl:()=>vn,requestBuilder:()=>fk,resolveHttpHandlerRuntimeConfig:()=>yl,resolvedPath:()=>pk});var Re=g(()=>{tE();rk();WQe();dk();V9();W9();JQe();J9();Y9();YQe();jQe();j9();yp();rE();XQe();ZQe();_e();_e();_e();eDe();rDe();Ak();sDe();iDe();_e();_e();gDe();Vx();CDe();lK();cK();aK();iK();sK()});var IDe,SDe,wDe,xDe,bDe,BDe,RDe=g(()=>{IDe=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],SDe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],wDe=["TimeoutError","RequestTimeout","RequestTimeoutException"],xDe=[500,502,503,504],bDe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],BDe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function pK(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Wx,Rk,uK,dK,Il,Rp,Nk,SE=g(()=>{RDe();Wx=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),Rk=i(t=>IDe.includes(t.name),"isClockSkewError"),uK=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),dK=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"),Il=i(t=>t.$metadata?.httpStatusCode===429||SDe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),Rp=i((t,e=0)=>t?.name!=="AbortError"&&(Wx(t)||uK(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||wDe.includes(t.name)||bDe.includes(t?.code||"")||BDe.includes(t?.code||"")||xDe.includes(t.$metadata?.httpStatusCode||0)||dK(t)||pK(t)||t.cause!==void 0&&e<=10&&Rp(t.cause,e+1)),"isTransientError"),Nk=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Rp(t)}return!1},"isServerError");i(pK,"isNodeJsHttp2TransientError")});var Tk,Jx,Pk,wE,fK,mK,_k,Np,Tp,Yx=g(()=>{Tk=100,Jx=2e4,Pk=500,wE=500,fK=5,mK=10,_k=1,Np="amz-sdk-invocation-id",Tp="amz-sdk-request"});function hK(t,e){if(fn.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=(cp(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 NDe(t,e){return hK(t,e)}var AK=g(()=>{_e();Re();xe();i(hK,"parseRetryAfterHeader");i(NDe,"getRetryAfterHint")});var vk,gK=g(()=>{vk=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 yK(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(COt(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=Ye.isInstance(p);for(f&&(p.headers[Np]=eE());;)try{f&&(p.headers[Tp]=`attempt=${u+1}; max=${a}`);let{response:m,output:h}=await r(s);return o.recordSuccess(c),h.$metadata.attempts=u+1,h.$metadata.totalRetryDelay=d,{response:m,output:h}}catch(m){let h=IOt(m,e.logger);if(l=vk(m),f&&t(p))throw(n.logger instanceof to?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,h)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let A=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+A,A>0&&await EOt(A)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function TDe(t){let e=yK(t);return r=>({applyToStack:i(n=>{n.add(e(r),EK)},"applyToStack")})}var EOt,COt,IOt,SOt,EK,CK=g(()=>{we();Re();xe();SE();Yx();AK();gK();i(yK,"bindRetryMiddleware");EOt=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),COt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),IOt=i((t,e)=>{let r={error:t,errorType:SOt(t)},n=hK(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),SOt=i(t=>Il(t)?"THROTTLING":Rp(t)?"TRANSIENT":Nk(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),EK={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(TDe,"bindGetRetryPlugin")});var Pp,Qk=g(()=>{SE();Pp=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"||Il(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 Dr,xE=g(()=>{Dr=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 Dk,PDe=g(()=>{xE();Dk=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Dr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var jx,_De=g(()=>{jx=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 gn,_a,Gi,ph=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(gn||(gn={}));_a=3,Gi=gn.STANDARD});var kk,va,Kx=g(()=>{PDe();_De();ph();xE();kk={incompatible:1,attempts:2,capacity:3},va=class{static{i(this,"StandardRetryStrategy")}mode=gn.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()=>_a,this.baseDelay??=Dr.delay(),this.retryBackoffStrategy??=new Dk}async acquireInitialRetryToken(e){return new jx(Dr.delay(),0,void 0,Dr.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"?Dr.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 jx(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(f=>setTimeout(f,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=Dr.v2026&&s===kk.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 ${_a}`),_a}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:kk.incompatible,a=s=this.getCapacityCost(r.errorType)?0:kk.capacity;return o||a||c}getCapacityCost(e){return e===Dr.modifiedCostType()?Dr.throttlingCost():Dr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var bE,IK=g(()=>{Qk();Kx();ph();bE=class{static{i(this,"AdaptiveRetryStrategy")}mode=gn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Pp,this.standardRetryStrategy=r?new va({maxAttempts:typeof e=="number"?e:3,...r}):new va(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 Ok,vDe=g(()=>{Kx();xE();Ok=class extends va{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=Dr.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 QDe,DDe=g(()=>{QDe=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 Lk,SK=g(()=>{Lk=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var Mk,wK=g(()=>{SE();Mk=i(t=>t?Wx(t)||Rk(t)||Il(t)||Rp(t):!1,"defaultRetryDecider")});var BE,wOt,xK=g(()=>{Re();xe();SE();ph();Yx();gK();DDe();SK();wK();BE=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=gn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??Mk,this.delayDecider=r?.delayDecider??Lk,this.retryQuota=r?.retryQuota??QDe(500)}shouldRetry(e,r,n){return rsetTimeout(h,m));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},wOt=i(t=>{if(!fn.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 Fk,kDe=g(()=>{Qk();ph();xK();Fk=class extends BE{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new Pp,this.mode=gn.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 Uk,qk,Sl,wl,bK,BK,xl,ODe=g(()=>{we();IK();Kx();ph();xE();Uk="AWS_MAX_ATTEMPTS",qk="max_attempts",Sl={environmentVariableSelector:i(t=>{let e=t[Uk];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${Uk} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[qk];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${qk} mast be a number, got "${e}"`);return r},"configFileSelector"),default:_a},wl=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=_a,defaultBaseDelay:o=Dr.delay()}=e??{},a=xt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await xt(n)()===gn.ADAPTIVE?new bE(a,{maxAttempts:u,baseDelay:o}):new va({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),bK="AWS_RETRY_MODE",BK="retry_mode",xl={environmentVariableSelector:i(t=>t[bK],"environmentVariableSelector"),configFileSelector:i(t=>t[BK],"configFileSelector"),default:Gi}});var RK,NK,LDe,MDe=g(()=>{Re();Yx();RK=i(()=>t=>async e=>{let{request:r}=e;return Ye.isInstance(r)&&(delete r.headers[Np],delete r.headers[Tp]),t(e)},"omitRetryHeadersMiddleware"),NK={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},LDe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(RK(),NK)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var TK={};cr(TK,{AdaptiveRetryStrategy:()=>bE,CONFIG_MAX_ATTEMPTS:()=>qk,CONFIG_RETRY_MODE:()=>BK,ConfiguredRetryStrategy:()=>Ok,DEFAULT_MAX_ATTEMPTS:()=>_a,DEFAULT_RETRY_DELAY_BASE:()=>Tk,DEFAULT_RETRY_MODE:()=>Gi,DefaultRateLimiter:()=>Pp,DeprecatedAdaptiveRetryStrategy:()=>Fk,DeprecatedStandardRetryStrategy:()=>BE,ENV_MAX_ATTEMPTS:()=>Uk,ENV_RETRY_MODE:()=>bK,INITIAL_RETRY_TOKENS:()=>wE,INVOCATION_ID_HEADER:()=>Np,MAXIMUM_RETRY_DELAY:()=>Jx,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Sl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>xl,NO_RETRY_INCREMENT:()=>_k,REQUEST_HEADER:()=>Tp,RETRY_COST:()=>fK,RETRY_MODES:()=>gn,Retry:()=>Dr,StandardRetryStrategy:()=>va,THROTTLING_RETRY_DELAY_BASE:()=>Pk,TIMEOUT_RETRY_COST:()=>mK,defaultDelayDecider:()=>Lk,defaultRetryDecider:()=>Mk,getOmitRetryHeadersPlugin:()=>LDe,getRetryAfterHint:()=>NDe,getRetryPlugin:()=>$u,isBrowserNetworkError:()=>dK,isClockSkewCorrectedError:()=>uK,isClockSkewError:()=>Rk,isNodeJsHttp2TransientError:()=>pK,isRetryableByTrait:()=>Wx,isServerError:()=>Nk,isThrottlingError:()=>Il,isTransientError:()=>Rp,omitRetryHeadersMiddleware:()=>RK,omitRetryHeadersMiddlewareOptions:()=>NK,resolveRetryConfig:()=>wl,retryMiddleware:()=>xOt,retryMiddlewareOptions:()=>EK});var xOt,$u,jo=g(()=>{eNe();CK();SE();IK();vDe();Qk();Kx();ph();Yx();xE();kDe();xK();SK();wK();ODe();MDe();CK();AK();xOt=yK(w5),$u=TDe(w5)});function Hi(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 PK=g(()=>{jo();Dr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(Hi,"setFeature")});function FDe(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var UDe=g(()=>{i(FDe,"setTokenFeature")});function RE(t){return t}var _K,vK,bl,qDe=g(()=>{Re();i(RE,"resolveHostHeaderConfig");_K=i(t=>e=>async r=>{if(!Ye.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"),vK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},bl=i(t=>({applyToStack:i(e=>{e.add(_K(t),vK)},"applyToStack")}),"getHostHeaderPlugin")});var QK,DK,Bl,$De=g(()=>{QK=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"),DK={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Bl=i(t=>({applyToStack:i(e=>{e.add(QK(),DK)},"applyToStack")}),"getLoggerPlugin")});var $k,kK=g(()=>{$k={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _p,OK,Gk,LK,MK,Xx,GDe=g(()=>{_p={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")},OK=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");OK||(globalThis.awslambda=globalThis.awslambda||{});Gk=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=_p;isProtectedKey(e){return Object.values(_p).includes(e)}getRequestId(){return this.get(_p.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_p.X_RAY_TRACE_ID)}getTenantId(){return this.get(_p.TENANT_ID)}getTraceparent(){return this.get(_p.TRACEPARENT)}getTracestate(){return this.get(_p.TRACESTATE)}getBaggage(){return this.get(_p.BAGGAGE)}},LK=class extends Gk{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()}},MK=class t extends Gk{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 MK.create():new LK;return!OK&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!OK&&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})(Xx||(Xx={}))});function ROt(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===UK||r===HDe||r===zDe)&&(t[r]=t[e],delete t[e])}}var bOt,BOt,FK,UK,HDe,zDe,Hk,qK=g(()=>{GDe();Re();bOt="AWS_LAMBDA_FUNCTION_NAME",BOt="_X_AMZN_TRACE_ID",FK="X-Amzn-Trace-Id",UK="traceparent",HDe="tracestate",zDe="baggage",Hk=i(()=>t=>async e=>{let{request:r}=e;if(!Ye.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===FK.toLowerCase())??FK;if(!r.headers.hasOwnProperty(s)){let o=process.env[bOt],a=process.env[BOt];n??=await Xx.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[FK]=l)}}if(ROt(r.headers),!r.headers[UK]){let o=(n??=await Xx.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[UK]=o;let a=n?.getTracestate?.();a&&(r.headers[HDe]=a);let c=n?.getBaggage?.();c&&(r.headers[zDe]=c)}}return t(e)},"recursionDetectionMiddleware");i(ROt,"sanitizeTraceHeaders")});var Rl,VDe=g(()=>{kK();qK();Rl=i(t=>({applyToStack:i(e=>{e.add(Hk(),$k)},"applyToStack")}),"getRecursionDetectionPlugin")});var WDe,JDe=g(()=>{WDe=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 NOt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var fh,zk=g(()=>{_e();JDe();i(NOt,"convertHttpAuthSchemesToMap");fh=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=WDe(o,a),l=NOt(t.httpAuthSchemes),u=vt(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:h={},signingProperties:A={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},h),p.signingProperties=Object.assign(p.signingProperties||{},A),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 Vk,Qa,YDe=g(()=>{zk();Vk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Qa=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(fh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Vk)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var Wk,$K,jDe=g(()=>{zk();Wk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},$K=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(fh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Wk)},"applyToStack")}),"getHttpAuthSchemePlugin")});var KDe=g(()=>{zk();YDe();jDe()});var TOt,POt,Zx,GK=g(()=>{Re();_e();TOt=i(t=>e=>{throw e},"defaultErrorHandler"),POt=i((t,e)=>{},"defaultSuccessHandler"),Zx=i(t=>(e,r)=>async n=>{if(!Ye.isInstance(n.request))return e(n);let o=vt(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||TOt)(a));return(l.successHandler||POt)(u.response,a),u},"httpSigningMiddleware")});var Jk,Da,XDe=g(()=>{GK();Jk={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Da=i(t=>({applyToStack:i(e=>{e.addRelativeTo(Zx(t),Jk)},"applyToStack")}),"getHttpSigningPlugin")});var ZDe=g(()=>{GK();XDe()});var zi,eke=g(()=>{zi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function tke(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 _Ot(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=vOt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var _Ot,vOt,rke=g(()=>{_Ot=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(tke,"createPaginator");vOt=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 nke(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 ske=g(()=>{i(nke,"setFeature")});var Ko,oke=g(()=>{_e();Ko=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 HK,NE,ike=g(()=>{Re();HK=R(Kn()),NE=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=Ye.clone(e);if(n.in===HK.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===HK.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 TE,ake=g(()=>{Re();TE=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ye.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 es,cke=g(()=>{es=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var lke=g(()=>{ike();ake();cke()});var Yk,jk,eb,PE,tb,uke=g(()=>{Yk=i(t=>i(function(r){return PE(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),tb=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 dke=g(()=>{oke();lke();uke()});var zK={};cr(zK,{DefaultIdentityProviderConfig:()=>Ko,EXPIRATION_MS:()=>jk,HttpApiKeyAuthSigner:()=>NE,HttpBearerAuthSigner:()=>TE,NoAuthSigner:()=>es,createIsIdentityExpiredFunction:()=>Yk,createPaginator:()=>tke,doesIdentityRequireRefresh:()=>PE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Qa,getHttpAuthSchemePlugin:()=>$K,getHttpSigningPlugin:()=>Da,getSmithyContext:()=>vt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>Vk,httpAuthSchemeMiddleware:()=>fh,httpAuthSchemeMiddlewareOptions:()=>Wk,httpSigningMiddleware:()=>Zx,httpSigningMiddlewareOptions:()=>Jk,isIdentityExpired:()=>eb,memoizeIdentityProvider:()=>tb,normalizeProvider:()=>zi,requestBuilder:()=>fk,setFeature:()=>nke});var Bs=g(()=>{_e();KDe();ZDe();eke();rke();Re();ske();dke()});function QOt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Nl(t){let e=zi(t.userAgentAppId??rb),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!QOt(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 rb,VK=g(()=>{Bs();rb=void 0;i(QOt,"isValidUserAgentAppId");i(Nl,"resolveUserAgentConfig")});var WK,pke=g(()=>{WK={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 fke,mke,Kk,JK,hke,Xk,Zk=g(()=>{pke();fke=WK,mke="",Kk=i(t=>{let{partitions:e}=fke;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"),JK=i((t,e="")=>{fke=t,mke=e},"setPartitionInfo"),hke=i(()=>{JK(WK,"")},"useDefaultPartitionInfo"),Xk=i(()=>mke,"getUserAgentPrefix")});async function Ake(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Hi(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case gn.ADAPTIVE:Hi(t,"RETRY_MODE_ADAPTIVE","F");break;case gn.STANDARD:Hi(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(DOt)&&Hi(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":Hi(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Hi(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Hi(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&Hi(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))Hi(t,a,c)}}var DOt,gke=g(()=>{jo();PK();DOt=/\d{12}\.ddb/;i(Ake,"checkFeatures")});var YK,eO,yke,Eke,Cke=g(()=>{YK="user-agent",eO="x-amz-user-agent",yke=/[^!$%&'*+\-.^_`|~\w]/g,Eke=/[^!$%&'*+\-.^_`|~\w#]/g});function Ike(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 Ske=g(()=>{i(Ike,"encodeFeatures")});var KK,tO,XK,Tl,bke=g(()=>{Re();Zk();gke();Cke();Ske();KK=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!Ye.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(tO)||[],c=(await t.defaultUserAgentProvider()).map(tO);await Ake(r,t,n);let l=r;c.push(`m/${Ike(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(tO)||[],d=await t.userAgentAppId();d&&c.push(tO(["app",`${d}`]));let p=Xk(),f=(p?[p]:[]).concat([...c,...a,...u]).join(" "),m=[...c.filter(h=>h.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(m&&(o[eO]=o[eO]?`${o[YK]} ${m}`:m),o[YK]=f):o[eO]=f,e({...n,request:s})},"userAgentMiddleware"),tO=i(t=>{let e=t[0].split("/").map(a=>a.replace(yke,"-")).join("/"),r=t[1]?.replace(Eke,"-"),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"),XK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Tl=i(t=>({applyToStack:i(e=>{e.add(KK(t),XK)},"applyToStack")}),"getUserAgentPlugin")});var rO,Bke,Rke=g(()=>{rO=require("node:process"),Bke=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(rO.versions[e])return[`md/${e}`,rO.versions[e]];return["md/nodejs",rO.versions.node]},"getRuntimeUserAgentPair")});var nb,ZK=g(()=>{nb={isCrtAvailable:!1}});var Nke,Tke=g(()=>{ZK();Nke=i(()=>nb.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var nO,eX,ka,Pke,_ke=g(()=>{nO=require("node:os"),eX=require("node:process");Rke();Tke();ZK();ka=i(({serviceId:t,clientVersion:e})=>{let r=Bke();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,nO.platform)()}`,(0,nO.release)()],["lang/js"],r],o=Nke();o&&s.push(o),t&&s.push([`api/${t}`,e]),eX.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${eX.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),Pke=ka});var tX,rX,kOt,Pl,vke=g(()=>{VK();tX="AWS_SDK_UA_APP_ID",rX="sdk_ua_app_id",kOt="sdk-ua-app-id",Pl={environmentVariableSelector:i(t=>t[tX],"environmentVariableSelector"),configFileSelector:i(t=>t[rX]??t[kOt],"configFileSelector"),default:rb}});var Qke=S((sb,nX)=>{(function(t,e){typeof sb=="object"&&typeof nX=="object"?nX.exports=e():typeof define=="function"&&define.amd?define([],e):typeof sb=="object"?sb.bowser=e():t.bowser=e()})(sb,(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(h){var A=p-o.getVersionPrecision(h),y=h+new Array(A+1).join(".0");return o.map(y.split("."),(function(E){return new Array(20-E.length).join("0")+E})).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(h),x=c.default.find(I,(function(Qe){return m.isOS(Qe)}));if(x){var b=this.satisfies(h[x]);if(b!==void 0)return b}var N=c.default.find(I,(function(Qe){return m.isPlatform(Qe)}));if(N){var _=this.satisfies(h[N]);if(_!==void 0)return _}}if(E>0){var v=Object.keys(y),Y=c.default.find(v,(function(Qe){return m.isBrowser(Qe,!0)}));if(Y!==void 0)return this.compareVersion(y[Y])}},p.isBrowser=function(f,m){m===void 0&&(m=!1);var h=this.getBrowserName().toLowerCase(),A=f.toLowerCase(),y=c.default.getBrowserTypeByAlias(A);return m&&y&&(A=y.toLowerCase()),A===h},p.compareVersion=function(f){var m=[0],h=f,A=!1,y=this.getBrowserVersion();if(typeof y=="string")return f[0]===">"||f[0]==="<"?(h=f.substr(1),f[1]==="="?(A=!0,h=f.substr(2)):m=[],f[0]===">"?m.push(1):m.push(-1)):f[0]==="="?h=f.substr(1):f[0]==="~"&&(A=!0,h=f.substr(1)),m.indexOf(c.default.compareVersions(y,h,A))>-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(h){return m.is(h)}))},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 Dke,kke=g(()=>{Dke=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(Qke())),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 Oke,Lke=g(()=>{Oke={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 sX=g(()=>{Dt()});var ob,oX=g(()=>{Dt();sX();ob=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!ob(r))return!1;return!0}return!(!xa(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Du(t))},"isVirtualHostableS3Bucket")});var sO,iX=g(()=>{sO=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 Oa,Mke=g(()=>{Dt();oX();iX();Zk();Oa={isVirtualHostableS3Bucket:ob,parseArn:sO,partition:Kk};ro.aws=Oa});var Fke=g(()=>{Dt()});var Uke,aX,qke=g(()=>{Re();Uke=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()=>aX(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"),aX=i(t=>vn(t.url),"toEndpointV1")});var $ke=g(()=>{Dt()});var Gke=g(()=>{bt();bt()});function oO(t={}){return ve({...Qn,async default(){return cX.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"}},{...bs,...t})}var cX,Hke=g(()=>{bt();i(oO,"stsRegionDefaultResolver");cX={silence:!1}});var _l,vl,zke=g(()=>{_l=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),vl=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var La={};cr(La,{DEFAULT_UA_APP_ID:()=>rb,EndpointError:()=>it,NODE_APP_ID_CONFIG_OPTIONS:()=>Pl,NODE_REGION_CONFIG_FILE_OPTIONS:()=>bs,NODE_REGION_CONFIG_OPTIONS:()=>Qn,REGION_ENV_NAME:()=>Yy,REGION_INI_NAME:()=>jy,UA_APP_ID_ENV_NAME:()=>tX,UA_APP_ID_INI_NAME:()=>rX,awsEndpointFunctions:()=>Oa,createDefaultUserAgentProvider:()=>ka,createUserAgentStringParsingProvider:()=>Dke,crtAvailability:()=>nb,defaultUserAgent:()=>Pke,emitWarningIfUnsupportedVersion:()=>Zc,fallback:()=>Oke,getAwsRegionExtensionConfiguration:()=>_l,getHostHeaderPlugin:()=>bl,getLoggerPlugin:()=>Bl,getLongPollPlugin:()=>jRe,getRecursionDetectionPlugin:()=>Rl,getUserAgentMiddlewareOptions:()=>XK,getUserAgentPlugin:()=>Tl,getUserAgentPrefix:()=>Xk,hostHeaderMiddleware:()=>_K,hostHeaderMiddlewareOptions:()=>vK,isIpAddress:()=>Du,isVirtualHostableS3Bucket:()=>ob,loggerMiddleware:()=>QK,loggerMiddlewareOptions:()=>DK,parseArn:()=>sO,partition:()=>Kk,recursionDetectionMiddleware:()=>Hk,recursionDetectionMiddlewareOptions:()=>$k,resolveAwsRegionExtensionConfiguration:()=>vl,resolveDefaultAwsRegionalEndpointsConfig:()=>Uke,resolveEndpoint:()=>Ux,resolveHostHeaderConfig:()=>RE,resolveRegionConfig:()=>Vo,resolveUserAgentConfig:()=>Nl,setCredentialFeature:()=>ep,setFeature:()=>Hi,setPartitionInfo:()=>JK,setTokenFeature:()=>FDe,state:()=>fx,stsRegionDefaultResolver:()=>oO,stsRegionWarning:()=>cX,toEndpointV1:()=>aX,useDefaultPartitionInfo:()=>hke,userAgentMiddleware:()=>KK});var Et=g(()=>{YRe();KRe();XRe();PK();UDe();qDe();$De();kK();VDe();qK();VK();bke();_ke();vke();Lke();kke();Mke();Fke();qke();sX();oX();iX();Zk();$ke();Gke();Hke();zke()});var iO,aO,Vke=g(()=>{Re();iO=i(t=>fn.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),aO=i(t=>fn.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var ib,Wke=g(()=>{ib=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var cO,Jke=g(()=>{cO=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:s-o},"getUpdatedSystemClockOffset")});var lX=g(()=>{Vke();Wke();Jke()});var Yke,ab,OOt,_E,yn,uX,dX=g(()=>{Re();Yke=R(Kn());lX();ab=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),OOt=i(t=>t.context?.[Yke.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),_E=i(async t=>{let e=ab("context",t.context),r=ab("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await ab("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"),yn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!Ye.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await _E(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[m,h]=u.authSchemes;m?.name==="sigv4a"&&h?.name==="sigv4"&&(c=h?.signingRegion??c,l=h?.signingName??l)}let d=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=d;let p=d||OOt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:ib(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??iO(n.$response);if(s){let o=ab("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=aO(n.$response),u=cO(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=iO(e);if(n){let s=ab("config",r.config),o=r._requestSentAt,a=aO(e);s.systemClockOffset=cO(n,s.systemClockOffset,o,a)}}},uX=yn});var Gu,jke=g(()=>{Re();lX();dX();Gu=class extends yn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!Ye.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 _E(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:ib(s.systemClockOffset),signingRegion:d,signingService:l})}}});var pX,Kke=g(()=>{pX=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var lO,fX=g(()=>{lO=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var Xke,Zke,Ma,eOe=g(()=>{Kke();fX();Xke="AWS_AUTH_SCHEME_PREFERENCE",Zke="auth_scheme_preference",Ma={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&lO(e.signingName)in t)return["httpBearerAuth"];if(Xke in t)return pX(t[Xke])},"environmentVariableSelector"),configFileSelector:i(t=>{if(Zke in t)return pX(t[Zke])},"configFileSelector"),default:[]}});var cb,lb,tOe=g(()=>{Bs();bt();cb=i(t=>(t.sigv4aSigningRegionSet=zi(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),lb={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new zo("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 zo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var bX=S(ze=>{var{hasOwn:hh,fromUtf8:rOe,fromHex:LOt,toHex:mh,toUint8Array:ub,writeKey:MOt,isArrayBuffer:FOt}=(xe(),Z(ih)),{normalizeProvider:nOe}=(we(),Z(Oy)),{escapeUri:uO,HttpRequest:aOe}=(Re(),Z(dh)),mX=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!hh(e,o))continue;let a=rOe(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=rOe(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(hX.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!UOt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(LOt(e.value.replace(/-/g,"")),1),p}}},sOe;(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"})(sOe||(sOe={}));var UOt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,hX=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&&oOe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&oOe(e),parseInt(mh(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function oOe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(oOe,"negate");var cOe="X-Amz-Algorithm",lOe="X-Amz-Credential",EX="X-Amz-Date",uOe="X-Amz-SignedHeaders",dOe="X-Amz-Expires",CX="X-Amz-Signature",IX="X-Amz-Security-Token",qOt="X-Amz-Region-Set",SX="authorization",wX=EX.toLowerCase(),pOe="date",fOe=[SX,wX,pOe],mOe=CX.toLowerCase(),hO="x-amz-content-sha256",hOe=IX.toLowerCase(),$Ot="host",AOe={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},gOe=/^proxy-/,yOe=/^sec-/,GOt=[/^proxy-/i,/^sec-/i],dO="AWS4-HMAC-SHA256",HOt="AWS4-ECDSA-P256-SHA256",EOe="AWS4-HMAC-SHA256-PAYLOAD",COe="UNSIGNED-PAYLOAD",IOe=50,xX="aws4_request",SOe=3600*24*7,wOe=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!hh(t,n)||n.toLowerCase()===mOe)continue;let s=uO(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${uO(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${uO(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),zOt=i(t=>VOt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),VOt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),AO=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=nOe(n),this.credentialProvider=nOe(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} +`)}p.push(null)}catch(f){p.destroy(f)}}),p}var $ve,Hve=g(()=>{$ve=require("node:stream");qve();Na();i(Gve,"getAwsChunkedEncodingStream")});async function zve(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 Vve=g(()=>{i(zve,"headStream")});var Wve,Jve,I9,Yve=g(()=>{Wve=require("node:stream");Px();Vve();Na();Jve=i((t,e)=>en(t)?zve(t,e):new Promise((r,n)=>{let s=new I9;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=cl(this.buffers);r(o)})}),"headStream"),I9=class extends Wve.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 jve,Kve=g(()=>{jve=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 S9(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function w9(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 cl(e,n)}var Xve,x9=g(()=>{Px();Na();Xve=i(async t=>pp(t)?S9(t):w9(t),"streamCollector");i(S9,"collectBlob");i(w9,"collectReadableStream")});var Zve,tQe,eQe,rQe=g(()=>{g9();f6();Kve();x9();Na();Zve="The stream has already been transformed.",tQe=i(t=>{if(!eQe(t)&&!en(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(Zve);return e=!0,await Xve(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 XD(o);if(s==="hex")return Li(o);if(s===void 0||s==="utf8"||s==="utf-8")return jve(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(Zve);if(e=!0,eQe(t))return n(t);if(en(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),eQe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var nQe,ek,b9,B9=g(()=>{nQe=require("node:stream");Px();x9();Na();ek=i(t=>pp(t)?S9(t):en(t)?w9(t):new Promise((e,r)=>{let n=new b9,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=cl(this.bufferedBytes);e(o)})}),"streamCollector"),b9=class extends nQe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var tk,sQe,rk,oQe=g(()=>{tk=require("node:stream");ap();rQe();B9();sQe="The stream has already been transformed.",rk=i(t=>{if(!(t instanceof tk.Readable))try{return tQe(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(sQe);return e=!0,await ek(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?Ra(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(sQe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof tk.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,tk.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function iQe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var aQe=g(()=>{i(iQe,"splitStream")});async function cQe(t){if(en(t)||pp(t))return iQe(t);let e=new R9.PassThrough,r=new R9.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var R9,lQe=g(()=>{R9=require("node:stream");aQe();Na();i(cQe,"splitStream")});function qi(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var uQe=g(()=>{i(qi,"writeKey")});var ah={};cr(ah,{ChecksumStream:()=>eE,Hash:()=>YD,LazyJsonString:()=>Ur,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>ih,_parseEpochTimestamp:()=>up,_parseRfc3339DateTimeWithOffset:()=>dD,_parseRfc7231DateTime:()=>pD,calculateBodyLength:()=>al,concatBytes:()=>cl,copyDocumentWithTransform:()=>BTe,createBufferedReadable:()=>Mve,createChecksumStream:()=>Qve,dateToUtcString:()=>Ho,deserializerMiddleware:()=>AD,deserializerMiddlewareOption:()=>f9,expectBoolean:()=>TTe,expectByte:()=>sD,expectFloat32:()=>Rx,expectInt:()=>PTe,expectInt32:()=>rD,expectLong:()=>Fy,expectNonNull:()=>_Te,expectNumber:()=>My,expectObject:()=>s6,expectShort:()=>nD,expectString:()=>vTe,expectUnion:()=>iD,fromArrayBuffer:()=>Ra,fromBase64:()=>Er,fromHex:()=>hD,fromString:()=>ip,fromUtf8:()=>Zr,generateIdempotencyToken:()=>Yo,getAwsChunkedEncodingStream:()=>Gve,getSerdePlugin:()=>Eve,handleFloat:()=>DTe,hasOwn:()=>X,headStream:()=>Jve,isArrayBuffer:()=>ZQ,isBlob:()=>pp,isReadableStream:()=>en,limitedParseDouble:()=>cD,limitedParseFloat:()=>kTe,limitedParseFloat32:()=>OTe,logger:()=>Uy,nv:()=>mD,parseBoolean:()=>NTe,parseEpochTimestamp:()=>Hy,parseRfc3339DateTime:()=>UTe,parseRfc3339DateTimeWithOffset:()=>Gy,parseRfc7231DateTime:()=>lp,quoteHeader:()=>uD,sdkStreamMixin:()=>rk,serializerMiddleware:()=>JD,serializerMiddlewareOption:()=>m9,splitEvery:()=>fD,splitHeader:()=>zy,splitStream:()=>cQe,streamCollector:()=>ek,strictParseByte:()=>lD,strictParseDouble:()=>Nx,strictParseFloat:()=>QTe,strictParseFloat32:()=>aD,strictParseInt:()=>MTe,strictParseInt32:()=>FTe,strictParseLong:()=>o6,strictParseShort:()=>cp,toBase64:()=>Qt,toHex:()=>Li,toUint8Array:()=>xs,toUtf8:()=>qt,v4:()=>tE,writeKey:()=>qi});var dQe,ih,Fkt,tE,Yo,xe=g(()=>{dQe=require("node:crypto");CTe();r6();STe();eD();wTe();bTe();RTe();qTe();$Te();i6();GTe();VTe();WTe();JTe();jTe();f6();XTe();m6();Px();ap();t6();A6();Cve();p9();Sve();h9();Dve();Fve();Hve();Yve();oQe();lQe();Na();B9();_e();uQe();ih=class extends ITe(qt,Zr,Qt,Er){static{i(this,"Uint8ArrayBlobAdapter")}},Fkt=dQe.getRandomValues,tE=xTe(Fkt),Yo=tE});var tn,rE=g(()=>{xe();tn=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return ih.mutate(t);if(!t)return ih.mutate(new Uint8Array);let r=e.streamCollector(t);return ih.mutate(await r)},"collectBody")});function Ta(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var nk=g(()=>{i(Ta,"extendedEncodeURIComponent")});var hn,nE=g(()=>{hn=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function sk(t,e,r=1024*1024){let n=t.size,s=0;for(;s{i(sk,"blobReader")});var pQe,fQe=g(()=>{N9();pQe=i(async function(e,r){let n=new e;return await sk(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var mQe,sE,T9=g(()=>{mQe=require("node:stream");xe();sE=class extends mQe.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(xs(e))}catch(s){return n(s)}n()}}});var hQe,AQe,Ukt,gQe=g(()=>{hQe=require("node:fs");T9();AQe=i((t,e)=>new Promise((r,n)=>{if(!Ukt(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,hQe.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new sE(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"),Ukt=i(t=>typeof t.path=="string","isReadStream")});var yQe,EQe=g(()=>{T9();yQe=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new sE(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 P9(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=qkt[(a>>4)*4+(a&3)],f=(r+c&fp)+(u+$kt[a]&fp)&fp;n=n+((f<>>32-p)>>>0)&fp,r=d}t[0]=t[0]+r&fp,t[1]=t[1]+n&fp,t[2]=t[2]+s&fp,t[3]=t[3]+o&fp}var oE,CQe,fp,qkt,$kt,_9=g(()=>{xe();oE=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(CQe);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=xs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(P9(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);P9(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),P9(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(CQe),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},CQe=[1732584193,4023233417,2562383102,271733878],fp=4294967295,qkt=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),$kt=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(P9,"compress")});function Hkt(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,ok.createHash)("md5");update(e){this.hash.update(xs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,ok.createHash)("md5")}}}var ok,Gkt,v9,IQe=g(()=>{ok=require("node:crypto");xe();_9();Gkt=(()=>{try{return(0,ok.createHash)("md5"),!0}catch{return!1}})(),v9=Gkt?Hkt():oE;i(Hkt,"buildNativeClass")});var SQe,Q9,iE,D9=g(()=>{SQe=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;SQe[t]=e>>>0}Q9=4294967295,iE=class{static{i(this,"Crc32Js")}digestLength=4;checksum=Q9;update(e){for(let r=0;r>>8^SQe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Q9)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Q9}}});function zkt(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 k9,wQe,ch,xQe=g(()=>{k9=R(require("node:zlib"));D9();wQe=typeof k9.crc32=="function"?k9.crc32:void 0,ch=wQe?zkt(wQe):iE;i(zkt,"buildNativeClass")});var Dn,bQe,Vkt,Uu,BQe,Wkt,ik=g(()=>{xe();Dn=64,bQe=32,Vkt=2**53-1,Uu=class t{static{i(this,"Sha256Js")}digestLength=bQe;state=Int32Array.from(BQe);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(Dn*2);for(let a=0;aVkt)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===Dn&&(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(BQe),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)%Dn>=Dn-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=xs(e);if(r.byteLength>Dn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(Dn);return o.set(s),o}if(r.byteLength>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[f-15];let E=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[f]=(y+n[f-7]|0)+(E+n[f-16]|0)}let m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(p+(Wkt[f]+n[f]|0)|0)|0,h=((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+h|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}},BQe=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Wkt=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 Ykt(){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,$x.createHmac)("sha256",jkt(this.secret)):(0,$x.createHash)("sha256")}}}function jkt(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var $x,Jkt,Pa,RQe=g(()=>{$x=require("node:crypto");ik();Jkt=(()=>{try{return(0,$x.createHash)("sha256"),!0}catch{return!1}})(),Pa=Jkt?Ykt():Uu;i(Ykt,"buildNativeClass");i(jkt,"toBuffer")});var Kkt,Xkt,Zkt,ak,eOt,ck,NQe=g(()=>{xe();ik();({digest:Kkt,sign:Xkt,importKey:Zkt}=globalThis?.crypto?.subtle??{}),ak=typeof Kkt=="function"&&typeof Xkt=="function"&&typeof Zkt=="function"?globalThis.crypto.subtle:void 0,eOt=8*1024*1024,ck=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=xs(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>=eOt&&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=cl(this.pending);if(ak){if(this.secret){this.finished=!0;let s=await ak.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await ak.sign("HMAC",s,e);return new Uint8Array(o)}let n=await ak.digest("SHA-256",e);return new Uint8Array(n)}let r=new Uu(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 Uu(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var O9={};cr(O9,{Crc32:()=>ch,Crc32Js:()=>iE,Crc32Node:()=>ch,Md5:()=>v9,Md5Js:()=>oE,Md5Node:()=>v9,Sha256:()=>Pa,Sha256Js:()=>Uu,Sha256Node:()=>Pa,Sha256WebCrypto:()=>ck,blobHasher:()=>pQe,blobReader:()=>sk,fileStreamHasher:()=>AQe,readableStreamHasher:()=>yQe});var qu=g(()=>{fQe();gQe();EQe();_9();IQe();D9();xQe();ik();RQe();NQe();N9()});function TQe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var mp,L9=g(()=>{xe();mp=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&&TQe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&TQe(e),parseInt(Li(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(TQe,"negate")});var aE,PQe,_Qe,tOt,rOt,nOt,sOt,oOt,iOt,aOt,cOt,lOt,lk,M9=g(()=>{_e();xe();L9();aE=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);if(a.byteLength>255)throw new Error(`@smithy/core/event-streams - header name exceeds 255 bytes: ${a.byteLength}`);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":if(e.value.byteLength>lk)throw new Error(`@smithy/core/event-streams - header value (binary) exceeds ${lk} bytes: ${e.value.byteLength}`);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);if(c.byteLength>lk)throw new Error(`@smithy/core/event-streams - header value (string) exceeds ${lk} bytes: ${c.byteLength}`);let 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(mp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!lOt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(hD(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{qu();vQe=4,hp=vQe*2,lh=4,uOt=hp+lh*2;i(QQe,"splitMessage")});var cE,F9=g(()=>{qu();M9();DQe();cE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new aE(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 ch;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}=QQe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var lE,U9=g(()=>{lE=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 uE,q9=g(()=>{uE=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 dE,$9=g(()=>{dE=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 pE,G9=g(()=>{pE=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 uk(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(uk,"getChunkedStream")});function kQe(t,e){let r=Gx(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 Gx(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 z9=g(()=>{i(kQe,"getUnmarshalledStream");i(Gx,"getMessageUnmarshaller")});var uh,OQe,V9=g(()=>{F9();U9();q9();$9();G9();H9();z9();uh=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new cE(e,r),this.utfEncoder=e}deserialize(e,r){let n=uk(e);return new dE({messageStream:new lE({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Gx(r,this.utfEncoder)})}serialize(e,r){return new uE({messageStream:new pE({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},OQe=i(t=>new uh(t),"eventStreamSerdeProvider")});async function*dOt(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 LQe,Hx,MQe,FQe=g(()=>{LQe=require("node:stream");V9();Hx=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new uh({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:dOt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return LQe.Readable.from(this.universalMarshaller.serialize(e,r))}},MQe=i(t=>new Hx(t),"eventStreamSerdeProvider");i(dOt,"readableToIterable")});var UQe,qQe,$Qe=g(()=>{UQe=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"),qQe=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 GQe,HQe=g(()=>{GQe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var dk,zQe=g(()=>{_e();He();xe();dk=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:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}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 h="";for(let y in m)if(X(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(I=I||!!(N||_),_)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??qt)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let v=m[h].headers[x]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[x]=BigInt(v.toString()):E[x]=Number(v):E[x]=v)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}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:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=yt.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,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},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??Zr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var VQe={};cr(VQe,{EventStreamCodec:()=>cE,EventStreamMarshaller:()=>Hx,EventStreamSerde:()=>dk,HeaderMarshaller:()=>aE,Int64:()=>mp,MessageDecoderStream:()=>lE,MessageEncoderStream:()=>uE,SmithyMessageDecoderStream:()=>dE,SmithyMessageEncoderStream:()=>pE,UniversalEventStreamMarshaller:()=>uh,eventStreamSerdeProvider:()=>MQe,getChunkedStream:()=>uk,getMessageUnmarshaller:()=>Gx,getUnmarshalledStream:()=>kQe,iterableToReadableStream:()=>qQe,readableStreamToIterable:()=>UQe,resolveEventStreamSerdeConfig:()=>GQe,universalEventStreamSerdeProvider:()=>OQe});var WQe=g(()=>{F9();M9();L9();U9();q9();$9();G9();FQe();$Qe();V9();H9();z9();HQe();zQe()});var Ap,pk=g(()=>{_e();He();_e();nE();Ap=class extends hn{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new yt(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Ye}getResponseType(){return fn}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=O.of(r.input),o=ba(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,!Ax(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(()=>(WQe(),VQe)),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 gp,JQe=g(()=>{_e();He();xe();_e();pk();rE();nk();gp=class extends Ap{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=O.of(e?.input),d=[],p=[],f=!1,m,h=new Ye({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=ba(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(Ta).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,Ta(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!X(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}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=O.of(e.output),a={};if(n.statusCode>=300){let l=await tn(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 tn(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 tn(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=O.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]=rk(n.body);else if(n.body){let A=await tn(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=fD(A,",",2):E=zy(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(X(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var Al,W9=g(()=>{_e();He();_e();pk();rE();Al=class extends Ap{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=O.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Ye({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 h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}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=O.of(e.output),a={};if(this.isErrorResponse(n.statusCode)){let l=await tn(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 tn(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}isErrorResponse(e){return e>=300}}});var yp,J9=g(()=>{He();_e();W9();yp=class extends Al{static{i(this,"AbstractRpcV2Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":this.getSmithyProtocolHeaderValue(),accept:this.getDefaultContentType()}),ki(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):this.applyEmptyBody(s);let{service:o,operation:a}=vt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}isErrorResponse(e){return e!==200}}});var fk,Y9=g(()=>{nk();fk=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=>Ta(c)).join("/"):Ta(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function mk(t,e){return new zx(t,e)}var zx,YQe=g(()=>{_e();Y9();i(mk,"requestBuilder");zx=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 Ye({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=fk(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 An(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 Ep=g(()=>{i(An,"determineTimestampFormat")});var Cp,j9=g(()=>{He();xe();nE();Ep();Cp=class extends hn{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=O.of(e);if(n.isListSchema())return zy(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Er)(r);if(n.isTimestampSchema())switch(An(n,this.settings)){case 5:return dD(r);case 6:return pD(r);case 7:return up(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=Ur.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??qt)((this.serdeContext?.base64Decoder??Er)(e))}}});var Ip,jQe=g(()=>{He();xe();nE();j9();Ip=class extends hn{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new Cp(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=O.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??qt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Zr;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 fE,K9=g(()=>{He();xe();nE();Ep();fE=class extends hn{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=O.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(An(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Ho(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??Qt)(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:uD(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=Ur.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Qt)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Yo():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var Sp,KQe=g(()=>{He();K9();Sp=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new fE(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=O.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 XQe,hk,ZQe=g(()=>{XQe=R(Kn()),hk=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=XQe.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 Ak,eDe=g(()=>{Ak=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 gl,yl,tDe=g(()=>{gl=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),t.defaultSocketTimeout&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"),t.defaultSocketTimeout),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),yl=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function X9(t){return e=>async r=>{let n=r.request;if(Ye.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(rDe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[rDe]:String(a)})}catch{}}return e({...r,request:n})}}var rDe,Z9,El,nDe=g(()=>{_e();rDe="content-length";i(X9,"contentLengthMiddleware");Z9={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},El=i(t=>({applyToStack:i(e=>{e.add(X9(t.bodyLengthChecker),Z9)},"applyToStack")}),"getContentLengthPlugin")});var wp,pOt,gk=g(()=>{wp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,pOt),"escapeUri"),pOt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var sDe,oDe=g(()=>{gk();sDe=i(t=>t.split("/").map(wp).join("/"),"escapeUriPath")});function iDe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=wp(r),Array.isArray(n))for(let s=0,o=n.length;s{gk();i(iDe,"buildQueryString")});var no,dh=g(()=>{no=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var mE,eK=g(()=>{mE=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 yk(){if(Vx===void 0)try{if(typeof Buffer!="function")Vx=!1;else{let t=JSON.parse(Buffer.from([123,125]));Vx=t!==null&&typeof t=="object"}}catch{Vx=!1}return Vx}var Vx,tK=g(()=>{i(yk,"detectBufferParsing")});function hE(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?mOt(n,e)?e:new je(n,"bigDecimal"):fOt(n)?new je(n,"bigDecimal"):/[eE]/.test(n)?hOt(n):BigInt(n)}return e}function fOt(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 hOt(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 Ek=g(()=>{xe();i(hE,"jsonReviver");i(fOt,"isFractionalBigNumeric");i(mOt,"isRepresentable");i(rK,"expandToDecimal");i(hOt,"expandExponentToBigInt")});function AE(t){let e=O.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(nK in r)return r[nK];let n=Ck(e,new Set);return r[nK]=n,n}return Ck(e,new Set)}function Ck(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(Ck(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Ck(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var nK,Ik=g(()=>{He();nK=Symbol.for("@aws-sdk/reviver");i(AE,"needsReviver");i(Ck,"_check")});var cDe,lDe=g(()=>{rE();xe();cDe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});async function $u(t,e,r){let n;if(yk()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await tn(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await cDe(t,e)),n.length===0)return{};let s=r&&AE(r)?hE: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 Sk,uDe,sK,gE,yE,EE,dDe,Wx=g(()=>{rE();lDe();tK();Ek();Ik();i($u,"parseJsonBody");Sk=i(async(t,e)=>{let r=await $u(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),uDe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),sK=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"),gE=i((t,e)=>dDe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),yE=i((t,e,r=!1)=>dDe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),EE=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"),dDe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=uDe(t??{},"x-amzn-errortype");if(s!==void 0)return sK(t[s]);break;case"code":let o=uDe(e??{},"code");if(o&&e[o]!==void 0)return sK(e[o]);break;case"type":if(e?.__type!==void 0)return sK(e.__type);break}},"loadErrorCode")});var xp,oK=g(()=>{Ep();He();xe();dh();eK();tK();Ek();Ik();Wx();_e();xp=class extends no{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=AE(e)?hE:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&yk()){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 $u(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=O.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{xe();wk=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>pDe+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."),pDe=e),this.string=qt(this)}return this.string}},pDe=0});function iK(t){return wk.allocUnsafe(t)}var xk,mDe,hDe,AOt,gOt,CE,bk,Bk,ADe,yOt,EOt,COt,Cl,gDe,bp,aK=g(()=>{Ep();He();xe();dh();_e();fDe();xk=new TextEncoder,mDe=123,hDe=125,AOt=91,gOt=93,CE=34,bk=58,Bk=44,ADe=92,yOt=new Uint8Array([116,114,117,101]),EOt=new Uint8Array([102,97,108,115,101]),COt=new Uint8Array([110,117,108,108]),Cl=new Array(128).fill(null);Cl[8]="b";Cl[9]="t";Cl[10]="n";Cl[12]="f";Cl[13]="r";Cl[34]='"';Cl[92]="\\";for(let t=0;t<32;t++)Cl[t]===null&&(Cl[t]="u00"+t.toString(16).padStart(2,"0"));gDe=2048;i(iK,"alloc");bp=class t extends no{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=iK(gDe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=O.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=O.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),xk.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=iK(gDe),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=Cl[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=ADe;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=xk.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++]=CE}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=ADe,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++]=CE;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++]=CE,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&O.of(e).isIdempotencyToken()){this.writeAsciiQuoted(Yo());return}return}this.ensure(4),this.json.set(COt,this.i),this.i+=4;return}let s=O.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Ur.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??Qt)(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(yOt,a),a+=4):(c.set(EOt,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++]=mDe;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++]=Bk),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++]=bk,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++]=bk,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++]=Bk),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=bk,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=hDe}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{dh();oK();aK();$i=class extends no{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new bp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new xp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var IE,yDe=g(()=>{J9();He();cK();Wx();IE=class extends yp{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new $i({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-json"}applyEmptyBody(e){e.body||(e.body="{}")}async handleError(e,r,n,s,o){let a=EE(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=yt.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=yt.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=O.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var Bp,lK=g(()=>{Ep();He();xe();xe();_e();dh();eK();Ek();Ik();Wx();Bp=class extends no{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=AE(e)?hE:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await $u(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=O.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 mE(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!X(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=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__"&&qi(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Er(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Ur.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(An(s,this.settings)){case 5:return Gy(r);case 6:return lp(r);case 7:return Hy(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__"&&qi(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 EDe,Rk,CDe=g(()=>{xe();EDe="\u039D",Rk=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=`${EDe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${EDe+"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 Rp,uK=g(()=>{Ep();He();xe();dh();CDe();_e();Rp=class extends no{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=O.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 Rk;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=O.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=O.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 h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&qi(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__"&&qi(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Qt)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(An(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Ho(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 Yo();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Ur.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??Qt)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Qt)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&qi(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 SE,IDe=g(()=>{dh();lK();uK();SE=class extends no{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Rp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Bp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var ph={};cr(ph,{AbstractRpcV2Protocol:()=>yp,Field:()=>hk,Fields:()=>Ak,FromStringShapeDeserializer:()=>Cp,HttpBindingProtocol:()=>gp,HttpInterceptingShapeDeserializer:()=>Ip,HttpInterceptingShapeSerializer:()=>Sp,HttpProtocol:()=>Ap,HttpRequest:()=>Ye,HttpResponse:()=>fn,JsonCodec:()=>SE,JsonCodec2:()=>$i,JsonShapeDeserializer:()=>Bp,JsonShapeDeserializer2:()=>xp,JsonShapeSerializer:()=>Rp,JsonShapeSerializer2:()=>bp,RequestBuilder:()=>zx,RpcProtocol:()=>Al,SerdeContext:()=>hn,SmithyRpcV2JsonProtocol:()=>IE,ToStringShapeSerializer:()=>fE,buildQueryString:()=>iDe,collectBody:()=>tn,contentLengthMiddleware:()=>X9,contentLengthMiddlewareOptions:()=>Z9,determineTimestampFormat:()=>An,escapeUri:()=>wp,escapeUriPath:()=>sDe,extendedEncodeURIComponent:()=>Ta,getContentLengthPlugin:()=>El,getHttpHandlerExtensionConfiguration:()=>gl,isValidHostname:()=>Ax,loadJsonRpcErrorCode:()=>yE,loadRestJsonErrorCode:()=>gE,loadSmithyRpcV2JsonErrorCode:()=>EE,parseJsonBody:()=>$u,parseJsonErrorBody:()=>Sk,parseQueryString:()=>gx,parseUrl:()=>vn,requestBuilder:()=>mk,resolveHttpHandlerRuntimeConfig:()=>yl,resolvedPath:()=>fk});var Re=g(()=>{rE();nk();JQe();pk();W9();J9();YQe();Y9();j9();jQe();KQe();K9();Ep();nE();ZQe();eDe();_e();_e();_e();tDe();nDe();gk();oDe();aDe();_e();_e();yDe();Wx();IDe();uK();lK();cK();aK();oK()});var SDe,wDe,xDe,bDe,BDe,RDe,NDe=g(()=>{SDe=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],wDe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],xDe=["TimeoutError","RequestTimeout","RequestTimeoutException"],bDe=[500,502,503,504],BDe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],RDe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function fK(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Jx,Nk,dK,pK,Il,Np,Tk,wE=g(()=>{NDe();Jx=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),Nk=i(t=>SDe.includes(t.name),"isClockSkewError"),dK=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),pK=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"),Il=i(t=>t.$metadata?.httpStatusCode===429||wDe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),Np=i((t,e=0)=>t?.name!=="AbortError"&&(Jx(t)||dK(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||xDe.includes(t.name)||BDe.includes(t?.code||"")||RDe.includes(t?.code||"")||bDe.includes(t.$metadata?.httpStatusCode||0)||pK(t)||fK(t)||t.cause!==void 0&&e<=10&&Np(t.cause,e+1)),"isTransientError"),Tk=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Np(t)}return!1},"isServerError");i(fK,"isNodeJsHttp2TransientError")});var Pk,Yx,_k,xE,mK,hK,vk,Tp,Pp,jx=g(()=>{Pk=100,Yx=2e4,_k=500,xE=500,mK=5,hK=10,vk=1,Tp="amz-sdk-invocation-id",Pp="amz-sdk-request"});function AK(t,e){if(fn.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=(lp(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 TDe(t,e){return AK(t,e)}var gK=g(()=>{_e();Re();xe();i(AK,"parseRetryAfterHeader");i(TDe,"getRetryAfterHint")});var Qk,yK=g(()=>{Qk=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 EK(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(SOt(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=Ye.isInstance(p);for(f&&(p.headers[Tp]=tE());;)try{f&&(p.headers[Pp]=`attempt=${u+1}; max=${a}`);let{response:m,output:h}=await r(s);return o.recordSuccess(c),h.$metadata.attempts=u+1,h.$metadata.totalRetryDelay=d,{response:m,output:h}}catch(m){let h=wOt(m,e.logger);if(l=Qk(m),f&&t(p))throw(n.logger instanceof to?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,h)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let A=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+A,A>0&&await IOt(A)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function PDe(t){let e=EK(t);return r=>({applyToStack:i(n=>{n.add(e(r),CK)},"applyToStack")})}var IOt,SOt,wOt,xOt,CK,IK=g(()=>{we();Re();xe();wE();jx();gK();yK();i(EK,"bindRetryMiddleware");IOt=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),SOt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),wOt=i((t,e)=>{let r={error:t,errorType:xOt(t)},n=AK(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),xOt=i(t=>Il(t)?"THROTTLING":Np(t)?"TRANSIENT":Tk(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),CK={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(PDe,"bindGetRetryPlugin")});var _p,Dk=g(()=>{wE();_p=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"||Il(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 Dr,bE=g(()=>{Dr=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 kk,_De=g(()=>{bE();kk=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Dr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var Kx,vDe=g(()=>{Kx=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 gn,_a,Gi,fh=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(gn||(gn={}));_a=3,Gi=gn.STANDARD});var Ok,va,Xx=g(()=>{_De();vDe();fh();bE();Ok={incompatible:1,attempts:2,capacity:3},va=class{static{i(this,"StandardRetryStrategy")}mode=gn.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()=>_a,this.baseDelay??=Dr.delay(),this.retryBackoffStrategy??=new kk}async acquireInitialRetryToken(e){return new Kx(Dr.delay(),0,void 0,Dr.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"?Dr.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 Kx(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(f=>setTimeout(f,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=Dr.v2026&&s===Ok.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 ${_a}`),_a}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:Ok.incompatible,a=s=this.getCapacityCost(r.errorType)?0:Ok.capacity;return o||a||c}getCapacityCost(e){return e===Dr.modifiedCostType()?Dr.throttlingCost():Dr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var BE,SK=g(()=>{Dk();Xx();fh();BE=class{static{i(this,"AdaptiveRetryStrategy")}mode=gn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new _p,this.standardRetryStrategy=r?new va({maxAttempts:typeof e=="number"?e:3,...r}):new va(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 Lk,QDe=g(()=>{Xx();bE();Lk=class extends va{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=Dr.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 DDe,kDe=g(()=>{DDe=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 Mk,wK=g(()=>{Mk=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var Fk,xK=g(()=>{wE();Fk=i(t=>t?Jx(t)||Nk(t)||Il(t)||Np(t):!1,"defaultRetryDecider")});var RE,bOt,bK=g(()=>{Re();xe();wE();fh();jx();yK();kDe();wK();xK();RE=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=gn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??Fk,this.delayDecider=r?.delayDecider??Mk,this.retryQuota=r?.retryQuota??DDe(500)}shouldRetry(e,r,n){return rsetTimeout(h,m));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},bOt=i(t=>{if(!fn.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 Uk,ODe=g(()=>{Dk();fh();bK();Uk=class extends RE{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new _p,this.mode=gn.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 qk,$k,Sl,wl,BK,RK,xl,LDe=g(()=>{we();SK();Xx();fh();bE();qk="AWS_MAX_ATTEMPTS",$k="max_attempts",Sl={environmentVariableSelector:i(t=>{let e=t[qk];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${qk} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[$k];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${$k} mast be a number, got "${e}"`);return r},"configFileSelector"),default:_a},wl=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=_a,defaultBaseDelay:o=Dr.delay()}=e??{},a=xt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await xt(n)()===gn.ADAPTIVE?new BE(a,{maxAttempts:u,baseDelay:o}):new va({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),BK="AWS_RETRY_MODE",RK="retry_mode",xl={environmentVariableSelector:i(t=>t[BK],"environmentVariableSelector"),configFileSelector:i(t=>t[RK],"configFileSelector"),default:Gi}});var NK,TK,MDe,FDe=g(()=>{Re();jx();NK=i(()=>t=>async e=>{let{request:r}=e;return Ye.isInstance(r)&&(delete r.headers[Tp],delete r.headers[Pp]),t(e)},"omitRetryHeadersMiddleware"),TK={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},MDe=i(t=>({applyToStack:i(e=>{e.addRelativeTo(NK(),TK)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var PK={};cr(PK,{AdaptiveRetryStrategy:()=>BE,CONFIG_MAX_ATTEMPTS:()=>$k,CONFIG_RETRY_MODE:()=>RK,ConfiguredRetryStrategy:()=>Lk,DEFAULT_MAX_ATTEMPTS:()=>_a,DEFAULT_RETRY_DELAY_BASE:()=>Pk,DEFAULT_RETRY_MODE:()=>Gi,DefaultRateLimiter:()=>_p,DeprecatedAdaptiveRetryStrategy:()=>Uk,DeprecatedStandardRetryStrategy:()=>RE,ENV_MAX_ATTEMPTS:()=>qk,ENV_RETRY_MODE:()=>BK,INITIAL_RETRY_TOKENS:()=>xE,INVOCATION_ID_HEADER:()=>Tp,MAXIMUM_RETRY_DELAY:()=>Yx,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Sl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>xl,NO_RETRY_INCREMENT:()=>vk,REQUEST_HEADER:()=>Pp,RETRY_COST:()=>mK,RETRY_MODES:()=>gn,Retry:()=>Dr,StandardRetryStrategy:()=>va,THROTTLING_RETRY_DELAY_BASE:()=>_k,TIMEOUT_RETRY_COST:()=>hK,defaultDelayDecider:()=>Mk,defaultRetryDecider:()=>Fk,getOmitRetryHeadersPlugin:()=>MDe,getRetryAfterHint:()=>TDe,getRetryPlugin:()=>Gu,isBrowserNetworkError:()=>pK,isClockSkewCorrectedError:()=>dK,isClockSkewError:()=>Nk,isNodeJsHttp2TransientError:()=>fK,isRetryableByTrait:()=>Jx,isServerError:()=>Tk,isThrottlingError:()=>Il,isTransientError:()=>Np,omitRetryHeadersMiddleware:()=>NK,omitRetryHeadersMiddlewareOptions:()=>TK,resolveRetryConfig:()=>wl,retryMiddleware:()=>BOt,retryMiddlewareOptions:()=>CK});var BOt,Gu,jo=g(()=>{tNe();IK();wE();SK();QDe();Dk();Xx();fh();jx();bE();ODe();bK();wK();xK();LDe();FDe();IK();gK();BOt=EK(x5),Gu=PDe(x5)});function Hi(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 _K=g(()=>{jo();Dr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(Hi,"setFeature")});function UDe(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var qDe=g(()=>{i(UDe,"setTokenFeature")});var ROt,bl,$De=g(()=>{ROt=i(()=>typeof process=="object"&&process?.env?.AWS_ENABLE_DEFAULT_SOCKET_TIMEOUT_2026==="true","isDefaultSocketTimeoutEnabled"),bl=i((t,e)=>{if(ROt()&&typeof t?.handle!="function")return e},"getDefaultSocketTimeout")});function NE(t){return t}var vK,QK,Bl,GDe=g(()=>{Re();i(NE,"resolveHostHeaderConfig");vK=i(t=>e=>async r=>{if(!Ye.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"),QK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Bl=i(t=>({applyToStack:i(e=>{e.add(vK(t),QK)},"applyToStack")}),"getHostHeaderPlugin")});var DK,kK,Rl,HDe=g(()=>{DK=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"),kK={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Rl=i(t=>({applyToStack:i(e=>{e.add(DK(),kK)},"applyToStack")}),"getLoggerPlugin")});var Gk,OK=g(()=>{Gk={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var vp,LK,Hk,MK,FK,Zx,zDe=g(()=>{vp={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")},LK=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");LK||(globalThis.awslambda=globalThis.awslambda||{});Hk=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=vp;isProtectedKey(e){return Object.values(vp).includes(e)}getRequestId(){return this.get(vp.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(vp.X_RAY_TRACE_ID)}getTenantId(){return this.get(vp.TENANT_ID)}getTraceparent(){return this.get(vp.TRACEPARENT)}getTracestate(){return this.get(vp.TRACESTATE)}getBaggage(){return this.get(vp.BAGGAGE)}},MK=class extends Hk{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()}},FK=class t extends Hk{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 FK.create():new MK;return!LK&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!LK&&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})(Zx||(Zx={}))});function POt(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===qK||r===VDe||r===WDe)&&(t[r]=t[e],delete t[e])}}var NOt,TOt,UK,qK,VDe,WDe,zk,$K=g(()=>{zDe();Re();NOt="AWS_LAMBDA_FUNCTION_NAME",TOt="_X_AMZN_TRACE_ID",UK="X-Amzn-Trace-Id",qK="traceparent",VDe="tracestate",WDe="baggage",zk=i(()=>t=>async e=>{let{request:r}=e;if(!Ye.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===UK.toLowerCase())??UK;if(!r.headers.hasOwnProperty(s)){let o=process.env[NOt],a=process.env[TOt];n??=await Zx.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[UK]=l)}}if(POt(r.headers),!r.headers[qK]){let o=(n??=await Zx.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[qK]=o;let a=n?.getTracestate?.();a&&(r.headers[VDe]=a);let c=n?.getBaggage?.();c&&(r.headers[WDe]=c)}}return t(e)},"recursionDetectionMiddleware");i(POt,"sanitizeTraceHeaders")});var Nl,JDe=g(()=>{OK();$K();Nl=i(t=>({applyToStack:i(e=>{e.add(zk(),Gk)},"applyToStack")}),"getRecursionDetectionPlugin")});var YDe,jDe=g(()=>{YDe=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 _Ot(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var mh,Vk=g(()=>{_e();jDe();i(_Ot,"convertHttpAuthSchemesToMap");mh=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=YDe(o,a),l=_Ot(t.httpAuthSchemes),u=vt(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:h={},signingProperties:A={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},h),p.signingProperties=Object.assign(p.signingProperties||{},A),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 Wk,Qa,KDe=g(()=>{Vk();Wk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Qa=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(mh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Wk)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var Jk,GK,XDe=g(()=>{Vk();Jk={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},GK=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(mh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Jk)},"applyToStack")}),"getHttpAuthSchemePlugin")});var ZDe=g(()=>{Vk();KDe();XDe()});var vOt,QOt,eb,HK=g(()=>{Re();_e();vOt=i(t=>e=>{throw e},"defaultErrorHandler"),QOt=i((t,e)=>{},"defaultSuccessHandler"),eb=i(t=>(e,r)=>async n=>{if(!Ye.isInstance(n.request))return e(n);let o=vt(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||vOt)(a));return(l.successHandler||QOt)(u.response,a),u},"httpSigningMiddleware")});var Yk,Da,eke=g(()=>{HK();Yk={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Da=i(t=>({applyToStack:i(e=>{e.addRelativeTo(eb(t),Yk)},"applyToStack")}),"getHttpSigningPlugin")});var tke=g(()=>{HK();eke()});var zi,rke=g(()=>{zi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function nke(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 DOt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=kOt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var DOt,kOt,ske=g(()=>{DOt=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(nke,"createPaginator");kOt=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 oke(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 ike=g(()=>{i(oke,"setFeature")});var Ko,ake=g(()=>{_e();Ko=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 zK,TE,cke=g(()=>{Re();zK=R(Kn()),TE=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=Ye.clone(e);if(n.in===zK.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===zK.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 PE,lke=g(()=>{Re();PE=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ye.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 es,uke=g(()=>{es=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var dke=g(()=>{cke();lke();uke()});var jk,Kk,tb,_E,rb,pke=g(()=>{jk=i(t=>i(function(r){return _E(r)&&r.expiration.getTime()-Date.now()t.expiration!==void 0,"doesIdentityRequireRefresh"),rb=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 fke=g(()=>{ake();dke();pke()});var VK={};cr(VK,{DefaultIdentityProviderConfig:()=>Ko,EXPIRATION_MS:()=>Kk,HttpApiKeyAuthSigner:()=>TE,HttpBearerAuthSigner:()=>PE,NoAuthSigner:()=>es,createIsIdentityExpiredFunction:()=>jk,createPaginator:()=>nke,doesIdentityRequireRefresh:()=>_E,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Qa,getHttpAuthSchemePlugin:()=>GK,getHttpSigningPlugin:()=>Da,getSmithyContext:()=>vt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>Wk,httpAuthSchemeMiddleware:()=>mh,httpAuthSchemeMiddlewareOptions:()=>Jk,httpSigningMiddleware:()=>eb,httpSigningMiddlewareOptions:()=>Yk,isIdentityExpired:()=>tb,memoizeIdentityProvider:()=>rb,normalizeProvider:()=>zi,requestBuilder:()=>mk,setFeature:()=>oke});var Bs=g(()=>{_e();ZDe();tke();rke();ske();Re();ike();fke()});function OOt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Tl(t){let e=zi(t.userAgentAppId??nb),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!OOt(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 nb,WK=g(()=>{Bs();nb=void 0;i(OOt,"isValidUserAgentAppId");i(Tl,"resolveUserAgentConfig")});var JK,mke=g(()=>{JK={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 hke,Ake,Xk,YK,gke,Zk,eO=g(()=>{mke();hke=JK,Ake="",Xk=i(t=>{let{partitions:e}=hke;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"),YK=i((t,e="")=>{hke=t,Ake=e},"setPartitionInfo"),gke=i(()=>{YK(JK,"")},"useDefaultPartitionInfo"),Zk=i(()=>Ake,"getUserAgentPrefix")});async function yke(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Hi(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case gn.ADAPTIVE:Hi(t,"RETRY_MODE_ADAPTIVE","F");break;case gn.STANDARD:Hi(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(LOt)&&Hi(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":Hi(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Hi(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Hi(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&Hi(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))Hi(t,a,c)}}var LOt,Eke=g(()=>{jo();_K();LOt=/\d{12}\.ddb/;i(yke,"checkFeatures")});var jK,tO,Cke,Ike,Ske=g(()=>{jK="user-agent",tO="x-amz-user-agent",Cke=/[^!$%&'*+\-.^_`|~\w]/g,Ike=/[^!$%&'*+\-.^_`|~\w#]/g});function wke(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 xke=g(()=>{i(wke,"encodeFeatures")});var XK,rO,ZK,Pl,Rke=g(()=>{Re();eO();Eke();Ske();xke();XK=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!Ye.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(rO)||[],c=(await t.defaultUserAgentProvider()).map(rO);await yke(r,t,n);let l=r;c.push(`m/${wke(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(rO)||[],d=await t.userAgentAppId();d&&c.push(rO(["app",`${d}`]));let p=Zk(),f=(p?[p]:[]).concat([...c,...a,...u]).join(" "),m=[...c.filter(h=>h.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(m&&(o[tO]=o[tO]?`${o[jK]} ${m}`:m),o[jK]=f):o[tO]=f,e({...n,request:s})},"userAgentMiddleware"),rO=i(t=>{let e=t[0].split("/").map(a=>a.replace(Cke,"-")).join("/"),r=t[1]?.replace(Ike,"-"),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"),ZK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Pl=i(t=>({applyToStack:i(e=>{e.add(XK(t),ZK)},"applyToStack")}),"getUserAgentPlugin")});var nO,Nke,Tke=g(()=>{nO=require("node:process"),Nke=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(nO.versions[e])return[`md/${e}`,nO.versions[e]];return["md/nodejs",nO.versions.node]},"getRuntimeUserAgentPair")});var sb,eX=g(()=>{sb={isCrtAvailable:!1}});var Pke,_ke=g(()=>{eX();Pke=i(()=>sb.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var sO,tX,ka,vke,Qke=g(()=>{sO=require("node:os"),tX=require("node:process");Tke();_ke();eX();ka=i(({serviceId:t,clientVersion:e})=>{let r=Nke();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,sO.platform)()}`,(0,sO.release)()],["lang/js"],r],o=Pke();o&&s.push(o),t&&s.push([`api/${t}`,e]),tX.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${tX.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),vke=ka});var rX,nX,MOt,_l,Dke=g(()=>{WK();rX="AWS_SDK_UA_APP_ID",nX="sdk_ua_app_id",MOt="sdk-ua-app-id",_l={environmentVariableSelector:i(t=>t[rX],"environmentVariableSelector"),configFileSelector:i(t=>t[nX]??t[MOt],"configFileSelector"),default:nb}});var kke=S((ob,sX)=>{(function(t,e){typeof ob=="object"&&typeof sX=="object"?sX.exports=e():typeof define=="function"&&define.amd?define([],e):typeof ob=="object"?ob.bowser=e():t.bowser=e()})(ob,(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(h){var A=p-o.getVersionPrecision(h),y=h+new Array(A+1).join(".0");return o.map(y.split("."),(function(E){return new Array(20-E.length).join("0")+E})).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(h),x=c.default.find(I,(function(Qe){return m.isOS(Qe)}));if(x){var b=this.satisfies(h[x]);if(b!==void 0)return b}var N=c.default.find(I,(function(Qe){return m.isPlatform(Qe)}));if(N){var _=this.satisfies(h[N]);if(_!==void 0)return _}}if(E>0){var v=Object.keys(y),Y=c.default.find(v,(function(Qe){return m.isBrowser(Qe,!0)}));if(Y!==void 0)return this.compareVersion(y[Y])}},p.isBrowser=function(f,m){m===void 0&&(m=!1);var h=this.getBrowserName().toLowerCase(),A=f.toLowerCase(),y=c.default.getBrowserTypeByAlias(A);return m&&y&&(A=y.toLowerCase()),A===h},p.compareVersion=function(f){var m=[0],h=f,A=!1,y=this.getBrowserVersion();if(typeof y=="string")return f[0]===">"||f[0]==="<"?(h=f.substr(1),f[1]==="="?(A=!0,h=f.substr(2)):m=[],f[0]===">"?m.push(1):m.push(-1)):f[0]==="="?h=f.substr(1):f[0]==="~"&&(A=!0,h=f.substr(1)),m.indexOf(c.default.compareVersions(y,h,A))>-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(h){return m.is(h)}))},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 Oke,Lke=g(()=>{Oke=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(kke())),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 Mke,Fke=g(()=>{Mke={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 oX=g(()=>{Dt()});var ib,iX=g(()=>{Dt();oX();ib=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!ib(r))return!1;return!0}return!(!xa(t)||t.length<3||t.length>63||t!==t.toLowerCase()||ku(t))},"isVirtualHostableS3Bucket")});var oO,aX=g(()=>{oO=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 Oa,Uke=g(()=>{Dt();iX();aX();eO();Oa={isVirtualHostableS3Bucket:ib,parseArn:oO,partition:Xk};ro.aws=Oa});var qke=g(()=>{Dt()});var $ke,cX,Gke=g(()=>{Re();$ke=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()=>cX(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"),cX=i(t=>vn(t.url),"toEndpointV1")});var Hke=g(()=>{Dt()});var zke=g(()=>{bt();bt()});function iO(t={}){return ve({...Qn,async default(){return lX.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"}},{...bs,...t})}var lX,Vke=g(()=>{bt();i(iO,"stsRegionDefaultResolver");lX={silence:!1}});var vl,Ql,Wke=g(()=>{vl=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),Ql=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var La={};cr(La,{DEFAULT_UA_APP_ID:()=>nb,EndpointError:()=>it,NODE_APP_ID_CONFIG_OPTIONS:()=>_l,NODE_REGION_CONFIG_FILE_OPTIONS:()=>bs,NODE_REGION_CONFIG_OPTIONS:()=>Qn,REGION_ENV_NAME:()=>jy,REGION_INI_NAME:()=>Ky,UA_APP_ID_ENV_NAME:()=>rX,UA_APP_ID_INI_NAME:()=>nX,awsEndpointFunctions:()=>Oa,createDefaultUserAgentProvider:()=>ka,createUserAgentStringParsingProvider:()=>Oke,crtAvailability:()=>sb,defaultUserAgent:()=>vke,emitWarningIfUnsupportedVersion:()=>Zc,fallback:()=>Mke,getAwsRegionExtensionConfiguration:()=>vl,getDefaultSocketTimeout:()=>bl,getHostHeaderPlugin:()=>Bl,getLoggerPlugin:()=>Rl,getLongPollPlugin:()=>KRe,getRecursionDetectionPlugin:()=>Nl,getUserAgentMiddlewareOptions:()=>ZK,getUserAgentPlugin:()=>Pl,getUserAgentPrefix:()=>Zk,hostHeaderMiddleware:()=>vK,hostHeaderMiddlewareOptions:()=>QK,isIpAddress:()=>ku,isVirtualHostableS3Bucket:()=>ib,loggerMiddleware:()=>DK,loggerMiddlewareOptions:()=>kK,parseArn:()=>oO,partition:()=>Xk,recursionDetectionMiddleware:()=>zk,recursionDetectionMiddlewareOptions:()=>Gk,resolveAwsRegionExtensionConfiguration:()=>Ql,resolveDefaultAwsRegionalEndpointsConfig:()=>$ke,resolveEndpoint:()=>qx,resolveHostHeaderConfig:()=>NE,resolveRegionConfig:()=>Vo,resolveUserAgentConfig:()=>Tl,setCredentialFeature:()=>tp,setFeature:()=>Hi,setPartitionInfo:()=>YK,setTokenFeature:()=>UDe,state:()=>mx,stsRegionDefaultResolver:()=>iO,stsRegionWarning:()=>lX,toEndpointV1:()=>cX,useDefaultPartitionInfo:()=>gke,userAgentMiddleware:()=>XK});var Et=g(()=>{jRe();XRe();ZRe();_K();qDe();$De();GDe();HDe();OK();JDe();$K();WK();Rke();Qke();Dke();Fke();Lke();Uke();qke();Gke();oX();iX();aX();eO();Hke();zke();Vke();Wke()});var aO,cO,Jke=g(()=>{Re();aO=i(t=>fn.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),cO=i(t=>fn.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var ab,Yke=g(()=>{ab=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var lO,jke=g(()=>{lO=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:s-o},"getUpdatedSystemClockOffset")});var uX=g(()=>{Jke();Yke();jke()});var Kke,cb,FOt,vE,yn,dX,pX=g(()=>{Re();Kke=R(Kn());uX();cb=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),FOt=i(t=>t.context?.[Kke.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),vE=i(async t=>{let e=cb("context",t.context),r=cb("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await cb("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"),yn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!Ye.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await vE(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[m,h]=u.authSchemes;m?.name==="sigv4a"&&h?.name==="sigv4"&&(c=h?.signingRegion??c,l=h?.signingName??l)}let d=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=d;let p=d||FOt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:ab(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??aO(n.$response);if(s){let o=cb("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=cO(n.$response),u=lO(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=aO(e);if(n){let s=cb("config",r.config),o=r._requestSentAt,a=cO(e);s.systemClockOffset=lO(n,s.systemClockOffset,o,a)}}},dX=yn});var Hu,Xke=g(()=>{Re();uX();pX();Hu=class extends yn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!Ye.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 vE(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:ab(s.systemClockOffset),signingRegion:d,signingService:l})}}});var fX,Zke=g(()=>{fX=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var uO,mX=g(()=>{uO=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var eOe,tOe,Ma,rOe=g(()=>{Zke();mX();eOe="AWS_AUTH_SCHEME_PREFERENCE",tOe="auth_scheme_preference",Ma={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&uO(e.signingName)in t)return["httpBearerAuth"];if(eOe in t)return fX(t[eOe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(tOe in t)return fX(t[tOe])},"configFileSelector"),default:[]}});var lb,ub,nOe=g(()=>{Bs();bt();lb=i(t=>(t.sigv4aSigningRegionSet=zi(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),ub={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new zo("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 zo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var BX=S(ze=>{var{hasOwn:Ah,fromUtf8:sOe,fromHex:UOt,toHex:hh,toUint8Array:db,writeKey:qOt,isArrayBuffer:$Ot}=(xe(),Z(ah)),{normalizeProvider:oOe}=(we(),Z(Ly)),{escapeUri:dO,HttpRequest:lOe}=(Re(),Z(ph)),hX=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!Ah(e,o))continue;let a=sOe(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=sOe(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(AX.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!GOt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(UOt(e.value.replace(/-/g,"")),1),p}}},iOe;(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"})(iOe||(iOe={}));var GOt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,AX=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&&aOe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&aOe(e),parseInt(hh(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function aOe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(aOe,"negate");var uOe="X-Amz-Algorithm",dOe="X-Amz-Credential",CX="X-Amz-Date",pOe="X-Amz-SignedHeaders",fOe="X-Amz-Expires",IX="X-Amz-Signature",SX="X-Amz-Security-Token",HOt="X-Amz-Region-Set",wX="authorization",xX=CX.toLowerCase(),mOe="date",hOe=[wX,xX,mOe],AOe=IX.toLowerCase(),AO="x-amz-content-sha256",gOe=SX.toLowerCase(),zOt="host",yOe={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},EOe=/^proxy-/,COe=/^sec-/,VOt=[/^proxy-/i,/^sec-/i],pO="AWS4-HMAC-SHA256",WOt="AWS4-ECDSA-P256-SHA256",IOe="AWS4-HMAC-SHA256-PAYLOAD",SOe="UNSIGNED-PAYLOAD",wOe=50,bX="aws4_request",xOe=3600*24*7,bOe=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!Ah(t,n)||n.toLowerCase()===AOe)continue;let s=dO(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${dO(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${dO(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),JOt=i(t=>YOt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),YOt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),gO=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=oOe(n),this.credentialProvider=oOe(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method} ${this.getCanonicalPath(e)} -${wOe(e)} +${bOe(e)} ${s.map(o=>`${o}:${r[o]}`).join(` `)} ${s.join(";")} -${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(ub(n));let a=await o.digest();return`${s} +${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(db(n));let a=await o.digest();return`${s} ${e} ${r} -${mh(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 uO(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=zOt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},vE={},pO=[],fO=i((t,e,r)=>`${t}/${e}/${r}/${xX}`,"createScope"),xOe=i(async(t,e,r,n,s)=>{let o=await iOe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${mh(o)}:${e.sessionToken}`;if(a in vE)return vE[a];for(pO.push(a);pO.length>IOe;)delete vE[pO.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,xX])c=await iOe(t,c,l);return vE[a]=c},"getSigningKey"),WOt=i(()=>{pO.length=0,Object.keys(vE).forEach(t=>{delete vE[t]})},"clearCredentialCache"),iOe=i((t,e,r)=>{let n=new t(e);return n.update(ub(r)),n.digest()},"hmac"),AX=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(hh(AOe,o)||e?.has(o)||gOe.test(o)||yOe.test(o))&&(!r||r&&!r.has(o))||(o==="__proto__"&&MOt(n),n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),mO=i(async({headers:t,body:e},r)=>{for(let n in t)if(hh(t,n)&&n.toLowerCase()===hO)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||FOt(e)){let n=new r;return n.update(ub(e)),mh(await n.digest())}return COe},"getPayloadHash"),bOe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(hh(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),BOe=i((t,e={})=>{let{headers:r,query:n={}}=aOe.clone(t);for(let s in r){if(!hh(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"),gX=i(t=>{t=aOe.clone(t);for(let e in t.headers)hh(t.headers,e)&&fOe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),yX=class extends AO{static{i(this,"SignatureV4")}headerFormatter=new mX;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:h}=this.formatDate(n);if(s>SOe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=fO(h,f,d??this.service),y=BOe(gX(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[IX]=p.sessionToken),y.query[cOe]=dO,y.query[lOe]=`${p.accessKeyId}/${A}`,y.query[EX]=m,y.query[dOe]=s.toString(10);let E=AX(y,o,c);return y.query[uOe]=this.getCanonicalHeaderList(E),y.query[CX]=await this.getSignature(m,A,this.getSigningKey(p,f,h,d),this.createCanonicalRequest(y,E,await mO(e,this.sha256))),y}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=fO(u,l,a??this.service),f=await mO({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let h=mh(await m.digest()),A=[EOe,d,p,s,h,f].join(` -`);return this.signString(A,{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(ub(e)),mh(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=gX(e),{longDate:d,shortDate:p}=this.formatDate(r),f=fO(p,l,a??this.service);u.headers[wX]=d,c.sessionToken&&(u.headers[hOe]=c.sessionToken);let m=await mO(u,this.sha256);!bOe(hO,u.headers)&&this.applyChecksum&&(u.headers[hO]=m);let h=AX(u,s,n),A=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,h,m));return u.headers[SX]=`${dO} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${A}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,dO),a=new this.sha256(await n);return a.update(ub(o)),mh(await a.digest())}getSigningKey(e,r,n,s){return xOe(this.sha256,e,n,r,s||this.service)}},JOt={SignatureV4a:null};ze.ALGORITHM_IDENTIFIER=dO;ze.ALGORITHM_IDENTIFIER_V4A=HOt;ze.ALGORITHM_QUERY_PARAM=cOe;ze.ALWAYS_UNSIGNABLE_HEADERS=AOe;ze.AMZ_DATE_HEADER=wX;ze.AMZ_DATE_QUERY_PARAM=EX;ze.AUTH_HEADER=SX;ze.CREDENTIAL_QUERY_PARAM=lOe;ze.DATE_HEADER=pOe;ze.EVENT_ALGORITHM_IDENTIFIER=EOe;ze.EXPIRES_QUERY_PARAM=dOe;ze.GENERATED_HEADERS=fOe;ze.HOST_HEADER=$Ot;ze.KEY_TYPE_IDENTIFIER=xX;ze.MAX_CACHE_SIZE=IOe;ze.MAX_PRESIGNED_TTL=SOe;ze.PROXY_HEADER_PATTERN=gOe;ze.REGION_SET_PARAM=qOt;ze.SEC_HEADER_PATTERN=yOe;ze.SHA256_HEADER=hO;ze.SIGNATURE_HEADER=mOe;ze.SIGNATURE_QUERY_PARAM=CX;ze.SIGNED_HEADERS_QUERY_PARAM=uOe;ze.SignatureV4=yX;ze.SignatureV4Base=AO;ze.TOKEN_HEADER=hOe;ze.TOKEN_QUERY_PARAM=IX;ze.UNSIGNABLE_PATTERNS=GOt;ze.UNSIGNED_PAYLOAD=COe;ze.clearCredentialCache=WOt;ze.createScope=fO;ze.getCanonicalHeaders=AX;ze.getCanonicalQuery=wOe;ze.getPayloadHash=mO;ze.getSigningKey=xOe;ze.hasHeader=bOe;ze.moveHeadersToQuery=BOe;ze.prepareRequest=gX;ze.signatureV4aContainer=JOt});function YOt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=tb(e,eb,PE):r?n=zi(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 jOt(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 BX,RX,ROe=g(()=>{Et();Bs();BX=R(bX()),RX=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=YOt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=jOt(e,p);if(n&&!f.attributed){let m=typeof r=="object"&&r!==null;s=i(async h=>{let y=await f(h);return m&&(!y.$source||Object.keys(y.$source).length===0)?ep(y,"CREDENTIALS_CODE","e"):y},"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=zi(e.signer):e.regionInfoProvider?l=i(()=>zi(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 h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||BX.SignatureV4;return new A(h)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await zi(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},h=e.signerConstructor||BX.SignatureV4;return new h(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:zi(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(YOt,"normalizeCredentialProvider");i(jOt,"bindCallerConfig")});var NX=g(()=>{dX();jke();eOe();tOe();ROe()});var KOt,XOt,NOe,TOe=g(()=>{bt();KOt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",XOt="disable_clock_skew_correction",NOe={environmentVariableSelector:i(t=>mn(t,KOt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,XOt,qr.CONFIG),"configFileSelector"),default:!1}});var POe,_Oe=g(()=>{bt();TOe();POe=ve(NOe)});var gO={};cr(gO,{AWSSDKSigV4Signer:()=>uX,AwsSdkSigV4ASigner:()=>Gu,AwsSdkSigV4Signer:()=>yn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ma,NODE_SIGV4A_CONFIG_OPTIONS:()=>lb,getBearerTokenEnvKey:()=>lO,resolveAWSSDKSigV4Config:()=>ZOt,resolveAwsSdkSigV4AConfig:()=>cb,resolveAwsSdkSigV4Config:()=>Ql,validateSigningProperties:()=>_E});var Ql,ZOt,ts=g(()=>{NX();fX();NX();_Oe();Ql=RX(POe),ZOt=Ql});var TX=S(vp=>{var{setCredentialFeature:eLt}=(Et(),Z(La)),{CredentialsProviderError:tLt}=(bt(),Z(Mi)),vOe="AWS_ACCESS_KEY_ID",QOe="AWS_SECRET_ACCESS_KEY",DOe="AWS_SESSION_TOKEN",kOe="AWS_CREDENTIAL_EXPIRATION",OOe="AWS_CREDENTIAL_SCOPE",LOe="AWS_ACCOUNT_ID",rLt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[vOe],r=process.env[QOe],n=process.env[DOe],s=process.env[kOe],o=process.env[OOe],a=process.env[LOe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return eLt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new tLt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");vp.ENV_ACCOUNT_ID=LOe;vp.ENV_CREDENTIAL_SCOPE=OOe;vp.ENV_EXPIRATION=kOe;vp.ENV_KEY=vOe;vp.ENV_SECRET=QOe;vp.ENV_SESSION=DOe;vp.fromEnv=rLt});var Dl,db=g(()=>{Dl=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 Qp,yO=g(()=>{db();Qp=class t extends Dl{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var EO,MOe=g(()=>{db();EO=class t extends Dl{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var CO,PX=g(()=>{db();CO=i((...t)=>async()=>{if(t.length===0)throw new Dl("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 IO,_X=g(()=>{IO=i(t=>()=>Promise.resolve(t),"fromValue")});var QE,SO=g(()=>{QE=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 Vi,wO=g(()=>{Vi=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 FOe,UOe=g(()=>{FOe=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 so,xO=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(so||(so={}))});var qOe,$Oe,vX,nLt,kl,DE=g(()=>{qOe=require("node:os"),$Oe=require("node:path"),vX={},nLt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),kl=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${$Oe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=nLt();return vX[s]||(vX[s]=(0,qOe.homedir)()),vX[s]},"getHomeDir")});var QX,DX,bO,kX=g(()=>{QX="AWS_PROFILE",DX="default",bO=i(t=>t.profile||process.env[QX]||DX,"getProfileName")});var GOe,HOe,BO,OX=g(()=>{GOe=require("node:crypto"),HOe=require("node:path");DE();BO=i(t=>{let r=(0,GOe.createHash)("sha1").update(t).digest("hex");return(0,HOe.join)(kl(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var zOe,pb,VOe,LX=g(()=>{zOe=require("node:fs/promises");OX();pb={},VOe=i(async t=>{if(pb[t])return pb[t];let e=BO(t),r=await(0,zOe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Dp,WOe=g(()=>{Dp="."});var MX,JOe,YOe=g(()=>{MX=R(Kn()),JOe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(MX.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===MX.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var jOe,sLt,RO,FX=g(()=>{jOe=require("node:path");DE();sLt="AWS_CONFIG_FILE",RO=i(()=>process.env[sLt]||(0,jOe.join)(kl(),".aws","config"),"getConfigFilepath")});var KOe,oLt,XOe,ZOe=g(()=>{KOe=require("node:path");DE();oLt="AWS_SHARED_CREDENTIALS_FILE",XOe=i(()=>process.env[oLt]||(0,KOe.join)(kl(),".aws","credentials"),"getCredentialsFilepath")});var eLe,iLt,aLt,fb,UX=g(()=>{eLe=R(Kn()),iLt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,aLt=["__proto__","profile __proto__"],fb=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=iLt.exec(c);if(l){let[,u,,d]=l;Object.values(eLe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(aLt.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 tLe,qX,mb,Ah,hb=g(()=>{tLe=require("node:fs/promises"),qX={},mb={},Ah=i((t,e)=>mb[t]!==void 0?mb[t]:((!qX[t]||e?.ignoreCache)&&(qX[t]=(0,tLe.readFile)(t,"utf8")),qX[t]),"readFile")});var $X,rLe,kE,NO=g(()=>{$X=require("node:path");YOe();FX();ZOe();DE();UX();hb();rLe=i(()=>({}),"swallowError"),kE=i(async(t={})=>{let{filepath:e=XOe(),configFilepath:r=RO()}=t,n=kl(),s="~/",o=e;e.startsWith(s)&&(o=(0,$X.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,$X.join)(n,r.slice(2)));let c=await Promise.all([Ah(a,{ignoreCache:t.ignoreCache}).then(fb).then(JOe).catch(rLe),Ah(o,{ignoreCache:t.ignoreCache}).then(fb).catch(rLe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var nLe,sLe,oLe=g(()=>{nLe=R(Kn()),sLe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(nLe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var cLt,iLe,aLe=g(()=>{FX();oLe();UX();hb();cLt=i(()=>({}),"swallowError"),iLe=i(async(t={})=>Ah(t.configFilepath??RO()).then(fb).then(sLe).catch(cLt),"loadSsoSessionData")});var cLe,lLe=g(()=>{cLe=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 uLe,dLe=g(()=>{NO();lLe();uLe=i(async t=>{let e=await kE(t);return cLe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var pLe,fLe=g(()=>{LX();hb();pLe={getFileRecord(){return mb},interceptFile(t,e){mb[t]=Promise.resolve(e)},getTokenRecord(){return pb},interceptToken(t,e){pb[t]=e}}});function TO(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 GX=g(()=>{i(TO,"getSelectorName")});var mLe,hLe=g(()=>{yO();GX();mLe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Qp(r.message||`Not found in ENV: ${TO(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var ALe,gLe=g(()=>{yO();kX();NO();GX();ALe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=bO(r),{configFile:s,credentialsFile:o}=await kE(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 Qp(u.message||`Not found in config files w/ profile [${n}]: ${TO(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var lLt,PO,HX=g(()=>{_X();lLt=i(t=>typeof t=="function","isFunction"),PO=i(t=>lLt(t)?async()=>await t():IO(t),"fromStatic")});var Ab,zX=g(()=>{PX();SO();hLe();gLe();HX();Ab=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return QE(CO(mLe(t,{signingName:s,logger:o}),ALe(e,n),PO(r)))},"loadConfig")});var _O,vO,yLe,ELe,CLe,ILe=g(()=>{wO();xO();_O="AWS_USE_DUALSTACK_ENDPOINT",vO="use_dualstack_endpoint",yLe=!1,ELe={environmentVariableSelector:i(t=>Vi(t,_O,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,vO,so.CONFIG),"configFileSelector"),default:!1},CLe={environmentVariableSelector:i(t=>Vi(t,_O,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,vO,so.CONFIG),"configFileSelector"),default:void 0}});var QO,DO,SLe,wLe,xLe,bLe=g(()=>{wO();xO();QO="AWS_USE_FIPS_ENDPOINT",DO="use_fips_endpoint",SLe=!1,wLe={environmentVariableSelector:i(t=>Vi(t,QO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,DO,so.CONFIG),"configFileSelector"),default:!1},xLe={environmentVariableSelector:i(t=>Vi(t,QO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,DO,so.CONFIG),"configFileSelector"),default:void 0}});var VX,WX,BLe=g(()=>{VX=R(Kn()),WX=i(t=>t[VX.SMITHY_CONTEXT_KEY]||(t[VX.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function ut(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var RLe=g(()=>{i(ut,"hasOwn")});function uLt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Rs,NLe=g(()=>{Rs=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=uLt(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(uLt,"cloneQuery")});var gh,TLe=g(()=>{gh=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 dLt,kO,PLe=g(()=>{dLt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),kO=i((t,e=!1)=>{if(!e)return dLt.test(t);let r=t.split(".");for(let n of r)if(!kO(n))return!1;return!0},"isValidHostLabel")});function gb(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var _Le=g(()=>{i(gb,"isValidHostname")});var kp,vLe=g(()=>{kp=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function yb(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 JX=g(()=>{i(yb,"parseQueryString")});var OO,QLe=g(()=>{JX();OO=i(t=>{if(typeof t=="string")return OO(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=yb(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var nr=g(()=>{BLe();RLe();NLe();TLe();PLe();_Le();vLe();JX();QLe()});var yh,YX=g(()=>{yh=i(t=>typeof t=="function"?t():t,"deref")});function Ol(t){if(typeof t=="object")return t;if(t=t|0,LO[t])return LO[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return LO[t]=e}var LO,jX=g(()=>{LO=[];i(Ol,"translateTraits")});function Cb(t,e){if(t instanceof We)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=We;return new r(t,e)}var Eb,MO,FO,We,KX,DLe,kLe=g(()=>{YX();jX();Eb={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},MO=[],FO={},We=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;KX(s);)n.push(s[1]),s=s[0],o=yh(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,Ol(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=yh(o),DLe(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(MO[e])return MO[e]}else if(typeof e=="string"){if(FO[e])return FO[e]}else if(r&&e[Eb.ns])return e[Eb.ns];let n=yh(e);if(n instanceof t)return n;if(KX(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Ol(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[Eb.ns]=s:typeof n=="string"?FO[n]=s:typeof n=="number"?MO[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 Ol(this.memberTraits)}getOwnTraits(){return Ol(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 Cb([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 Cb([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 Cb(KX(s)?s:[s,0],e)}if(this.isDocumentSchema())return Cb([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[Eb.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),DLe=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Ll,OLe=g(()=>{Ll=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 Ns=g(()=>{YX();kLe();jX();OLe()});var XX=g(()=>{nr()});var LLe,MLe=g(()=>{XX();LLe=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:kp(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:kp(s??!1)})},"resolveCustomEndpointsConfig")});var FLe,ULe=g(()=>{FLe=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 qLe,$Le=g(()=>{XX();ULe();qLe=i(t=>{let e=kp(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?kp(typeof r=="string"?s(r):r):()=>FLe({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var GLe,ZX,e7,HLe,zLe,VLe,WLe,JLe,YLe,t7=g(()=>{GLe="AWS_EXECUTION_ENV",ZX="AWS_REGION",e7="AWS_DEFAULT_REGION",HLe="AWS_EC2_METADATA_DISABLED",zLe=["in-region","cross-region","mobile","standard","legacy"],VLe="/latest/meta-data/placement/region",WLe="/latest/api/token",JLe="x-aws-ec2-metadata-token",YLe="x-aws-ec2-metadata-token-ttl-seconds"});var jLe,pLt,ZLe,UO,KLe,fLt,XLe,r7=g(()=>{t7();jLe=1e3,pLt=6e4,ZLe=0,UO=i(async()=>{if(!process.env[HLe]&&!(Date.now(){ZLe=Date.now()+pLt},"cacheNegativeAndReturnUndefined"),fLt=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"),XLe=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:jLe,signal:AbortSignal.timeout(jLe)});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 n7,s7,qO,eMe,o7=g(()=>{r7();n7="AWS_REGION",s7="region",qO={environmentVariableSelector:i(t=>t[n7],"environmentVariableSelector"),configFileSelector:i(t=>t[s7],"configFileSelector"),default:i(async()=>{let t=await UO();if(t)return t;throw new Error("Region is missing")},"default")},eMe={preferredFile:"credentials"}});var tMe,rMe,nMe=g(()=>{nr();tMe=new Set,rMe=i((t,e=kO)=>{if(!tMe.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 tMe.add(t)},"checkRegion")});var $O,i7=g(()=>{$O=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var sMe,oMe=g(()=>{i7();sMe=i(t=>$O(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var iMe,aMe=g(()=>{nMe();oMe();i7();iMe=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=sMe(n);return rMe(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 a7,cMe=g(()=>{a7=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var lMe,uMe=g(()=>{lMe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var dMe,pMe=g(()=>{dMe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var fMe,mMe=g(()=>{fMe=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 hMe,AMe=g(()=>{cMe();uMe();pMe();mMe();hMe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=dMe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=a7(s[c]?.variants,l),d=a7(o[a]?.variants,l),p=lMe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=fMe(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 mLt,hLt,gMe,yMe=g(()=>{mLt="AWS_DEFAULTS_MODE",hLt="defaults_mode",gMe={environmentVariableSelector:i(t=>t[mLt],"environmentVariableSelector"),configFileSelector:i(t=>t[hLt],"configFileSelector"),default:"legacy"}});var EMe,ALt,gLt,CMe=g(()=>{o7();r7();zX();SO();t7();yMe();EMe=i(({region:t=Ab(qO),defaultsMode:e=Ab(gMe)}={})=>QE(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return ALt(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 ${zLe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),ALt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await gLt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),gLt=i(async()=>process.env[GLe]&&(process.env[ZX]||process.env[e7])?process.env[ZX]??process.env[e7]:UO(),"inferPhysicalRegion")});var IMe={};cr(IMe,{CONFIG_PREFIX_SEPARATOR:()=>Dp,CONFIG_USE_DUALSTACK_ENDPOINT:()=>vO,CONFIG_USE_FIPS_ENDPOINT:()=>DO,CredentialsProviderError:()=>Qp,DEFAULT_PROFILE:()=>DX,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>yLe,DEFAULT_USE_FIPS_ENDPOINT:()=>SLe,ENV_PROFILE:()=>QX,ENV_USE_DUALSTACK_ENDPOINT:()=>_O,ENV_USE_FIPS_ENDPOINT:()=>QO,NODE_REGION_CONFIG_FILE_OPTIONS:()=>eMe,NODE_REGION_CONFIG_OPTIONS:()=>qO,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ELe,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>wLe,ProviderError:()=>Dl,REGION_ENV_NAME:()=>n7,REGION_INI_NAME:()=>s7,SelectorType:()=>so,TokenProviderError:()=>EO,booleanSelector:()=>Vi,chain:()=>CO,externalDataInterceptor:()=>pLe,fromStatic:()=>PO,fromValue:()=>IO,getHomeDir:()=>kl,getProfileName:()=>bO,getRegionInfo:()=>hMe,getSSOTokenFilepath:()=>BO,getSSOTokenFromFile:()=>VOe,loadConfig:()=>Ab,loadSharedConfigFiles:()=>kE,loadSsoSessionData:()=>iLe,memoize:()=>QE,nodeDualstackConfigSelectors:()=>CLe,nodeFipsConfigSelectors:()=>xLe,numberSelector:()=>FOe,parseKnownFiles:()=>uLe,readFile:()=>Ah,resolveCustomEndpointsConfig:()=>LLe,resolveDefaultsModeConfig:()=>EMe,resolveEndpointsConfig:()=>qLe,resolveRegionConfig:()=>iMe});var SMe=g(()=>{db();yO();MOe();PX();_X();SO();wO();UOe();xO();DE();kX();OX();LX();WOe();NO();aLe();dLe();fLe();hb();zX();HX();ILe();bLe();MLe();$Le();o7();aMe();AMe();CMe()});var wMe,xMe=g(()=>{wMe=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var OE,GO,LE=g(()=>{xMe();OE=i((t,e=0,r=t.byteLength-e)=>{if(!wMe(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),GO=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 yLt,Hu,bMe=g(()=>{LE();yLt=/^[A-Za-z0-9+/]*={0,2}$/,Hu=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!yLt.exec(t))throw new TypeError("Invalid base64 string.");let e=GO(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Op,c7=g(()=>{LE();Op=i(t=>{let e=GO(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Fa,BMe=g(()=>{LE();c7();Fa=i(t=>{let e;if(typeof t=="string"?e=Op(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 OE(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function RMe(t,e,r,n){return class HO extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?HO.mutate(n(o)):HO.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,HO.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var NMe=g(()=>{i(RMe,"bindUint8ArrayBlobAdapter")});var Wi,TMe=g(()=>{LE();Wi=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 OE(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function PMe(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,rs[e[0]]+rs[e[1]]+rs[e[2]]+rs[e[3]]+"-"+rs[e[4]]+rs[e[5]]+"-"+rs[e[6]]+rs[e[7]]+"-"+rs[e[8]]+rs[e[9]]+"-"+rs[e[10]]+rs[e[11]]+rs[e[12]]+rs[e[13]]+rs[e[14]]+rs[e[15]]}}var rs,_Me=g(()=>{rs=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(PMe,"bindV4")});var l7,ELt,vMe,CLt,QMe,DMe,kMe,ILt,OMe,LMe,SLt,zO,Ib,MMe,wLt,xLt,FMe=g(()=>{l7=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&xLt.warn(wLt(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),ELt=Math.ceil(2**127*(2-2**-23)),vMe=i(t=>{let e=l7(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>ELt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),CLt=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),QMe=i(t=>kMe(t,16),"expectShort"),DMe=i(t=>kMe(t,8),"expectByte"),kMe=i((t,e)=>{let r=CLt(t);if(r!==void 0&&ILt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),ILt=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"),OMe=i(t=>l7(typeof t=="string"?zO(t):t),"strictParseDouble"),LMe=i(t=>vMe(typeof t=="string"?zO(t):t),"strictParseFloat32"),SLt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,zO=i(t=>{let e=t.match(SLt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),Ib=i(t=>QMe(typeof t=="string"?zO(t):t),"strictParseShort"),MMe=i(t=>DMe(typeof t=="string"?zO(t):t),"strictParseByte"),wLt=i(t=>String(new TypeError(t).stack||t).split(` +${hh(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 dO(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=JOt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},QE={},fO=[],mO=i((t,e,r)=>`${t}/${e}/${r}/${bX}`,"createScope"),BOe=i(async(t,e,r,n,s)=>{let o=await cOe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${hh(o)}:${e.sessionToken}`;if(a in QE)return QE[a];for(fO.push(a);fO.length>wOe;)delete QE[fO.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,bX])c=await cOe(t,c,l);return QE[a]=c},"getSigningKey"),jOt=i(()=>{fO.length=0,Object.keys(QE).forEach(t=>{delete QE[t]})},"clearCredentialCache"),cOe=i((t,e,r)=>{let n=new t(e);return n.update(db(r)),n.digest()},"hmac"),gX=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(Ah(yOe,o)||e?.has(o)||EOe.test(o)||COe.test(o))&&(!r||r&&!r.has(o))||(o==="__proto__"&&qOt(n),n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),hO=i(async({headers:t,body:e},r)=>{for(let n in t)if(Ah(t,n)&&n.toLowerCase()===AO)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||$Ot(e)){let n=new r;return n.update(db(e)),hh(await n.digest())}return SOe},"getPayloadHash"),ROe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(Ah(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),NOe=i((t,e={})=>{let{headers:r,query:n={}}=lOe.clone(t);for(let s in r){if(!Ah(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"),yX=i(t=>{t=lOe.clone(t);for(let e in t.headers)Ah(t.headers,e)&&hOe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),EX=class extends gO{static{i(this,"SignatureV4")}headerFormatter=new hX;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:h}=this.formatDate(n);if(s>xOe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=mO(h,f,d??this.service),y=NOe(yX(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[SX]=p.sessionToken),y.query[uOe]=pO,y.query[dOe]=`${p.accessKeyId}/${A}`,y.query[CX]=m,y.query[fOe]=s.toString(10);let E=gX(y,o,c);return y.query[pOe]=this.getCanonicalHeaderList(E),y.query[IX]=await this.getSignature(m,A,this.getSigningKey(p,f,h,d),this.createCanonicalRequest(y,E,await hO(e,this.sha256))),y}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=mO(u,l,a??this.service),f=await hO({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let h=hh(await m.digest()),A=[IOe,d,p,s,h,f].join(` +`);return this.signString(A,{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(db(e)),hh(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=yX(e),{longDate:d,shortDate:p}=this.formatDate(r),f=mO(p,l,a??this.service);u.headers[xX]=d,c.sessionToken&&(u.headers[gOe]=c.sessionToken);let m=await hO(u,this.sha256);!ROe(AO,u.headers)&&this.applyChecksum&&(u.headers[AO]=m);let h=gX(u,s,n),A=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,h,m));return u.headers[wX]=`${pO} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${A}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,pO),a=new this.sha256(await n);return a.update(db(o)),hh(await a.digest())}getSigningKey(e,r,n,s){return BOe(this.sha256,e,n,r,s||this.service)}},KOt={SignatureV4a:null};ze.ALGORITHM_IDENTIFIER=pO;ze.ALGORITHM_IDENTIFIER_V4A=WOt;ze.ALGORITHM_QUERY_PARAM=uOe;ze.ALWAYS_UNSIGNABLE_HEADERS=yOe;ze.AMZ_DATE_HEADER=xX;ze.AMZ_DATE_QUERY_PARAM=CX;ze.AUTH_HEADER=wX;ze.CREDENTIAL_QUERY_PARAM=dOe;ze.DATE_HEADER=mOe;ze.EVENT_ALGORITHM_IDENTIFIER=IOe;ze.EXPIRES_QUERY_PARAM=fOe;ze.GENERATED_HEADERS=hOe;ze.HOST_HEADER=zOt;ze.KEY_TYPE_IDENTIFIER=bX;ze.MAX_CACHE_SIZE=wOe;ze.MAX_PRESIGNED_TTL=xOe;ze.PROXY_HEADER_PATTERN=EOe;ze.REGION_SET_PARAM=HOt;ze.SEC_HEADER_PATTERN=COe;ze.SHA256_HEADER=AO;ze.SIGNATURE_HEADER=AOe;ze.SIGNATURE_QUERY_PARAM=IX;ze.SIGNED_HEADERS_QUERY_PARAM=pOe;ze.SignatureV4=EX;ze.SignatureV4Base=gO;ze.TOKEN_HEADER=gOe;ze.TOKEN_QUERY_PARAM=SX;ze.UNSIGNABLE_PATTERNS=VOt;ze.UNSIGNED_PAYLOAD=SOe;ze.clearCredentialCache=jOt;ze.createScope=mO;ze.getCanonicalHeaders=gX;ze.getCanonicalQuery=bOe;ze.getPayloadHash=hO;ze.getSigningKey=BOe;ze.hasHeader=ROe;ze.moveHeadersToQuery=NOe;ze.prepareRequest=yX;ze.signatureV4aContainer=KOt});function XOt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=rb(e,tb,_E):r?n=zi(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 ZOt(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 RX,NX,TOe=g(()=>{Et();Bs();RX=R(BX()),NX=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=XOt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=ZOt(e,p);if(n&&!f.attributed){let m=typeof r=="object"&&r!==null;s=i(async h=>{let y=await f(h);return m&&(!y.$source||Object.keys(y.$source).length===0)?tp(y,"CREDENTIALS_CODE","e"):y},"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=zi(e.signer):e.regionInfoProvider?l=i(()=>zi(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 h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||RX.SignatureV4;return new A(h)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await zi(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},h=e.signerConstructor||RX.SignatureV4;return new h(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:zi(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(XOt,"normalizeCredentialProvider");i(ZOt,"bindCallerConfig")});var TX=g(()=>{pX();Xke();rOe();nOe();TOe()});var eLt,tLt,POe,_Oe=g(()=>{bt();eLt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",tLt="disable_clock_skew_correction",POe={environmentVariableSelector:i(t=>mn(t,eLt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,tLt,qr.CONFIG),"configFileSelector"),default:!1}});var vOe,QOe=g(()=>{bt();_Oe();vOe=ve(POe)});var yO={};cr(yO,{AWSSDKSigV4Signer:()=>dX,AwsSdkSigV4ASigner:()=>Hu,AwsSdkSigV4Signer:()=>yn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ma,NODE_SIGV4A_CONFIG_OPTIONS:()=>ub,getBearerTokenEnvKey:()=>uO,resolveAWSSDKSigV4Config:()=>rLt,resolveAwsSdkSigV4AConfig:()=>lb,resolveAwsSdkSigV4Config:()=>Dl,validateSigningProperties:()=>vE});var Dl,rLt,ts=g(()=>{TX();mX();TX();QOe();Dl=NX(vOe),rLt=Dl});var PX=S(Qp=>{var{setCredentialFeature:nLt}=(Et(),Z(La)),{CredentialsProviderError:sLt}=(bt(),Z(Mi)),DOe="AWS_ACCESS_KEY_ID",kOe="AWS_SECRET_ACCESS_KEY",OOe="AWS_SESSION_TOKEN",LOe="AWS_CREDENTIAL_EXPIRATION",MOe="AWS_CREDENTIAL_SCOPE",FOe="AWS_ACCOUNT_ID",oLt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[DOe],r=process.env[kOe],n=process.env[OOe],s=process.env[LOe],o=process.env[MOe],a=process.env[FOe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return nLt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new sLt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");Qp.ENV_ACCOUNT_ID=FOe;Qp.ENV_CREDENTIAL_SCOPE=MOe;Qp.ENV_EXPIRATION=LOe;Qp.ENV_KEY=DOe;Qp.ENV_SECRET=kOe;Qp.ENV_SESSION=OOe;Qp.fromEnv=oLt});var kl,pb=g(()=>{kl=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 Dp,EO=g(()=>{pb();Dp=class t extends kl{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var CO,UOe=g(()=>{pb();CO=class t extends kl{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var IO,_X=g(()=>{pb();IO=i((...t)=>async()=>{if(t.length===0)throw new kl("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 SO,vX=g(()=>{SO=i(t=>()=>Promise.resolve(t),"fromValue")});var DE,wO=g(()=>{DE=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 Vi,xO=g(()=>{Vi=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 qOe,$Oe=g(()=>{qOe=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 so,bO=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(so||(so={}))});var GOe,HOe,QX,iLt,Ol,kE=g(()=>{GOe=require("node:os"),HOe=require("node:path"),QX={},iLt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Ol=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${HOe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=iLt();return QX[s]||(QX[s]=(0,GOe.homedir)()),QX[s]},"getHomeDir")});var DX,kX,BO,OX=g(()=>{DX="AWS_PROFILE",kX="default",BO=i(t=>t.profile||process.env[DX]||kX,"getProfileName")});var zOe,VOe,RO,LX=g(()=>{zOe=require("node:crypto"),VOe=require("node:path");kE();RO=i(t=>{let r=(0,zOe.createHash)("sha1").update(t).digest("hex");return(0,VOe.join)(Ol(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var WOe,fb,JOe,MX=g(()=>{WOe=require("node:fs/promises");LX();fb={},JOe=i(async t=>{if(fb[t])return fb[t];let e=RO(t),r=await(0,WOe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var kp,YOe=g(()=>{kp="."});var FX,jOe,KOe=g(()=>{FX=R(Kn()),jOe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(FX.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===FX.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var XOe,aLt,NO,UX=g(()=>{XOe=require("node:path");kE();aLt="AWS_CONFIG_FILE",NO=i(()=>process.env[aLt]||(0,XOe.join)(Ol(),".aws","config"),"getConfigFilepath")});var ZOe,cLt,eLe,tLe=g(()=>{ZOe=require("node:path");kE();cLt="AWS_SHARED_CREDENTIALS_FILE",eLe=i(()=>process.env[cLt]||(0,ZOe.join)(Ol(),".aws","credentials"),"getCredentialsFilepath")});var rLe,lLt,uLt,mb,qX=g(()=>{rLe=R(Kn()),lLt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,uLt=["__proto__","profile __proto__"],mb=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=lLt.exec(c);if(l){let[,u,,d]=l;Object.values(rLe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(uLt.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 nLe,$X,hb,gh,Ab=g(()=>{nLe=require("node:fs/promises"),$X={},hb={},gh=i((t,e)=>hb[t]!==void 0?hb[t]:((!$X[t]||e?.ignoreCache)&&($X[t]=(0,nLe.readFile)(t,"utf8")),$X[t]),"readFile")});var GX,sLe,OE,TO=g(()=>{GX=require("node:path");KOe();UX();tLe();kE();qX();Ab();sLe=i(()=>({}),"swallowError"),OE=i(async(t={})=>{let{filepath:e=eLe(),configFilepath:r=NO()}=t,n=Ol(),s="~/",o=e;e.startsWith(s)&&(o=(0,GX.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,GX.join)(n,r.slice(2)));let c=await Promise.all([gh(a,{ignoreCache:t.ignoreCache}).then(mb).then(jOe).catch(sLe),gh(o,{ignoreCache:t.ignoreCache}).then(mb).catch(sLe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var oLe,iLe,aLe=g(()=>{oLe=R(Kn()),iLe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(oLe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var dLt,cLe,lLe=g(()=>{UX();aLe();qX();Ab();dLt=i(()=>({}),"swallowError"),cLe=i(async(t={})=>gh(t.configFilepath??NO()).then(mb).then(iLe).catch(dLt),"loadSsoSessionData")});var uLe,dLe=g(()=>{uLe=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 pLe,fLe=g(()=>{TO();dLe();pLe=i(async t=>{let e=await OE(t);return uLe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var mLe,hLe=g(()=>{MX();Ab();mLe={getFileRecord(){return hb},interceptFile(t,e){hb[t]=Promise.resolve(e)},getTokenRecord(){return fb},interceptToken(t,e){fb[t]=e}}});function PO(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 HX=g(()=>{i(PO,"getSelectorName")});var ALe,gLe=g(()=>{EO();HX();ALe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Dp(r.message||`Not found in ENV: ${PO(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var yLe,ELe=g(()=>{EO();OX();TO();HX();yLe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=BO(r),{configFile:s,credentialsFile:o}=await OE(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 Dp(u.message||`Not found in config files w/ profile [${n}]: ${PO(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var pLt,_O,zX=g(()=>{vX();pLt=i(t=>typeof t=="function","isFunction"),_O=i(t=>pLt(t)?async()=>await t():SO(t),"fromStatic")});var gb,VX=g(()=>{_X();wO();gLe();ELe();zX();gb=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return DE(IO(ALe(t,{signingName:s,logger:o}),yLe(e,n),_O(r)))},"loadConfig")});var vO,QO,CLe,ILe,SLe,wLe=g(()=>{xO();bO();vO="AWS_USE_DUALSTACK_ENDPOINT",QO="use_dualstack_endpoint",CLe=!1,ILe={environmentVariableSelector:i(t=>Vi(t,vO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,QO,so.CONFIG),"configFileSelector"),default:!1},SLe={environmentVariableSelector:i(t=>Vi(t,vO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,QO,so.CONFIG),"configFileSelector"),default:void 0}});var DO,kO,xLe,bLe,BLe,RLe=g(()=>{xO();bO();DO="AWS_USE_FIPS_ENDPOINT",kO="use_fips_endpoint",xLe=!1,bLe={environmentVariableSelector:i(t=>Vi(t,DO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,kO,so.CONFIG),"configFileSelector"),default:!1},BLe={environmentVariableSelector:i(t=>Vi(t,DO,so.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Vi(t,kO,so.CONFIG),"configFileSelector"),default:void 0}});var WX,JX,NLe=g(()=>{WX=R(Kn()),JX=i(t=>t[WX.SMITHY_CONTEXT_KEY]||(t[WX.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function ut(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var TLe=g(()=>{i(ut,"hasOwn")});function fLt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Rs,PLe=g(()=>{Rs=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=fLt(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(fLt,"cloneQuery")});var yh,_Le=g(()=>{yh=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 mLt,OO,vLe=g(()=>{mLt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),OO=i((t,e=!1)=>{if(!e)return mLt.test(t);let r=t.split(".");for(let n of r)if(!OO(n))return!1;return!0},"isValidHostLabel")});function yb(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var QLe=g(()=>{i(yb,"isValidHostname")});var Op,DLe=g(()=>{Op=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Eb(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 YX=g(()=>{i(Eb,"parseQueryString")});var LO,kLe=g(()=>{YX();LO=i(t=>{if(typeof t=="string")return LO(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Eb(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var nr=g(()=>{NLe();TLe();PLe();_Le();vLe();QLe();DLe();YX();kLe()});var Eh,jX=g(()=>{Eh=i(t=>typeof t=="function"?t():t,"deref")});function Ll(t){if(typeof t=="object")return t;if(t=t|0,MO[t])return MO[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return MO[t]=e}var MO,KX=g(()=>{MO=[];i(Ll,"translateTraits")});function Ib(t,e){if(t instanceof We)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=We;return new r(t,e)}var Cb,FO,UO,We,XX,OLe,LLe=g(()=>{jX();KX();Cb={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},FO=[],UO={},We=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;XX(s);)n.push(s[1]),s=s[0],o=Eh(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,Ll(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=Eh(o),OLe(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(FO[e])return FO[e]}else if(typeof e=="string"){if(UO[e])return UO[e]}else if(r&&e[Cb.ns])return e[Cb.ns];let n=Eh(e);if(n instanceof t)return n;if(XX(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Ll(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[Cb.ns]=s:typeof n=="string"?UO[n]=s:typeof n=="number"?FO[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 Ll(this.memberTraits)}getOwnTraits(){return Ll(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 Ib([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 Ib([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 Ib(XX(s)?s:[s,0],e)}if(this.isDocumentSchema())return Ib([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[Cb.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;sArray.isArray(t)&&t.length===2,"isMemberSchema"),OLe=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Ml,MLe=g(()=>{Ml=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 Ns=g(()=>{jX();LLe();KX();MLe()});var ZX=g(()=>{nr()});var FLe,ULe=g(()=>{ZX();FLe=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Op(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Op(s??!1)})},"resolveCustomEndpointsConfig")});var qLe,$Le=g(()=>{qLe=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 GLe,HLe=g(()=>{ZX();$Le();GLe=i(t=>{let e=Op(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Op(typeof r=="string"?s(r):r):()=>qLe({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var zLe,e7,t7,VLe,WLe,JLe,YLe,jLe,KLe,r7=g(()=>{zLe="AWS_EXECUTION_ENV",e7="AWS_REGION",t7="AWS_DEFAULT_REGION",VLe="AWS_EC2_METADATA_DISABLED",WLe=["in-region","cross-region","mobile","standard","legacy"],JLe="/latest/meta-data/placement/region",YLe="/latest/api/token",jLe="x-aws-ec2-metadata-token",KLe="x-aws-ec2-metadata-token-ttl-seconds"});var XLe,hLt,tMe,qO,ZLe,ALt,eMe,n7=g(()=>{r7();XLe=1e3,hLt=6e4,tMe=0,qO=i(async()=>{if(!process.env[VLe]&&!(Date.now(){tMe=Date.now()+hLt},"cacheNegativeAndReturnUndefined"),ALt=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"),eMe=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:XLe,signal:AbortSignal.timeout(XLe)});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 s7,o7,$O,rMe,i7=g(()=>{n7();s7="AWS_REGION",o7="region",$O={environmentVariableSelector:i(t=>t[s7],"environmentVariableSelector"),configFileSelector:i(t=>t[o7],"configFileSelector"),default:i(async()=>{let t=await qO();if(t)return t;throw new Error("Region is missing")},"default")},rMe={preferredFile:"credentials"}});var nMe,sMe,oMe=g(()=>{nr();nMe=new Set,sMe=i((t,e=OO)=>{if(!nMe.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 nMe.add(t)},"checkRegion")});var GO,a7=g(()=>{GO=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var iMe,aMe=g(()=>{a7();iMe=i(t=>GO(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var cMe,lMe=g(()=>{oMe();aMe();a7();cMe=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=iMe(n);return sMe(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return GO(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var c7,uMe=g(()=>{c7=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var dMe,pMe=g(()=>{dMe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var fMe,mMe=g(()=>{fMe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var hMe,AMe=g(()=>{hMe=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 gMe,yMe=g(()=>{uMe();pMe();mMe();AMe();gMe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=fMe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=c7(s[c]?.variants,l),d=c7(o[a]?.variants,l),p=dMe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=hMe(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 gLt,yLt,EMe,CMe=g(()=>{gLt="AWS_DEFAULTS_MODE",yLt="defaults_mode",EMe={environmentVariableSelector:i(t=>t[gLt],"environmentVariableSelector"),configFileSelector:i(t=>t[yLt],"configFileSelector"),default:"legacy"}});var IMe,ELt,CLt,SMe=g(()=>{i7();n7();VX();wO();r7();CMe();IMe=i(({region:t=gb($O),defaultsMode:e=gb(EMe)}={})=>DE(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return ELt(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 ${WLe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),ELt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await CLt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),CLt=i(async()=>process.env[zLe]&&(process.env[e7]||process.env[t7])?process.env[e7]??process.env[t7]:qO(),"inferPhysicalRegion")});var wMe={};cr(wMe,{CONFIG_PREFIX_SEPARATOR:()=>kp,CONFIG_USE_DUALSTACK_ENDPOINT:()=>QO,CONFIG_USE_FIPS_ENDPOINT:()=>kO,CredentialsProviderError:()=>Dp,DEFAULT_PROFILE:()=>kX,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>CLe,DEFAULT_USE_FIPS_ENDPOINT:()=>xLe,ENV_PROFILE:()=>DX,ENV_USE_DUALSTACK_ENDPOINT:()=>vO,ENV_USE_FIPS_ENDPOINT:()=>DO,NODE_REGION_CONFIG_FILE_OPTIONS:()=>rMe,NODE_REGION_CONFIG_OPTIONS:()=>$O,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ILe,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bLe,ProviderError:()=>kl,REGION_ENV_NAME:()=>s7,REGION_INI_NAME:()=>o7,SelectorType:()=>so,TokenProviderError:()=>CO,booleanSelector:()=>Vi,chain:()=>IO,externalDataInterceptor:()=>mLe,fromStatic:()=>_O,fromValue:()=>SO,getHomeDir:()=>Ol,getProfileName:()=>BO,getRegionInfo:()=>gMe,getSSOTokenFilepath:()=>RO,getSSOTokenFromFile:()=>JOe,loadConfig:()=>gb,loadSharedConfigFiles:()=>OE,loadSsoSessionData:()=>cLe,memoize:()=>DE,nodeDualstackConfigSelectors:()=>SLe,nodeFipsConfigSelectors:()=>BLe,numberSelector:()=>qOe,parseKnownFiles:()=>pLe,readFile:()=>gh,resolveCustomEndpointsConfig:()=>FLe,resolveDefaultsModeConfig:()=>IMe,resolveEndpointsConfig:()=>GLe,resolveRegionConfig:()=>cMe});var xMe=g(()=>{pb();EO();UOe();_X();vX();wO();xO();$Oe();bO();kE();OX();LX();MX();YOe();TO();lLe();fLe();hLe();Ab();VX();zX();wLe();RLe();ULe();HLe();i7();lMe();yMe();SMe()});var bMe,BMe=g(()=>{bMe=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var LE,HO,ME=g(()=>{BMe();LE=i((t,e=0,r=t.byteLength-e)=>{if(!bMe(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),HO=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 ILt,zu,RMe=g(()=>{ME();ILt=/^[A-Za-z0-9+/]*={0,2}$/,zu=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!ILt.exec(t))throw new TypeError("Invalid base64 string.");let e=HO(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Lp,l7=g(()=>{ME();Lp=i(t=>{let e=HO(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Fa,NMe=g(()=>{ME();l7();Fa=i(t=>{let e;if(typeof t=="string"?e=Lp(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 LE(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function TMe(t,e,r,n){return class zO extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?zO.mutate(n(o)):zO.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,zO.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var PMe=g(()=>{i(TMe,"bindUint8ArrayBlobAdapter")});var Wi,_Me=g(()=>{ME();Wi=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 LE(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function vMe(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,rs[e[0]]+rs[e[1]]+rs[e[2]]+rs[e[3]]+"-"+rs[e[4]]+rs[e[5]]+"-"+rs[e[6]]+rs[e[7]]+"-"+rs[e[8]]+rs[e[9]]+"-"+rs[e[10]]+rs[e[11]]+rs[e[12]]+rs[e[13]]+rs[e[14]]+rs[e[15]]}}var rs,QMe=g(()=>{rs=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(vMe,"bindV4")});var u7,SLt,DMe,wLt,kMe,OMe,LMe,xLt,MMe,FMe,bLt,VO,Sb,UMe,BLt,RLt,qMe=g(()=>{u7=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&RLt.warn(BLt(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),SLt=Math.ceil(2**127*(2-2**-23)),DMe=i(t=>{let e=u7(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>SLt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),wLt=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),kMe=i(t=>LMe(t,16),"expectShort"),OMe=i(t=>LMe(t,8),"expectByte"),LMe=i((t,e)=>{let r=wLt(t);if(r!==void 0&&xLt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),xLt=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"),MMe=i(t=>u7(typeof t=="string"?VO(t):t),"strictParseDouble"),FMe=i(t=>DMe(typeof t=="string"?VO(t):t),"strictParseFloat32"),bLt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,VO=i(t=>{let e=t.match(bLt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),Sb=i(t=>kMe(typeof t=="string"?VO(t):t),"strictParseShort"),UMe=i(t=>OMe(typeof t=="string"?VO(t):t),"strictParseByte"),BLt=i(t=>String(new TypeError(t).stack||t).split(` `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),xLt={warn:console.warn}});function Eh(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`${bLt[n]}, ${l} ${d7[r]} ${e} ${u}:${d}:${p} GMT`}var bLt,d7,Bsn,BLt,wb,RLt,NLt,TLt,xb,bb,VO,PLt,_Lt,vLt,u7,QLt,DLt,kLt,Lp,OLt,LLt,Sb,UMe=g(()=>{FMe();bLt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],d7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Eh,"dateToUtcString");Bsn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),BLt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),wb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=BLt.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=Ib(Sb(n)),f=Lp(s,"month",1,12),m=Lp(o,"day",1,31),h=VO(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-LLt(d)),h},"parseRfc3339DateTimeWithOffset"),RLt=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$/),NLt=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$/),TLt=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})$/),xb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=RLt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return VO(Ib(Sb(o)),u7(s),Lp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=NLt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return vLt(VO(PLt(o),u7(s),Lp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=TLt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return VO(Ib(Sb(u)),u7(n),Lp(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),bb=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=OMe(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"),VO=i((t,e,r,n)=>{let s=e-1;return DLt(t,s,r),new Date(Date.UTC(t,s,r,Lp(n.hours,"hour",0,23),Lp(n.minutes,"minute",0,59),Lp(n.seconds,"seconds",0,60),OLt(n.fractionalMilliseconds)))},"buildDate"),PLt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Ib(Sb(t));return rt.getTime()-new Date().getTime()>_Lt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),u7=i(t=>{let e=d7.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),QLt=[31,28,31,30,31,30,31,31,30,31,30,31],DLt=i((t,e,r)=>{let n=QLt[e];if(e===1&&kLt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${d7[e]} in ${t}: ${r}`)},"validateDayOfMonth"),kLt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Lp=i((t,e,r,n)=>{let s=MMe(Sb(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),OLt=i(t=>t==null?0:LMe("0."+t)*1e3,"parseMilliseconds"),LLt=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"),Sb=i(t=>{let e=0;for(;e{rn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");rn.from=t=>t&&typeof t=="object"&&(t instanceof rn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?rn(String(t)):rn(JSON.stringify(t));rn.fromObject=rn.from});function p7(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var $Me=g(()=>{i(p7,"quoteHeader")});function zu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var f7,m7,h7,GMe,HMe,MLt,FLt,ULt,qLt,$Lt,A7,g7,y7,zMe=g(()=>{f7="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",m7="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",h7="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",GMe="(\\d?\\d)",HMe="(\\d{4})",MLt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),FLt=new RegExp(`^${f7}, ${GMe} ${m7} ${HMe} ${h7} GMT$`),ULt=new RegExp(`^${f7}, ${GMe}-${m7}-(\\d\\d) ${h7} GMT$`),qLt=new RegExp(`^${f7} ${m7} ( [1-9]|\\d\\d) ${h7} ${HMe}$`),$Lt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],A7=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"),g7=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=MLt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;zu(n,1,12),zu(s,1,31),zu(o,0,23),zu(a,0,59),zu(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],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),y7=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=FLt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=ULt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=qLt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),$Lt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);zu(e,1,31),zu(s,0,23),zu(o,0,59),zu(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(zu,"range")});function E7(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(E7,"splitEvery")});var Bb,WMe=g(()=>{Bb=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")});var JMe,Nt,YMe=g(()=>{JMe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Nt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!JMe.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"&&JMe.test(r.string)}}});function I7(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{jMe={},C7={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),jMe[t]=e,C7[e]=t}i(I7,"fromHex");i(Ua,"toHex")});function WO(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 w7=g(()=>{i(WO,"concatBytes")});var Rb,JO,YO=g(()=>{Rb=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),JO=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var KMe,XMe=g(()=>{KMe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var ZMe,Ysn,eFe,jO,x7,tFe,rFe=g(()=>{ZMe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ysn=Object.entries(ZMe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),eFe=ZMe.split(""),jO=6,x7=8,tFe=63});function nFe(t){let e;typeof t=="string"?e=KMe(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 sFe=g(()=>{XMe();rFe();i(nFe,"toBase64")});var oFe,iFe=g(()=>{oFe=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 b7(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function B7(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 WO(e,n)}var aFe,R7=g(()=>{w7();YO();aFe=i(async t=>JO(t)?b7(t):B7(t),"streamCollector");i(b7,"collectBlob");i(B7,"collectReadableStream")});var cFe,uFe,lFe,dFe=g(()=>{sFe();S7();iFe();R7();YO();cFe="The stream has already been transformed.",uFe=i(t=>{if(!lFe(t)&&!Rb(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(cFe);return e=!0,await aFe(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 nFe(o);if(s==="hex")return Ua(o);if(s===void 0||s==="utf8"||s==="utf-8")return oFe(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(cFe);if(e=!0,lFe(t))return n(t);if(Rb(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),lFe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var pFe,fFe,N7,mFe=g(()=>{pFe=require("node:stream");w7();R7();YO();fFe=i(t=>JO(t)?b7(t):Rb(t)?B7(t):new Promise((e,r)=>{let n=new N7,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=WO(this.bufferedBytes);e(o)})}),"streamCollector"),N7=class extends pFe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var KO,hFe,T7,AFe=g(()=>{KO=require("node:stream");LE();dFe();mFe();hFe="The stream has already been transformed.",T7=i(t=>{if(!(t instanceof KO.Readable))try{return uFe(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(hFe);return e=!0,await fFe(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?OE(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(hFe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof KO.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,KO.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});var gFe,ME,GLt,HLt,FE,En=g(()=>{gFe=require("node:crypto");bMe();BMe();NMe();c7();TMe();_Me();UMe();qMe();$Me();zMe();VMe();WMe();YMe();S7();AFe();ME=class extends RMe(Wi,Op,Fa,Hu){static{i(this,"Uint8ArrayBlobAdapter")}},GLt=gFe.getRandomValues,HLt=PMe(GLt),FE=HLt});var oo,UE=g(()=>{En();oo=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return ME.mutate(t);if(!t)return ME.mutate(new Uint8Array);let r=e.streamCollector(t);return ME.mutate(await r)},"collectBody")});function Mp(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var XO=g(()=>{i(Mp,"extendedEncodeURIComponent")});var Ji,qE=g(()=>{Ji=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var yFe,P7,ZO,EFe=g(()=>{yFe=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;yFe[t]=e>>>0}P7=4294967295,ZO=class{static{i(this,"Crc32Js")}digestLength=4;checksum=P7;update(e){for(let r=0;r>>8^yFe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^P7)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=P7}}});function zLt(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 _7,CFe,$E,IFe=g(()=>{_7=R(require("node:zlib"));EFe();CFe=typeof _7.crc32=="function"?_7.crc32:void 0,$E=CFe?zLt(CFe):ZO;i(zLt,"buildNativeClass")});var v7=g(()=>{IFe()});function SFe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Fp,Q7=g(()=>{En();Fp=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&&SFe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&SFe(e),parseInt(Ua(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(SFe,"negate")});var GE,wFe,xFe,VLt,WLt,JLt,YLt,jLt,KLt,XLt,ZLt,eMt,D7=g(()=>{nr();En();Q7();GE=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(!ut(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(Fp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!eMt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(I7(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{v7();bFe=4,Up=bFe*2,Ch=4,tMt=Up+Ch*2;i(BFe,"splitMessage")});var HE,k7=g(()=>{v7();D7();RFe();HE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new GE(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 $E;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}=BFe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var zE,O7=g(()=>{zE=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 VE,L7=g(()=>{VE=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 WE,M7=g(()=>{WE=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 JE,F7=g(()=>{JE=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 eL(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(eL,"getChunkedStream")});function NFe(t,e){let r=Nb(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 Nb(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 q7=g(()=>{i(NFe,"getUnmarshalledStream");i(Nb,"getMessageUnmarshaller")});var Ih,TFe,$7=g(()=>{k7();O7();L7();M7();F7();U7();q7();Ih=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new HE(e,r),this.utfEncoder=e}deserialize(e,r){let n=eL(e);return new WE({messageStream:new zE({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Nb(r,this.utfEncoder)})}serialize(e,r){return new VE({messageStream:new JE({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},TFe=i(t=>new Ih(t),"eventStreamSerdeProvider")});async function*rMt(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 PFe,Tb,_Fe,vFe=g(()=>{PFe=require("node:stream");$7();Tb=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Ih({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:rMt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return PFe.Readable.from(this.universalMarshaller.serialize(e,r))}},_Fe=i(t=>new Tb(t),"eventStreamSerdeProvider");i(rMt,"readableToIterable")});var QFe,DFe,kFe=g(()=>{QFe=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"),DFe=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 OFe,LFe=g(()=>{OFe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var tL,MFe=g(()=>{nr();Ns();En();tL=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(ut(f,x)&&x!=="__type"){m=x;break}let{additionalHeaders:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}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 h="";for(let y in m)if(ut(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(I=I||!!(N||_),_)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??Wi)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let v=m[h].headers[x]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[x]=BigInt(v.toString()):E[x]=Number(v):E[x]=v)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}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)ut(f.value,m)&&(n[m]=f.value[m])}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:m,value:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=Ll.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,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},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??Op)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var FFe={};cr(FFe,{EventStreamCodec:()=>HE,EventStreamMarshaller:()=>Tb,EventStreamSerde:()=>tL,HeaderMarshaller:()=>GE,Int64:()=>Fp,MessageDecoderStream:()=>zE,MessageEncoderStream:()=>VE,SmithyMessageDecoderStream:()=>WE,SmithyMessageEncoderStream:()=>JE,UniversalEventStreamMarshaller:()=>Ih,eventStreamSerdeProvider:()=>_Fe,getChunkedStream:()=>eL,getMessageUnmarshaller:()=>Nb,getUnmarshalledStream:()=>NFe,iterableToReadableStream:()=>DFe,readableStreamToIterable:()=>QFe,resolveEventStreamSerdeConfig:()=>OFe,universalEventStreamSerdeProvider:()=>TFe});var UFe=g(()=>{k7();D7();Q7();O7();L7();M7();F7();vFe();kFe();$7();U7();q7();LFe();MFe()});var qp,rL=g(()=>{nr();Ns();nr();qE();qp=class extends Ji{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Ll(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Rs}getResponseType(){return gh}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)ut(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)ut(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=We.of(r.input),o=Ol(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,!gb(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(()=>(UFe(),FFe)),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 nL,qFe=g(()=>{nr();Ns();En();nr();rL();UE();XO();nL=class extends qp{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=We.of(e?.input),d=[],p=[],f=!1,m,h=new Rs({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=Ol(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(Mp).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,Mp(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!ut(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(ut(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=We.of(e.output),a={};if(n.statusCode>=300){let l=await oo(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(!ut(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 oo(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 oo(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=We.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]=T7(n.body);else if(n.body){let A=await oo(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=E7(A,",",2):E=Bb(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(ut(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var YE,G7=g(()=>{nr();Ns();nr();rL();UE();YE=class extends qp{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=We.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Rs({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 h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}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=We.of(e.output),a={};if(n.statusCode>=300){let l=await oo(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(!ut(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 oo(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var sL,H7=g(()=>{XO();sL=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=>Mp(c)).join("/"):Mp(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function $Fe(t,e){return new Pb(t,e)}var Pb,GFe=g(()=>{nr();H7();i($Fe,"requestBuilder");Pb=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 Rs({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=sL(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 io(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 $p=g(()=>{i(io,"determineTimestampFormat")});var jE,z7=g(()=>{Ns();En();qE();$p();jE=class extends Ji{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=We.of(e);if(n.isListSchema())return Bb(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Hu)(r);if(n.isTimestampSchema())switch(io(n,this.settings)){case 5:return g7(r);case 6:return y7(r);case 7:return A7(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=rn.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Nt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Wi)((this.serdeContext?.base64Decoder??Hu)(e))}}});var oL,HFe=g(()=>{Ns();En();qE();z7();oL=class extends Ji{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new jE(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=We.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Wi;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Op;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 KE,V7=g(()=>{Ns();En();qE();$p();KE=class extends Ji{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=We.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(io(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Eh(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??Fa)(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:p7(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=rn.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Fa)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=FE():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var iL,zFe=g(()=>{Ns();V7();iL=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new KE(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=We.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 VFe,aL,WFe=g(()=>{VFe=R(Kn()),aL=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=VFe.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 cL,JFe=g(()=>{cL=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 YFe,jFe,KFe=g(()=>{YFe=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"),jFe=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function W7(t){return e=>async r=>{let n=r.request;if(Rs.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(XFe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[XFe]:String(a)})}catch{}}return e({...r,request:n})}}var XFe,J7,ZFe,e1e=g(()=>{nr();XFe="content-length";i(W7,"contentLengthMiddleware");J7={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ZFe=i(t=>({applyToStack:i(e=>{e.add(W7(t.bodyLengthChecker),J7)},"applyToStack")}),"getContentLengthPlugin")});var Gp,nMt,lL=g(()=>{Gp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,nMt),"escapeUri"),nMt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var t1e,r1e=g(()=>{lL();t1e=i(t=>t.split("/").map(Gp).join("/"),"escapeUriPath")});function n1e(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Gp(r),Array.isArray(n))for(let s=0,o=n.length;s{lL();i(n1e,"buildQueryString")});var ao,Sh=g(()=>{ao=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var XE,Y7=g(()=>{XE=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 uL(){if(_b===void 0)try{if(typeof Buffer!="function")_b=!1;else{let t=JSON.parse(Buffer.from([123,125]));_b=t!==null&&typeof t=="object"}}catch{_b=!1}return _b}var _b,j7=g(()=>{i(uL,"detectBufferParsing")});function ZE(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?oMt(n,e)?e:new Nt(n,"bigDecimal"):sMt(n)?new Nt(n,"bigDecimal"):/[eE]/.test(n)?iMt(n):BigInt(n)}return e}function sMt(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 iMt(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 dL=g(()=>{En();i(ZE,"jsonReviver");i(sMt,"isFractionalBigNumeric");i(oMt,"isRepresentable");i(K7,"expandToDecimal");i(iMt,"expandExponentToBigInt")});function eC(t){let e=We.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(X7 in r)return r[X7];let n=pL(e,new Set);return r[X7]=n,n}return pL(e,new Set)}function pL(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(pL(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(pL(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var X7,fL=g(()=>{Ns();X7=Symbol.for("@aws-sdk/reviver");i(eC,"needsReviver");i(pL,"_check")});var o1e,i1e=g(()=>{UE();En();o1e=i((t,e)=>oo(t,e).then(r=>(e?.utf8Encoder??Wi)(r)),"collectBodyString")});async function wh(t,e,r){let n;if(uL()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await oo(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await o1e(t,e)),n.length===0)return{};let s=r&&eC(r)?ZE: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 c1e,a1e,Z7,l1e,u1e,mL,d1e,vb=g(()=>{UE();i1e();j7();dL();fL();i(wh,"parseJsonBody");c1e=i(async(t,e)=>{let r=await wh(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),a1e=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),Z7=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"),l1e=i((t,e)=>d1e(t,e,["header","code","type"]),"loadRestJsonErrorCode"),u1e=i((t,e,r=!1)=>d1e(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),mL=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"),d1e=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=a1e(t??{},"x-amzn-errortype");if(s!==void 0)return Z7(t[s]);break;case"code":let o=a1e(e??{},"code");if(o&&e[o]!==void 0)return Z7(e[o]);break;case"type":if(e?.__type!==void 0)return Z7(e.__type);break}},"loadErrorCode")});function Ml(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var hL=g(()=>{i(Ml,"writeKey")});var tC,eZ=g(()=>{$p();Ns();En();Sh();Y7();j7();dL();fL();vb();hL();nr();tC=class extends ao{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=eC(e)?ZE:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&uL()){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 wh(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=We.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{En();AL=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>p1e+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."),p1e=e),this.string=Wi(this)}return this.string}},p1e=0});function tZ(t){return AL.allocUnsafe(t)}var gL,m1e,h1e,aMt,cMt,rC,yL,EL,A1e,lMt,uMt,dMt,Fl,g1e,nC,rZ=g(()=>{$p();Ns();En();Sh();nr();f1e();gL=new TextEncoder,m1e=123,h1e=125,aMt=91,cMt=93,rC=34,yL=58,EL=44,A1e=92,lMt=new Uint8Array([116,114,117,101]),uMt=new Uint8Array([102,97,108,115,101]),dMt=new Uint8Array([110,117,108,108]),Fl=new Array(128).fill(null);Fl[8]="b";Fl[9]="t";Fl[10]="n";Fl[12]="f";Fl[13]="r";Fl[34]='"';Fl[92]="\\";for(let t=0;t<32;t++)Fl[t]===null&&(Fl[t]="u00"+t.toString(16).padStart(2,"0"));g1e=2048;i(tZ,"alloc");nC=class t extends ao{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=tZ(g1e)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=We.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=We.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),gL.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=tZ(g1e),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=Fl[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=A1e;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=gL.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++]=rC}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=A1e,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++]=rC;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++]=rC,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&We.of(e).isIdempotencyToken()){this.writeAsciiQuoted(FE());return}return}this.ensure(4),this.json.set(dMt,this.i),this.i+=4;return}let s=We.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(rn.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Nt?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 Nt){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??Fa)(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(lMt,a),a+=4):(c.set(uMt,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++]=m1e;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++]=EL),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++]=yL,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++]=yL,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++]=EL),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=yL,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=h1e}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{Sh();eZ();rZ();sC=class extends ao{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new nC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new tC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var CL,y1e=g(()=>{G7();Ns();nr();nZ();vb();CL=class extends YE{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new sC({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()}),yh(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=WX(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=mL(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=Ll.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=Ll.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=We.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var oC,sZ=g(()=>{$p();Ns();En();En();nr();Sh();Y7();dL();fL();vb();hL();oC=class extends ao{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=eC(e)?ZE:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await wh(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=We.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 XE(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!ut(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=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)ut(r,l)&&(l==="__proto__"&&Ml(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Hu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?rn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(io(s,this.settings)){case 5:return wb(r);case 6:return xb(r);case 7:return bb(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 Nt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Nt(a.string,a.type):new Nt(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(!ut(r,c))continue;c==="__proto__"&&Ml(a);let l=r[c];l instanceof Nt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var E1e,IL,C1e=g(()=>{En();E1e="\u039D",IL=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 Nt){let n=`${E1e+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${E1e+"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 iC,oZ=g(()=>{$p();Ns();En();Sh();C1e();hL();nr();iC=class extends ao{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=We.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 IL;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=We.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=We.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 h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&Ml(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!ut(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(!ut(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Ml(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Fa)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(io(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Eh(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Nt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return FE();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?rn.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??Fa)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Fa)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!ut(r,c))continue;let l=r[c];c==="__proto__"&&Ml(a),l instanceof Nt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var SL,I1e=g(()=>{Sh();sZ();oZ();SL=class extends ao{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new iC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new oC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var S1e={};cr(S1e,{Field:()=>aL,Fields:()=>cL,FromStringShapeDeserializer:()=>jE,HttpBindingProtocol:()=>nL,HttpInterceptingShapeDeserializer:()=>oL,HttpInterceptingShapeSerializer:()=>iL,HttpProtocol:()=>qp,HttpRequest:()=>Rs,HttpResponse:()=>gh,JsonCodec:()=>SL,JsonCodec2:()=>sC,JsonShapeDeserializer:()=>oC,JsonShapeDeserializer2:()=>tC,JsonShapeSerializer:()=>iC,JsonShapeSerializer2:()=>nC,RequestBuilder:()=>Pb,RpcProtocol:()=>YE,SerdeContext:()=>Ji,SmithyRpcV2JsonProtocol:()=>CL,ToStringShapeSerializer:()=>KE,buildQueryString:()=>n1e,collectBody:()=>oo,contentLengthMiddleware:()=>W7,contentLengthMiddlewareOptions:()=>J7,determineTimestampFormat:()=>io,escapeUri:()=>Gp,escapeUriPath:()=>t1e,extendedEncodeURIComponent:()=>Mp,getContentLengthPlugin:()=>ZFe,getHttpHandlerExtensionConfiguration:()=>YFe,isValidHostname:()=>gb,loadJsonRpcErrorCode:()=>u1e,loadRestJsonErrorCode:()=>l1e,loadSmithyRpcV2JsonErrorCode:()=>mL,parseJsonBody:()=>wh,parseJsonErrorBody:()=>c1e,parseQueryString:()=>yb,parseUrl:()=>OO,requestBuilder:()=>$Fe,resolveHttpHandlerRuntimeConfig:()=>jFe,resolvedPath:()=>sL});var w1e=g(()=>{UE();XO();qFe();rL();G7();GFe();H7();z7();HFe();zFe();V7();$p();qE();WFe();JFe();nr();nr();nr();KFe();e1e();lL();r1e();s1e();nr();nr();y1e();vb();I1e();oZ();sZ();nZ();rZ();eZ()});var xL=S(Yi=>{var{ProviderError:iZ,CredentialsProviderError:Hp,loadConfig:dZ}=(SMe(),Z(IMe)),pMt=require("node:http"),{parseUrl:fMt}=(w1e(),Z(S1e)),R1e=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),N1e=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),T1e=1e3,P1e=0,pZ=i(({maxRetries:t=P1e,timeout:e=T1e})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function kb(t){return new Promise((e,r)=>{let n=pMt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new iZ("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new iZ("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new iZ("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(kb,"httpRequest");var cZ=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=pZ(t);return()=>cZ(async()=>{let n=await EMt({logger:t.logger}),s=JSON.parse(await hMt(e,n));if(!R1e(s))throw new Hp("Invalid response received from instance metadata service.",{logger:t.logger});return N1e(s)},r)},"fromContainerMetadata"),hMt=i(async(t,e)=>(process.env[lZ]&&(e.headers={...e.headers,Authorization:process.env[lZ]}),(await kb({...e,timeout:t})).toString()),"requestFromEcsImds"),AMt="169.254.170.2",gMt=new Set(["localhost","127.0.0.1"]),yMt=new Set(["http:","https:"]),EMt=i(async({logger:t})=>{if(process.env[wL])return{hostname:AMt,path:process.env[wL]};if(process.env[Qb]){let e;try{e=new URL(process.env[Qb])}catch{throw new Hp(`${process.env[Qb]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!gMt.has(e.hostname))throw new Hp(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!yMt.has(e.protocol))throw new Hp(`${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 Hp(`The container metadata credential provider cannot be used unless the ${wL} or ${Qb} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),uZ=class t extends Hp{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},Db;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(Db||(Db={}));var CMt="AWS_EC2_METADATA_SERVICE_ENDPOINT",IMt="ec2_metadata_service_endpoint",SMt={environmentVariableSelector:i(t=>t[CMt],"environmentVariableSelector"),configFileSelector:i(t=>t[IMt],"configFileSelector"),default:void 0},aC;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(aC||(aC={}));var wMt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",xMt="ec2_metadata_service_endpoint_mode",bMt={environmentVariableSelector:i(t=>t[wMt],"environmentVariableSelector"),configFileSelector:i(t=>t[xMt],"configFileSelector"),default:aC.IPv4},_1e=i(async()=>fMt(await BMt()||await RMt()),"getInstanceMetadataEndpoint"),BMt=i(async()=>dZ(SMt)(),"getFromEndpointConfig"),RMt=i(async()=>{let t=await dZ(bMt)();switch(t){case aC.IPv4:return Db.IPv4;case aC.IPv6:return Db.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(aC)}`)}},"getFromEndpointModeConfig"),NMt=300,TMt=300,PMt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",x1e=i((t,e)=>{let r=NMt+Math.floor(Math.random()*TMt),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: `+PMt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),_Mt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()_Mt(DMt(t),{logger:t.logger}),"fromInstanceMetadata"),DMt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=pZ(t),a=i(async(c,l)=>{if(e||l.headers?.[B1e]==null){let p=!1,f=!1,m=await dZ({environmentVariableSelector:i(h=>{let A=h[aZ];if(f=!!A&&A!=="false",A===void 0)throw new Hp(`${aZ} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(h=>{let A=h[b1e];return p=!!A&&A!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let h=[];throw t.ec2MetadataV1Disabled&&h.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&h.push(`config file profile (${b1e})`),f&&h.push(`process environment variable (${aZ})`),new uZ(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${h.join(", ")}].`)}}let d=(await cZ(async()=>{let p;try{p=await OMt(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return cZ(async()=>{let p;try{p=await LMt(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await _1e();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 kMt({...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:{[B1e]:l},timeout:s})}}},"getInstanceMetadataProvider"),kMt=i(async t=>kb({...t,path:vMt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),OMt=i(async t=>(await kb({...t,path:v1e})).toString(),"getProfile"),LMt=i(async(t,e,r)=>{let n=JSON.parse((await kb({...e,path:v1e+t})).toString());if(!R1e(n))throw new Hp("Invalid response received from instance metadata service.",{logger:r.logger});return N1e(n)},"getCredentialsFromProfile");Yi.DEFAULT_MAX_RETRIES=P1e;Yi.DEFAULT_TIMEOUT=T1e;Yi.ENV_CMDS_AUTH_TOKEN=lZ;Yi.ENV_CMDS_FULL_URI=Qb;Yi.ENV_CMDS_RELATIVE_URI=wL;Yi.Endpoint=Db;Yi.fromContainerMetadata=mMt;Yi.fromInstanceMetadata=QMt;Yi.getInstanceMetadataEndpoint=_1e;Yi.httpRequest=kb;Yi.providerConfigFromInit=pZ});var Vu=S(Mb=>{var{hasOwn:F1e}=(xe(),Z(ih)),{streamCollector:MMt}=(xe(),Z(ih));Mb.streamCollector=MMt;var{buildQueryString:U1e,HttpResponse:q1e}=(Re(),Z(dh)),bL=require("node:https"),{Readable:FMt}=require("node:stream"),fZ=require("node:http2");function RL(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(RL,"buildAbortError");var UMt=["ECONNRESET","EPIPE","ETIMEDOUT"],$1e=i(t=>{let e={};for(let r in t){if(!F1e(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Cn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},Q1e=1e3,qMt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Cn.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",()=>{Cn.clearTimeout(o)}):Cn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Cn.setTimeout(n.bind(null,Q1e),Q1e)},"setConnectionTimeout"),$Mt=i((t,e,r=0,n,s)=>r?Cn.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"),GMt=3e3,HMt=i((t,{keepAlive:e,keepAliveMsecs:r},n=GMt)=>{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):Cn.setTimeout(s,n)},"setSocketKeepAlive"),Ob=i(t=>{let e=t?.defaultSocketTimeout;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0},"resolveDefaultSocketTimeout"),D1e=3e3,k1e=i((t,e,r=0,n=!1)=>{let s;n&&t.once("response",c=>s=c);let o=i(c=>{let l=r-c,u=i(()=>{let d=Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (${n?"service default socket timeout":"configured by client requestHandler"}).`),{name:"TimeoutError"});n&&s?.destroy(d),t.destroy(),e(d)},"onTimeout");t.socket?(t.socket.setTimeout(l,u),t.on("close",()=>t.socket?.removeListener("timeout",u))):t.setTimeout(l,u)},"registerTimeout");if(0Cn.clearTimeout(a)),0):a},"setSocketTimeout"),O1e=6e3;async function G1e(t,e,r=O1e,n=!1){let s=e.headers,o=s?s.Expect||s.expect:void 0,a=-1,c=!0;!n&&o==="100-continue"&&(c=await Promise.race([new Promise(l=>{a=Number(Cn.setTimeout(()=>l(!0),Math.max(O1e,r)))}),new Promise(l=>{t.on("continue",()=>{Cn.clearTimeout(a),l(!0)}),t.on("response",()=>{Cn.clearTimeout(a),l(!1)}),t.on("error",()=>{Cn.clearTimeout(a),l(!1)})})])),c&&zMt(t,e.body)}i(G1e,"writeRequestBody");function zMt(t,e){if(e instanceof FMt){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(zMt,"writeBody");var VMt=0,BL,L1e,mZ=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. +`),"stackTraceWarning"),RLt={warn:console.warn}});function Ch(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`${NLt[n]}, ${l} ${p7[r]} ${e} ${u}:${d}:${p} GMT`}var NLt,p7,Dsn,TLt,xb,PLt,_Lt,vLt,bb,Bb,WO,QLt,DLt,kLt,d7,OLt,LLt,MLt,Mp,FLt,ULt,wb,$Me=g(()=>{qMe();NLt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Ch,"dateToUtcString");Dsn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),TLt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),xb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=TLt.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=Sb(wb(n)),f=Mp(s,"month",1,12),m=Mp(o,"day",1,31),h=WO(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-ULt(d)),h},"parseRfc3339DateTimeWithOffset"),PLt=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$/),_Lt=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$/),vLt=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})$/),bb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=PLt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return WO(Sb(wb(o)),d7(s),Mp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=_Lt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return kLt(WO(QLt(o),d7(s),Mp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=vLt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return WO(Sb(wb(u)),d7(n),Mp(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Bb=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=MMe(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"),WO=i((t,e,r,n)=>{let s=e-1;return LLt(t,s,r),new Date(Date.UTC(t,s,r,Mp(n.hours,"hour",0,23),Mp(n.minutes,"minute",0,59),Mp(n.seconds,"seconds",0,60),FLt(n.fractionalMilliseconds)))},"buildDate"),QLt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Sb(wb(t));return rt.getTime()-new Date().getTime()>DLt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),d7=i(t=>{let e=p7.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),OLt=[31,28,31,30,31,30,31,31,30,31,30,31],LLt=i((t,e,r)=>{let n=OLt[e];if(e===1&&MLt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${p7[e]} in ${t}: ${r}`)},"validateDayOfMonth"),MLt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Mp=i((t,e,r,n)=>{let s=UMe(wb(t));if(sn)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),FLt=i(t=>t==null?0:FMe("0."+t)*1e3,"parseMilliseconds"),ULt=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"),wb=i(t=>{let e=0;for(;e{rn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");rn.from=t=>t&&typeof t=="object"&&(t instanceof rn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?rn(String(t)):rn(JSON.stringify(t));rn.fromObject=rn.from});function f7(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var HMe=g(()=>{i(f7,"quoteHeader")});function Vu(t,e,r){let n=Number(t);if(nr)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var m7,h7,A7,zMe,VMe,qLt,$Lt,GLt,HLt,zLt,g7,y7,E7,WMe=g(()=>{m7="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",h7="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",A7="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",zMe="(\\d?\\d)",VMe="(\\d{4})",qLt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),$Lt=new RegExp(`^${m7}, ${zMe} ${h7} ${VMe} ${A7} GMT$`),GLt=new RegExp(`^${m7}, ${zMe}-${h7}-(\\d\\d) ${A7} GMT$`),HLt=new RegExp(`^${m7} ${h7} ( [1-9]|\\d\\d) ${A7} ${VMe}$`),zLt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g7=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"),y7=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=qLt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Vu(n,1,12),Vu(s,1,31),Vu(o,0,23),Vu(a,0,59),Vu(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],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),E7=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=$Lt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=GLt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=HLt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),zLt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Vu(e,1,31),Vu(s,0,23),Vu(o,0,59),Vu(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(Vu,"range")});function C7(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(C7,"splitEvery")});var Rb,YMe=g(()=>{Rb=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")});var jMe,Nt,KMe=g(()=>{jMe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Nt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!jMe.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"&&jMe.test(r.string)}}});function S7(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{XMe={},I7={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),XMe[t]=e,I7[e]=t}i(S7,"fromHex");i(Ua,"toHex")});function JO(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 x7=g(()=>{i(JO,"concatBytes")});var Nb,YO,jO=g(()=>{Nb=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),YO=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var ZMe,eFe=g(()=>{ZMe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var tFe,non,rFe,KO,b7,nFe,sFe=g(()=>{tFe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",non=Object.entries(tFe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),rFe=tFe.split(""),KO=6,b7=8,nFe=63});function oFe(t){let e;typeof t=="string"?e=ZMe(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 iFe=g(()=>{eFe();sFe();i(oFe,"toBase64")});var aFe,cFe=g(()=>{aFe=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 B7(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function R7(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 JO(e,n)}var lFe,N7=g(()=>{x7();jO();lFe=i(async t=>YO(t)?B7(t):R7(t),"streamCollector");i(B7,"collectBlob");i(R7,"collectReadableStream")});var uFe,pFe,dFe,fFe=g(()=>{iFe();w7();cFe();N7();jO();uFe="The stream has already been transformed.",pFe=i(t=>{if(!dFe(t)&&!Nb(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(uFe);return e=!0,await lFe(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 oFe(o);if(s==="hex")return Ua(o);if(s===void 0||s==="utf8"||s==="utf-8")return aFe(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(uFe);if(e=!0,dFe(t))return n(t);if(Nb(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),dFe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var mFe,hFe,T7,AFe=g(()=>{mFe=require("node:stream");x7();N7();jO();hFe=i(t=>YO(t)?B7(t):Nb(t)?R7(t):new Promise((e,r)=>{let n=new T7,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=JO(this.bufferedBytes);e(o)})}),"streamCollector"),T7=class extends mFe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var XO,gFe,P7,yFe=g(()=>{XO=require("node:stream");ME();fFe();AFe();gFe="The stream has already been transformed.",P7=i(t=>{if(!(t instanceof XO.Readable))try{return pFe(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(gFe);return e=!0,await hFe(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?LE(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(gFe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof XO.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,XO.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});var EFe,FE,VLt,WLt,UE,En=g(()=>{EFe=require("node:crypto");RMe();NMe();PMe();l7();_Me();QMe();$Me();GMe();HMe();WMe();JMe();YMe();KMe();w7();yFe();FE=class extends TMe(Wi,Lp,Fa,zu){static{i(this,"Uint8ArrayBlobAdapter")}},VLt=EFe.getRandomValues,WLt=vMe(VLt),UE=WLt});var oo,qE=g(()=>{En();oo=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return FE.mutate(t);if(!t)return FE.mutate(new Uint8Array);let r=e.streamCollector(t);return FE.mutate(await r)},"collectBody")});function Fp(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var ZO=g(()=>{i(Fp,"extendedEncodeURIComponent")});var Ji,$E=g(()=>{Ji=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var CFe,_7,eL,IFe=g(()=>{CFe=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;CFe[t]=e>>>0}_7=4294967295,eL=class{static{i(this,"Crc32Js")}digestLength=4;checksum=_7;update(e){for(let r=0;r>>8^CFe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^_7)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=_7}}});function JLt(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 v7,SFe,GE,wFe=g(()=>{v7=R(require("node:zlib"));IFe();SFe=typeof v7.crc32=="function"?v7.crc32:void 0,GE=SFe?JLt(SFe):eL;i(JLt,"buildNativeClass")});var Q7=g(()=>{wFe()});function xFe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Up,D7=g(()=>{En();Up=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&&xFe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&xFe(e),parseInt(Ua(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(xFe,"negate")});var HE,bFe,BFe,YLt,jLt,KLt,XLt,ZLt,eMt,tMt,rMt,nMt,k7=g(()=>{nr();En();D7();HE=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(!ut(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(Up.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!nMt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(S7(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n{Q7();RFe=4,qp=RFe*2,Ih=4,sMt=qp+Ih*2;i(NFe,"splitMessage")});var zE,O7=g(()=>{Q7();k7();TFe();zE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new HE(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 GE;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}=NFe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var VE,L7=g(()=>{VE=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 WE,M7=g(()=>{WE=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 JE,F7=g(()=>{JE=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 YE,U7=g(()=>{YE=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 tL(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(tL,"getChunkedStream")});function PFe(t,e){let r=Tb(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 Tb(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 $7=g(()=>{i(PFe,"getUnmarshalledStream");i(Tb,"getMessageUnmarshaller")});var Sh,_Fe,G7=g(()=>{O7();L7();M7();F7();U7();q7();$7();Sh=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new zE(e,r),this.utfEncoder=e}deserialize(e,r){let n=tL(e);return new JE({messageStream:new VE({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Tb(r,this.utfEncoder)})}serialize(e,r){return new WE({messageStream:new YE({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},_Fe=i(t=>new Sh(t),"eventStreamSerdeProvider")});async function*oMt(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 vFe,Pb,QFe,DFe=g(()=>{vFe=require("node:stream");G7();Pb=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Sh({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:oMt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return vFe.Readable.from(this.universalMarshaller.serialize(e,r))}},QFe=i(t=>new Pb(t),"eventStreamSerdeProvider");i(oMt,"readableToIterable")});var kFe,OFe,LFe=g(()=>{kFe=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"),OFe=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 MFe,FFe=g(()=>{MFe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var rL,UFe=g(()=>{nr();Ns();En();rL=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(ut(f,x)&&x!=="__type"){m=x;break}let{additionalHeaders:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}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 h="";for(let y in m)if(ut(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(I=I||!!(N||_),_)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??Wi)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let v=m[h].headers[x]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[x]=BigInt(v.toString()):E[x]=Number(v):E[x]=v)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}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)ut(f.value,m)&&(n[m]=f.value[m])}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:m,value:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=Ml.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,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},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??Lp)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var qFe={};cr(qFe,{EventStreamCodec:()=>zE,EventStreamMarshaller:()=>Pb,EventStreamSerde:()=>rL,HeaderMarshaller:()=>HE,Int64:()=>Up,MessageDecoderStream:()=>VE,MessageEncoderStream:()=>WE,SmithyMessageDecoderStream:()=>JE,SmithyMessageEncoderStream:()=>YE,UniversalEventStreamMarshaller:()=>Sh,eventStreamSerdeProvider:()=>QFe,getChunkedStream:()=>tL,getMessageUnmarshaller:()=>Tb,getUnmarshalledStream:()=>PFe,iterableToReadableStream:()=>OFe,readableStreamToIterable:()=>kFe,resolveEventStreamSerdeConfig:()=>MFe,universalEventStreamSerdeProvider:()=>_Fe});var $Fe=g(()=>{O7();k7();D7();L7();M7();F7();U7();DFe();LFe();G7();q7();$7();FFe();UFe()});var $p,nL=g(()=>{nr();Ns();nr();$E();$p=class extends Ji{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Ml(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Rs}getResponseType(){return yh}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)ut(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)ut(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=We.of(r.input),o=Ll(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,!yb(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(()=>($Fe(),qFe)),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 sL,GFe=g(()=>{nr();Ns();En();nr();nL();qE();ZO();sL=class extends $p{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=We.of(e?.input),d=[],p=[],f=!1,m,h=new Rs({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=Ll(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(Fp).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,Fp(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!ut(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(ut(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=We.of(e.output),a={};if(n.statusCode>=300){let l=await oo(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(!ut(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 oo(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 oo(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=We.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]=P7(n.body);else if(n.body){let A=await oo(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=C7(A,",",2):E=Rb(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(ut(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var jE,H7=g(()=>{nr();Ns();nr();nL();qE();jE=class extends $p{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=We.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Rs({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 h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}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=We.of(e.output),a={};if(n.statusCode>=300){let l=await oo(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(!ut(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 oo(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var oL,z7=g(()=>{ZO();oL=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=>Fp(c)).join("/"):Fp(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function HFe(t,e){return new _b(t,e)}var _b,zFe=g(()=>{nr();z7();i(HFe,"requestBuilder");_b=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 Rs({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=oL(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 io(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 Gp=g(()=>{i(io,"determineTimestampFormat")});var KE,V7=g(()=>{Ns();En();$E();Gp();KE=class extends Ji{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=We.of(e);if(n.isListSchema())return Rb(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??zu)(r);if(n.isTimestampSchema())switch(io(n,this.settings)){case 5:return y7(r);case 6:return E7(r);case 7:return g7(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=rn.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Nt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Wi)((this.serdeContext?.base64Decoder??zu)(e))}}});var iL,VFe=g(()=>{Ns();En();$E();V7();iL=class extends Ji{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new KE(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=We.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Wi;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Lp;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 XE,W7=g(()=>{Ns();En();$E();Gp();XE=class extends Ji{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=We.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(io(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Ch(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??Fa)(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:f7(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=rn.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Fa)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=UE():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var aL,WFe=g(()=>{Ns();W7();aL=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new XE(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=We.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 JFe,cL,YFe=g(()=>{JFe=R(Kn()),cL=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=JFe.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 lL,jFe=g(()=>{lL=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 KFe,XFe,ZFe=g(()=>{KFe=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"),XFe=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function J7(t){return e=>async r=>{let n=r.request;if(Rs.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(e1e)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[e1e]:String(a)})}catch{}}return e({...r,request:n})}}var e1e,Y7,t1e,r1e=g(()=>{nr();e1e="content-length";i(J7,"contentLengthMiddleware");Y7={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},t1e=i(t=>({applyToStack:i(e=>{e.add(J7(t.bodyLengthChecker),Y7)},"applyToStack")}),"getContentLengthPlugin")});var Hp,iMt,uL=g(()=>{Hp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,iMt),"escapeUri"),iMt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var n1e,s1e=g(()=>{uL();n1e=i(t=>t.split("/").map(Hp).join("/"),"escapeUriPath")});function o1e(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Hp(r),Array.isArray(n))for(let s=0,o=n.length;s{uL();i(o1e,"buildQueryString")});var ao,wh=g(()=>{ao=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var ZE,j7=g(()=>{ZE=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 dL(){if(vb===void 0)try{if(typeof Buffer!="function")vb=!1;else{let t=JSON.parse(Buffer.from([123,125]));vb=t!==null&&typeof t=="object"}}catch{vb=!1}return vb}var vb,K7=g(()=>{i(dL,"detectBufferParsing")});function eC(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?cMt(n,e)?e:new Nt(n,"bigDecimal"):aMt(n)?new Nt(n,"bigDecimal"):/[eE]/.test(n)?lMt(n):BigInt(n)}return e}function aMt(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 lMt(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 pL=g(()=>{En();i(eC,"jsonReviver");i(aMt,"isFractionalBigNumeric");i(cMt,"isRepresentable");i(X7,"expandToDecimal");i(lMt,"expandExponentToBigInt")});function tC(t){let e=We.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(Z7 in r)return r[Z7];let n=fL(e,new Set);return r[Z7]=n,n}return fL(e,new Set)}function fL(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(fL(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(fL(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var Z7,mL=g(()=>{Ns();Z7=Symbol.for("@aws-sdk/reviver");i(tC,"needsReviver");i(fL,"_check")});var a1e,c1e=g(()=>{qE();En();a1e=i((t,e)=>oo(t,e).then(r=>(e?.utf8Encoder??Wi)(r)),"collectBodyString")});async function xh(t,e,r){let n;if(dL()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await oo(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await a1e(t,e)),n.length===0)return{};let s=r&&tC(r)?eC: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 u1e,l1e,eZ,d1e,p1e,hL,f1e,Qb=g(()=>{qE();c1e();K7();pL();mL();i(xh,"parseJsonBody");u1e=i(async(t,e)=>{let r=await xh(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),l1e=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),eZ=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"),d1e=i((t,e)=>f1e(t,e,["header","code","type"]),"loadRestJsonErrorCode"),p1e=i((t,e,r=!1)=>f1e(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),hL=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"),f1e=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=l1e(t??{},"x-amzn-errortype");if(s!==void 0)return eZ(t[s]);break;case"code":let o=l1e(e??{},"code");if(o&&e[o]!==void 0)return eZ(e[o]);break;case"type":if(e?.__type!==void 0)return eZ(e.__type);break}},"loadErrorCode")});function Fl(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var AL=g(()=>{i(Fl,"writeKey")});var rC,tZ=g(()=>{Gp();Ns();En();wh();j7();K7();pL();mL();Qb();AL();nr();rC=class extends ao{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=tC(e)?eC:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&dL()){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 xh(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=We.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{En();gL=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>m1e+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."),m1e=e),this.string=Wi(this)}return this.string}},m1e=0});function rZ(t){return gL.allocUnsafe(t)}var yL,A1e,g1e,uMt,dMt,nC,EL,CL,y1e,pMt,fMt,mMt,Ul,E1e,sC,nZ=g(()=>{Gp();Ns();En();wh();nr();h1e();yL=new TextEncoder,A1e=123,g1e=125,uMt=91,dMt=93,nC=34,EL=58,CL=44,y1e=92,pMt=new Uint8Array([116,114,117,101]),fMt=new Uint8Array([102,97,108,115,101]),mMt=new Uint8Array([110,117,108,108]),Ul=new Array(128).fill(null);Ul[8]="b";Ul[9]="t";Ul[10]="n";Ul[12]="f";Ul[13]="r";Ul[34]='"';Ul[92]="\\";for(let t=0;t<32;t++)Ul[t]===null&&(Ul[t]="u00"+t.toString(16).padStart(2,"0"));E1e=2048;i(rZ,"alloc");sC=class t extends ao{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=rZ(E1e)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=We.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=We.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),yL.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=rZ(E1e),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=Ul[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=y1e;for(let a=0;a=55296&&s<=56319){let o=n+1=56320&&o<=57343){this.ensure(4);let{written:a}=yL.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++]=nC}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=y1e,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++]=nC;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++]=nC,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&We.of(e).isIdempotencyToken()){this.writeAsciiQuoted(UE());return}return}this.ensure(4),this.json.set(mMt,this.i),this.i+=4;return}let s=We.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(rn.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Nt?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 Nt){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??Fa)(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(pMt,a),a+=4):(c.set(fMt,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++]=A1e;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++]=CL),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++]=EL,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++]=EL,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++]=CL),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=EL,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=g1e}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{wh();tZ();nZ();oC=class extends ao{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new sC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new rC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var IL,C1e=g(()=>{H7();Ns();nr();sZ();Qb();IL=class extends jE{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new oC({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()}),Eh(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=JX(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=hL(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=Ml.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=Ml.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=We.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var iC,oZ=g(()=>{Gp();Ns();En();En();nr();wh();j7();pL();mL();Qb();AL();iC=class extends ao{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=tC(e)?eC:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await xh(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=We.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 ZE(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!ut(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=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)ut(r,l)&&(l==="__proto__"&&Fl(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return zu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?rn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(io(s,this.settings)){case 5:return xb(r);case 6:return bb(r);case 7:return Bb(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 Nt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Nt(a.string,a.type):new Nt(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(!ut(r,c))continue;c==="__proto__"&&Fl(a);let l=r[c];l instanceof Nt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var I1e,SL,S1e=g(()=>{En();I1e="\u039D",SL=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 Nt){let n=`${I1e+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${I1e+"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 aC,iZ=g(()=>{Gp();Ns();En();wh();S1e();AL();nr();aC=class extends ao{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=We.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 SL;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=We.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=We.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 h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&Fl(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!ut(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(!ut(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Fl(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Fa)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(io(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Ch(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Nt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return UE();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?rn.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??Fa)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Fa)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!ut(r,c))continue;let l=r[c];c==="__proto__"&&Fl(a),l instanceof Nt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var wL,w1e=g(()=>{wh();oZ();iZ();wL=class extends ao{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new aC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new iC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var x1e={};cr(x1e,{Field:()=>cL,Fields:()=>lL,FromStringShapeDeserializer:()=>KE,HttpBindingProtocol:()=>sL,HttpInterceptingShapeDeserializer:()=>iL,HttpInterceptingShapeSerializer:()=>aL,HttpProtocol:()=>$p,HttpRequest:()=>Rs,HttpResponse:()=>yh,JsonCodec:()=>wL,JsonCodec2:()=>oC,JsonShapeDeserializer:()=>iC,JsonShapeDeserializer2:()=>rC,JsonShapeSerializer:()=>aC,JsonShapeSerializer2:()=>sC,RequestBuilder:()=>_b,RpcProtocol:()=>jE,SerdeContext:()=>Ji,SmithyRpcV2JsonProtocol:()=>IL,ToStringShapeSerializer:()=>XE,buildQueryString:()=>o1e,collectBody:()=>oo,contentLengthMiddleware:()=>J7,contentLengthMiddlewareOptions:()=>Y7,determineTimestampFormat:()=>io,escapeUri:()=>Hp,escapeUriPath:()=>n1e,extendedEncodeURIComponent:()=>Fp,getContentLengthPlugin:()=>t1e,getHttpHandlerExtensionConfiguration:()=>KFe,isValidHostname:()=>yb,loadJsonRpcErrorCode:()=>p1e,loadRestJsonErrorCode:()=>d1e,loadSmithyRpcV2JsonErrorCode:()=>hL,parseJsonBody:()=>xh,parseJsonErrorBody:()=>u1e,parseQueryString:()=>Eb,parseUrl:()=>LO,requestBuilder:()=>HFe,resolveHttpHandlerRuntimeConfig:()=>XFe,resolvedPath:()=>oL});var b1e=g(()=>{qE();ZO();GFe();nL();H7();zFe();z7();V7();VFe();WFe();W7();Gp();$E();YFe();jFe();nr();nr();nr();ZFe();r1e();uL();s1e();i1e();nr();nr();C1e();Qb();w1e();iZ();oZ();sZ();nZ();tZ()});var bL=S(Yi=>{var{ProviderError:aZ,CredentialsProviderError:zp,loadConfig:pZ}=(xMe(),Z(wMe)),hMt=require("node:http"),{parseUrl:AMt}=(b1e(),Z(x1e)),T1e=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),P1e=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),_1e=1e3,v1e=0,fZ=i(({maxRetries:t=v1e,timeout:e=_1e})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function Ob(t){return new Promise((e,r)=>{let n=hMt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new aZ("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new aZ("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new aZ("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(Ob,"httpRequest");var lZ=i((t,e)=>{let r=t();for(let n=0;n{let{timeout:e,maxRetries:r}=fZ(t);return()=>lZ(async()=>{let n=await SMt({logger:t.logger}),s=JSON.parse(await yMt(e,n));if(!T1e(s))throw new zp("Invalid response received from instance metadata service.",{logger:t.logger});return P1e(s)},r)},"fromContainerMetadata"),yMt=i(async(t,e)=>(process.env[uZ]&&(e.headers={...e.headers,Authorization:process.env[uZ]}),(await Ob({...e,timeout:t})).toString()),"requestFromEcsImds"),EMt="169.254.170.2",CMt=new Set(["localhost","127.0.0.1"]),IMt=new Set(["http:","https:"]),SMt=i(async({logger:t})=>{if(process.env[xL])return{hostname:EMt,path:process.env[xL]};if(process.env[Db]){let e;try{e=new URL(process.env[Db])}catch{throw new zp(`${process.env[Db]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!CMt.has(e.hostname))throw new zp(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!IMt.has(e.protocol))throw new zp(`${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 zp(`The container metadata credential provider cannot be used unless the ${xL} or ${Db} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),dZ=class t extends zp{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},kb;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(kb||(kb={}));var wMt="AWS_EC2_METADATA_SERVICE_ENDPOINT",xMt="ec2_metadata_service_endpoint",bMt={environmentVariableSelector:i(t=>t[wMt],"environmentVariableSelector"),configFileSelector:i(t=>t[xMt],"configFileSelector"),default:void 0},cC;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(cC||(cC={}));var BMt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",RMt="ec2_metadata_service_endpoint_mode",NMt={environmentVariableSelector:i(t=>t[BMt],"environmentVariableSelector"),configFileSelector:i(t=>t[RMt],"configFileSelector"),default:cC.IPv4},Q1e=i(async()=>AMt(await TMt()||await PMt()),"getInstanceMetadataEndpoint"),TMt=i(async()=>pZ(bMt)(),"getFromEndpointConfig"),PMt=i(async()=>{let t=await pZ(NMt)();switch(t){case cC.IPv4:return kb.IPv4;case cC.IPv6:return kb.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(cC)}`)}},"getFromEndpointModeConfig"),_Mt=300,vMt=300,QMt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",B1e=i((t,e)=>{let r=_Mt+Math.floor(Math.random()*vMt),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: `+QMt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),DMt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()DMt(LMt(t),{logger:t.logger}),"fromInstanceMetadata"),LMt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=fZ(t),a=i(async(c,l)=>{if(e||l.headers?.[N1e]==null){let p=!1,f=!1,m=await pZ({environmentVariableSelector:i(h=>{let A=h[cZ];if(f=!!A&&A!=="false",A===void 0)throw new zp(`${cZ} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(h=>{let A=h[R1e];return p=!!A&&A!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let h=[];throw t.ec2MetadataV1Disabled&&h.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&h.push(`config file profile (${R1e})`),f&&h.push(`process environment variable (${cZ})`),new dZ(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${h.join(", ")}].`)}}let d=(await lZ(async()=>{let p;try{p=await FMt(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return lZ(async()=>{let p;try{p=await UMt(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await Q1e();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 MMt({...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:{[N1e]:l},timeout:s})}}},"getInstanceMetadataProvider"),MMt=i(async t=>Ob({...t,path:kMt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),FMt=i(async t=>(await Ob({...t,path:D1e})).toString(),"getProfile"),UMt=i(async(t,e,r)=>{let n=JSON.parse((await Ob({...e,path:D1e+t})).toString());if(!T1e(n))throw new zp("Invalid response received from instance metadata service.",{logger:r.logger});return P1e(n)},"getCredentialsFromProfile");Yi.DEFAULT_MAX_RETRIES=v1e;Yi.DEFAULT_TIMEOUT=_1e;Yi.ENV_CMDS_AUTH_TOKEN=uZ;Yi.ENV_CMDS_FULL_URI=Db;Yi.ENV_CMDS_RELATIVE_URI=xL;Yi.Endpoint=kb;Yi.fromContainerMetadata=gMt;Yi.fromInstanceMetadata=OMt;Yi.getInstanceMetadataEndpoint=Q1e;Yi.httpRequest=Ob;Yi.providerConfigFromInit=fZ});var Wu=S(Fb=>{var{hasOwn:q1e}=(xe(),Z(ah)),{streamCollector:qMt}=(xe(),Z(ah));Fb.streamCollector=qMt;var{buildQueryString:$1e,HttpResponse:G1e}=(Re(),Z(ph)),BL=require("node:https"),{Readable:$Mt}=require("node:stream"),mZ=require("node:http2");function NL(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(NL,"buildAbortError");var GMt=["ECONNRESET","EPIPE","ETIMEDOUT"],H1e=i(t=>{let e={};for(let r in t){if(!q1e(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Cn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},k1e=1e3,HMt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Cn.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",()=>{Cn.clearTimeout(o)}):Cn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Cn.setTimeout(n.bind(null,k1e),k1e)},"setConnectionTimeout"),zMt=i((t,e,r=0,n,s)=>r?Cn.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"),VMt=3e3,WMt=i((t,{keepAlive:e,keepAliveMsecs:r},n=VMt)=>{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):Cn.setTimeout(s,n)},"setSocketKeepAlive"),Lb=i(t=>{let e=t?.defaultSocketTimeout;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0},"resolveDefaultSocketTimeout"),O1e=3e3,L1e=i((t,e,r=0,n=!1)=>{let s;n&&t.once("response",c=>s=c);let o=i(c=>{let l=r-c,u=i(()=>{let d=Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (${n?"service default socket timeout":"configured by client requestHandler"}).`),{name:"TimeoutError"});n&&s?.destroy(d),t.destroy(),e(d)},"onTimeout");t.socket?(t.socket.setTimeout(l,u),t.on("close",()=>t.socket?.removeListener("timeout",u))):t.setTimeout(l,u)},"registerTimeout");if(0Cn.clearTimeout(a)),0):a},"setSocketTimeout"),M1e=6e3;async function z1e(t,e,r=M1e,n=!1){let s=e.headers,o=s?s.Expect||s.expect:void 0,a=-1,c=!0;!n&&o==="100-continue"&&(c=await Promise.race([new Promise(l=>{a=Number(Cn.setTimeout(()=>l(!0),Math.max(M1e,r)))}),new Promise(l=>{t.on("continue",()=>{Cn.clearTimeout(a),l(!0)}),t.on("response",()=>{Cn.clearTimeout(a),l(!1)}),t.on("error",()=>{Cn.clearTimeout(a),l(!1)})})])),c&&JMt(t,e.body)}i(z1e,"writeRequestBody");function JMt(t,e){if(e instanceof $Mt){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(JMt,"writeBody");var YMt=0,RL,F1e,hZ=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,f=-1,m=-1,h=-1,A=i(()=>{Cn.clearTimeout(d),Cn.clearTimeout(p),Cn.clearTimeout(f),Cn.clearTimeout(m),Cn.clearTimeout(h)},"clearTimeouts"),y=i(async oe=>{await u,A(),c(oe)},"resolve"),E=i(async oe=>{await u,A(),l(oe)},"reject");if(r?.aborted){let oe=RL(r);E(oe);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?bL.Agent:BL)({keepAlive:!1,maxSockets:1/0})),d=Cn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?U1e(e.query):"",_;if(e.username!=null||e.password!=null){let oe=e.username??"",Q=e.password??"";_=`${oe}:${Q}`}let v=e.path;N&&(v+=`?${N}`),e.fragment&&(v+=`#${e.fragment}`);let Y=e.hostname??"";Y[0]==="["&&Y.endsWith("]")?Y=e.hostname.slice(1,-1):Y=e.hostname;let Qe={headers:e.headers,host:Y,method:e.method,path:v,port:e.port,agent:b,auth:_},De=(a?bL.request:L1e)(Qe,oe=>{let Q=new q1e({statusCode:oe.statusCode||-1,reason:oe.statusMessage,headers:$1e(oe.headers),body:oe});y({response:Q})});if(De.on("error",oe=>{UMt.includes(oe.code)?E(Object.assign(oe,{name:"TimeoutError"})):E(oe)}),r){let oe=i(()=>{De.destroy();let Q=RL(r);E(Q)},"onAbort");if(typeof r.addEventListener=="function"){let Q=r;Q.addEventListener("abort",oe,{once:!0}),De.once("close",()=>Q.removeEventListener("abort",oe))}else r.onabort=oe}let ce=n??s.requestTimeout;p=qMt(De,E,s.connectionTimeout),f=$Mt(De,E,ce,s.throwOnRequestTimeout,o??console);let Tt=s.socketTimeout===void 0?Ob(s):void 0;Tt?m=k1e(De,E,Tt,!0):m=k1e(De,E,s.socketTimeout);let Be=Qe.agent;typeof Be=="object"&&"keepAlive"in Be&&(h=HMt(De,{keepAlive:Be.keepAlive,keepAliveMsecs:Be.keepAliveMsecs})),u=G1e(De,e,ce,this.externalAgent).catch(oe=>(A(),l(oe)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>{switch(e){case Symbol.for("logger"):e="logger",r=n.logger??r;break;case Symbol.for("@smithy/defaultSocketTimeout"):e="defaultSocketTimeout",r=Ob(n)??r;break}return{...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,f;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,defaultSocketTimeout:Ob(e),socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(()=>f??=(async()=>{let m=require("node:http"),{Agent:h,request:A}=m.default??m;return L1e=A,BL=h,a instanceof BL||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new BL({keepAlive:d,maxSockets:p,...a})})(),"httpAgentProvider"),httpsAgent:c instanceof bL.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new bL.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},WMt=new Uint16Array(1),Lb=class{static{i(this,"ClientHttp2SessionRef")}id=WMt[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}},hZ=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Lb(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()}},AZ=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 Lb(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 Lb(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 hZ;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?fZ.connect(e):fZ.connect(e,this.connectOptions)}},{constants:M1e}=fZ,gZ=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new AZ({});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){let p=await this.configProvider;this.config={...p,defaultSocketTimeout:Ob(p)};let{disableConcurrentStreams:f,maxConcurrentStreams:m,nodeHttp2ConnectOptions:h}=this.config;this.connectionManager.setDisableConcurrentStreams(f??!1),m&&this.connectionManager.setMaxConcurrentStreams(m),h&&this.connectionManager.setNodeHttp2ConnectOptions(h)}let{requestTimeout:o,disableConcurrentStreams:a,sessionTimeout:c}=this.config,l=a||s,u=n??o,d=u===void 0&&c===void 0?this.config.defaultSocketTimeout:void 0;return new Promise((p,f)=>{let m=!1,h,A=i(async Q=>{await h,p(Q)},"resolve"),y=i(async Q=>{await h,f(Q)},"reject");if(r?.aborted){m=!0;let Q=RL(r);y(Q);return}let{hostname:E,method:I,port:x,protocol:b,query:N}=e,_="";if(e.username!=null||e.password!=null){let Q=e.username??"",Ve=e.password??"";_=`${Q}:${Ve}@`}let v=`${b}//${_}${E}${x?`:${x}`:""}`,Y={destination:new URL(v)},Qe={requestTimeout:this.config?.sessionTimeout,isEventStream:s},ke=l?this.connectionManager.createIsolatedSession(Y,Qe):this.connectionManager.lease(Y,Qe),De=ke.deref(),ce=i(Q=>{l&&ke.destroy(),m=!0,y(Q)},"rejectWithDestroy"),Tt=N?U1e(N):"",Be=e.path;Tt&&(Be+=`?${Tt}`),e.fragment&&(Be+=`#${e.fragment}`);let oe=De.request({...e.headers,[M1e.HTTP2_HEADER_PATH]:Be,[M1e.HTTP2_HEADER_METHOD]:I});if(u?oe.setTimeout(u,()=>{oe.close();let Q=new Error(`Stream timed out because of no activity for ${u} ms`);Q.name="TimeoutError",ce(Q)}):d&&(oe.setTimeout(d,()=>{let Q=new Error(`Stream timed out because of no activity for ${d} ms`);Q.name="TimeoutError",m=!0,y(Q),oe.destroy(Q),l&&ke.destroy()}),oe.once("response",()=>oe.setTimeout(d))),r){let Q=i(()=>{oe.close();let Ve=RL(r);ce(Ve)},"onAbort");if(typeof r.addEventListener=="function"){let Ve=r;Ve.addEventListener("abort",Q,{once:!0}),oe.once("close",()=>Ve.removeEventListener("abort",Q))}else r.onabort=Q}oe.on("frameError",(Q,Ve,ja)=>{ce(new Error(`Frame type id ${Q} in stream id ${ja} has failed with code ${Ve}.`))}),oe.on("error",ce),oe.on("aborted",()=>{ce(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${oe.rstCode}.`))}),oe.on("response",Q=>{let Ve=new q1e({statusCode:Q[":status"]??-1,headers:$1e(Q),body:oe});m=!0,A({response:Ve}),l&&(De.close(),oe.on("end",()=>{ke.destroy()}))}),oe.on("close",()=>{if(l?ke.destroy():this.connectionManager.release(Y,ke),!m){let Q=new Error("Unexpected error: http2 request did not get a response");De.destroyed&&(Q.name="TimeoutError"),ce(Q)}}),h=G1e(oe,e,u)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(e===Symbol.for("@smithy/defaultSocketTimeout")&&(e="defaultSocketTimeout",r=Ob(n)??r),{...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Mb.DEFAULT_REQUEST_TIMEOUT=VMt;Mb.NodeHttp2Handler=gZ;Mb.NodeHttpHandler=mZ});var yZ=S(z1e=>{var{setCredentialFeature:JMt}=(Et(),Z(La)),{CredentialsProviderError:xh}=(bt(),Z(Mi)),{NodeHttpHandler:YMt}=Vu(),jMt=require("node:fs/promises"),{HttpRequest:KMt}=(Re(),Z(dh)),{sdkStreamMixin:XMt,parseRfc3339DateTime:ZMt}=(xe(),Z(ih)),eFt="169.254.170.2",tFt="169.254.170.23",rFt="[fd00:ec2::23]",nFt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===eFt||t.hostname===tFt||t.hostname===rFt)){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 xh(`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,h=-1,A=i(()=>{Cn.clearTimeout(d),Cn.clearTimeout(p),Cn.clearTimeout(f),Cn.clearTimeout(m),Cn.clearTimeout(h)},"clearTimeouts"),y=i(async oe=>{await u,A(),c(oe)},"resolve"),E=i(async oe=>{await u,A(),l(oe)},"reject");if(r?.aborted){let oe=NL(r);E(oe);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?BL.Agent:RL)({keepAlive:!1,maxSockets:1/0})),d=Cn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?$1e(e.query):"",_;if(e.username!=null||e.password!=null){let oe=e.username??"",Q=e.password??"";_=`${oe}:${Q}`}let v=e.path;N&&(v+=`?${N}`),e.fragment&&(v+=`#${e.fragment}`);let Y=e.hostname??"";Y[0]==="["&&Y.endsWith("]")?Y=e.hostname.slice(1,-1):Y=e.hostname;let Qe={headers:e.headers,host:Y,method:e.method,path:v,port:e.port,agent:b,auth:_},De=(a?BL.request:F1e)(Qe,oe=>{let Q=new G1e({statusCode:oe.statusCode||-1,reason:oe.statusMessage,headers:H1e(oe.headers),body:oe});y({response:Q})});if(De.on("error",oe=>{GMt.includes(oe.code)?E(Object.assign(oe,{name:"TimeoutError"})):E(oe)}),r){let oe=i(()=>{De.destroy();let Q=NL(r);E(Q)},"onAbort");if(typeof r.addEventListener=="function"){let Q=r;Q.addEventListener("abort",oe,{once:!0}),De.once("close",()=>Q.removeEventListener("abort",oe))}else r.onabort=oe}let ce=n??s.requestTimeout;p=HMt(De,E,s.connectionTimeout),f=zMt(De,E,ce,s.throwOnRequestTimeout,o??console);let Tt=s.socketTimeout===void 0?Lb(s):void 0;Tt?m=L1e(De,E,Tt,!0):m=L1e(De,E,s.socketTimeout);let Be=Qe.agent;typeof Be=="object"&&"keepAlive"in Be&&(h=WMt(De,{keepAlive:Be.keepAlive,keepAliveMsecs:Be.keepAliveMsecs})),u=z1e(De,e,ce,this.externalAgent).catch(oe=>(A(),l(oe)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>{switch(e){case Symbol.for("logger"):e="logger",r=n.logger??r;break;case Symbol.for("@smithy/defaultSocketTimeout"):e="defaultSocketTimeout",r=Lb(n)??r;break}return{...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,f;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,defaultSocketTimeout:Lb(e),socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(()=>f??=(async()=>{let m=require("node:http"),{Agent:h,request:A}=m.default??m;return F1e=A,RL=h,a instanceof RL||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new RL({keepAlive:d,maxSockets:p,...a})})(),"httpAgentProvider"),httpsAgent:c instanceof BL.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new BL.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},jMt=new Uint16Array(1),Mb=class{static{i(this,"ClientHttp2SessionRef")}id=jMt[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}},AZ=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Mb(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()}},gZ=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 Mb(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 Mb(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 AZ;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?mZ.connect(e):mZ.connect(e,this.connectOptions)}},{constants:U1e}=mZ,yZ=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new gZ({});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){let p=await this.configProvider;this.config={...p,defaultSocketTimeout:Lb(p)};let{disableConcurrentStreams:f,maxConcurrentStreams:m,nodeHttp2ConnectOptions:h}=this.config;this.connectionManager.setDisableConcurrentStreams(f??!1),m&&this.connectionManager.setMaxConcurrentStreams(m),h&&this.connectionManager.setNodeHttp2ConnectOptions(h)}let{requestTimeout:o,disableConcurrentStreams:a,sessionTimeout:c}=this.config,l=a||s,u=n??o,d=u===void 0&&c===void 0?this.config.defaultSocketTimeout:void 0;return new Promise((p,f)=>{let m=!1,h,A=i(async Q=>{await h,p(Q)},"resolve"),y=i(async Q=>{await h,f(Q)},"reject");if(r?.aborted){m=!0;let Q=NL(r);y(Q);return}let{hostname:E,method:I,port:x,protocol:b,query:N}=e,_="";if(e.username!=null||e.password!=null){let Q=e.username??"",Ve=e.password??"";_=`${Q}:${Ve}@`}let v=`${b}//${_}${E}${x?`:${x}`:""}`,Y={destination:new URL(v)},Qe={requestTimeout:this.config?.sessionTimeout,isEventStream:s},ke=l?this.connectionManager.createIsolatedSession(Y,Qe):this.connectionManager.lease(Y,Qe),De=ke.deref(),ce=i(Q=>{l&&ke.destroy(),m=!0,y(Q)},"rejectWithDestroy"),Tt=N?$1e(N):"",Be=e.path;Tt&&(Be+=`?${Tt}`),e.fragment&&(Be+=`#${e.fragment}`);let oe=De.request({...e.headers,[U1e.HTTP2_HEADER_PATH]:Be,[U1e.HTTP2_HEADER_METHOD]:I});if(u?oe.setTimeout(u,()=>{oe.close();let Q=new Error(`Stream timed out because of no activity for ${u} ms`);Q.name="TimeoutError",ce(Q)}):d&&(oe.setTimeout(d,()=>{let Q=new Error(`Stream timed out because of no activity for ${d} ms`);Q.name="TimeoutError",m=!0,y(Q),oe.destroy(Q),l&&ke.destroy()}),oe.once("response",()=>oe.setTimeout(d))),r){let Q=i(()=>{oe.close();let Ve=NL(r);ce(Ve)},"onAbort");if(typeof r.addEventListener=="function"){let Ve=r;Ve.addEventListener("abort",Q,{once:!0}),oe.once("close",()=>Ve.removeEventListener("abort",Q))}else r.onabort=Q}oe.on("frameError",(Q,Ve,ja)=>{ce(new Error(`Frame type id ${Q} in stream id ${ja} has failed with code ${Ve}.`))}),oe.on("error",ce),oe.on("aborted",()=>{ce(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${oe.rstCode}.`))}),oe.on("response",Q=>{let Ve=new G1e({statusCode:Q[":status"]??-1,headers:H1e(Q),body:oe});m=!0,A({response:Ve}),l&&(De.close(),oe.on("end",()=>{ke.destroy()}))}),oe.on("close",()=>{if(l?ke.destroy():this.connectionManager.release(Y,ke),!m){let Q=new Error("Unexpected error: http2 request did not get a response");De.destroyed&&(Q.name="TimeoutError"),ce(Q)}}),h=z1e(oe,e,u)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(e===Symbol.for("@smithy/defaultSocketTimeout")&&(e="defaultSocketTimeout",r=Lb(n)??r),{...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Fb.DEFAULT_REQUEST_TIMEOUT=YMt;Fb.NodeHttp2Handler=yZ;Fb.NodeHttpHandler=hZ});var EZ=S(W1e=>{var{setCredentialFeature:KMt}=(Et(),Z(La)),{CredentialsProviderError:bh}=(bt(),Z(Mi)),{NodeHttpHandler:XMt}=Wu(),ZMt=require("node:fs/promises"),{HttpRequest:eFt}=(Re(),Z(ph)),{sdkStreamMixin:tFt,parseRfc3339DateTime:rFt}=(xe(),Z(ah)),nFt="169.254.170.2",sFt="169.254.170.23",oFt="[fd00:ec2::23]",iFt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===nFt||t.hostname===sFt||t.hostname===oFt)){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 bh(`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 sFt(t){return new KMt({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(sFt,"createGetRequest");async function oFt(t,e){let n=await XMt(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 xh("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:ZMt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new xh(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new xh(`Server responded with status: ${t.statusCode}`,{logger:e})}i(oFt,"getCredentials");var iFt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper"),aFt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",cFt="http://169.254.170.2",lFt="AWS_CONTAINER_CREDENTIALS_FULL_URI",uFt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",dFt="AWS_CONTAINER_AUTHORIZATION_TOKEN",pFt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[aFt],n=t.awsContainerCredentialsFullUri??process.env[lFt],s=t.awsContainerAuthorizationToken??process.env[dFt],o=t.awsContainerAuthorizationTokenFile??process.env[uFt],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=`${cFt}${r}`;else if(n)e=n;else throw new xh(`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);nFt(c,t.logger);let l=YMt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=iFt(async()=>{let p=sFt(c);o?p.headers.Authorization=H1e((await jMt.readFile(o)).toString()):s&&(p.headers.Authorization=H1e(s));try{let f=await l.handle(p,{requestTimeout:u});return oFt(f.response).then(m=>JMt(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new xh(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),H1e=i(t=>{if(t.includes(`\r -`))throw new xh("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");z1e.fromHttp=pFt});function fFt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function mFt(t){return{schemeId:"smithy.api#noAuth"}}var V1e,W1e,J1e,EZ=g(()=>{ts();we();V1e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(fFt,"createAwsAuthSigv4HttpAuthOption");i(mFt,"createSmithyApiNoAuthHttpAuthOption");W1e=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(mFt(t)):e.push(fFt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),J1e=i(t=>{let e=Ql(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Y1e,j1e,CZ=g(()=>{Y1e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),j1e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var zp,Fb=g(()=>{zp={name:"@aws-sdk/nested-clients",version:"3.997.54",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.979.1","@aws-sdk/signature-v4-multi-region":"^3.996.51","@aws-sdk/types":"^3.975.0","@smithy/core":"^3.38.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.14.0","@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 IZ,K1e=g(()=>{IZ=Symbol("@smithy/core/cbor::tagSymbol")});var Ub,SZ=g(()=>{Ub=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 QL(t){let e=t.getSchema(),r=e[X1e];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 nUe(t){return DL?Buffer.allocUnsafe(t):new Uint8Array(t)}function dC(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Ul(Yo());return}Ct(1),qe[Ne++]=246;return}if(t.isUnitSchema()){Ct(1),In(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){NL(e);return}if(t.isTimestampSchema()&&e instanceof Date){BZ(e);return}if(t.isStructSchema()){yFt(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){tUe(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){xZ(t,e,!1,n);return}if(e instanceof Date){BZ(e);return}if(e instanceof Uint8Array){NL(e);return}if(e instanceof je){iUe(e);return}if(e[IZ]){let o=e;oUe(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?tUe(t,e,!0,n):xZ(t,e,!0,n);return}if(t.isBigDecimalSchema()){pC(e);return}xZ(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??Er)(e);NL(o);return}Ul(e);return}if(typeof e=="number"){Ct(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?kL(e):QZ(e);return}if(typeof e=="boolean"){Ct(1),qe[Ne++]=224|(e?21:20);return}if(typeof e=="bigint"){_L(e);return}Ul(String(e))}function yFt(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[f,m]of t.structIterator()){let h=e[f];if(h!=null){Ct(9),In(5,1),Ul(f),dC(m,h,t,r),p=!0;break}}if(!p){let{$unknown:f}=e;Array.isArray(f)?(Ct(9),In(5,1),Ul(f[0]),pC(f[1])):(Ct(9),In(5,0))}return}let n=QL(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=Ne;Ne+=l;let d=0;for(let p=0;p>8,qe[u+2]=d&255)}function tUe(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?kL(t):QZ(t);return}if(typeof t=="boolean"){Ct(1),qe[Ne++]=224|(t?21:20);return}if(typeof t=="bigint"){_L(t);return}if(t instanceof Uint8Array){NL(t);return}if(t instanceof Date){BZ(t);return}if(t instanceof je){iUe(t);return}if(t[IZ]){let e=t;oUe(e.tag,e.value);return}if(Array.isArray(t)){Ct(9),In(4,t.length);for(let e=0;eqe.length){let e=qe.length*2;for(;e>8,qe[Ne++]=e&255;else if(e<4294967296)qe[Ne++]=t<<5|26,Bh.setUint32(Ne,e),Ne+=4;else{qe[Ne++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Bh.setUint32(Ne,r),Bh.setUint32(Ne+4,n),Ne+=8}}function sUe(t,e){let r=Number(e);if(r<4294967296){In(t,r);return}qe[Ne++]=t<<5|27,Bh.setBigUint64(Ne,e),Ne+=8}function Ul(t){let e=t.length;if(e<=23){let r=cC.get(t);if(r){Ct(r.bytes.length),qe.set(r.bytes,Ne),Ne+=r.bytes.length,r.epoch=wZ;return}let n=Ne;rUe(t,e);let s=Ne,o=Uint8Array.prototype.slice.call(qe,n,s);if(cC.size>=Z1e){if(eUe)return;let a=0;for(let[c,l]of cC){if(a>=1024)break;l.epoch!==wZ&&(cC.delete(c),++a)}if(a===0){eUe=!0;return}}cC.size=0,r=e?0:1,n=e?t:-t-1;In(r,n)}function _L(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[Ne++]=e?194:195,In(2,o),qe.set(a,Ne),Ne+=o}}function NL(t){Ct(t.length+9),In(2,t.length),qe.set(t,Ne),Ne+=t.length}function oUe(t,e){Ct(9),typeof t=="bigint"?sUe(6,t):In(6,t),pC(e)}function iUe(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[Ne++]=196,In(4,2),Ct(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?kL(Number(a)):_L(a),_L(c)}function BZ(t){Ct(18),In(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?kL(e):QZ(e)}var PL,X1e,DL,gFt,bZ,qe,Bh,Ne,Z1e,cC,wZ,eUe,DZ=g(()=>{_e();Re();He();xe();K1e();PL=class extends hn{static{i(this,"CborShapeSerializer2")}write(e,r){Ne=0;let n=O.of(e);dC(n,r,void 0,this.serdeContext)}flush(){let e=qe.subarray(0,Ne);return Ne=0,qe=nUe(bZ),Bh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),e}},X1e=Symbol.for("@smithy/cbor-struct-cache");i(QL,"loadCborStructIterator");i(AFt,"encodeCborStringKey");DL=typeof Buffer<"u",gFt=new TextEncoder,bZ=2048,qe=DL?Buffer.allocUnsafe(bZ):new Uint8Array(bZ),Bh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),Ne=0,Z1e=2048,cC=new Map,wZ=0,eUe=!1;i(nUe,"allocUnsafe");i(dC,"writeValue");i(yFt,"writeStruct");i(tUe,"writeList");i(xZ,"writeMap");i(pC,"writeUntypedValue");i(Ct,"ensure");i(In,"encodeHeader");i(sUe,"encodeBigHeader");i(Ul,"writeString");i(rUe,"writeStringUncached");i(QZ,"writeFloat64");i(kL,"writeInteger");i(_L,"writeBigInt");i(NL,"writeBytes");i(oUe,"writeTag");i(iUe,"writeNumericValue");i(BZ,"writeTimestamp")});function Xo(t){if(se>=Sn)throw new Error("unexpected end of CBOR payload.");let e=(Cr[se]&224)>>5;if((Cr[se]&31)===31&&e>=2&&e<=5)return wFt(t,e);switch(e){case 0:return NFt();case 1:return TFt();case 2:return UL();case 3:return fC();case 4:return EFt(t);case 5:return CFt(t);case 6:return SFt(t);case 7:return _Ft();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function EFt(t){let e=FL(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s=0){h=y+1,h>=l&&(h=0);let E=Xo(o[y]);E!=null&&(u[c[y]]=E)}else{let E=fC(),I=Xo(O.of(15));E==="__type"&&typeof I=="string"?m=!0:(d=E,p=I,++f)}}if(n){let A=!0;for(let y in u)if(X(u,y)){A=!1;break}A&&f===1&&(u.$unknown=[d,p])}else if(m){se=r;let A=O.of(15);for(let y=0;y=0){m=h+1,m>=c&&(m=0);let A=Xo(s[h]);A!=null&&(u[a[h]]=A)}else{let A=fC(),y=Xo(O.of(15));A!=="__type"&&(d=A,p=y,++f)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;se>>0&MZ-1,s=aUe[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 dUe(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 Wu(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function OL(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return lp(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return lp(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(OL(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=OL(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]=OL(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 LL,lUe,OZ,Cr,LZ,Vp,se,Sn,MZ,aUe,kZ,Gb,pUe=g(()=>{_e();Re();He();xe();DZ();LL=class extends hn{static{i(this,"CborShapeDeserializer2")}read(e,r){return Cr=r,LZ=lUe&&r instanceof Buffer,Vp=new DataView(r.buffer,r.byteOffset,r.byteLength),se=0,Sn=r.length,Gb=Gb+1&65535,Xo(O.of(e))}readValue(e,r){return OL(O.of(e),r)}},lUe=typeof Buffer<"u",OZ=new TextDecoder,Cr=new Uint8Array(0),LZ=!1,Vp=new DataView(new ArrayBuffer(0)),se=0,Sn=0,MZ=2048,aUe=new Array(MZ),kZ=new Uint16Array(MZ),Gb=0;i(Xo,"readValue");i(EFt,"readList");i(CFt,"readMap");i(IFt,"readStruct");i(SFt,"readTag");i(wFt,"readIndefinite");i(xFt,"readUtf8StringIndefinite");i(bFt,"readByteStringIndefinite");i(BFt,"readListIndefinite");i(RFt,"readMapIndefinite");i(uUe,"matchStructKey");i(cUe,"bytesMatch");i(ML,"decodeArgument");i(FL,"decodeCount");i(NFt,"readUnsignedInt");i(TFt,"readNegativeInt");i(UL,"readByteString");i(fC,"readUtf8String");i(PFt,"decodeUtf8Cached");i(_Ft,"readSpecial");i(vFt,"bytesToFloat16");i(dUe,"castBigInt");i(Wu,"overflow");i(OL,"transformObject")});var qL,fUe=g(()=>{Re();DZ();pUe();qL=class extends hn{static{i(this,"CborCodec")}createSerializer(){let e=new PL;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new LL;return e.setSerdeContext(this.serdeContext),e}}});var Hb,mUe=g(()=>{Re();He();fUe();SZ();Hb=class extends gp{static{i(this,"SmithyRpcV2CborProtocol")}codec=new qL;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-cbor"}applyEmptyBody(e){e.body||(this.serializer.write(15,{}),e.body=this.serializer.flush()),e.body instanceof Uint8Array&&(e.headers["content-length"]=String(e.body.byteLength))}async handleError(e,r,n,s,o){let a=Ub(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(yt.for(u)),f.push(yt.for(l));let[m,h,A]=this.resolveError(d,c,f);if(A==="native"||A==="synthetic"){s.Message&&(s.message=s.Message);let b=A==="synthetic"?new h({name:d}):new Error(d);throw Object.assign(b,p,s)}let y=O.of(m),E=s.message??s.Message??"Unknown",I=new h({}),x={};for(let[b,N]of y.structIterator())x[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(I,p,{$fault:y.getMergedTraits().error,message:E},x)}getDefaultContentType(){return"application/cbor"}}});var hUe=g(()=>{SZ();mUe()});var co,Rh=g(()=>{we();He();co=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 h=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new h({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=yt.for(s),a=yt.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=Zm(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 Zm(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;lO.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var $L,AUe=g(()=>{hUe();He();Rh();$L=class extends Hb{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new co(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 h=n.headers["x-amzn-query-error"];return h&&this.awsQueryCompatible?h.split(";")[0]:Ub(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=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={};for(let[h,A]of u.structIterator())s[h]!=null&&(m[h]=this.deserializer.readValue(A,s[h]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}}});var Wp,GL=g(()=>{Re();He();Rh();Wp=class extends Al{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 $i({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new co(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"),(ki(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=gE(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=O.of(l),p=s.message??s.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(l)??Error,m=new f({}),h={},A=this.codec.createDeserializer();for(let[y,E]of d.structIterator())s[y]!=null&&(h[y]=A.readObject(E,s[y]));throw a&&this.mixin.queryCompatOutput(s,h),this.mixin.decorateServiceException(Object.assign(m,u,{$fault:d.getMergedTraits().error,message:p},h),s)}}});var HL,gUe=g(()=>{GL();HL=class extends Wp{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 zL,yUe=g(()=>{GL();zL=class extends Wp{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 ql,EUe=g(()=>{Re();He();Rh();ql=class extends Ap{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new co;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 $i(s),this.serializer=new Ip(this.codec.createSerializer(),s),this.deserializer=new Cp(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=O.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=O.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=AE(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=O.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={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().jsonName??A;m[A]=h.readObject(y,s[E])}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/json"}}});var VL,CUe=g(()=>{Re();He();Rh();VL=class extends CE{static{i(this,"AwsSmithyRpcV2JsonProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new co(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]:yE(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=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={},h=this.getPayloadCodec().createDeserializer();for(let[A,y]of u.structIterator())s[A]!=null&&(m[A]=h.readObject(y,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 YL=S(JL=>{var QFt=/[&<>"]/g,DFt={"&":"&","<":"<",">":">",'"':"""};function kFt(t){return t.replace(QFt,e=>DFt[e])}i(kFt,"escapeAttribute");var OFt=/[&"'<>\r\n\u0085\u2028]/g,LFt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function MFt(t){return t.replace(OFt,e=>LFt[e])}i(MFt,"escapeElement");var WL=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return MFt(""+this.value)}},UZ=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 WL(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}="${kFt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};function FZ(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(FZ,"writeKey");function FFt(t){return new qZ(t).parse()}i(FFt,"parseXML");var qZ=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 aFt(t){return new eFt({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(aFt,"createGetRequest");async function cFt(t,e){let n=await tFt(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 bh("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:rFt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new bh(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new bh(`Server responded with status: ${t.statusCode}`,{logger:e})}i(cFt,"getCredentials");var lFt=i((t,e,r)=>async()=>{for(let n=0;nsetTimeout(o,r))}return await t()},"retryWrapper"),uFt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",dFt="http://169.254.170.2",pFt="AWS_CONTAINER_CREDENTIALS_FULL_URI",fFt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",mFt="AWS_CONTAINER_AUTHORIZATION_TOKEN",hFt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[uFt],n=t.awsContainerCredentialsFullUri??process.env[pFt],s=t.awsContainerAuthorizationToken??process.env[mFt],o=t.awsContainerAuthorizationTokenFile??process.env[fFt],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=`${dFt}${r}`;else if(n)e=n;else throw new bh(`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);iFt(c,t.logger);let l=XMt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=lFt(async()=>{let p=aFt(c);o?p.headers.Authorization=V1e((await ZMt.readFile(o)).toString()):s&&(p.headers.Authorization=V1e(s));try{let f=await l.handle(p,{requestTimeout:u});return cFt(f.response).then(m=>KMt(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new bh(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),V1e=i(t=>{if(t.includes(`\r +`))throw new bh("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");W1e.fromHttp=hFt});function AFt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function gFt(t){return{schemeId:"smithy.api#noAuth"}}var J1e,Y1e,j1e,CZ=g(()=>{ts();we();J1e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(AFt,"createAwsAuthSigv4HttpAuthOption");i(gFt,"createSmithyApiNoAuthHttpAuthOption");Y1e=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(gFt(t)):e.push(AFt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),j1e=i(t=>{let e=Dl(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var K1e,X1e,IZ=g(()=>{K1e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),X1e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Vp,Ub=g(()=>{Vp={name:"@aws-sdk/nested-clients",version:"3.998.1",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.980.1","@aws-sdk/signature-v4-multi-region":"^3.996.51","@aws-sdk/types":"^3.975.0","@smithy/core":"^3.38.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.14.0","@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 SZ,Z1e=g(()=>{SZ=Symbol("@smithy/core/cbor::tagSymbol")});var qb,wZ=g(()=>{qb=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 DL(t){let e=t.getSchema(),r=e[eUe];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 oUe(t){return kL?Buffer.allocUnsafe(t):new Uint8Array(t)}function pC(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){ql(Yo());return}Ct(1),qe[Ne++]=246;return}if(t.isUnitSchema()){Ct(1),In(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){TL(e);return}if(t.isTimestampSchema()&&e instanceof Date){RZ(e);return}if(t.isStructSchema()){IFt(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){nUe(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){bZ(t,e,!1,n);return}if(e instanceof Date){RZ(e);return}if(e instanceof Uint8Array){TL(e);return}if(e instanceof je){cUe(e);return}if(e[SZ]){let o=e;aUe(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?nUe(t,e,!0,n):bZ(t,e,!0,n);return}if(t.isBigDecimalSchema()){fC(e);return}bZ(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??Er)(e);TL(o);return}ql(e);return}if(typeof e=="number"){Ct(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?OL(e):DZ(e);return}if(typeof e=="boolean"){Ct(1),qe[Ne++]=224|(e?21:20);return}if(typeof e=="bigint"){vL(e);return}ql(String(e))}function IFt(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[f,m]of t.structIterator()){let h=e[f];if(h!=null){Ct(9),In(5,1),ql(f),pC(m,h,t,r),p=!0;break}}if(!p){let{$unknown:f}=e;Array.isArray(f)?(Ct(9),In(5,1),ql(f[0]),fC(f[1])):(Ct(9),In(5,0))}return}let n=DL(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=Ne;Ne+=l;let d=0;for(let p=0;p>8,qe[u+2]=d&255)}function nUe(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?OL(t):DZ(t);return}if(typeof t=="boolean"){Ct(1),qe[Ne++]=224|(t?21:20);return}if(typeof t=="bigint"){vL(t);return}if(t instanceof Uint8Array){TL(t);return}if(t instanceof Date){RZ(t);return}if(t instanceof je){cUe(t);return}if(t[SZ]){let e=t;aUe(e.tag,e.value);return}if(Array.isArray(t)){Ct(9),In(4,t.length);for(let e=0;eqe.length){let e=qe.length*2;for(;e>8,qe[Ne++]=e&255;else if(e<4294967296)qe[Ne++]=t<<5|26,Rh.setUint32(Ne,e),Ne+=4;else{qe[Ne++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Rh.setUint32(Ne,r),Rh.setUint32(Ne+4,n),Ne+=8}}function iUe(t,e){let r=Number(e);if(r<4294967296){In(t,r);return}qe[Ne++]=t<<5|27,Rh.setBigUint64(Ne,e),Ne+=8}function ql(t){let e=t.length;if(e<=23){let r=lC.get(t);if(r){Ct(r.bytes.length),qe.set(r.bytes,Ne),Ne+=r.bytes.length,r.epoch=xZ;return}let n=Ne;sUe(t,e);let s=Ne,o=Uint8Array.prototype.slice.call(qe,n,s);if(lC.size>=tUe){if(rUe)return;let a=0;for(let[c,l]of lC){if(a>=1024)break;l.epoch!==xZ&&(lC.delete(c),++a)}if(a===0){rUe=!0;return}}lC.size=0,r=e?0:1,n=e?t:-t-1;In(r,n)}function vL(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[Ne++]=e?194:195,In(2,o),qe.set(a,Ne),Ne+=o}}function TL(t){Ct(t.length+9),In(2,t.length),qe.set(t,Ne),Ne+=t.length}function aUe(t,e){Ct(9),typeof t=="bigint"?iUe(6,t):In(6,t),fC(e)}function cUe(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[Ne++]=196,In(4,2),Ct(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?OL(Number(a)):vL(a),vL(c)}function RZ(t){Ct(18),In(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?OL(e):DZ(e)}var _L,eUe,kL,CFt,BZ,qe,Rh,Ne,tUe,lC,xZ,rUe,kZ=g(()=>{_e();Re();He();xe();Z1e();_L=class extends hn{static{i(this,"CborShapeSerializer2")}write(e,r){Ne=0;let n=O.of(e);pC(n,r,void 0,this.serdeContext)}flush(){let e=qe.subarray(0,Ne);return Ne=0,qe=oUe(BZ),Rh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),e}},eUe=Symbol.for("@smithy/cbor-struct-cache");i(DL,"loadCborStructIterator");i(EFt,"encodeCborStringKey");kL=typeof Buffer<"u",CFt=new TextEncoder,BZ=2048,qe=kL?Buffer.allocUnsafe(BZ):new Uint8Array(BZ),Rh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),Ne=0,tUe=2048,lC=new Map,xZ=0,rUe=!1;i(oUe,"allocUnsafe");i(pC,"writeValue");i(IFt,"writeStruct");i(nUe,"writeList");i(bZ,"writeMap");i(fC,"writeUntypedValue");i(Ct,"ensure");i(In,"encodeHeader");i(iUe,"encodeBigHeader");i(ql,"writeString");i(sUe,"writeStringUncached");i(DZ,"writeFloat64");i(OL,"writeInteger");i(vL,"writeBigInt");i(TL,"writeBytes");i(aUe,"writeTag");i(cUe,"writeNumericValue");i(RZ,"writeTimestamp")});function Xo(t){if(se>=Sn)throw new Error("unexpected end of CBOR payload.");let e=(Cr[se]&224)>>5;if((Cr[se]&31)===31&&e>=2&&e<=5)return BFt(t,e);switch(e){case 0:return _Ft();case 1:return vFt();case 2:return qL();case 3:return mC();case 4:return SFt(t);case 5:return wFt(t);case 6:return bFt(t);case 7:return DFt();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function SFt(t){let e=UL(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s=0){h=y+1,h>=l&&(h=0);let E=Xo(o[y]);E!=null&&(u[c[y]]=E)}else{let E=mC(),I=Xo(O.of(15));E==="__type"&&typeof I=="string"?m=!0:(d=E,p=I,++f)}}if(n){let A=!0;for(let y in u)if(X(u,y)){A=!1;break}A&&f===1&&(u.$unknown=[d,p])}else if(m){se=r;let A=O.of(15);for(let y=0;y=0){m=h+1,m>=c&&(m=0);let A=Xo(s[h]);A!=null&&(u[a[h]]=A)}else{let A=mC(),y=Xo(O.of(15));A!=="__type"&&(d=A,p=y,++f)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;se>>0&FZ-1,s=lUe[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 fUe(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 Ju(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function LL(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return up(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return up(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(LL(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=LL(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]=LL(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 ML,dUe,LZ,Cr,MZ,Wp,se,Sn,FZ,lUe,OZ,Hb,mUe=g(()=>{_e();Re();He();xe();kZ();ML=class extends hn{static{i(this,"CborShapeDeserializer2")}read(e,r){return Cr=r,MZ=dUe&&r instanceof Buffer,Wp=new DataView(r.buffer,r.byteOffset,r.byteLength),se=0,Sn=r.length,Hb=Hb+1&65535,Xo(O.of(e))}readValue(e,r){return LL(O.of(e),r)}},dUe=typeof Buffer<"u",LZ=new TextDecoder,Cr=new Uint8Array(0),MZ=!1,Wp=new DataView(new ArrayBuffer(0)),se=0,Sn=0,FZ=2048,lUe=new Array(FZ),OZ=new Uint16Array(FZ),Hb=0;i(Xo,"readValue");i(SFt,"readList");i(wFt,"readMap");i(xFt,"readStruct");i(bFt,"readTag");i(BFt,"readIndefinite");i(RFt,"readUtf8StringIndefinite");i(NFt,"readByteStringIndefinite");i(TFt,"readListIndefinite");i(PFt,"readMapIndefinite");i(pUe,"matchStructKey");i(uUe,"bytesMatch");i(FL,"decodeArgument");i(UL,"decodeCount");i(_Ft,"readUnsignedInt");i(vFt,"readNegativeInt");i(qL,"readByteString");i(mC,"readUtf8String");i(QFt,"decodeUtf8Cached");i(DFt,"readSpecial");i(kFt,"bytesToFloat16");i(fUe,"castBigInt");i(Ju,"overflow");i(LL,"transformObject")});var $L,hUe=g(()=>{Re();kZ();mUe();$L=class extends hn{static{i(this,"CborCodec")}createSerializer(){let e=new _L;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ML;return e.setSerdeContext(this.serdeContext),e}}});var zb,AUe=g(()=>{Re();He();hUe();wZ();zb=class extends yp{static{i(this,"SmithyRpcV2CborProtocol")}codec=new $L;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-cbor"}applyEmptyBody(e){e.body||(this.serializer.write(15,{}),e.body=this.serializer.flush()),e.body instanceof Uint8Array&&(e.headers["content-length"]=String(e.body.byteLength))}async handleError(e,r,n,s,o){let a=qb(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(yt.for(u)),f.push(yt.for(l));let[m,h,A]=this.resolveError(d,c,f);if(A==="native"||A==="synthetic"){s.Message&&(s.message=s.Message);let b=A==="synthetic"?new h({name:d}):new Error(d);throw Object.assign(b,p,s)}let y=O.of(m),E=s.message??s.Message??"Unknown",I=new h({}),x={};for(let[b,N]of y.structIterator())x[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(I,p,{$fault:y.getMergedTraits().error,message:E},x)}getDefaultContentType(){return"application/cbor"}}});var gUe=g(()=>{wZ();AUe()});var co,Nh=g(()=>{we();He();co=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 h=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new h({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=yt.for(s),a=yt.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=eh(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 eh(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;lO.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var GL,yUe=g(()=>{gUe();He();Nh();GL=class extends zb{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new co(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 h=n.headers["x-amzn-query-error"];return h&&this.awsQueryCompatible?h.split(";")[0]:qb(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=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={};for(let[h,A]of u.structIterator())s[h]!=null&&(m[h]=this.deserializer.readValue(A,s[h]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}}});var Jp,HL=g(()=>{Re();He();Nh();Jp=class extends Al{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 $i({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new co(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"),(ki(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=yE(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=O.of(l),p=s.message??s.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(l)??Error,m=new f({}),h={},A=this.codec.createDeserializer();for(let[y,E]of d.structIterator())s[y]!=null&&(h[y]=A.readObject(E,s[y]));throw a&&this.mixin.queryCompatOutput(s,h),this.mixin.decorateServiceException(Object.assign(m,u,{$fault:d.getMergedTraits().error,message:p},h),s)}}});var zL,EUe=g(()=>{HL();zL=class extends Jp{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 VL,CUe=g(()=>{HL();VL=class extends Jp{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 $l,IUe=g(()=>{Re();He();Nh();$l=class extends gp{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new co;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 $i(s),this.serializer=new Sp(this.codec.createSerializer(),s),this.deserializer=new Ip(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=O.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=O.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=gE(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=O.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={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().jsonName??A;m[A]=h.readObject(y,s[E])}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/json"}}});var WL,SUe=g(()=>{Re();He();Nh();WL=class extends IE{static{i(this,"AwsSmithyRpcV2JsonProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new co(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]:EE(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=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={},h=this.getPayloadCodec().createDeserializer();for(let[A,y]of u.structIterator())s[A]!=null&&(m[A]=h.readObject(y,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 jL=S(YL=>{var OFt=/[&<>"]/g,LFt={"&":"&","<":"<",">":">",'"':"""};function MFt(t){return t.replace(OFt,e=>LFt[e])}i(MFt,"escapeAttribute");var FFt=/[&"'<>\r\n\u0085\u2028]/g,UFt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":" ","\n":" ","\x85":"…","\u2028":"
"};function qFt(t){return t.replace(FFt,e=>UFt[e])}i(qFt,"escapeElement");var JL=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return qFt(""+this.value)}},qZ=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 JL(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}="${MFt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};function UZ(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(UZ,"writeKey");function $Ft(t){return new $Z(t).parse()}i($Ft,"parseXML");var $Z=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__"&&FZ(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__"&&UZ(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__"&&FZ(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__"&&FZ(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]??"")}};JL.XmlNode=UZ;JL.XmlText=WL;JL.parseXML=FFt});var $l,zb=g(()=>{$l=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var jL,IUe=g(()=>{jL=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 SUe(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var wUe=g(()=>{i(SUe,"writeKey")});var xUe,Jp,KL=g(()=>{xUe=R(YL());we();Re();He();xe();zb();IUe();wUe();Jp=class extends $l{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ep(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=O.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??qt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=O.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],h=f[p];m==="__proto__"&&SUe(a),a[m]=this.readSchema(l,h)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new jL(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,xUe.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]),th(o)}return{}}}});var mC,$Z=g(()=>{Re();He();xe();xe();zb();mC=class extends $l{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=O.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Qt)(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(Yo()));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),An(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Ho(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}`,h=a.getMergedTraits(),A=this.getKey("value",h.xmlName,h.ec2QueryName),y=c?`${n}${l}.${A}`:`${n}entry.${l}.${A}`;this.write(o,u,m),this.write(a,d,y),++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+=`&${Ta(e)}=`}writeValue(e){this.buffer+=Ta(e)}}});var Yp,GZ=g(()=>{Re();He();Rh();KL();$Z();Yp=class extends Al{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new co;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 mC(r),this.deserializer=new Jp(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",(ki(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=O.of(e.output),a={};if(n.statusCode>=300){let d=await tn(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 tn(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=O.of(u),f=this.compositeErrorRegistry.getErrorCtor(u)??Error,m=new f({}),h={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[A,y]of p.structIterator()){let E=y.getMergedTraits().xmlName??A,I=c[E]??s[E];h[A]=this.deserializer.readSchema(y,I)}throw this.mixin.decorateServiceException(Object.assign(m,d,{$fault:p.getMergedTraits().error,message:l},h),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 XL,bUe=g(()=>{GZ();XL=class extends Yp{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 BUe,RUe=g(()=>{Re();xe();BUe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});var NUe,HZ,TUe,ZL,zZ=g(()=>{NUe=R(YL());we();RUe();HZ=i((t,e)=>BUe(t,e).then(r=>{if(r.length){let n;try{n=(0,NUe.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]),th(a)}return{}}),"parseXmlBody"),TUe=i(async(t,e)=>{let r=await HZ(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),ZL=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 Ts,hC,VZ=g(()=>{Ts=R(YL());Re();He();xe();xe();zb();hC=class extends $l{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=O.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Er)(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=Ts.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=Ts.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=Ts.XmlNode.of(d);if(typeof p!="string")if(r instanceof Ts.XmlNode||r instanceof Ts.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,h)=>{if(a.isListSchema())this.writeList(a,Array.isArray(h)?h:[h],m,p);else if(a.isMapSchema())this.writeMap(a,h,m,p);else if(a.isStructSchema()){let A=this.writeStruct(a,h,p);m.addChildNode(A.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let A=Ts.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,h,A,p),m.addChildNode(A)}},"writeItem");if(u)for(let m of r)(l||m!=null)&&f(n,m);else{let m=Ts.XmlNode.of(o.xmlName??e.getMemberName());p&&m.addAttribute(d,p);for(let h of r)(l||h!=null)&&f(m,h);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,h=!!a.xmlFlattened,[A,y]=this.getXmlnsAttribute(e,s),E=i((I,x,b)=>{let N=Ts.XmlNode.of(u,x),[_,v]=this.getXmlnsAttribute(c,y);v&&N.addAttribute(_,v),I.addChildNode(N);let Y=Ts.XmlNode.of(f);d.isListSchema()?this.writeList(d,b,Y,y):d.isMapSchema()?this.writeMap(d,b,Y,y,!0):d.isStructSchema()?Y=this.writeStruct(d,b,y):this.writeSimpleInto(d,b,Y,y),I.addChildNode(Y)},"addKeyValue");if(h)for(let I in r){let x=r[I];if(m||x!=null){let b=Ts.XmlNode.of(a.xmlName??e.getMemberName());E(b,I,x),n.addChildNode(b)}}else{let I;o||(I=Ts.XmlNode.of(a.xmlName??e.getMemberName()),y&&I.addAttribute(A,y),n.addChildNode(I));for(let x in r){let b=r[x];if(m||b!=null){let N=Ts.XmlNode.of("entry");E(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=O.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??Qt)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(An(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Ho(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Ho(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=Yo():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=O.of(e),c=new Ts.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 AC,WZ=g(()=>{zb();KL();VZ();AC=class extends $l{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new hC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Jp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var eM,PUe=g(()=>{Re();He();Rh();zZ();WZ();eM=class extends Ap{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new co;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new AC(r),this.serializer=new Ip(this.codec.createSerializer(),r),this.deserializer=new Cp(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=O.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=ZL(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let A of Object.keys(s.Error))s[A]=s.Error[A],A.toLowerCase()==="message"&&(s.message=s.Error[A]);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=O.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={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().xmlName??A,I=s.Error?.[E]??s[E];m[A]=h.readSchema(y,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 _Ue,vUe=g(()=>{xe();_Ue=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,oD(t)},"awsExpectUnion")});var QUe,DUe,kUe,OUe=g(()=>{QUe=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"),DUe=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"),kUe=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 JZ={};cr(JZ,{AwsEc2QueryProtocol:()=>XL,AwsJson1_0Protocol:()=>HL,AwsJson1_1Protocol:()=>zL,AwsJsonRpcProtocol:()=>Wp,AwsQueryProtocol:()=>Yp,AwsRestJsonProtocol:()=>ql,AwsRestXmlProtocol:()=>eM,AwsSmithyRpcV2CborProtocol:()=>$L,AwsSmithyRpcV2JsonProtocol:()=>VL,JsonCodec:()=>IE,JsonCodec2:()=>$i,JsonShapeDeserializer:()=>bp,JsonShapeDeserializer2:()=>wp,JsonShapeSerializer:()=>Bp,JsonShapeSerializer2:()=>xp,QueryShapeSerializer:()=>mC,XmlCodec:()=>AC,XmlShapeDeserializer:()=>Jp,XmlShapeSerializer:()=>hC,_toBool:()=>DUe,_toNum:()=>kUe,_toStr:()=>QUe,awsExpectUnion:()=>_Ue,loadJsonRpcErrorCode:()=>gE,loadRestJsonErrorCode:()=>AE,loadRestXmlErrorCode:()=>ZL,parseJsonBody:()=>qu,parseJsonErrorBody:()=>Ik,parseXmlBody:()=>HZ,parseXmlErrorBody:()=>TUe});var Nh=g(()=>{AUe();gUe();yUe();GL();EUe();CUe();Re();bUe();GZ();$Z();PUe();WZ();KL();VZ();zZ();vUe();OUe()});var Vb,Th,tM,LUe,qUe,rM,YZ,MUe,jZ,gC,FUe,UUe,UFt,lo,qFt,$Ue,GUe=g(()=>{Dt();Vb="ref",Th=-1,tM=!0,LUe="isSet",qUe="PartitionResult",rM="booleanEquals",YZ="getAttr",MUe={[Vb]:"Endpoint"},jZ={[Vb]:qUe},gC={},FUe=[{[Vb]:"Region"}],UUe={conditions:[[LUe,[MUe]],[LUe,FUe],["aws.partition",FUe,qUe],[rM,[{[Vb]:"UseFIPS"},tM]],[rM,[{[Vb]:"UseDualStack"},tM]],[rM,[{fn:YZ,argv:[jZ,"supportsDualStack"]},tM]],[rM,[{fn:YZ,argv:[jZ,"supportsFIPS"]},tM]],["stringEquals",[{fn:YZ,argv:[jZ,"name"]},"aws-us-gov"]]],results:[[Th],[Th,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Th,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[MUe,gC],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",gC],[Th,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",gC],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",gC],[Th,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",gC],[Th,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",gC],[Th,"Invalid Configuration: Missing Region"]]},UFt=2,lo=1e8,qFt=new Int32Array([-1,1,-1,0,13,3,1,4,lo+12,2,5,lo+12,3,8,6,4,7,lo+11,5,lo+9,lo+10,4,11,9,6,10,lo+8,7,lo+6,lo+7,5,12,lo+5,6,lo+4,lo+5,3,lo+1,14,4,lo+2,lo+3]),$Ue=Fi.from(qFt,UFt,UUe.conditions,UUe.results)});var $Ft,HUe,zUe=g(()=>{Et();Dt();GUe();$Ft=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),HUe=i((t,e={})=>$Ft.get(t,()=>hl($Ue,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var wn,nM=g(()=>{we();wn=class t extends Oi{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Wb,Jb,Yb,jb,Kb,Xb,Zb,e0,t0,r0,n0,KZ=g(()=>{nM();Wb=class t extends wn{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}},Jb=class t extends wn{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}},Yb=class t extends wn{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}},jb=class t extends wn{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}},Kb=class t extends wn{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}},Xb=class t extends wn{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}},Zb=class t extends wn{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}},e0=class t extends wn{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}},t0=class t extends wn{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}},r0=class t extends wn{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}},n0=class t extends wn{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 GFt,HFt,zFt,VFt,WFt,JFt,YFt,jFt,KFt,XFt,ZFt,e1t,t1t,r1t,n1t,s1t,o1t,i1t,a1t,c1t,Gl,l1t,u1t,d1t,p1t,f1t,Ir,m1t,$a,h1t,A1t,Ga,g1t,VUe,WUe,y1t,JUe,E1t,C1t,I1t,$r,YUe,jUe,ji,KUe,XUe,ZUe,e2e,t2e,r2e,n2e,s2e,o2e,i2e,a2e,XZ,S1t,w1t,x1t,b1t,c2e,l2e,u2e,ZZ,sM=g(()=>{He();KZ();nM();GFt="AccessDeniedException",HFt="AuthorizationPendingException",zFt="AccessToken",VFt="ClientSecret",WFt="CreateToken",JFt="CreateTokenRequest",YFt="CreateTokenResponse",jFt="CodeVerifier",KFt="ExpiredTokenException",XFt="InvalidClientException",ZFt="InvalidGrantException",e1t="InvalidRequestException",t1t="InternalServerException",r1t="InvalidScopeException",n1t="IdToken",s1t="RefreshToken",o1t="SlowDownException",i1t="UnauthorizedClientException",a1t="UnsupportedGrantTypeException",c1t="accessToken",Gl="client",l1t="clientId",u1t="clientSecret",d1t="codeVerifier",p1t="code",f1t="deviceCode",Ir="error",m1t="expiresIn",$a="error_description",h1t="grantType",A1t="http",Ga="httpError",g1t="idToken",VUe="reason",WUe="refreshToken",y1t="redirectUri",JUe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",E1t="scope",C1t="server",I1t="tokenType",$r="com.amazonaws.ssooidc",YUe=new yt(JUe),jUe=[-3,JUe,"SSOOIDCServiceException",0,[],[]];YUe.registerError(jUe,wn);ji=new yt($r),KUe=[-3,$r,GFt,{[Ir]:Gl,[Ga]:400},[Ir,VUe,$a],[0,0,0]];ji.registerError(KUe,Wb);XUe=[-3,$r,HFt,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(XUe,Jb);ZUe=[-3,$r,KFt,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(ZUe,Yb);e2e=[-3,$r,t1t,{[Ir]:C1t,[Ga]:500},[Ir,$a],[0,0]];ji.registerError(e2e,jb);t2e=[-3,$r,XFt,{[Ir]:Gl,[Ga]:401},[Ir,$a],[0,0]];ji.registerError(t2e,Kb);r2e=[-3,$r,ZFt,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(r2e,Xb);n2e=[-3,$r,e1t,{[Ir]:Gl,[Ga]:400},[Ir,VUe,$a],[0,0,0]];ji.registerError(n2e,Zb);s2e=[-3,$r,r1t,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(s2e,e0);o2e=[-3,$r,o1t,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(o2e,t0);i2e=[-3,$r,i1t,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(i2e,r0);a2e=[-3,$r,a1t,{[Ir]:Gl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(a2e,n0);XZ=[YUe,ji],S1t=[0,$r,zFt,8,0],w1t=[0,$r,VFt,8,0],x1t=[0,$r,jFt,8,0],b1t=[0,$r,n1t,8,0],c2e=[0,$r,s1t,8,0],l2e=[3,$r,JFt,0,[l1t,u1t,h1t,f1t,p1t,WUe,E1t,y1t,d1t],[0,[()=>w1t,0],0,0,0,[()=>c2e,0],64,0,[()=>x1t,0]],3],u2e=[3,$r,YFt,0,[c1t,I1t,m1t,WUe,g1t],[[()=>S1t,0],0,1,[()=>c2e,0],[()=>b1t,0]]],ZZ=[9,$r,WFt,{[A1t]:["POST","/token",200]},()=>l2e,()=>u2e]});var d2e,p2e=g(()=>{ts();Nh();Bs();Uu();we();Re();xe();EZ();zUe();sM();d2e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??HUe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??W1e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??ql,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:XZ,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var oM,f2e,m2e=g(()=>{Fb();Et();ts();we();bt();jo();xe();oM=R(Vu());p2e();f2e=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=d2e(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:zp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:oM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??oM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(Pl,s)}},"getRuntimeConfig")});var h2e,A2e,g2e=g(()=>{h2e=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"),A2e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var y2e,E2e=g(()=>{Et();we();Re();g2e();y2e=i((t,e)=>{let r=Object.assign(_l(t),Ba(t),gl(t),h2e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vl(r),sl(r),yl(r),A2e(r))},"resolveRuntimeExtensions")});var s0,eee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();EZ();CZ();m2e();E2e();s0=class extends Xn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=f2e(e||{});super(r),this.initConfig=r;let n=Y1e(r),s=Nl(n),o=wl(s),a=Vo(o),c=a,l=Ou(c),u=J1e(l),d=y2e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use($u(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(bl(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:V1e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var C2e,I2e,S2e,w2e=g(()=>{we();Dt();CZ();C2e=ol(j1e,"AWSSSOOIDCService","SSOOIDCClient",Lu),I2e={},S2e=i((t,e,r,n)=>[],"_mw0")});var o0,tee=g(()=>{w2e();sM();o0=class extends C2e(I2e,S2e,"CreateToken",ZZ){static{i(this,"CreateTokenCommand")}}});var B1t,iM,x2e=g(()=>{we();tee();eee();B1t={CreateTokenCommand:o0},iM=class extends s0{static{i(this,"SSOOIDC")}};tl(B1t,iM)});var b2e=g(()=>{tee()});var R1t,N1t,B2e=g(()=>{R1t={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},N1t={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var R2e=g(()=>{});var ree={};cr(ree,{$Command:()=>ws,AccessDeniedException:()=>Wb,AccessDeniedException$:()=>KUe,AccessDeniedExceptionReason:()=>R1t,AuthorizationPendingException:()=>Jb,AuthorizationPendingException$:()=>XUe,CreateToken$:()=>ZZ,CreateTokenCommand:()=>o0,CreateTokenRequest$:()=>l2e,CreateTokenResponse$:()=>u2e,ExpiredTokenException:()=>Yb,ExpiredTokenException$:()=>ZUe,InternalServerException:()=>jb,InternalServerException$:()=>e2e,InvalidClientException:()=>Kb,InvalidClientException$:()=>t2e,InvalidGrantException:()=>Xb,InvalidGrantException$:()=>r2e,InvalidRequestException:()=>Zb,InvalidRequestException$:()=>n2e,InvalidRequestExceptionReason:()=>N1t,InvalidScopeException:()=>e0,InvalidScopeException$:()=>s2e,SSOOIDC:()=>iM,SSOOIDCClient:()=>s0,SSOOIDCServiceException:()=>wn,SSOOIDCServiceException$:()=>jUe,SlowDownException:()=>t0,SlowDownException$:()=>o2e,UnauthorizedClientException:()=>r0,UnauthorizedClientException$:()=>i2e,UnsupportedGrantTypeException:()=>n0,UnsupportedGrantTypeException$:()=>a2e,__Client:()=>Xn,errorTypeRegistries:()=>XZ});var nee=g(()=>{eee();x2e();b2e();we();sM();B2e();KZ();R2e();nM()});var _2e=S(i0=>{var{setTokenFeature:T1t}=(Et(),Z(La)),{getBearerTokenEnvKey:P1t}=(ts(),Z(gO)),{TokenProviderError:Ha,getSSOTokenFilepath:_1t,parseKnownFiles:v1t,getProfileName:Q1t,loadSsoSessionData:D1t,getSSOTokenFromFile:k1t,memoize:O1t,chain:L1t}=(bt(),Z(Mi)),{promises:M1t}=require("node:fs"),F1t=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Ha("Please pass 'signingName' to compute environment variable key",{logger:t});let r=P1t(e);if(!(r in process.env))throw new Ha(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return T1t(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),U1t=300*1e3,see="To refresh this SSO session run 'aws sso login' with the corresponding profile.",q1t=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(nee(),Z(ree)),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"),$1t=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(nee(),Z(ree));return(await q1t(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),N2e=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new Ha(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${see}`,!1)},"validateTokenKey"),{writeFile:G1t}=M1t,H1t=i((t,e)=>{let r=_1t(t),n=JSON.stringify(e,null,2);return G1t(r,n)},"writeSSOTokenToFile"),T2e=new Map,aM=new Map,P2e=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await v1t(t),n=Q1t({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new Ha(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Ha(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=aM.get(o);if(a)return await a;let l=(await D1t(t))[o];if(!l)throw new Ha(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let E of["sso_start_url","sso_region"])if(!l[E])throw new Ha(`Sso session '${o}' is missing required property '${E}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await k1t(o)}catch{throw new Ha(`The SSO session token associated with profile=${n} was not found or is invalid. ${see}`,!1)}Ph("accessToken",d.accessToken),Ph("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:f}=d,m={token:p,expiration:new Date(f)};if(m.expiration.getTime()-Date.now()>U1t)return m;let h=aM.get(o);if(h)return await h;let A=T2e.get(o)??0;if(Date.now()-A<30*1e3)return N2e(m),m;Ph("clientId",d.clientId,!0),Ph("clientSecret",d.clientSecret,!0),Ph("refreshToken",d.refreshToken,!0);let y=(async()=>{try{T2e.set(o,Date.now());let E=await $1t(d,u,t,e);Ph("accessToken",E.accessToken),Ph("expiresIn",E.expiresIn);let I=new Date(Date.now()+E.expiresIn*1e3);try{await H1t(o,{...d,accessToken:E.accessToken,expiresAt:I.toISOString(),refreshToken:E.refreshToken})}catch{}return{token:E.accessToken,expiration:I}}catch{return N2e(m),m}})();aM.set(o,y);try{return await y}finally{aM.delete(o)}},"fromSso"),z1t=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Ha("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),V1t=i((t={})=>O1t(L1t(P2e(t),async()=>{throw new Ha("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");i0.fromEnvSigningName=F1t;i0.fromSso=P2e;i0.fromStatic=z1t;i0.nodeProvider=V1t});function W1t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function J1t(t){return{schemeId:"smithy.api#noAuth"}}var v2e,Q2e,D2e,oee=g(()=>{ts();we();v2e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(W1t,"createAwsAuthSigv4HttpAuthOption");i(J1t,"createSmithyApiNoAuthHttpAuthOption");Q2e=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(J1t(t)):e.push(W1t(t)),e},"defaultSSOHttpAuthSchemeProvider"),D2e=i(t=>{let e=Ql(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var k2e,O2e,iee=g(()=>{k2e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),O2e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var a0,_h,cM,L2e,q2e,lM,aee,M2e,cee,yC,F2e,U2e,Y1t,uo,j1t,$2e,G2e=g(()=>{Dt();a0="ref",_h=-1,cM=!0,L2e="isSet",q2e="PartitionResult",lM="booleanEquals",aee="getAttr",M2e={[a0]:"Endpoint"},cee={[a0]:q2e},yC={},F2e=[{[a0]:"Region"}],U2e={conditions:[[L2e,[M2e]],[L2e,F2e],["aws.partition",F2e,q2e],[lM,[{[a0]:"UseFIPS"},cM]],[lM,[{[a0]:"UseDualStack"},cM]],[lM,[{fn:aee,argv:[cee,"supportsDualStack"]},cM]],[lM,[{fn:aee,argv:[cee,"supportsFIPS"]},cM]],["stringEquals",[{fn:aee,argv:[cee,"name"]},"aws-us-gov"]]],results:[[_h],[_h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[_h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[M2e,yC],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",yC],[_h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",yC],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",yC],[_h,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",yC],[_h,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",yC],[_h,"Invalid Configuration: Missing Region"]]},Y1t=2,uo=1e8,j1t=new Int32Array([-1,1,-1,0,13,3,1,4,uo+12,2,5,uo+12,3,8,6,4,7,uo+11,5,uo+9,uo+10,4,11,9,6,10,uo+8,7,uo+6,uo+7,5,12,uo+5,6,uo+4,uo+5,3,uo+1,14,4,uo+2,uo+3]),$2e=Fi.from(j1t,Y1t,U2e.conditions,U2e.results)});var K1t,H2e,z2e=g(()=>{Et();Dt();G2e();K1t=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),H2e=i((t,e={})=>K1t.get(t,()=>hl($2e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var za,uM=g(()=>{we();za=class t extends Oi{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var c0,l0,u0,d0,lee=g(()=>{uM();c0=class t extends za{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)}},l0=class t extends za{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)}},u0=class t extends za{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)}},d0=class t extends za{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 X1t,Z1t,eUt,tUt,rUt,nUt,sUt,oUt,iUt,aUt,cUt,lUt,uUt,dUt,pUt,dM,pM,fUt,mUt,fM,hUt,V2e,mM,AUt,gUt,yUt,W2e,EUt,CUt,IUt,Ki,J2e,Y2e,p0,j2e,K2e,X2e,Z2e,uee,SUt,wUt,xUt,eqe,tqe,rqe,dee,hM=g(()=>{He();lee();uM();X1t="AccessTokenType",Z1t="GetRoleCredentials",eUt="GetRoleCredentialsRequest",tUt="GetRoleCredentialsResponse",rUt="InvalidRequestException",nUt="RoleCredentials",sUt="ResourceNotFoundException",oUt="SecretAccessKeyType",iUt="SessionTokenType",aUt="TooManyRequestsException",cUt="UnauthorizedException",lUt="accountId",uUt="accessKeyId",dUt="accessToken",pUt="account_id",dM="client",pM="error",fUt="expiration",mUt="http",fM="httpError",hUt="httpHeader",V2e="httpQuery",mM="message",AUt="roleCredentials",gUt="roleName",yUt="role_name",W2e="smithy.ts.sdk.synthetic.com.amazonaws.sso",EUt="secretAccessKey",CUt="sessionToken",IUt="x-amz-sso_bearer_token",Ki="com.amazonaws.sso",J2e=new yt(W2e),Y2e=[-3,W2e,"SSOServiceException",0,[],[]];J2e.registerError(Y2e,za);p0=new yt(Ki),j2e=[-3,Ki,rUt,{[pM]:dM,[fM]:400},[mM],[0]];p0.registerError(j2e,c0);K2e=[-3,Ki,sUt,{[pM]:dM,[fM]:404},[mM],[0]];p0.registerError(K2e,l0);X2e=[-3,Ki,aUt,{[pM]:dM,[fM]:429},[mM],[0]];p0.registerError(X2e,u0);Z2e=[-3,Ki,cUt,{[pM]:dM,[fM]:401},[mM],[0]];p0.registerError(Z2e,d0);uee=[J2e,p0],SUt=[0,Ki,X1t,8,0],wUt=[0,Ki,oUt,8,0],xUt=[0,Ki,iUt,8,0],eqe=[3,Ki,eUt,0,[gUt,lUt,dUt],[[0,{[V2e]:yUt}],[0,{[V2e]:pUt}],[()=>SUt,{[hUt]:IUt}]],3],tqe=[3,Ki,tUt,0,[AUt],[[()=>rqe,0]]],rqe=[3,Ki,nUt,0,[uUt,EUt,CUt,fUt],[0,[()=>wUt,0],[()=>xUt,0],1]],dee=[9,Ki,Z1t,{[mUt]:["GET","/federation/credentials",200]},()=>eqe,()=>tqe]});var nqe,sqe=g(()=>{ts();Nh();Bs();Uu();we();Re();xe();oee();z2e();hM();nqe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??H2e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Q2e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??ql,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:uee,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var AM,oqe,iqe=g(()=>{Fb();Et();ts();we();bt();jo();xe();AM=R(Vu());sqe();oqe=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=nqe(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:zp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:AM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??AM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(Pl,s)}},"getRuntimeConfig")});var aqe,cqe,lqe=g(()=>{aqe=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"),cqe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var uqe,dqe=g(()=>{Et();we();Re();lqe();uqe=i((t,e)=>{let r=Object.assign(_l(t),Ba(t),gl(t),aqe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vl(r),sl(r),yl(r),cqe(r))},"resolveRuntimeExtensions")});var f0,pee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();oee();iee();iqe();dqe();f0=class extends Xn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=oqe(e||{});super(r),this.initConfig=r;let n=k2e(r),s=Nl(n),o=wl(s),a=Vo(o),c=a,l=Ou(c),u=D2e(l),d=uqe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use($u(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(bl(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:v2e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var pqe,fqe,mqe,hqe=g(()=>{we();Dt();iee();pqe=ol(O2e,"SWBPortalService","SSOClient",Lu),fqe={},mqe=i((t,e,r,n)=>[],"_mw0")});var m0,fee=g(()=>{hqe();hM();m0=class extends pqe(fqe,mqe,"GetRoleCredentials",dee){static{i(this,"GetRoleCredentialsCommand")}}});var bUt,gM,Aqe=g(()=>{we();fee();pee();bUt={GetRoleCredentialsCommand:m0},gM=class extends f0{static{i(this,"SSO")}};tl(bUt,gM)});var gqe=g(()=>{fee()});var yqe=g(()=>{});var Eqe={};cr(Eqe,{$Command:()=>ws,GetRoleCredentials$:()=>dee,GetRoleCredentialsCommand:()=>m0,GetRoleCredentialsRequest$:()=>eqe,GetRoleCredentialsResponse$:()=>tqe,InvalidRequestException:()=>c0,InvalidRequestException$:()=>j2e,ResourceNotFoundException:()=>l0,ResourceNotFoundException$:()=>K2e,RoleCredentials$:()=>rqe,SSO:()=>gM,SSOClient:()=>f0,SSOServiceException:()=>za,SSOServiceException$:()=>Y2e,TooManyRequestsException:()=>u0,TooManyRequestsException$:()=>X2e,UnauthorizedException:()=>d0,UnauthorizedException$:()=>Z2e,__Client:()=>Xn,errorTypeRegistries:()=>uee});var Cqe=g(()=>{pee();Aqe();gqe();we();hM();lee();yqe();uM()});var Iqe=S(mee=>{var{GetRoleCredentialsCommand:BUt,SSOClient:RUt}=(Cqe(),Z(Eqe));mee.GetRoleCredentialsCommand=BUt;mee.SSOClient=RUt});var hee=S(yM=>{var{CredentialsProviderError:Va,getSSOTokenFromFile:NUt,getProfileName:TUt,parseKnownFiles:PUt,loadSsoSessionData:_Ut}=(bt(),Z(Mi)),{setCredentialFeature:Sqe}=(Et(),Z(La)),{fromSso:vUt}=_2e(),xqe=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"),h0=!1,wqe=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 h,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ce=await vUt({profile:u,filepath:d,configFilepath:p,ignoreCache:f,clientConfig:a,parentClientConfig:c,logger:m})({callerClientConfig:l});h={accessToken:ce.token,expiresAt:new Date(ce.expiration).toISOString()}}catch(ce){throw new Va(ce.message,{tryNextLink:h0,logger:m})}else try{h=await NUt(t)}catch{throw new Va(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:h0,logger:m})}if(new Date(h.expiresAt).getTime()-Date.now()<=0)throw new Va(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:h0,logger:m});let{accessToken:y}=h,{SSOClient:E,GetRoleCredentialsCommand:I}=Iqe(),x=o||new E(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:y}))}catch(ce){throw new Va(ce,{tryNextLink:h0,logger:m})}let{roleCredentials:{accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:Y,credentialScope:Qe,accountId:ke}={}}=b;if(!N||!_||!v||!Y)throw new Va("SSO returns an invalid temporary credential.",{tryNextLink:h0,logger:m});let De={accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:new Date(Y),...Qe&&{credentialScope:Qe},...ke&&{accountId:ke}};return e?Sqe(De,"CREDENTIALS_SSO","s"):Sqe(De,"CREDENTIALS_SSO_LEGACY","u"),De},"resolveSSOCredentials"),bqe=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 Va(`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"),QUt=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=TUt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await PUt(t))[l];if(!d)throw new Va(`Profile ${l} was not found.`,{logger:t.logger});if(!xqe(d))throw new Va(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await _Ut(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Va("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Va("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=E.sso_region,d.sso_start_url=E.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:h,sso_session:A}=bqe(d,t.logger);return wqe({ssoStartUrl:p,ssoSession:A,ssoAccountId:f,ssoRegion:m,ssoRoleName:h,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 Va('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return wqe({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");yM.fromSSO=QUt;yM.isSsoProfile=xqe;yM.validateSsoProfile=bqe});var yee=S(CM=>{var{SignatureV4:DUt,signatureV4aContainer:Bqe}=bX(),A0={CrtSignerV4:null},Aee="X-Amz-S3session-Token",Rqe=Aee.toLowerCase(),EM=class extends DUt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=Nqe(r);e.headers[Rqe]=r.sessionToken;let o=this;return Tqe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=Nqe(r);return delete e.headers[Rqe],e.headers[Aee]=r.sessionToken,e.query=e.query??{},e.query[Aee]=r.sessionToken,Tqe(this,s),this.presign(e,n)}};function Nqe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(Nqe,"getCredentialsWithoutSessionToken");function Tqe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(Tqe,"setSingleOverride");var gee=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof A0.CrtSignerV4=="function"?"crt":typeof Bqe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new EM(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=A0.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=A0.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=A0.CrtSignerV4,r=Bqe.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}};CM.SignatureV4MultiRegion=gee;CM.SignatureV4SignWithCredentials=EM;CM.signatureV4CrtContainer=A0});var CC,vh,g0,Pqe,Mqe,y0,kn,Eee,_qe,vqe,Qqe,Dqe,kqe,On,Cee,EC,Oqe,Lqe,kUt,mt,OUt,Fqe,Uqe=g(()=>{Dt();CC="ref",vh=-1,g0=!0,Pqe="isSet",Mqe="PartitionResult",y0="booleanEquals",kn="stringEquals",Eee="getAttr",_qe="us-east-1",vqe="sigv4",Qqe="sts",Dqe="https://sts.{Region}.{PartitionResult#dnsSuffix}",kqe={[CC]:"Endpoint"},On={[CC]:"Region"},Cee={[CC]:Mqe},EC={},Oqe=[On],Lqe={conditions:[[Pqe,[kqe]],[Pqe,Oqe],["aws.partition",Oqe,Mqe],[y0,[{[CC]:"UseFIPS"},g0]],[y0,[{[CC]:"UseDualStack"},g0]],[kn,[On,"aws-global"]],[y0,[{[CC]:"UseGlobalEndpoint"},g0]],[kn,[On,"eu-central-1"]],[y0,[{fn:Eee,argv:[Cee,"supportsDualStack"]},g0]],[y0,[{fn:Eee,argv:[Cee,"supportsFIPS"]},g0]],[kn,[On,"ap-south-1"]],[kn,[On,"eu-north-1"]],[kn,[On,"eu-west-1"]],[kn,[On,"eu-west-2"]],[kn,[On,"eu-west-3"]],[kn,[On,"sa-east-1"]],[kn,[On,_qe]],[kn,[On,"us-east-2"]],[kn,[On,"us-west-2"]],[kn,[On,"us-west-1"]],[kn,[On,"ca-central-1"]],[kn,[On,"ap-southeast-1"]],[kn,[On,"ap-northeast-1"]],[kn,[On,"ap-southeast-2"]],[kn,[{fn:Eee,argv:[Cee,"name"]},"aws-us-gov"]]],results:[[vh],["https://sts.amazonaws.com",{authSchemes:[{name:vqe,signingName:Qqe,signingRegion:_qe}]}],[Dqe,{authSchemes:[{name:vqe,signingName:Qqe,signingRegion:"{Region}"}]}],[vh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[vh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[kqe,EC],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",EC],[vh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",EC],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",EC],[vh,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",EC],[vh,"DualStack is enabled but this partition does not support DualStack"],[Dqe,EC],[vh,"Invalid Configuration: Missing Region"]]},kUt=2,mt=1e8,OUt=new Int32Array([-1,1,-1,0,30,3,1,4,mt+14,2,5,mt+14,3,25,6,4,24,7,5,mt+1,8,6,9,mt+13,7,mt+1,10,10,mt+1,11,11,mt+1,12,12,mt+1,13,13,mt+1,14,14,mt+1,15,15,mt+1,16,16,mt+1,17,17,mt+1,18,18,mt+1,19,19,mt+1,20,20,mt+1,21,21,mt+1,22,22,mt+1,23,23,mt+1,mt+2,8,mt+11,mt+12,4,28,26,9,27,mt+10,24,mt+8,mt+9,8,29,mt+7,9,mt+6,mt+7,3,mt+3,31,4,mt+4,mt+5]),Fqe=Fi.from(OUt,kUt,Lqe.conditions,Lqe.results)});var LUt,IM,Iee=g(()=>{Et();Dt();Uqe();LUt=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),IM=i((t,e={})=>LUt.get(t,()=>hl(Fqe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});function Gqe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function See(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Hqe(t){return{schemeId:"smithy.api#noAuth"}}var qqe,MUt,FUt,$qe,UUt,qUt,zqe,Vqe,wee=g(()=>{ts();qqe=R(yee());we();Dt();Iee();MUt=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=vt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await Ox(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),FUt=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),$qe=MUt(FUt);i(Gqe,"createAwsAuthSigv4HttpAuthOption");i(See,"createAwsAuthSigv4aHttpAuthOption");i(Hqe,"createSmithyApiNoAuthHttpAuthOption");UUt=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 y=a.find(E=>{let I=E.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(qqe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&y)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let h=r[m];if(!h)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let A=h(s);A.schemeId=m,A.signingProperties={...A.signingProperties||{},...p,...d},c.push(A)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),qUt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(Hqe(t)),e.push(See(t))):(e.push(Gqe(t)),e.push(See(t))),e},"_defaultSTSHttpAuthSchemeProvider"),zqe=UUt(IM,qUt,{"aws.auth#sigv4":Gqe,"aws.auth#sigv4a":See,"smithy.api#noAuth":Hqe}),Vqe=i(t=>{let e=Ql(t),r=cb(e);return Object.assign(r,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Wqe,Jqe,xee=g(()=>{Wqe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),Jqe={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 po,SM=g(()=>{we();po=class t extends Oi{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var E0,C0,I0,S0,w0,x0,b0,bee=g(()=>{SM();E0=class t extends po{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)}},C0=class t extends po{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)}},I0=class t extends po{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)}},S0=class t extends po{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)}},w0=class t extends po{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)}},x0=class t extends po{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)}},b0=class t extends po{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 $Ut,GUt,HUt,zUt,VUt,WUt,Bee,JUt,YUt,jUt,KUt,Ree,XUt,Yqe,ZUt,e2t,t2t,r2t,n2t,s2t,o2t,i2t,jqe,Kqe,Xqe,a2t,c2t,l2t,u2t,d2t,p2t,Zqe,f2t,m2t,e$e,h2t,t$e,A2t,g2t,Nee,y2t,E2t,r$e,n$e,C2t,I2t,S2t,w2t,x2t,b2t,B2t,R2t,Qh,Dh,N2t,kh,Oh,Lh,T2t,s$e,P2t,Kt,o$e,i$e,jp,a$e,c$e,l$e,u$e,d$e,p$e,f$e,Tee,_2t,v2t,Pee,m$e,h$e,A$e,g$e,_ee,y$e,E$e,C$e,I$e,Q2t,D2t,vee,Qee,B0=g(()=>{He();bee();SM();$Ut="Arn",GUt="AccessKeyId",HUt="AssumeRole",zUt="AssumedRoleId",VUt="AssumeRoleRequest",WUt="AssumeRoleResponse",Bee="AssumedRoleUser",JUt="AssumeRoleWithWebIdentity",YUt="AssumeRoleWithWebIdentityRequest",jUt="AssumeRoleWithWebIdentityResponse",KUt="Audience",Ree="Credentials",XUt="ContextAssertion",Yqe="DurationSeconds",ZUt="Expiration",e2t="ExternalId",t2t="ExpiredTokenException",r2t="IDPCommunicationErrorException",n2t="IDPRejectedClaimException",s2t="InvalidIdentityTokenException",o2t="Key",i2t="MalformedPolicyDocumentException",jqe="MinimumSessionTokenSize",Kqe="Policy",Xqe="PolicyArns",a2t="ProviderArn",c2t="ProvidedContexts",l2t="ProvidedContextsListType",u2t="ProvidedContext",d2t="PolicyDescriptorType",p2t="ProviderId",Zqe="PackedPolicySize",f2t="PackedPolicyTooLargeException",m2t="Provider",e$e="RoleArn",h2t="RegionDisabledException",t$e="RoleSessionName",A2t="SecretAccessKey",g2t="SubjectFromWebIdentityToken",Nee="SourceIdentity",y2t="SerialNumber",E2t="SessionToken",r$e="SessionTokenSize",n$e="SessionTokenUtilization",C2t="Tags",I2t="TokenCode",S2t="TransitiveTagKeys",w2t="Tag",x2t="Value",b2t="WebIdentityToken",B2t="arn",R2t="accessKeySecretType",Qh="awsQueryError",Dh="client",N2t="clientTokenType",kh="error",Oh="httpError",Lh="message",T2t="policyDescriptorListType",s$e="smithy.ts.sdk.synthetic.com.amazonaws.sts",P2t="tagListType",Kt="com.amazonaws.sts",o$e=new yt(s$e),i$e=[-3,s$e,"STSServiceException",0,[],[]];o$e.registerError(i$e,po);jp=new yt(Kt),a$e=[-3,Kt,t2t,{[Qh]:["ExpiredTokenException",400],[kh]:Dh,[Oh]:400},[Lh],[0]];jp.registerError(a$e,E0);c$e=[-3,Kt,r2t,{[Qh]:["IDPCommunicationError",400],[kh]:Dh,[Oh]:400},[Lh],[0]];jp.registerError(c$e,b0);l$e=[-3,Kt,n2t,{[Qh]:["IDPRejectedClaim",403],[kh]:Dh,[Oh]:403},[Lh],[0]];jp.registerError(l$e,w0);u$e=[-3,Kt,s2t,{[Qh]:["InvalidIdentityToken",400],[kh]:Dh,[Oh]:400},[Lh],[0]];jp.registerError(u$e,x0);d$e=[-3,Kt,i2t,{[Qh]:["MalformedPolicyDocument",400],[kh]:Dh,[Oh]:400},[Lh],[0]];jp.registerError(d$e,C0);p$e=[-3,Kt,f2t,{[Qh]:["PackedPolicyTooLarge",400],[kh]:Dh,[Oh]:400},[Lh],[0]];jp.registerError(p$e,I0);f$e=[-3,Kt,h2t,{[Qh]:["RegionDisabledException",403],[kh]:Dh,[Oh]:403},[Lh],[0]];jp.registerError(f$e,S0);Tee=[o$e,jp],_2t=[0,Kt,R2t,8,0],v2t=[0,Kt,N2t,8,0],Pee=[3,Kt,Bee,0,[zUt,$Ut],[0,0],2],m$e=[3,Kt,VUt,0,[e$e,t$e,Xqe,Kqe,Yqe,C2t,S2t,e2t,y2t,I2t,Nee,c2t,jqe],[0,0,()=>I$e,0,1,()=>D2t,64,0,0,0,0,()=>Q2t,1],2],h$e=[3,Kt,WUt,0,[Ree,Bee,Zqe,Nee,n$e,r$e],[[()=>_ee,0],()=>Pee,1,0,1,1]],A$e=[3,Kt,YUt,0,[e$e,t$e,b2t,p2t,Xqe,Kqe,Yqe,jqe],[0,0,[()=>v2t,0],0,()=>I$e,0,1,1],3],g$e=[3,Kt,jUt,0,[Ree,g2t,Bee,Zqe,m2t,KUt,Nee,n$e,r$e],[[()=>_ee,0],0,()=>Pee,1,0,0,0,1,1]],_ee=[3,Kt,Ree,0,[GUt,A2t,E2t,ZUt],[0,[()=>_2t,0],0,4],4],y$e=[3,Kt,d2t,0,[B2t],[0]],E$e=[3,Kt,u2t,0,[a2t,XUt],[0,0]],C$e=[3,Kt,w2t,0,[o2t,x2t],[0,0],2],I$e=[1,Kt,T2t,0,()=>y$e],Q2t=[1,Kt,l2t,0,()=>E$e],D2t=[1,Kt,P2t,0,()=>C$e],vee=[9,Kt,HUt,0,()=>m$e,()=>h$e],Qee=[9,Kt,JUt,0,()=>A$e,()=>g$e]});var S$e,w$e,x$e=g(()=>{ts();Nh();S$e=R(yee());Bs();Uu();we();Re();xe();wee();Iee();B0();w$e=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??IM,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??zqe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Gu},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??Yp,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Tee,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Pa,signerConstructor:t?.signerConstructor??S$e.SignatureV4MultiRegion,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var wM,b$e,B$e=g(()=>{Fb();Et();ts();Bs();we();bt();jo();xe();wM=R(Vu());x$e();b$e=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=w$e(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:zp.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 yn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Gu},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:wM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ve(lb,s),streamCollector:t?.streamCollector??wM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(Pl,s)}},"getRuntimeConfig")});var R$e,N$e,T$e=g(()=>{R$e=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"),N$e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var P$e,_$e=g(()=>{Et();we();Re();T$e();P$e=i((t,e)=>{let r=Object.assign(_l(t),Ba(t),gl(t),R$e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vl(r),sl(r),yl(r),N$e(r))},"resolveRuntimeExtensions")});var Kp,xM=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();wee();xee();B$e();_$e();Kp=class extends Xn{static{i(this,"STSClient")}config;constructor(...[e]){let r=b$e(e||{});super(r),this.initConfig=r;let n=Wqe(r),s=Nl(n),o=wl(s),a=Vo(o),c=a,l=Ou(c),u=Vqe(l),d=P$e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use($u(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(bl(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:$qe,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var bM,BM,RM,Dee=g(()=>{we();Dt();xee();bM=ol(Jqe,"AWSSecurityTokenServiceV20110615","STSClient",Lu),BM={},RM=i((t,e,r,n)=>[],"_mw0")});var Mh,NM=g(()=>{Dee();B0();Mh=class extends bM(BM,RM,"AssumeRole",vee){static{i(this,"AssumeRoleCommand")}}});var Fh,TM=g(()=>{Dee();B0();Fh=class extends bM(BM,RM,"AssumeRoleWithWebIdentity",Qee){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var k2t,PM,v$e=g(()=>{we();NM();TM();xM();k2t={AssumeRoleCommand:Mh,AssumeRoleWithWebIdentityCommand:Fh},PM=class extends Kp{static{i(this,"STS")}};tl(k2t,PM)});var Q$e=g(()=>{NM();TM()});var D$e=g(()=>{});var k$e,O$e,L$e,M$e,F$e,U$e=g(()=>{Et();NM();TM();k$e=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),O$e=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 oO(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"),L$e=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:h,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,y=await O$e(f,t?.parentClientConfig?.region,h,{logger:d,profile:p}),E=!F$e(m);r=new e({...t,userAgentAppId:A,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:y,requestHandler:E?m:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Mh(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=k$e(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return ep(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),M$e=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,h=await O$e(d,t?.parentClientConfig?.region,f,{logger:l,profile:u}),A=!F$e(p);r=new e({...t,userAgentAppId:m,profile:u,region:h,requestHandler:A?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Fh(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=k$e(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&ep(c,"RESOLVED_ACCOUNT_ID","T"),ep(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),F$e=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var q$e,$$e,G$e,O2t,H$e=g(()=>{U$e();xM();q$e=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"),$$e=i((t={},e)=>L$e(t,q$e(Kp,e)),"getDefaultRoleAssumer"),G$e=i((t={},e)=>M$e(t,q$e(Kp,e)),"getDefaultRoleAssumerWithWebIdentity"),O2t=i(t=>e=>t({roleAssumer:$$e(e),roleAssumerWithWebIdentity:G$e(e),...e}),"decorateDefaultCredentialProvider")});var kee={};cr(kee,{$Command:()=>ws,AssumeRole$:()=>vee,AssumeRoleCommand:()=>Mh,AssumeRoleRequest$:()=>m$e,AssumeRoleResponse$:()=>h$e,AssumeRoleWithWebIdentity$:()=>Qee,AssumeRoleWithWebIdentityCommand:()=>Fh,AssumeRoleWithWebIdentityRequest$:()=>A$e,AssumeRoleWithWebIdentityResponse$:()=>g$e,AssumedRoleUser$:()=>Pee,Credentials$:()=>_ee,ExpiredTokenException:()=>E0,ExpiredTokenException$:()=>a$e,IDPCommunicationErrorException:()=>b0,IDPCommunicationErrorException$:()=>c$e,IDPRejectedClaimException:()=>w0,IDPRejectedClaimException$:()=>l$e,InvalidIdentityTokenException:()=>x0,InvalidIdentityTokenException$:()=>u$e,MalformedPolicyDocumentException:()=>C0,MalformedPolicyDocumentException$:()=>d$e,PackedPolicyTooLargeException:()=>I0,PackedPolicyTooLargeException$:()=>p$e,PolicyDescriptorType$:()=>y$e,ProvidedContext$:()=>E$e,RegionDisabledException:()=>S0,RegionDisabledException$:()=>f$e,STS:()=>PM,STSClient:()=>Kp,STSServiceException:()=>po,STSServiceException$:()=>i$e,Tag$:()=>C$e,__Client:()=>Xn,decorateDefaultCredentialProvider:()=>O2t,errorTypeRegistries:()=>Tee,getDefaultRoleAssumer:()=>$$e,getDefaultRoleAssumerWithWebIdentity:()=>G$e});var Oee=g(()=>{xM();v$e();Q$e();we();B0();bee();D$e();H$e();SM()});function L2t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function M2t(t){return{schemeId:"smithy.api#noAuth"}}var z$e,V$e,W$e,Lee=g(()=>{ts();we();z$e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(L2t,"createAwsAuthSigv4HttpAuthOption");i(M2t,"createSmithyApiNoAuthHttpAuthOption");V$e=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(M2t(t)):e.push(L2t(t)),e},"defaultSigninHttpAuthSchemeProvider"),W$e=i(t=>{let e=Ql(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var J$e,Y$e,Mee=g(()=>{J$e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),Y$e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ef,Xp,j$e,IC,K$e,SC,X$e,Uee,Ju,Fee,Z$e,eGe,Zp,sGe,tGe,_M,ns,rGe,nGe,F2t,rt,U2t,oGe,iGe=g(()=>{Dt();ef="ref",Xp=-1,j$e=!1,IC=!0,K$e="isSet",SC="booleanEquals",X$e="coalesce",Uee="PartitionResult",Ju="stringEquals",Fee="getAttr",Z$e="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",eGe={[ef]:"Endpoint"},Zp={fn:Fee,argv:[{[ef]:Uee},"name"]},sGe={[ef]:"Region"},tGe={[ef]:Uee},_M={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},ns={},rGe=[sGe],nGe={conditions:[[K$e,rGe],[SC,[{fn:X$e,argv:[{[ef]:"IsControlPlane"},j$e]},IC]],[K$e,[eGe]],["aws.partition",rGe,Uee],[SC,[{[ef]:"UseFIPS"},IC]],[Ju,[Zp,"aws"]],[SC,[{fn:X$e,argv:[{[ef]:"IsOAuthEndpoint"},j$e]},IC]],[SC,[{[ef]:"UseDualStack"},IC]],[Ju,[Zp,"aws-cn"]],[Ju,[sGe,"us-gov-west-1"]],[Ju,[Zp,"aws-us-gov"]],[SC,[{fn:Fee,argv:[tGe,"supportsFIPS"]},IC]],[Ju,[Zp,"aws-iso"]],[Ju,[Zp,"aws-iso-b"]],[Ju,[Zp,"aws-iso-f"]],[Ju,[Zp,"aws-iso-e"]],[Ju,[Zp,"aws-eusc"]],[SC,[{fn:Fee,argv:[tGe,"supportsDualStack"]},IC]]],results:[[Xp],["https://signin.{Region}.api.aws",_M],["https://signin.{Region}.api.amazonwebservices.com.cn",_M],[Z$e,_M],[Xp,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",_M],["https://{Region}.signin.aws.amazon.com",ns],["https://{Region}.signin.amazonaws.cn",ns],["https://{Region}.signin.amazonaws-us-gov.com",ns],["https://{Region}.signin.c2shome.ic.gov",ns],["https://{Region}.signin.sc2shome.sgov.gov",ns],["https://{Region}.signin.csphome.hci.ic.gov",ns],["https://{Region}.signin.csphome.adc-e.uk",ns],["https://{Region}.signin.amazonaws-eusc.eu",ns],["https://signin-fips.amazonaws-us-gov.com",ns],["https://{Region}.signin-fips.amazonaws-us-gov.com",ns],["https://{Region}.signin.{PartitionResult#dnsSuffix}",ns],[Xp,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Xp,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[eGe,ns],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ns],[Xp,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",ns],[Xp,"FIPS is enabled but this partition does not support FIPS"],[Z$e,ns],[Xp,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",ns],[Xp,"Invalid Configuration: Missing Region"]]},F2t=2,rt=1e8,U2t=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,rt+27,6,rt+4,rt+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,rt+7,13,10,rt+8,14,12,rt+9,15,13,rt+10,16,14,rt+11,17,15,rt+12,18,16,rt+13,rt+16,6,rt+5,20,7,21,rt+6,17,rt+24,rt+25,6,rt+4,23,7,27,24,9,rt+14,25,10,rt+15,26,11,rt+22,rt+23,11,28,rt+21,17,rt+20,rt+21,2,35,30,3,39,31,4,32,rt+27,6,rt+4,33,7,rt+27,34,9,rt+14,rt+27,3,39,36,4,38,37,7,rt+18,rt+19,6,rt+4,rt+17,5,rt+1,40,8,rt+2,rt+3]),oGe=Fi.from(U2t,F2t,nGe.conditions,nGe.results)});var q2t,aGe,cGe=g(()=>{Et();Dt();iGe();q2t=new Ui({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),aGe=i((t,e={})=>q2t.get(t,()=>hl(oGe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var Wa,vM=g(()=>{we();Wa=class t extends Oi{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var R0,N0,T0,P0,qee=g(()=>{vM();R0=class t extends Wa{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}},N0=class t extends Wa{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}},T0=class t extends Wa{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}},P0=class t extends Wa{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 $2t,G2t,H2t,z2t,V2t,W2t,J2t,Y2t,j2t,K2t,X2t,Z2t,eqt,tqt,rqt,lGe,$ee,nqt,Vee,uGe,dGe,sqt,tf,Gee,oqt,Hee,iqt,AGe,Wee,pGe,Ln,DM,aqt,QM,fGe,gGe,mGe,hGe,cqt,lqt,uqt,zee,dqt,ss,yGe,EGe,_0,CGe,IGe,SGe,wGe,Jee,pqt,xGe,bGe,BGe,RGe,NGe,TGe,PGe,_Ge,Yee,jee,v0=g(()=>{He();qee();vM();$2t="AccessDeniedException",G2t="AccessToken",H2t="CreateOAuth2Token",z2t="CreateOAuth2TokenRequest",V2t="CreateOAuth2TokenRequestBody",W2t="CreateOAuth2TokenResponseBody",J2t="CreateOAuth2TokenResponse",Y2t="CreateOAuth2TokenWithIAM",j2t="CreateOAuth2TokenWithIAMRequest",K2t="CreateOAuth2TokenWithIAMResponse",X2t="InternalServerException",Z2t="OAuthAccessToken",eqt="RefreshToken",tqt="TooManyRequestsError",rqt="ValidationException",lGe="accessKeyId",$ee="accessToken",nqt="access_token",Vee="client",uGe="clientId",dGe="codeVerifier",sqt="code",tf="error",Gee="expiresIn",oqt="expires_in",Hee="grantType",iqt="grant_type",AGe="http",Wee="httpError",pGe="idToken",Ln="jsonName",DM="message",aqt="resource",QM="refreshToken",fGe="redirectUri",gGe="smithy.ts.sdk.synthetic.com.amazonaws.signin",mGe="secretAccessKey",hGe="sessionToken",cqt="server",lqt="tokenInput",uqt="tokenOutput",zee="tokenType",dqt="token_type",ss="com.amazonaws.signin",yGe=new yt(gGe),EGe=[-3,gGe,"SigninServiceException",0,[],[]];yGe.registerError(EGe,Wa);_0=new yt(ss),CGe=[-3,ss,$2t,{[tf]:Vee},[tf,DM],[0,0],2];_0.registerError(CGe,R0);IGe=[-3,ss,X2t,{[tf]:cqt,[Wee]:500},[tf,DM],[0,0],2];_0.registerError(IGe,N0);SGe=[-3,ss,tqt,{[tf]:Vee,[Wee]:429},[tf,DM],[0,0],2];_0.registerError(SGe,T0);wGe=[-3,ss,rqt,{[tf]:Vee,[Wee]:400},[tf,DM],[0,0],2];_0.registerError(wGe,P0);Jee=[yGe,_0],pqt=[0,ss,Z2t,8,0],xGe=[0,ss,eqt,8,0],bGe=[3,ss,G2t,8,[lGe,mGe,hGe],[[0,{[Ln]:lGe}],[0,{[Ln]:mGe}],[0,{[Ln]:hGe}]],3],BGe=[3,ss,z2t,0,[lqt],[[()=>RGe,16]],1],RGe=[3,ss,V2t,0,[uGe,Hee,sqt,fGe,dGe,QM],[[0,{[Ln]:uGe}],[0,{[Ln]:Hee}],0,[0,{[Ln]:fGe}],[0,{[Ln]:dGe}],[()=>xGe,{[Ln]:QM}]],2],NGe=[3,ss,J2t,0,[uqt],[[()=>TGe,16]],1],TGe=[3,ss,W2t,0,[$ee,zee,Gee,QM,pGe],[[()=>bGe,{[Ln]:$ee}],[0,{[Ln]:zee}],[1,{[Ln]:Gee}],[()=>xGe,{[Ln]:QM}],[0,{[Ln]:pGe}]],4],PGe=[3,ss,j2t,0,[Hee,aqt],[[0,{[Ln]:iqt}],0],2],_Ge=[3,ss,K2t,0,[$ee,zee,Gee],[[()=>pqt,{[Ln]:nqt}],[0,{[Ln]:dqt}],[1,{[Ln]:oqt}]],3],Yee=[9,ss,H2t,{[AGe]:["POST","/v1/token",200]},()=>BGe,()=>NGe],jee=[9,ss,Y2t,{[AGe]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>PGe,()=>_Ge]});var vGe,QGe=g(()=>{ts();Nh();Bs();Uu();we();Re();xe();Lee();cGe();v0();vGe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??aGe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??V$e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??ql,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Jee,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var kM,DGe,kGe=g(()=>{Fb();Et();ts();we();bt();jo();xe();kM=R(Vu());QGe();DGe=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=vGe(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:zp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:kM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??kM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(Pl,s)}},"getRuntimeConfig")});var OGe,LGe,MGe=g(()=>{OGe=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"),LGe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var FGe,UGe=g(()=>{Et();we();Re();MGe();FGe=i((t,e)=>{let r=Object.assign(_l(t),Ba(t),gl(t),OGe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,vl(r),sl(r),yl(r),LGe(r))},"resolveRuntimeExtensions")});var Q0,Kee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();Lee();Mee();kGe();UGe();Q0=class extends Xn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=DGe(e||{});super(r),this.initConfig=r;let n=J$e(r),s=Nl(n),o=wl(s),a=Vo(o),c=a,l=Ou(c),u=W$e(l),d=FGe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use($u(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(bl(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:z$e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var OM,qGe,$Ge,LM,Xee=g(()=>{we();Dt();Mee();OM=ol(Y$e,"Signin","SigninClient",Lu),qGe={IsControlPlane:{type:"staticContextParams",value:!1}},$Ge={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},LM=i((t,e,r,n)=>[],"_mw0")});var D0,Zee=g(()=>{Xee();v0();D0=class extends OM(qGe,LM,"CreateOAuth2Token",Yee){static{i(this,"CreateOAuth2TokenCommand")}}});var k0,ete=g(()=>{Xee();v0();k0=class extends OM($Ge,LM,"CreateOAuth2TokenWithIAM",jee){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var fqt,MM,GGe=g(()=>{we();Zee();ete();Kee();fqt={CreateOAuth2TokenCommand:D0,CreateOAuth2TokenWithIAMCommand:k0},MM=class extends Q0{static{i(this,"Signin")}};tl(fqt,MM)});var HGe=g(()=>{Zee();ete()});var mqt,zGe=g(()=>{mqt={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",OAUTH_INVALID_GRANT:"invalid_grant",OAUTH_INVALID_REQUEST:"invalid_request",OAUTH_INVALID_SCOPE:"invalid_scope",OAUTH_INVALID_TARGET:"invalid_target",OAUTH_RATE_EXCEEDED:"rate_exceeded",OAUTH_SERVICE_UNAVAILABLE:"service_unavailable",OAUTH_UNSUPPORTED_GRANT_TYPE:"unsupported_grant_type",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 VGe=g(()=>{});var WGe={};cr(WGe,{$Command:()=>ws,AccessDeniedException:()=>R0,AccessDeniedException$:()=>CGe,AccessToken$:()=>bGe,CreateOAuth2Token$:()=>Yee,CreateOAuth2TokenCommand:()=>D0,CreateOAuth2TokenRequest$:()=>BGe,CreateOAuth2TokenRequestBody$:()=>RGe,CreateOAuth2TokenResponse$:()=>NGe,CreateOAuth2TokenResponseBody$:()=>TGe,CreateOAuth2TokenWithIAM$:()=>jee,CreateOAuth2TokenWithIAMCommand:()=>k0,CreateOAuth2TokenWithIAMRequest$:()=>PGe,CreateOAuth2TokenWithIAMResponse$:()=>_Ge,InternalServerException:()=>N0,InternalServerException$:()=>IGe,OAuth2ErrorCode:()=>mqt,Signin:()=>MM,SigninClient:()=>Q0,SigninServiceException:()=>Wa,SigninServiceException$:()=>EGe,TooManyRequestsError:()=>T0,TooManyRequestsError$:()=>SGe,ValidationException:()=>P0,ValidationException$:()=>wGe,__Client:()=>Xn,errorTypeRegistries:()=>Jee});var JGe=g(()=>{Kee();GGe();HGe();we();v0();zGe();qee();VGe();vM()});var KGe=S(jGe=>{var{setCredentialFeature:hqt}=(Et(),Z(La)),{CredentialsProviderError:rf,parseKnownFiles:Aqt,getProfileName:gqt}=(bt(),Z(Mi)),{HttpRequest:yqt}=(Re(),Z(dh)),{createHash:Eqt,createPrivateKey:Cqt,createPublicKey:Iqt,sign:Sqt}=require("node:crypto"),{promises:tte}=require("node:fs"),{homedir:wqt}=require("node:os"),{dirname:xqt,join:YGe}=require("node:path"),rte=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 rf(`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}=(JGe(),Z(WGe)),{logger:d,userAgentAppId:p}=this.callerClientConfig??{},m=i(E=>E?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:m,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let y={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let E=await A.send(new u(y)),{accessKeyId:I,secretAccessKey:x,sessionToken:b}=E.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:_}=E.tokenOutput??{};if(!I||!x||!b||!N)throw new rf("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let v=(_??900)*1e3,Y=new Date(Date.now()+v),Qe={...a,accessToken:{...a.accessToken,accessKeyId:I,secretAccessKey:x,sessionToken:b,expiresAt:Y.toISOString()},refreshToken:N};return await this.saveToken(Qe),this.toCredentials(Qe.accessToken)}catch(E){if(E.name==="AccessDeniedException"){let x=E.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(E)}. Please re-authenticate using \`aws login\``}throw new rf(b,{logger:this.logger,tryNextLink:!1})}if(new Date(a.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(E)}. Using existing token until expiry.`),this.toCredentials(a.accessToken);throw new rf(`Failed to refresh token: ${String(E)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await tte.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 rf(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new rf(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=xqt(r);try{await tte.mkdir(n,{recursive:!0})}catch{}await tte.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??YGe(wqt(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=Eqt("sha256").update(r).digest("hex");return YGe(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(yqt.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=Cqt({key:n.dpopKey,format:"pem",type:"sec1"}),a=Iqt(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 Aqt(t||{}),n=gqt({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new rf(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new rte(s,t,e).loadCredentials();return hqt(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");jGe.fromLoginCredentials=bqt});var ste=S(XGe=>{var{externalDataInterceptor:Bqt,CredentialsProviderError:nte,parseKnownFiles:Rqt,getProfileName:Nqt}=(bt(),Z(Mi)),{exec:Tqt}=require("node:child_process"),{promisify:Pqt}=require("node:util"),{setCredentialFeature:_qt}=(Et(),Z(La)),vqt=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=Pqt(Bqt?.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 vqt(t,c,e)}catch(a){throw new nte(a.message,{logger:r})}}else throw new nte(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new nte(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),Dqt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await Rqt(t);return Qqt(Nqt({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");XGe.fromProcess=Dqt});var ite=S(ote=>{var{setCredentialFeature:kqt}=(Et(),Z(La)),{CredentialsProviderError:Oqt,externalDataInterceptor:Lqt}=(bt(),Z(Mi)),{readFileSync:Mqt}=require("node:fs"),eHe=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}=(Oee(),Z(kee));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"),ZGe="AWS_WEB_IDENTITY_TOKEN_FILE",Fqt="AWS_ROLE_ARN",Uqt="AWS_ROLE_SESSION_NAME",qqt=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[ZGe],n=t?.roleArn??process.env[Fqt],s=t?.roleSessionName??process.env[Uqt];if(!r||!n)throw new Oqt("Web identity configuration not specified",{logger:t.logger});let o=await eHe({...t,webIdentityToken:Lqt?.getTokenRecord?.()[r]??Mqt(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[ZGe]&&kqt(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");ote.fromTokenFile=qqt;ote.fromWebToken=eHe});var aHe=S(iHe=>{var{CredentialsProviderError:FM,chain:$qt,getProfileName:sHe,parseKnownFiles:Gqt}=(bt(),Z(Mi)),{setCredentialFeature:Yu}=(Et(),Z(La)),Hqt=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=yZ(),{fromContainerMetadata:a}=xL();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>$qt(o(s??{}),a(s))().then(ate)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=xL();return async()=>o(s)().then(ate)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=TX();return async()=>o(s)().then(ate)},"Environment")};if(t in n)return n[t];throw new FM(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),ate=i(t=>Yu(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),zqt=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&&(Vqt(t,{profile:e,logger:r})||Wqt(t,{profile:e,logger:r})),"isAssumeRoleProfile"),Vqt=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"),Wqt=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"),Jqt=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}=(Oee(),Z(kee));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 FM(`Detected a cycle attempting to resolve credentials for profile ${sHe(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},tHe(e[c]??{})):(await Hqt(a.credential_source,t,r.logger)(r))();if(tHe(a))return u.then(d=>Yu(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 FM(`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=>Yu(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),tHe=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),Yqt=i(t=>!!(t&&t.login_session),"isLoginProfile"),jqt=i(async(t,e,r)=>{let{fromLoginCredentials:n}=KGe(),s=await n({...e,profile:t})({callerClientConfig:r});return Yu(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),Kqt=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),Xqt=i(async(t,e)=>{let{fromProcess:r}=ste(),n=await r({...t,profile:e})();return Yu(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),Zqt=i(async(t,e,r={},n)=>{let{fromSSO:s}=hee();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Yu(o,"CREDENTIALS_PROFILE_SSO","r"):Yu(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),e$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"),rHe=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"),nHe=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 Yu(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),t$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"),r$t=i(async(t,e,r)=>{let{fromTokenFile:n}=ite(),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 Yu(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),oHe=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&rHe(a))return nHe(a,r);if(o||zqt(a,{profile:t,logger:r.logger}))return Jqt(t,e,r,n,s,oHe);if(rHe(a))return nHe(a,r);if(t$t(a))return r$t(a,r,n);if(Kqt(a))return Xqt(r,t);if(e$t(a))return await Zqt(t,a,r,n);if(Yqt(a))return jqt(t,r,n);throw new FM(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),n$t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await Gqt(t);return oHe(sHe({profile:t.profile??e?.profile}),r,t,e)},"fromIni");iHe.fromIni=n$t});var cte=S(qM=>{var{ENV_KEY:s$t,ENV_SECRET:o$t,fromEnv:i$t}=TX(),{chain:a$t,CredentialsProviderError:UM,ENV_PROFILE:c$t}=(bt(),Z(Mi)),cHe="AWS_EC2_METADATA_DISABLED",l$t=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=xL();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=yZ();return a$t(o(t),n(t))}return process.env[cHe]&&process.env[cHe]!=="false"?async()=>{throw new UM("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function u$t(t,e){let r=d$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(u$t,"memoizeChain");var d$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"),lHe=!1,p$t=i((t={})=>u$t([async()=>{if(t.profile??process.env[c$t])throw process.env[s$t]&&process.env[o$t]&&(lHe||((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__"&&UZ(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__"&&UZ(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]??"")}};YL.XmlNode=qZ;YL.XmlText=JL;YL.parseXML=$Ft});var Gl,Vb=g(()=>{Gl=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var KL,wUe=g(()=>{KL=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 xUe(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var bUe=g(()=>{i(xUe,"writeKey")});var BUe,Yp,XL=g(()=>{BUe=R(jL());we();Re();He();xe();Vb();wUe();bUe();Yp=class extends Gl{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Cp(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=O.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??qt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=O.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],h=f[p];m==="__proto__"&&xUe(a),a[m]=this.readSchema(l,h)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new KL(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,BUe.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]),rh(o)}return{}}}});var hC,GZ=g(()=>{Re();He();xe();xe();Vb();hC=class extends Gl{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=O.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Qt)(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(Yo()));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),An(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Ho(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}`,h=a.getMergedTraits(),A=this.getKey("value",h.xmlName,h.ec2QueryName),y=c?`${n}${l}.${A}`:`${n}entry.${l}.${A}`;this.write(o,u,m),this.write(a,d,y),++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+=`&${Ta(e)}=`}writeValue(e){this.buffer+=Ta(e)}}});var jp,HZ=g(()=>{Re();He();Nh();XL();GZ();jp=class extends Al{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new co;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 hC(r),this.deserializer=new Yp(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",(ki(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=O.of(e.output),a={};if(n.statusCode>=300){let d=await tn(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 tn(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=O.of(u),f=this.compositeErrorRegistry.getErrorCtor(u)??Error,m=new f({}),h={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[A,y]of p.structIterator()){let E=y.getMergedTraits().xmlName??A,I=c[E]??s[E];h[A]=this.deserializer.readSchema(y,I)}throw this.mixin.decorateServiceException(Object.assign(m,d,{$fault:p.getMergedTraits().error,message:l},h),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 ZL,RUe=g(()=>{HZ();ZL=class extends jp{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 NUe,TUe=g(()=>{Re();xe();NUe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});var PUe,zZ,_Ue,eM,VZ=g(()=>{PUe=R(jL());we();TUe();zZ=i((t,e)=>NUe(t,e).then(r=>{if(r.length){let n;try{n=(0,PUe.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]),rh(a)}return{}}),"parseXmlBody"),_Ue=i(async(t,e)=>{let r=await zZ(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),eM=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 Ts,AC,WZ=g(()=>{Ts=R(jL());Re();He();xe();xe();Vb();AC=class extends Gl{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=O.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Er)(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=Ts.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=Ts.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=Ts.XmlNode.of(d);if(typeof p!="string")if(r instanceof Ts.XmlNode||r instanceof Ts.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,h)=>{if(a.isListSchema())this.writeList(a,Array.isArray(h)?h:[h],m,p);else if(a.isMapSchema())this.writeMap(a,h,m,p);else if(a.isStructSchema()){let A=this.writeStruct(a,h,p);m.addChildNode(A.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let A=Ts.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,h,A,p),m.addChildNode(A)}},"writeItem");if(u)for(let m of r)(l||m!=null)&&f(n,m);else{let m=Ts.XmlNode.of(o.xmlName??e.getMemberName());p&&m.addAttribute(d,p);for(let h of r)(l||h!=null)&&f(m,h);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,h=!!a.xmlFlattened,[A,y]=this.getXmlnsAttribute(e,s),E=i((I,x,b)=>{let N=Ts.XmlNode.of(u,x),[_,v]=this.getXmlnsAttribute(c,y);v&&N.addAttribute(_,v),I.addChildNode(N);let Y=Ts.XmlNode.of(f);d.isListSchema()?this.writeList(d,b,Y,y):d.isMapSchema()?this.writeMap(d,b,Y,y,!0):d.isStructSchema()?Y=this.writeStruct(d,b,y):this.writeSimpleInto(d,b,Y,y),I.addChildNode(Y)},"addKeyValue");if(h)for(let I in r){let x=r[I];if(m||x!=null){let b=Ts.XmlNode.of(a.xmlName??e.getMemberName());E(b,I,x),n.addChildNode(b)}}else{let I;o||(I=Ts.XmlNode.of(a.xmlName??e.getMemberName()),y&&I.addAttribute(A,y),n.addChildNode(I));for(let x in r){let b=r[x];if(m||b!=null){let N=Ts.XmlNode.of("entry");E(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=O.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??Qt)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(An(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Ho(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Ho(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=Yo():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=O.of(e),c=new Ts.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 gC,JZ=g(()=>{Vb();XL();WZ();gC=class extends Gl{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new AC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Yp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var tM,vUe=g(()=>{Re();He();Nh();VZ();JZ();tM=class extends gp{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new co;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new gC(r),this.serializer=new Sp(this.codec.createSerializer(),r),this.deserializer=new Ip(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=O.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=eM(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let A of Object.keys(s.Error))s[A]=s.Error[A],A.toLowerCase()==="message"&&(s.message=s.Error[A]);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=O.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={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().xmlName??A,I=s.Error?.[E]??s[E];m[A]=h.readSchema(y,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 QUe,DUe=g(()=>{xe();QUe=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,iD(t)},"awsExpectUnion")});var kUe,OUe,LUe,MUe=g(()=>{kUe=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"),OUe=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"),LUe=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 YZ={};cr(YZ,{AwsEc2QueryProtocol:()=>ZL,AwsJson1_0Protocol:()=>zL,AwsJson1_1Protocol:()=>VL,AwsJsonRpcProtocol:()=>Jp,AwsQueryProtocol:()=>jp,AwsRestJsonProtocol:()=>$l,AwsRestXmlProtocol:()=>tM,AwsSmithyRpcV2CborProtocol:()=>GL,AwsSmithyRpcV2JsonProtocol:()=>WL,JsonCodec:()=>SE,JsonCodec2:()=>$i,JsonShapeDeserializer:()=>Bp,JsonShapeDeserializer2:()=>xp,JsonShapeSerializer:()=>Rp,JsonShapeSerializer2:()=>bp,QueryShapeSerializer:()=>hC,XmlCodec:()=>gC,XmlShapeDeserializer:()=>Yp,XmlShapeSerializer:()=>AC,_toBool:()=>OUe,_toNum:()=>LUe,_toStr:()=>kUe,awsExpectUnion:()=>QUe,loadJsonRpcErrorCode:()=>yE,loadRestJsonErrorCode:()=>gE,loadRestXmlErrorCode:()=>eM,parseJsonBody:()=>$u,parseJsonErrorBody:()=>Sk,parseXmlBody:()=>zZ,parseXmlErrorBody:()=>_Ue});var Th=g(()=>{yUe();EUe();CUe();HL();IUe();SUe();Re();RUe();HZ();GZ();vUe();JZ();XL();WZ();VZ();DUe();MUe()});var Wb,Ph,rM,FUe,GUe,nM,jZ,UUe,KZ,yC,qUe,$Ue,GFt,lo,HFt,HUe,zUe=g(()=>{Dt();Wb="ref",Ph=-1,rM=!0,FUe="isSet",GUe="PartitionResult",nM="booleanEquals",jZ="getAttr",UUe={[Wb]:"Endpoint"},KZ={[Wb]:GUe},yC={},qUe=[{[Wb]:"Region"}],$Ue={conditions:[[FUe,[UUe]],[FUe,qUe],["aws.partition",qUe,GUe],[nM,[{[Wb]:"UseFIPS"},rM]],[nM,[{[Wb]:"UseDualStack"},rM]],[nM,[{fn:jZ,argv:[KZ,"supportsDualStack"]},rM]],[nM,[{fn:jZ,argv:[KZ,"supportsFIPS"]},rM]],["stringEquals",[{fn:jZ,argv:[KZ,"name"]},"aws-us-gov"]]],results:[[Ph],[Ph,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ph,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[UUe,yC],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",yC],[Ph,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",yC],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",yC],[Ph,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",yC],[Ph,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",yC],[Ph,"Invalid Configuration: Missing Region"]]},GFt=2,lo=1e8,HFt=new Int32Array([-1,1,-1,0,13,3,1,4,lo+12,2,5,lo+12,3,8,6,4,7,lo+11,5,lo+9,lo+10,4,11,9,6,10,lo+8,7,lo+6,lo+7,5,12,lo+5,6,lo+4,lo+5,3,lo+1,14,4,lo+2,lo+3]),HUe=Fi.from(HFt,GFt,$Ue.conditions,$Ue.results)});var zFt,VUe,WUe=g(()=>{Et();Dt();zUe();zFt=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),VUe=i((t,e={})=>zFt.get(t,()=>hl(HUe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var wn,sM=g(()=>{we();wn=class t extends Oi{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Jb,Yb,jb,Kb,Xb,Zb,e0,t0,r0,n0,s0,XZ=g(()=>{sM();Jb=class t extends wn{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}},Yb=class t extends wn{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}},jb=class t extends wn{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}},Kb=class t extends wn{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}},Xb=class t extends wn{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}},Zb=class t extends wn{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}},e0=class t extends wn{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}},t0=class t extends wn{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}},r0=class t extends wn{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}},n0=class t extends wn{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}},s0=class t extends wn{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 VFt,WFt,JFt,YFt,jFt,KFt,XFt,ZFt,e1t,t1t,r1t,n1t,s1t,o1t,i1t,a1t,c1t,l1t,u1t,d1t,Hl,p1t,f1t,m1t,h1t,A1t,Ir,g1t,$a,y1t,E1t,Ga,C1t,JUe,YUe,I1t,jUe,S1t,w1t,x1t,$r,KUe,XUe,ji,ZUe,e2e,t2e,r2e,n2e,s2e,o2e,i2e,a2e,c2e,l2e,ZZ,b1t,B1t,R1t,N1t,u2e,d2e,p2e,eee,oM=g(()=>{He();XZ();sM();VFt="AccessDeniedException",WFt="AuthorizationPendingException",JFt="AccessToken",YFt="ClientSecret",jFt="CreateToken",KFt="CreateTokenRequest",XFt="CreateTokenResponse",ZFt="CodeVerifier",e1t="ExpiredTokenException",t1t="InvalidClientException",r1t="InvalidGrantException",n1t="InvalidRequestException",s1t="InternalServerException",o1t="InvalidScopeException",i1t="IdToken",a1t="RefreshToken",c1t="SlowDownException",l1t="UnauthorizedClientException",u1t="UnsupportedGrantTypeException",d1t="accessToken",Hl="client",p1t="clientId",f1t="clientSecret",m1t="codeVerifier",h1t="code",A1t="deviceCode",Ir="error",g1t="expiresIn",$a="error_description",y1t="grantType",E1t="http",Ga="httpError",C1t="idToken",JUe="reason",YUe="refreshToken",I1t="redirectUri",jUe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",S1t="scope",w1t="server",x1t="tokenType",$r="com.amazonaws.ssooidc",KUe=new yt(jUe),XUe=[-3,jUe,"SSOOIDCServiceException",0,[],[]];KUe.registerError(XUe,wn);ji=new yt($r),ZUe=[-3,$r,VFt,{[Ir]:Hl,[Ga]:400},[Ir,JUe,$a],[0,0,0]];ji.registerError(ZUe,Jb);e2e=[-3,$r,WFt,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(e2e,Yb);t2e=[-3,$r,e1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(t2e,jb);r2e=[-3,$r,s1t,{[Ir]:w1t,[Ga]:500},[Ir,$a],[0,0]];ji.registerError(r2e,Kb);n2e=[-3,$r,t1t,{[Ir]:Hl,[Ga]:401},[Ir,$a],[0,0]];ji.registerError(n2e,Xb);s2e=[-3,$r,r1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(s2e,Zb);o2e=[-3,$r,n1t,{[Ir]:Hl,[Ga]:400},[Ir,JUe,$a],[0,0,0]];ji.registerError(o2e,e0);i2e=[-3,$r,o1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(i2e,t0);a2e=[-3,$r,c1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(a2e,r0);c2e=[-3,$r,l1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(c2e,n0);l2e=[-3,$r,u1t,{[Ir]:Hl,[Ga]:400},[Ir,$a],[0,0]];ji.registerError(l2e,s0);ZZ=[KUe,ji],b1t=[0,$r,JFt,8,0],B1t=[0,$r,YFt,8,0],R1t=[0,$r,ZFt,8,0],N1t=[0,$r,i1t,8,0],u2e=[0,$r,a1t,8,0],d2e=[3,$r,KFt,0,[p1t,f1t,y1t,A1t,h1t,YUe,S1t,I1t,m1t],[0,[()=>B1t,0],0,0,0,[()=>u2e,0],64,0,[()=>R1t,0]],3],p2e=[3,$r,XFt,0,[d1t,x1t,g1t,YUe,C1t],[[()=>b1t,0],0,1,[()=>u2e,0],[()=>N1t,0]]],eee=[9,$r,jFt,{[E1t]:["POST","/token",200]},()=>d2e,()=>p2e]});var f2e,m2e=g(()=>{ts();Th();Bs();qu();we();Re();xe();CZ();WUe();oM();f2e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??VUe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Y1e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??$l,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ZZ,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var iM,h2e,A2e=g(()=>{Ub();Et();ts();we();bt();jo();xe();iM=R(Wu());m2e();h2e=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=f2e(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultSocketTimeout:bl(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:Vp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:iM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??iM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(_l,s)}},"getRuntimeConfig")});var g2e,y2e,E2e=g(()=>{g2e=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"),y2e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var C2e,I2e=g(()=>{Et();we();Re();E2e();C2e=i((t,e)=>{let r=Object.assign(vl(t),Ba(t),gl(t),g2e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ql(r),sl(r),yl(r),y2e(r))},"resolveRuntimeExtensions")});var o0,tee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();CZ();IZ();A2e();I2e();o0=class extends Xn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=h2e(e||{});super(r),this.initConfig=r;let n=K1e(r),s=Tl(n),o=wl(s),a=Vo(o),c=a,l=Lu(c),u=j1e(l),d=C2e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(Gu(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:J1e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var S2e,w2e,x2e,b2e=g(()=>{we();Dt();IZ();S2e=ol(X1e,"AWSSSOOIDCService","SSOOIDCClient",Mu),w2e={},x2e=i((t,e,r,n)=>[],"_mw0")});var i0,ree=g(()=>{b2e();oM();i0=class extends S2e(w2e,x2e,"CreateToken",eee){static{i(this,"CreateTokenCommand")}}});var T1t,aM,B2e=g(()=>{we();ree();tee();T1t={CreateTokenCommand:i0},aM=class extends o0{static{i(this,"SSOOIDC")}};tl(T1t,aM)});var R2e=g(()=>{ree()});var P1t,_1t,N2e=g(()=>{P1t={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},_1t={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var T2e=g(()=>{});var nee={};cr(nee,{$Command:()=>ws,AccessDeniedException:()=>Jb,AccessDeniedException$:()=>ZUe,AccessDeniedExceptionReason:()=>P1t,AuthorizationPendingException:()=>Yb,AuthorizationPendingException$:()=>e2e,CreateToken$:()=>eee,CreateTokenCommand:()=>i0,CreateTokenRequest$:()=>d2e,CreateTokenResponse$:()=>p2e,ExpiredTokenException:()=>jb,ExpiredTokenException$:()=>t2e,InternalServerException:()=>Kb,InternalServerException$:()=>r2e,InvalidClientException:()=>Xb,InvalidClientException$:()=>n2e,InvalidGrantException:()=>Zb,InvalidGrantException$:()=>s2e,InvalidRequestException:()=>e0,InvalidRequestException$:()=>o2e,InvalidRequestExceptionReason:()=>_1t,InvalidScopeException:()=>t0,InvalidScopeException$:()=>i2e,SSOOIDC:()=>aM,SSOOIDCClient:()=>o0,SSOOIDCServiceException:()=>wn,SSOOIDCServiceException$:()=>XUe,SlowDownException:()=>r0,SlowDownException$:()=>a2e,UnauthorizedClientException:()=>n0,UnauthorizedClientException$:()=>c2e,UnsupportedGrantTypeException:()=>s0,UnsupportedGrantTypeException$:()=>l2e,__Client:()=>Xn,errorTypeRegistries:()=>ZZ});var see=g(()=>{tee();B2e();R2e();we();oM();N2e();XZ();T2e();sM()});var Q2e=S(a0=>{var{setTokenFeature:v1t}=(Et(),Z(La)),{getBearerTokenEnvKey:Q1t}=(ts(),Z(yO)),{TokenProviderError:Ha,getSSOTokenFilepath:D1t,parseKnownFiles:k1t,getProfileName:O1t,loadSsoSessionData:L1t,getSSOTokenFromFile:M1t,memoize:F1t,chain:U1t}=(bt(),Z(Mi)),{promises:q1t}=require("node:fs"),$1t=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Ha("Please pass 'signingName' to compute environment variable key",{logger:t});let r=Q1t(e);if(!(r in process.env))throw new Ha(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return v1t(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),G1t=300*1e3,oee="To refresh this SSO session run 'aws sso login' with the corresponding profile.",H1t=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(see(),Z(nee)),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"),z1t=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(see(),Z(nee));return(await H1t(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),P2e=i(t=>{if(t.expiration&&t.expiration.getTime(){if(typeof e>"u")throw new Ha(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${oee}`,!1)},"validateTokenKey"),{writeFile:V1t}=q1t,W1t=i((t,e)=>{let r=D1t(t),n=JSON.stringify(e,null,2);return V1t(r,n)},"writeSSOTokenToFile"),_2e=new Map,cM=new Map,v2e=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await k1t(t),n=O1t({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new Ha(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Ha(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=cM.get(o);if(a)return await a;let l=(await L1t(t))[o];if(!l)throw new Ha(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let E of["sso_start_url","sso_region"])if(!l[E])throw new Ha(`Sso session '${o}' is missing required property '${E}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await M1t(o)}catch{throw new Ha(`The SSO session token associated with profile=${n} was not found or is invalid. ${oee}`,!1)}_h("accessToken",d.accessToken),_h("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:f}=d,m={token:p,expiration:new Date(f)};if(m.expiration.getTime()-Date.now()>G1t)return m;let h=cM.get(o);if(h)return await h;let A=_2e.get(o)??0;if(Date.now()-A<30*1e3)return P2e(m),m;_h("clientId",d.clientId,!0),_h("clientSecret",d.clientSecret,!0),_h("refreshToken",d.refreshToken,!0);let y=(async()=>{try{_2e.set(o,Date.now());let E=await z1t(d,u,t,e);_h("accessToken",E.accessToken),_h("expiresIn",E.expiresIn);let I=new Date(Date.now()+E.expiresIn*1e3);try{await W1t(o,{...d,accessToken:E.accessToken,expiresAt:I.toISOString(),refreshToken:E.refreshToken})}catch{}return{token:E.accessToken,expiration:I}}catch{return P2e(m),m}})();cM.set(o,y);try{return await y}finally{cM.delete(o)}},"fromSso"),J1t=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Ha("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),Y1t=i((t={})=>F1t(U1t(v2e(t),async()=>{throw new Ha("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");a0.fromEnvSigningName=$1t;a0.fromSso=v2e;a0.fromStatic=J1t;a0.nodeProvider=Y1t});function j1t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function K1t(t){return{schemeId:"smithy.api#noAuth"}}var D2e,k2e,O2e,iee=g(()=>{ts();we();D2e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(j1t,"createAwsAuthSigv4HttpAuthOption");i(K1t,"createSmithyApiNoAuthHttpAuthOption");k2e=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(K1t(t)):e.push(j1t(t)),e},"defaultSSOHttpAuthSchemeProvider"),O2e=i(t=>{let e=Dl(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var L2e,M2e,aee=g(()=>{L2e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),M2e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var c0,vh,lM,F2e,G2e,uM,cee,U2e,lee,EC,q2e,$2e,X1t,uo,Z1t,H2e,z2e=g(()=>{Dt();c0="ref",vh=-1,lM=!0,F2e="isSet",G2e="PartitionResult",uM="booleanEquals",cee="getAttr",U2e={[c0]:"Endpoint"},lee={[c0]:G2e},EC={},q2e=[{[c0]:"Region"}],$2e={conditions:[[F2e,[U2e]],[F2e,q2e],["aws.partition",q2e,G2e],[uM,[{[c0]:"UseFIPS"},lM]],[uM,[{[c0]:"UseDualStack"},lM]],[uM,[{fn:cee,argv:[lee,"supportsDualStack"]},lM]],[uM,[{fn:cee,argv:[lee,"supportsFIPS"]},lM]],["stringEquals",[{fn:cee,argv:[lee,"name"]},"aws-us-gov"]]],results:[[vh],[vh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[vh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[U2e,EC],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",EC],[vh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",EC],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",EC],[vh,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",EC],[vh,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",EC],[vh,"Invalid Configuration: Missing Region"]]},X1t=2,uo=1e8,Z1t=new Int32Array([-1,1,-1,0,13,3,1,4,uo+12,2,5,uo+12,3,8,6,4,7,uo+11,5,uo+9,uo+10,4,11,9,6,10,uo+8,7,uo+6,uo+7,5,12,uo+5,6,uo+4,uo+5,3,uo+1,14,4,uo+2,uo+3]),H2e=Fi.from(Z1t,X1t,$2e.conditions,$2e.results)});var eUt,V2e,W2e=g(()=>{Et();Dt();z2e();eUt=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),V2e=i((t,e={})=>eUt.get(t,()=>hl(H2e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var za,dM=g(()=>{we();za=class t extends Oi{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var l0,u0,d0,p0,uee=g(()=>{dM();l0=class t extends za{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)}},u0=class t extends za{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)}},d0=class t extends za{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)}},p0=class t extends za{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 tUt,rUt,nUt,sUt,oUt,iUt,aUt,cUt,lUt,uUt,dUt,pUt,fUt,mUt,hUt,pM,fM,AUt,gUt,mM,yUt,J2e,hM,EUt,CUt,IUt,Y2e,SUt,wUt,xUt,Ki,j2e,K2e,f0,X2e,Z2e,eqe,tqe,dee,bUt,BUt,RUt,rqe,nqe,sqe,pee,AM=g(()=>{He();uee();dM();tUt="AccessTokenType",rUt="GetRoleCredentials",nUt="GetRoleCredentialsRequest",sUt="GetRoleCredentialsResponse",oUt="InvalidRequestException",iUt="RoleCredentials",aUt="ResourceNotFoundException",cUt="SecretAccessKeyType",lUt="SessionTokenType",uUt="TooManyRequestsException",dUt="UnauthorizedException",pUt="accountId",fUt="accessKeyId",mUt="accessToken",hUt="account_id",pM="client",fM="error",AUt="expiration",gUt="http",mM="httpError",yUt="httpHeader",J2e="httpQuery",hM="message",EUt="roleCredentials",CUt="roleName",IUt="role_name",Y2e="smithy.ts.sdk.synthetic.com.amazonaws.sso",SUt="secretAccessKey",wUt="sessionToken",xUt="x-amz-sso_bearer_token",Ki="com.amazonaws.sso",j2e=new yt(Y2e),K2e=[-3,Y2e,"SSOServiceException",0,[],[]];j2e.registerError(K2e,za);f0=new yt(Ki),X2e=[-3,Ki,oUt,{[fM]:pM,[mM]:400},[hM],[0]];f0.registerError(X2e,l0);Z2e=[-3,Ki,aUt,{[fM]:pM,[mM]:404},[hM],[0]];f0.registerError(Z2e,u0);eqe=[-3,Ki,uUt,{[fM]:pM,[mM]:429},[hM],[0]];f0.registerError(eqe,d0);tqe=[-3,Ki,dUt,{[fM]:pM,[mM]:401},[hM],[0]];f0.registerError(tqe,p0);dee=[j2e,f0],bUt=[0,Ki,tUt,8,0],BUt=[0,Ki,cUt,8,0],RUt=[0,Ki,lUt,8,0],rqe=[3,Ki,nUt,0,[CUt,pUt,mUt],[[0,{[J2e]:IUt}],[0,{[J2e]:hUt}],[()=>bUt,{[yUt]:xUt}]],3],nqe=[3,Ki,sUt,0,[EUt],[[()=>sqe,0]]],sqe=[3,Ki,iUt,0,[fUt,SUt,wUt,AUt],[0,[()=>BUt,0],[()=>RUt,0],1]],pee=[9,Ki,rUt,{[gUt]:["GET","/federation/credentials",200]},()=>rqe,()=>nqe]});var oqe,iqe=g(()=>{ts();Th();Bs();qu();we();Re();xe();iee();W2e();AM();oqe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??V2e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??k2e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??$l,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:dee,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var gM,aqe,cqe=g(()=>{Ub();Et();ts();we();bt();jo();xe();gM=R(Wu());iqe();aqe=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=oqe(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultSocketTimeout:bl(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:Vp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:gM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??gM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(_l,s)}},"getRuntimeConfig")});var lqe,uqe,dqe=g(()=>{lqe=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"),uqe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var pqe,fqe=g(()=>{Et();we();Re();dqe();pqe=i((t,e)=>{let r=Object.assign(vl(t),Ba(t),gl(t),lqe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ql(r),sl(r),yl(r),uqe(r))},"resolveRuntimeExtensions")});var m0,fee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();iee();aee();cqe();fqe();m0=class extends Xn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=aqe(e||{});super(r),this.initConfig=r;let n=L2e(r),s=Tl(n),o=wl(s),a=Vo(o),c=a,l=Lu(c),u=O2e(l),d=pqe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(Gu(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:D2e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var mqe,hqe,Aqe,gqe=g(()=>{we();Dt();aee();mqe=ol(M2e,"SWBPortalService","SSOClient",Mu),hqe={},Aqe=i((t,e,r,n)=>[],"_mw0")});var h0,mee=g(()=>{gqe();AM();h0=class extends mqe(hqe,Aqe,"GetRoleCredentials",pee){static{i(this,"GetRoleCredentialsCommand")}}});var NUt,yM,yqe=g(()=>{we();mee();fee();NUt={GetRoleCredentialsCommand:h0},yM=class extends m0{static{i(this,"SSO")}};tl(NUt,yM)});var Eqe=g(()=>{mee()});var Cqe=g(()=>{});var Iqe={};cr(Iqe,{$Command:()=>ws,GetRoleCredentials$:()=>pee,GetRoleCredentialsCommand:()=>h0,GetRoleCredentialsRequest$:()=>rqe,GetRoleCredentialsResponse$:()=>nqe,InvalidRequestException:()=>l0,InvalidRequestException$:()=>X2e,ResourceNotFoundException:()=>u0,ResourceNotFoundException$:()=>Z2e,RoleCredentials$:()=>sqe,SSO:()=>yM,SSOClient:()=>m0,SSOServiceException:()=>za,SSOServiceException$:()=>K2e,TooManyRequestsException:()=>d0,TooManyRequestsException$:()=>eqe,UnauthorizedException:()=>p0,UnauthorizedException$:()=>tqe,__Client:()=>Xn,errorTypeRegistries:()=>dee});var Sqe=g(()=>{fee();yqe();Eqe();we();AM();uee();Cqe();dM()});var wqe=S(hee=>{var{GetRoleCredentialsCommand:TUt,SSOClient:PUt}=(Sqe(),Z(Iqe));hee.GetRoleCredentialsCommand=TUt;hee.SSOClient=PUt});var Aee=S(EM=>{var{CredentialsProviderError:Va,getSSOTokenFromFile:_Ut,getProfileName:vUt,parseKnownFiles:QUt,loadSsoSessionData:DUt}=(bt(),Z(Mi)),{setCredentialFeature:xqe}=(Et(),Z(La)),{fromSso:kUt}=Q2e(),Bqe=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"),A0=!1,bqe=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 h,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ce=await kUt({profile:u,filepath:d,configFilepath:p,ignoreCache:f,clientConfig:a,parentClientConfig:c,logger:m})({callerClientConfig:l});h={accessToken:ce.token,expiresAt:new Date(ce.expiration).toISOString()}}catch(ce){throw new Va(ce.message,{tryNextLink:A0,logger:m})}else try{h=await _Ut(t)}catch{throw new Va(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:A0,logger:m})}if(new Date(h.expiresAt).getTime()-Date.now()<=0)throw new Va(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:A0,logger:m});let{accessToken:y}=h,{SSOClient:E,GetRoleCredentialsCommand:I}=wqe(),x=o||new E(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:y}))}catch(ce){throw new Va(ce,{tryNextLink:A0,logger:m})}let{roleCredentials:{accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:Y,credentialScope:Qe,accountId:ke}={}}=b;if(!N||!_||!v||!Y)throw new Va("SSO returns an invalid temporary credential.",{tryNextLink:A0,logger:m});let De={accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:new Date(Y),...Qe&&{credentialScope:Qe},...ke&&{accountId:ke}};return e?xqe(De,"CREDENTIALS_SSO","s"):xqe(De,"CREDENTIALS_SSO_LEGACY","u"),De},"resolveSSOCredentials"),Rqe=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 Va(`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"),OUt=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=vUt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await QUt(t))[l];if(!d)throw new Va(`Profile ${l} was not found.`,{logger:t.logger});if(!Bqe(d))throw new Va(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await DUt(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Va("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Va("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=E.sso_region,d.sso_start_url=E.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:h,sso_session:A}=Rqe(d,t.logger);return bqe({ssoStartUrl:p,ssoSession:A,ssoAccountId:f,ssoRegion:m,ssoRoleName:h,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 Va('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return bqe({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");EM.fromSSO=OUt;EM.isSsoProfile=Bqe;EM.validateSsoProfile=Rqe});var Eee=S(IM=>{var{SignatureV4:LUt,signatureV4aContainer:Nqe}=BX(),g0={CrtSignerV4:null},gee="X-Amz-S3session-Token",Tqe=gee.toLowerCase(),CM=class extends LUt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=Pqe(r);e.headers[Tqe]=r.sessionToken;let o=this;return _qe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=Pqe(r);return delete e.headers[Tqe],e.headers[gee]=r.sessionToken,e.query=e.query??{},e.query[gee]=r.sessionToken,_qe(this,s),this.presign(e,n)}};function Pqe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(Pqe,"getCredentialsWithoutSessionToken");function _qe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(_qe,"setSingleOverride");var yee=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof g0.CrtSignerV4=="function"?"crt":typeof Nqe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new CM(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=g0.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=g0.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=g0.CrtSignerV4,r=Nqe.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}};IM.SignatureV4MultiRegion=yee;IM.SignatureV4SignWithCredentials=CM;IM.signatureV4CrtContainer=g0});var IC,Qh,y0,vqe,Uqe,E0,kn,Cee,Qqe,Dqe,kqe,Oqe,Lqe,On,Iee,CC,Mqe,Fqe,MUt,mt,FUt,qqe,$qe=g(()=>{Dt();IC="ref",Qh=-1,y0=!0,vqe="isSet",Uqe="PartitionResult",E0="booleanEquals",kn="stringEquals",Cee="getAttr",Qqe="us-east-1",Dqe="sigv4",kqe="sts",Oqe="https://sts.{Region}.{PartitionResult#dnsSuffix}",Lqe={[IC]:"Endpoint"},On={[IC]:"Region"},Iee={[IC]:Uqe},CC={},Mqe=[On],Fqe={conditions:[[vqe,[Lqe]],[vqe,Mqe],["aws.partition",Mqe,Uqe],[E0,[{[IC]:"UseFIPS"},y0]],[E0,[{[IC]:"UseDualStack"},y0]],[kn,[On,"aws-global"]],[E0,[{[IC]:"UseGlobalEndpoint"},y0]],[kn,[On,"eu-central-1"]],[E0,[{fn:Cee,argv:[Iee,"supportsDualStack"]},y0]],[E0,[{fn:Cee,argv:[Iee,"supportsFIPS"]},y0]],[kn,[On,"ap-south-1"]],[kn,[On,"eu-north-1"]],[kn,[On,"eu-west-1"]],[kn,[On,"eu-west-2"]],[kn,[On,"eu-west-3"]],[kn,[On,"sa-east-1"]],[kn,[On,Qqe]],[kn,[On,"us-east-2"]],[kn,[On,"us-west-2"]],[kn,[On,"us-west-1"]],[kn,[On,"ca-central-1"]],[kn,[On,"ap-southeast-1"]],[kn,[On,"ap-northeast-1"]],[kn,[On,"ap-southeast-2"]],[kn,[{fn:Cee,argv:[Iee,"name"]},"aws-us-gov"]]],results:[[Qh],["https://sts.amazonaws.com",{authSchemes:[{name:Dqe,signingName:kqe,signingRegion:Qqe}]}],[Oqe,{authSchemes:[{name:Dqe,signingName:kqe,signingRegion:"{Region}"}]}],[Qh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Qh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lqe,CC],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",CC],[Qh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",CC],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",CC],[Qh,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",CC],[Qh,"DualStack is enabled but this partition does not support DualStack"],[Oqe,CC],[Qh,"Invalid Configuration: Missing Region"]]},MUt=2,mt=1e8,FUt=new Int32Array([-1,1,-1,0,30,3,1,4,mt+14,2,5,mt+14,3,25,6,4,24,7,5,mt+1,8,6,9,mt+13,7,mt+1,10,10,mt+1,11,11,mt+1,12,12,mt+1,13,13,mt+1,14,14,mt+1,15,15,mt+1,16,16,mt+1,17,17,mt+1,18,18,mt+1,19,19,mt+1,20,20,mt+1,21,21,mt+1,22,22,mt+1,23,23,mt+1,mt+2,8,mt+11,mt+12,4,28,26,9,27,mt+10,24,mt+8,mt+9,8,29,mt+7,9,mt+6,mt+7,3,mt+3,31,4,mt+4,mt+5]),qqe=Fi.from(FUt,MUt,Fqe.conditions,Fqe.results)});var UUt,SM,See=g(()=>{Et();Dt();$qe();UUt=new Ui({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),SM=i((t,e={})=>UUt.get(t,()=>hl(qqe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});function zqe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function wee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Vqe(t){return{schemeId:"smithy.api#noAuth"}}var Gqe,qUt,$Ut,Hqe,GUt,HUt,Wqe,Jqe,xee=g(()=>{ts();Gqe=R(Eee());we();Dt();See();qUt=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=vt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await Lx(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),$Ut=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),Hqe=qUt($Ut);i(zqe,"createAwsAuthSigv4HttpAuthOption");i(wee,"createAwsAuthSigv4aHttpAuthOption");i(Vqe,"createSmithyApiNoAuthHttpAuthOption");GUt=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 y=a.find(E=>{let I=E.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(Gqe.SignatureV4MultiRegion.sigv4aDependency()==="none"&&y)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let h=r[m];if(!h)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let A=h(s);A.schemeId=m,A.signingProperties={...A.signingProperties||{},...p,...d},c.push(A)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),HUt=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(Vqe(t)),e.push(wee(t))):(e.push(zqe(t)),e.push(wee(t))),e},"_defaultSTSHttpAuthSchemeProvider"),Wqe=GUt(SM,HUt,{"aws.auth#sigv4":zqe,"aws.auth#sigv4a":wee,"smithy.api#noAuth":Vqe}),Jqe=i(t=>{let e=Dl(t),r=lb(e);return Object.assign(r,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var Yqe,jqe,bee=g(()=>{Yqe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),jqe={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 po,wM=g(()=>{we();po=class t extends Oi{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var C0,I0,S0,w0,x0,b0,B0,Bee=g(()=>{wM();C0=class t extends po{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)}},I0=class t extends po{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)}},S0=class t extends po{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)}},w0=class t extends po{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)}},x0=class t extends po{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)}},b0=class t extends po{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)}},B0=class t extends po{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 zUt,VUt,WUt,JUt,YUt,jUt,Ree,KUt,XUt,ZUt,e2t,Nee,t2t,Kqe,r2t,n2t,s2t,o2t,i2t,a2t,c2t,l2t,Xqe,Zqe,e$e,u2t,d2t,p2t,f2t,m2t,h2t,t$e,A2t,g2t,r$e,y2t,n$e,E2t,C2t,Tee,I2t,S2t,s$e,o$e,w2t,x2t,b2t,B2t,R2t,N2t,T2t,P2t,Dh,kh,_2t,Oh,Lh,Mh,v2t,i$e,Q2t,Kt,a$e,c$e,Kp,l$e,u$e,d$e,p$e,f$e,m$e,h$e,Pee,D2t,k2t,_ee,A$e,g$e,y$e,E$e,vee,C$e,I$e,S$e,w$e,O2t,L2t,Qee,Dee,R0=g(()=>{He();Bee();wM();zUt="Arn",VUt="AccessKeyId",WUt="AssumeRole",JUt="AssumedRoleId",YUt="AssumeRoleRequest",jUt="AssumeRoleResponse",Ree="AssumedRoleUser",KUt="AssumeRoleWithWebIdentity",XUt="AssumeRoleWithWebIdentityRequest",ZUt="AssumeRoleWithWebIdentityResponse",e2t="Audience",Nee="Credentials",t2t="ContextAssertion",Kqe="DurationSeconds",r2t="Expiration",n2t="ExternalId",s2t="ExpiredTokenException",o2t="IDPCommunicationErrorException",i2t="IDPRejectedClaimException",a2t="InvalidIdentityTokenException",c2t="Key",l2t="MalformedPolicyDocumentException",Xqe="MinimumSessionTokenSize",Zqe="Policy",e$e="PolicyArns",u2t="ProviderArn",d2t="ProvidedContexts",p2t="ProvidedContextsListType",f2t="ProvidedContext",m2t="PolicyDescriptorType",h2t="ProviderId",t$e="PackedPolicySize",A2t="PackedPolicyTooLargeException",g2t="Provider",r$e="RoleArn",y2t="RegionDisabledException",n$e="RoleSessionName",E2t="SecretAccessKey",C2t="SubjectFromWebIdentityToken",Tee="SourceIdentity",I2t="SerialNumber",S2t="SessionToken",s$e="SessionTokenSize",o$e="SessionTokenUtilization",w2t="Tags",x2t="TokenCode",b2t="TransitiveTagKeys",B2t="Tag",R2t="Value",N2t="WebIdentityToken",T2t="arn",P2t="accessKeySecretType",Dh="awsQueryError",kh="client",_2t="clientTokenType",Oh="error",Lh="httpError",Mh="message",v2t="policyDescriptorListType",i$e="smithy.ts.sdk.synthetic.com.amazonaws.sts",Q2t="tagListType",Kt="com.amazonaws.sts",a$e=new yt(i$e),c$e=[-3,i$e,"STSServiceException",0,[],[]];a$e.registerError(c$e,po);Kp=new yt(Kt),l$e=[-3,Kt,s2t,{[Dh]:["ExpiredTokenException",400],[Oh]:kh,[Lh]:400},[Mh],[0]];Kp.registerError(l$e,C0);u$e=[-3,Kt,o2t,{[Dh]:["IDPCommunicationError",400],[Oh]:kh,[Lh]:400},[Mh],[0]];Kp.registerError(u$e,B0);d$e=[-3,Kt,i2t,{[Dh]:["IDPRejectedClaim",403],[Oh]:kh,[Lh]:403},[Mh],[0]];Kp.registerError(d$e,x0);p$e=[-3,Kt,a2t,{[Dh]:["InvalidIdentityToken",400],[Oh]:kh,[Lh]:400},[Mh],[0]];Kp.registerError(p$e,b0);f$e=[-3,Kt,l2t,{[Dh]:["MalformedPolicyDocument",400],[Oh]:kh,[Lh]:400},[Mh],[0]];Kp.registerError(f$e,I0);m$e=[-3,Kt,A2t,{[Dh]:["PackedPolicyTooLarge",400],[Oh]:kh,[Lh]:400},[Mh],[0]];Kp.registerError(m$e,S0);h$e=[-3,Kt,y2t,{[Dh]:["RegionDisabledException",403],[Oh]:kh,[Lh]:403},[Mh],[0]];Kp.registerError(h$e,w0);Pee=[a$e,Kp],D2t=[0,Kt,P2t,8,0],k2t=[0,Kt,_2t,8,0],_ee=[3,Kt,Ree,0,[JUt,zUt],[0,0],2],A$e=[3,Kt,YUt,0,[r$e,n$e,e$e,Zqe,Kqe,w2t,b2t,n2t,I2t,x2t,Tee,d2t,Xqe],[0,0,()=>w$e,0,1,()=>L2t,64,0,0,0,0,()=>O2t,1],2],g$e=[3,Kt,jUt,0,[Nee,Ree,t$e,Tee,o$e,s$e],[[()=>vee,0],()=>_ee,1,0,1,1]],y$e=[3,Kt,XUt,0,[r$e,n$e,N2t,h2t,e$e,Zqe,Kqe,Xqe],[0,0,[()=>k2t,0],0,()=>w$e,0,1,1],3],E$e=[3,Kt,ZUt,0,[Nee,C2t,Ree,t$e,g2t,e2t,Tee,o$e,s$e],[[()=>vee,0],0,()=>_ee,1,0,0,0,1,1]],vee=[3,Kt,Nee,0,[VUt,E2t,S2t,r2t],[0,[()=>D2t,0],0,4],4],C$e=[3,Kt,m2t,0,[T2t],[0]],I$e=[3,Kt,f2t,0,[u2t,t2t],[0,0]],S$e=[3,Kt,B2t,0,[c2t,R2t],[0,0],2],w$e=[1,Kt,v2t,0,()=>C$e],O2t=[1,Kt,p2t,0,()=>I$e],L2t=[1,Kt,Q2t,0,()=>S$e],Qee=[9,Kt,WUt,0,()=>A$e,()=>g$e],Dee=[9,Kt,KUt,0,()=>y$e,()=>E$e]});var x$e,b$e,B$e=g(()=>{ts();Th();x$e=R(Eee());Bs();qu();we();Re();xe();xee();See();R0();b$e=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??SM,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Wqe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{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 es}],logger:t?.logger??new to,protocol:t?.protocol??jp,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Pee,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Pa,signerConstructor:t?.signerConstructor??x$e.SignatureV4MultiRegion,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var xM,R$e,N$e=g(()=>{Ub();Et();ts();Bs();we();bt();jo();xe();xM=R(Wu());B$e();R$e=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=b$e(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultSocketTimeout:bl(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:Vp.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 yn},{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 es}],maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:xM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ve(ub,s),streamCollector:t?.streamCollector??xM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(_l,s)}},"getRuntimeConfig")});var T$e,P$e,_$e=g(()=>{T$e=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"),P$e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var v$e,Q$e=g(()=>{Et();we();Re();_$e();v$e=i((t,e)=>{let r=Object.assign(vl(t),Ba(t),gl(t),T$e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ql(r),sl(r),yl(r),P$e(r))},"resolveRuntimeExtensions")});var Xp,bM=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();xee();bee();N$e();Q$e();Xp=class extends Xn{static{i(this,"STSClient")}config;constructor(...[e]){let r=R$e(e||{});super(r),this.initConfig=r;let n=Yqe(r),s=Tl(n),o=wl(s),a=Vo(o),c=a,l=Lu(c),u=Jqe(l),d=v$e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(Gu(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:Hqe,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var BM,RM,NM,kee=g(()=>{we();Dt();bee();BM=ol(jqe,"AWSSecurityTokenServiceV20110615","STSClient",Mu),RM={},NM=i((t,e,r,n)=>[],"_mw0")});var Fh,TM=g(()=>{kee();R0();Fh=class extends BM(RM,NM,"AssumeRole",Qee){static{i(this,"AssumeRoleCommand")}}});var Uh,PM=g(()=>{kee();R0();Uh=class extends BM(RM,NM,"AssumeRoleWithWebIdentity",Dee){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var M2t,_M,D$e=g(()=>{we();TM();PM();bM();M2t={AssumeRoleCommand:Fh,AssumeRoleWithWebIdentityCommand:Uh},_M=class extends Xp{static{i(this,"STS")}};tl(M2t,_M)});var k$e=g(()=>{TM();PM()});var O$e=g(()=>{});var L$e,M$e,F$e,U$e,q$e,$$e=g(()=>{Et();TM();PM();L$e=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),M$e=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 iO(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"),F$e=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:h,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,y=await M$e(f,t?.parentClientConfig?.region,h,{logger:d,profile:p}),E=!q$e(m);r=new e({...t,userAgentAppId:A,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:y,requestHandler:E?m:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Fh(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=L$e(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return tp(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),U$e=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,h=await M$e(d,t?.parentClientConfig?.region,f,{logger:l,profile:u}),A=!q$e(p);r=new e({...t,userAgentAppId:m,profile:u,region:h,requestHandler:A?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Uh(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=L$e(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&tp(c,"RESOLVED_ACCOUNT_ID","T"),tp(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),q$e=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var G$e,H$e,z$e,F2t,V$e=g(()=>{$$e();bM();G$e=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"),H$e=i((t={},e)=>F$e(t,G$e(Xp,e)),"getDefaultRoleAssumer"),z$e=i((t={},e)=>U$e(t,G$e(Xp,e)),"getDefaultRoleAssumerWithWebIdentity"),F2t=i(t=>e=>t({roleAssumer:H$e(e),roleAssumerWithWebIdentity:z$e(e),...e}),"decorateDefaultCredentialProvider")});var Oee={};cr(Oee,{$Command:()=>ws,AssumeRole$:()=>Qee,AssumeRoleCommand:()=>Fh,AssumeRoleRequest$:()=>A$e,AssumeRoleResponse$:()=>g$e,AssumeRoleWithWebIdentity$:()=>Dee,AssumeRoleWithWebIdentityCommand:()=>Uh,AssumeRoleWithWebIdentityRequest$:()=>y$e,AssumeRoleWithWebIdentityResponse$:()=>E$e,AssumedRoleUser$:()=>_ee,Credentials$:()=>vee,ExpiredTokenException:()=>C0,ExpiredTokenException$:()=>l$e,IDPCommunicationErrorException:()=>B0,IDPCommunicationErrorException$:()=>u$e,IDPRejectedClaimException:()=>x0,IDPRejectedClaimException$:()=>d$e,InvalidIdentityTokenException:()=>b0,InvalidIdentityTokenException$:()=>p$e,MalformedPolicyDocumentException:()=>I0,MalformedPolicyDocumentException$:()=>f$e,PackedPolicyTooLargeException:()=>S0,PackedPolicyTooLargeException$:()=>m$e,PolicyDescriptorType$:()=>C$e,ProvidedContext$:()=>I$e,RegionDisabledException:()=>w0,RegionDisabledException$:()=>h$e,STS:()=>_M,STSClient:()=>Xp,STSServiceException:()=>po,STSServiceException$:()=>c$e,Tag$:()=>S$e,__Client:()=>Xn,decorateDefaultCredentialProvider:()=>F2t,errorTypeRegistries:()=>Pee,getDefaultRoleAssumer:()=>H$e,getDefaultRoleAssumerWithWebIdentity:()=>z$e});var Lee=g(()=>{bM();D$e();k$e();we();R0();Bee();O$e();V$e();wM()});function U2t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function q2t(t){return{schemeId:"smithy.api#noAuth"}}var W$e,J$e,Y$e,Mee=g(()=>{ts();we();W$e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(U2t,"createAwsAuthSigv4HttpAuthOption");i(q2t,"createSmithyApiNoAuthHttpAuthOption");J$e=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(q2t(t)):e.push(U2t(t)),e},"defaultSigninHttpAuthSchemeProvider"),Y$e=i(t=>{let e=Dl(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var j$e,K$e,Fee=g(()=>{j$e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),K$e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var tf,Zp,X$e,SC,Z$e,wC,eGe,qee,Yu,Uee,tGe,rGe,ef,iGe,nGe,vM,ns,sGe,oGe,$2t,rt,G2t,aGe,cGe=g(()=>{Dt();tf="ref",Zp=-1,X$e=!1,SC=!0,Z$e="isSet",wC="booleanEquals",eGe="coalesce",qee="PartitionResult",Yu="stringEquals",Uee="getAttr",tGe="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",rGe={[tf]:"Endpoint"},ef={fn:Uee,argv:[{[tf]:qee},"name"]},iGe={[tf]:"Region"},nGe={[tf]:qee},vM={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},ns={},sGe=[iGe],oGe={conditions:[[Z$e,sGe],[wC,[{fn:eGe,argv:[{[tf]:"IsControlPlane"},X$e]},SC]],[Z$e,[rGe]],["aws.partition",sGe,qee],[wC,[{[tf]:"UseFIPS"},SC]],[Yu,[ef,"aws"]],[wC,[{fn:eGe,argv:[{[tf]:"IsOAuthEndpoint"},X$e]},SC]],[wC,[{[tf]:"UseDualStack"},SC]],[Yu,[ef,"aws-cn"]],[Yu,[iGe,"us-gov-west-1"]],[Yu,[ef,"aws-us-gov"]],[wC,[{fn:Uee,argv:[nGe,"supportsFIPS"]},SC]],[Yu,[ef,"aws-iso"]],[Yu,[ef,"aws-iso-b"]],[Yu,[ef,"aws-iso-f"]],[Yu,[ef,"aws-iso-e"]],[Yu,[ef,"aws-eusc"]],[wC,[{fn:Uee,argv:[nGe,"supportsDualStack"]},SC]]],results:[[Zp],["https://signin.{Region}.api.aws",vM],["https://signin.{Region}.api.amazonwebservices.com.cn",vM],[tGe,vM],[Zp,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",vM],["https://{Region}.signin.aws.amazon.com",ns],["https://{Region}.signin.amazonaws.cn",ns],["https://{Region}.signin.amazonaws-us-gov.com",ns],["https://{Region}.signin.c2shome.ic.gov",ns],["https://{Region}.signin.sc2shome.sgov.gov",ns],["https://{Region}.signin.csphome.hci.ic.gov",ns],["https://{Region}.signin.csphome.adc-e.uk",ns],["https://{Region}.signin.amazonaws-eusc.eu",ns],["https://signin-fips.amazonaws-us-gov.com",ns],["https://{Region}.signin-fips.amazonaws-us-gov.com",ns],["https://{Region}.signin.{PartitionResult#dnsSuffix}",ns],[Zp,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Zp,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[rGe,ns],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ns],[Zp,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",ns],[Zp,"FIPS is enabled but this partition does not support FIPS"],[tGe,ns],[Zp,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",ns],[Zp,"Invalid Configuration: Missing Region"]]},$2t=2,rt=1e8,G2t=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,rt+27,6,rt+4,rt+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,rt+7,13,10,rt+8,14,12,rt+9,15,13,rt+10,16,14,rt+11,17,15,rt+12,18,16,rt+13,rt+16,6,rt+5,20,7,21,rt+6,17,rt+24,rt+25,6,rt+4,23,7,27,24,9,rt+14,25,10,rt+15,26,11,rt+22,rt+23,11,28,rt+21,17,rt+20,rt+21,2,35,30,3,39,31,4,32,rt+27,6,rt+4,33,7,rt+27,34,9,rt+14,rt+27,3,39,36,4,38,37,7,rt+18,rt+19,6,rt+4,rt+17,5,rt+1,40,8,rt+2,rt+3]),aGe=Fi.from(G2t,$2t,oGe.conditions,oGe.results)});var H2t,lGe,uGe=g(()=>{Et();Dt();cGe();H2t=new Ui({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),lGe=i((t,e={})=>H2t.get(t,()=>hl(aGe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ro.aws=Oa});var Wa,QM=g(()=>{we();Wa=class t extends Oi{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var N0,T0,P0,_0,$ee=g(()=>{QM();N0=class t extends Wa{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}},T0=class t extends Wa{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}},P0=class t extends Wa{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}},_0=class t extends Wa{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 z2t,V2t,W2t,J2t,Y2t,j2t,K2t,X2t,Z2t,eqt,tqt,rqt,nqt,sqt,oqt,dGe,Gee,iqt,Wee,pGe,fGe,aqt,rf,Hee,cqt,zee,lqt,yGe,Jee,mGe,Ln,kM,uqt,DM,hGe,EGe,AGe,gGe,dqt,pqt,fqt,Vee,mqt,ss,CGe,IGe,v0,SGe,wGe,xGe,bGe,Yee,hqt,BGe,RGe,NGe,TGe,PGe,_Ge,vGe,QGe,jee,Kee,Q0=g(()=>{He();$ee();QM();z2t="AccessDeniedException",V2t="AccessToken",W2t="CreateOAuth2Token",J2t="CreateOAuth2TokenRequest",Y2t="CreateOAuth2TokenRequestBody",j2t="CreateOAuth2TokenResponseBody",K2t="CreateOAuth2TokenResponse",X2t="CreateOAuth2TokenWithIAM",Z2t="CreateOAuth2TokenWithIAMRequest",eqt="CreateOAuth2TokenWithIAMResponse",tqt="InternalServerException",rqt="OAuthAccessToken",nqt="RefreshToken",sqt="TooManyRequestsError",oqt="ValidationException",dGe="accessKeyId",Gee="accessToken",iqt="access_token",Wee="client",pGe="clientId",fGe="codeVerifier",aqt="code",rf="error",Hee="expiresIn",cqt="expires_in",zee="grantType",lqt="grant_type",yGe="http",Jee="httpError",mGe="idToken",Ln="jsonName",kM="message",uqt="resource",DM="refreshToken",hGe="redirectUri",EGe="smithy.ts.sdk.synthetic.com.amazonaws.signin",AGe="secretAccessKey",gGe="sessionToken",dqt="server",pqt="tokenInput",fqt="tokenOutput",Vee="tokenType",mqt="token_type",ss="com.amazonaws.signin",CGe=new yt(EGe),IGe=[-3,EGe,"SigninServiceException",0,[],[]];CGe.registerError(IGe,Wa);v0=new yt(ss),SGe=[-3,ss,z2t,{[rf]:Wee},[rf,kM],[0,0],2];v0.registerError(SGe,N0);wGe=[-3,ss,tqt,{[rf]:dqt,[Jee]:500},[rf,kM],[0,0],2];v0.registerError(wGe,T0);xGe=[-3,ss,sqt,{[rf]:Wee,[Jee]:429},[rf,kM],[0,0],2];v0.registerError(xGe,P0);bGe=[-3,ss,oqt,{[rf]:Wee,[Jee]:400},[rf,kM],[0,0],2];v0.registerError(bGe,_0);Yee=[CGe,v0],hqt=[0,ss,rqt,8,0],BGe=[0,ss,nqt,8,0],RGe=[3,ss,V2t,8,[dGe,AGe,gGe],[[0,{[Ln]:dGe}],[0,{[Ln]:AGe}],[0,{[Ln]:gGe}]],3],NGe=[3,ss,J2t,0,[pqt],[[()=>TGe,16]],1],TGe=[3,ss,Y2t,0,[pGe,zee,aqt,hGe,fGe,DM],[[0,{[Ln]:pGe}],[0,{[Ln]:zee}],0,[0,{[Ln]:hGe}],[0,{[Ln]:fGe}],[()=>BGe,{[Ln]:DM}]],2],PGe=[3,ss,K2t,0,[fqt],[[()=>_Ge,16]],1],_Ge=[3,ss,j2t,0,[Gee,Vee,Hee,DM,mGe],[[()=>RGe,{[Ln]:Gee}],[0,{[Ln]:Vee}],[1,{[Ln]:Hee}],[()=>BGe,{[Ln]:DM}],[0,{[Ln]:mGe}]],4],vGe=[3,ss,Z2t,0,[zee,uqt],[[0,{[Ln]:lqt}],0],2],QGe=[3,ss,eqt,0,[Gee,Vee,Hee],[[()=>hqt,{[Ln]:iqt}],[0,{[Ln]:mqt}],[1,{[Ln]:cqt}]],3],jee=[9,ss,W2t,{[yGe]:["POST","/v1/token",200]},()=>NGe,()=>PGe],Kee=[9,ss,X2t,{[yGe]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>vGe,()=>QGe]});var DGe,kGe=g(()=>{ts();Th();Bs();qu();we();Re();xe();Mee();uGe();Q0();DGe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??lGe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??J$e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new es}],logger:t?.logger??new to,protocol:t?.protocol??$l,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Yee,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Pa,urlParser:t?.urlParser??vn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var OM,OGe,LGe=g(()=>{Ub();Et();ts();we();bt();jo();xe();OM=R(Wu());kGe();OGe=i(t=>{nl(process.version);let e=fl(t),r=i(()=>e().then(rl),"defaultConfigProvider"),n=DGe(t);Zc(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(Ma,s),bodyLengthChecker:t?.bodyLengthChecker??al,defaultSocketTimeout:bl(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??ka({serviceId:n.serviceId,clientVersion:Vp.version}),maxAttempts:t?.maxAttempts??ve(Sl,t),region:t?.region??ve(Qn,{...bs,...s}),requestHandler:OM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...xl,default:i(async()=>(await r()).retryMode||Gi,"default")},t),streamCollector:t?.streamCollector??OM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(dl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(pl,s),userAgentAppId:t?.userAgentAppId??ve(_l,s)}},"getRuntimeConfig")});var MGe,FGe,UGe=g(()=>{MGe=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"),FGe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var qGe,$Ge=g(()=>{Et();we();Re();UGe();qGe=i((t,e)=>{let r=Object.assign(vl(t),Ba(t),gl(t),MGe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ql(r),sl(r),yl(r),FGe(r))},"resolveRuntimeExtensions")});var D0,Xee=g(()=>{Et();Bs();we();bt();Dt();Re();jo();He();Mee();Fee();LGe();$Ge();D0=class extends Xn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=OGe(e||{});super(r),this.initConfig=r;let n=j$e(r),s=Tl(n),o=wl(s),a=Vo(o),c=a,l=Lu(c),u=Y$e(l),d=qGe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(el(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(Gu(this.config)),this.middlewareStack.use(El(this.config)),this.middlewareStack.use(Bl(this.config)),this.middlewareStack.use(Rl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Qa(this.config,{httpAuthSchemeParametersProvider:W$e,identityProviderConfigProvider:i(async p=>new Ko({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Da(this.config))}destroy(){super.destroy()}}});var LM,GGe,HGe,MM,Zee=g(()=>{we();Dt();Fee();LM=ol(K$e,"Signin","SigninClient",Mu),GGe={IsControlPlane:{type:"staticContextParams",value:!1}},HGe={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},MM=i((t,e,r,n)=>[],"_mw0")});var k0,ete=g(()=>{Zee();Q0();k0=class extends LM(GGe,MM,"CreateOAuth2Token",jee){static{i(this,"CreateOAuth2TokenCommand")}}});var O0,tte=g(()=>{Zee();Q0();O0=class extends LM(HGe,MM,"CreateOAuth2TokenWithIAM",Kee){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var Aqt,FM,zGe=g(()=>{we();ete();tte();Xee();Aqt={CreateOAuth2TokenCommand:k0,CreateOAuth2TokenWithIAMCommand:O0},FM=class extends D0{static{i(this,"Signin")}};tl(Aqt,FM)});var VGe=g(()=>{ete();tte()});var gqt,WGe=g(()=>{gqt={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",OAUTH_INVALID_GRANT:"invalid_grant",OAUTH_INVALID_REQUEST:"invalid_request",OAUTH_INVALID_SCOPE:"invalid_scope",OAUTH_INVALID_TARGET:"invalid_target",OAUTH_RATE_EXCEEDED:"rate_exceeded",OAUTH_SERVICE_UNAVAILABLE:"service_unavailable",OAUTH_UNSUPPORTED_GRANT_TYPE:"unsupported_grant_type",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 JGe=g(()=>{});var YGe={};cr(YGe,{$Command:()=>ws,AccessDeniedException:()=>N0,AccessDeniedException$:()=>SGe,AccessToken$:()=>RGe,CreateOAuth2Token$:()=>jee,CreateOAuth2TokenCommand:()=>k0,CreateOAuth2TokenRequest$:()=>NGe,CreateOAuth2TokenRequestBody$:()=>TGe,CreateOAuth2TokenResponse$:()=>PGe,CreateOAuth2TokenResponseBody$:()=>_Ge,CreateOAuth2TokenWithIAM$:()=>Kee,CreateOAuth2TokenWithIAMCommand:()=>O0,CreateOAuth2TokenWithIAMRequest$:()=>vGe,CreateOAuth2TokenWithIAMResponse$:()=>QGe,InternalServerException:()=>T0,InternalServerException$:()=>wGe,OAuth2ErrorCode:()=>gqt,Signin:()=>FM,SigninClient:()=>D0,SigninServiceException:()=>Wa,SigninServiceException$:()=>IGe,TooManyRequestsError:()=>P0,TooManyRequestsError$:()=>xGe,ValidationException:()=>_0,ValidationException$:()=>bGe,__Client:()=>Xn,errorTypeRegistries:()=>Yee});var jGe=g(()=>{Xee();zGe();VGe();we();Q0();WGe();$ee();JGe();QM()});var ZGe=S(XGe=>{var{setCredentialFeature:yqt}=(Et(),Z(La)),{CredentialsProviderError:nf,parseKnownFiles:Eqt,getProfileName:Cqt}=(bt(),Z(Mi)),{HttpRequest:Iqt}=(Re(),Z(ph)),{createHash:Sqt,createPrivateKey:wqt,createPublicKey:xqt,sign:bqt}=require("node:crypto"),{promises:rte}=require("node:fs"),{homedir:Bqt}=require("node:os"),{dirname:Rqt,join:KGe}=require("node:path"),nte=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 nf(`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}=(jGe(),Z(YGe)),{logger:d,userAgentAppId:p}=this.callerClientConfig??{},m=i(E=>E?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:m,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let y={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let E=await A.send(new u(y)),{accessKeyId:I,secretAccessKey:x,sessionToken:b}=E.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:_}=E.tokenOutput??{};if(!I||!x||!b||!N)throw new nf("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let v=(_??900)*1e3,Y=new Date(Date.now()+v),Qe={...a,accessToken:{...a.accessToken,accessKeyId:I,secretAccessKey:x,sessionToken:b,expiresAt:Y.toISOString()},refreshToken:N};return await this.saveToken(Qe),this.toCredentials(Qe.accessToken)}catch(E){if(E.name==="AccessDeniedException"){let x=E.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(E)}. Please re-authenticate using \`aws login\``}throw new nf(b,{logger:this.logger,tryNextLink:!1})}if(new Date(a.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(E)}. Using existing token until expiry.`),this.toCredentials(a.accessToken);throw new nf(`Failed to refresh token: ${String(E)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await rte.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 nf(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new nf(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=Rqt(r);try{await rte.mkdir(n,{recursive:!0})}catch{}await rte.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??KGe(Bqt(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=Sqt("sha256").update(r).digest("hex");return KGe(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(Iqt.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=wqt({key:n.dpopKey,format:"pem",type:"sec1"}),a=xqt(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 Eqt(t||{}),n=Cqt({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new nf(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new nte(s,t,e).loadCredentials();return yqt(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");XGe.fromLoginCredentials=Nqt});var ote=S(eHe=>{var{externalDataInterceptor:Tqt,CredentialsProviderError:ste,parseKnownFiles:Pqt,getProfileName:_qt}=(bt(),Z(Mi)),{exec:vqt}=require("node:child_process"),{promisify:Qqt}=require("node:util"),{setCredentialFeature:Dqt}=(Et(),Z(La)),kqt=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=Qqt(Tqt?.getTokenRecord?.().exec??vqt);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 kqt(t,c,e)}catch(a){throw new ste(a.message,{logger:r})}}else throw new ste(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new ste(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),Lqt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await Pqt(t);return Oqt(_qt({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");eHe.fromProcess=Lqt});var ate=S(ite=>{var{setCredentialFeature:Mqt}=(Et(),Z(La)),{CredentialsProviderError:Fqt,externalDataInterceptor:Uqt}=(bt(),Z(Mi)),{readFileSync:qqt}=require("node:fs"),rHe=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}=(Lee(),Z(Oee));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"),tHe="AWS_WEB_IDENTITY_TOKEN_FILE",$qt="AWS_ROLE_ARN",Gqt="AWS_ROLE_SESSION_NAME",Hqt=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[tHe],n=t?.roleArn??process.env[$qt],s=t?.roleSessionName??process.env[Gqt];if(!r||!n)throw new Fqt("Web identity configuration not specified",{logger:t.logger});let o=await rHe({...t,webIdentityToken:Uqt?.getTokenRecord?.()[r]??qqt(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[tHe]&&Mqt(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");ite.fromTokenFile=Hqt;ite.fromWebToken=rHe});var lHe=S(cHe=>{var{CredentialsProviderError:UM,chain:zqt,getProfileName:iHe,parseKnownFiles:Vqt}=(bt(),Z(Mi)),{setCredentialFeature:ju}=(Et(),Z(La)),Wqt=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=EZ(),{fromContainerMetadata:a}=bL();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>zqt(o(s??{}),a(s))().then(cte)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=bL();return async()=>o(s)().then(cte)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=PX();return async()=>o(s)().then(cte)},"Environment")};if(t in n)return n[t];throw new UM(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),cte=i(t=>ju(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),Jqt=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})||jqt(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"),jqt=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"),Kqt=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}=(Lee(),Z(Oee));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 UM(`Detected a cycle attempting to resolve credentials for profile ${iHe(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},nHe(e[c]??{})):(await Wqt(a.credential_source,t,r.logger)(r))();if(nHe(a))return u.then(d=>ju(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 UM(`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=>ju(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),nHe=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),Xqt=i(t=>!!(t&&t.login_session),"isLoginProfile"),Zqt=i(async(t,e,r)=>{let{fromLoginCredentials:n}=ZGe(),s=await n({...e,profile:t})({callerClientConfig:r});return ju(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),e$t=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),t$t=i(async(t,e)=>{let{fromProcess:r}=ote(),n=await r({...t,profile:e})();return ju(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),r$t=i(async(t,e,r={},n)=>{let{fromSSO:s}=Aee();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?ju(o,"CREDENTIALS_PROFILE_SSO","r"):ju(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),n$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"),sHe=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"),oHe=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 ju(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),s$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"),o$t=i(async(t,e,r)=>{let{fromTokenFile:n}=ate(),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 ju(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),aHe=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&sHe(a))return oHe(a,r);if(o||Jqt(a,{profile:t,logger:r.logger}))return Kqt(t,e,r,n,s,aHe);if(sHe(a))return oHe(a,r);if(s$t(a))return o$t(a,r,n);if(e$t(a))return t$t(r,t);if(n$t(a))return await r$t(t,a,r,n);if(Xqt(a))return Zqt(t,r,n);throw new UM(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),i$t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await Vqt(t);return aHe(iHe({profile:t.profile??e?.profile}),r,t,e)},"fromIni");cHe.fromIni=i$t});var lte=S($M=>{var{ENV_KEY:a$t,ENV_SECRET:c$t,fromEnv:l$t}=PX(),{chain:u$t,CredentialsProviderError:qM,ENV_PROFILE:d$t}=(bt(),Z(Mi)),uHe="AWS_EC2_METADATA_DISABLED",p$t=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=bL();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=EZ();return u$t(o(t),n(t))}return process.env[uHe]&&process.env[uHe]!=="false"?async()=>{throw new qM("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function f$t(t,e){let r=m$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(f$t,"memoizeChain");var m$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"),dHe=!1,h$t=i((t={})=>f$t([async()=>{if(t.profile??process.env[d$t])throw process.env[a$t]&&process.env[c$t]&&(dHe||((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. @@ -145,57 +145,57 @@ 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. -`),lHe=!0)),new UM("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),i$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 UM("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=hee();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=aHe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=ste();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=ite();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await l$t(t))()),async()=>{throw new UM("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],uHe),"defaultProvider"),f$t=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),uHe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");qM.credentialsTreatedAsExpired=uHe;qM.credentialsWillNeedRefresh=f$t;qM.defaultProvider=p$t});var B8e=S(C=>{var{awsEndpointFunctions:m$t,emitWarningIfUnsupportedVersion:h$t,createDefaultUserAgentProvider:A$t,NODE_APP_ID_CONFIG_OPTIONS:g$t,getAwsRegionExtensionConfiguration:y$t,resolveAwsRegionExtensionConfiguration:E$t,resolveUserAgentConfig:C$t,resolveHostHeaderConfig:I$t,getUserAgentPlugin:S$t,getHostHeaderPlugin:w$t,getLoggerPlugin:x$t,getRecursionDetectionPlugin:b$t}=(Et(),Z(La)),{getHttpAuthSchemeEndpointRuleSetPlugin:B$t,DefaultIdentityProviderConfig:R$t,getHttpSigningPlugin:N$t,createPaginator:ju}=(Bs(),Z(zK)),{normalizeProvider:AHe,getSmithyContext:T$t,ServiceException:P$t,NoOpLogger:_$t,emitWarningIfUnsupportedVersion:v$t,loadConfigsForDefaultMode:Q$t,getDefaultExtensionConfiguration:D$t,resolveDefaultRuntimeConfig:k$t,Client:gHe,makeBuilder:O$t,createWaiter:U1,checkExceptions:yHe,WaiterState:wC,createAggregatedClient:L$t}=(we(),Z(Oy)),{Command:M$t}=(we(),Z(Oy));C.$Command=M$t;C.__Client=gHe;var{resolveDefaultsModeConfig:F$t,loadConfig:Uh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:U$t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:q$t,NODE_REGION_CONFIG_OPTIONS:$$t,NODE_REGION_CONFIG_FILE_OPTIONS:G$t,resolveRegionConfig:H$t}=(bt(),Z(Mi)),{BinaryDecisionDiagram:z$t,EndpointCache:V$t,decideEndpoint:W$t,customEndpointFunctions:J$t,resolveEndpointConfig:Y$t,getEndpointPlugin:j$t}=(Dt(),Z(u9)),{parseUrl:K$t,getHttpHandlerExtensionConfiguration:X$t,resolveHttpHandlerRuntimeConfig:Z$t,getContentLengthPlugin:eGt}=(Re(),Z(dh)),{DEFAULT_RETRY_MODE:tGt,NODE_RETRY_MODE_CONFIG_OPTIONS:rGt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:nGt,resolveRetryConfig:sGt,getRetryPlugin:oGt}=(jo(),Z(TK)),{TypeRegistry:EHe,getSchemaSerdePlugin:iGt}=(He(),Z(G5)),{resolveAwsSdkSigV4Config:aGt,AwsSdkSigV4Signer:cGt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:lGt}=(ts(),Z(gO)),{defaultProvider:uGt}=cte(),{toUtf8:dGt,fromUtf8:pGt,toBase64:fGt,fromBase64:mGt,calculateBodyLength:hGt}=(xe(),Z(ih)),{streamCollector:AGt,NodeHttpHandler:gGt}=Vu(),{AwsJson1_1Protocol:yGt}=(Nh(),Z(JZ)),{Sha256:EGt}=(Uu(),Z(k9)),CGt=i(async(t,e,r)=>({operation:T$t(e).operation,region:await AHe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function IGt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(IGt,"createAwsAuthSigv4HttpAuthOption");var SGt=i(t=>{let e=[];switch(t.operation){default:e.push(IGt(t))}return e},"defaultECRHttpAuthSchemeProvider"),wGt=i(t=>{let e=aGt(t);return Object.assign(e,{authSchemePreference:AHe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),xGt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),bGt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},BGt="3.1160.0",RGt={version:BGt},xC="ref",qh=-1,$M=!0,dHe="isSet",ute="PartitionResult",nf="stringEquals",GM="booleanEquals",lte="getAttr",pHe={[xC]:"Endpoint"},sf={fn:lte,argv:[{[xC]:ute},"name"]},fHe={[xC]:ute},$h={},mHe=[{[xC]:"Region"}],hHe={conditions:[[dHe,[pHe]],[dHe,mHe],["aws.partition",mHe,ute],[nf,[sf,"aws-eusc"]],[nf,[sf,"aws-iso-f"]],[nf,[sf,"aws-iso-e"]],[nf,[sf,"aws-iso-b"]],[nf,[sf,"aws-iso"]],[nf,[sf,"aws-cn"]],[nf,[sf,"aws-us-gov"]],[nf,[sf,"aws"]],[GM,[{[xC]:"UseFIPS"},$M]],[GM,[{fn:lte,argv:[fHe,"supportsFIPS"]},$M]],[GM,[{[xC]:"UseDualStack"},$M]],[GM,[{fn:lte,argv:[fHe,"supportsDualStack"]},$M]]],results:[[qh],[qh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[qh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[pHe,$h],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",$h],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",$h],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",$h],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$h],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$h],[qh,"FIPS and DualStack are enabled, but this partition does not support one or both"],[qh,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",$h],[qh,"DualStack is enabled but this partition does not support DualStack"],[qh,"Invalid Configuration: Missing Region"]]},NGt=2,Mn=1e8,TGt=new Int32Array([-1,1,-1,0,23,3,1,4,Mn+13,2,5,Mn+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,Mn+4,14,Mn+11,Mn+12,12,18,17,13,Mn+9,Mn+10,13,19,Mn+6,14,Mn+8,Mn+9,11,22,21,13,Mn+5,Mn+4,13,Mn+7,Mn+6,11,Mn+1,24,13,Mn+2,Mn+3]),PGt=z$t.from(TGt,NGt,hHe.conditions,hHe.results),_Gt=new V$t({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vGt=i((t,e={})=>_Gt.get(t,()=>W$t(PGt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");J$t.aws=m$t;var fe=class t extends P$t{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},HM=class t extends fe{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)}},zM=class t extends fe{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)}},VM=class t extends fe{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)}},WM=class t extends fe{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)}},JM=class t extends fe{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)}},YM=class t extends fe{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)}},jM=class t extends fe{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)}},KM=class t extends fe{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)}},XM=class t extends fe{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}},ZM=class t extends fe{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)}},eF=class t extends fe{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)}},tF=class t extends fe{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)}},rF=class t extends fe{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)}},nF=class t extends fe{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)}},sF=class t extends fe{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)}},oF=class t extends fe{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)}},iF=class t extends fe{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)}},aF=class t extends fe{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)}},cF=class t extends fe{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)}},lF=class t extends fe{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)}},uF=class t extends fe{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)}},dF=class t extends fe{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)}},pF=class t extends fe{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)}},fF=class t extends fe{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)}},mF=class t extends fe{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)}},hF=class t extends fe{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)}},AF=class t extends fe{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)}},gF=class t extends fe{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)}},yF=class t extends fe{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)}},EF=class t extends fe{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)}},CF=class t extends fe{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)}},IF=class t extends fe{static{i(this,"ReplicationBackfillNotFoundException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillNotFoundException";name="ReplicationBackfillNotFoundException";$fault="client";constructor(e){super({name:"ReplicationBackfillNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},SF=class t extends fe{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)}},wF=class t extends fe{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)}},xF=class t extends fe{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)}},bF=class t extends fe{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)}},BF=class t extends fe{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)}},RF=class t extends fe{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)}},NF=class t extends fe{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)}},TF=class t extends fe{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)}},PF=class t extends fe{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)}},_F=class t extends fe{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)}},vF=class t extends fe{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)}},QF=class t extends fe{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)}},DF=class t extends fe{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)}},kF=class t extends fe{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)}},OF=class t extends fe{static{i(this,"ReplicationBackfillInProgressException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInProgressException";name="ReplicationBackfillInProgressException";$fault="client";constructor(e){super({name:"ReplicationBackfillInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},LF=class t extends fe{static{i(this,"ReplicationBackfillInvalidStatusException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInvalidStatusException";name="ReplicationBackfillInvalidStatusException";$fault="client";constructor(e){super({name:"ReplicationBackfillInvalidStatusException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},MF=class t extends fe{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)}},FF=class t extends fe{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}},QGt="Attribute",DGt="AuthorizationData",kGt="AuthorizationDataList",OGt="AwsEcrContainerImageDetails",LGt="AttributeList",MGt="BlockedByOrganizationPolicyException",FGt="BatchCheckLayerAvailability",UGt="BatchCheckLayerAvailabilityRequest",qGt="BatchCheckLayerAvailabilityResponse",$Gt="BatchDeleteImage",GGt="BatchDeleteImageRequest",HGt="BatchDeleteImageResponse",zGt="BatchGetImage",VGt="BatchGetImageRequest",WGt="BatchGetImageResponse",JGt="BatchGetRepositoryScanningConfiguration",YGt="BatchGetRepositoryScanningConfigurationRequest",jGt="BatchGetRepositoryScanningConfigurationResponse",KGt="CompleteLayerUpload",XGt="CompleteLayerUploadRequest",ZGt="CompleteLayerUploadResponse",eHt="CreatePullThroughCacheRule",tHt="CreatePullThroughCacheRuleRequest",rHt="CreatePullThroughCacheRuleResponse",nHt="CreateRepository",sHt="CreateRepositoryCreationTemplate",oHt="CreateRepositoryCreationTemplateRequest",iHt="CreateRepositoryCreationTemplateResponse",aHt="CreateRepositoryRequest",cHt="CreateRepositoryResponse",lHt="CvssScore",uHt="CvssScoreAdjustment",dHt="CvssScoreAdjustmentList",pHt="CvssScoreDetails",fHt="CvssScoreList",mHt="DescribeImages",hHt="DescribeImagesFilter",AHt="DescribeImagesRequest",gHt="DescribeImageReplicationStatus",yHt="DescribeImageReplicationStatusRequest",EHt="DescribeImageReplicationStatusResponse",CHt="DescribeImagesResponse",IHt="DescribeImageScanFindings",SHt="DescribeImageScanFindingsRequest",wHt="DescribeImageScanFindingsResponse",xHt="DescribeImageSigningStatus",bHt="DescribeImageSigningStatusRequest",BHt="DescribeImageSigningStatusResponse",RHt="DeleteLifecyclePolicy",NHt="DeleteLifecyclePolicyRequest",THt="DeleteLifecyclePolicyResponse",PHt="DeletePullThroughCacheRule",_Ht="DeletePullThroughCacheRuleRequest",vHt="DeletePullThroughCacheRuleResponse",QHt="DescribePullThroughCacheRulesRequest",DHt="DescribePullThroughCacheRulesResponse",kHt="DescribePullThroughCacheRules",OHt="DeregisterPullTimeUpdateExclusion",LHt="DeregisterPullTimeUpdateExclusionRequest",MHt="DeregisterPullTimeUpdateExclusionResponse",FHt="DeleteRepository",UHt="DescribeReplicationBackfillResults",qHt="DescribeReplicationBackfillResultsRequest",$Ht="DescribeReplicationBackfillResultsResponse",GHt="DeleteRepositoryCreationTemplate",HHt="DeleteRepositoryCreationTemplateRequest",zHt="DeleteRepositoryCreationTemplateResponse",VHt="DescribeRepositoryCreationTemplatesRequest",WHt="DescribeRepositoryCreationTemplatesResponse",JHt="DescribeRepositoryCreationTemplates",YHt="DeleteRegistryPolicy",jHt="DeleteRegistryPolicyRequest",KHt="DeleteRegistryPolicyResponse",XHt="DeleteRepositoryPolicyRequest",ZHt="DeleteRepositoryPolicyResponse",ezt="DeleteRepositoryPolicy",tzt="DeleteRepositoryRequest",rzt="DeleteRepositoryResponse",nzt="DescribeRegistryRequest",szt="DescribeRegistryResponse",ozt="DescribeRepositoriesRequest",izt="DescribeRepositoriesResponse",azt="DescribeRegistry",czt="DescribeRepositories",lzt="DeleteSigningConfiguration",uzt="DeleteSigningConfigurationRequest",dzt="DeleteSigningConfigurationResponse",pzt="ExclusionAlreadyExistsException",fzt="EncryptionConfiguration",mzt="EncryptionConfigurationForRepositoryCreationTemplate",hzt="EnhancedImageScanFinding",Azt="EnhancedImageScanFindingList",gzt="ExclusionNotFoundException",yzt="EmptyUploadException",Ezt="GetAccountSetting",Czt="GetAccountSettingRequest",Izt="GetAccountSettingResponse",Szt="GetAuthorizationToken",wzt="GetAuthorizationTokenRequest",xzt="GetAuthorizationTokenResponse",bzt="GetDownloadUrlForLayer",Bzt="GetDownloadUrlForLayerRequest",Rzt="GetDownloadUrlForLayerResponse",Nzt="GetLifecyclePolicy",Tzt="GetLifecyclePolicyPreview",Pzt="GetLifecyclePolicyPreviewRequest",_zt="GetLifecyclePolicyPreviewResponse",vzt="GetLifecyclePolicyRequest",Qzt="GetLifecyclePolicyResponse",Dzt="GetRegistryPolicy",kzt="GetRegistryPolicyRequest",Ozt="GetRegistryPolicyResponse",Lzt="GetRepositoryPolicyRequest",Mzt="GetRepositoryPolicyResponse",Fzt="GetRepositoryPolicy",Uzt="GetRegistryScanningConfiguration",qzt="GetRegistryScanningConfigurationRequest",$zt="GetRegistryScanningConfigurationResponse",Gzt="GetSigningConfiguration",Hzt="GetSigningConfigurationRequest",zzt="GetSigningConfigurationResponse",Vzt="Image",Wzt="ImageArchivedException",Jzt="ImageAlreadyExistsException",Yzt="ImageDetail",jzt="ImageDigestDoesNotMatchException",Kzt="ImageDetailList",Xzt="ImageFailure",Zzt="ImageFailureList",e3t="ImageIdentifier",t3t="ImageIdentifierList",r3t="ImageList",n3t="InvalidLayerException",s3t="InvalidLayerPartException",o3t="InitiateLayerUpload",i3t="InitiateLayerUploadRequest",a3t="InitiateLayerUploadResponse",c3t="ImageNotFoundException",l3t="InvalidParameterException",u3t="ImageReferrer",d3t="ImageReferrerList",p3t="ImageReplicationStatus",f3t="ImageReplicationStatusList",m3t="ImageScanningConfiguration",h3t="ImageStorageClassUpdateNotSupportedException",A3t="ImageScanFinding",g3t="ImageScanFindingList",y3t="ImageScanFindingsSummary",E3t="ImageScanFindings",C3t="ImageScanStatus",I3t="ImageSigningStatusList",S3t="ImageSigningStatus",w3t="ImageTagAlreadyExistsException",x3t="ImageTagMutabilityExclusionFilter",b3t="ImageTagMutabilityExclusionFilters",B3t="InvalidTagParameterException",R3t="Key",N3t="KmsException",T3t="Layer",P3t="LayerAlreadyExistsException",_3t="LimitExceededException",v3t="LayerFailure",Q3t="LayerFailureList",D3t="ListImages",k3t="LayerInaccessibleException",O3t="ListImagesFilter",L3t="ListImagesRequest",M3t="ListImageReferrersFilter",F3t="ListImageReferrersRequest",U3t="ListImageReferrersResponse",q3t="ListImagesResponse",$3t="ListImageReferrers",G3t="LayerList",H3t="LayersNotFoundException",z3t="LifecyclePolicyNotFoundException",V3t="LifecyclePolicyPreviewFilter",W3t="LifecyclePolicyPreviewInProgressException",J3t="LifecyclePolicyPreviewNotFoundException",Y3t="LifecyclePolicyPreviewResult",j3t="LifecyclePolicyPreviewResultList",K3t="LifecyclePolicyPreviewSummary",X3t="LifecyclePolicyRuleAction",Z3t="LayerPartTooSmallException",eVt="ListPullTimeUpdateExclusions",tVt="ListPullTimeUpdateExclusionsRequest",rVt="ListPullTimeUpdateExclusionsResponse",nVt="ListReplicationBackfills",sVt="ListReplicationBackfillsRequest",oVt="ListReplicationBackfillsResponse",iVt="ListTagsForResource",aVt="ListTagsForResourceRequest",cVt="ListTagsForResourceResponse",lVt="PutAccountSetting",uVt="PutAccountSettingRequest",dVt="PutAccountSettingResponse",pVt="PutImage",fVt="PutImageRequest",mVt="PutImageResponse",hVt="PutImageScanningConfiguration",AVt="PutImageScanningConfigurationRequest",gVt="PutImageScanningConfigurationResponse",yVt="PutImageTagMutability",EVt="PutImageTagMutabilityRequest",CVt="PutImageTagMutabilityResponse",IVt="PutLifecyclePolicy",SVt="PutLifecyclePolicyRequest",wVt="PutLifecyclePolicyResponse",xVt="PutReplicationConfiguration",bVt="PutReplicationConfigurationRequest",BVt="PutReplicationConfigurationResponse",RVt="PutRegistryPolicy",NVt="PutRegistryPolicyRequest",TVt="PutRegistryPolicyResponse",PVt="PutRegistryScanningConfiguration",_Vt="PutRegistryScanningConfigurationRequest",vVt="PutRegistryScanningConfigurationResponse",QVt="PutSigningConfiguration",DVt="PutSigningConfigurationRequest",kVt="PutSigningConfigurationResponse",OVt="PullThroughCacheRule",LVt="PullThroughCacheRuleAlreadyExistsException",MVt="PullThroughCacheRuleList",FVt="PullThroughCacheRuleNotFoundException",UVt="PackageVulnerabilityDetails",qVt="Recommendation",$Vt="RepositoryAlreadyExistsException",GVt="ReplicationBackfillInProgressException",HVt="ReplicationBackfillInvalidStatusException",zVt="ReplicationBackfillNotFoundException",VVt="ReplicationBackfillProgress",WVt="ReplicationBackfillResult",JVt="ReplicationBackfillResultList",YVt="ReplicationBackfillSummary",jVt="ReplicationBackfillSummaryList",KVt="ReplicationConfiguration",XVt="RepositoryCreationTemplate",ZVt="RepositoryCreationTemplateList",e4t="ReplicationDestination",t4t="ReplicationDestinationList",r4t="ResourceDetails",n4t="RepositoryFilter",s4t="RepositoryFilterList",o4t="ReferencedImagesNotFoundException",i4t="RepositoryList",a4t="ResourceList",c4t="RepositoryNotEmptyException",l4t="RepositoryNotFoundException",u4t="RegistryPolicyNotFoundException",d4t="RepositoryPolicyNotFoundException",p4t="RegisterPullTimeUpdateExclusion",f4t="RegisterPullTimeUpdateExclusionRequest",m4t="RegisterPullTimeUpdateExclusionResponse",h4t="ReplicationRule",A4t="ReplicationRuleList",g4t="RegistryScanningConfiguration",y4t="RepositoryScanningConfigurationFailure",E4t="RepositoryScanningConfigurationFailureList",C4t="RepositoryScanningConfigurationList",I4t="RepositoryScanningConfiguration",S4t="RegistryScanningRule",w4t="RegistryScanningRuleList",x4t="Remediation",b4t="Repository",B4t="Resource",R4t="SigningConfiguration",N4t="SigningConfigurationNotFoundException",T4t="ScoreDetails",P4t="ServerException",_4t="SubjectIdentifier",v4t="StartImageScan",Q4t="StartImageScanRequest",D4t="StartImageScanResponse",k4t="StartLifecyclePolicyPreview",O4t="StartLifecyclePolicyPreviewRequest",L4t="StartLifecyclePolicyPreviewResponse",M4t="ScanNotFoundException",F4t="SecretNotFoundException",U4t="SigningRule",q4t="StartReplicationBackfill",$4t="StartReplicationBackfillRequest",G4t="StartReplicationBackfillResponse",H4t="StopReplicationBackfillRequest",z4t="StopReplicationBackfillResponse",V4t="StopReplicationBackfill",W4t="ScanningRepositoryFilter",J4t="ScanningRepositoryFilterList",Y4t="SigningRepositoryFilterList",j4t="SigningRepositoryFilter",K4t="SigningRuleList",X4t="SetRepositoryPolicy",Z4t="SetRepositoryPolicyRequest",eWt="SetRepositoryPolicyResponse",tWt="Tag",rWt="TemplateAlreadyExistsException",nWt="TransitioningImageTotalCount",sWt="TransitioningImageTotalCounts",oWt="TagList",iWt="TooManyTagsException",aWt="TemplateNotFoundException",cWt="TagResource",lWt="TagResourceRequest",uWt="TagResourceResponse",dWt="UpdateImageStorageClass",pWt="UpdateImageStorageClassRequest",fWt="UpdateImageStorageClassResponse",mWt="UnsupportedImageTypeException",hWt="UploadLayerPart",AWt="UploadLayerPartRequest",gWt="UploadLayerPartResponse",yWt="UploadNotFoundException",EWt="UpdatePullThroughCacheRule",CWt="UpdatePullThroughCacheRuleRequest",IWt="UpdatePullThroughCacheRuleResponse",SWt="UntagResource",wWt="UpdateRepositoryCreationTemplate",xWt="UpdateRepositoryCreationTemplateRequest",bWt="UpdateRepositoryCreationTemplateResponse",BWt="UntagResourceRequest",RWt="UntagResourceResponse",NWt="UnableToAccessSecretException",TWt="UnableToDecryptSecretValueException",PWt="UnableToGetUpstreamImageException",_Wt="UnableToGetUpstreamLayerException",vWt="UnableToListUpstreamImageReferrersException",QWt="UnsupportedUpstreamRegistryException",DWt="Value",kWt="ValidationException",OWt="VulnerablePackage",LWt="VulnerablePackagesList",MWt="ValidatePullThroughCacheRule",FWt="ValidatePullThroughCacheRuleRequest",UWt="ValidatePullThroughCacheRuleResponse",qWt="architecture",$Wt="awsAccountId",GWt="authorizationData",HWt="awsEcrContainerImage",dte="appliedFor",zWt="acceptedMediaTypes",VWt="artifactMediaType",WWt="appliedRulePriority",CHe="artifactStatus",JWt="appliedScanFilters",YWt="authorizationToken",jWt="artifactType",KWt="artifactTypes",XWt="action",ZWt="adjustments",e8t="annotations",t8t="arch",r8t="attributes",n8t="author",s8t="backfills",o8t="baseScore",be="client",Gh="credentialArn",RC="createdAt",Hl="customRoleArn",i8t="completedReplicationCount",IHe="cvss",NC="description",a8t="downloadUrl",G0="destination",c8t="destinations",l8t="details",u8t="digest",Ce="error",d8t="expiresAt",SHe="endedAt",p8t="exploitAvailable",H0="encryptionConfiguration",f8t="enhancedFindings",m8t="expiringImageTotalCount",Ku="ecrRepositoryPrefix",h8t="ecrRepositoryPrefixes",wHe="encryptionType",A8t="epoch",q1="failures",g8t="findingArn",y8t="fixAvailable",of="failureCode",E8t="failureCodes",C8t="fixedInVersion",I8t="firstObservedAt",S8t="filePath",$1="failureReason",w8t="failedReplicationCount",xHe="findingSeverityCounts",G1="filterType",x8t="failure",af="filter",b8t="findings",bHe="force",B8t="httpError",R8t="images",N8t="imageDetails",z0="imageDigest",T8t="imageHash",TC="imageIds",ei="imageId",BHe="imageManifest",pte="imageManifestMediaType",RHe="imagePushedAt",H1="imageStatus",z1="imageScanningConfiguration",NHe="imageScanCompletedAt",P8t="imageScanFindings",_8t="imageScanFindingsSummary",v8t="imageSizeInBytes",fte="imageScanStatus",mte="imageTags",Q8t="imageTotalCount",Hh="imageTagMutability",zh="imageTagMutabilityExclusionFilters",THe="imageTag",D8t="inUseCount",k8t="isValid",O8t="id",L8t="image",M8t="key",F8t="kmsError",PHe="kmsKey",U8t="layers",q8t="layerAvailability",$8t="lastArchivedAt",G8t="lastActivatedAt",H8t="lastByteReceived",_He="layerDigests",V0="layerDigest",vHe="lastEvaluatedAt",z8t="lastInUseAt",V8t="lastObservedAt",hte="lifecyclePolicy",W8t="layerPartBlob",Vh="lifecyclePolicyText",J8t="lastRecordedPullTime",Y8t="layerSize",j8t="lastValidByteReceived",Ie="message",Ja="maxResults",QHe="mediaType",K8t="metric",PC="name",Sr="nextToken",X8t="platform",Z8t="pushedAt",V1="principalArn",eJt="proxyEndpoint",tJt="partFirstByte",rJt="partLastByte",nJt="packageManager",sJt="previewResults",oJt="partSize",cf="policyText",iJt="pullThroughCacheRules",aJt="pullTimeUpdateExclusions",cJt="packageVulnerabilityDetails",W1="prefix",lJt="prefixes",DHe="progress",uJt="registry",Ate="resourceArn",kHe="repositoryArn",_C="replicationBackfillId",gte="replicationConfiguration",yte="repositoryCreationTemplate",dJt="repositoryCreationTemplates",Ete="repositoryFilters",L="registryId",pJt="registryIds",he="repositoryName",OHe="repositoryNames",Cte="repositoryPolicy",fJt="replicationStatuses",mJt="registryScanningConfiguration",hJt="resultStatusFilter",Ite="resourceTags",AJt="referenceUrls",gJt="repositoryUri",yJt="relatedVulnerabilities",LHe="repository",EJt="reason",CJt="recommendation",IJt="referrers",MHe="region",SJt="release",wJt="remediation",xJt="repositories",bJt="results",BJt="resources",J1="rules",FHe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",Y1="startedAt",RJt="scanningConfigurations",NJt="scanningConfiguration",j1="signingConfiguration",TJt="storageClass",PJt="scoreDetails",UHe="scanFrequency",_Jt="subjectId",vJt="subImageFailureCodes",QJt="sourceLayerHash",DJt="subjectManifestDigest",qHe="scanOnPush",$He="signingProfileArn",kJt="scoreSource",OJt="signingStatuses",GHe="scanType",LJt="sourceUrl",HHe="scoringVector",zHe="score",MJt="server",VHe="severity",FJt="size",WHe="source",Ya="status",UJt="summary",K1="tags",qJt="transitioningImageTotalCounts",$Jt="tagKeys",GJt="totalReplicationCount",Ste="tagStatus",wte="targetStorageClass",HJt="text",zJt="title",xte="type",VJt="uri",X1="updatedAt",vC="uploadId",bte="upstreamRegistry",QC="upstreamRepositoryPrefix",W0="upstreamRegistryUrl",WJt="url",Z1="value",JJt="vendorCreatedAt",YJt="vulnerabilityId",jJt="vulnerablePackages",KJt="vendorSeverity",JHe="vulnerabilitySourceUpdatedAt",XJt="vendorUpdatedAt",Bte="version",w="com.amazonaws.ecr",YHe=new EHe(FHe),jHe=[-3,FHe,"ECRServiceException",0,[],[]];YHe.registerError(jHe,fe);var ye=new EHe(w),KHe=[-3,w,MGt,{[Ce]:be},[Ie],[0]];ye.registerError(KHe,_F);var XHe=[-3,w,yzt,{[Ce]:be},[Ie],[0]];ye.registerError(XHe,jM);var ZHe=[-3,w,pzt,{[Ce]:be},[Ie],[0]];ye.registerError(ZHe,vF);var eze=[-3,w,gzt,{[Ce]:be},[Ie],[0]];ye.registerError(eze,yF);var tze=[-3,w,Jzt,{[Ce]:be},[Ie],[0]];ye.registerError(tze,RF);var rze=[-3,w,Wzt,{[Ce]:be},[Ie],[0]];ye.registerError(rze,QF);var nze=[-3,w,jzt,{[Ce]:be},[Ie],[0]];ye.registerError(nze,NF);var sze=[-3,w,c3t,{[Ce]:be},[Ie],[0]];ye.registerError(sze,EF);var oze=[-3,w,h3t,{[Ce]:be},[Ie],[0]];ye.registerError(oze,MF);var ize=[-3,w,w3t,{[Ce]:be},[Ie],[0]];ye.registerError(ize,TF);var aze=[-3,w,n3t,{[Ce]:be},[Ie],[0]];ye.registerError(aze,KM);var cze=[-3,w,s3t,{[Ce]:be},[L,he,vC,j8t,Ie],[0,0,0,1,0]];ye.registerError(cze,FF);var lze=[-3,w,l3t,{[Ce]:be},[Ie],[0]];ye.registerError(lze,HM);var uze=[-3,w,B3t,{[Ce]:be},[Ie],[0]];ye.registerError(uze,aF);var dze=[-3,w,N3t,{[Ce]:be},[Ie,F8t],[0,0]];ye.registerError(dze,XM);var pze=[-3,w,P3t,{[Ce]:be},[Ie],[0]];ye.registerError(pze,ZM);var fze=[-3,w,k3t,{[Ce]:be},[Ie],[0]];ye.registerError(fze,SF);var mze=[-3,w,Z3t,{[Ce]:be},[Ie],[0]];ye.registerError(mze,eF);var hze=[-3,w,H3t,{[Ce]:be},[Ie],[0]];ye.registerError(hze,wF);var Aze=[-3,w,z3t,{[Ce]:be},[Ie],[0]];ye.registerError(Aze,dF);var gze=[-3,w,W3t,{[Ce]:be},[Ie],[0]];ye.registerError(gze,kF);var yze=[-3,w,J3t,{[Ce]:be},[Ie],[0]];ye.registerError(yze,bF);var Eze=[-3,w,_3t,{[Ce]:be},[Ie],[0]];ye.registerError(Eze,WM);var Cze=[-3,w,LVt,{[Ce]:be},[Ie],[0]];ye.registerError(Cze,rF);var Ize=[-3,w,FVt,{[Ce]:be},[Ie],[0]];ye.registerError(Ize,pF);var Sze=[-3,w,o4t,{[Ce]:be},[Ie],[0]];ye.registerError(Sze,PF);var wze=[-3,w,u4t,{[Ce]:be},[Ie],[0]];ye.registerError(wze,fF);var xze=[-3,w,GVt,{[Ce]:be},[Ie],[0]];ye.registerError(xze,OF);var bze=[-3,w,HVt,{[Ce]:be},[Ie],[0]];ye.registerError(bze,LF);var Bze=[-3,w,zVt,{[Ce]:be},[Ie],[0]];ye.registerError(Bze,IF);var Rze=[-3,w,$Vt,{[Ce]:be},[Ie],[0]];ye.registerError(Rze,cF);var Nze=[-3,w,c4t,{[Ce]:be},[Ie],[0]];ye.registerError(Nze,mF);var Tze=[-3,w,l4t,{[Ce]:be},[Ie],[0]];ye.registerError(Tze,zM);var Pze=[-3,w,d4t,{[Ce]:be},[Ie],[0]];ye.registerError(Pze,AF);var _ze=[-3,w,M4t,{[Ce]:be},[Ie],[0]];ye.registerError(_ze,CF);var vze=[-3,w,F4t,{[Ce]:be},[Ie],[0]];ye.registerError(vze,nF);var Qze=[-3,w,P4t,{[Ce]:MJt},[Ie],[0]];ye.registerError(Qze,VM);var Dze=[-3,w,N4t,{[Ce]:be},[Ie],[0]];ye.registerError(Dze,gF);var kze=[-3,w,rWt,{[Ce]:be},[Ie],[0]];ye.registerError(kze,uF);var Oze=[-3,w,aWt,{[Ce]:be},[Ie],[0]];ye.registerError(Oze,hF);var Lze=[-3,w,iWt,{[Ce]:be},[Ie],[0]];ye.registerError(Lze,lF);var Mze=[-3,w,NWt,{[Ce]:be},[Ie],[0]];ye.registerError(Mze,sF);var Fze=[-3,w,TWt,{[Ce]:be},[Ie],[0]];ye.registerError(Fze,oF);var Uze=[-3,w,PWt,{[Ce]:be},[Ie],[0]];ye.registerError(Uze,JM);var qze=[-3,w,_Wt,{[Ce]:be},[Ie],[0]];ye.registerError(qze,xF);var $ze=[-3,w,vWt,{[Ce]:be},[Ie],[0]];ye.registerError($ze,BF);var Gze=[-3,w,mWt,{[Ce]:be},[Ie],[0]];ye.registerError(Gze,DF);var Hze=[-3,w,QWt,{[Ce]:be},[Ie],[0]];ye.registerError(Hze,iF);var zze=[-3,w,yWt,{[Ce]:be},[Ie],[0]];ye.registerError(zze,tF);var Vze=[-3,w,kWt,{[Ce]:be,[B8t]:400},[Ie],[0]];ye.registerError(Vze,YM);var Wze=[YHe,ye],Jze=[3,w,QGt,0,[M8t,Z1],[0,0],1],Yze=[3,w,DGt,0,[YWt,d8t,eJt],[0,4,0]],jze=[3,w,OGt,0,[qWt,n8t,T8t,mte,X8t,Z8t,z8t,D8t,uJt,he],[0,0,0,64,0,4,4,1,0,0]],Kze=[3,w,UGt,0,[he,_He,L],[0,64,0],2],Xze=[3,w,qGt,0,[U8t,q1],[()=>dYt,()=>uYt]],Zze=[3,w,GGt,0,[he,TC,L],[0,()=>DC,0],2],e3e=[3,w,HGt,0,[TC,q1],[()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4e],a8e=[9,w,SWt,0,()=>G4e,()=>H4e],c8e=[9,w,dWt,0,()=>z4e,()=>V4e],l8e=[9,w,EWt,0,()=>W4e,()=>J4e],u8e=[9,w,wWt,0,()=>Y4e,()=>j4e],d8e=[9,w,hWt,0,()=>K4e,()=>X4e],p8e=[9,w,MWt,0,()=>Z4e,()=>eWe],NYt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??mGt,base64Encoder:t?.base64Encoder??fGt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??vGt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??SGt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new cGt}],logger:t?.logger??new _$t,protocol:t?.protocol??yGt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:Wze,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??EGt,urlParser:t?.urlParser??K$t,utf8Decoder:t?.utf8Decoder??pGt,utf8Encoder:t?.utf8Encoder??dGt}),"getRuntimeConfig$1"),TYt=i(t=>{v$t(process.version);let e=F$t(t),r=i(()=>e().then(Q$t),"defaultConfigProvider"),n=NYt(t);h$t(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Uh(lGt,s),bodyLengthChecker:t?.bodyLengthChecker??hGt,credentialDefaultProvider:t?.credentialDefaultProvider??uGt,defaultUserAgentProvider:t?.defaultUserAgentProvider??A$t({serviceId:n.serviceId,clientVersion:RGt.version}),maxAttempts:t?.maxAttempts??Uh(nGt,t),region:t?.region??Uh($$t,{...G$t,...s}),requestHandler:gGt.create(t?.requestHandler??r),retryMode:t?.retryMode??Uh({...rGt,default:i(async()=>(await r()).retryMode||tGt,"default")},t),streamCollector:t?.streamCollector??AGt,useDualstackEndpoint:t?.useDualstackEndpoint??Uh(q$t,s),useFipsEndpoint:t?.useFipsEndpoint??Uh(U$t,s),userAgentAppId:t?.userAgentAppId??Uh(g$t,s)}},"getRuntimeConfig"),PYt=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"),_Yt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),vYt=i((t,e)=>{let r=Object.assign(y$t(t),D$t(t),X$t(t),PYt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,E$t(r),k$t(r),Z$t(r),_Yt(r))},"resolveRuntimeExtensions"),Zo=class extends gHe{static{i(this,"ECRClient")}config;constructor(...[e]){let r=TYt(e||{});super(r),this.initConfig=r;let n=xGt(r),s=C$t(n),o=sGt(s),a=H$t(o),c=I$t(a),l=Y$t(c),u=wGt(l),d=vYt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(iGt(this.config)),this.middlewareStack.use(S$t(this.config)),this.middlewareStack.use(oGt(this.config)),this.middlewareStack.use(eGt(this.config)),this.middlewareStack.use(w$t(this.config)),this.middlewareStack.use(x$t(this.config)),this.middlewareStack.use(b$t(this.config)),this.middlewareStack.use(B$t(this.config,{httpAuthSchemeParametersProvider:CGt,identityProviderConfigProvider:i(async p=>new R$t({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(N$t(this.config))}destroy(){super.destroy()}},te=O$t(bGt,"AmazonEC2ContainerRegistry_V20150921","ECRClient",j$t),re={},ne=i((t,e,r,n)=>[],"_mw0"),UF=class extends te(re,ne,"BatchCheckLayerAvailability",oWe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},qF=class extends te(re,ne,"BatchDeleteImage",iWe){static{i(this,"BatchDeleteImageCommand")}},$F=class extends te(re,ne,"BatchGetImage",aWe){static{i(this,"BatchGetImageCommand")}},GF=class extends te(re,ne,"BatchGetRepositoryScanningConfiguration",cWe){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},HF=class extends te(re,ne,"CompleteLayerUpload",lWe){static{i(this,"CompleteLayerUploadCommand")}},zF=class extends te(re,ne,"CreatePullThroughCacheRule",uWe){static{i(this,"CreatePullThroughCacheRuleCommand")}},VF=class extends te(re,ne,"CreateRepository",dWe){static{i(this,"CreateRepositoryCommand")}},WF=class extends te(re,ne,"CreateRepositoryCreationTemplate",pWe){static{i(this,"CreateRepositoryCreationTemplateCommand")}},JF=class extends te(re,ne,"DeleteLifecyclePolicy",fWe){static{i(this,"DeleteLifecyclePolicyCommand")}},YF=class extends te(re,ne,"DeletePullThroughCacheRule",mWe){static{i(this,"DeletePullThroughCacheRuleCommand")}},jF=class extends te(re,ne,"DeleteRegistryPolicy",hWe){static{i(this,"DeleteRegistryPolicyCommand")}},KF=class extends te(re,ne,"DeleteRepository",AWe){static{i(this,"DeleteRepositoryCommand")}},XF=class extends te(re,ne,"DeleteRepositoryCreationTemplate",gWe){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},ZF=class extends te(re,ne,"DeleteRepositoryPolicy",yWe){static{i(this,"DeleteRepositoryPolicyCommand")}},e1=class extends te(re,ne,"DeleteSigningConfiguration",EWe){static{i(this,"DeleteSigningConfigurationCommand")}},t1=class extends te(re,ne,"DeregisterPullTimeUpdateExclusion",CWe){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},r1=class extends te(re,ne,"DescribeImageReplicationStatus",IWe){static{i(this,"DescribeImageReplicationStatusCommand")}},bC=class extends te(re,ne,"DescribeImageScanFindings",wWe){static{i(this,"DescribeImageScanFindingsCommand")}},O0=class extends te(re,ne,"DescribeImages",SWe){static{i(this,"DescribeImagesCommand")}},n1=class extends te(re,ne,"DescribeImageSigningStatus",xWe){static{i(this,"DescribeImageSigningStatusCommand")}},L0=class extends te(re,ne,"DescribePullThroughCacheRules",bWe){static{i(this,"DescribePullThroughCacheRulesCommand")}},s1=class extends te(re,ne,"DescribeRegistry",BWe){static{i(this,"DescribeRegistryCommand")}},M0=class extends te(re,ne,"DescribeReplicationBackfillResults",RWe){static{i(this,"DescribeReplicationBackfillResultsCommand")}},F0=class extends te(re,ne,"DescribeRepositories",NWe){static{i(this,"DescribeRepositoriesCommand")}},U0=class extends te(re,ne,"DescribeRepositoryCreationTemplates",TWe){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},o1=class extends te(re,ne,"GetAccountSetting",PWe){static{i(this,"GetAccountSettingCommand")}},i1=class extends te(re,ne,"GetAuthorizationToken",_We){static{i(this,"GetAuthorizationTokenCommand")}},a1=class extends te(re,ne,"GetDownloadUrlForLayer",vWe){static{i(this,"GetDownloadUrlForLayerCommand")}},c1=class extends te(re,ne,"GetLifecyclePolicy",QWe){static{i(this,"GetLifecyclePolicyCommand")}},BC=class extends te(re,ne,"GetLifecyclePolicyPreview",DWe){static{i(this,"GetLifecyclePolicyPreviewCommand")}},l1=class extends te(re,ne,"GetRegistryPolicy",kWe){static{i(this,"GetRegistryPolicyCommand")}},u1=class extends te(re,ne,"GetRegistryScanningConfiguration",OWe){static{i(this,"GetRegistryScanningConfigurationCommand")}},d1=class extends te(re,ne,"GetRepositoryPolicy",LWe){static{i(this,"GetRepositoryPolicyCommand")}},p1=class extends te(re,ne,"GetSigningConfiguration",MWe){static{i(this,"GetSigningConfigurationCommand")}},f1=class extends te(re,ne,"InitiateLayerUpload",FWe){static{i(this,"InitiateLayerUploadCommand")}},m1=class extends te(re,ne,"ListImageReferrers",UWe){static{i(this,"ListImageReferrersCommand")}},q0=class extends te(re,ne,"ListImages",qWe){static{i(this,"ListImagesCommand")}},h1=class extends te(re,ne,"ListPullTimeUpdateExclusions",$We){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},$0=class extends te(re,ne,"ListReplicationBackfills",GWe){static{i(this,"ListReplicationBackfillsCommand")}},A1=class extends te(re,ne,"ListTagsForResource",HWe){static{i(this,"ListTagsForResourceCommand")}},g1=class extends te(re,ne,"PutAccountSetting",zWe){static{i(this,"PutAccountSettingCommand")}},y1=class extends te(re,ne,"PutImage",VWe){static{i(this,"PutImageCommand")}},E1=class extends te(re,ne,"PutImageScanningConfiguration",WWe){static{i(this,"PutImageScanningConfigurationCommand")}},C1=class extends te(re,ne,"PutImageTagMutability",JWe){static{i(this,"PutImageTagMutabilityCommand")}},I1=class extends te(re,ne,"PutLifecyclePolicy",YWe){static{i(this,"PutLifecyclePolicyCommand")}},S1=class extends te(re,ne,"PutRegistryPolicy",jWe){static{i(this,"PutRegistryPolicyCommand")}},w1=class extends te(re,ne,"PutRegistryScanningConfiguration",KWe){static{i(this,"PutRegistryScanningConfigurationCommand")}},x1=class extends te(re,ne,"PutReplicationConfiguration",XWe){static{i(this,"PutReplicationConfigurationCommand")}},b1=class extends te(re,ne,"PutSigningConfiguration",ZWe){static{i(this,"PutSigningConfigurationCommand")}},B1=class extends te(re,ne,"RegisterPullTimeUpdateExclusion",e8e){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},R1=class extends te(re,ne,"SetRepositoryPolicy",t8e){static{i(this,"SetRepositoryPolicyCommand")}},N1=class extends te(re,ne,"StartImageScan",r8e){static{i(this,"StartImageScanCommand")}},T1=class extends te(re,ne,"StartLifecyclePolicyPreview",n8e){static{i(this,"StartLifecyclePolicyPreviewCommand")}},P1=class extends te(re,ne,"StartReplicationBackfill",s8e){static{i(this,"StartReplicationBackfillCommand")}},_1=class extends te(re,ne,"StopReplicationBackfill",o8e){static{i(this,"StopReplicationBackfillCommand")}},v1=class extends te(re,ne,"TagResource",i8e){static{i(this,"TagResourceCommand")}},Q1=class extends te(re,ne,"UntagResource",a8e){static{i(this,"UntagResourceCommand")}},D1=class extends te(re,ne,"UpdateImageStorageClass",c8e){static{i(this,"UpdateImageStorageClassCommand")}},k1=class extends te(re,ne,"UpdatePullThroughCacheRule",l8e){static{i(this,"UpdatePullThroughCacheRuleCommand")}},O1=class extends te(re,ne,"UpdateRepositoryCreationTemplate",u8e){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},L1=class extends te(re,ne,"UploadLayerPart",d8e){static{i(this,"UploadLayerPartCommand")}},M1=class extends te(re,ne,"ValidatePullThroughCacheRule",p8e){static{i(this,"ValidatePullThroughCacheRuleCommand")}},f8e=ju(Zo,bC,"nextToken","nextToken","maxResults"),m8e=ju(Zo,O0,"nextToken","nextToken","maxResults"),h8e=ju(Zo,L0,"nextToken","nextToken","maxResults"),A8e=ju(Zo,M0,"nextToken","nextToken","maxResults"),g8e=ju(Zo,F0,"nextToken","nextToken","maxResults"),y8e=ju(Zo,U0,"nextToken","nextToken","maxResults"),E8e=ju(Zo,BC,"nextToken","nextToken","maxResults"),C8e=ju(Zo,q0,"nextToken","nextToken","maxResults"),I8e=ju(Zo,$0,"nextToken","nextToken","maxResults"),S8e=i(async(t,e)=>{let r;try{let n=await t.send(new bC(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:wC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:wC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:wC.RETRY,reason:r}},"checkState$1"),QYt=i(async(t,e)=>U1({...{minDelay:5,maxDelay:120},...t},e,S8e),"waitForImageScanComplete"),w8e=i(async(t,e)=>{let n=await U1({...{minDelay:5,maxDelay:120},...t},e,S8e);return yHe(n)},"waitUntilImageScanComplete"),x8e=i(async(t,e)=>{let r;try{let n=await t.send(new BC(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:wC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:wC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:wC.RETRY,reason:r}},"checkState"),DYt=i(async(t,e)=>U1({...{minDelay:5,maxDelay:120},...t},e,x8e),"waitForLifecyclePolicyPreviewComplete"),b8e=i(async(t,e)=>{let n=await U1({...{minDelay:5,maxDelay:120},...t},e,x8e);return yHe(n)},"waitUntilLifecyclePolicyPreviewComplete"),kYt={BatchCheckLayerAvailabilityCommand:UF,BatchDeleteImageCommand:qF,BatchGetImageCommand:$F,BatchGetRepositoryScanningConfigurationCommand:GF,CompleteLayerUploadCommand:HF,CreatePullThroughCacheRuleCommand:zF,CreateRepositoryCommand:VF,CreateRepositoryCreationTemplateCommand:WF,DeleteLifecyclePolicyCommand:JF,DeletePullThroughCacheRuleCommand:YF,DeleteRegistryPolicyCommand:jF,DeleteRepositoryCommand:KF,DeleteRepositoryCreationTemplateCommand:XF,DeleteRepositoryPolicyCommand:ZF,DeleteSigningConfigurationCommand:e1,DeregisterPullTimeUpdateExclusionCommand:t1,DescribeImageReplicationStatusCommand:r1,DescribeImagesCommand:O0,DescribeImageScanFindingsCommand:bC,DescribeImageSigningStatusCommand:n1,DescribePullThroughCacheRulesCommand:L0,DescribeRegistryCommand:s1,DescribeReplicationBackfillResultsCommand:M0,DescribeRepositoriesCommand:F0,DescribeRepositoryCreationTemplatesCommand:U0,GetAccountSettingCommand:o1,GetAuthorizationTokenCommand:i1,GetDownloadUrlForLayerCommand:a1,GetLifecyclePolicyCommand:c1,GetLifecyclePolicyPreviewCommand:BC,GetRegistryPolicyCommand:l1,GetRegistryScanningConfigurationCommand:u1,GetRepositoryPolicyCommand:d1,GetSigningConfigurationCommand:p1,InitiateLayerUploadCommand:f1,ListImageReferrersCommand:m1,ListImagesCommand:q0,ListPullTimeUpdateExclusionsCommand:h1,ListReplicationBackfillsCommand:$0,ListTagsForResourceCommand:A1,PutAccountSettingCommand:g1,PutImageCommand:y1,PutImageScanningConfigurationCommand:E1,PutImageTagMutabilityCommand:C1,PutLifecyclePolicyCommand:I1,PutRegistryPolicyCommand:S1,PutRegistryScanningConfigurationCommand:w1,PutReplicationConfigurationCommand:x1,PutSigningConfigurationCommand:b1,RegisterPullTimeUpdateExclusionCommand:B1,SetRepositoryPolicyCommand:R1,StartImageScanCommand:N1,StartLifecyclePolicyPreviewCommand:T1,StartReplicationBackfillCommand:P1,StopReplicationBackfillCommand:_1,TagResourceCommand:v1,UntagResourceCommand:Q1,UpdateImageStorageClassCommand:D1,UpdatePullThroughCacheRuleCommand:k1,UpdateRepositoryCreationTemplateCommand:O1,UploadLayerPartCommand:L1,ValidatePullThroughCacheRuleCommand:M1},OYt={paginateDescribeImages:m8e,paginateDescribeImageScanFindings:f8e,paginateDescribePullThroughCacheRules:h8e,paginateDescribeReplicationBackfillResults:A8e,paginateDescribeRepositories:g8e,paginateDescribeRepositoryCreationTemplates:y8e,paginateGetLifecyclePolicyPreview:E8e,paginateListImages:C8e,paginateListReplicationBackfills:I8e},LYt={waitUntilImageScanComplete:w8e,waitUntilLifecyclePolicyPreviewComplete:b8e},F1=class extends Zo{static{i(this,"ECR")}};L$t(kYt,F1,{paginators:OYt,waiters:LYt});var MYt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},FYt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},UYt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},qYt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},$Yt={WILDCARD:"WILDCARD"},GYt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},HYt={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"},zYt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},VYt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},WYt={WILDCARD:"WILDCARD"},JYt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},YYt={WILDCARD_MATCH:"WILDCARD_MATCH"},jYt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},KYt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},XYt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},ZYt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},ejt={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"},tjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},rjt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},njt={PREFIX_MATCH:"PREFIX_MATCH"},sjt={COMPLETE:"COMPLETE",FAILED:"FAILED"},ojt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PREPARING:"PREPARING",STOPPED:"STOPPED",STOPPING:"STOPPING"},ijt={ARCHIVE:"ARCHIVE"},ajt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},cjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},ljt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},ujt={BASIC:"BASIC",ENHANCED:"ENHANCED"},djt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},pjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},fjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};C.ArtifactStatus=pjt;C.ArtifactStatusFilter=djt;C.Attribute$=Jze;C.AuthorizationData$=Yze;C.AwsEcrContainerImageDetails$=jze;C.BatchCheckLayerAvailability$=oWe;C.BatchCheckLayerAvailabilityCommand=UF;C.BatchCheckLayerAvailabilityRequest$=Kze;C.BatchCheckLayerAvailabilityResponse$=Xze;C.BatchDeleteImage$=iWe;C.BatchDeleteImageCommand=qF;C.BatchDeleteImageRequest$=Zze;C.BatchDeleteImageResponse$=e3e;C.BatchGetImage$=aWe;C.BatchGetImageCommand=$F;C.BatchGetImageRequest$=t3e;C.BatchGetImageResponse$=r3e;C.BatchGetRepositoryScanningConfiguration$=cWe;C.BatchGetRepositoryScanningConfigurationCommand=GF;C.BatchGetRepositoryScanningConfigurationRequest$=n3e;C.BatchGetRepositoryScanningConfigurationResponse$=s3e;C.BlockedByOrganizationPolicyException=_F;C.BlockedByOrganizationPolicyException$=KHe;C.CompleteLayerUpload$=lWe;C.CompleteLayerUploadCommand=HF;C.CompleteLayerUploadRequest$=o3e;C.CompleteLayerUploadResponse$=i3e;C.CreatePullThroughCacheRule$=uWe;C.CreatePullThroughCacheRuleCommand=zF;C.CreatePullThroughCacheRuleRequest$=a3e;C.CreatePullThroughCacheRuleResponse$=c3e;C.CreateRepository$=dWe;C.CreateRepositoryCommand=VF;C.CreateRepositoryCreationTemplate$=pWe;C.CreateRepositoryCreationTemplateCommand=WF;C.CreateRepositoryCreationTemplateRequest$=l3e;C.CreateRepositoryCreationTemplateResponse$=u3e;C.CreateRepositoryRequest$=d3e;C.CreateRepositoryResponse$=p3e;C.CvssScore$=f3e;C.CvssScoreAdjustment$=m3e;C.CvssScoreDetails$=h3e;C.DeleteLifecyclePolicy$=fWe;C.DeleteLifecyclePolicyCommand=JF;C.DeleteLifecyclePolicyRequest$=A3e;C.DeleteLifecyclePolicyResponse$=g3e;C.DeletePullThroughCacheRule$=mWe;C.DeletePullThroughCacheRuleCommand=YF;C.DeletePullThroughCacheRuleRequest$=y3e;C.DeletePullThroughCacheRuleResponse$=E3e;C.DeleteRegistryPolicy$=hWe;C.DeleteRegistryPolicyCommand=jF;C.DeleteRegistryPolicyRequest$=C3e;C.DeleteRegistryPolicyResponse$=I3e;C.DeleteRepository$=AWe;C.DeleteRepositoryCommand=KF;C.DeleteRepositoryCreationTemplate$=gWe;C.DeleteRepositoryCreationTemplateCommand=XF;C.DeleteRepositoryCreationTemplateRequest$=S3e;C.DeleteRepositoryCreationTemplateResponse$=w3e;C.DeleteRepositoryPolicy$=yWe;C.DeleteRepositoryPolicyCommand=ZF;C.DeleteRepositoryPolicyRequest$=x3e;C.DeleteRepositoryPolicyResponse$=b3e;C.DeleteRepositoryRequest$=B3e;C.DeleteRepositoryResponse$=R3e;C.DeleteSigningConfiguration$=EWe;C.DeleteSigningConfigurationCommand=e1;C.DeleteSigningConfigurationRequest$=N3e;C.DeleteSigningConfigurationResponse$=T3e;C.DeregisterPullTimeUpdateExclusion$=CWe;C.DeregisterPullTimeUpdateExclusionCommand=t1;C.DeregisterPullTimeUpdateExclusionRequest$=P3e;C.DeregisterPullTimeUpdateExclusionResponse$=_3e;C.DescribeImageReplicationStatus$=IWe;C.DescribeImageReplicationStatusCommand=r1;C.DescribeImageReplicationStatusRequest$=v3e;C.DescribeImageReplicationStatusResponse$=Q3e;C.DescribeImageScanFindings$=wWe;C.DescribeImageScanFindingsCommand=bC;C.DescribeImageScanFindingsRequest$=D3e;C.DescribeImageScanFindingsResponse$=k3e;C.DescribeImageSigningStatus$=xWe;C.DescribeImageSigningStatusCommand=n1;C.DescribeImageSigningStatusRequest$=L3e;C.DescribeImageSigningStatusResponse$=M3e;C.DescribeImages$=SWe;C.DescribeImagesCommand=O0;C.DescribeImagesFilter$=O3e;C.DescribeImagesRequest$=F3e;C.DescribeImagesResponse$=U3e;C.DescribePullThroughCacheRules$=bWe;C.DescribePullThroughCacheRulesCommand=L0;C.DescribePullThroughCacheRulesRequest$=q3e;C.DescribePullThroughCacheRulesResponse$=$3e;C.DescribeRegistry$=BWe;C.DescribeRegistryCommand=s1;C.DescribeRegistryRequest$=G3e;C.DescribeRegistryResponse$=H3e;C.DescribeReplicationBackfillResults$=RWe;C.DescribeReplicationBackfillResultsCommand=M0;C.DescribeReplicationBackfillResultsRequest$=z3e;C.DescribeReplicationBackfillResultsResponse$=V3e;C.DescribeRepositories$=NWe;C.DescribeRepositoriesCommand=F0;C.DescribeRepositoriesRequest$=W3e;C.DescribeRepositoriesResponse$=J3e;C.DescribeRepositoryCreationTemplates$=TWe;C.DescribeRepositoryCreationTemplatesCommand=U0;C.DescribeRepositoryCreationTemplatesRequest$=Y3e;C.DescribeRepositoryCreationTemplatesResponse$=j3e;C.ECR=F1;C.ECRClient=Zo;C.ECRServiceException=fe;C.ECRServiceException$=jHe;C.EmptyUploadException=jM;C.EmptyUploadException$=XHe;C.EncryptionConfiguration$=Rte;C.EncryptionConfigurationForRepositoryCreationTemplate$=eU;C.EncryptionType=zYt;C.EnhancedImageScanFinding$=K3e;C.ExclusionAlreadyExistsException=vF;C.ExclusionAlreadyExistsException$=ZHe;C.ExclusionNotFoundException=yF;C.ExclusionNotFoundException$=eze;C.FindingSeverity=ZYt;C.GetAccountSetting$=PWe;C.GetAccountSettingCommand=o1;C.GetAccountSettingRequest$=X3e;C.GetAccountSettingResponse$=Z3e;C.GetAuthorizationToken$=_We;C.GetAuthorizationTokenCommand=i1;C.GetAuthorizationTokenRequest$=eVe;C.GetAuthorizationTokenResponse$=tVe;C.GetDownloadUrlForLayer$=vWe;C.GetDownloadUrlForLayerCommand=a1;C.GetDownloadUrlForLayerRequest$=rVe;C.GetDownloadUrlForLayerResponse$=nVe;C.GetLifecyclePolicy$=QWe;C.GetLifecyclePolicyCommand=c1;C.GetLifecyclePolicyPreview$=DWe;C.GetLifecyclePolicyPreviewCommand=BC;C.GetLifecyclePolicyPreviewRequest$=sVe;C.GetLifecyclePolicyPreviewResponse$=oVe;C.GetLifecyclePolicyRequest$=iVe;C.GetLifecyclePolicyResponse$=aVe;C.GetRegistryPolicy$=kWe;C.GetRegistryPolicyCommand=l1;C.GetRegistryPolicyRequest$=cVe;C.GetRegistryPolicyResponse$=lVe;C.GetRegistryScanningConfiguration$=OWe;C.GetRegistryScanningConfigurationCommand=u1;C.GetRegistryScanningConfigurationRequest$=uVe;C.GetRegistryScanningConfigurationResponse$=dVe;C.GetRepositoryPolicy$=LWe;C.GetRepositoryPolicyCommand=d1;C.GetRepositoryPolicyRequest$=pVe;C.GetRepositoryPolicyResponse$=fVe;C.GetSigningConfiguration$=MWe;C.GetSigningConfigurationCommand=p1;C.GetSigningConfigurationRequest$=mVe;C.GetSigningConfigurationResponse$=hVe;C.Image$=Nte;C.ImageActionType=ajt;C.ImageAlreadyExistsException=RF;C.ImageAlreadyExistsException$=tze;C.ImageArchivedException=QF;C.ImageArchivedException$=rze;C.ImageDetail$=AVe;C.ImageDigestDoesNotMatchException=NF;C.ImageDigestDoesNotMatchException$=nze;C.ImageFailure$=gVe;C.ImageFailureCode=UYt;C.ImageIdentifier$=Ps;C.ImageNotFoundException=EF;C.ImageNotFoundException$=sze;C.ImageReferrer$=yVe;C.ImageReplicationStatus$=EVe;C.ImageScanFinding$=CVe;C.ImageScanFindings$=IVe;C.ImageScanFindingsSummary$=SVe;C.ImageScanStatus$=tU;C.ImageScanningConfiguration$=J0;C.ImageSigningStatus$=wVe;C.ImageStatus=tjt;C.ImageStatusFilter=KYt;C.ImageStorageClassUpdateNotSupportedException=MF;C.ImageStorageClassUpdateNotSupportedException$=oze;C.ImageTagAlreadyExistsException=TF;C.ImageTagAlreadyExistsException$=ize;C.ImageTagMutability=VYt;C.ImageTagMutabilityExclusionFilter$=xVe;C.ImageTagMutabilityExclusionFilterType=WYt;C.InitiateLayerUpload$=FWe;C.InitiateLayerUploadCommand=f1;C.InitiateLayerUploadRequest$=bVe;C.InitiateLayerUploadResponse$=BVe;C.InvalidLayerException=KM;C.InvalidLayerException$=aze;C.InvalidLayerPartException=FF;C.InvalidLayerPartException$=cze;C.InvalidParameterException=HM;C.InvalidParameterException$=lze;C.InvalidTagParameterException=aF;C.InvalidTagParameterException$=uze;C.KmsException=XM;C.KmsException$=dze;C.Layer$=RVe;C.LayerAlreadyExistsException=ZM;C.LayerAlreadyExistsException$=pze;C.LayerAvailability=FYt;C.LayerFailure$=NVe;C.LayerFailureCode=MYt;C.LayerInaccessibleException=SF;C.LayerInaccessibleException$=fze;C.LayerPartTooSmallException=eF;C.LayerPartTooSmallException$=mze;C.LayersNotFoundException=wF;C.LayersNotFoundException$=hze;C.LifecyclePolicyNotFoundException=dF;C.LifecyclePolicyNotFoundException$=Aze;C.LifecyclePolicyPreviewFilter$=TVe;C.LifecyclePolicyPreviewInProgressException=kF;C.LifecyclePolicyPreviewInProgressException$=gze;C.LifecyclePolicyPreviewNotFoundException=bF;C.LifecyclePolicyPreviewNotFoundException$=yze;C.LifecyclePolicyPreviewResult$=PVe;C.LifecyclePolicyPreviewStatus=ljt;C.LifecyclePolicyPreviewSummary$=_Ve;C.LifecyclePolicyRuleAction$=vVe;C.LifecyclePolicyStorageClass=cjt;C.LifecyclePolicyTargetStorageClass=ijt;C.LimitExceededException=WM;C.LimitExceededException$=Eze;C.ListImageReferrers$=UWe;C.ListImageReferrersCommand=m1;C.ListImageReferrersFilter$=QVe;C.ListImageReferrersRequest$=DVe;C.ListImageReferrersResponse$=kVe;C.ListImages$=qWe;C.ListImagesCommand=q0;C.ListImagesFilter$=OVe;C.ListImagesRequest$=LVe;C.ListImagesResponse$=MVe;C.ListPullTimeUpdateExclusions$=$We;C.ListPullTimeUpdateExclusionsCommand=h1;C.ListPullTimeUpdateExclusionsRequest$=FVe;C.ListPullTimeUpdateExclusionsResponse$=UVe;C.ListReplicationBackfills$=GWe;C.ListReplicationBackfillsCommand=$0;C.ListReplicationBackfillsRequest$=qVe;C.ListReplicationBackfillsResponse$=$Ve;C.ListTagsForResource$=HWe;C.ListTagsForResourceCommand=A1;C.ListTagsForResourceRequest$=GVe;C.ListTagsForResourceResponse$=HVe;C.PackageVulnerabilityDetails$=zVe;C.PullThroughCacheRule$=VVe;C.PullThroughCacheRuleAlreadyExistsException=rF;C.PullThroughCacheRuleAlreadyExistsException$=Cze;C.PullThroughCacheRuleNotFoundException=pF;C.PullThroughCacheRuleNotFoundException$=Ize;C.PutAccountSetting$=zWe;C.PutAccountSettingCommand=g1;C.PutAccountSettingRequest$=WVe;C.PutAccountSettingResponse$=JVe;C.PutImage$=VWe;C.PutImageCommand=y1;C.PutImageRequest$=YVe;C.PutImageResponse$=jVe;C.PutImageScanningConfiguration$=WWe;C.PutImageScanningConfigurationCommand=E1;C.PutImageScanningConfigurationRequest$=KVe;C.PutImageScanningConfigurationResponse$=XVe;C.PutImageTagMutability$=JWe;C.PutImageTagMutabilityCommand=C1;C.PutImageTagMutabilityRequest$=ZVe;C.PutImageTagMutabilityResponse$=e4e;C.PutLifecyclePolicy$=YWe;C.PutLifecyclePolicyCommand=I1;C.PutLifecyclePolicyRequest$=t4e;C.PutLifecyclePolicyResponse$=r4e;C.PutRegistryPolicy$=jWe;C.PutRegistryPolicyCommand=S1;C.PutRegistryPolicyRequest$=n4e;C.PutRegistryPolicyResponse$=s4e;C.PutRegistryScanningConfiguration$=KWe;C.PutRegistryScanningConfigurationCommand=w1;C.PutRegistryScanningConfigurationRequest$=o4e;C.PutRegistryScanningConfigurationResponse$=i4e;C.PutReplicationConfiguration$=XWe;C.PutReplicationConfigurationCommand=x1;C.PutReplicationConfigurationRequest$=a4e;C.PutReplicationConfigurationResponse$=c4e;C.PutSigningConfiguration$=ZWe;C.PutSigningConfigurationCommand=b1;C.PutSigningConfigurationRequest$=l4e;C.PutSigningConfigurationResponse$=u4e;C.RCTAppliedFor=JYt;C.Recommendation$=d4e;C.ReferencedImagesNotFoundException=PF;C.ReferencedImagesNotFoundException$=Sze;C.RegisterPullTimeUpdateExclusion$=e8e;C.RegisterPullTimeUpdateExclusionCommand=B1;C.RegisterPullTimeUpdateExclusionRequest$=p4e;C.RegisterPullTimeUpdateExclusionResponse$=f4e;C.RegistryPolicyNotFoundException=fF;C.RegistryPolicyNotFoundException$=wze;C.RegistryScanningConfiguration$=Tte;C.RegistryScanningRule$=m4e;C.Remediation$=h4e;C.ReplicationBackfillInProgressException=OF;C.ReplicationBackfillInProgressException$=xze;C.ReplicationBackfillInvalidStatusException=LF;C.ReplicationBackfillInvalidStatusException$=bze;C.ReplicationBackfillNotFoundException=IF;C.ReplicationBackfillNotFoundException$=Bze;C.ReplicationBackfillProgress$=Pte;C.ReplicationBackfillResult$=A4e;C.ReplicationBackfillResultStatus=sjt;C.ReplicationBackfillStatus=ojt;C.ReplicationBackfillSummary$=g4e;C.ReplicationConfiguration$=rU;C.ReplicationDestination$=Wh;C.ReplicationRule$=y4e;C.ReplicationStatus=jYt;C.Repository$=nU;C.RepositoryAlreadyExistsException=cF;C.RepositoryAlreadyExistsException$=Rze;C.RepositoryCreationTemplate$=Y0;C.RepositoryFilter$=E4e;C.RepositoryFilterType=njt;C.RepositoryNotEmptyException=mF;C.RepositoryNotEmptyException$=Nze;C.RepositoryNotFoundException=zM;C.RepositoryNotFoundException$=Tze;C.RepositoryPolicyNotFoundException=AF;C.RepositoryPolicyNotFoundException$=Pze;C.RepositoryScanningConfiguration$=C4e;C.RepositoryScanningConfigurationFailure$=I4e;C.Resource$=S4e;C.ResourceDetails$=w4e;C.ScanFrequency=GYt;C.ScanNotFoundException=CF;C.ScanNotFoundException$=_ze;C.ScanStatus=ejt;C.ScanType=ujt;C.ScanningConfigurationFailureCode=qYt;C.ScanningRepositoryFilter$=x4e;C.ScanningRepositoryFilterType=$Yt;C.ScoreDetails$=b4e;C.SecretNotFoundException=nF;C.SecretNotFoundException$=vze;C.ServerException=VM;C.ServerException$=Qze;C.SetRepositoryPolicy$=t8e;C.SetRepositoryPolicyCommand=R1;C.SetRepositoryPolicyRequest$=B4e;C.SetRepositoryPolicyResponse$=R4e;C.SigningConfiguration$=j0;C.SigningConfigurationNotFoundException=gF;C.SigningConfigurationNotFoundException$=Dze;C.SigningRepositoryFilter$=N4e;C.SigningRepositoryFilterType=YYt;C.SigningRule$=T4e;C.SigningStatus=rjt;C.StartImageScan$=r8e;C.StartImageScanCommand=N1;C.StartImageScanRequest$=P4e;C.StartImageScanResponse$=_4e;C.StartLifecyclePolicyPreview$=n8e;C.StartLifecyclePolicyPreviewCommand=T1;C.StartLifecyclePolicyPreviewRequest$=v4e;C.StartLifecyclePolicyPreviewResponse$=Q4e;C.StartReplicationBackfill$=s8e;C.StartReplicationBackfillCommand=P1;C.StartReplicationBackfillRequest$=D4e;C.StartReplicationBackfillResponse$=k4e;C.StopReplicationBackfill$=o8e;C.StopReplicationBackfillCommand=_1;C.StopReplicationBackfillRequest$=O4e;C.StopReplicationBackfillResponse$=L4e;C.SubjectIdentifier$=M4e;C.Tag$=F4e;C.TagResource$=i8e;C.TagResourceCommand=v1;C.TagResourceRequest$=U4e;C.TagResourceResponse$=q4e;C.TagStatus=XYt;C.TargetStorageClass=fjt;C.TemplateAlreadyExistsException=uF;C.TemplateAlreadyExistsException$=kze;C.TemplateNotFoundException=hF;C.TemplateNotFoundException$=Oze;C.TooManyTagsException=lF;C.TooManyTagsException$=Lze;C.TransitioningImageTotalCount$=$4e;C.UnableToAccessSecretException=sF;C.UnableToAccessSecretException$=Mze;C.UnableToDecryptSecretValueException=oF;C.UnableToDecryptSecretValueException$=Fze;C.UnableToGetUpstreamImageException=JM;C.UnableToGetUpstreamImageException$=Uze;C.UnableToGetUpstreamLayerException=xF;C.UnableToGetUpstreamLayerException$=qze;C.UnableToListUpstreamImageReferrersException=BF;C.UnableToListUpstreamImageReferrersException$=$ze;C.UnsupportedImageTypeException=DF;C.UnsupportedImageTypeException$=Gze;C.UnsupportedUpstreamRegistryException=iF;C.UnsupportedUpstreamRegistryException$=Hze;C.UntagResource$=a8e;C.UntagResourceCommand=Q1;C.UntagResourceRequest$=G4e;C.UntagResourceResponse$=H4e;C.UpdateImageStorageClass$=c8e;C.UpdateImageStorageClassCommand=D1;C.UpdateImageStorageClassRequest$=z4e;C.UpdateImageStorageClassResponse$=V4e;C.UpdatePullThroughCacheRule$=l8e;C.UpdatePullThroughCacheRuleCommand=k1;C.UpdatePullThroughCacheRuleRequest$=W4e;C.UpdatePullThroughCacheRuleResponse$=J4e;C.UpdateRepositoryCreationTemplate$=u8e;C.UpdateRepositoryCreationTemplateCommand=O1;C.UpdateRepositoryCreationTemplateRequest$=Y4e;C.UpdateRepositoryCreationTemplateResponse$=j4e;C.UploadLayerPart$=d8e;C.UploadLayerPartCommand=L1;C.UploadLayerPartRequest$=K4e;C.UploadLayerPartResponse$=X4e;C.UploadNotFoundException=tF;C.UploadNotFoundException$=zze;C.UpstreamRegistry=HYt;C.ValidatePullThroughCacheRule$=p8e;C.ValidatePullThroughCacheRuleCommand=M1;C.ValidatePullThroughCacheRuleRequest$=Z4e;C.ValidatePullThroughCacheRuleResponse$=eWe;C.ValidationException=YM;C.ValidationException$=Vze;C.VulnerablePackage$=tWe;C.errorTypeRegistries=Wze;C.paginateDescribeImageScanFindings=f8e;C.paginateDescribeImages=m8e;C.paginateDescribePullThroughCacheRules=h8e;C.paginateDescribeReplicationBackfillResults=A8e;C.paginateDescribeRepositories=g8e;C.paginateDescribeRepositoryCreationTemplates=y8e;C.paginateGetLifecyclePolicyPreview=E8e;C.paginateListImages=C8e;C.paginateListReplicationBackfills=I8e;C.waitForImageScanComplete=QYt;C.waitForLifecyclePolicyPreviewComplete=DYt;C.waitUntilImageScanComplete=w8e;C.waitUntilLifecyclePolicyPreviewComplete=b8e});var sje=S(B=>{var{awsEndpointFunctions:mjt,emitWarningIfUnsupportedVersion:hjt,createDefaultUserAgentProvider:Ajt,NODE_APP_ID_CONFIG_OPTIONS:gjt,getAwsRegionExtensionConfiguration:yjt,resolveAwsRegionExtensionConfiguration:Ejt,resolveUserAgentConfig:Cjt,resolveHostHeaderConfig:Ijt,getUserAgentPlugin:Sjt,getHostHeaderPlugin:wjt,getLoggerPlugin:xjt,getRecursionDetectionPlugin:bjt}=(Et(),Z(La)),{getHttpAuthSchemeEndpointRuleSetPlugin:Bjt,DefaultIdentityProviderConfig:Rjt,getHttpSigningPlugin:Njt,createPaginator:jU}=(Bs(),Z(zK)),{normalizeProvider:_8e,getSmithyContext:Tjt,ServiceException:Pjt,NoOpLogger:_jt,emitWarningIfUnsupportedVersion:vjt,loadConfigsForDefaultMode:Qjt,getDefaultExtensionConfiguration:Djt,resolveDefaultRuntimeConfig:kjt,Client:v8e,makeBuilder:Ojt,createAggregatedClient:Ljt}=(we(),Z(Oy)),{Command:Mjt}=(we(),Z(Oy));B.$Command=Mjt;B.__Client=v8e;var{resolveDefaultsModeConfig:Fjt,loadConfig:Yh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Ujt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:qjt,NODE_REGION_CONFIG_OPTIONS:$jt,NODE_REGION_CONFIG_FILE_OPTIONS:Gjt,resolveRegionConfig:Hjt}=(bt(),Z(Mi)),{BinaryDecisionDiagram:zjt,EndpointCache:Vjt,decideEndpoint:Wjt,customEndpointFunctions:Jjt,resolveEndpointConfig:Yjt,getEndpointPlugin:jjt}=(Dt(),Z(u9)),{parseUrl:Kjt,getHttpHandlerExtensionConfiguration:Xjt,resolveHttpHandlerRuntimeConfig:Zjt,getContentLengthPlugin:e5t}=(Re(),Z(dh)),{DEFAULT_RETRY_MODE:t5t,NODE_RETRY_MODE_CONFIG_OPTIONS:r5t,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:n5t,resolveRetryConfig:s5t,getRetryPlugin:o5t}=(jo(),Z(TK)),{TypeRegistry:Q8e,getSchemaSerdePlugin:i5t}=(He(),Z(G5)),{resolveAwsSdkSigV4Config:a5t,AwsSdkSigV4Signer:c5t,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:l5t}=(ts(),Z(gO)),{defaultProvider:u5t}=cte(),{toUtf8:d5t,fromUtf8:p5t,toBase64:f5t,fromBase64:m5t,calculateBodyLength:h5t}=(xe(),Z(ih)),{streamCollector:A5t,NodeHttpHandler:g5t}=Vu(),{AwsJson1_1Protocol:y5t}=(Nh(),Z(JZ)),{Sha256:E5t}=(Uu(),Z(k9)),C5t=i(async(t,e,r)=>({operation:Tjt(e).operation,region:await _8e(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function I5t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(I5t,"createAwsAuthSigv4HttpAuthOption");var S5t=i(t=>{let e=[];switch(t.operation){default:e.push(I5t(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),w5t=i(t=>{let e=a5t(t);return Object.assign(e,{authSchemePreference:_8e(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),x5t=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),b5t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},B5t="3.1160.0",R5t={version:B5t},K0="ref",jh=-1,sU=!0,R8e="isSet",D8e="PartitionResult",oU="booleanEquals",_te="getAttr",N8e={[K0]:"Endpoint"},vte={[K0]:D8e},OC={},T8e=[{[K0]:"Region"}],P8e={conditions:[[R8e,[N8e]],[R8e,T8e],["aws.partition",T8e,D8e],[oU,[{[K0]:"UseFIPS"},sU]],[oU,[{[K0]:"UseDualStack"},sU]],[oU,[{fn:_te,argv:[vte,"supportsDualStack"]},sU]],[oU,[{fn:_te,argv:[vte,"supportsFIPS"]},sU]],["stringEquals",[{fn:_te,argv:[vte,"name"]},"aws"]]],results:[[jh],[jh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[jh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[N8e,OC],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",OC],[jh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",OC],[jh,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",OC],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",OC],[jh,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",OC],[jh,"Invalid Configuration: Missing Region"]]},N5t=2,fo=1e8,T5t=new Int32Array([-1,1,-1,0,13,3,1,4,fo+12,2,5,fo+12,3,9,6,4,7,fo+11,5,8,fo+10,7,fo+8,fo+9,4,11,10,6,fo+6,fo+7,5,12,fo+5,6,fo+4,fo+5,3,fo+1,14,4,fo+2,fo+3]),P5t=zjt.from(T5t,N5t,P8e.conditions,P8e.results),_5t=new Vjt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),v5t=i((t,e={})=>_5t.get(t,()=>Wjt(P5t,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Jjt.aws=mjt;var Bt=class t extends Pjt{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},iU=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)}},aU=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)}},cU=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)}},lU=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)}},uU=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)}},dU=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)}},pU=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)}},fU=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)}},mU=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)}},hU=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)}},AU=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)}},gU=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)}},yU=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)}},EU=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)}},CU=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)}},IU=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)}},SU=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)}},wU=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)}},xU=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)}},bU=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)}},BU=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)}},RU=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}},NU=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)}},TU=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)}},Q5t="AuthorizationData",D5t="BatchCheckLayerAvailability",k5t="BatchCheckLayerAvailabilityRequest",O5t="BatchCheckLayerAvailabilityResponse",L5t="BatchDeleteImage",M5t="BatchDeleteImageRequest",F5t="BatchDeleteImageResponse",U5t="CompleteLayerUpload",q5t="CompleteLayerUploadRequest",$5t="CompleteLayerUploadResponse",G5t="CreateRepository",H5t="CreateRepositoryRequest",z5t="CreateRepositoryResponse",V5t="DescribeImages",W5t="DescribeImagesRequest",J5t="DescribeImagesResponse",Y5t="DescribeImageTags",j5t="DescribeImageTagsRequest",K5t="DescribeImageTagsResponse",X5t="DeleteRepository",Z5t="DeleteRepositoryPolicy",e6t="DeleteRepositoryPolicyRequest",t6t="DeleteRepositoryPolicyResponse",r6t="DeleteRepositoryRequest",n6t="DeleteRepositoryResponse",s6t="DescribeRegistriesRequest",o6t="DescribeRegistriesResponse",i6t="DescribeRepositoriesRequest",a6t="DescribeRepositoriesResponse",c6t="DescribeRegistries",l6t="DescribeRepositories",u6t="EmptyUploadException",d6t="GetAuthorizationToken",p6t="GetAuthorizationTokenRequest",f6t="GetAuthorizationTokenResponse",m6t="GetRegistryCatalogData",h6t="GetRegistryCatalogDataRequest",A6t="GetRegistryCatalogDataResponse",g6t="GetRepositoryCatalogDataRequest",y6t="GetRepositoryCatalogDataResponse",E6t="GetRepositoryCatalogData",C6t="GetRepositoryPolicy",I6t="GetRepositoryPolicyRequest",S6t="GetRepositoryPolicyResponse",w6t="Image",x6t="ImageAlreadyExistsException",b6t="ImageDetail",B6t="ImageDigestDoesNotMatchException",R6t="ImageDetailList",N6t="ImageFailure",T6t="ImageFailureList",P6t="ImageIdentifier",_6t="ImageIdentifierList",v6t="InvalidLayerException",Q6t="InvalidLayerPartException",D6t="InitiateLayerUpload",k6t="InitiateLayerUploadRequest",O6t="InitiateLayerUploadResponse",L6t="ImageNotFoundException",M6t="InvalidParameterException",F6t="ImageTagAlreadyExistsException",U6t="ImageTagDetail",q6t="ImageTagDetailList",$6t="InvalidTagParameterException",G6t="Key",H6t="Layer",z6t="LayerAlreadyExistsException",V6t="LimitExceededException",W6t="LayerFailure",J6t="LayerFailureList",Y6t="LayerList",j6t="LayersNotFoundException",K6t="LayerPartTooSmallException",X6t="ListTagsForResource",Z6t="ListTagsForResourceRequest",e9t="ListTagsForResourceResponse",t9t="PutImage",r9t="PutImageRequest",n9t="PutImageResponse",s9t="PutRegistryCatalogData",o9t="PutRegistryCatalogDataRequest",i9t="PutRegistryCatalogDataResponse",a9t="PutRepositoryCatalogDataRequest",c9t="PutRepositoryCatalogDataResponse",l9t="PutRepositoryCatalogData",u9t="Registry",d9t="RegistryAlias",p9t="RepositoryAlreadyExistsException",f9t="RegistryAliasList",m9t="RegistryCatalogData",h9t="RepositoryCatalogDataInput",A9t="RepositoryCatalogDataNotFoundException",g9t="RepositoryCatalogData",y9t="ReferencedImageDetail",E9t="ReferencedImagesNotFoundException",C9t="RegistryList",I9t="RepositoryList",S9t="RepositoryNotEmptyException",w9t="RegistryNotFoundException",x9t="RepositoryNotFoundException",b9t="RepositoryPolicyNotFoundException",B9t="Repository",R9t="ServerException",N9t="SetRepositoryPolicy",T9t="SetRepositoryPolicyRequest",P9t="SetRepositoryPolicyResponse",_9t="Tag",v9t="TagList",Q9t="TooManyTagsException",D9t="TagResource",k9t="TagResourceRequest",O9t="TagResourceResponse",L9t="UnsupportedCommandException",M9t="UploadLayerPart",F9t="UploadLayerPartRequest",U9t="UploadLayerPartResponse",q9t="UploadNotFoundException",$9t="UntagResource",G9t="UntagResourceRequest",H9t="UntagResourceResponse",z9t="Value",V9t="aliases",W9t="authorizationData",k8e="artifactMediaType",J9t="authorizationToken",O8e="aboutText",L8e="architectures",sr="client",M8e="createdAt",rB="catalogData",F8e="description",U8e="displayName",Y9t="defaultRegistryAlias",Xt="error",j9t="expiresAt",q8e="failures",$8e="failureCode",G8e="failureReason",H8e="force",K9t="image",X9t="imageDetails",KU="imageDigest",Z9t="imageDetail",Qte="imageIds",z8e="imageId",V8e="imageManifest",XU="imageManifestMediaType",W8e="imagePushedAt",J8e="imageSizeInBytes",eKt="imageTags",tKt="imageTagDetails",Dte="imageTag",rKt="layers",nKt="layerAvailability",sKt="lastByteReceived",Y8e="layerDigests",kte="layerDigest",oKt="logoImageBlob",iKt="layerPartBlob",aKt="layerSize",cKt="logoUrl",lKt="lastValidByteReceived",Zt="message",uKt="marketplaceCertified",ZU="maxResults",dKt="mediaType",pKt="name",uf="nextToken",j8e="operatingSystems",fKt="partFirstByte",mKt="partLastByte",hKt="primaryRegistryAlias",AKt="partSize",e2="policyText",K8e="repository",Ote="resourceArn",gKt="registryArn",yKt="repositoryArn",X8e="registryCatalogData",$t="registryId",er="repositoryName",EKt="repositoryNames",CKt="registryUri",IKt="repositoryUri",SKt="registries",wKt="repositories",Z8e="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",xKt="server",bKt="status",Lte="tags",BKt="tagKeys",LC="uploadId",eJe="usageText",RKt="verified",P="com.amazonaws.ecrpublic",tJe=new Q8e(Z8e),rJe=[-3,Z8e,"ECRPUBLICServiceException",0,[],[]];tJe.registerError(rJe,Bt);var Gt=new Q8e(P),nJe=[-3,P,u6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(nJe,dU);var sJe=[-3,P,x6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(sJe,xU);var oJe=[-3,P,B6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(oJe,bU);var iJe=[-3,P,L6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(iJe,SU);var aJe=[-3,P,F6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(aJe,BU);var cJe=[-3,P,v6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(cJe,pU);var lJe=[-3,P,Q6t,{[Xt]:sr},[$t,er,LC,lKt,Zt],[0,0,0,1,0]];Gt.registerError(lJe,RU);var uJe=[-3,P,M6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(uJe,iU);var dJe=[-3,P,$6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(dJe,AU);var pJe=[-3,P,z6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(pJe,fU);var fJe=[-3,P,K6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(fJe,mU);var mJe=[-3,P,j6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(mJe,NU);var hJe=[-3,P,V6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(hJe,gU);var AJe=[-3,P,E9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(AJe,TU);var gJe=[-3,P,w9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(gJe,aU);var yJe=[-3,P,p9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(yJe,yU);var EJe=[-3,P,A9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(EJe,wU);var CJe=[-3,P,S9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(CJe,CU);var IJe=[-3,P,x9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(IJe,cU);var SJe=[-3,P,b9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(SJe,IU);var wJe=[-3,P,R9t,{[Xt]:xKt},[Zt],[0]];Gt.registerError(wJe,lU);var xJe=[-3,P,Q9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(xJe,EU);var bJe=[-3,P,L9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(bJe,uU);var BJe=[-3,P,q9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(BJe,hU);var RJe=[tJe,Gt],NJe=[3,P,Q5t,0,[J9t,j9t],[0,4]],TJe=[3,P,k5t,0,[er,Y8e,$t],[0,64,0],2],PJe=[3,P,O5t,0,[rKt,q8e],[()=>vKt,()=>_Kt]],_Je=[3,P,M5t,0,[er,Qte,$t],[0,()=>Ute,0],2],vJe=[3,P,F5t,0,[Qte,q8e],[()=>Ute,()=>TKt]],QJe=[3,P,q5t,0,[er,LC,Y8e,$t],[0,0,64,0],3],DJe=[3,P,$5t,0,[$t,er,LC,kte],[0,0,0,0]],kJe=[3,P,H5t,0,[er,rB,Lte],[0,()=>Fte,()=>qte],1],OJe=[3,P,z5t,0,[K8e,rB],[()=>r2,()=>n2]],LJe=[3,P,e6t,0,[er,$t],[0,0],1],MJe=[3,P,t6t,0,[$t,er,e2],[0,0,0]],FJe=[3,P,r6t,0,[er,$t,H8e],[0,0,2],1],UJe=[3,P,n6t,0,[K8e],[()=>r2]],qJe=[3,P,W5t,0,[er,$t,Qte,uf,ZU],[0,0,()=>Ute,0,1],1],$Je=[3,P,J5t,0,[X9t,uf],[()=>NKt,0]],G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[9,P,V5t,0,()=>qJe,()=>$Je],MYe=[9,P,Y5t,0,()=>GJe,()=>HJe],FYe=[9,P,c6t,0,()=>zJe,()=>VJe],UYe=[9,P,l6t,0,()=>WJe,()=>JJe],qYe=[9,P,d6t,0,()=>YJe,()=>jJe],$Ye=[9,P,m6t,0,()=>KJe,()=>XJe],GYe=[9,P,E6t,0,()=>ZJe,()=>eYe],HYe=[9,P,C6t,0,()=>tYe,()=>rYe],zYe=[9,P,D6t,0,()=>aYe,()=>cYe],VYe=[9,P,X6t,0,()=>dYe,()=>pYe],WYe=[9,P,t9t,0,()=>fYe,()=>mYe],JYe=[9,P,s9t,0,()=>hYe,()=>AYe],YYe=[9,P,l9t,0,()=>gYe,()=>yYe],jYe=[9,P,N9t,0,()=>SYe,()=>wYe],KYe=[9,P,D9t,0,()=>bYe,()=>BYe],XYe=[9,P,$9t,0,()=>RYe,()=>NYe],ZYe=[9,P,M9t,0,()=>TYe,()=>PYe],OKt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??m5t,base64Encoder:t?.base64Encoder??f5t,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??v5t,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??S5t,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new c5t}],logger:t?.logger??new _jt,protocol:t?.protocol??y5t,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:RJe,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??E5t,urlParser:t?.urlParser??Kjt,utf8Decoder:t?.utf8Decoder??p5t,utf8Encoder:t?.utf8Encoder??d5t}),"getRuntimeConfig$1"),LKt=i(t=>{vjt(process.version);let e=Fjt(t),r=i(()=>e().then(Qjt),"defaultConfigProvider"),n=OKt(t);hjt(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Yh(l5t,s),bodyLengthChecker:t?.bodyLengthChecker??h5t,credentialDefaultProvider:t?.credentialDefaultProvider??u5t,defaultUserAgentProvider:t?.defaultUserAgentProvider??Ajt({serviceId:n.serviceId,clientVersion:R5t.version}),maxAttempts:t?.maxAttempts??Yh(n5t,t),region:t?.region??Yh($jt,{...Gjt,...s}),requestHandler:g5t.create(t?.requestHandler??r),retryMode:t?.retryMode??Yh({...r5t,default:i(async()=>(await r()).retryMode||t5t,"default")},t),streamCollector:t?.streamCollector??A5t,useDualstackEndpoint:t?.useDualstackEndpoint??Yh(qjt,s),useFipsEndpoint:t?.useFipsEndpoint??Yh(Ujt,s),userAgentAppId:t?.userAgentAppId??Yh(gjt,s)}},"getRuntimeConfig"),MKt=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"),FKt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),UKt=i((t,e)=>{let r=Object.assign(yjt(t),Djt(t),Xjt(t),MKt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ejt(r),kjt(r),Zjt(r),FKt(r))},"resolveRuntimeExtensions"),lf=class extends v8e{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=LKt(e||{});super(r),this.initConfig=r;let n=x5t(r),s=Cjt(n),o=s5t(s),a=Hjt(o),c=Ijt(a),l=Yjt(c),u=w5t(l),d=UKt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(i5t(this.config)),this.middlewareStack.use(Sjt(this.config)),this.middlewareStack.use(o5t(this.config)),this.middlewareStack.use(e5t(this.config)),this.middlewareStack.use(wjt(this.config)),this.middlewareStack.use(xjt(this.config)),this.middlewareStack.use(bjt(this.config)),this.middlewareStack.use(Bjt(this.config,{httpAuthSchemeParametersProvider:C5t,identityProviderConfigProvider:i(async p=>new Rjt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Njt(this.config))}destroy(){super.destroy()}},or=Ojt(b5t,"SpencerFrontendService","ECRPUBLICClient",jjt),ir={},ar=i((t,e,r,n)=>[],"_mw0"),PU=class extends or(ir,ar,"BatchCheckLayerAvailability",_Ye){static{i(this,"BatchCheckLayerAvailabilityCommand")}},_U=class extends or(ir,ar,"BatchDeleteImage",vYe){static{i(this,"BatchDeleteImageCommand")}},vU=class extends or(ir,ar,"CompleteLayerUpload",QYe){static{i(this,"CompleteLayerUploadCommand")}},QU=class extends or(ir,ar,"CreateRepository",DYe){static{i(this,"CreateRepositoryCommand")}},DU=class extends or(ir,ar,"DeleteRepository",kYe){static{i(this,"DeleteRepositoryCommand")}},kU=class extends or(ir,ar,"DeleteRepositoryPolicy",OYe){static{i(this,"DeleteRepositoryPolicyCommand")}},X0=class extends or(ir,ar,"DescribeImages",LYe){static{i(this,"DescribeImagesCommand")}},Z0=class extends or(ir,ar,"DescribeImageTags",MYe){static{i(this,"DescribeImageTagsCommand")}},eB=class extends or(ir,ar,"DescribeRegistries",FYe){static{i(this,"DescribeRegistriesCommand")}},tB=class extends or(ir,ar,"DescribeRepositories",UYe){static{i(this,"DescribeRepositoriesCommand")}},OU=class extends or(ir,ar,"GetAuthorizationToken",qYe){static{i(this,"GetAuthorizationTokenCommand")}},LU=class extends or(ir,ar,"GetRegistryCatalogData",$Ye){static{i(this,"GetRegistryCatalogDataCommand")}},MU=class extends or(ir,ar,"GetRepositoryCatalogData",GYe){static{i(this,"GetRepositoryCatalogDataCommand")}},FU=class extends or(ir,ar,"GetRepositoryPolicy",HYe){static{i(this,"GetRepositoryPolicyCommand")}},UU=class extends or(ir,ar,"InitiateLayerUpload",zYe){static{i(this,"InitiateLayerUploadCommand")}},qU=class extends or(ir,ar,"ListTagsForResource",VYe){static{i(this,"ListTagsForResourceCommand")}},$U=class extends or(ir,ar,"PutImage",WYe){static{i(this,"PutImageCommand")}},GU=class extends or(ir,ar,"PutRegistryCatalogData",JYe){static{i(this,"PutRegistryCatalogDataCommand")}},HU=class extends or(ir,ar,"PutRepositoryCatalogData",YYe){static{i(this,"PutRepositoryCatalogDataCommand")}},zU=class extends or(ir,ar,"SetRepositoryPolicy",jYe){static{i(this,"SetRepositoryPolicyCommand")}},VU=class extends or(ir,ar,"TagResource",KYe){static{i(this,"TagResourceCommand")}},WU=class extends or(ir,ar,"UntagResource",XYe){static{i(this,"UntagResourceCommand")}},JU=class extends or(ir,ar,"UploadLayerPart",ZYe){static{i(this,"UploadLayerPartCommand")}},eje=jU(lf,X0,"nextToken","nextToken","maxResults"),tje=jU(lf,Z0,"nextToken","nextToken","maxResults"),rje=jU(lf,eB,"nextToken","nextToken","maxResults"),nje=jU(lf,tB,"nextToken","nextToken","maxResults"),qKt={BatchCheckLayerAvailabilityCommand:PU,BatchDeleteImageCommand:_U,CompleteLayerUploadCommand:vU,CreateRepositoryCommand:QU,DeleteRepositoryCommand:DU,DeleteRepositoryPolicyCommand:kU,DescribeImagesCommand:X0,DescribeImageTagsCommand:Z0,DescribeRegistriesCommand:eB,DescribeRepositoriesCommand:tB,GetAuthorizationTokenCommand:OU,GetRegistryCatalogDataCommand:LU,GetRepositoryCatalogDataCommand:MU,GetRepositoryPolicyCommand:FU,InitiateLayerUploadCommand:UU,ListTagsForResourceCommand:qU,PutImageCommand:$U,PutRegistryCatalogDataCommand:GU,PutRepositoryCatalogDataCommand:HU,SetRepositoryPolicyCommand:zU,TagResourceCommand:VU,UntagResourceCommand:WU,UploadLayerPartCommand:JU},$Kt={paginateDescribeImages:eje,paginateDescribeImageTags:tje,paginateDescribeRegistries:rje,paginateDescribeRepositories:nje},YU=class extends lf{static{i(this,"ECRPUBLIC")}};Ljt(qKt,YU,{paginators:$Kt});var GKt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},HKt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},zKt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},VKt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=NJe;B.BatchCheckLayerAvailability$=_Ye;B.BatchCheckLayerAvailabilityCommand=PU;B.BatchCheckLayerAvailabilityRequest$=TJe;B.BatchCheckLayerAvailabilityResponse$=PJe;B.BatchDeleteImage$=vYe;B.BatchDeleteImageCommand=_U;B.BatchDeleteImageRequest$=_Je;B.BatchDeleteImageResponse$=vJe;B.CompleteLayerUpload$=QYe;B.CompleteLayerUploadCommand=vU;B.CompleteLayerUploadRequest$=QJe;B.CompleteLayerUploadResponse$=DJe;B.CreateRepository$=DYe;B.CreateRepositoryCommand=QU;B.CreateRepositoryRequest$=kJe;B.CreateRepositoryResponse$=OJe;B.DeleteRepository$=kYe;B.DeleteRepositoryCommand=DU;B.DeleteRepositoryPolicy$=OYe;B.DeleteRepositoryPolicyCommand=kU;B.DeleteRepositoryPolicyRequest$=LJe;B.DeleteRepositoryPolicyResponse$=MJe;B.DeleteRepositoryRequest$=FJe;B.DeleteRepositoryResponse$=UJe;B.DescribeImageTags$=MYe;B.DescribeImageTagsCommand=Z0;B.DescribeImageTagsRequest$=GJe;B.DescribeImageTagsResponse$=HJe;B.DescribeImages$=LYe;B.DescribeImagesCommand=X0;B.DescribeImagesRequest$=qJe;B.DescribeImagesResponse$=$Je;B.DescribeRegistries$=FYe;B.DescribeRegistriesCommand=eB;B.DescribeRegistriesRequest$=zJe;B.DescribeRegistriesResponse$=VJe;B.DescribeRepositories$=UYe;B.DescribeRepositoriesCommand=tB;B.DescribeRepositoriesRequest$=WJe;B.DescribeRepositoriesResponse$=JJe;B.ECRPUBLIC=YU;B.ECRPUBLICClient=lf;B.ECRPUBLICServiceException=Bt;B.ECRPUBLICServiceException$=rJe;B.EmptyUploadException=dU;B.EmptyUploadException$=nJe;B.GetAuthorizationToken$=qYe;B.GetAuthorizationTokenCommand=OU;B.GetAuthorizationTokenRequest$=YJe;B.GetAuthorizationTokenResponse$=jJe;B.GetRegistryCatalogData$=$Ye;B.GetRegistryCatalogDataCommand=LU;B.GetRegistryCatalogDataRequest$=KJe;B.GetRegistryCatalogDataResponse$=XJe;B.GetRepositoryCatalogData$=GYe;B.GetRepositoryCatalogDataCommand=MU;B.GetRepositoryCatalogDataRequest$=ZJe;B.GetRepositoryCatalogDataResponse$=eYe;B.GetRepositoryPolicy$=HYe;B.GetRepositoryPolicyCommand=FU;B.GetRepositoryPolicyRequest$=tYe;B.GetRepositoryPolicyResponse$=rYe;B.Image$=nYe;B.ImageAlreadyExistsException=xU;B.ImageAlreadyExistsException$=sJe;B.ImageDetail$=sYe;B.ImageDigestDoesNotMatchException=bU;B.ImageDigestDoesNotMatchException$=oJe;B.ImageFailure$=oYe;B.ImageFailureCode=zKt;B.ImageIdentifier$=t2;B.ImageNotFoundException=SU;B.ImageNotFoundException$=iJe;B.ImageTagAlreadyExistsException=BU;B.ImageTagAlreadyExistsException$=aJe;B.ImageTagDetail$=iYe;B.InitiateLayerUpload$=zYe;B.InitiateLayerUploadCommand=UU;B.InitiateLayerUploadRequest$=aYe;B.InitiateLayerUploadResponse$=cYe;B.InvalidLayerException=pU;B.InvalidLayerException$=cJe;B.InvalidLayerPartException=RU;B.InvalidLayerPartException$=lJe;B.InvalidParameterException=iU;B.InvalidParameterException$=uJe;B.InvalidTagParameterException=AU;B.InvalidTagParameterException$=dJe;B.Layer$=lYe;B.LayerAlreadyExistsException=fU;B.LayerAlreadyExistsException$=pJe;B.LayerAvailability=HKt;B.LayerFailure$=uYe;B.LayerFailureCode=GKt;B.LayerPartTooSmallException=mU;B.LayerPartTooSmallException$=fJe;B.LayersNotFoundException=NU;B.LayersNotFoundException$=mJe;B.LimitExceededException=gU;B.LimitExceededException$=hJe;B.ListTagsForResource$=VYe;B.ListTagsForResourceCommand=qU;B.ListTagsForResourceRequest$=dYe;B.ListTagsForResourceResponse$=pYe;B.PutImage$=WYe;B.PutImageCommand=$U;B.PutImageRequest$=fYe;B.PutImageResponse$=mYe;B.PutRegistryCatalogData$=JYe;B.PutRegistryCatalogDataCommand=GU;B.PutRegistryCatalogDataRequest$=hYe;B.PutRegistryCatalogDataResponse$=AYe;B.PutRepositoryCatalogData$=YYe;B.PutRepositoryCatalogDataCommand=HU;B.PutRepositoryCatalogDataRequest$=gYe;B.PutRepositoryCatalogDataResponse$=yYe;B.ReferencedImageDetail$=EYe;B.ReferencedImagesNotFoundException=TU;B.ReferencedImagesNotFoundException$=AJe;B.Registry$=CYe;B.RegistryAlias$=IYe;B.RegistryAliasStatus=VKt;B.RegistryCatalogData$=Mte;B.RegistryNotFoundException=aU;B.RegistryNotFoundException$=gJe;B.Repository$=r2;B.RepositoryAlreadyExistsException=yU;B.RepositoryAlreadyExistsException$=yJe;B.RepositoryCatalogData$=n2;B.RepositoryCatalogDataInput$=Fte;B.RepositoryCatalogDataNotFoundException=wU;B.RepositoryCatalogDataNotFoundException$=EJe;B.RepositoryNotEmptyException=CU;B.RepositoryNotEmptyException$=CJe;B.RepositoryNotFoundException=cU;B.RepositoryNotFoundException$=IJe;B.RepositoryPolicyNotFoundException=IU;B.RepositoryPolicyNotFoundException$=SJe;B.ServerException=lU;B.ServerException$=wJe;B.SetRepositoryPolicy$=jYe;B.SetRepositoryPolicyCommand=zU;B.SetRepositoryPolicyRequest$=SYe;B.SetRepositoryPolicyResponse$=wYe;B.Tag$=xYe;B.TagResource$=KYe;B.TagResourceCommand=VU;B.TagResourceRequest$=bYe;B.TagResourceResponse$=BYe;B.TooManyTagsException=EU;B.TooManyTagsException$=xJe;B.UnsupportedCommandException=uU;B.UnsupportedCommandException$=bJe;B.UntagResource$=XYe;B.UntagResourceCommand=WU;B.UntagResourceRequest$=RYe;B.UntagResourceResponse$=NYe;B.UploadLayerPart$=ZYe;B.UploadLayerPartCommand=JU;B.UploadLayerPartRequest$=TYe;B.UploadLayerPartResponse$=PYe;B.UploadNotFoundException=hU;B.UploadNotFoundException$=BJe;B.errorTypeRegistries=RJe;B.paginateDescribeImageTags=tje;B.paginateDescribeImages=eje;B.paginateDescribeRegistries=rje;B.paginateDescribeRepositories=nje});var pXt={};cr(pXt,{main:()=>Oje});module.exports=Z(pXt);var Xte=R(require("os"),1);function Xu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Xu,"toCommandValue");function u2(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(u2,"toCommandProperties");function ff(t,e,r){let n=new d2(t,e,r);process.stdout.write(n.toString()+Xte.EOL)}i(ff,"issueCommand");function p2(t,e=""){ff(t,{},e)}i(p2,"issue");var Kte="::",d2=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=Kte+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}=${Gje(s)}`)}}return e+=`${Kte}${$je(this.message)}`,e}};function $je(t){return Xu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i($je,"escapeData");function Gje(t){return Xu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Gje,"escapeProperty");var Zte=R(require("crypto"),1),lB=R(require("fs"),1),cB=R(require("os"),1);function ere(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!lB.existsSync(r))throw new Error(`Missing file at path: ${r}`);lB.appendFileSync(r,`${Xu(e)}${cB.EOL}`,{encoding:"utf8"})}i(ere,"issueFileCommand");function tre(t,e){let r=`ghadelimiter_${Zte.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}${cB.EOL}${n}${cB.EOL}${r}`}i(tre,"prepareKeyValueMessage");var Zue=R(require("os"),1);var HI=R(require("http"),1),HG=R(require("https"),1);function f2(t){let e=t.protocol==="https:";if(Hje(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 uB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new uB(`http://${r}`)}else return}i(f2,"getProxyUrl");function Hje(t){if(!t.hostname)return!1;let e=t.hostname;if(zje(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(Hje,"checkBypass");function zje(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(zje,"isLoopbackAddress");var uB=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 gd=R(Zh(),1),_ue=R($f(),1);var br=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())})},ii;(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"})(ii||(ii={}));var cs;(function(t){t.Accept="accept",t.ContentType="content-type"})(cs||(cs={}));var au;(function(t){t.ApplicationJson="application/json"})(au||(au={}));var Sit=[ii.MovedPermanently,ii.ResourceMoved,ii.SeeOther,ii.TemporaryRedirect,ii.PermanentRedirect],wit=[ii.BadGateway,ii.ServiceUnavailable,ii.GatewayTimeout],xit=["OPTIONS","GET","DELETE","HEAD"],bit=10,Bit=5,$G=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},GG=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return br(this,void 0,void 0,function*(){return new Promise(e=>br(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 br(this,void 0,void 0,function*(){return new Promise(e=>br(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 aN=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 br(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return br(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return br(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return br(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return br(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return br(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return br(this,arguments,void 0,function*(r,n={}){n[cs.Accept]=this._getExistingOrDefaultHeader(n,cs.Accept,au.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,au.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,au.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,au.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,au.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,au.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,au.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return br(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&&xit.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ii.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&&Sit.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||!wit.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 GG(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=f2(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?HG:HI;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({},GI(this.requestOptions.headers),GI(e||{})):GI(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=GI(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=GI(this.requestOptions.headers)[cs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[cs.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=f2(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||HI.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?gd.httpsOverHttps:gd.httpsOverHttp:l=u?gd.httpOverHttps:gd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new HG.Agent(c):new HI.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 _ue.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 br(this,void 0,void 0,function*(){e=Math.min(bit,e);let r=Bit*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return br(this,void 0,void 0,function*(){return new Promise((n,s)=>br(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===ii.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 $G(d,o);p.result=a.result,s(p)}else n(a)}))})}},GI=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Rit=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 cN=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 Rit(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var vue=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())})},lN=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new aN("actions/oidc-client",[new cN(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 vue(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. +`),dHe=!0)),new qM("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),l$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 qM("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=Aee();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=lHe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=ote();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=ate();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await p$t(t))()),async()=>{throw new qM("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],pHe),"defaultProvider"),A$t=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),pHe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");$M.credentialsTreatedAsExpired=pHe;$M.credentialsWillNeedRefresh=A$t;$M.defaultProvider=h$t});var N8e=S(C=>{var{awsEndpointFunctions:g$t,emitWarningIfUnsupportedVersion:y$t,createDefaultUserAgentProvider:E$t,getDefaultSocketTimeout:C$t,NODE_APP_ID_CONFIG_OPTIONS:I$t,getAwsRegionExtensionConfiguration:S$t,resolveAwsRegionExtensionConfiguration:w$t,resolveUserAgentConfig:x$t,resolveHostHeaderConfig:b$t,getUserAgentPlugin:B$t,getHostHeaderPlugin:R$t,getLoggerPlugin:N$t,getRecursionDetectionPlugin:T$t}=(Et(),Z(La)),{getHttpAuthSchemeEndpointRuleSetPlugin:P$t,DefaultIdentityProviderConfig:_$t,getHttpSigningPlugin:v$t,createPaginator:Ku}=(Bs(),Z(VK)),{normalizeProvider:yHe,getSmithyContext:Q$t,ServiceException:D$t,NoOpLogger:k$t,emitWarningIfUnsupportedVersion:O$t,loadConfigsForDefaultMode:L$t,getDefaultExtensionConfiguration:M$t,resolveDefaultRuntimeConfig:F$t,Client:EHe,makeBuilder:U$t,createWaiter:q1,checkExceptions:CHe,WaiterState:xC,createAggregatedClient:q$t}=(we(),Z(Ly)),{Command:$$t}=(we(),Z(Ly));C.$Command=$$t;C.__Client=EHe;var{resolveDefaultsModeConfig:G$t,loadConfig:qh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:H$t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:z$t,NODE_REGION_CONFIG_OPTIONS:V$t,NODE_REGION_CONFIG_FILE_OPTIONS:W$t,resolveRegionConfig:J$t}=(bt(),Z(Mi)),{BinaryDecisionDiagram:Y$t,EndpointCache:j$t,decideEndpoint:K$t,customEndpointFunctions:X$t,resolveEndpointConfig:Z$t,getEndpointPlugin:eGt}=(Dt(),Z(d9)),{parseUrl:tGt,getHttpHandlerExtensionConfiguration:rGt,resolveHttpHandlerRuntimeConfig:nGt,getContentLengthPlugin:sGt}=(Re(),Z(ph)),{DEFAULT_RETRY_MODE:oGt,NODE_RETRY_MODE_CONFIG_OPTIONS:iGt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:aGt,resolveRetryConfig:cGt,getRetryPlugin:lGt}=(jo(),Z(PK)),{TypeRegistry:IHe,getSchemaSerdePlugin:uGt}=(He(),Z(H5)),{resolveAwsSdkSigV4Config:dGt,AwsSdkSigV4Signer:pGt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:fGt}=(ts(),Z(yO)),{defaultProvider:mGt}=lte(),{toUtf8:hGt,fromUtf8:AGt,toBase64:gGt,fromBase64:yGt,calculateBodyLength:EGt}=(xe(),Z(ah)),{streamCollector:CGt,NodeHttpHandler:IGt}=Wu(),{AwsJson1_1Protocol:SGt}=(Th(),Z(YZ)),{Sha256:wGt}=(qu(),Z(O9)),xGt=i(async(t,e,r)=>({operation:Q$t(e).operation,region:await yHe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function bGt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(bGt,"createAwsAuthSigv4HttpAuthOption");var BGt=i(t=>{let e=[];switch(t.operation){default:e.push(bGt(t))}return e},"defaultECRHttpAuthSchemeProvider"),RGt=i(t=>{let e=dGt(t);return Object.assign(e,{authSchemePreference:yHe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),NGt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),TGt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},PGt="3.1163.0",_Gt={version:PGt},bC="ref",$h=-1,GM=!0,fHe="isSet",dte="PartitionResult",sf="stringEquals",HM="booleanEquals",ute="getAttr",mHe={[bC]:"Endpoint"},of={fn:ute,argv:[{[bC]:dte},"name"]},hHe={[bC]:dte},Gh={},AHe=[{[bC]:"Region"}],gHe={conditions:[[fHe,[mHe]],[fHe,AHe],["aws.partition",AHe,dte],[sf,[of,"aws-eusc"]],[sf,[of,"aws-iso-f"]],[sf,[of,"aws-iso-e"]],[sf,[of,"aws-iso-b"]],[sf,[of,"aws-iso"]],[sf,[of,"aws-cn"]],[sf,[of,"aws-us-gov"]],[sf,[of,"aws"]],[HM,[{[bC]:"UseFIPS"},GM]],[HM,[{fn:ute,argv:[hHe,"supportsFIPS"]},GM]],[HM,[{[bC]:"UseDualStack"},GM]],[HM,[{fn:ute,argv:[hHe,"supportsDualStack"]},GM]]],results:[[$h],[$h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[$h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[mHe,Gh],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Gh],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Gh],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Gh],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gh],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gh],[$h,"FIPS and DualStack are enabled, but this partition does not support one or both"],[$h,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Gh],[$h,"DualStack is enabled but this partition does not support DualStack"],[$h,"Invalid Configuration: Missing Region"]]},vGt=2,Mn=1e8,QGt=new Int32Array([-1,1,-1,0,23,3,1,4,Mn+13,2,5,Mn+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,Mn+4,14,Mn+11,Mn+12,12,18,17,13,Mn+9,Mn+10,13,19,Mn+6,14,Mn+8,Mn+9,11,22,21,13,Mn+5,Mn+4,13,Mn+7,Mn+6,11,Mn+1,24,13,Mn+2,Mn+3]),DGt=Y$t.from(QGt,vGt,gHe.conditions,gHe.results),kGt=new j$t({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),OGt=i((t,e={})=>kGt.get(t,()=>K$t(DGt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");X$t.aws=g$t;var fe=class t extends D$t{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zM=class t extends fe{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)}},VM=class t extends fe{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)}},WM=class t extends fe{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)}},JM=class t extends fe{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)}},YM=class t extends fe{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)}},jM=class t extends fe{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)}},KM=class t extends fe{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)}},XM=class t extends fe{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)}},ZM=class t extends fe{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}},eF=class t extends fe{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)}},tF=class t extends fe{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)}},rF=class t extends fe{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)}},nF=class t extends fe{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)}},sF=class t extends fe{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)}},oF=class t extends fe{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)}},iF=class t extends fe{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)}},aF=class t extends fe{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)}},cF=class t extends fe{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)}},lF=class t extends fe{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)}},uF=class t extends fe{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)}},dF=class t extends fe{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)}},pF=class t extends fe{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)}},fF=class t extends fe{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)}},mF=class t extends fe{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)}},hF=class t extends fe{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)}},AF=class t extends fe{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)}},gF=class t extends fe{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)}},yF=class t extends fe{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)}},EF=class t extends fe{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)}},CF=class t extends fe{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)}},IF=class t extends fe{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)}},SF=class t extends fe{static{i(this,"ReplicationBackfillNotFoundException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillNotFoundException";name="ReplicationBackfillNotFoundException";$fault="client";constructor(e){super({name:"ReplicationBackfillNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wF=class t extends fe{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)}},xF=class t extends fe{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)}},bF=class t extends fe{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)}},BF=class t extends fe{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)}},RF=class t extends fe{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)}},NF=class t extends fe{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)}},TF=class t extends fe{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)}},PF=class t extends fe{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)}},_F=class t extends fe{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)}},vF=class t extends fe{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)}},QF=class t extends fe{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)}},DF=class t extends fe{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)}},kF=class t extends fe{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)}},OF=class t extends fe{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)}},LF=class t extends fe{static{i(this,"ReplicationBackfillInProgressException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInProgressException";name="ReplicationBackfillInProgressException";$fault="client";constructor(e){super({name:"ReplicationBackfillInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},MF=class t extends fe{static{i(this,"ReplicationBackfillInvalidStatusException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInvalidStatusException";name="ReplicationBackfillInvalidStatusException";$fault="client";constructor(e){super({name:"ReplicationBackfillInvalidStatusException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},FF=class t extends fe{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)}},UF=class t extends fe{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}},LGt="Attribute",MGt="AuthorizationData",FGt="AuthorizationDataList",UGt="AwsEcrContainerImageDetails",qGt="AttributeList",$Gt="BlockedByOrganizationPolicyException",GGt="BatchCheckLayerAvailability",HGt="BatchCheckLayerAvailabilityRequest",zGt="BatchCheckLayerAvailabilityResponse",VGt="BatchDeleteImage",WGt="BatchDeleteImageRequest",JGt="BatchDeleteImageResponse",YGt="BatchGetImage",jGt="BatchGetImageRequest",KGt="BatchGetImageResponse",XGt="BatchGetRepositoryScanningConfiguration",ZGt="BatchGetRepositoryScanningConfigurationRequest",eHt="BatchGetRepositoryScanningConfigurationResponse",tHt="CompleteLayerUpload",rHt="CompleteLayerUploadRequest",nHt="CompleteLayerUploadResponse",sHt="CreatePullThroughCacheRule",oHt="CreatePullThroughCacheRuleRequest",iHt="CreatePullThroughCacheRuleResponse",aHt="CreateRepository",cHt="CreateRepositoryCreationTemplate",lHt="CreateRepositoryCreationTemplateRequest",uHt="CreateRepositoryCreationTemplateResponse",dHt="CreateRepositoryRequest",pHt="CreateRepositoryResponse",fHt="CvssScore",mHt="CvssScoreAdjustment",hHt="CvssScoreAdjustmentList",AHt="CvssScoreDetails",gHt="CvssScoreList",yHt="DescribeImages",EHt="DescribeImagesFilter",CHt="DescribeImagesRequest",IHt="DescribeImageReplicationStatus",SHt="DescribeImageReplicationStatusRequest",wHt="DescribeImageReplicationStatusResponse",xHt="DescribeImagesResponse",bHt="DescribeImageScanFindings",BHt="DescribeImageScanFindingsRequest",RHt="DescribeImageScanFindingsResponse",NHt="DescribeImageSigningStatus",THt="DescribeImageSigningStatusRequest",PHt="DescribeImageSigningStatusResponse",_Ht="DeleteLifecyclePolicy",vHt="DeleteLifecyclePolicyRequest",QHt="DeleteLifecyclePolicyResponse",DHt="DeletePullThroughCacheRule",kHt="DeletePullThroughCacheRuleRequest",OHt="DeletePullThroughCacheRuleResponse",LHt="DescribePullThroughCacheRulesRequest",MHt="DescribePullThroughCacheRulesResponse",FHt="DescribePullThroughCacheRules",UHt="DeregisterPullTimeUpdateExclusion",qHt="DeregisterPullTimeUpdateExclusionRequest",$Ht="DeregisterPullTimeUpdateExclusionResponse",GHt="DeleteRepository",HHt="DescribeReplicationBackfillResults",zHt="DescribeReplicationBackfillResultsRequest",VHt="DescribeReplicationBackfillResultsResponse",WHt="DeleteRepositoryCreationTemplate",JHt="DeleteRepositoryCreationTemplateRequest",YHt="DeleteRepositoryCreationTemplateResponse",jHt="DescribeRepositoryCreationTemplatesRequest",KHt="DescribeRepositoryCreationTemplatesResponse",XHt="DescribeRepositoryCreationTemplates",ZHt="DeleteRegistryPolicy",ezt="DeleteRegistryPolicyRequest",tzt="DeleteRegistryPolicyResponse",rzt="DeleteRepositoryPolicyRequest",nzt="DeleteRepositoryPolicyResponse",szt="DeleteRepositoryPolicy",ozt="DeleteRepositoryRequest",izt="DeleteRepositoryResponse",azt="DescribeRegistryRequest",czt="DescribeRegistryResponse",lzt="DescribeRepositoriesRequest",uzt="DescribeRepositoriesResponse",dzt="DescribeRegistry",pzt="DescribeRepositories",fzt="DeleteSigningConfiguration",mzt="DeleteSigningConfigurationRequest",hzt="DeleteSigningConfigurationResponse",Azt="ExclusionAlreadyExistsException",gzt="EncryptionConfiguration",yzt="EncryptionConfigurationForRepositoryCreationTemplate",Ezt="EnhancedImageScanFinding",Czt="EnhancedImageScanFindingList",Izt="ExclusionNotFoundException",Szt="EmptyUploadException",wzt="GetAccountSetting",xzt="GetAccountSettingRequest",bzt="GetAccountSettingResponse",Bzt="GetAuthorizationToken",Rzt="GetAuthorizationTokenRequest",Nzt="GetAuthorizationTokenResponse",Tzt="GetDownloadUrlForLayer",Pzt="GetDownloadUrlForLayerRequest",_zt="GetDownloadUrlForLayerResponse",vzt="GetLifecyclePolicy",Qzt="GetLifecyclePolicyPreview",Dzt="GetLifecyclePolicyPreviewRequest",kzt="GetLifecyclePolicyPreviewResponse",Ozt="GetLifecyclePolicyRequest",Lzt="GetLifecyclePolicyResponse",Mzt="GetRegistryPolicy",Fzt="GetRegistryPolicyRequest",Uzt="GetRegistryPolicyResponse",qzt="GetRepositoryPolicyRequest",$zt="GetRepositoryPolicyResponse",Gzt="GetRepositoryPolicy",Hzt="GetRegistryScanningConfiguration",zzt="GetRegistryScanningConfigurationRequest",Vzt="GetRegistryScanningConfigurationResponse",Wzt="GetSigningConfiguration",Jzt="GetSigningConfigurationRequest",Yzt="GetSigningConfigurationResponse",jzt="Image",Kzt="ImageArchivedException",Xzt="ImageAlreadyExistsException",Zzt="ImageDetail",e3t="ImageDigestDoesNotMatchException",t3t="ImageDetailList",r3t="ImageFailure",n3t="ImageFailureList",s3t="ImageIdentifier",o3t="ImageIdentifierList",i3t="ImageList",a3t="InvalidLayerException",c3t="InvalidLayerPartException",l3t="InitiateLayerUpload",u3t="InitiateLayerUploadRequest",d3t="InitiateLayerUploadResponse",p3t="ImageNotFoundException",f3t="InvalidParameterException",m3t="ImageReferrer",h3t="ImageReferrerList",A3t="ImageReplicationStatus",g3t="ImageReplicationStatusList",y3t="ImageScanningConfiguration",E3t="ImageStorageClassUpdateNotSupportedException",C3t="ImageScanFinding",I3t="ImageScanFindingList",S3t="ImageScanFindingsSummary",w3t="ImageScanFindings",x3t="ImageScanStatus",b3t="ImageSigningStatusList",B3t="ImageSigningStatus",R3t="ImageTagAlreadyExistsException",N3t="ImageTagMutabilityExclusionFilter",T3t="ImageTagMutabilityExclusionFilters",P3t="InvalidTagParameterException",_3t="Key",v3t="KmsException",Q3t="Layer",D3t="LayerAlreadyExistsException",k3t="LimitExceededException",O3t="LayerFailure",L3t="LayerFailureList",M3t="ListImages",F3t="LayerInaccessibleException",U3t="ListImagesFilter",q3t="ListImagesRequest",$3t="ListImageReferrersFilter",G3t="ListImageReferrersRequest",H3t="ListImageReferrersResponse",z3t="ListImagesResponse",V3t="ListImageReferrers",W3t="LayerList",J3t="LayersNotFoundException",Y3t="LifecyclePolicyNotFoundException",j3t="LifecyclePolicyPreviewFilter",K3t="LifecyclePolicyPreviewInProgressException",X3t="LifecyclePolicyPreviewNotFoundException",Z3t="LifecyclePolicyPreviewResult",eVt="LifecyclePolicyPreviewResultList",tVt="LifecyclePolicyPreviewSummary",rVt="LifecyclePolicyRuleAction",nVt="LayerPartTooSmallException",sVt="ListPullTimeUpdateExclusions",oVt="ListPullTimeUpdateExclusionsRequest",iVt="ListPullTimeUpdateExclusionsResponse",aVt="ListReplicationBackfills",cVt="ListReplicationBackfillsRequest",lVt="ListReplicationBackfillsResponse",uVt="ListTagsForResource",dVt="ListTagsForResourceRequest",pVt="ListTagsForResourceResponse",fVt="PutAccountSetting",mVt="PutAccountSettingRequest",hVt="PutAccountSettingResponse",AVt="PutImage",gVt="PutImageRequest",yVt="PutImageResponse",EVt="PutImageScanningConfiguration",CVt="PutImageScanningConfigurationRequest",IVt="PutImageScanningConfigurationResponse",SVt="PutImageTagMutability",wVt="PutImageTagMutabilityRequest",xVt="PutImageTagMutabilityResponse",bVt="PutLifecyclePolicy",BVt="PutLifecyclePolicyRequest",RVt="PutLifecyclePolicyResponse",NVt="PutReplicationConfiguration",TVt="PutReplicationConfigurationRequest",PVt="PutReplicationConfigurationResponse",_Vt="PutRegistryPolicy",vVt="PutRegistryPolicyRequest",QVt="PutRegistryPolicyResponse",DVt="PutRegistryScanningConfiguration",kVt="PutRegistryScanningConfigurationRequest",OVt="PutRegistryScanningConfigurationResponse",LVt="PutSigningConfiguration",MVt="PutSigningConfigurationRequest",FVt="PutSigningConfigurationResponse",UVt="PullThroughCacheRule",qVt="PullThroughCacheRuleAlreadyExistsException",$Vt="PullThroughCacheRuleList",GVt="PullThroughCacheRuleNotFoundException",HVt="PackageVulnerabilityDetails",zVt="Recommendation",VVt="RepositoryAlreadyExistsException",WVt="ReplicationBackfillInProgressException",JVt="ReplicationBackfillInvalidStatusException",YVt="ReplicationBackfillNotFoundException",jVt="ReplicationBackfillProgress",KVt="ReplicationBackfillResult",XVt="ReplicationBackfillResultList",ZVt="ReplicationBackfillSummary",e4t="ReplicationBackfillSummaryList",t4t="ReplicationConfiguration",r4t="RepositoryCreationTemplate",n4t="RepositoryCreationTemplateList",s4t="ReplicationDestination",o4t="ReplicationDestinationList",i4t="ResourceDetails",a4t="RepositoryFilter",c4t="RepositoryFilterList",l4t="ReferencedImagesNotFoundException",u4t="RepositoryList",d4t="ResourceList",p4t="RepositoryNotEmptyException",f4t="RepositoryNotFoundException",m4t="RegistryPolicyNotFoundException",h4t="RepositoryPolicyNotFoundException",A4t="RegisterPullTimeUpdateExclusion",g4t="RegisterPullTimeUpdateExclusionRequest",y4t="RegisterPullTimeUpdateExclusionResponse",E4t="ReplicationRule",C4t="ReplicationRuleList",I4t="RegistryScanningConfiguration",S4t="RepositoryScanningConfigurationFailure",w4t="RepositoryScanningConfigurationFailureList",x4t="RepositoryScanningConfigurationList",b4t="RepositoryScanningConfiguration",B4t="RegistryScanningRule",R4t="RegistryScanningRuleList",N4t="Remediation",T4t="Repository",P4t="Resource",_4t="SigningConfiguration",v4t="SigningConfigurationNotFoundException",Q4t="ScoreDetails",D4t="ServerException",k4t="SubjectIdentifier",O4t="StartImageScan",L4t="StartImageScanRequest",M4t="StartImageScanResponse",F4t="StartLifecyclePolicyPreview",U4t="StartLifecyclePolicyPreviewRequest",q4t="StartLifecyclePolicyPreviewResponse",$4t="ScanNotFoundException",G4t="SecretNotFoundException",H4t="SigningRule",z4t="StartReplicationBackfill",V4t="StartReplicationBackfillRequest",W4t="StartReplicationBackfillResponse",J4t="StopReplicationBackfillRequest",Y4t="StopReplicationBackfillResponse",j4t="StopReplicationBackfill",K4t="ScanningRepositoryFilter",X4t="ScanningRepositoryFilterList",Z4t="SigningRepositoryFilterList",eWt="SigningRepositoryFilter",tWt="SigningRuleList",rWt="SetRepositoryPolicy",nWt="SetRepositoryPolicyRequest",sWt="SetRepositoryPolicyResponse",oWt="Tag",iWt="TemplateAlreadyExistsException",aWt="TransitioningImageTotalCount",cWt="TransitioningImageTotalCounts",lWt="TagList",uWt="TooManyTagsException",dWt="TemplateNotFoundException",pWt="TagResource",fWt="TagResourceRequest",mWt="TagResourceResponse",hWt="UpdateImageStorageClass",AWt="UpdateImageStorageClassRequest",gWt="UpdateImageStorageClassResponse",yWt="UnsupportedImageTypeException",EWt="UploadLayerPart",CWt="UploadLayerPartRequest",IWt="UploadLayerPartResponse",SWt="UploadNotFoundException",wWt="UpdatePullThroughCacheRule",xWt="UpdatePullThroughCacheRuleRequest",bWt="UpdatePullThroughCacheRuleResponse",BWt="UntagResource",RWt="UpdateRepositoryCreationTemplate",NWt="UpdateRepositoryCreationTemplateRequest",TWt="UpdateRepositoryCreationTemplateResponse",PWt="UntagResourceRequest",_Wt="UntagResourceResponse",vWt="UnableToAccessSecretException",QWt="UnableToDecryptSecretValueException",DWt="UnableToGetUpstreamImageException",kWt="UnableToGetUpstreamLayerException",OWt="UnableToListUpstreamImageReferrersException",LWt="UnsupportedUpstreamRegistryException",MWt="Value",FWt="ValidationException",UWt="VulnerablePackage",qWt="VulnerablePackagesList",$Wt="ValidatePullThroughCacheRule",GWt="ValidatePullThroughCacheRuleRequest",HWt="ValidatePullThroughCacheRuleResponse",zWt="architecture",VWt="awsAccountId",WWt="authorizationData",JWt="awsEcrContainerImage",pte="appliedFor",YWt="acceptedMediaTypes",jWt="artifactMediaType",KWt="appliedRulePriority",SHe="artifactStatus",XWt="appliedScanFilters",ZWt="authorizationToken",e8t="artifactType",t8t="artifactTypes",r8t="action",n8t="adjustments",s8t="annotations",o8t="arch",i8t="attributes",a8t="author",c8t="backfills",l8t="baseScore",be="client",Hh="credentialArn",NC="createdAt",zl="customRoleArn",u8t="completedReplicationCount",wHe="cvss",TC="description",d8t="downloadUrl",H0="destination",p8t="destinations",f8t="details",m8t="digest",Ce="error",h8t="expiresAt",xHe="endedAt",A8t="exploitAvailable",z0="encryptionConfiguration",g8t="enhancedFindings",y8t="expiringImageTotalCount",Xu="ecrRepositoryPrefix",E8t="ecrRepositoryPrefixes",bHe="encryptionType",C8t="epoch",$1="failures",I8t="findingArn",S8t="fixAvailable",af="failureCode",w8t="failureCodes",x8t="fixedInVersion",b8t="firstObservedAt",B8t="filePath",G1="failureReason",R8t="failedReplicationCount",BHe="findingSeverityCounts",H1="filterType",N8t="failure",cf="filter",T8t="findings",RHe="force",P8t="httpError",_8t="images",v8t="imageDetails",V0="imageDigest",Q8t="imageHash",PC="imageIds",ei="imageId",NHe="imageManifest",fte="imageManifestMediaType",THe="imagePushedAt",z1="imageStatus",V1="imageScanningConfiguration",PHe="imageScanCompletedAt",D8t="imageScanFindings",k8t="imageScanFindingsSummary",O8t="imageSizeInBytes",mte="imageScanStatus",hte="imageTags",L8t="imageTotalCount",zh="imageTagMutability",Vh="imageTagMutabilityExclusionFilters",_He="imageTag",M8t="inUseCount",F8t="isValid",U8t="id",q8t="image",$8t="key",G8t="kmsError",vHe="kmsKey",H8t="layers",z8t="layerAvailability",V8t="lastArchivedAt",W8t="lastActivatedAt",J8t="lastByteReceived",QHe="layerDigests",W0="layerDigest",DHe="lastEvaluatedAt",Y8t="lastInUseAt",j8t="lastObservedAt",Ate="lifecyclePolicy",K8t="layerPartBlob",Wh="lifecyclePolicyText",X8t="lastRecordedPullTime",Z8t="layerSize",eJt="lastValidByteReceived",Ie="message",Ja="maxResults",kHe="mediaType",tJt="metric",_C="name",Sr="nextToken",rJt="platform",nJt="pushedAt",W1="principalArn",sJt="proxyEndpoint",oJt="partFirstByte",iJt="partLastByte",aJt="packageManager",cJt="previewResults",lJt="partSize",lf="policyText",uJt="pullThroughCacheRules",dJt="pullTimeUpdateExclusions",pJt="packageVulnerabilityDetails",J1="prefix",fJt="prefixes",OHe="progress",mJt="registry",gte="resourceArn",LHe="repositoryArn",vC="replicationBackfillId",yte="replicationConfiguration",Ete="repositoryCreationTemplate",hJt="repositoryCreationTemplates",Cte="repositoryFilters",L="registryId",AJt="registryIds",he="repositoryName",MHe="repositoryNames",Ite="repositoryPolicy",gJt="replicationStatuses",yJt="registryScanningConfiguration",EJt="resultStatusFilter",Ste="resourceTags",CJt="referenceUrls",IJt="repositoryUri",SJt="relatedVulnerabilities",FHe="repository",wJt="reason",xJt="recommendation",bJt="referrers",UHe="region",BJt="release",RJt="remediation",NJt="repositories",TJt="results",PJt="resources",Y1="rules",qHe="smithy.ts.sdk.synthetic.com.amazonaws.ecr",j1="startedAt",_Jt="scanningConfigurations",vJt="scanningConfiguration",K1="signingConfiguration",QJt="storageClass",DJt="scoreDetails",$He="scanFrequency",kJt="subjectId",OJt="subImageFailureCodes",LJt="sourceLayerHash",MJt="subjectManifestDigest",GHe="scanOnPush",HHe="signingProfileArn",FJt="scoreSource",UJt="signingStatuses",zHe="scanType",qJt="sourceUrl",VHe="scoringVector",WHe="score",$Jt="server",JHe="severity",GJt="size",YHe="source",Ya="status",HJt="summary",X1="tags",zJt="transitioningImageTotalCounts",VJt="tagKeys",WJt="totalReplicationCount",wte="tagStatus",xte="targetStorageClass",JJt="text",YJt="title",bte="type",jJt="uri",Z1="updatedAt",QC="uploadId",Bte="upstreamRegistry",DC="upstreamRepositoryPrefix",J0="upstreamRegistryUrl",KJt="url",eU="value",XJt="vendorCreatedAt",ZJt="vulnerabilityId",eYt="vulnerablePackages",tYt="vendorSeverity",jHe="vulnerabilitySourceUpdatedAt",rYt="vendorUpdatedAt",Rte="version",w="com.amazonaws.ecr",KHe=new IHe(qHe),XHe=[-3,qHe,"ECRServiceException",0,[],[]];KHe.registerError(XHe,fe);var ye=new IHe(w),ZHe=[-3,w,$Gt,{[Ce]:be},[Ie],[0]];ye.registerError(ZHe,vF);var eze=[-3,w,Szt,{[Ce]:be},[Ie],[0]];ye.registerError(eze,KM);var tze=[-3,w,Azt,{[Ce]:be},[Ie],[0]];ye.registerError(tze,QF);var rze=[-3,w,Izt,{[Ce]:be},[Ie],[0]];ye.registerError(rze,EF);var nze=[-3,w,Xzt,{[Ce]:be},[Ie],[0]];ye.registerError(nze,NF);var sze=[-3,w,Kzt,{[Ce]:be},[Ie],[0]];ye.registerError(sze,DF);var oze=[-3,w,e3t,{[Ce]:be},[Ie],[0]];ye.registerError(oze,TF);var ize=[-3,w,p3t,{[Ce]:be},[Ie],[0]];ye.registerError(ize,CF);var aze=[-3,w,E3t,{[Ce]:be},[Ie],[0]];ye.registerError(aze,FF);var cze=[-3,w,R3t,{[Ce]:be},[Ie],[0]];ye.registerError(cze,PF);var lze=[-3,w,a3t,{[Ce]:be},[Ie],[0]];ye.registerError(lze,XM);var uze=[-3,w,c3t,{[Ce]:be},[L,he,QC,eJt,Ie],[0,0,0,1,0]];ye.registerError(uze,UF);var dze=[-3,w,f3t,{[Ce]:be},[Ie],[0]];ye.registerError(dze,zM);var pze=[-3,w,P3t,{[Ce]:be},[Ie],[0]];ye.registerError(pze,cF);var fze=[-3,w,v3t,{[Ce]:be},[Ie,G8t],[0,0]];ye.registerError(fze,ZM);var mze=[-3,w,D3t,{[Ce]:be},[Ie],[0]];ye.registerError(mze,eF);var hze=[-3,w,F3t,{[Ce]:be},[Ie],[0]];ye.registerError(hze,wF);var Aze=[-3,w,nVt,{[Ce]:be},[Ie],[0]];ye.registerError(Aze,tF);var gze=[-3,w,J3t,{[Ce]:be},[Ie],[0]];ye.registerError(gze,xF);var yze=[-3,w,Y3t,{[Ce]:be},[Ie],[0]];ye.registerError(yze,pF);var Eze=[-3,w,K3t,{[Ce]:be},[Ie],[0]];ye.registerError(Eze,OF);var Cze=[-3,w,X3t,{[Ce]:be},[Ie],[0]];ye.registerError(Cze,BF);var Ize=[-3,w,k3t,{[Ce]:be},[Ie],[0]];ye.registerError(Ize,JM);var Sze=[-3,w,qVt,{[Ce]:be},[Ie],[0]];ye.registerError(Sze,nF);var wze=[-3,w,GVt,{[Ce]:be},[Ie],[0]];ye.registerError(wze,fF);var xze=[-3,w,l4t,{[Ce]:be},[Ie],[0]];ye.registerError(xze,_F);var bze=[-3,w,m4t,{[Ce]:be},[Ie],[0]];ye.registerError(bze,mF);var Bze=[-3,w,WVt,{[Ce]:be},[Ie],[0]];ye.registerError(Bze,LF);var Rze=[-3,w,JVt,{[Ce]:be},[Ie],[0]];ye.registerError(Rze,MF);var Nze=[-3,w,YVt,{[Ce]:be},[Ie],[0]];ye.registerError(Nze,SF);var Tze=[-3,w,VVt,{[Ce]:be},[Ie],[0]];ye.registerError(Tze,lF);var Pze=[-3,w,p4t,{[Ce]:be},[Ie],[0]];ye.registerError(Pze,hF);var _ze=[-3,w,f4t,{[Ce]:be},[Ie],[0]];ye.registerError(_ze,VM);var vze=[-3,w,h4t,{[Ce]:be},[Ie],[0]];ye.registerError(vze,gF);var Qze=[-3,w,$4t,{[Ce]:be},[Ie],[0]];ye.registerError(Qze,IF);var Dze=[-3,w,G4t,{[Ce]:be},[Ie],[0]];ye.registerError(Dze,sF);var kze=[-3,w,D4t,{[Ce]:$Jt},[Ie],[0]];ye.registerError(kze,WM);var Oze=[-3,w,v4t,{[Ce]:be},[Ie],[0]];ye.registerError(Oze,yF);var Lze=[-3,w,iWt,{[Ce]:be},[Ie],[0]];ye.registerError(Lze,dF);var Mze=[-3,w,dWt,{[Ce]:be},[Ie],[0]];ye.registerError(Mze,AF);var Fze=[-3,w,uWt,{[Ce]:be},[Ie],[0]];ye.registerError(Fze,uF);var Uze=[-3,w,vWt,{[Ce]:be},[Ie],[0]];ye.registerError(Uze,oF);var qze=[-3,w,QWt,{[Ce]:be},[Ie],[0]];ye.registerError(qze,iF);var $ze=[-3,w,DWt,{[Ce]:be},[Ie],[0]];ye.registerError($ze,YM);var Gze=[-3,w,kWt,{[Ce]:be},[Ie],[0]];ye.registerError(Gze,bF);var Hze=[-3,w,OWt,{[Ce]:be},[Ie],[0]];ye.registerError(Hze,RF);var zze=[-3,w,yWt,{[Ce]:be},[Ie],[0]];ye.registerError(zze,kF);var Vze=[-3,w,LWt,{[Ce]:be},[Ie],[0]];ye.registerError(Vze,aF);var Wze=[-3,w,SWt,{[Ce]:be},[Ie],[0]];ye.registerError(Wze,rF);var Jze=[-3,w,FWt,{[Ce]:be,[P8t]:400},[Ie],[0]];ye.registerError(Jze,jM);var Yze=[KHe,ye],jze=[3,w,LGt,0,[$8t,eU],[0,0],1],Kze=[3,w,MGt,0,[ZWt,h8t,sJt],[0,4,0]],Xze=[3,w,UGt,0,[zWt,a8t,Q8t,hte,rJt,nJt,Y8t,M8t,mJt,he],[0,0,0,64,0,4,4,1,0,0]],Zze=[3,w,HGt,0,[he,QHe,L],[0,64,0],2],e3e=[3,w,zGt,0,[H8t,$1],[()=>hYt,()=>mYt]],t3e=[3,w,WGt,0,[he,PC,L],[0,()=>kC,0],2],r3e=[3,w,JGt,0,[PC,$1],[()=>kC,()=>sWe]],n3e=[3,w,jGt,0,[he,PC,L,YWt],[0,()=>kC,0,64],2],s3e=[3,w,KGt,0,[_8t,$1],[()=>lYt,()=>sWe]],o3e=[3,w,ZGt,0,[MHe],[64],1],i3e=[3,w,eHt,0,[_Jt,$1],[()=>BYt,()=>bYt]],a3e=[3,w,rHt,0,[he,QC,QHe,L],[0,0,64,0],3],c3e=[3,w,nHt,0,[L,he,QC,W0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,()=>lVe],OWe=[9,w,Qzt,0,()=>iVe,()=>aVe],LWe=[9,w,Mzt,0,()=>uVe,()=>dVe],MWe=[9,w,Hzt,0,()=>pVe,()=>fVe],FWe=[9,w,Gzt,0,()=>mVe,()=>hVe],UWe=[9,w,Wzt,0,()=>AVe,()=>gVe],qWe=[9,w,l3t,0,()=>RVe,()=>NVe],$We=[9,w,V3t,0,()=>OVe,()=>LVe],GWe=[9,w,M3t,0,()=>FVe,()=>UVe],HWe=[9,w,sVt,0,()=>qVe,()=>$Ve],zWe=[9,w,aVt,0,()=>GVe,()=>HVe],VWe=[9,w,uVt,0,()=>zVe,()=>VVe],WWe=[9,w,fVt,0,()=>YVe,()=>jVe],JWe=[9,w,AVt,0,()=>KVe,()=>XVe],YWe=[9,w,EVt,0,()=>ZVe,()=>e4e],jWe=[9,w,SVt,0,()=>t4e,()=>r4e],KWe=[9,w,bVt,0,()=>n4e,()=>s4e],XWe=[9,w,_Vt,0,()=>o4e,()=>i4e],ZWe=[9,w,DVt,0,()=>a4e,()=>c4e],e8e=[9,w,NVt,0,()=>l4e,()=>u4e],t8e=[9,w,LVt,0,()=>d4e,()=>p4e],r8e=[9,w,A4t,0,()=>m4e,()=>h4e],n8e=[9,w,rWt,0,()=>N4e,()=>T4e],s8e=[9,w,O4t,0,()=>v4e,()=>Q4e],o8e=[9,w,F4t,0,()=>D4e,()=>k4e],i8e=[9,w,z4t,0,()=>O4e,()=>L4e],a8e=[9,w,j4t,0,()=>M4e,()=>F4e],c8e=[9,w,pWt,0,()=>$4e,()=>G4e],l8e=[9,w,BWt,0,()=>z4e,()=>V4e],u8e=[9,w,hWt,0,()=>W4e,()=>J4e],d8e=[9,w,wWt,0,()=>Y4e,()=>j4e],p8e=[9,w,RWt,0,()=>K4e,()=>X4e],f8e=[9,w,EWt,0,()=>Z4e,()=>eWe],m8e=[9,w,$Wt,0,()=>tWe,()=>rWe],vYt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??yGt,base64Encoder:t?.base64Encoder??gGt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??OGt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??BGt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new pGt}],logger:t?.logger??new k$t,protocol:t?.protocol??SGt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:Yze,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??wGt,urlParser:t?.urlParser??tGt,utf8Decoder:t?.utf8Decoder??AGt,utf8Encoder:t?.utf8Encoder??hGt}),"getRuntimeConfig$1"),QYt=i(t=>{O$t(process.version);let e=G$t(t),r=i(()=>e().then(L$t),"defaultConfigProvider"),n=vYt(t);y$t(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??qh(fGt,s),bodyLengthChecker:t?.bodyLengthChecker??EGt,credentialDefaultProvider:t?.credentialDefaultProvider??mGt,defaultSocketTimeout:C$t(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??E$t({serviceId:n.serviceId,clientVersion:_Gt.version}),maxAttempts:t?.maxAttempts??qh(aGt,t),region:t?.region??qh(V$t,{...W$t,...s}),requestHandler:IGt.create(t?.requestHandler??r),retryMode:t?.retryMode??qh({...iGt,default:i(async()=>(await r()).retryMode||oGt,"default")},t),streamCollector:t?.streamCollector??CGt,useDualstackEndpoint:t?.useDualstackEndpoint??qh(z$t,s),useFipsEndpoint:t?.useFipsEndpoint??qh(H$t,s),userAgentAppId:t?.userAgentAppId??qh(I$t,s)}},"getRuntimeConfig"),DYt=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"),kYt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),OYt=i((t,e)=>{let r=Object.assign(S$t(t),M$t(t),rGt(t),DYt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,w$t(r),F$t(r),nGt(r),kYt(r))},"resolveRuntimeExtensions"),Zo=class extends EHe{static{i(this,"ECRClient")}config;constructor(...[e]){let r=QYt(e||{});super(r),this.initConfig=r;let n=NGt(r),s=x$t(n),o=cGt(s),a=J$t(o),c=b$t(a),l=Z$t(c),u=RGt(l),d=OYt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(uGt(this.config)),this.middlewareStack.use(B$t(this.config)),this.middlewareStack.use(lGt(this.config)),this.middlewareStack.use(sGt(this.config)),this.middlewareStack.use(R$t(this.config)),this.middlewareStack.use(N$t(this.config)),this.middlewareStack.use(T$t(this.config)),this.middlewareStack.use(P$t(this.config,{httpAuthSchemeParametersProvider:xGt,identityProviderConfigProvider:i(async p=>new _$t({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(v$t(this.config))}destroy(){super.destroy()}},te=U$t(TGt,"AmazonEC2ContainerRegistry_V20150921","ECRClient",eGt),re={},ne=i((t,e,r,n)=>[],"_mw0"),qF=class extends te(re,ne,"BatchCheckLayerAvailability",aWe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},$F=class extends te(re,ne,"BatchDeleteImage",cWe){static{i(this,"BatchDeleteImageCommand")}},GF=class extends te(re,ne,"BatchGetImage",lWe){static{i(this,"BatchGetImageCommand")}},HF=class extends te(re,ne,"BatchGetRepositoryScanningConfiguration",uWe){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},zF=class extends te(re,ne,"CompleteLayerUpload",dWe){static{i(this,"CompleteLayerUploadCommand")}},VF=class extends te(re,ne,"CreatePullThroughCacheRule",pWe){static{i(this,"CreatePullThroughCacheRuleCommand")}},WF=class extends te(re,ne,"CreateRepository",fWe){static{i(this,"CreateRepositoryCommand")}},JF=class extends te(re,ne,"CreateRepositoryCreationTemplate",mWe){static{i(this,"CreateRepositoryCreationTemplateCommand")}},YF=class extends te(re,ne,"DeleteLifecyclePolicy",hWe){static{i(this,"DeleteLifecyclePolicyCommand")}},jF=class extends te(re,ne,"DeletePullThroughCacheRule",AWe){static{i(this,"DeletePullThroughCacheRuleCommand")}},KF=class extends te(re,ne,"DeleteRegistryPolicy",gWe){static{i(this,"DeleteRegistryPolicyCommand")}},XF=class extends te(re,ne,"DeleteRepository",yWe){static{i(this,"DeleteRepositoryCommand")}},ZF=class extends te(re,ne,"DeleteRepositoryCreationTemplate",EWe){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},e1=class extends te(re,ne,"DeleteRepositoryPolicy",CWe){static{i(this,"DeleteRepositoryPolicyCommand")}},t1=class extends te(re,ne,"DeleteSigningConfiguration",IWe){static{i(this,"DeleteSigningConfigurationCommand")}},r1=class extends te(re,ne,"DeregisterPullTimeUpdateExclusion",SWe){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},n1=class extends te(re,ne,"DescribeImageReplicationStatus",wWe){static{i(this,"DescribeImageReplicationStatusCommand")}},BC=class extends te(re,ne,"DescribeImageScanFindings",bWe){static{i(this,"DescribeImageScanFindingsCommand")}},L0=class extends te(re,ne,"DescribeImages",xWe){static{i(this,"DescribeImagesCommand")}},s1=class extends te(re,ne,"DescribeImageSigningStatus",BWe){static{i(this,"DescribeImageSigningStatusCommand")}},M0=class extends te(re,ne,"DescribePullThroughCacheRules",RWe){static{i(this,"DescribePullThroughCacheRulesCommand")}},o1=class extends te(re,ne,"DescribeRegistry",NWe){static{i(this,"DescribeRegistryCommand")}},F0=class extends te(re,ne,"DescribeReplicationBackfillResults",TWe){static{i(this,"DescribeReplicationBackfillResultsCommand")}},U0=class extends te(re,ne,"DescribeRepositories",PWe){static{i(this,"DescribeRepositoriesCommand")}},q0=class extends te(re,ne,"DescribeRepositoryCreationTemplates",_We){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},i1=class extends te(re,ne,"GetAccountSetting",vWe){static{i(this,"GetAccountSettingCommand")}},a1=class extends te(re,ne,"GetAuthorizationToken",QWe){static{i(this,"GetAuthorizationTokenCommand")}},c1=class extends te(re,ne,"GetDownloadUrlForLayer",DWe){static{i(this,"GetDownloadUrlForLayerCommand")}},l1=class extends te(re,ne,"GetLifecyclePolicy",kWe){static{i(this,"GetLifecyclePolicyCommand")}},RC=class extends te(re,ne,"GetLifecyclePolicyPreview",OWe){static{i(this,"GetLifecyclePolicyPreviewCommand")}},u1=class extends te(re,ne,"GetRegistryPolicy",LWe){static{i(this,"GetRegistryPolicyCommand")}},d1=class extends te(re,ne,"GetRegistryScanningConfiguration",MWe){static{i(this,"GetRegistryScanningConfigurationCommand")}},p1=class extends te(re,ne,"GetRepositoryPolicy",FWe){static{i(this,"GetRepositoryPolicyCommand")}},f1=class extends te(re,ne,"GetSigningConfiguration",UWe){static{i(this,"GetSigningConfigurationCommand")}},m1=class extends te(re,ne,"InitiateLayerUpload",qWe){static{i(this,"InitiateLayerUploadCommand")}},h1=class extends te(re,ne,"ListImageReferrers",$We){static{i(this,"ListImageReferrersCommand")}},$0=class extends te(re,ne,"ListImages",GWe){static{i(this,"ListImagesCommand")}},A1=class extends te(re,ne,"ListPullTimeUpdateExclusions",HWe){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},G0=class extends te(re,ne,"ListReplicationBackfills",zWe){static{i(this,"ListReplicationBackfillsCommand")}},g1=class extends te(re,ne,"ListTagsForResource",VWe){static{i(this,"ListTagsForResourceCommand")}},y1=class extends te(re,ne,"PutAccountSetting",WWe){static{i(this,"PutAccountSettingCommand")}},E1=class extends te(re,ne,"PutImage",JWe){static{i(this,"PutImageCommand")}},C1=class extends te(re,ne,"PutImageScanningConfiguration",YWe){static{i(this,"PutImageScanningConfigurationCommand")}},I1=class extends te(re,ne,"PutImageTagMutability",jWe){static{i(this,"PutImageTagMutabilityCommand")}},S1=class extends te(re,ne,"PutLifecyclePolicy",KWe){static{i(this,"PutLifecyclePolicyCommand")}},w1=class extends te(re,ne,"PutRegistryPolicy",XWe){static{i(this,"PutRegistryPolicyCommand")}},x1=class extends te(re,ne,"PutRegistryScanningConfiguration",ZWe){static{i(this,"PutRegistryScanningConfigurationCommand")}},b1=class extends te(re,ne,"PutReplicationConfiguration",e8e){static{i(this,"PutReplicationConfigurationCommand")}},B1=class extends te(re,ne,"PutSigningConfiguration",t8e){static{i(this,"PutSigningConfigurationCommand")}},R1=class extends te(re,ne,"RegisterPullTimeUpdateExclusion",r8e){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},N1=class extends te(re,ne,"SetRepositoryPolicy",n8e){static{i(this,"SetRepositoryPolicyCommand")}},T1=class extends te(re,ne,"StartImageScan",s8e){static{i(this,"StartImageScanCommand")}},P1=class extends te(re,ne,"StartLifecyclePolicyPreview",o8e){static{i(this,"StartLifecyclePolicyPreviewCommand")}},_1=class extends te(re,ne,"StartReplicationBackfill",i8e){static{i(this,"StartReplicationBackfillCommand")}},v1=class extends te(re,ne,"StopReplicationBackfill",a8e){static{i(this,"StopReplicationBackfillCommand")}},Q1=class extends te(re,ne,"TagResource",c8e){static{i(this,"TagResourceCommand")}},D1=class extends te(re,ne,"UntagResource",l8e){static{i(this,"UntagResourceCommand")}},k1=class extends te(re,ne,"UpdateImageStorageClass",u8e){static{i(this,"UpdateImageStorageClassCommand")}},O1=class extends te(re,ne,"UpdatePullThroughCacheRule",d8e){static{i(this,"UpdatePullThroughCacheRuleCommand")}},L1=class extends te(re,ne,"UpdateRepositoryCreationTemplate",p8e){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},M1=class extends te(re,ne,"UploadLayerPart",f8e){static{i(this,"UploadLayerPartCommand")}},F1=class extends te(re,ne,"ValidatePullThroughCacheRule",m8e){static{i(this,"ValidatePullThroughCacheRuleCommand")}},h8e=Ku(Zo,BC,"nextToken","nextToken","maxResults"),A8e=Ku(Zo,L0,"nextToken","nextToken","maxResults"),g8e=Ku(Zo,M0,"nextToken","nextToken","maxResults"),y8e=Ku(Zo,F0,"nextToken","nextToken","maxResults"),E8e=Ku(Zo,U0,"nextToken","nextToken","maxResults"),C8e=Ku(Zo,q0,"nextToken","nextToken","maxResults"),I8e=Ku(Zo,RC,"nextToken","nextToken","maxResults"),S8e=Ku(Zo,$0,"nextToken","nextToken","maxResults"),w8e=Ku(Zo,G0,"nextToken","nextToken","maxResults"),x8e=i(async(t,e)=>{let r;try{let n=await t.send(new BC(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:xC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:xC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:xC.RETRY,reason:r}},"checkState$1"),LYt=i(async(t,e)=>q1({...{minDelay:5,maxDelay:120},...t},e,x8e),"waitForImageScanComplete"),b8e=i(async(t,e)=>{let n=await q1({...{minDelay:5,maxDelay:120},...t},e,x8e);return CHe(n)},"waitUntilImageScanComplete"),B8e=i(async(t,e)=>{let r;try{let n=await t.send(new RC(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:xC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:xC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:xC.RETRY,reason:r}},"checkState"),MYt=i(async(t,e)=>q1({...{minDelay:5,maxDelay:120},...t},e,B8e),"waitForLifecyclePolicyPreviewComplete"),R8e=i(async(t,e)=>{let n=await q1({...{minDelay:5,maxDelay:120},...t},e,B8e);return CHe(n)},"waitUntilLifecyclePolicyPreviewComplete"),FYt={BatchCheckLayerAvailabilityCommand:qF,BatchDeleteImageCommand:$F,BatchGetImageCommand:GF,BatchGetRepositoryScanningConfigurationCommand:HF,CompleteLayerUploadCommand:zF,CreatePullThroughCacheRuleCommand:VF,CreateRepositoryCommand:WF,CreateRepositoryCreationTemplateCommand:JF,DeleteLifecyclePolicyCommand:YF,DeletePullThroughCacheRuleCommand:jF,DeleteRegistryPolicyCommand:KF,DeleteRepositoryCommand:XF,DeleteRepositoryCreationTemplateCommand:ZF,DeleteRepositoryPolicyCommand:e1,DeleteSigningConfigurationCommand:t1,DeregisterPullTimeUpdateExclusionCommand:r1,DescribeImageReplicationStatusCommand:n1,DescribeImagesCommand:L0,DescribeImageScanFindingsCommand:BC,DescribeImageSigningStatusCommand:s1,DescribePullThroughCacheRulesCommand:M0,DescribeRegistryCommand:o1,DescribeReplicationBackfillResultsCommand:F0,DescribeRepositoriesCommand:U0,DescribeRepositoryCreationTemplatesCommand:q0,GetAccountSettingCommand:i1,GetAuthorizationTokenCommand:a1,GetDownloadUrlForLayerCommand:c1,GetLifecyclePolicyCommand:l1,GetLifecyclePolicyPreviewCommand:RC,GetRegistryPolicyCommand:u1,GetRegistryScanningConfigurationCommand:d1,GetRepositoryPolicyCommand:p1,GetSigningConfigurationCommand:f1,InitiateLayerUploadCommand:m1,ListImageReferrersCommand:h1,ListImagesCommand:$0,ListPullTimeUpdateExclusionsCommand:A1,ListReplicationBackfillsCommand:G0,ListTagsForResourceCommand:g1,PutAccountSettingCommand:y1,PutImageCommand:E1,PutImageScanningConfigurationCommand:C1,PutImageTagMutabilityCommand:I1,PutLifecyclePolicyCommand:S1,PutRegistryPolicyCommand:w1,PutRegistryScanningConfigurationCommand:x1,PutReplicationConfigurationCommand:b1,PutSigningConfigurationCommand:B1,RegisterPullTimeUpdateExclusionCommand:R1,SetRepositoryPolicyCommand:N1,StartImageScanCommand:T1,StartLifecyclePolicyPreviewCommand:P1,StartReplicationBackfillCommand:_1,StopReplicationBackfillCommand:v1,TagResourceCommand:Q1,UntagResourceCommand:D1,UpdateImageStorageClassCommand:k1,UpdatePullThroughCacheRuleCommand:O1,UpdateRepositoryCreationTemplateCommand:L1,UploadLayerPartCommand:M1,ValidatePullThroughCacheRuleCommand:F1},UYt={paginateDescribeImages:A8e,paginateDescribeImageScanFindings:h8e,paginateDescribePullThroughCacheRules:g8e,paginateDescribeReplicationBackfillResults:y8e,paginateDescribeRepositories:E8e,paginateDescribeRepositoryCreationTemplates:C8e,paginateGetLifecyclePolicyPreview:I8e,paginateListImages:S8e,paginateListReplicationBackfills:w8e},qYt={waitUntilImageScanComplete:b8e,waitUntilLifecyclePolicyPreviewComplete:R8e},U1=class extends Zo{static{i(this,"ECR")}};q$t(FYt,U1,{paginators:UYt,waiters:qYt});var $Yt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},GYt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},HYt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},zYt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},VYt={WILDCARD:"WILDCARD"},WYt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},JYt={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"},YYt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},jYt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},KYt={WILDCARD:"WILDCARD"},XYt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},ZYt={WILDCARD_MATCH:"WILDCARD_MATCH"},ejt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},tjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},rjt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},njt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},sjt={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"},ojt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},ijt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},ajt={PREFIX_MATCH:"PREFIX_MATCH"},cjt={COMPLETE:"COMPLETE",FAILED:"FAILED"},ljt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PREPARING:"PREPARING",STOPPED:"STOPPED",STOPPING:"STOPPING"},ujt={ARCHIVE:"ARCHIVE"},djt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},pjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},fjt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},mjt={BASIC:"BASIC",ENHANCED:"ENHANCED"},hjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},Ajt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},gjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};C.ArtifactStatus=Ajt;C.ArtifactStatusFilter=hjt;C.Attribute$=jze;C.AuthorizationData$=Kze;C.AwsEcrContainerImageDetails$=Xze;C.BatchCheckLayerAvailability$=aWe;C.BatchCheckLayerAvailabilityCommand=qF;C.BatchCheckLayerAvailabilityRequest$=Zze;C.BatchCheckLayerAvailabilityResponse$=e3e;C.BatchDeleteImage$=cWe;C.BatchDeleteImageCommand=$F;C.BatchDeleteImageRequest$=t3e;C.BatchDeleteImageResponse$=r3e;C.BatchGetImage$=lWe;C.BatchGetImageCommand=GF;C.BatchGetImageRequest$=n3e;C.BatchGetImageResponse$=s3e;C.BatchGetRepositoryScanningConfiguration$=uWe;C.BatchGetRepositoryScanningConfigurationCommand=HF;C.BatchGetRepositoryScanningConfigurationRequest$=o3e;C.BatchGetRepositoryScanningConfigurationResponse$=i3e;C.BlockedByOrganizationPolicyException=vF;C.BlockedByOrganizationPolicyException$=ZHe;C.CompleteLayerUpload$=dWe;C.CompleteLayerUploadCommand=zF;C.CompleteLayerUploadRequest$=a3e;C.CompleteLayerUploadResponse$=c3e;C.CreatePullThroughCacheRule$=pWe;C.CreatePullThroughCacheRuleCommand=VF;C.CreatePullThroughCacheRuleRequest$=l3e;C.CreatePullThroughCacheRuleResponse$=u3e;C.CreateRepository$=fWe;C.CreateRepositoryCommand=WF;C.CreateRepositoryCreationTemplate$=mWe;C.CreateRepositoryCreationTemplateCommand=JF;C.CreateRepositoryCreationTemplateRequest$=d3e;C.CreateRepositoryCreationTemplateResponse$=p3e;C.CreateRepositoryRequest$=f3e;C.CreateRepositoryResponse$=m3e;C.CvssScore$=h3e;C.CvssScoreAdjustment$=A3e;C.CvssScoreDetails$=g3e;C.DeleteLifecyclePolicy$=hWe;C.DeleteLifecyclePolicyCommand=YF;C.DeleteLifecyclePolicyRequest$=y3e;C.DeleteLifecyclePolicyResponse$=E3e;C.DeletePullThroughCacheRule$=AWe;C.DeletePullThroughCacheRuleCommand=jF;C.DeletePullThroughCacheRuleRequest$=C3e;C.DeletePullThroughCacheRuleResponse$=I3e;C.DeleteRegistryPolicy$=gWe;C.DeleteRegistryPolicyCommand=KF;C.DeleteRegistryPolicyRequest$=S3e;C.DeleteRegistryPolicyResponse$=w3e;C.DeleteRepository$=yWe;C.DeleteRepositoryCommand=XF;C.DeleteRepositoryCreationTemplate$=EWe;C.DeleteRepositoryCreationTemplateCommand=ZF;C.DeleteRepositoryCreationTemplateRequest$=x3e;C.DeleteRepositoryCreationTemplateResponse$=b3e;C.DeleteRepositoryPolicy$=CWe;C.DeleteRepositoryPolicyCommand=e1;C.DeleteRepositoryPolicyRequest$=B3e;C.DeleteRepositoryPolicyResponse$=R3e;C.DeleteRepositoryRequest$=N3e;C.DeleteRepositoryResponse$=T3e;C.DeleteSigningConfiguration$=IWe;C.DeleteSigningConfigurationCommand=t1;C.DeleteSigningConfigurationRequest$=P3e;C.DeleteSigningConfigurationResponse$=_3e;C.DeregisterPullTimeUpdateExclusion$=SWe;C.DeregisterPullTimeUpdateExclusionCommand=r1;C.DeregisterPullTimeUpdateExclusionRequest$=v3e;C.DeregisterPullTimeUpdateExclusionResponse$=Q3e;C.DescribeImageReplicationStatus$=wWe;C.DescribeImageReplicationStatusCommand=n1;C.DescribeImageReplicationStatusRequest$=D3e;C.DescribeImageReplicationStatusResponse$=k3e;C.DescribeImageScanFindings$=bWe;C.DescribeImageScanFindingsCommand=BC;C.DescribeImageScanFindingsRequest$=O3e;C.DescribeImageScanFindingsResponse$=L3e;C.DescribeImageSigningStatus$=BWe;C.DescribeImageSigningStatusCommand=s1;C.DescribeImageSigningStatusRequest$=F3e;C.DescribeImageSigningStatusResponse$=U3e;C.DescribeImages$=xWe;C.DescribeImagesCommand=L0;C.DescribeImagesFilter$=M3e;C.DescribeImagesRequest$=q3e;C.DescribeImagesResponse$=$3e;C.DescribePullThroughCacheRules$=RWe;C.DescribePullThroughCacheRulesCommand=M0;C.DescribePullThroughCacheRulesRequest$=G3e;C.DescribePullThroughCacheRulesResponse$=H3e;C.DescribeRegistry$=NWe;C.DescribeRegistryCommand=o1;C.DescribeRegistryRequest$=z3e;C.DescribeRegistryResponse$=V3e;C.DescribeReplicationBackfillResults$=TWe;C.DescribeReplicationBackfillResultsCommand=F0;C.DescribeReplicationBackfillResultsRequest$=W3e;C.DescribeReplicationBackfillResultsResponse$=J3e;C.DescribeRepositories$=PWe;C.DescribeRepositoriesCommand=U0;C.DescribeRepositoriesRequest$=Y3e;C.DescribeRepositoriesResponse$=j3e;C.DescribeRepositoryCreationTemplates$=_We;C.DescribeRepositoryCreationTemplatesCommand=q0;C.DescribeRepositoryCreationTemplatesRequest$=K3e;C.DescribeRepositoryCreationTemplatesResponse$=X3e;C.ECR=U1;C.ECRClient=Zo;C.ECRServiceException=fe;C.ECRServiceException$=XHe;C.EmptyUploadException=KM;C.EmptyUploadException$=eze;C.EncryptionConfiguration$=Nte;C.EncryptionConfigurationForRepositoryCreationTemplate$=tU;C.EncryptionType=YYt;C.EnhancedImageScanFinding$=Z3e;C.ExclusionAlreadyExistsException=QF;C.ExclusionAlreadyExistsException$=tze;C.ExclusionNotFoundException=EF;C.ExclusionNotFoundException$=rze;C.FindingSeverity=njt;C.GetAccountSetting$=vWe;C.GetAccountSettingCommand=i1;C.GetAccountSettingRequest$=eVe;C.GetAccountSettingResponse$=tVe;C.GetAuthorizationToken$=QWe;C.GetAuthorizationTokenCommand=a1;C.GetAuthorizationTokenRequest$=rVe;C.GetAuthorizationTokenResponse$=nVe;C.GetDownloadUrlForLayer$=DWe;C.GetDownloadUrlForLayerCommand=c1;C.GetDownloadUrlForLayerRequest$=sVe;C.GetDownloadUrlForLayerResponse$=oVe;C.GetLifecyclePolicy$=kWe;C.GetLifecyclePolicyCommand=l1;C.GetLifecyclePolicyPreview$=OWe;C.GetLifecyclePolicyPreviewCommand=RC;C.GetLifecyclePolicyPreviewRequest$=iVe;C.GetLifecyclePolicyPreviewResponse$=aVe;C.GetLifecyclePolicyRequest$=cVe;C.GetLifecyclePolicyResponse$=lVe;C.GetRegistryPolicy$=LWe;C.GetRegistryPolicyCommand=u1;C.GetRegistryPolicyRequest$=uVe;C.GetRegistryPolicyResponse$=dVe;C.GetRegistryScanningConfiguration$=MWe;C.GetRegistryScanningConfigurationCommand=d1;C.GetRegistryScanningConfigurationRequest$=pVe;C.GetRegistryScanningConfigurationResponse$=fVe;C.GetRepositoryPolicy$=FWe;C.GetRepositoryPolicyCommand=p1;C.GetRepositoryPolicyRequest$=mVe;C.GetRepositoryPolicyResponse$=hVe;C.GetSigningConfiguration$=UWe;C.GetSigningConfigurationCommand=f1;C.GetSigningConfigurationRequest$=AVe;C.GetSigningConfigurationResponse$=gVe;C.Image$=Tte;C.ImageActionType=djt;C.ImageAlreadyExistsException=NF;C.ImageAlreadyExistsException$=nze;C.ImageArchivedException=DF;C.ImageArchivedException$=sze;C.ImageDetail$=yVe;C.ImageDigestDoesNotMatchException=TF;C.ImageDigestDoesNotMatchException$=oze;C.ImageFailure$=EVe;C.ImageFailureCode=HYt;C.ImageIdentifier$=Ps;C.ImageNotFoundException=CF;C.ImageNotFoundException$=ize;C.ImageReferrer$=CVe;C.ImageReplicationStatus$=IVe;C.ImageScanFinding$=SVe;C.ImageScanFindings$=wVe;C.ImageScanFindingsSummary$=xVe;C.ImageScanStatus$=rU;C.ImageScanningConfiguration$=Y0;C.ImageSigningStatus$=bVe;C.ImageStatus=ojt;C.ImageStatusFilter=tjt;C.ImageStorageClassUpdateNotSupportedException=FF;C.ImageStorageClassUpdateNotSupportedException$=aze;C.ImageTagAlreadyExistsException=PF;C.ImageTagAlreadyExistsException$=cze;C.ImageTagMutability=jYt;C.ImageTagMutabilityExclusionFilter$=BVe;C.ImageTagMutabilityExclusionFilterType=KYt;C.InitiateLayerUpload$=qWe;C.InitiateLayerUploadCommand=m1;C.InitiateLayerUploadRequest$=RVe;C.InitiateLayerUploadResponse$=NVe;C.InvalidLayerException=XM;C.InvalidLayerException$=lze;C.InvalidLayerPartException=UF;C.InvalidLayerPartException$=uze;C.InvalidParameterException=zM;C.InvalidParameterException$=dze;C.InvalidTagParameterException=cF;C.InvalidTagParameterException$=pze;C.KmsException=ZM;C.KmsException$=fze;C.Layer$=TVe;C.LayerAlreadyExistsException=eF;C.LayerAlreadyExistsException$=mze;C.LayerAvailability=GYt;C.LayerFailure$=PVe;C.LayerFailureCode=$Yt;C.LayerInaccessibleException=wF;C.LayerInaccessibleException$=hze;C.LayerPartTooSmallException=tF;C.LayerPartTooSmallException$=Aze;C.LayersNotFoundException=xF;C.LayersNotFoundException$=gze;C.LifecyclePolicyNotFoundException=pF;C.LifecyclePolicyNotFoundException$=yze;C.LifecyclePolicyPreviewFilter$=_Ve;C.LifecyclePolicyPreviewInProgressException=OF;C.LifecyclePolicyPreviewInProgressException$=Eze;C.LifecyclePolicyPreviewNotFoundException=BF;C.LifecyclePolicyPreviewNotFoundException$=Cze;C.LifecyclePolicyPreviewResult$=vVe;C.LifecyclePolicyPreviewStatus=fjt;C.LifecyclePolicyPreviewSummary$=QVe;C.LifecyclePolicyRuleAction$=DVe;C.LifecyclePolicyStorageClass=pjt;C.LifecyclePolicyTargetStorageClass=ujt;C.LimitExceededException=JM;C.LimitExceededException$=Ize;C.ListImageReferrers$=$We;C.ListImageReferrersCommand=h1;C.ListImageReferrersFilter$=kVe;C.ListImageReferrersRequest$=OVe;C.ListImageReferrersResponse$=LVe;C.ListImages$=GWe;C.ListImagesCommand=$0;C.ListImagesFilter$=MVe;C.ListImagesRequest$=FVe;C.ListImagesResponse$=UVe;C.ListPullTimeUpdateExclusions$=HWe;C.ListPullTimeUpdateExclusionsCommand=A1;C.ListPullTimeUpdateExclusionsRequest$=qVe;C.ListPullTimeUpdateExclusionsResponse$=$Ve;C.ListReplicationBackfills$=zWe;C.ListReplicationBackfillsCommand=G0;C.ListReplicationBackfillsRequest$=GVe;C.ListReplicationBackfillsResponse$=HVe;C.ListTagsForResource$=VWe;C.ListTagsForResourceCommand=g1;C.ListTagsForResourceRequest$=zVe;C.ListTagsForResourceResponse$=VVe;C.PackageVulnerabilityDetails$=WVe;C.PullThroughCacheRule$=JVe;C.PullThroughCacheRuleAlreadyExistsException=nF;C.PullThroughCacheRuleAlreadyExistsException$=Sze;C.PullThroughCacheRuleNotFoundException=fF;C.PullThroughCacheRuleNotFoundException$=wze;C.PutAccountSetting$=WWe;C.PutAccountSettingCommand=y1;C.PutAccountSettingRequest$=YVe;C.PutAccountSettingResponse$=jVe;C.PutImage$=JWe;C.PutImageCommand=E1;C.PutImageRequest$=KVe;C.PutImageResponse$=XVe;C.PutImageScanningConfiguration$=YWe;C.PutImageScanningConfigurationCommand=C1;C.PutImageScanningConfigurationRequest$=ZVe;C.PutImageScanningConfigurationResponse$=e4e;C.PutImageTagMutability$=jWe;C.PutImageTagMutabilityCommand=I1;C.PutImageTagMutabilityRequest$=t4e;C.PutImageTagMutabilityResponse$=r4e;C.PutLifecyclePolicy$=KWe;C.PutLifecyclePolicyCommand=S1;C.PutLifecyclePolicyRequest$=n4e;C.PutLifecyclePolicyResponse$=s4e;C.PutRegistryPolicy$=XWe;C.PutRegistryPolicyCommand=w1;C.PutRegistryPolicyRequest$=o4e;C.PutRegistryPolicyResponse$=i4e;C.PutRegistryScanningConfiguration$=ZWe;C.PutRegistryScanningConfigurationCommand=x1;C.PutRegistryScanningConfigurationRequest$=a4e;C.PutRegistryScanningConfigurationResponse$=c4e;C.PutReplicationConfiguration$=e8e;C.PutReplicationConfigurationCommand=b1;C.PutReplicationConfigurationRequest$=l4e;C.PutReplicationConfigurationResponse$=u4e;C.PutSigningConfiguration$=t8e;C.PutSigningConfigurationCommand=B1;C.PutSigningConfigurationRequest$=d4e;C.PutSigningConfigurationResponse$=p4e;C.RCTAppliedFor=XYt;C.Recommendation$=f4e;C.ReferencedImagesNotFoundException=_F;C.ReferencedImagesNotFoundException$=xze;C.RegisterPullTimeUpdateExclusion$=r8e;C.RegisterPullTimeUpdateExclusionCommand=R1;C.RegisterPullTimeUpdateExclusionRequest$=m4e;C.RegisterPullTimeUpdateExclusionResponse$=h4e;C.RegistryPolicyNotFoundException=mF;C.RegistryPolicyNotFoundException$=bze;C.RegistryScanningConfiguration$=Pte;C.RegistryScanningRule$=A4e;C.Remediation$=g4e;C.ReplicationBackfillInProgressException=LF;C.ReplicationBackfillInProgressException$=Bze;C.ReplicationBackfillInvalidStatusException=MF;C.ReplicationBackfillInvalidStatusException$=Rze;C.ReplicationBackfillNotFoundException=SF;C.ReplicationBackfillNotFoundException$=Nze;C.ReplicationBackfillProgress$=_te;C.ReplicationBackfillResult$=y4e;C.ReplicationBackfillResultStatus=cjt;C.ReplicationBackfillStatus=ljt;C.ReplicationBackfillSummary$=E4e;C.ReplicationConfiguration$=nU;C.ReplicationDestination$=Jh;C.ReplicationRule$=C4e;C.ReplicationStatus=ejt;C.Repository$=sU;C.RepositoryAlreadyExistsException=lF;C.RepositoryAlreadyExistsException$=Tze;C.RepositoryCreationTemplate$=j0;C.RepositoryFilter$=I4e;C.RepositoryFilterType=ajt;C.RepositoryNotEmptyException=hF;C.RepositoryNotEmptyException$=Pze;C.RepositoryNotFoundException=VM;C.RepositoryNotFoundException$=_ze;C.RepositoryPolicyNotFoundException=gF;C.RepositoryPolicyNotFoundException$=vze;C.RepositoryScanningConfiguration$=S4e;C.RepositoryScanningConfigurationFailure$=w4e;C.Resource$=x4e;C.ResourceDetails$=b4e;C.ScanFrequency=WYt;C.ScanNotFoundException=IF;C.ScanNotFoundException$=Qze;C.ScanStatus=sjt;C.ScanType=mjt;C.ScanningConfigurationFailureCode=zYt;C.ScanningRepositoryFilter$=B4e;C.ScanningRepositoryFilterType=VYt;C.ScoreDetails$=R4e;C.SecretNotFoundException=sF;C.SecretNotFoundException$=Dze;C.ServerException=WM;C.ServerException$=kze;C.SetRepositoryPolicy$=n8e;C.SetRepositoryPolicyCommand=N1;C.SetRepositoryPolicyRequest$=N4e;C.SetRepositoryPolicyResponse$=T4e;C.SigningConfiguration$=K0;C.SigningConfigurationNotFoundException=yF;C.SigningConfigurationNotFoundException$=Oze;C.SigningRepositoryFilter$=P4e;C.SigningRepositoryFilterType=ZYt;C.SigningRule$=_4e;C.SigningStatus=ijt;C.StartImageScan$=s8e;C.StartImageScanCommand=T1;C.StartImageScanRequest$=v4e;C.StartImageScanResponse$=Q4e;C.StartLifecyclePolicyPreview$=o8e;C.StartLifecyclePolicyPreviewCommand=P1;C.StartLifecyclePolicyPreviewRequest$=D4e;C.StartLifecyclePolicyPreviewResponse$=k4e;C.StartReplicationBackfill$=i8e;C.StartReplicationBackfillCommand=_1;C.StartReplicationBackfillRequest$=O4e;C.StartReplicationBackfillResponse$=L4e;C.StopReplicationBackfill$=a8e;C.StopReplicationBackfillCommand=v1;C.StopReplicationBackfillRequest$=M4e;C.StopReplicationBackfillResponse$=F4e;C.SubjectIdentifier$=U4e;C.Tag$=q4e;C.TagResource$=c8e;C.TagResourceCommand=Q1;C.TagResourceRequest$=$4e;C.TagResourceResponse$=G4e;C.TagStatus=rjt;C.TargetStorageClass=gjt;C.TemplateAlreadyExistsException=dF;C.TemplateAlreadyExistsException$=Lze;C.TemplateNotFoundException=AF;C.TemplateNotFoundException$=Mze;C.TooManyTagsException=uF;C.TooManyTagsException$=Fze;C.TransitioningImageTotalCount$=H4e;C.UnableToAccessSecretException=oF;C.UnableToAccessSecretException$=Uze;C.UnableToDecryptSecretValueException=iF;C.UnableToDecryptSecretValueException$=qze;C.UnableToGetUpstreamImageException=YM;C.UnableToGetUpstreamImageException$=$ze;C.UnableToGetUpstreamLayerException=bF;C.UnableToGetUpstreamLayerException$=Gze;C.UnableToListUpstreamImageReferrersException=RF;C.UnableToListUpstreamImageReferrersException$=Hze;C.UnsupportedImageTypeException=kF;C.UnsupportedImageTypeException$=zze;C.UnsupportedUpstreamRegistryException=aF;C.UnsupportedUpstreamRegistryException$=Vze;C.UntagResource$=l8e;C.UntagResourceCommand=D1;C.UntagResourceRequest$=z4e;C.UntagResourceResponse$=V4e;C.UpdateImageStorageClass$=u8e;C.UpdateImageStorageClassCommand=k1;C.UpdateImageStorageClassRequest$=W4e;C.UpdateImageStorageClassResponse$=J4e;C.UpdatePullThroughCacheRule$=d8e;C.UpdatePullThroughCacheRuleCommand=O1;C.UpdatePullThroughCacheRuleRequest$=Y4e;C.UpdatePullThroughCacheRuleResponse$=j4e;C.UpdateRepositoryCreationTemplate$=p8e;C.UpdateRepositoryCreationTemplateCommand=L1;C.UpdateRepositoryCreationTemplateRequest$=K4e;C.UpdateRepositoryCreationTemplateResponse$=X4e;C.UploadLayerPart$=f8e;C.UploadLayerPartCommand=M1;C.UploadLayerPartRequest$=Z4e;C.UploadLayerPartResponse$=eWe;C.UploadNotFoundException=rF;C.UploadNotFoundException$=Wze;C.UpstreamRegistry=JYt;C.ValidatePullThroughCacheRule$=m8e;C.ValidatePullThroughCacheRuleCommand=F1;C.ValidatePullThroughCacheRuleRequest$=tWe;C.ValidatePullThroughCacheRuleResponse$=rWe;C.ValidationException=jM;C.ValidationException$=Jze;C.VulnerablePackage$=nWe;C.errorTypeRegistries=Yze;C.paginateDescribeImageScanFindings=h8e;C.paginateDescribeImages=A8e;C.paginateDescribePullThroughCacheRules=g8e;C.paginateDescribeReplicationBackfillResults=y8e;C.paginateDescribeRepositories=E8e;C.paginateDescribeRepositoryCreationTemplates=C8e;C.paginateGetLifecyclePolicyPreview=I8e;C.paginateListImages=S8e;C.paginateListReplicationBackfills=w8e;C.waitForImageScanComplete=LYt;C.waitForLifecyclePolicyPreviewComplete=MYt;C.waitUntilImageScanComplete=b8e;C.waitUntilLifecyclePolicyPreviewComplete=R8e});var ije=S(B=>{var{awsEndpointFunctions:yjt,emitWarningIfUnsupportedVersion:Ejt,createDefaultUserAgentProvider:Cjt,getDefaultSocketTimeout:Ijt,NODE_APP_ID_CONFIG_OPTIONS:Sjt,getAwsRegionExtensionConfiguration:wjt,resolveAwsRegionExtensionConfiguration:xjt,resolveUserAgentConfig:bjt,resolveHostHeaderConfig:Bjt,getUserAgentPlugin:Rjt,getHostHeaderPlugin:Njt,getLoggerPlugin:Tjt,getRecursionDetectionPlugin:Pjt}=(Et(),Z(La)),{getHttpAuthSchemeEndpointRuleSetPlugin:_jt,DefaultIdentityProviderConfig:vjt,getHttpSigningPlugin:Qjt,createPaginator:KU}=(Bs(),Z(VK)),{normalizeProvider:Q8e,getSmithyContext:Djt,ServiceException:kjt,NoOpLogger:Ojt,emitWarningIfUnsupportedVersion:Ljt,loadConfigsForDefaultMode:Mjt,getDefaultExtensionConfiguration:Fjt,resolveDefaultRuntimeConfig:Ujt,Client:D8e,makeBuilder:qjt,createAggregatedClient:$jt}=(we(),Z(Ly)),{Command:Gjt}=(we(),Z(Ly));B.$Command=Gjt;B.__Client=D8e;var{resolveDefaultsModeConfig:Hjt,loadConfig:jh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:zjt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Vjt,NODE_REGION_CONFIG_OPTIONS:Wjt,NODE_REGION_CONFIG_FILE_OPTIONS:Jjt,resolveRegionConfig:Yjt}=(bt(),Z(Mi)),{BinaryDecisionDiagram:jjt,EndpointCache:Kjt,decideEndpoint:Xjt,customEndpointFunctions:Zjt,resolveEndpointConfig:e5t,getEndpointPlugin:t5t}=(Dt(),Z(d9)),{parseUrl:r5t,getHttpHandlerExtensionConfiguration:n5t,resolveHttpHandlerRuntimeConfig:s5t,getContentLengthPlugin:o5t}=(Re(),Z(ph)),{DEFAULT_RETRY_MODE:i5t,NODE_RETRY_MODE_CONFIG_OPTIONS:a5t,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:c5t,resolveRetryConfig:l5t,getRetryPlugin:u5t}=(jo(),Z(PK)),{TypeRegistry:k8e,getSchemaSerdePlugin:d5t}=(He(),Z(H5)),{resolveAwsSdkSigV4Config:p5t,AwsSdkSigV4Signer:f5t,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:m5t}=(ts(),Z(yO)),{defaultProvider:h5t}=lte(),{toUtf8:A5t,fromUtf8:g5t,toBase64:y5t,fromBase64:E5t,calculateBodyLength:C5t}=(xe(),Z(ah)),{streamCollector:I5t,NodeHttpHandler:S5t}=Wu(),{AwsJson1_1Protocol:w5t}=(Th(),Z(YZ)),{Sha256:x5t}=(qu(),Z(O9)),b5t=i(async(t,e,r)=>({operation:Djt(e).operation,region:await Q8e(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function B5t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(B5t,"createAwsAuthSigv4HttpAuthOption");var R5t=i(t=>{let e=[];switch(t.operation){default:e.push(B5t(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),N5t=i(t=>{let e=p5t(t);return Object.assign(e,{authSchemePreference:Q8e(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),T5t=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),P5t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_5t="3.1163.0",v5t={version:_5t},X0="ref",Kh=-1,oU=!0,T8e="isSet",O8e="PartitionResult",iU="booleanEquals",vte="getAttr",P8e={[X0]:"Endpoint"},Qte={[X0]:O8e},LC={},_8e=[{[X0]:"Region"}],v8e={conditions:[[T8e,[P8e]],[T8e,_8e],["aws.partition",_8e,O8e],[iU,[{[X0]:"UseFIPS"},oU]],[iU,[{[X0]:"UseDualStack"},oU]],[iU,[{fn:vte,argv:[Qte,"supportsDualStack"]},oU]],[iU,[{fn:vte,argv:[Qte,"supportsFIPS"]},oU]],["stringEquals",[{fn:vte,argv:[Qte,"name"]},"aws"]]],results:[[Kh],[Kh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Kh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[P8e,LC],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",LC],[Kh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",LC],[Kh,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",LC],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",LC],[Kh,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",LC],[Kh,"Invalid Configuration: Missing Region"]]},Q5t=2,fo=1e8,D5t=new Int32Array([-1,1,-1,0,13,3,1,4,fo+12,2,5,fo+12,3,9,6,4,7,fo+11,5,8,fo+10,7,fo+8,fo+9,4,11,10,6,fo+6,fo+7,5,12,fo+5,6,fo+4,fo+5,3,fo+1,14,4,fo+2,fo+3]),k5t=jjt.from(D5t,Q5t,v8e.conditions,v8e.results),O5t=new Kjt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),L5t=i((t,e={})=>O5t.get(t,()=>Xjt(k5t,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Zjt.aws=yjt;var Bt=class t extends kjt{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},aU=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)}},cU=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)}},lU=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)}},uU=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)}},dU=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)}},pU=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)}},fU=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)}},mU=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)}},hU=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)}},AU=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)}},gU=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)}},yU=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)}},EU=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)}},CU=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)}},IU=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)}},SU=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)}},wU=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)}},xU=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)}},bU=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)}},BU=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)}},RU=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)}},NU=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}},TU=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)}},PU=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)}},M5t="AuthorizationData",F5t="BatchCheckLayerAvailability",U5t="BatchCheckLayerAvailabilityRequest",q5t="BatchCheckLayerAvailabilityResponse",$5t="BatchDeleteImage",G5t="BatchDeleteImageRequest",H5t="BatchDeleteImageResponse",z5t="CompleteLayerUpload",V5t="CompleteLayerUploadRequest",W5t="CompleteLayerUploadResponse",J5t="CreateRepository",Y5t="CreateRepositoryRequest",j5t="CreateRepositoryResponse",K5t="DescribeImages",X5t="DescribeImagesRequest",Z5t="DescribeImagesResponse",e6t="DescribeImageTags",t6t="DescribeImageTagsRequest",r6t="DescribeImageTagsResponse",n6t="DeleteRepository",s6t="DeleteRepositoryPolicy",o6t="DeleteRepositoryPolicyRequest",i6t="DeleteRepositoryPolicyResponse",a6t="DeleteRepositoryRequest",c6t="DeleteRepositoryResponse",l6t="DescribeRegistriesRequest",u6t="DescribeRegistriesResponse",d6t="DescribeRepositoriesRequest",p6t="DescribeRepositoriesResponse",f6t="DescribeRegistries",m6t="DescribeRepositories",h6t="EmptyUploadException",A6t="GetAuthorizationToken",g6t="GetAuthorizationTokenRequest",y6t="GetAuthorizationTokenResponse",E6t="GetRegistryCatalogData",C6t="GetRegistryCatalogDataRequest",I6t="GetRegistryCatalogDataResponse",S6t="GetRepositoryCatalogDataRequest",w6t="GetRepositoryCatalogDataResponse",x6t="GetRepositoryCatalogData",b6t="GetRepositoryPolicy",B6t="GetRepositoryPolicyRequest",R6t="GetRepositoryPolicyResponse",N6t="Image",T6t="ImageAlreadyExistsException",P6t="ImageDetail",_6t="ImageDigestDoesNotMatchException",v6t="ImageDetailList",Q6t="ImageFailure",D6t="ImageFailureList",k6t="ImageIdentifier",O6t="ImageIdentifierList",L6t="InvalidLayerException",M6t="InvalidLayerPartException",F6t="InitiateLayerUpload",U6t="InitiateLayerUploadRequest",q6t="InitiateLayerUploadResponse",$6t="ImageNotFoundException",G6t="InvalidParameterException",H6t="ImageTagAlreadyExistsException",z6t="ImageTagDetail",V6t="ImageTagDetailList",W6t="InvalidTagParameterException",J6t="Key",Y6t="Layer",j6t="LayerAlreadyExistsException",K6t="LimitExceededException",X6t="LayerFailure",Z6t="LayerFailureList",e9t="LayerList",t9t="LayersNotFoundException",r9t="LayerPartTooSmallException",n9t="ListTagsForResource",s9t="ListTagsForResourceRequest",o9t="ListTagsForResourceResponse",i9t="PutImage",a9t="PutImageRequest",c9t="PutImageResponse",l9t="PutRegistryCatalogData",u9t="PutRegistryCatalogDataRequest",d9t="PutRegistryCatalogDataResponse",p9t="PutRepositoryCatalogDataRequest",f9t="PutRepositoryCatalogDataResponse",m9t="PutRepositoryCatalogData",h9t="Registry",A9t="RegistryAlias",g9t="RepositoryAlreadyExistsException",y9t="RegistryAliasList",E9t="RegistryCatalogData",C9t="RepositoryCatalogDataInput",I9t="RepositoryCatalogDataNotFoundException",S9t="RepositoryCatalogData",w9t="ReferencedImageDetail",x9t="ReferencedImagesNotFoundException",b9t="RegistryList",B9t="RepositoryList",R9t="RepositoryNotEmptyException",N9t="RegistryNotFoundException",T9t="RepositoryNotFoundException",P9t="RepositoryPolicyNotFoundException",_9t="Repository",v9t="ServerException",Q9t="SetRepositoryPolicy",D9t="SetRepositoryPolicyRequest",k9t="SetRepositoryPolicyResponse",O9t="Tag",L9t="TagList",M9t="TooManyTagsException",F9t="TagResource",U9t="TagResourceRequest",q9t="TagResourceResponse",$9t="UnsupportedCommandException",G9t="UploadLayerPart",H9t="UploadLayerPartRequest",z9t="UploadLayerPartResponse",V9t="UploadNotFoundException",W9t="UntagResource",J9t="UntagResourceRequest",Y9t="UntagResourceResponse",j9t="Value",K9t="aliases",X9t="authorizationData",L8e="artifactMediaType",Z9t="authorizationToken",M8e="aboutText",F8e="architectures",sr="client",U8e="createdAt",nB="catalogData",q8e="description",$8e="displayName",eKt="defaultRegistryAlias",Xt="error",tKt="expiresAt",G8e="failures",H8e="failureCode",z8e="failureReason",V8e="force",rKt="image",nKt="imageDetails",XU="imageDigest",sKt="imageDetail",Dte="imageIds",W8e="imageId",J8e="imageManifest",ZU="imageManifestMediaType",Y8e="imagePushedAt",j8e="imageSizeInBytes",oKt="imageTags",iKt="imageTagDetails",kte="imageTag",aKt="layers",cKt="layerAvailability",lKt="lastByteReceived",K8e="layerDigests",Ote="layerDigest",uKt="logoImageBlob",dKt="layerPartBlob",pKt="layerSize",fKt="logoUrl",mKt="lastValidByteReceived",Zt="message",hKt="marketplaceCertified",e2="maxResults",AKt="mediaType",gKt="name",df="nextToken",X8e="operatingSystems",yKt="partFirstByte",EKt="partLastByte",CKt="primaryRegistryAlias",IKt="partSize",t2="policyText",Z8e="repository",Lte="resourceArn",SKt="registryArn",wKt="repositoryArn",eJe="registryCatalogData",$t="registryId",er="repositoryName",xKt="repositoryNames",bKt="registryUri",BKt="repositoryUri",RKt="registries",NKt="repositories",tJe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",TKt="server",PKt="status",Mte="tags",_Kt="tagKeys",MC="uploadId",rJe="usageText",vKt="verified",P="com.amazonaws.ecrpublic",nJe=new k8e(tJe),sJe=[-3,tJe,"ECRPUBLICServiceException",0,[],[]];nJe.registerError(sJe,Bt);var Gt=new k8e(P),oJe=[-3,P,h6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(oJe,pU);var iJe=[-3,P,T6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(iJe,bU);var aJe=[-3,P,_6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(aJe,BU);var cJe=[-3,P,$6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(cJe,wU);var lJe=[-3,P,H6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(lJe,RU);var uJe=[-3,P,L6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(uJe,fU);var dJe=[-3,P,M6t,{[Xt]:sr},[$t,er,MC,mKt,Zt],[0,0,0,1,0]];Gt.registerError(dJe,NU);var pJe=[-3,P,G6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(pJe,aU);var fJe=[-3,P,W6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(fJe,gU);var mJe=[-3,P,j6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(mJe,mU);var hJe=[-3,P,r9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(hJe,hU);var AJe=[-3,P,t9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(AJe,TU);var gJe=[-3,P,K6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(gJe,yU);var yJe=[-3,P,x9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(yJe,PU);var EJe=[-3,P,N9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(EJe,cU);var CJe=[-3,P,g9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(CJe,EU);var IJe=[-3,P,I9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(IJe,xU);var SJe=[-3,P,R9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(SJe,IU);var wJe=[-3,P,T9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(wJe,lU);var xJe=[-3,P,P9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(xJe,SU);var bJe=[-3,P,v9t,{[Xt]:TKt},[Zt],[0]];Gt.registerError(bJe,uU);var BJe=[-3,P,M9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(BJe,CU);var RJe=[-3,P,$9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(RJe,dU);var NJe=[-3,P,V9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(NJe,AU);var TJe=[nJe,Gt],PJe=[3,P,M5t,0,[Z9t,tKt],[0,4]],_Je=[3,P,U5t,0,[er,K8e,$t],[0,64,0],2],vJe=[3,P,q5t,0,[aKt,G8e],[()=>LKt,()=>OKt]],QJe=[3,P,G5t,0,[er,Dte,$t],[0,()=>qte,0],2],DJe=[3,P,H5t,0,[Dte,G8e],[()=>qte,()=>DKt]],kJe=[3,P,V5t,0,[er,MC,K8e,$t],[0,0,64,0],3],OJe=[3,P,W5t,0,[$t,er,MC,Ote],[0,0,0,0]],LJe=[3,P,Y5t,0,[er,nB,Mte],[0,()=>Ute,()=>$te],1],MJe=[3,P,j5t,0,[Z8e,nB],[()=>n2,()=>s2]],FJe=[3,P,o6t,0,[er,$t],[0,0],1],UJe=[3,P,i6t,0,[$t,er,t2],[0,0,0]],qJe=[3,P,a6t,0,[er,$t,V8e],[0,0,2],1],$Je=[3,P,c6t,0,[Z8e],[()=>n2]],GJe=[3,P,X5t,0,[er,$t,Dte,df,e2],[0,0,()=>qte,0,1],1],HJe=[3,P,Z5t,0,[nKt,df],[()=>QKt,0]],zJe=[3,P,t6t,0,[er,$t,df,e2],[0,0,0,1],1],VJe=[3,P,r6t,0,[iKt,df],[()=>kKt,0]],WJe=[3,P,l6t,0,[df,e2],[0,1]],JJe=[3,P,u6t,0,[RKt,df],[()=>FKt,0],1],YJe=[3,P,d6t,0,[$t,xKt,df,e2],[0,64,0,1]],jJe=[3,P,p6t,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()=>tYe,()=>rYe],VYe=[9,P,b6t,0,()=>nYe,()=>sYe],WYe=[9,P,F6t,0,()=>lYe,()=>uYe],JYe=[9,P,n9t,0,()=>fYe,()=>mYe],YYe=[9,P,i9t,0,()=>hYe,()=>AYe],jYe=[9,P,l9t,0,()=>gYe,()=>yYe],KYe=[9,P,m9t,0,()=>EYe,()=>CYe],XYe=[9,P,Q9t,0,()=>xYe,()=>bYe],ZYe=[9,P,F9t,0,()=>RYe,()=>NYe],eje=[9,P,W9t,0,()=>TYe,()=>PYe],tje=[9,P,G9t,0,()=>_Ye,()=>vYe],qKt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??E5t,base64Encoder:t?.base64Encoder??y5t,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??L5t,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??R5t,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new f5t}],logger:t?.logger??new Ojt,protocol:t?.protocol??w5t,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:TJe,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??x5t,urlParser:t?.urlParser??r5t,utf8Decoder:t?.utf8Decoder??g5t,utf8Encoder:t?.utf8Encoder??A5t}),"getRuntimeConfig$1"),$Kt=i(t=>{Ljt(process.version);let e=Hjt(t),r=i(()=>e().then(Mjt),"defaultConfigProvider"),n=qKt(t);Ejt(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??jh(m5t,s),bodyLengthChecker:t?.bodyLengthChecker??C5t,credentialDefaultProvider:t?.credentialDefaultProvider??h5t,defaultSocketTimeout:Ijt(t?.requestHandler,3e5),defaultUserAgentProvider:t?.defaultUserAgentProvider??Cjt({serviceId:n.serviceId,clientVersion:v5t.version}),maxAttempts:t?.maxAttempts??jh(c5t,t),region:t?.region??jh(Wjt,{...Jjt,...s}),requestHandler:S5t.create(t?.requestHandler??r),retryMode:t?.retryMode??jh({...a5t,default:i(async()=>(await r()).retryMode||i5t,"default")},t),streamCollector:t?.streamCollector??I5t,useDualstackEndpoint:t?.useDualstackEndpoint??jh(Vjt,s),useFipsEndpoint:t?.useFipsEndpoint??jh(zjt,s),userAgentAppId:t?.userAgentAppId??jh(Sjt,s)}},"getRuntimeConfig"),GKt=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"),HKt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),zKt=i((t,e)=>{let r=Object.assign(wjt(t),Fjt(t),n5t(t),GKt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,xjt(r),Ujt(r),s5t(r),HKt(r))},"resolveRuntimeExtensions"),uf=class extends D8e{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=$Kt(e||{});super(r),this.initConfig=r;let n=T5t(r),s=bjt(n),o=l5t(s),a=Yjt(o),c=Bjt(a),l=e5t(c),u=N5t(l),d=zKt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(d5t(this.config)),this.middlewareStack.use(Rjt(this.config)),this.middlewareStack.use(u5t(this.config)),this.middlewareStack.use(o5t(this.config)),this.middlewareStack.use(Njt(this.config)),this.middlewareStack.use(Tjt(this.config)),this.middlewareStack.use(Pjt(this.config)),this.middlewareStack.use(_jt(this.config,{httpAuthSchemeParametersProvider:b5t,identityProviderConfigProvider:i(async p=>new vjt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Qjt(this.config))}destroy(){super.destroy()}},or=qjt(P5t,"SpencerFrontendService","ECRPUBLICClient",t5t),ir={},ar=i((t,e,r,n)=>[],"_mw0"),_U=class extends or(ir,ar,"BatchCheckLayerAvailability",QYe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},vU=class extends or(ir,ar,"BatchDeleteImage",DYe){static{i(this,"BatchDeleteImageCommand")}},QU=class extends or(ir,ar,"CompleteLayerUpload",kYe){static{i(this,"CompleteLayerUploadCommand")}},DU=class extends or(ir,ar,"CreateRepository",OYe){static{i(this,"CreateRepositoryCommand")}},kU=class extends or(ir,ar,"DeleteRepository",LYe){static{i(this,"DeleteRepositoryCommand")}},OU=class extends or(ir,ar,"DeleteRepositoryPolicy",MYe){static{i(this,"DeleteRepositoryPolicyCommand")}},Z0=class extends or(ir,ar,"DescribeImages",FYe){static{i(this,"DescribeImagesCommand")}},eB=class extends or(ir,ar,"DescribeImageTags",UYe){static{i(this,"DescribeImageTagsCommand")}},tB=class extends or(ir,ar,"DescribeRegistries",qYe){static{i(this,"DescribeRegistriesCommand")}},rB=class extends or(ir,ar,"DescribeRepositories",$Ye){static{i(this,"DescribeRepositoriesCommand")}},LU=class extends or(ir,ar,"GetAuthorizationToken",GYe){static{i(this,"GetAuthorizationTokenCommand")}},MU=class extends or(ir,ar,"GetRegistryCatalogData",HYe){static{i(this,"GetRegistryCatalogDataCommand")}},FU=class extends or(ir,ar,"GetRepositoryCatalogData",zYe){static{i(this,"GetRepositoryCatalogDataCommand")}},UU=class extends or(ir,ar,"GetRepositoryPolicy",VYe){static{i(this,"GetRepositoryPolicyCommand")}},qU=class extends or(ir,ar,"InitiateLayerUpload",WYe){static{i(this,"InitiateLayerUploadCommand")}},$U=class extends or(ir,ar,"ListTagsForResource",JYe){static{i(this,"ListTagsForResourceCommand")}},GU=class extends or(ir,ar,"PutImage",YYe){static{i(this,"PutImageCommand")}},HU=class extends or(ir,ar,"PutRegistryCatalogData",jYe){static{i(this,"PutRegistryCatalogDataCommand")}},zU=class extends or(ir,ar,"PutRepositoryCatalogData",KYe){static{i(this,"PutRepositoryCatalogDataCommand")}},VU=class extends or(ir,ar,"SetRepositoryPolicy",XYe){static{i(this,"SetRepositoryPolicyCommand")}},WU=class extends or(ir,ar,"TagResource",ZYe){static{i(this,"TagResourceCommand")}},JU=class extends or(ir,ar,"UntagResource",eje){static{i(this,"UntagResourceCommand")}},YU=class extends or(ir,ar,"UploadLayerPart",tje){static{i(this,"UploadLayerPartCommand")}},rje=KU(uf,Z0,"nextToken","nextToken","maxResults"),nje=KU(uf,eB,"nextToken","nextToken","maxResults"),sje=KU(uf,tB,"nextToken","nextToken","maxResults"),oje=KU(uf,rB,"nextToken","nextToken","maxResults"),VKt={BatchCheckLayerAvailabilityCommand:_U,BatchDeleteImageCommand:vU,CompleteLayerUploadCommand:QU,CreateRepositoryCommand:DU,DeleteRepositoryCommand:kU,DeleteRepositoryPolicyCommand:OU,DescribeImagesCommand:Z0,DescribeImageTagsCommand:eB,DescribeRegistriesCommand:tB,DescribeRepositoriesCommand:rB,GetAuthorizationTokenCommand:LU,GetRegistryCatalogDataCommand:MU,GetRepositoryCatalogDataCommand:FU,GetRepositoryPolicyCommand:UU,InitiateLayerUploadCommand:qU,ListTagsForResourceCommand:$U,PutImageCommand:GU,PutRegistryCatalogDataCommand:HU,PutRepositoryCatalogDataCommand:zU,SetRepositoryPolicyCommand:VU,TagResourceCommand:WU,UntagResourceCommand:JU,UploadLayerPartCommand:YU},WKt={paginateDescribeImages:rje,paginateDescribeImageTags:nje,paginateDescribeRegistries:sje,paginateDescribeRepositories:oje},jU=class extends uf{static{i(this,"ECRPUBLIC")}};$jt(VKt,jU,{paginators:WKt});var JKt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},YKt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},jKt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},KKt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=PJe;B.BatchCheckLayerAvailability$=QYe;B.BatchCheckLayerAvailabilityCommand=_U;B.BatchCheckLayerAvailabilityRequest$=_Je;B.BatchCheckLayerAvailabilityResponse$=vJe;B.BatchDeleteImage$=DYe;B.BatchDeleteImageCommand=vU;B.BatchDeleteImageRequest$=QJe;B.BatchDeleteImageResponse$=DJe;B.CompleteLayerUpload$=kYe;B.CompleteLayerUploadCommand=QU;B.CompleteLayerUploadRequest$=kJe;B.CompleteLayerUploadResponse$=OJe;B.CreateRepository$=OYe;B.CreateRepositoryCommand=DU;B.CreateRepositoryRequest$=LJe;B.CreateRepositoryResponse$=MJe;B.DeleteRepository$=LYe;B.DeleteRepositoryCommand=kU;B.DeleteRepositoryPolicy$=MYe;B.DeleteRepositoryPolicyCommand=OU;B.DeleteRepositoryPolicyRequest$=FJe;B.DeleteRepositoryPolicyResponse$=UJe;B.DeleteRepositoryRequest$=qJe;B.DeleteRepositoryResponse$=$Je;B.DescribeImageTags$=UYe;B.DescribeImageTagsCommand=eB;B.DescribeImageTagsRequest$=zJe;B.DescribeImageTagsResponse$=VJe;B.DescribeImages$=FYe;B.DescribeImagesCommand=Z0;B.DescribeImagesRequest$=GJe;B.DescribeImagesResponse$=HJe;B.DescribeRegistries$=qYe;B.DescribeRegistriesCommand=tB;B.DescribeRegistriesRequest$=WJe;B.DescribeRegistriesResponse$=JJe;B.DescribeRepositories$=$Ye;B.DescribeRepositoriesCommand=rB;B.DescribeRepositoriesRequest$=YJe;B.DescribeRepositoriesResponse$=jJe;B.ECRPUBLIC=jU;B.ECRPUBLICClient=uf;B.ECRPUBLICServiceException=Bt;B.ECRPUBLICServiceException$=sJe;B.EmptyUploadException=pU;B.EmptyUploadException$=oJe;B.GetAuthorizationToken$=GYe;B.GetAuthorizationTokenCommand=LU;B.GetAuthorizationTokenRequest$=KJe;B.GetAuthorizationTokenResponse$=XJe;B.GetRegistryCatalogData$=HYe;B.GetRegistryCatalogDataCommand=MU;B.GetRegistryCatalogDataRequest$=ZJe;B.GetRegistryCatalogDataResponse$=eYe;B.GetRepositoryCatalogData$=zYe;B.GetRepositoryCatalogDataCommand=FU;B.GetRepositoryCatalogDataRequest$=tYe;B.GetRepositoryCatalogDataResponse$=rYe;B.GetRepositoryPolicy$=VYe;B.GetRepositoryPolicyCommand=UU;B.GetRepositoryPolicyRequest$=nYe;B.GetRepositoryPolicyResponse$=sYe;B.Image$=oYe;B.ImageAlreadyExistsException=bU;B.ImageAlreadyExistsException$=iJe;B.ImageDetail$=iYe;B.ImageDigestDoesNotMatchException=BU;B.ImageDigestDoesNotMatchException$=aJe;B.ImageFailure$=aYe;B.ImageFailureCode=jKt;B.ImageIdentifier$=r2;B.ImageNotFoundException=wU;B.ImageNotFoundException$=cJe;B.ImageTagAlreadyExistsException=RU;B.ImageTagAlreadyExistsException$=lJe;B.ImageTagDetail$=cYe;B.InitiateLayerUpload$=WYe;B.InitiateLayerUploadCommand=qU;B.InitiateLayerUploadRequest$=lYe;B.InitiateLayerUploadResponse$=uYe;B.InvalidLayerException=fU;B.InvalidLayerException$=uJe;B.InvalidLayerPartException=NU;B.InvalidLayerPartException$=dJe;B.InvalidParameterException=aU;B.InvalidParameterException$=pJe;B.InvalidTagParameterException=gU;B.InvalidTagParameterException$=fJe;B.Layer$=dYe;B.LayerAlreadyExistsException=mU;B.LayerAlreadyExistsException$=mJe;B.LayerAvailability=YKt;B.LayerFailure$=pYe;B.LayerFailureCode=JKt;B.LayerPartTooSmallException=hU;B.LayerPartTooSmallException$=hJe;B.LayersNotFoundException=TU;B.LayersNotFoundException$=AJe;B.LimitExceededException=yU;B.LimitExceededException$=gJe;B.ListTagsForResource$=JYe;B.ListTagsForResourceCommand=$U;B.ListTagsForResourceRequest$=fYe;B.ListTagsForResourceResponse$=mYe;B.PutImage$=YYe;B.PutImageCommand=GU;B.PutImageRequest$=hYe;B.PutImageResponse$=AYe;B.PutRegistryCatalogData$=jYe;B.PutRegistryCatalogDataCommand=HU;B.PutRegistryCatalogDataRequest$=gYe;B.PutRegistryCatalogDataResponse$=yYe;B.PutRepositoryCatalogData$=KYe;B.PutRepositoryCatalogDataCommand=zU;B.PutRepositoryCatalogDataRequest$=EYe;B.PutRepositoryCatalogDataResponse$=CYe;B.ReferencedImageDetail$=IYe;B.ReferencedImagesNotFoundException=PU;B.ReferencedImagesNotFoundException$=yJe;B.Registry$=SYe;B.RegistryAlias$=wYe;B.RegistryAliasStatus=KKt;B.RegistryCatalogData$=Fte;B.RegistryNotFoundException=cU;B.RegistryNotFoundException$=EJe;B.Repository$=n2;B.RepositoryAlreadyExistsException=EU;B.RepositoryAlreadyExistsException$=CJe;B.RepositoryCatalogData$=s2;B.RepositoryCatalogDataInput$=Ute;B.RepositoryCatalogDataNotFoundException=xU;B.RepositoryCatalogDataNotFoundException$=IJe;B.RepositoryNotEmptyException=IU;B.RepositoryNotEmptyException$=SJe;B.RepositoryNotFoundException=lU;B.RepositoryNotFoundException$=wJe;B.RepositoryPolicyNotFoundException=SU;B.RepositoryPolicyNotFoundException$=xJe;B.ServerException=uU;B.ServerException$=bJe;B.SetRepositoryPolicy$=XYe;B.SetRepositoryPolicyCommand=VU;B.SetRepositoryPolicyRequest$=xYe;B.SetRepositoryPolicyResponse$=bYe;B.Tag$=BYe;B.TagResource$=ZYe;B.TagResourceCommand=WU;B.TagResourceRequest$=RYe;B.TagResourceResponse$=NYe;B.TooManyTagsException=CU;B.TooManyTagsException$=BJe;B.UnsupportedCommandException=dU;B.UnsupportedCommandException$=RJe;B.UntagResource$=eje;B.UntagResourceCommand=JU;B.UntagResourceRequest$=TYe;B.UntagResourceResponse$=PYe;B.UploadLayerPart$=tje;B.UploadLayerPartCommand=YU;B.UploadLayerPartRequest$=_Ye;B.UploadLayerPartResponse$=vYe;B.UploadNotFoundException=AU;B.UploadNotFoundException$=NJe;B.errorTypeRegistries=TJe;B.paginateDescribeImageTags=nje;B.paginateDescribeImages=rje;B.paginateDescribeRegistries=sje;B.paginateDescribeRepositories=oje});var gXt={};cr(gXt,{main:()=>Mje});module.exports=Z(gXt);var Zte=R(require("os"),1);function Zu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Zu,"toCommandValue");function d2(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(d2,"toCommandProperties");function mf(t,e,r){let n=new p2(t,e,r);process.stdout.write(n.toString()+Zte.EOL)}i(mf,"issueCommand");function f2(t,e=""){mf(t,{},e)}i(f2,"issue");var Xte="::",p2=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=Xte+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}=${zje(s)}`)}}return e+=`${Xte}${Hje(this.message)}`,e}};function Hje(t){return Zu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Hje,"escapeData");function zje(t){return Zu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(zje,"escapeProperty");var ere=R(require("crypto"),1),uB=R(require("fs"),1),lB=R(require("os"),1);function tre(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!uB.existsSync(r))throw new Error(`Missing file at path: ${r}`);uB.appendFileSync(r,`${Zu(e)}${lB.EOL}`,{encoding:"utf8"})}i(tre,"issueFileCommand");function rre(t,e){let r=`ghadelimiter_${ere.randomUUID()}`,n=Zu(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}${lB.EOL}${n}${lB.EOL}${r}`}i(rre,"prepareKeyValueMessage");var ede=R(require("os"),1);var zI=R(require("http"),1),zG=R(require("https"),1);function m2(t){let e=t.protocol==="https:";if(Vje(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 dB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new dB(`http://${r}`)}else return}i(m2,"getProxyUrl");function Vje(t){if(!t.hostname)return!1;let e=t.hostname;if(Wje(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(Vje,"checkBypass");function Wje(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(Wje,"isLoopbackAddress");var dB=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 yd=R(eA(),1),vue=R(Gf(),1);var br=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())})},ii;(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"})(ii||(ii={}));var cs;(function(t){t.Accept="accept",t.ContentType="content-type"})(cs||(cs={}));var cu;(function(t){t.ApplicationJson="application/json"})(cu||(cu={}));var xit=[ii.MovedPermanently,ii.ResourceMoved,ii.SeeOther,ii.TemporaryRedirect,ii.PermanentRedirect],bit=[ii.BadGateway,ii.ServiceUnavailable,ii.GatewayTimeout],Bit=["OPTIONS","GET","DELETE","HEAD"],Rit=10,Nit=5,GG=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},HG=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return br(this,void 0,void 0,function*(){return new Promise(e=>br(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 br(this,void 0,void 0,function*(){return new Promise(e=>br(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 cN=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 br(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return br(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return br(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return br(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return br(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return br(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return br(this,arguments,void 0,function*(r,n={}){n[cs.Accept]=this._getExistingOrDefaultHeader(n,cs.Accept,cu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,cu.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,cu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,cu.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,cu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[cs.Accept]=this._getExistingOrDefaultHeader(o,cs.Accept,cu.ApplicationJson),o[cs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,cu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return br(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&&Bit.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ii.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&&xit.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||!bit.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 HG(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=m2(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?zG:zI;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({},HI(this.requestOptions.headers),HI(e||{})):HI(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=HI(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=HI(this.requestOptions.headers)[cs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[cs.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=m2(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||zI.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?yd.httpsOverHttps:yd.httpsOverHttp:l=u?yd.httpOverHttps:yd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new zG.Agent(c):new zI.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 vue.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 br(this,void 0,void 0,function*(){e=Math.min(Rit,e);let r=Nit*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return br(this,void 0,void 0,function*(){return new Promise((n,s)=>br(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===ii.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 GG(d,o);p.result=a.result,s(p)}else n(a)}))})}},HI=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Tit=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 lN=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 Tit(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Que=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())})},uN=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new cN("actions/oidc-client",[new lN(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 Que(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 vue(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 qn(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var Due=require("os"),zI=require("fs");var zG=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:Nit,appendFile:Tit,writeFile:Pit}=zI.promises,Que="GITHUB_STEP_SUMMARY";var VG=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return zG(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Que];if(!e)throw new Error(`Unable to find environment variable for $${Que}. Check if your runtime environment supports job summaries.`);try{yield Nit(e,zI.constants.R_OK|zI.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 zG(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Pit:Tit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return zG(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(Due.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()}},ntr=new VG;var tH=R(require("os"),1);var eH=require("string_decoder");var JI=R(require("os"),1),ZG=R(require("events"),1),Wue=R(require("child_process"),1),Jue=R(require("path"),1);var $ue=require("assert"),bo=R(require("path"),1);var VI=R(require("fs"),1),yd=R(require("path"),1);var WG=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:JG,copyFile:Oue,lstat:uN,mkdir:Lue,open:ctr,readdir:YG,rename:_it,rm:Mue,rmdir:ltr,stat:Gf,symlink:Fue,unlink:jG}=VI.promises,cc=process.platform==="win32";function Uue(t){return WG(this,void 0,void 0,function*(){let e=yield VI.promises.readlink(t);return cc&&!e.endsWith("\\")?`${e}\\`:e})}i(Uue,"readlink");var utr=VI.constants.O_RDONLY;function YA(t){return WG(this,void 0,void 0,function*(){try{yield Gf(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(YA,"exists");function dN(t){if(t=vit(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return cc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(dN,"isRooted");function KG(t,e){return WG(this,void 0,void 0,function*(){let r;try{r=yield Gf(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(cc){let s=yd.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(kue(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield Gf(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(cc){try{let o=yd.dirname(t),a=yd.basename(t).toUpperCase();for(let c of yield YG(o))if(a===c.toUpperCase()){t=yd.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(kue(r))return t}}return""})}i(KG,"tryGetExecutablePath");function vit(t){return t=t||"",cc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(vit,"normalizeSeparators");function kue(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(kue,"isUnixExecutable");var Hf=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 Gue(t,e){return Hf(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=Dit(s),l=(yield YA(n))?yield Gf(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?bo.join(n,bo.basename(r)):n;if(!(yield YA(r)))throw new Error(`no such file or directory: ${r}`);if((yield Gf(r)).isDirectory())if(a)yield Hue(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(bo.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield zue(r,u,o)}})}i(Gue,"cp");function WI(t){return Hf(this,void 0,void 0,function*(){if(cc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Mue(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(WI,"rmRF");function zf(t){return Hf(this,void 0,void 0,function*(){(0,$ue.ok)(t,"a path argument must be provided"),yield Lue(t,{recursive:!0})})}i(zf,"mkdirP");function Ls(t,e){return Hf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Ls(t,!1);if(!n)throw cc?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 Qit(t);return r&&r.length>0?r[0]:""})}i(Ls,"which");function Qit(t){return Hf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(cc&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(bo.delimiter))s&&e.push(s);if(dN(t)){let s=yield KG(t,e);return s?[s]:[]}if(t.includes(bo.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(bo.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield KG(bo.join(s,t),e);o&&n.push(o)}return n})}i(Qit,"findInPath");function Dit(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(Dit,"readCopyOptions");function Hue(t,e,r,n){return Hf(this,void 0,void 0,function*(){if(r>=255)return;r++,yield zf(e);let s=yield YG(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield uN(a)).isDirectory()?yield Hue(a,c,r,n):yield zue(a,c,n)}yield JG(e,(yield Gf(t)).mode)})}i(Hue,"cpDirRecursive");function zue(t,e,r){return Hf(this,void 0,void 0,function*(){if((yield uN(t)).isSymbolicLink()){try{yield uN(e),yield jG(e)}catch(s){s.code==="EPERM"&&(yield JG(e,"0666"),yield jG(e))}let n=yield Uue(t);yield Fue(n,e,cc?"junction":null)}else(!(yield YA(e))||r)&&(yield Oue(t,e))})}i(zue,"copyFile");var Yue=require("timers");var Vue=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())})},pN=process.platform==="win32",fN=class extends ZG.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(pN)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(JI.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+JI.EOL.length),o=s.indexOf(JI.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return pN&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(pN&&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 Vue(this,void 0,void 0,function*(){return!dN(this.toolPath)&&(this.toolPath.includes("/")||pN&&this.toolPath.includes("\\"))&&(this.toolPath=Jue.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Ls(this.toolPath,!0),new Promise((e,r)=>Vue(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)+JI.EOL);let s=new XG(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield YA(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=Wue.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 jue(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(jue,"argStringToArray");var XG=class t extends ZG.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,Yue.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 Kue=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 Ed(t,e,r){return Kue(this,void 0,void 0,function*(){let n=jue(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 fN(s,e,r).exec()})}i(Ed,"exec");function YI(t,e,r){return Kue(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new eH.StringDecoder("utf8"),l=new eH.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(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),f=i(A=>{o+=c.write(A),u&&u(A)},"stdOutListener"),m=Object.assign(Object.assign({},r?.listeners),{stdout:f,stderr:p}),h=yield Ed(t,e,Object.assign(Object.assign({},r),{listeners:m}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}})}i(YI,"getExecOutput");var Atr=tH.default.platform(),gtr=tH.default.arch();var Xue=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())})},rH;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(rH||(rH={}));function qn(t){ff("add-mask",{},t)}i(qn,"setSecret");function aa(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(aa,"getInput");function ede(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=aa(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(ede,"getBooleanInput");function tde(t){process.exitCode=rH.Failure,KA(t)}i(tde,"setFailed");function Vf(){return process.env.RUNNER_DEBUG==="1"}i(Vf,"isDebug");function T(t){ff("debug",{},t)}i(T,"debug");function KA(t,e={}){ff("error",u2(e),t instanceof Error?t.toString():t)}i(KA,"error");function ur(t,e={}){ff("warning",u2(e),t instanceof Error?t.toString():t)}i(ur,"warning");function ae(t){process.stdout.write(t+Zue.EOL)}i(ae,"info");function Lit(t){p2("group",t)}i(Lit,"startGroup");function Mit(){p2("endgroup")}i(Mit,"endGroup");function KI(t,e){return Xue(this,void 0,void 0,function*(){Lit(t);let r;try{r=yield e()}finally{Mit()}return r})}i(KI,"group");function Wf(t,e){if(process.env.GITHUB_STATE||"")return ere("STATE",tre(t,e));ff("save-state",{name:t},Xu(e))}i(Wf,"saveState");function rde(t){return process.env[`STATE_${t}`]||""}i(rde,"getState");function nde(t){return Xue(this,void 0,void 0,function*(){return yield lN.getIDToken(t)})}i(nde,"getIDToken");var Gw=R(require("fs"),1),aY=R(require("os"),1),cY=R(require("path"),1);var ode=R(require("os"),1);function XI(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(XI,"toCommandValue");function ide(t,e,r){let n=new nH(t,e,r);process.stdout.write(n.toString()+ode.EOL)}i(ide,"issueCommand");var sde="::",nH=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=sde+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}=${Uit(s)}`)}}return e+=`${sde}${Fit(this.message)}`,e}};function Fit(t){return XI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Fit,"escapeData");function Uit(t){return XI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Uit,"escapeProperty");var mN=R(Zh(),1),$it=R($f(),1);var lc;(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"})(lc||(lc={}));var ade;(function(t){t.Accept="accept",t.ContentType="content-type"})(ade||(ade={}));var cde;(function(t){t.ApplicationJson="application/json"})(cde||(cde={}));var $tr=[lc.MovedPermanently,lc.ResourceMoved,lc.SeeOther,lc.TemporaryRedirect,lc.PermanentRedirect],Gtr=[lc.BadGateway,lc.ServiceUnavailable,lc.GatewayTimeout];var ude=require("os"),ZI=require("fs");var sH=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:zit,appendFile:Vit,writeFile:Wit}=ZI.promises,lde="GITHUB_STEP_SUMMARY";var oH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return sH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[lde];if(!e)throw new Error(`Unable to find environment variable for $${lde}. Check if your runtime environment supports job summaries.`);try{yield zit(e,ZI.constants.R_OK|ZI.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 sH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Wit:Vit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return sH(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(ude.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()}},err=new oH;var iH=R(require("os"),1);var orr=iH.default.platform(),irr=iH.default.arch();var dde;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(dde||(dde={}));function ls(t){ide("debug",{},t)}i(ls,"debug");var Ms=R(require("fs"),1);var Hlt=R(BH(),1);var RN=R(require("os"),1),Cd=R(require("path"),1);var li=R(BH(),1);var rfe=require("assert");var tfe=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 fsr=process.platform==="win32",msr=process.platform==="darwin";function nfe(t,e,r,n){return tfe(this,void 0,void 0,function*(){if(r=li.clean(r)||r,n=n||RN.arch(),ls(`Caching tool ${e} ${r} ${n}`),ls(`source dir: ${t}`),!Ms.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield Wlt(e,r,n);for(let o of Ms.readdirSync(t)){let a=Cd.join(t,o);yield Gue(a,s,{recursive:!0})}return Jlt(e,r,n),s})}i(nfe,"cacheDir");function sfe(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||RN.arch(),!ofe(e)){let s=Vlt(t,r);e=Ylt(s,e)}let n="";if(e){e=li.clean(e)||"";let s=Cd.join(NN(),t,e,r);ls(`checking cache: ${s}`),Ms.existsSync(s)&&Ms.existsSync(`${s}.complete`)?(ls(`Found tool in cache ${t} ${e} ${r}`),n=s):ls("not found")}return n}i(sfe,"find");function Vlt(t,e){let r=[];e=e||RN.arch();let n=Cd.join(NN(),t);if(Ms.existsSync(n)){let s=Ms.readdirSync(n);for(let o of s)if(ofe(o)){let a=Cd.join(n,o,e||"");Ms.existsSync(a)&&Ms.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(Vlt,"findAllVersions");function Wlt(t,e,r){return tfe(this,void 0,void 0,function*(){let n=Cd.join(NN(),t,li.clean(e)||e,r||"");ls(`destination ${n}`);let s=`${n}.complete`;return yield WI(n),yield WI(s),yield zf(n),n})}i(Wlt,"_createToolPath");function Jlt(t,e,r){let s=`${Cd.join(NN(),t,li.clean(e)||e,r||"")}.complete`;Ms.writeFileSync(s,""),ls("finished caching tool")}i(Jlt,"_completeToolPath");function ofe(t){let e=li.clean(t)||"";ls(`isExplicit: ${e}`);let r=li.valid(e)!=null;return ls(`explicit? ${r}`),r}i(ofe,"isExplicitVersion");function Ylt(t,e){let r="";ls(`evaluating ${t.length} versions`),t=t.sort((n,s)=>li.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(li.satisfies(s,e)){r=s;break}}return r?ls(`matched: ${r}`):ls("match not found"),r}i(Ylt,"evaluateVersions");function NN(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,rfe.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(NN,"_getCacheDirectory");var $w=R(require("path"),1);var afe=R(require("os"),1);function aS(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(aS,"toCommandValue");function cfe(t,e,r){let n=new RH(t,e,r);process.stdout.write(n.toString()+afe.EOL)}i(cfe,"issueCommand");var ife="::",RH=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=ife+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}=${Xlt(s)}`)}}return e+=`${ife}${Klt(this.message)}`,e}};function Klt(t){return aS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Klt,"escapeData");function Xlt(t){return aS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(Xlt,"escapeProperty");var TN=R(Zh(),1),eut=R($f(),1);var dc;(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"})(dc||(dc={}));var lfe;(function(t){t.Accept="accept",t.ContentType="content-type"})(lfe||(lfe={}));var ufe;(function(t){t.ApplicationJson="application/json"})(ufe||(ufe={}));var Bsr=[dc.MovedPermanently,dc.ResourceMoved,dc.SeeOther,dc.TemporaryRedirect,dc.PermanentRedirect],Rsr=[dc.BadGateway,dc.ServiceUnavailable,dc.GatewayTimeout];var pfe=require("os"),cS=require("fs");var NH=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:tut,appendFile:rut,writeFile:nut}=cS.promises,dfe="GITHUB_STEP_SUMMARY";var TH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return NH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[dfe];if(!e)throw new Error(`Unable to find environment variable for $${dfe}. Check if your runtime environment supports job summaries.`);try{yield tut(e,cS.constants.R_OK|cS.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 NH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?nut:rut)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return NH(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(pfe.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()}},Usr=new TH;var PH=R(require("os"),1);var zsr=PH.default.platform(),Vsr=PH.default.arch();var ffe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ffe||(ffe={}));function ui(t){cfe("debug",{},t)}i(ui,"debug");var rg=R(require("fs"),1);function vH(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ui(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ui(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,ui(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ui(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,ui(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(vH,"getOptions");var QN=R(require("path"),1);var ZA=R(require("path"),1),Id=R(require("assert"),1);var Sd=process.platform==="win32";function lu(t){if(t=cu(t),Sd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=ZA.dirname(t);return Sd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=cu(e)),e}i(lu,"dirname");function PN(t,e){if((0,Id.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Id.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),lS(e))return e;if(Sd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Id.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(ca(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Id.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,Id.default)(lS(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Sd&&t.endsWith("\\")||(t+=ZA.sep),t+e}i(PN,"ensureAbsoluteRoot");function lS(t){return(0,Id.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=ca(t),Sd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(lS,"hasAbsoluteRoot");function uS(t){return(0,Id.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=ca(t),Sd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(uS,"hasRoot");function ca(t){return t=t||"",Sd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(ca,"normalizeSeparators");function cu(t){return t?(t=ca(t),!t.endsWith(ZA.sep)||t===ZA.sep||Sd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(cu,"safeTrimTrailingSeparator");var la;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(la||(la={}));var mfe=process.platform==="win32";function DH(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=mfe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=mfe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=lu(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=lu(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(DH,"getSearchPaths");function hfe(t,e){let r=la.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(hfe,"match");function Afe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(Afe,"partialMatch");var kfe=R(require("os"),1),tg=R(require("path"),1);var bd=R(require("assert"),1);var kH=i((t,e,r)=>{let n=t instanceof RegExp?gfe(t,r):t,s=e instanceof RegExp?gfe(e,r):e,o=n!==null&&s!=null&&aut(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"),gfe=i((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),aut=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 yfe="\0SLASH"+Math.random()+"\0",Efe="\0OPEN"+Math.random()+"\0",FH="\0CLOSE"+Math.random()+"\0",Cfe="\0COMMA"+Math.random()+"\0",Ife="\0PERIOD"+Math.random()+"\0",cut=new RegExp(yfe,"g"),lut=new RegExp(Efe,"g"),uut=new RegExp(FH,"g"),dut=new RegExp(Cfe,"g"),put=new RegExp(Ife,"g"),fut=/\\\\/g,mut=/\\{/g,hut=/\\}/g,Aut=/\\,/g,gut=/\\\./g,yut=1e5,Eut=4e6,Cut=1e3,Iut=1e3;function OH(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(OH,"numeric");function Sut(t){return t.replace(fut,yfe).replace(mut,Efe).replace(hut,FH).replace(Aut,Cfe).replace(gut,Ife)}i(Sut,"escapeBraces");function wut(t){return t.replace(cut,"\\").replace(lut,"{").replace(uut,"}").replace(dut,",").replace(put,".")}i(wut,"unescapeBraces");function LH(t,e){for(let r=0;r=e}i(Nut,"gte");function dS(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(dS,"combine");function Tut(t,e,r,n){let s=t.split(/\.\./),o=[];if(s[0]===void 0||s[1]===void 0)return o;let a=OH(s[0]),c=OH(s[1]),l=Math.max(s[0].length,s[1].length),u=s.length===3&&s[2]!==void 0?Math.max(Math.abs(OH(s[2])),1):1,d=Rut;c0){let E=new Array(y+1).join("0");h<0?A="-"+E+A.slice(1):A=E+A}}if(m+A.length>n)break;o.push(A),m+=A.length}return o}i(Tut,"expandSequence");function MH(t,e,r,n,s,o,a){if(s>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let p=kH("{","}",t);if(!p)return dS(c,t,[""],e,r,u);let f=p.pre;if(/\$$/.test(f)){if(c=dS(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),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),A=m||h,y=p.body.indexOf(",")>=0;if(!A&&!y){if(l=e||b+Y.length>r)break e;E.push(Y),b+=Y.length}}}}if(c=dS(c,f,E,e,r,u&&!p.post.length),!p.post.length)break;t=p.post}return c}i(MH,"expand_");var pS=i(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var Put={"[: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]},fS=i(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),_ut=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),wfe=i(t=>t.join(""),"rangesToString"),xfe=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(fS(p)+"-"+fS(A)):A===p&&n.push(fS(A)),p="",o++;continue}if(t.startsWith("-]",o+1)){n.push(fS(A+"-")),o+=2;continue}if(t.startsWith("-",o+1)){p=A,o+=2;continue}n.push(fS(A)),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 Fs,vut=new Set(["!","?","+","*","@"]),UH=i(t=>vut.has(t),"isExtglobType"),bfe=i(t=>UH(t.type),"isExtglobAST"),Qut=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Dut=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),kut=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Bfe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Out="(?!(?:^|/)\\.\\.?(?:$|/))",_N="(?!\\.)",Lut=new Set(["[","."]),Mut=new Set(["..","."]),Fut=new Set("().*{}+?[]^$\\!"),Uut=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),qH="[^/]",Rfe=qH+"*?",Nfe=qH+"+?",qut=0,Yf=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#s;#o;#i;#a=!1;#l;#c;#u=!1;id=++qut;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[h,A,y,E]=typeof m=="string"?Fs.#w(m,this.#t,l):m.toRegExpSource(e);return this.#t=this.#t||y,this.#n=this.#n||E,h}).join(""),d="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&Mut.has(this.#r[0]))){let h=Lut,A=r&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),y=!r&&!e&&h.has(u.charAt(0));d=A?Out:y?_N:""}let p="";return this.isEnd()&&this.#e.#a&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[d+u+p,wd(u),this.#t=!!this.#t,this.#n]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#A(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,wd(this.toString()),!1,!1]}let a=!n||e||r||!_N?"":this.#A(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let c="";if(this.type==="!"&&this.#u)c=(this.isStart()&&!r?_N:"")+Nfe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?_N:"")+Rfe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=s+o+l}return[c,wd(o),this.#t=!!this.#t,this.#n]}#f(){if(bfe(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#w(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 ps=i((t,e,r={})=>(pS(e),!r.nocomment&&e.charAt(0)==="#"?!1:new xd(e,r).match(t)),"minimatch"),$ut=/^\*+([^+@!?*[(]*)$/,Gut=i(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),Hut=i(t=>e=>e.endsWith(t),"starDotExtTestDot"),zut=i(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),Vut=i(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),Wut=/^\*+\.\*+$/,Jut=i(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),Yut=i(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),jut=/^\.\*+$/,Kut=i(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),Xut=/^\*+$/,Zut=i(t=>t.length!==0&&!t.startsWith("."),"starTest"),edt=i(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),tdt=/^\?+([^+@!?*[(]*)?$/,rdt=i(([t,e=""])=>{let r=_fe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),ndt=i(([t,e=""])=>{let r=vfe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),sdt=i(([t,e=""])=>{let r=vfe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),odt=i(([t,e=""])=>{let r=_fe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),_fe=i(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),vfe=i(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),Qfe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Tfe={win32:{sep:"\\"},posix:{sep:"/"}},idt=Qfe==="win32"?Tfe.win32.sep:Tfe.posix.sep;ps.sep=idt;var Hn=Symbol("globstar **");ps.GLOBSTAR=Hn;var adt="[^/]",cdt=adt+"*?",ldt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",udt="(?:(?!(?:\\/|^)\\.).)*?",ddt=i((t,e={})=>r=>ps(r,t,e),"filter");ps.filter=ddt;var di=i((t,e={})=>Object.assign({},t,e),"ext"),pdt=i(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ps;let e=ps;return Object.assign(i((n,s,o={})=>e(n,s,di(t,o)),"m"),{Minimatch:class extends e.Minimatch{static{i(this,"Minimatch")}constructor(s,o={}){super(s,di(t,o))}static defaults(s){return e.defaults(di(t,s)).Minimatch}},AST:class extends e.AST{static{i(this,"AST")}constructor(s,o,a={}){super(s,o,di(t,a))}static fromGlob(s,o={}){return e.AST.fromGlob(s,di(t,o))}},unescape:i((n,s={})=>e.unescape(n,di(t,s)),"unescape"),escape:i((n,s={})=>e.escape(n,di(t,s)),"escape"),filter:i((n,s={})=>e.filter(n,di(t,s)),"filter"),defaults:i(n=>e.defaults(di(t,n)),"defaults"),makeRe:i((n,s={})=>e.makeRe(n,di(t,s)),"makeRe"),braceExpand:i((n,s={})=>e.braceExpand(n,di(t,s)),"braceExpand"),match:i((n,s,o={})=>e.match(n,s,di(t,o)),"match"),sep:e.sep,GLOBSTAR:Hn})},"defaults");ps.defaults=pdt;var Dfe=i((t,e={})=>(pS(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Sfe(t,{max:e.braceExpandMax})),"braceExpand");ps.braceExpand=Dfe;var fdt=i((t,e={})=>new xd(t,e).makeRe(),"makeRe");ps.makeRe=fdt;var mdt=i((t,e,r={})=>{let n=new xd(e,r);return t=t.filter(s=>n.match(s)),n.options.nonull&&!t.length&&t.push(e),t},"match");ps.match=mdt;var Pfe=/[?*]|[+@!]\(.*?\)|\[|\]/,hdt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),xd=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={}){pS(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Qfe,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]==="?"||!Pfe.test(o[2]))&&!Pfe.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(Hn)?this.#e(e,r,n,s,o):this.#n(e,r,n,s,o)}#e(e,r,n,s,o){let a=r.indexOf(Hn,o),c=r.lastIndexOf(Hn),[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"?hdt(p):p===Hn?Hn:p._src});u.forEach((p,f)=>{let m=u[f+1],h=u[f-1];p!==Hn||h===Hn||(h===void 0?m!==void 0&&m!==Hn?u[f+1]="(?:\\/|"+n+"\\/)?"+m:u[f]=n:m===void 0?u[f-1]=h+"(?:\\/|\\/"+n+")?":m!==Hn&&(u[f-1]=h+"(?:\\/|\\/"+n+"\\/)"+m,u[f+1]=Hn))});let d=u.filter(p=>p!==Hn);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 ps.defaults(e).Minimatch}};ps.AST=Yf;ps.Minimatch=xd;ps.escape=$H;ps.unescape=wd;var jf=R(require("path"),1);var eg=R(require("assert"),1);var Adt=process.platform==="win32",Kf=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,eg.default)(e,"Parameter 'itemPath' must not be empty"),e=cu(e),!uS(e))this.segments=e.split(jf.sep);else{let r=e,n=lu(r);for(;n!==r;){let s=jf.basename(r);this.segments.unshift(s),r=n,n=lu(r)}this.segments.unshift(r)}else{(0,eg.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 Kf(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),uu?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:uu,nocomment:!0,noext:!0,nonegate:!0};o=uu?o.replace(/\\/g,"/"):o,this.minimatch=new xd(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ca(e),!e.endsWith(tg.sep)&&this.isImplicitPattern===!1&&(e=`${e}${tg.sep}`)):e=cu(e),this.minimatch.match(e)?this.trailingSeparator?la.Directory:la.All:la.None}partialMatch(e){return e=cu(e),lu(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(uu?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(uu?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,bd.default)(e,"pattern cannot be empty");let n=new Kf(e).segments.map(s=>t.getLiteral(s));if((0,bd.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,bd.default)(!uS(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ca(e),e==="."||e.startsWith(`.${tg.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${tg.sep}`))r=r||kfe.homedir(),(0,bd.default)(r,"Unable to determine HOME directory"),(0,bd.default)(lS(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(uu&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=PN("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(uu&&(e==="\\"||e.match(/^\\[^\\]/))){let s=PN("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=PN(t.globEscape(process.cwd()),e);return ca(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 hS=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var GH=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())})},gdt=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)}},Bd=function(t){return this instanceof Bd?(this.v=t,this):new Bd(t)},ydt=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(h){return Promise.resolve(h).then(m,p)}}function c(m,h){n[m]&&(s[m]=function(A){return new Promise(function(y,E){o.push([m,A,y,E])>1||l(m,A)})},h&&(s[m]=h(s[m])))}function l(m,h){try{u(n[m](h))}catch(A){f(o[0][3],A)}}function u(m){m.value instanceof Bd?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,h){m(h),o.shift(),o.length&&l(o[0][0],o[0][1])}},Edt=process.platform==="win32",vN=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=vH(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return GH(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=gdt(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 ydt(this,arguments,i(function*(){let r=vH(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 mS(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of DH(n)){ui(`Search path '${a}'`);try{yield Bd(rg.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new hS(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=hfe(n,a.path),l=!!c||Afe(n,a.path);if(!c&&!l)continue;let u=yield Bd(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&QN.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&la.Directory&&r.matchDirectories)yield yield Bd(a.path);else if(!l)continue;let d=a.level+1,p=(yield Bd(rg.promises.readdir(a.path))).map(f=>new hS(QN.join(a.path,f),d));s.push(...p.reverse())}else c&la.File&&(yield yield Bd(a.path))}},"globGenerator_1"))}static create(e,r){return GH(this,void 0,void 0,function*(){let n=new t(r);Edt&&(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 Que(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 qn(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var kue=require("os"),VI=require("fs");var VG=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:Pit,appendFile:_it,writeFile:vit}=VI.promises,Due="GITHUB_STEP_SUMMARY";var WG=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return VG(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Due];if(!e)throw new Error(`Unable to find environment variable for $${Due}. Check if your runtime environment supports job summaries.`);try{yield Pit(e,VI.constants.R_OK|VI.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 VG(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?vit:_it)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return VG(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(kue.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()}},ctr=new WG;var rH=R(require("os"),1);var tH=require("string_decoder");var YI=R(require("os"),1),eH=R(require("events"),1),Jue=R(require("child_process"),1),Yue=R(require("path"),1);var Gue=require("assert"),bo=R(require("path"),1);var WI=R(require("fs"),1),Ed=R(require("path"),1);var JG=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:YG,copyFile:Lue,lstat:dN,mkdir:Mue,open:ftr,readdir:jG,rename:Qit,rm:Fue,rmdir:mtr,stat:Hf,symlink:Uue,unlink:KG}=WI.promises,cc=process.platform==="win32";function que(t){return JG(this,void 0,void 0,function*(){let e=yield WI.promises.readlink(t);return cc&&!e.endsWith("\\")?`${e}\\`:e})}i(que,"readlink");var htr=WI.constants.O_RDONLY;function jA(t){return JG(this,void 0,void 0,function*(){try{yield Hf(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(jA,"exists");function pN(t){if(t=Dit(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return cc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(pN,"isRooted");function XG(t,e){return JG(this,void 0,void 0,function*(){let r;try{r=yield Hf(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(cc){let s=Ed.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(Oue(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield Hf(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(cc){try{let o=Ed.dirname(t),a=Ed.basename(t).toUpperCase();for(let c of yield jG(o))if(a===c.toUpperCase()){t=Ed.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(Oue(r))return t}}return""})}i(XG,"tryGetExecutablePath");function Dit(t){return t=t||"",cc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(Dit,"normalizeSeparators");function Oue(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(Oue,"isUnixExecutable");var zf=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 Hue(t,e){return zf(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=Oit(s),l=(yield jA(n))?yield Hf(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?bo.join(n,bo.basename(r)):n;if(!(yield jA(r)))throw new Error(`no such file or directory: ${r}`);if((yield Hf(r)).isDirectory())if(a)yield zue(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(bo.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield Vue(r,u,o)}})}i(Hue,"cp");function JI(t){return zf(this,void 0,void 0,function*(){if(cc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Fue(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(JI,"rmRF");function Vf(t){return zf(this,void 0,void 0,function*(){(0,Gue.ok)(t,"a path argument must be provided"),yield Mue(t,{recursive:!0})})}i(Vf,"mkdirP");function Ls(t,e){return zf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Ls(t,!1);if(!n)throw cc?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 kit(t);return r&&r.length>0?r[0]:""})}i(Ls,"which");function kit(t){return zf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(cc&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(bo.delimiter))s&&e.push(s);if(pN(t)){let s=yield XG(t,e);return s?[s]:[]}if(t.includes(bo.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(bo.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield XG(bo.join(s,t),e);o&&n.push(o)}return n})}i(kit,"findInPath");function Oit(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(Oit,"readCopyOptions");function zue(t,e,r,n){return zf(this,void 0,void 0,function*(){if(r>=255)return;r++,yield Vf(e);let s=yield jG(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield dN(a)).isDirectory()?yield zue(a,c,r,n):yield Vue(a,c,n)}yield YG(e,(yield Hf(t)).mode)})}i(zue,"cpDirRecursive");function Vue(t,e,r){return zf(this,void 0,void 0,function*(){if((yield dN(t)).isSymbolicLink()){try{yield dN(e),yield KG(e)}catch(s){s.code==="EPERM"&&(yield YG(e,"0666"),yield KG(e))}let n=yield que(t);yield Uue(n,e,cc?"junction":null)}else(!(yield jA(e))||r)&&(yield Lue(t,e))})}i(Vue,"copyFile");var jue=require("timers");var Wue=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())})},fN=process.platform==="win32",mN=class extends eH.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(fN)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(YI.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+YI.EOL.length),o=s.indexOf(YI.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return fN&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(fN&&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 Wue(this,void 0,void 0,function*(){return!pN(this.toolPath)&&(this.toolPath.includes("/")||fN&&this.toolPath.includes("\\"))&&(this.toolPath=Yue.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Ls(this.toolPath,!0),new Promise((e,r)=>Wue(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)+YI.EOL);let s=new ZG(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=Jue.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 Kue(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(Kue,"argStringToArray");var ZG=class t extends eH.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,jue.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 Xue=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 Cd(t,e,r){return Xue(this,void 0,void 0,function*(){let n=Kue(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 mN(s,e,r).exec()})}i(Cd,"exec");function jI(t,e,r){return Xue(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new tH.StringDecoder("utf8"),l=new tH.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(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),f=i(A=>{o+=c.write(A),u&&u(A)},"stdOutListener"),m=Object.assign(Object.assign({},r?.listeners),{stdout:f,stderr:p}),h=yield Cd(t,e,Object.assign(Object.assign({},r),{listeners:m}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}})}i(jI,"getExecOutput");var Itr=rH.default.platform(),Str=rH.default.arch();var Zue=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())})},nH;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(nH||(nH={}));function qn(t){mf("add-mask",{},t)}i(qn,"setSecret");function aa(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(aa,"getInput");function tde(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=aa(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(tde,"getBooleanInput");function rde(t){process.exitCode=nH.Failure,XA(t)}i(rde,"setFailed");function Wf(){return process.env.RUNNER_DEBUG==="1"}i(Wf,"isDebug");function T(t){mf("debug",{},t)}i(T,"debug");function XA(t,e={}){mf("error",d2(e),t instanceof Error?t.toString():t)}i(XA,"error");function ur(t,e={}){mf("warning",d2(e),t instanceof Error?t.toString():t)}i(ur,"warning");function ae(t){process.stdout.write(t+ede.EOL)}i(ae,"info");function Fit(t){f2("group",t)}i(Fit,"startGroup");function Uit(){f2("endgroup")}i(Uit,"endGroup");function XI(t,e){return Zue(this,void 0,void 0,function*(){Fit(t);let r;try{r=yield e()}finally{Uit()}return r})}i(XI,"group");function Jf(t,e){if(process.env.GITHUB_STATE||"")return tre("STATE",rre(t,e));mf("save-state",{name:t},Zu(e))}i(Jf,"saveState");function nde(t){return process.env[`STATE_${t}`]||""}i(nde,"getState");function sde(t){return Zue(this,void 0,void 0,function*(){return yield uN.getIDToken(t)})}i(sde,"getIDToken");var Hw=R(require("fs"),1),cY=R(require("os"),1),lY=R(require("path"),1);var ide=R(require("os"),1);function ZI(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(ZI,"toCommandValue");function ade(t,e,r){let n=new sH(t,e,r);process.stdout.write(n.toString()+ide.EOL)}i(ade,"issueCommand");var ode="::",sH=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=ode+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}=${$it(s)}`)}}return e+=`${ode}${qit(this.message)}`,e}};function qit(t){return ZI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(qit,"escapeData");function $it(t){return ZI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i($it,"escapeProperty");var hN=R(eA(),1),Hit=R(Gf(),1);var lc;(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"})(lc||(lc={}));var cde;(function(t){t.Accept="accept",t.ContentType="content-type"})(cde||(cde={}));var lde;(function(t){t.ApplicationJson="application/json"})(lde||(lde={}));var Wtr=[lc.MovedPermanently,lc.ResourceMoved,lc.SeeOther,lc.TemporaryRedirect,lc.PermanentRedirect],Jtr=[lc.BadGateway,lc.ServiceUnavailable,lc.GatewayTimeout];var dde=require("os"),eS=require("fs");var oH=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:Wit,appendFile:Jit,writeFile:Yit}=eS.promises,ude="GITHUB_STEP_SUMMARY";var iH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return oH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ude];if(!e)throw new Error(`Unable to find environment variable for $${ude}. Check if your runtime environment supports job summaries.`);try{yield Wit(e,eS.constants.R_OK|eS.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 oH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Yit:Jit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return oH(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(dde.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()}},orr=new iH;var aH=R(require("os"),1);var urr=aH.default.platform(),drr=aH.default.arch();var pde;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(pde||(pde={}));function ls(t){ade("debug",{},t)}i(ls,"debug");var Ms=R(require("fs"),1);var Vlt=R(RH(),1);var NN=R(require("os"),1),Id=R(require("path"),1);var li=R(RH(),1);var nfe=require("assert");var rfe=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 ysr=process.platform==="win32",Esr=process.platform==="darwin";function sfe(t,e,r,n){return rfe(this,void 0,void 0,function*(){if(r=li.clean(r)||r,n=n||NN.arch(),ls(`Caching tool ${e} ${r} ${n}`),ls(`source dir: ${t}`),!Ms.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield Ylt(e,r,n);for(let o of Ms.readdirSync(t)){let a=Id.join(t,o);yield Hue(a,s,{recursive:!0})}return jlt(e,r,n),s})}i(sfe,"cacheDir");function ofe(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||NN.arch(),!ife(e)){let s=Jlt(t,r);e=Klt(s,e)}let n="";if(e){e=li.clean(e)||"";let s=Id.join(TN(),t,e,r);ls(`checking cache: ${s}`),Ms.existsSync(s)&&Ms.existsSync(`${s}.complete`)?(ls(`Found tool in cache ${t} ${e} ${r}`),n=s):ls("not found")}return n}i(ofe,"find");function Jlt(t,e){let r=[];e=e||NN.arch();let n=Id.join(TN(),t);if(Ms.existsSync(n)){let s=Ms.readdirSync(n);for(let o of s)if(ife(o)){let a=Id.join(n,o,e||"");Ms.existsSync(a)&&Ms.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(Jlt,"findAllVersions");function Ylt(t,e,r){return rfe(this,void 0,void 0,function*(){let n=Id.join(TN(),t,li.clean(e)||e,r||"");ls(`destination ${n}`);let s=`${n}.complete`;return yield JI(n),yield JI(s),yield Vf(n),n})}i(Ylt,"_createToolPath");function jlt(t,e,r){let s=`${Id.join(TN(),t,li.clean(e)||e,r||"")}.complete`;Ms.writeFileSync(s,""),ls("finished caching tool")}i(jlt,"_completeToolPath");function ife(t){let e=li.clean(t)||"";ls(`isExplicit: ${e}`);let r=li.valid(e)!=null;return ls(`explicit? ${r}`),r}i(ife,"isExplicitVersion");function Klt(t,e){let r="";ls(`evaluating ${t.length} versions`),t=t.sort((n,s)=>li.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(li.satisfies(s,e)){r=s;break}}return r?ls(`matched: ${r}`):ls("match not found"),r}i(Klt,"evaluateVersions");function TN(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,nfe.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(TN,"_getCacheDirectory");var Gw=R(require("path"),1);var cfe=R(require("os"),1);function cS(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(cS,"toCommandValue");function lfe(t,e,r){let n=new NH(t,e,r);process.stdout.write(n.toString()+cfe.EOL)}i(lfe,"issueCommand");var afe="::",NH=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=afe+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}=${eut(s)}`)}}return e+=`${afe}${Zlt(this.message)}`,e}};function Zlt(t){return cS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Zlt,"escapeData");function eut(t){return cS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(eut,"escapeProperty");var PN=R(eA(),1),rut=R(Gf(),1);var dc;(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"})(dc||(dc={}));var ufe;(function(t){t.Accept="accept",t.ContentType="content-type"})(ufe||(ufe={}));var dfe;(function(t){t.ApplicationJson="application/json"})(dfe||(dfe={}));var _sr=[dc.MovedPermanently,dc.ResourceMoved,dc.SeeOther,dc.TemporaryRedirect,dc.PermanentRedirect],vsr=[dc.BadGateway,dc.ServiceUnavailable,dc.GatewayTimeout];var ffe=require("os"),lS=require("fs");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())})},{access:nut,appendFile:sut,writeFile:out}=lS.promises,pfe="GITHUB_STEP_SUMMARY";var PH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return TH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[pfe];if(!e)throw new Error(`Unable to find environment variable for $${pfe}. Check if your runtime environment supports job summaries.`);try{yield nut(e,lS.constants.R_OK|lS.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 TH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?out:sut)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return TH(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(ffe.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()}},zsr=new PH;var _H=R(require("os"),1);var jsr=_H.default.platform(),Ksr=_H.default.arch();var mfe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(mfe||(mfe={}));function ui(t){lfe("debug",{},t)}i(ui,"debug");var ng=R(require("fs"),1);function QH(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,ui(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,ui(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,ui(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,ui(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,ui(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(QH,"getOptions");var DN=R(require("path"),1);var eg=R(require("path"),1),Sd=R(require("assert"),1);var wd=process.platform==="win32";function uu(t){if(t=lu(t),wd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=eg.dirname(t);return wd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=lu(e)),e}i(uu,"dirname");function _N(t,e){if((0,Sd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Sd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),uS(e))return e;if(wd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Sd.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(ca(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Sd.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,Sd.default)(uS(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||wd&&t.endsWith("\\")||(t+=eg.sep),t+e}i(_N,"ensureAbsoluteRoot");function uS(t){return(0,Sd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=ca(t),wd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(uS,"hasAbsoluteRoot");function dS(t){return(0,Sd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=ca(t),wd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(dS,"hasRoot");function ca(t){return t=t||"",wd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(ca,"normalizeSeparators");function lu(t){return t?(t=ca(t),!t.endsWith(eg.sep)||t===eg.sep||wd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(lu,"safeTrimTrailingSeparator");var la;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(la||(la={}));var hfe=process.platform==="win32";function kH(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=hfe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=hfe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=uu(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=uu(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(kH,"getSearchPaths");function Afe(t,e){let r=la.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(Afe,"match");function gfe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(gfe,"partialMatch");var Ofe=R(require("os"),1),rg=R(require("path"),1);var Bd=R(require("assert"),1);var OH=i((t,e,r)=>{let n=t instanceof RegExp?yfe(t,r):t,s=e instanceof RegExp?yfe(e,r):e,o=n!==null&&s!=null&&lut(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"),yfe=i((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),lut=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 Efe="\0SLASH"+Math.random()+"\0",Cfe="\0OPEN"+Math.random()+"\0",UH="\0CLOSE"+Math.random()+"\0",Ife="\0COMMA"+Math.random()+"\0",Sfe="\0PERIOD"+Math.random()+"\0",uut=new RegExp(Efe,"g"),dut=new RegExp(Cfe,"g"),put=new RegExp(UH,"g"),fut=new RegExp(Ife,"g"),mut=new RegExp(Sfe,"g"),hut=/\\\\/g,Aut=/\\{/g,gut=/\\}/g,yut=/\\,/g,Eut=/\\\./g,Cut=1e5,Iut=4e6,Sut=1e3,wut=1e3;function LH(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(LH,"numeric");function xut(t){return t.replace(hut,Efe).replace(Aut,Cfe).replace(gut,UH).replace(yut,Ife).replace(Eut,Sfe)}i(xut,"escapeBraces");function but(t){return t.replace(uut,"\\").replace(dut,"{").replace(put,"}").replace(fut,",").replace(mut,".")}i(but,"unescapeBraces");function MH(t,e){for(let r=0;r=e}i(Put,"gte");function pS(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(pS,"combine");function _ut(t,e,r,n){let s=t.split(/\.\./),o=[];if(s[0]===void 0||s[1]===void 0)return o;let a=LH(s[0]),c=LH(s[1]),l=Math.max(s[0].length,s[1].length),u=s.length===3&&s[2]!==void 0?Math.max(Math.abs(LH(s[2])),1):1,d=Tut;c0){let E=new Array(y+1).join("0");h<0?A="-"+E+A.slice(1):A=E+A}}if(m+A.length>n)break;o.push(A),m+=A.length}return o}i(_ut,"expandSequence");function FH(t,e,r,n,s,o,a){if(s>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let p=OH("{","}",t);if(!p)return pS(c,t,[""],e,r,u);let f=p.pre;if(/\$$/.test(f)){if(c=pS(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),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),A=m||h,y=p.body.indexOf(",")>=0;if(!A&&!y){if(l=e||b+Y.length>r)break e;E.push(Y),b+=Y.length}}}}if(c=pS(c,f,E,e,r,u&&!p.post.length),!p.post.length)break;t=p.post}return c}i(FH,"expand_");var fS=i(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var vut={"[: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]},mS=i(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),Qut=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),xfe=i(t=>t.join(""),"rangesToString"),bfe=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(mS(p)+"-"+mS(A)):A===p&&n.push(mS(A)),p="",o++;continue}if(t.startsWith("-]",o+1)){n.push(mS(A+"-")),o+=2;continue}if(t.startsWith("-",o+1)){p=A,o+=2;continue}n.push(mS(A)),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 Fs,Dut=new Set(["!","?","+","*","@"]),qH=i(t=>Dut.has(t),"isExtglobType"),Bfe=i(t=>qH(t.type),"isExtglobAST"),kut=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Out=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Lut=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Rfe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Mut="(?!(?:^|/)\\.\\.?(?:$|/))",vN="(?!\\.)",Fut=new Set(["[","."]),Uut=new Set(["..","."]),qut=new Set("().*{}+?[]^$\\!"),$ut=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),$H="[^/]",Nfe=$H+"*?",Tfe=$H+"+?",Gut=0,jf=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#s;#o;#i;#a=!1;#l;#c;#u=!1;id=++Gut;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[h,A,y,E]=typeof m=="string"?Fs.#w(m,this.#t,l):m.toRegExpSource(e);return this.#t=this.#t||y,this.#n=this.#n||E,h}).join(""),d="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&Uut.has(this.#r[0]))){let h=Fut,A=r&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),y=!r&&!e&&h.has(u.charAt(0));d=A?Mut:y?vN:""}let p="";return this.isEnd()&&this.#e.#a&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[d+u+p,xd(u),this.#t=!!this.#t,this.#n]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#A(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,xd(this.toString()),!1,!1]}let a=!n||e||r||!vN?"":this.#A(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let c="";if(this.type==="!"&&this.#u)c=(this.isStart()&&!r?vN:"")+Tfe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?vN:"")+Nfe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=s+o+l}return[c,xd(o),this.#t=!!this.#t,this.#n]}#f(){if(Bfe(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#w(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 ps=i((t,e,r={})=>(fS(e),!r.nocomment&&e.charAt(0)==="#"?!1:new bd(e,r).match(t)),"minimatch"),Hut=/^\*+([^+@!?*[(]*)$/,zut=i(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),Vut=i(t=>e=>e.endsWith(t),"starDotExtTestDot"),Wut=i(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),Jut=i(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),Yut=/^\*+\.\*+$/,jut=i(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),Kut=i(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),Xut=/^\.\*+$/,Zut=i(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),edt=/^\*+$/,tdt=i(t=>t.length!==0&&!t.startsWith("."),"starTest"),rdt=i(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),ndt=/^\?+([^+@!?*[(]*)?$/,sdt=i(([t,e=""])=>{let r=vfe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),odt=i(([t,e=""])=>{let r=Qfe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),idt=i(([t,e=""])=>{let r=Qfe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),adt=i(([t,e=""])=>{let r=vfe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),vfe=i(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Qfe=i(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),Dfe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Pfe={win32:{sep:"\\"},posix:{sep:"/"}},cdt=Dfe==="win32"?Pfe.win32.sep:Pfe.posix.sep;ps.sep=cdt;var Hn=Symbol("globstar **");ps.GLOBSTAR=Hn;var ldt="[^/]",udt=ldt+"*?",ddt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pdt="(?:(?!(?:\\/|^)\\.).)*?",fdt=i((t,e={})=>r=>ps(r,t,e),"filter");ps.filter=fdt;var di=i((t,e={})=>Object.assign({},t,e),"ext"),mdt=i(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ps;let e=ps;return Object.assign(i((n,s,o={})=>e(n,s,di(t,o)),"m"),{Minimatch:class extends e.Minimatch{static{i(this,"Minimatch")}constructor(s,o={}){super(s,di(t,o))}static defaults(s){return e.defaults(di(t,s)).Minimatch}},AST:class extends e.AST{static{i(this,"AST")}constructor(s,o,a={}){super(s,o,di(t,a))}static fromGlob(s,o={}){return e.AST.fromGlob(s,di(t,o))}},unescape:i((n,s={})=>e.unescape(n,di(t,s)),"unescape"),escape:i((n,s={})=>e.escape(n,di(t,s)),"escape"),filter:i((n,s={})=>e.filter(n,di(t,s)),"filter"),defaults:i(n=>e.defaults(di(t,n)),"defaults"),makeRe:i((n,s={})=>e.makeRe(n,di(t,s)),"makeRe"),braceExpand:i((n,s={})=>e.braceExpand(n,di(t,s)),"braceExpand"),match:i((n,s,o={})=>e.match(n,s,di(t,o)),"match"),sep:e.sep,GLOBSTAR:Hn})},"defaults");ps.defaults=mdt;var kfe=i((t,e={})=>(fS(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:wfe(t,{max:e.braceExpandMax})),"braceExpand");ps.braceExpand=kfe;var hdt=i((t,e={})=>new bd(t,e).makeRe(),"makeRe");ps.makeRe=hdt;var Adt=i((t,e,r={})=>{let n=new bd(e,r);return t=t.filter(s=>n.match(s)),n.options.nonull&&!t.length&&t.push(e),t},"match");ps.match=Adt;var _fe=/[?*]|[+@!]\(.*?\)|\[|\]/,gdt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),bd=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={}){fS(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Dfe,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]==="?"||!_fe.test(o[2]))&&!_fe.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(Hn)?this.#e(e,r,n,s,o):this.#n(e,r,n,s,o)}#e(e,r,n,s,o){let a=r.indexOf(Hn,o),c=r.lastIndexOf(Hn),[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"?gdt(p):p===Hn?Hn:p._src});u.forEach((p,f)=>{let m=u[f+1],h=u[f-1];p!==Hn||h===Hn||(h===void 0?m!==void 0&&m!==Hn?u[f+1]="(?:\\/|"+n+"\\/)?"+m:u[f]=n:m===void 0?u[f-1]=h+"(?:\\/|\\/"+n+")?":m!==Hn&&(u[f-1]=h+"(?:\\/|\\/"+n+"\\/)"+m,u[f+1]=Hn))});let d=u.filter(p=>p!==Hn);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 ps.defaults(e).Minimatch}};ps.AST=jf;ps.Minimatch=bd;ps.escape=GH;ps.unescape=xd;var Kf=R(require("path"),1);var tg=R(require("assert"),1);var ydt=process.platform==="win32",Xf=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,tg.default)(e,"Parameter 'itemPath' must not be empty"),e=lu(e),!dS(e))this.segments=e.split(Kf.sep);else{let r=e,n=uu(r);for(;n!==r;){let s=Kf.basename(r);this.segments.unshift(s),r=n,n=uu(r)}this.segments.unshift(r)}else{(0,tg.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 Xf(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),du?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:du,nocomment:!0,noext:!0,nonegate:!0};o=du?o.replace(/\\/g,"/"):o,this.minimatch=new bd(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ca(e),!e.endsWith(rg.sep)&&this.isImplicitPattern===!1&&(e=`${e}${rg.sep}`)):e=lu(e),this.minimatch.match(e)?this.trailingSeparator?la.Directory:la.All:la.None}partialMatch(e){return e=lu(e),uu(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(du?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(du?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Bd.default)(e,"pattern cannot be empty");let n=new Xf(e).segments.map(s=>t.getLiteral(s));if((0,Bd.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Bd.default)(!dS(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ca(e),e==="."||e.startsWith(`.${rg.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${rg.sep}`))r=r||Ofe.homedir(),(0,Bd.default)(r,"Unable to determine HOME directory"),(0,Bd.default)(uS(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(du&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=_N("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(du&&(e==="\\"||e.match(/^\\[^\\]/))){let s=_N("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=_N(t.globEscape(process.cwd()),e);return ca(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 AS=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var HH=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())})},Edt=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)}},Rd=function(t){return this instanceof Rd?(this.v=t,this):new Rd(t)},Cdt=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(h){return Promise.resolve(h).then(m,p)}}function c(m,h){n[m]&&(s[m]=function(A){return new Promise(function(y,E){o.push([m,A,y,E])>1||l(m,A)})},h&&(s[m]=h(s[m])))}function l(m,h){try{u(n[m](h))}catch(A){f(o[0][3],A)}}function u(m){m.value instanceof Rd?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,h){m(h),o.shift(),o.length&&l(o[0][0],o[0][1])}},Idt=process.platform==="win32",QN=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=QH(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return HH(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=Edt(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 Cdt(this,arguments,i(function*(){let r=QH(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 hS(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of kH(n)){ui(`Search path '${a}'`);try{yield Rd(ng.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new AS(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=Afe(n,a.path),l=!!c||gfe(n,a.path);if(!c&&!l)continue;let u=yield Rd(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&DN.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&la.Directory&&r.matchDirectories)yield yield Rd(a.path);else if(!l)continue;let d=a.level+1,p=(yield Rd(ng.promises.readdir(a.path))).map(f=>new AS(DN.join(a.path,f),d));s.push(...p.reverse())}else c&la.File&&(yield yield Rd(a.path))}},"globGenerator_1"))}static create(e,r){return HH(this,void 0,void 0,function*(){let n=new t(r);Idt&&(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 mS(o));return n.searchPaths.push(...DH(n.patterns)),n})}static stat(e,r,n){return GH(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield rg.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ui(`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 rg.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield rg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){ui(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var Cdt=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 Ofe(t,e){return Cdt(this,void 0,void 0,function*(){return yield vN.create(t,e)})}i(Ofe,"create");var YN=R(require("crypto"),1),ig=R(require("fs"),1),Xf=R(require("path"),1),The=R(Rhe(),1),Phe=R(require("util"),1);var IS;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(IS||(IS={}));var ms;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ms||(ms={}));var Bo;(function(t){t.GNU="gnu",t.BSD="bsd"})(Bo||(Bo={}));var VN=2,WN=5e3,uz=5e3,dz=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Nhe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,SS="cache.tar",pz="manifest.txt",Jar=10*Math.pow(1024,3),JN="cache read denied:";var og=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())})},Tmt=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)}},Pmt="1.0";function Zf(){return og(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=Xf.join(n,"actions","temp")}let r=Xf.join(e,YN.randomUUID());return yield zf(r),r})}i(Zf,"createTempDirectory");function fc(t){return ig.statSync(t).size}i(fc,"getArchiveFileSizeInBytes");function fz(t){return og(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 Ofe(t.join(` -`),{implicitDescendants:!1});try{for(var u=!0,d=Tmt(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=Xf.relative(c,s).replace(new RegExp(`\\${Xf.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(fz,"resolvePaths");function wS(t){return og(this,void 0,void 0,function*(){return Phe.promisify(ig.unlink)(t)})}i(wS,"unlinkFile");function _he(t){return og(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Ed(`${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(_he,"getVersion");function xS(){return og(this,void 0,void 0,function*(){let t=yield _he("zstd",["--quiet"]),e=The.clean(t);return T(`zstd version: ${e}`),t===""?ms.Gzip:ms.ZstdWithoutLong})}i(xS,"getCompressionMethod");function Nd(t){return t===ms.Gzip?IS.Gzip:IS.Zstd}i(Nd,"getCacheFileName");function vhe(){return og(this,void 0,void 0,function*(){return ig.existsSync(dz)?dz:(yield _he("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}i(vhe,"getGnuTarPathOnWindows");function mz(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(mz,"assertDefined");function ag(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Pmt),YN.createHash("sha256").update(n.join("|")).digest("hex")}i(ag,"getCacheVersion");function Qhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(Qhe,"getRuntimeToken");var BS=R(require("http"),1),gz=R(require("https"),1);function hz(t){let e=t.protocol==="https:";if(_mt(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 KN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new KN(`http://${r}`)}else return}i(hz,"getProxyUrl");function _mt(t){if(!t.hostname)return!1;let e=t.hostname;if(vmt(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(_mt,"checkBypass");function vmt(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(vmt,"isLoopbackAddress");var KN=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(Zh(),1),Dhe=R($f(),1);var Rr=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 hs;(function(t){t.Accept="accept",t.ContentType="content-type"})(hs||(hs={}));var du;(function(t){t.ApplicationJson="application/json"})(du||(du={}));var Dmt=[At.MovedPermanently,At.ResourceMoved,At.SeeOther,At.TemporaryRedirect,At.PermanentRedirect],kmt=[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout],Omt=["OPTIONS","GET","DELETE","HEAD"],Lmt=10,Mmt=5,mc=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},Az=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(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))})}))})}};var Ro=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[hs.Accept]=this._getExistingOrDefaultHeader(n,hs.Accept,du.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,du.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,du.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,du.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,du.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,du.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,du.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&&Omt.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 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&&Dmt.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||!kmt.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 Az(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=hz(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?gz:BS;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({},bS(this.requestOptions.headers),bS(e||{})):bS(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=bS(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=bS(this.requestOptions.headers)[hs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[hs.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=hz(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||BS.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 gz.Agent(c):new BS.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 Dhe.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(Lmt,e);let r=Mmt*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===At.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 mc(d,o);p.result=a.result,s(p)}else n(a)}))})}},bS=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Fmt=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 cg=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 Fmt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Mg=R(require("fs"),1),dIe=require("url");var hc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Ohe=require("node:os"),Lhe=R(require("node:util"),1),Mhe=R(require("node:process"),1);function Fhe(t,...e){Mhe.default.stderr.write(`${Lhe.default.format(t,...e)}${Ohe.EOL}`)}i(Fhe,"log");var Uhe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,$he,yz=[],Ez=[],XN=[];Uhe&&Cz(Uhe);var Ghe=Object.assign(t=>Hhe(t),{enable:Cz,enabled:Iz,disable:Umt,log:Fhe});function Cz(t){$he=t,yz=[],Ez=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Ez.push(r.substring(1)):yz.push(r);for(let r of XN)r.enabled=Iz(r.namespace)}i(Cz,"enable");function Iz(t){if(t.endsWith("*"))return!0;for(let e of Ez)if(qhe(t,e))return!1;for(let e of yz)if(qhe(t,e))return!0;return!1}i(Iz,"enabled");function qhe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let f=[],m="";for(let h of e)h==="*"&&m==="*"||(m=h,f.push(h));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(qhe,"namespaceMatches");function Umt(){let t=$he||"";return Cz(""),t}i(Umt,"disable");function Hhe(t){let e=Object.assign(r,{enabled:Iz(t),destroy:qmt,log:Ghe.log,namespace:t,extend:$mt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),XN.push(e),e}i(Hhe,"createDebugger");function qmt(){let t=XN.indexOf(this);return t>=0?(XN.splice(t,1),!0):!1}i(qmt,"destroy");function $mt(t){let e=Hhe(`${this.namespace}:${t}`);return e.log=this.log,e}i($mt,"extend");var lg=Ghe;var Sz=["verbose","info","warning","error"],zhe={verbose:400,info:300,warning:200,error:100};function Vhe(t,e){e.log=(...r)=>{t.log(...r)}}i(Vhe,"patchLogMethod");function Whe(t){return Sz.includes(t)}i(Whe,"isTypeSpecRuntimeLogLevel");function ZN(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=lg(t.namespace);s.log=(...d)=>{lg.log(...d)};function o(d){if(d&&!Whe(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${Sz.join(",")}`);n=d;let p=[];for(let f of e)a(f)&&p.push(f.namespace);lg.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(Whe(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${Sz.join(", ")}.`));function a(d){return!!(n&&zhe[d.level]<=zhe[n])}i(a,"shouldEnable");function c(d,p){let f=Object.assign(d.extend(p),{level:p});if(Vhe(d,f),a(f)){let m=lg.disable();lg.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 Vhe(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(ZN,"createLoggerContext");var Jhe=ZN({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Gmt=Jhe.logger;function RS(t){return Jhe.createClientLogger(t)}i(RS,"createClientLogger");function eT(t){return t.toLowerCase()}i(eT,"normalizeName");function*Hmt(t){for(let e of t.values())yield[e.name,e.value]}i(Hmt,"headerIterator");var wz=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(eT(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(eT(e))?.value}has(e){return this._headersMap.has(eT(e))}delete(e){this._headersMap.delete(eT(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 Hmt(this._headersMap)}};function No(t){return new wz(t)}i(No,"createHttpHeaders");function em(){return crypto.randomUUID()}i(em,"randomUUID");var xz=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??No(),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||em(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function tT(t){return new xz(t)}i(tT,"createPipelineRequest");var Yhe=new Set(["Deserialize","Serialize","Retry","Sign"]),bz=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&&!Yhe.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Yhe.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(h){return{name:h,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(h){return h==="Retry"?c:h==="Serialize"?s:h==="Deserialize"?a:h==="Sign"?l:o}i(d,"getPhase");for(let h of this._policies){let A=h.policy,y=h.options,E=A.name;if(r.has(E))throw new Error("Duplicate policy names not allowed in pipeline");let I={policy:A,dependsOn:new Set,dependants:new Set};y.afterPhase&&(I.afterPhase=d(y.afterPhase),I.afterPhase.hasAfterPolicies=!0),r.set(E,I),d(y.phase).policies.add(I)}for(let h of this._policies){let{policy:A,options:y}=h,E=A.name,I=r.get(E);if(!I)throw new Error(`Missing node for policy ${E}`);if(y.afterPolicies)for(let x of y.afterPolicies){let b=r.get(x);b&&(I.dependsOn.add(b),b.dependants.add(I))}if(y.beforePolicies)for(let x of y.beforePolicies){let b=r.get(x);b&&(b.dependsOn.add(I),I.dependants.add(b))}}function p(h){h.hasRun=!0;for(let A of h.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let y of A.dependants)y.dependsOn.delete(A);r.delete(A.policy.name),h.policies.delete(A)}}i(p,"walkPhase");function f(){for(let h of u){if(p(h),h.policies.size>0&&h!==o){o.hasRun||p(o);return}h.hasAfterPolicies&&p(o)}}i(f,"walkPhases");let m=0;for(;r.size>0;){m++;let h=e.length;if(f(),e.length<=h&&m>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function rT(){return bz.create()}i(rT,"createEmptyPipeline");function ug(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(ug,"isObject");function tm(t){if(ug(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(tm,"isError");var jhe=require("node:util"),Khe=jhe.inspect.custom;var Bz="REDACTED",zmt=["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"],Vmt=["api-version"],ua=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=zmt.concat(e),r=Vmt.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)||ug(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,Bz);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]=Bz;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]=Bz;return r}};var Wmt=new ua,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,Khe,{value:i(()=>`RestError: ${this.message} - ${Wmt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function nT(t){return t instanceof As?!0:tm(t)&&t.name==="RestError"}i(nT,"isRestError");function Us(t,e){return Buffer.from(t,e)}i(Us,"stringToUint8Array");var sT=R(require("node:http"),1),oT=R(require("node:https"),1),Rz=R(require("node:zlib"),1),Zhe=require("node:stream");var mi=RS("ts-http-runtime");var Jmt={};function NS(t){return t&&typeof t.pipe=="function"}i(NS,"isReadableStream");function Xhe(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(Xhe,"isStreamComplete");function eAe(t){return t&&typeof t.byteLength=="number"}i(eAe,"isArrayBuffer");var iT=class extends Zhe.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}},Nz=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 hc("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 ua;mi.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=Xmt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,A=new iT(h);A.on("error",y=>{mi.error("Error in upload progress",y)}),NS(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Ymt(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?jmt(u,d):u;let m=e.onDownloadProgress;if(m){let h=new iT(m);h.on("error",A=>{mi.error("Error in download progress",A)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await Kmt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();NS(c)&&(u=Xhe(c));let d=Promise.resolve();NS(l)&&(d=Xhe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{mi.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?sT.default.request(c,l):oT.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 hc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&NS(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):eAe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(mi.error("Unrecognized body type",n),u(new As("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?sT.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new sT.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oT.default.globalAgent;let s=e.tlsSettings??Jmt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(mi.info("No cached TLS Agent exist, creating a new Agent"),o=new oT.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Ymt(t){let e=No();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(Ymt,"getResponseHeaders");function jmt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Rz.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Rz.default.createInflate();return t.pipe(n),n}return t}i(jmt,"getDecodedResponseStream");function Kmt(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(Kmt,"streamToText");function Xmt(t){return t?Buffer.isBuffer(t)?t.length:NS(t)?null:eAe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(Xmt,"getBodyLength");function tAe(){return new Nz}i(tAe,"createNodeHttpClient");function aT(){return tAe()}i(aT,"createDefaultHttpClient");var Tz="logPolicy";function cT(t={}){let e=t.logger??mi.info,r=new ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:Tz,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(cT,"logPolicy");var lT="redirectPolicy",rAe=["GET","HEAD"];function uT(t={}){let{maxRetries:e=20}=t;return{name:lT,async sendRequest(r,n){let s=await n(r);return nAe(n,s,e)}}}i(uT,"redirectPolicy");async function nAe(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&rAe.includes(s.method)||o===302&&rAe.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new hc(r?.abortErrorMsg?r?.abortErrorMsg:Zmt)),"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(iAe,"delay");function aAe(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(aAe,"parseHeaderValueAsNumber");var Pz="Retry-After",eht=["retry-after-ms","x-ms-retry-after-ms",Pz];function cAe(t){if(t&&[429,503].includes(t.status))try{for(let s of eht){let o=aAe(t,s);if(o===0||o)return o*(s===Pz?1e3:1)}let e=t.headers.get(Pz);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(cAe,"getRetryAfterInMs");function lAe(t){return Number.isFinite(cAe(t))}i(lAe,"isThrottlingRetryResponse");function _z(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=cAe(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(_z,"throttlingRetryStrategy");var tht=1e3,rht=1e3*64;function mT(t={}){let e=t.retryDelayInMs??tht,r=t.maxRetryDelayInMs??rht;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=sht(o),c=a&&t.ignoreSystemErrors,l=nht(s),u=l&&t.ignoreHttpStatusCodes;return s&&(lAe(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:fT(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(mT,"exponentialRetryStrategy");function nht(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(nht,"isExponentialRetryResponse");function sht(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(sht,"isSystemError");var oht=RS("ts-http-runtime retryPolicy"),iht="retryPolicy";function nm(t,e={maxRetries:3}){let r=e.logger||oht;return{name:iht,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 hc;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 iAe(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(nm,"retryPolicy");var vz="defaultRetryPolicy";function hT(t={}){return{name:vz,sendRequest:nm([_z(),mT(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(hT,"defaultRetryPolicy");var uAe=typeof window<"u"&&typeof window.document<"u",dAe=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),pAe=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",fAe=typeof Bun<"u"&&typeof Bun.version<"u",sm=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var mAe=typeof navigator<"u"&&navigator?.product==="ReactNative";var Qz="formDataPolicy";function aht(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(aht,"formDataToFormDataMap");function AT(){return{name:Qz,async sendRequest(t,e){if(sm&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=aht(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=cht(t.formData):await lht(t.formData,t),t.formData=void 0}return e(t)}}}i(AT,"formDataPolicy");function cht(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(cht,"wwwFormUrlEncode");async function lht(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:No({"Content-Disposition":`form-data; name="${s}"`}),body:Us(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=No();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(lht,"prepareFormData");var XAe=R(FAe(),1),ZAe=R(JAe(),1);var gAt="HTTPS_PROXY",yAt="HTTP_PROXY",EAt="ALL_PROXY",CAt="NO_PROXY",Uz="proxyPolicy",YAe=[],ege=!1,IAt=new Map;function bT(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(bT,"getEnvironmentValue");function tge(){if(!process)return;let t=bT(gAt),e=bT(EAt),r=bT(yAt);return t||e||r}i(tge,"loadEnvironmentProxyValue");function SAt(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(SAt,"isBypassed");function wAt(){let t=bT(CAt);return ege=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(wAt,"loadNoProxy");function qz(t){if(!t&&(t=tge(),!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(qz,"getDefaultProxySettings");function xAt(){let t=tge();return t?new URL(t):void 0}i(xAt,"getDefaultProxySettingsInternal");function jAe(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(jAe,"getUrlFromProxySettings");function KAe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&mi.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 ZAe.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new XAe.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(KAe,"setProxyAgentOnRequest");function BT(t,e){ege||YAe.push(...wAt());let r=t?jAe(t):xAt(),n={};return{name:Uz,async sendRequest(s,o){return!s.proxySettings&&r&&!SAt(s.url,e?.customNoProxyList??YAe,e?.customNoProxyList?void 0:IAt)?KAe(s,n,r):s.proxySettings&&KAe(s,n,jAe(s.proxySettings)),o(s)}}}i(BT,"proxyPolicy");var $z="agentPolicy";function RT(t){return{name:$z,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(RT,"agentPolicy");var Gz="tlsPolicy";function NT(t){return{name:Gz,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(NT,"tlsPolicy");function TT(t){return typeof t.stream=="function"}i(TT,"isBlob");var PT=require("stream");async function*rge(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(rge,"streamAsyncIterator");function bAt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=rge.bind(t)),t.values||(t.values=rge.bind(t))}i(bAt,"makeAsyncIterable");function nge(t){return t instanceof ReadableStream?(bAt(t),PT.Readable.fromWeb(t)):t}i(nge,"ensureNodeStream");function BAt(t){return t instanceof Uint8Array?PT.Readable.from(Buffer.from(t)):TT(t)?nge(t.stream()):nge(t)}i(BAt,"toStream");async function sge(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(BAt);return PT.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(sge,"concat");function RAt(){return`----AzSDKFormBoundary${em()}`}i(RAt,"generateBoundary");function NAt(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r -`;return e}i(NAt,"encodeHeaders");function TAt(t){return t instanceof Uint8Array?t.byteLength:TT(t)?t.size===-1?void 0:t.size:void 0}i(TAt,"getLength");function PAt(t){let e=0;for(let r of t){let n=TAt(r);if(n===void 0)return;e+=n}return e}i(PAt,"getTotalLength");async function _At(t,e,r){let n=[Us(`--${r}`,"utf-8"),...e.flatMap(o=>[Us(`\r -`,"utf-8"),Us(NAt(o.headers),"utf-8"),Us(`\r +`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new hS(o));return n.searchPaths.push(...kH(n.patterns)),n})}static stat(e,r,n){return HH(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ng.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ui(`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 ng.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield ng.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){ui(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var Sdt=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 Lfe(t,e){return Sdt(this,void 0,void 0,function*(){return yield QN.create(t,e)})}i(Lfe,"create");var jN=R(require("crypto"),1),ag=R(require("fs"),1),Zf=R(require("path"),1),Phe=R(Nhe(),1),_he=R(require("util"),1);var SS;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(SS||(SS={}));var ms;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ms||(ms={}));var Bo;(function(t){t.GNU="gnu",t.BSD="bsd"})(Bo||(Bo={}));var WN=2,JN=5e3,dz=5e3,pz=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,The=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,wS="cache.tar",fz="manifest.txt",Zar=10*Math.pow(1024,3),YN="cache read denied:";var ig=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){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)}},vmt="1.0";function em(){return ig(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=Zf.join(n,"actions","temp")}let r=Zf.join(e,jN.randomUUID());return yield Vf(r),r})}i(em,"createTempDirectory");function fc(t){return ag.statSync(t).size}i(fc,"getArchiveFileSizeInBytes");function mz(t){return ig(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 Lfe(t.join(` +`),{implicitDescendants:!1});try{for(var u=!0,d=_mt(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=Zf.relative(c,s).replace(new RegExp(`\\${Zf.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(mz,"resolvePaths");function xS(t){return ig(this,void 0,void 0,function*(){return _he.promisify(ag.unlink)(t)})}i(xS,"unlinkFile");function vhe(t){return ig(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Cd(`${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(vhe,"getVersion");function bS(){return ig(this,void 0,void 0,function*(){let t=yield vhe("zstd",["--quiet"]),e=Phe.clean(t);return T(`zstd version: ${e}`),t===""?ms.Gzip:ms.ZstdWithoutLong})}i(bS,"getCompressionMethod");function Td(t){return t===ms.Gzip?SS.Gzip:SS.Zstd}i(Td,"getCacheFileName");function Qhe(){return ig(this,void 0,void 0,function*(){return ag.existsSync(pz)?pz:(yield vhe("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}i(Qhe,"getGnuTarPathOnWindows");function hz(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(hz,"assertDefined");function cg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(vmt),jN.createHash("sha256").update(n.join("|")).digest("hex")}i(cg,"getCacheVersion");function Dhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(Dhe,"getRuntimeToken");var RS=R(require("http"),1),yz=R(require("https"),1);function Az(t){let e=t.protocol==="https:";if(Qmt(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 XN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new XN(`http://${r}`)}else return}i(Az,"getProxyUrl");function Qmt(t){if(!t.hostname)return!1;let e=t.hostname;if(Dmt(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(Qmt,"checkBypass");function Dmt(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(Dmt,"isLoopbackAddress");var XN=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 Pd=R(eA(),1),khe=R(Gf(),1);var Rr=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 hs;(function(t){t.Accept="accept",t.ContentType="content-type"})(hs||(hs={}));var pu;(function(t){t.ApplicationJson="application/json"})(pu||(pu={}));var Omt=[At.MovedPermanently,At.ResourceMoved,At.SeeOther,At.TemporaryRedirect,At.PermanentRedirect],Lmt=[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout],Mmt=["OPTIONS","GET","DELETE","HEAD"],Fmt=10,Umt=5,mc=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},gz=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(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))})}))})}};var Ro=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[hs.Accept]=this._getExistingOrDefaultHeader(n,hs.Accept,pu.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,pu.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,pu.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,pu.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,pu.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[hs.Accept]=this._getExistingOrDefaultHeader(o,hs.Accept,pu.ApplicationJson),o[hs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,pu.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&&Mmt.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 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&&Omt.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||!Lmt.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 gz(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=Az(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?yz:RS;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({},BS(this.requestOptions.headers),BS(e||{})):BS(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=BS(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=BS(this.requestOptions.headers)[hs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[hs.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=Az(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||RS.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?Pd.httpsOverHttps:Pd.httpsOverHttp:l=u?Pd.httpOverHttps:Pd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new yz.Agent(c):new RS.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 khe.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(Fmt,e);let r=Umt*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===At.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 mc(d,o);p.result=a.result,s(p)}else n(a)}))})}},BS=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var qmt=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 lg=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 qmt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Fg=R(require("fs"),1),pIe=require("url");var hc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var Lhe=require("node:os"),Mhe=R(require("node:util"),1),Fhe=R(require("node:process"),1);function Uhe(t,...e){Fhe.default.stderr.write(`${Mhe.default.format(t,...e)}${Lhe.EOL}`)}i(Uhe,"log");var qhe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ghe,Ez=[],Cz=[],ZN=[];qhe&&Iz(qhe);var Hhe=Object.assign(t=>zhe(t),{enable:Iz,enabled:Sz,disable:$mt,log:Uhe});function Iz(t){Ghe=t,Ez=[],Cz=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Cz.push(r.substring(1)):Ez.push(r);for(let r of ZN)r.enabled=Sz(r.namespace)}i(Iz,"enable");function Sz(t){if(t.endsWith("*"))return!0;for(let e of Cz)if($he(t,e))return!1;for(let e of Ez)if($he(t,e))return!0;return!1}i(Sz,"enabled");function $he(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let f=[],m="";for(let h of e)h==="*"&&m==="*"||(m=h,f.push(h));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($he,"namespaceMatches");function $mt(){let t=Ghe||"";return Iz(""),t}i($mt,"disable");function zhe(t){let e=Object.assign(r,{enabled:Sz(t),destroy:Gmt,log:Hhe.log,namespace:t,extend:Hmt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),ZN.push(e),e}i(zhe,"createDebugger");function Gmt(){let t=ZN.indexOf(this);return t>=0?(ZN.splice(t,1),!0):!1}i(Gmt,"destroy");function Hmt(t){let e=zhe(`${this.namespace}:${t}`);return e.log=this.log,e}i(Hmt,"extend");var ug=Hhe;var wz=["verbose","info","warning","error"],Vhe={verbose:400,info:300,warning:200,error:100};function Whe(t,e){e.log=(...r)=>{t.log(...r)}}i(Whe,"patchLogMethod");function Jhe(t){return wz.includes(t)}i(Jhe,"isTypeSpecRuntimeLogLevel");function eT(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=ug(t.namespace);s.log=(...d)=>{ug.log(...d)};function o(d){if(d&&!Jhe(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${wz.join(",")}`);n=d;let p=[];for(let f of e)a(f)&&p.push(f.namespace);ug.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(Jhe(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${wz.join(", ")}.`));function a(d){return!!(n&&Vhe[d.level]<=Vhe[n])}i(a,"shouldEnable");function c(d,p){let f=Object.assign(d.extend(p),{level:p});if(Whe(d,f),a(f)){let m=ug.disable();ug.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 Whe(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(eT,"createLoggerContext");var Yhe=eT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),zmt=Yhe.logger;function NS(t){return Yhe.createClientLogger(t)}i(NS,"createClientLogger");function tT(t){return t.toLowerCase()}i(tT,"normalizeName");function*Vmt(t){for(let e of t.values())yield[e.name,e.value]}i(Vmt,"headerIterator");var xz=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(tT(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(tT(e))?.value}has(e){return this._headersMap.has(tT(e))}delete(e){this._headersMap.delete(tT(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 Vmt(this._headersMap)}};function No(t){return new xz(t)}i(No,"createHttpHeaders");function tm(){return crypto.randomUUID()}i(tm,"randomUUID");var bz=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??No(),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||tm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function rT(t){return new bz(t)}i(rT,"createPipelineRequest");var jhe=new Set(["Deserialize","Serialize","Retry","Sign"]),Bz=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&&!jhe.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!jhe.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(h){return{name:h,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(h){return h==="Retry"?c:h==="Serialize"?s:h==="Deserialize"?a:h==="Sign"?l:o}i(d,"getPhase");for(let h of this._policies){let A=h.policy,y=h.options,E=A.name;if(r.has(E))throw new Error("Duplicate policy names not allowed in pipeline");let I={policy:A,dependsOn:new Set,dependants:new Set};y.afterPhase&&(I.afterPhase=d(y.afterPhase),I.afterPhase.hasAfterPolicies=!0),r.set(E,I),d(y.phase).policies.add(I)}for(let h of this._policies){let{policy:A,options:y}=h,E=A.name,I=r.get(E);if(!I)throw new Error(`Missing node for policy ${E}`);if(y.afterPolicies)for(let x of y.afterPolicies){let b=r.get(x);b&&(I.dependsOn.add(b),b.dependants.add(I))}if(y.beforePolicies)for(let x of y.beforePolicies){let b=r.get(x);b&&(b.dependsOn.add(I),I.dependants.add(b))}}function p(h){h.hasRun=!0;for(let A of h.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let y of A.dependants)y.dependsOn.delete(A);r.delete(A.policy.name),h.policies.delete(A)}}i(p,"walkPhase");function f(){for(let h of u){if(p(h),h.policies.size>0&&h!==o){o.hasRun||p(o);return}h.hasAfterPolicies&&p(o)}}i(f,"walkPhases");let m=0;for(;r.size>0;){m++;let h=e.length;if(f(),e.length<=h&&m>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function nT(){return Bz.create()}i(nT,"createEmptyPipeline");function dg(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(dg,"isObject");function rm(t){if(dg(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(rm,"isError");var Khe=require("node:util"),Xhe=Khe.inspect.custom;var Rz="REDACTED",Wmt=["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"],Jmt=["api-version"],ua=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=Wmt.concat(e),r=Jmt.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)||dg(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,Rz);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]=Rz;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]=Rz;return r}};var Ymt=new ua,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,Xhe,{value:i(()=>`RestError: ${this.message} + ${Ymt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sT(t){return t instanceof As?!0:rm(t)&&t.name==="RestError"}i(sT,"isRestError");function Us(t,e){return Buffer.from(t,e)}i(Us,"stringToUint8Array");var oT=R(require("node:http"),1),iT=R(require("node:https"),1),Nz=R(require("node:zlib"),1),eAe=require("node:stream");var mi=NS("ts-http-runtime");var jmt={};function TS(t){return t&&typeof t.pipe=="function"}i(TS,"isReadableStream");function Zhe(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(Zhe,"isStreamComplete");function tAe(t){return t&&typeof t.byteLength=="number"}i(tAe,"isArrayBuffer");var aT=class extends eAe.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}},Tz=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 hc("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 ua;mi.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=eht(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,A=new aT(h);A.on("error",y=>{mi.error("Error in upload progress",y)}),TS(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Kmt(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?Xmt(u,d):u;let m=e.onDownloadProgress;if(m){let h=new aT(m);h.on("error",A=>{mi.error("Error in download progress",A)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await Zmt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();TS(c)&&(u=Zhe(c));let d=Promise.resolve();TS(l)&&(d=Zhe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{mi.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?oT.default.request(c,l):iT.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 hc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&TS(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):tAe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(mi.error("Unrecognized body type",n),u(new As("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?oT.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new oT.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return iT.default.globalAgent;let s=e.tlsSettings??jmt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(mi.info("No cached TLS Agent exist, creating a new Agent"),o=new iT.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Kmt(t){let e=No();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(Kmt,"getResponseHeaders");function Xmt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Nz.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Nz.default.createInflate();return t.pipe(n),n}return t}i(Xmt,"getDecodedResponseStream");function Zmt(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(Zmt,"streamToText");function eht(t){return t?Buffer.isBuffer(t)?t.length:TS(t)?null:tAe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(eht,"getBodyLength");function rAe(){return new Tz}i(rAe,"createNodeHttpClient");function cT(){return rAe()}i(cT,"createDefaultHttpClient");var Pz="logPolicy";function lT(t={}){let e=t.logger??mi.info,r=new ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:Pz,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(lT,"logPolicy");var uT="redirectPolicy",nAe=["GET","HEAD"];function dT(t={}){let{maxRetries:e=20}=t;return{name:uT,async sendRequest(r,n){let s=await n(r);return sAe(n,s,e)}}}i(dT,"redirectPolicy");async function sAe(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&nAe.includes(s.method)||o===302&&nAe.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n{let o,a,c=i(()=>s(new hc(r?.abortErrorMsg?r?.abortErrorMsg:tht)),"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(aAe,"delay");function cAe(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(cAe,"parseHeaderValueAsNumber");var _z="Retry-After",rht=["retry-after-ms","x-ms-retry-after-ms",_z];function lAe(t){if(t&&[429,503].includes(t.status))try{for(let s of rht){let o=cAe(t,s);if(o===0||o)return o*(s===_z?1e3:1)}let e=t.headers.get(_z);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(lAe,"getRetryAfterInMs");function uAe(t){return Number.isFinite(lAe(t))}i(uAe,"isThrottlingRetryResponse");function vz(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=lAe(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(vz,"throttlingRetryStrategy");var nht=1e3,sht=1e3*64;function hT(t={}){let e=t.retryDelayInMs??nht,r=t.maxRetryDelayInMs??sht;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=iht(o),c=a&&t.ignoreSystemErrors,l=oht(s),u=l&&t.ignoreHttpStatusCodes;return s&&(uAe(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:mT(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(hT,"exponentialRetryStrategy");function oht(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(oht,"isExponentialRetryResponse");function iht(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(iht,"isSystemError");var aht=NS("ts-http-runtime retryPolicy"),cht="retryPolicy";function sm(t,e={maxRetries:3}){let r=e.logger||aht;return{name:cht,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 hc;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 aAe(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(sm,"retryPolicy");var Qz="defaultRetryPolicy";function AT(t={}){return{name:Qz,sendRequest:sm([vz(),hT(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(AT,"defaultRetryPolicy");var dAe=typeof window<"u"&&typeof window.document<"u",pAe=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),fAe=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",mAe=typeof Bun<"u"&&typeof Bun.version<"u",om=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var hAe=typeof navigator<"u"&&navigator?.product==="ReactNative";var Dz="formDataPolicy";function lht(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(lht,"formDataToFormDataMap");function gT(){return{name:Dz,async sendRequest(t,e){if(om&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=lht(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=uht(t.formData):await dht(t.formData,t),t.formData=void 0}return e(t)}}}i(gT,"formDataPolicy");function uht(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(uht,"wwwFormUrlEncode");async function dht(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:No({"Content-Disposition":`form-data; name="${s}"`}),body:Us(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=No();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(dht,"prepareFormData");var ZAe=R(UAe(),1),ege=R(YAe(),1);var EAt="HTTPS_PROXY",CAt="HTTP_PROXY",IAt="ALL_PROXY",SAt="NO_PROXY",qz="proxyPolicy",jAe=[],tge=!1,wAt=new Map;function BT(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(BT,"getEnvironmentValue");function rge(){if(!process)return;let t=BT(EAt),e=BT(IAt),r=BT(CAt);return t||e||r}i(rge,"loadEnvironmentProxyValue");function xAt(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(xAt,"isBypassed");function bAt(){let t=BT(SAt);return tge=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(bAt,"loadNoProxy");function $z(t){if(!t&&(t=rge(),!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($z,"getDefaultProxySettings");function BAt(){let t=rge();return t?new URL(t):void 0}i(BAt,"getDefaultProxySettingsInternal");function KAe(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(KAe,"getUrlFromProxySettings");function XAe(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&mi.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 ege.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new ZAe.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(XAe,"setProxyAgentOnRequest");function RT(t,e){tge||jAe.push(...bAt());let r=t?KAe(t):BAt(),n={};return{name:qz,async sendRequest(s,o){return!s.proxySettings&&r&&!xAt(s.url,e?.customNoProxyList??jAe,e?.customNoProxyList?void 0:wAt)?XAe(s,n,r):s.proxySettings&&XAe(s,n,KAe(s.proxySettings)),o(s)}}}i(RT,"proxyPolicy");var Gz="agentPolicy";function NT(t){return{name:Gz,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(NT,"agentPolicy");var Hz="tlsPolicy";function TT(t){return{name:Hz,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(TT,"tlsPolicy");function PT(t){return typeof t.stream=="function"}i(PT,"isBlob");var _T=require("stream");async function*nge(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(nge,"streamAsyncIterator");function RAt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=nge.bind(t)),t.values||(t.values=nge.bind(t))}i(RAt,"makeAsyncIterable");function sge(t){return t instanceof ReadableStream?(RAt(t),_T.Readable.fromWeb(t)):t}i(sge,"ensureNodeStream");function NAt(t){return t instanceof Uint8Array?_T.Readable.from(Buffer.from(t)):PT(t)?sge(t.stream()):sge(t)}i(NAt,"toStream");async function oge(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(NAt);return _T.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(oge,"concat");function TAt(){return`----AzSDKFormBoundary${tm()}`}i(TAt,"generateBoundary");function PAt(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r +`;return e}i(PAt,"encodeHeaders");function _At(t){return t instanceof Uint8Array?t.byteLength:PT(t)?t.size===-1?void 0:t.size:void 0}i(_At,"getLength");function vAt(t){let e=0;for(let r of t){let n=_At(r);if(n===void 0)return;e+=n}return e}i(vAt,"getTotalLength");async function QAt(t,e,r){let n=[Us(`--${r}`,"utf-8"),...e.flatMap(o=>[Us(`\r +`,"utf-8"),Us(PAt(o.headers),"utf-8"),Us(`\r `,"utf-8"),o.body,Us(`\r --${r}`,"utf-8")]),Us(`--\r \r -`,"utf-8")],s=PAt(n);s&&t.headers.set("Content-Length",s),t.body=await sge(n)}i(_At,"buildRequestBody");var _S="multipartPolicy",vAt=70,QAt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DAt(t){if(t.length>vAt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!QAt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(DAt,"assertValidBoundary");function _T(){return{name:_S,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?DAt(r):r=RAt(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await _At(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(_T,"multipartPolicy");function vT(){return rT()}i(vT,"createEmptyPipeline");var oge=ZN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),zpr=oge.logger;function yc(t){return oge.createClientLogger(t)}i(yc,"createClientLogger");var Ec=yc("core-rest-pipeline");function Vz(t={}){return cT({logger:Ec.info,...t})}i(Vz,"logPolicy");var Wz=lT;function Jz(t={}){return uT(t)}i(Jz,"redirectPolicy");var QT=R(require("node:os"),1),DT=R(require("node:process"),1);function ige(){return"User-Agent"}i(ige,"getHeaderName");async function age(t){if(DT.default&&DT.default.versions){let e=`${QT.default.type()} ${QT.default.release()}; ${QT.default.arch()}`,r=DT.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(age,"setPlatformSpecificData");var kT="1.22.2";function $At(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i($At,"getUserAgentString");function cge(){return ige()}i(cge,"getUserAgentHeaderName");async function OT(t){let e=new Map;e.set("core-rest-pipeline",kT),await age(e);let r=$At(e);return t?`${t} ${r}`:r}i(OT,"getUserAgentValue");var lge=cge(),uge="userAgentPolicy";function Yz(t={}){let e=OT(t.userAgentPrefix);return{name:uge,async sendRequest(r,n){return r.headers.has(lge)||r.headers.set(lge,await e),n(r)}}}i(Yz,"userAgentPolicy");var vo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function jz(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new vo(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(jz,"createAbortablePromise");var WAt="The delay was aborted.";function vS(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return jz(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??WAt})}i(vS,"delay");function _d(t){if(tm(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(_d,"getErrorMessage");function dge(t){return tm(t)}i(dge,"isError");function Ag(){return em()}i(Ag,"randomUUID");var pt=sm;var pge=Symbol("rawContent");function Xz(t){return typeof t[pge]=="function"}i(Xz,"hasRawContent");function fge(t){return Xz(t)?t[pge]():t}i(fge,"getRawContent");var LT=_S;function Zz(){let t=_T();return{name:LT,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Xz(n.body)&&(n.body=fge(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(Zz,"multipartPolicy");var e3=dT;function t3(){return pT()}i(t3,"decompressResponsePolicy");function r3(t={}){return hT(t)}i(r3,"defaultRetryPolicy");function n3(){return AT()}i(n3,"formDataPolicy");function vd(t){return qz(t)}i(vd,"getDefaultProxySettings");function s3(t,e){return BT(t,e)}i(s3,"proxyPolicy");var mge="setClientRequestIdPolicy";function o3(t="x-ms-client-request-id"){return{name:mge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(o3,"setClientRequestIdPolicy");function i3(t){return RT(t)}i(i3,"agentPolicy");function a3(t){return NT(t)}i(a3,"tlsPolicy");var gg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function hge(t={}){let e=new c3(t.parentContext);return t.span&&(e=e.setValue(gg.span,t.span)),t.namespace&&(e=e.setValue(gg.namespace,t.namespace)),e}i(hge,"createTracingContext");var c3=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 gge=R(Age(),1),FT=gge.state;function JAt(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(JAt,"createDefaultTracingSpan");function YAt(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:JAt(),tracingContext:hge({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(YAt,"createDefaultInstrumenter");function QS(){return FT.instrumenterImplementation||(FT.instrumenterImplementation=YAt()),FT.instrumenterImplementation}i(QS,"getInstrumenter");function DS(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let f=QS().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),m=f.tracingContext,h=f.span;m.getValue(gg.namespace)||(m=m.setValue(gg.namespace,e)),h.setAttribute("az.namespace",m.getValue(gg.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:m}});return{span:h,updatedOptions:A}}i(s,"startSpan");async function o(u,d,p,f){let{span:m,updatedOptions:h}=s(u,d,f);try{let A=await a(h.tracingOptions.tracingContext,()=>Promise.resolve(p(h,m)));return m.setStatus({status:"success"}),A}catch(A){throw m.setStatus({status:"error",error:A}),A}finally{m.end()}}i(o,"withSpan");function a(u,d,...p){return QS().withContext(u,d,...p)}i(a,"withContext");function c(u){return QS().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return QS().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(DS,"createTracingClient");var pu=As;function am(t){return nT(t)}i(am,"isRestError");var yge="tracingPolicy";function l3(t={}){let e=OT(t.userAgentPrefix),r=new ua({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=jAt();return{name:yge,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}=KAt(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return ZAt(l,d),d}catch(d){throw XAt(l,d),d}}}}i(l3,"tracingPolicy");function jAt(){try{return DS({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:kT})}catch(t){Ec.warning(`Error when creating the TracingClient: ${_d(t)}`);return}}i(jAt,"tryCreateTracingClient");function KAt(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){Ec.warning(`Skipping creating a tracing span due to an error: ${_d(n)}`);return}}i(KAt,"tryCreateSpan");function XAt(t,e){try{t.setStatus({status:"error",error:dge(e)?e:void 0}),am(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Ec.warning(`Skipping tracing span processing due to an error: ${_d(r)}`)}}i(XAt,"tryProcessError");function ZAt(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){Ec.warning(`Skipping tracing span processing due to an error: ${_d(r)}`)}}i(ZAt,"tryProcessResponse");function UT(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(UT,"wrapAbortSignalLike");var egt="wrapAbortSignalLikePolicy";function Ege(){return{name:egt,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=UT(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(Ege,"wrapAbortSignalLikePolicy");function u3(t){let e=vT();return pt&&(t.agent&&e.addPolicy(i3(t.agent)),t.tlsOptions&&e.addPolicy(a3(t.tlsOptions)),e.addPolicy(s3(t.proxyOptions)),e.addPolicy(t3())),e.addPolicy(Ege()),e.addPolicy(n3(),{beforePolicies:[LT]}),e.addPolicy(Yz(t.userAgentOptions)),e.addPolicy(o3(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(Zz(),{afterPhase:"Deserialize"}),e.addPolicy(r3(t.retryOptions),{phase:"Retry"}),e.addPolicy(l3({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),pt&&e.addPolicy(Jz(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(Vz(t.loggingOptions),{afterPhase:"Sign"}),e}i(u3,"createPipelineFromOptions");function kS(){let t=aT();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?UT(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(kS,"createDefaultHttpClient");function fu(t){return No(t)}i(fu,"createHttpHeaders");function OS(t){return tT(t)}i(OS,"createPipelineRequest");var IAr=yc("core-rest-pipeline retryPolicy");var tgt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function rgt(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(d3,"createTokenCycler");var wge="bearerTokenAuthenticationPolicy";async function qT(t,e){try{return[await e(t),void 0]}catch(r){if(am(r)&&r.response)return[r.response,r];throw r}}i(qT,"trySendRequest");async function ngt(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(ngt,"defaultAuthorizeRequest");function Cge(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(Cge,"isChallengeResponse");async function Ige(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(Ige,"authorizeRequestOnCaeChallenge");function yg(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||Ec,o={authorizeRequest:n?.authorizeRequest?.bind(n)??ngt,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?d3(e):()=>Promise.resolve(null);return{name:wge,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 qT(c,l),Cge(u)){let f=Sge(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 Ige({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await qT(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 qT(c,l)),Cge(u)&&(f=Sge(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 Ige({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await qT(c,l))}}if(d)throw d;return u}}}i(yg,"bearerTokenAuthenticationPolicy");function sgt(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(sgt,"parseChallenges");function Sge(t){return t?sgt(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(Sge,"getCaeChallengeClaims");function Qo(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(Qo,"isTokenCredential");var p3="DisableKeepAlivePolicy";function xge(){return{name:p3,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(xge,"createDisableKeepAlivePolicy");function bge(t){return t.getOrderedPolicies().some(e=>e.name===p3)}i(bge,"pipelineContainsDisableKeepAlivePolicy");function f3(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(f3,"encodeByteArray");function m3(t){return Buffer.from(t,"base64")}i(m3,"decodeString");function igt(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(igt,"isPrimitiveBody");var agt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bge(t){return agt.test(t)}i(Bge,"isDuration");var cgt=/^[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 Rge(t){return cgt.test(t)}i(Rge,"isValidUuid");function lgt(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(lgt,"handleNullableResponseAndWrappableBody");function h3(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 lgt({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:igt(t.parsedBody,o)})}i(h3,"flattenResponse");var A3=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:h,UniqueItems:A}=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(y)!==E)&&s("UniqueItems",A)}}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=hgt(c,n,r):c.match(/^Enum$/i)!==null?a=Agt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=Egt(c,r,n):c.match(/^ByteArray$/i)!==null?a=ggt(n,r):c.match(/^Base64Url$/i)!==null?a=ygt(n,r):c.match(/^Sequence$/i)!==null?a=Cgt(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=Igt(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=wgt(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=bgt(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=mgt(r):c.match(/^ByteArray$/i)!==null?a=m3(r):c.match(/^Base64Url$/i)!==null?a=pgt(r):c.match(/^Sequence$/i)!==null?a=Rgt(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=Bgt(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Do(t={},e=!1){return new A3(t,e)}i(Do,"createSerializer");function ugt(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(ugt,"trimEnd");function dgt(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=f3(t);return ugt(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(dgt,"bufferToBase64Url");function pgt(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,"/"),m3(t)}}i(pgt,"base64UrlToByteArray");function g3(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(g3,"splitSerializeName");function fgt(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(fgt,"dateToUnixTime");function mgt(t){if(t)return new Date(t*1e3)}i(mgt,"unixTimeToDate");function hgt(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"&&Rge(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(hgt,"serializeBasicTypes");function Agt(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(Agt,"serializeEnumType");function ggt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=f3(e)}return e}i(ggt,"serializeByteArrayType");function ygt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=dgt(e)}return e}i(ygt,"serializeBase64UrlType");function Egt(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=fgt(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Bge(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(Egt,"serializeDateTypes");function Cgt(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(wgt,"serializeCompositeType");function _ge(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(_ge,"getXmlObjectValue");function xgt(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(xgt,"isSpecialXmlProperty");function bgt(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";$T(t,e)&&(e=vge(t,e,r,"serializedName"));let a=Pge(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],f=g3(a[d].serializedName);l.push(f[0]);let{serializedName:m,xmlName:h,xmlElementName:A}=p,y=n;m!==""&&m!==void 0&&(y=n+"."+m);let E=p.headerCollectionPrefix;if(E){let I={};for(let x of Object.keys(r))x.startsWith(E)&&(I[x.substring(E.length)]=t.deserialize(p.type.value,r[x],y,s)),l.push(x);c[d]=I}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][h],y,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let I=A||h||m;if(p.xmlIsWrapped){let b=r[h]?.[A]??[];c[d]=t.deserialize(p,b,y,s),l.push(h)}else{let x=r[I];c[d]=t.deserialize(p,x,y,s),l.push(I)}}else{let I,x=r,b=0;for(let v of f){if(!x)break;b++,x=x[v]}x===null&&b{for(let f in a)if(g3(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)&&!xgt(d,s)&&(c[d]=r[d]);return c}i(bgt,"deserializeCompositeType");function Bgt(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(Bgt,"deserializeDictionaryType");function Rgt(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=kge(t,n);!a.propertyFound&&r&&(a=kge(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=Dd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(Dd,"getOperationArgumentValueFromParameter");function kge(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(Dgt,"deserializeResponseBody");function kgt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(kgt,"isOperationSpecEmpty");function Ogt(t,e,r,n){let s=200<=t.status&&t.status<300;if(kgt(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 pu(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 h=p;if(e.isXML&&u.type.name===Cc.Sequence){h=[];let A=u.xmlElementName;typeof p=="object"&&A&&(h=p[A])}f=e.serializer.deserialize(u,h,"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(Ogt,"handleErrorResponse");async function Lgt(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||pu.PARSE_ERROR;throw new pu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(Lgt,"parse");function Mge(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Cc.Stream&&e.add(Number(r))}return e}i(Mge,"getStreamingResponseStatusCodes");function Ic(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(Ic,"getPathStringFromParameter");var Fge="serializationPolicy";function HT(t={}){let e=t.stringifyXML;return{name:Fge,async sendRequest(r,n){let s=mu(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(Mgt(r,a,o),Fgt(r,a,o,e)),n(r)}}}i(HT,"serializationPolicy");function Mgt(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=Dd(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,Ic(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||Ic(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(Mgt,"serializeHeaders");function Fgt(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=Dd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:f,xmlNamespacePrefix:m,nullable:h}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||h&&t.body===null||l){let y=Ic(r.requestBody);t.body=r.serializer.serialize(c,t.body,y,o);let E=A===Cc.Stream;if(r.isXML){let I=m?`xmlns:${m}`:"xmlns",x=Ugt(f,I,A,t.body,o);A===Cc.Sequence?t.body=n(qgt(x,p||d||u,I,f),{rootName:d||u,xmlCharKey:a}):E||(t.body=n(x,{rootName:d||u,xmlCharKey:a}))}else{if(A===Cc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;E||(t.body=JSON.stringify(t.body))}}}catch(y){throw new Error(`Error "${y.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=Dd(e,c);if(l!=null){let u=c.mapper.serializedName||Ic(c);t.formData[u]=r.serializer.serialize(c.mapper,l,Ic(c),o)}}}}i(Fgt,"serializeRequestBody");function Ugt(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(Ugt,"getXmlValueWithNamespace");function qgt(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(qgt,"prepareXMLRootList");function LS(t={}){let e=u3(t??{});return t.credentialOptions&&e.addPolicy(yg({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(HT(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(E3(t.deserializationOptions),{phase:"Deserialize"}),e}i(LS,"createClientPipeline");var C3;function Uge(){return C3||(C3=kS()),C3}i(Uge,"getCachedDefaultHttpClient");var $gt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function $ge(t,e,r,n){let s=Ggt(e,r,n),o=!1,a=qge(t,s);if(e.path){let u=qge(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),Hgt(u)?(a=u,o=!0):a=zgt(a,u)}let{queryParams:c,sequenceParams:l}=Vgt(e,r,n);return a=Jgt(a,c,l,o),a}i($ge,"getRequestUrl");function qge(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(qge,"replaceAll");function Ggt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=Dd(e,s,r),a=Ic(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(Ggt,"calculateUrlReplacements");function Hgt(t){return t.includes("://")}i(Hgt,"isAbsoluteUrl");function zgt(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(zgt,"appendPath");function Vgt(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=Dd(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,Ic(o));let c=o.collectionFormat?$gt[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||Ic(o),a)}}return{queryParams:n,sequenceParams:s}}i(Vgt,"calculateQueryParameters");function Wgt(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(Wgt,"simpleParseQueryParams");function Jgt(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=Wgt(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(Jgt,"appendQueryParams");var I3=yc("core-client");var MS=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&&I3.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||Uge(),this.pipeline=e.pipeline||Ygt(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=$ge(n,r,e,this),o=OS({url:s});o.method=r.httpMethod;let a=mu(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=Mge(r));try{let u=await this.sendRequest(o),d=h3(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=h3(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function Ygt(t){let e=jgt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return LS({...t,credentialOptions:r})}i(Ygt,"createDefaultPipeline");function jgt(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(jgt,"getCredentialScopes");var Gge={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Kgt(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(Kgt,"isUuid");var zT=i(async t=>{let e=ryt(t.request),r=eyt(t.response);if(r){let n=tyt(r),s=Zgt(t,n),o=Xgt(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(Gge.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function Xgt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Kgt(n))return n}i(Xgt,"extractTenantId");function Zgt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Gge.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(Zgt,"buildScopes");function eyt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(eyt,"getChallenge");function tyt(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(tyt,"parseChallenge");function ryt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(ryt,"requestToOptions");var Hge=Symbol("Original PipelineRequest"),nyt=Symbol.for("@azure/core-client original request");function US(t,e={}){let n=t[Hge],s=fu(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=OS({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[nyt]=e.originalRequest),o}}i(US,"toPipelineRequest");function cm(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:qS(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===Hge?t:o==="clone"?()=>cm(US(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(cm,"toWebResourceLike");function qS(t){return new S3(t.toJSON({preserveCase:!0}))}i(qS,"toHttpHeadersLike");function FS(t){return t.toLowerCase()}i(FS,"getHeaderKey");var S3=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[FS(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[FS(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[FS(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[FS(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(cm(e,{createProxy:!0}));return WT(r)},"sendRequest")}}i(b3,"convertHttpClient");var Wge=":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",iyt=Wge+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ayt="["+Wge+"]["+iyt+"]*",cyt=new RegExp("^"+ayt+"$");function JT(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 Jge(t){return typeof t<"u"}i(Jge,"isExist");var GS=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],YT=["__proto__","constructor","prototype"];var lyt={allowBooleanAttributes:!1,unpairedTags:[]};function jT(t,e){e=Object.assign({},lyt,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--),!gyt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Nr("InvalidTag",p,gs(t,o))}let u=pyt(t,o);if(u===!1)return Nr("InvalidAttr","Attributes for '"+l+"' have open quote.",gs(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=Xge(d,e);if(f===!0)n=!0;else return Nr(f.err.code,f.err.msg,gs(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Nr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",gs(t,a));if(r.length===0)return Nr("InvalidTag","Closing tag '"+l+"' has not been opened.",gs(t,a));{let p=r.pop();if(l!==p.tagName){let f=gs(t,p.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",gs(t,a))}r.length==0&&(s=!0)}}else return Nr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",gs(t,o));else{let p=Xge(d,e);if(p!==!0)return Nr(p.err.code,p.err.msg,gs(t,o-d.length+p.err.line));if(s===!0)return Nr("InvalidXml","Multiple possible root nodes found.",gs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return Nr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Nr("InvalidXml","Start tag expected.",1);return!0}i(jT,"validate");function Yge(t){return t===" "||t===" "||t===` -`||t==="\r"}i(Yge,"isWhiteSpace");function jge(t,e){let r=e;for(;e5&&n==="xml")return Nr("InvalidXml","XML declaration allowed only at the start of the document.",gs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(jge,"readPI");function Kge(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(Kge,"readCommentAndCDATA");var uyt='"',dyt="'";function pyt(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(pyt,"readAttributeStr");var fyt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Xge(t,e){let r=JT(t,fyt),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"},eye={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"},tye={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"},rye={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"},nye={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"},sye={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:"<"},oye={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"},iye={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"},aye={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"},cye={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"},KT={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"},lye={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"},uye={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"},yyt={...Zge,...eye,...tye,...rye,...nye,...sye,...oye,...iye,...aye,...cye,...KT,...lye,...uye},zS={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},R3={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 Eyt=new Set("!?\\\\/[]$%{}^&*()<>|+");function dye(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Eyt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(dye,"validateEntityName");function N3(...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(N3,"mergeEntityMaps");var lm="external",XT="base",T3="all";function Cyt(t){return!t||t===lm?new Set([lm]):t===T3?new Set([T3]):t===XT?new Set([XT]):Array.isArray(t)?new Set(t):new Set([lm])}i(Cyt,"parseLimitTiers");var Gs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Iyt=new Set([9,10,13]);function Syt(t){if(!t)return{xmlVersion:1,onLevel:Gs.allow,nullLevel:Gs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Gs[t.onNCR]??Gs.allow,n=Gs[t.nullNCR]??Gs.remove,s=Math.max(n,Gs.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(Syt,"parseNCRConfig");var Cg=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=Cyt(this._limit.applyLimitsTo??lm),this._numericAllowed=e.numericAllowed??!0,this._baseMap=N3(zS,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=Syt(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))dye(r);this._externalMap=N3(e)}addExternalEntity(e,r){dye(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=N3(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,h;if(this._removeSet.has(f))m="",h===void 0&&(h=lm);else if(this._leaveSet.has(f)){a++;continue}else if(f.charCodeAt(0)===35){let A=this._resolveNCR(f);if(A===void 0){a++;continue}m=A,h=XT}else{let A=this._resolveName(f);m=A?.value,h=A?.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(h)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let A=m.length-(f.length+2);if(A>0&&(this._expandedLength+=A,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&&!Iyt.has(e)?Gs.remove:-1}_applyNCRAction(e,r,n){switch(e){case Gs.allow:return String.fromCodePoint(n);case Gs.remove:return"";case Gs.leave:return;case Gs.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&&sGS.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),wyt={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:pye};function xyt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(GS.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(YT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(xyt,"validatePropertyName");function fye(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"}:fye(!0)}i(fye,"normalizeProcessEntities");var mye=i(function(t){let e=Object.assign({},wyt,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&&xyt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=pye),e.processEntities=fye(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 ZT;typeof Symbol!="function"?ZT="@@xmlMetadata":ZT=Symbol("XML Node Metadata");var Hs=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][ZT]={startIndex:r})}static getMetaDataSymbol(){return ZT}};var hye=":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",byt=hye+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",Aye=":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}",Byt=Aye+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",gye=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"),Ryt=gye(hye,byt),Nyt=gye(Aye,Byt,"u"),Tyt=i((t="1.0")=>t==="1.1"?Nyt:Ryt,"getRegexes");var um=i((t,{xmlVersion:e="1.0"}={})=>Tyt(e).qName.test(t),"qName");var WS=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&&dm(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&dm(e,"!ATTLIST",r))r+=8;else if(a&&dm(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(dm(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=zs(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=zs(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 Myt(t,Number(r),e)}i(_3,"toNumber");var kyt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Oyt(t,e,r){if(!r.eNotation)return t;let n=e.match(kyt);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(Oyt,"resolveEnotation");function Lyt(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(Lyt,"trimZeros");function P3(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(P3,"parse_int");function Myt(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(Myt,"handleInfinity");function v3(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(v3,"getIgnoreAttributesFn");var ko=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)}},Sc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Q3(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 Fyt(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(Fyt,"extractRawAttributes");function Uyt(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(Uyt,"extractNamespace");var JS=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=zyt,this.parseTextData=qyt,this.resolveNameSpace=$yt,this.buildAttributesMap=Hyt,this.isItStopNode=Yyt,this.replaceEntitiesValue=Wyt,this.readStopNodeData=Xyt,this.saveTextToParentTag=Jyt,this.addChild=Vyt,this.ignoreAttributesFn=v3(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...zS};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...R3,...KT}),this.entityDecoder=new Cg({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 Sc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Ig;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?O3(t,c.parseTagValue,c.numberParseOptions):t}}i(qyt,"parseTextData");function $yt(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($yt,"resolveNameSpace");var Gyt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Hyt(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=JT(t,Gyt),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=D3(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=k3(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 Hs(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=Sg(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=Sg(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=k3(t,c,s.removeNSPrefix);if(!d){let _=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${_}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,h=d.attrExpPresent,A=d.closeIndex;if({tagName:p,tagExp:m}=D3(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 y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),h=p!==m);let I=null,x={},b;b=Uyt(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&h&&(I=this.buildAttributesMap(m,this.matcher,p),I&&(x=Fyt(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let _="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let Y=this.readStopNodeData(t,f,A+1);if(!Y)throw new Error(`Unexpected end of ${f}`);c=Y.i,_=Y.tagContent}let v=new Hs(p);I&&(v[":@"]=I),v.add(s.textNodeName,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=D3(s.transformTagName,p,m,s));let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let _=new Hs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),r=_}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function Vyt(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(Vyt,"addChild");function Wyt(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(Wyt,"replaceEntitiesValue");function Jyt(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(Jyt,"saveTextToParentTag");function Yyt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(Yyt,"isItStopNode");function jyt(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=Sg(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=Sg(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=Sg(t,"]]>",r,"StopNode is not closed.")-2;else{let c=k3(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(Xyt,"readStopNodeData");function O3(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:_3(t,r)}else return Jge(t)?t:""}i(O3,"parseValue");function D3(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=yye(e,n),{tagName:e,tagExp:r}}i(D3,"transformTagName");function yye(t,e){if(YT.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return GS.includes(t)?e.onDangerousProperty(t):t}i(yye,"sanitizeName");var L3=Hs.getMetaDataSymbol();function Zyt(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(Zyt,"stripAttributePrefix");function M3(t,e,r,n){return Eye(t,e,r,n)}i(M3,"prettify");function Eye(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(Eye,"compress");function eEt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(tP,"safeCdata");function kd(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(kd,"escapeAttribute");var nEt=` -`;function sEt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(q3(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(sEt,"detectXmlVersionFromArray");function Iye(t,e,r,n,s){return!r.sanitizeName||um(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Iye,"resolveTagName");function U3(t,e){let r="";e.format&&(r=nEt);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=F3(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=eP(x);a+=r+``,c=!0,n.pop();continue}else if(f[0]==="?"){let x=Cye(u[":@"],e,h,n,o);a+=(f==="?xml"?"":r)+`<${f}${x}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=Cye(u[":@"],e,h,n,o),E=r+`<${f}${y}`,I;h?I=wye(u[d],e):I=Sye(u[d],e,A,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("`),c=!0,n.pop()}return a}i(Sye,"arrToStr");function oEt(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]=kd(t[s]),n=!0}return n?r:null}i(oEt,"extractAttributeValues");function wye(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(wye,"getRawContent");function iEt(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)}="${kd(s)}"`}return r}i(iEt,"attr_to_str_raw");function q3(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($3,"getIgnoreAttributesFn");var cEt={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 Vs(t){if(this.options=Object.assign({},cEt,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=vAt(n);s&&t.headers.set("Content-Length",s),t.body=await oge(n)}i(QAt,"buildRequestBody");var vS="multipartPolicy",DAt=70,kAt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function OAt(t){if(t.length>DAt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!kAt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(OAt,"assertValidBoundary");function vT(){return{name:vS,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?OAt(r):r=TAt(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await QAt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(vT,"multipartPolicy");function QT(){return nT()}i(QT,"createEmptyPipeline");var ige=eT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jpr=ige.logger;function yc(t){return ige.createClientLogger(t)}i(yc,"createClientLogger");var Ec=yc("core-rest-pipeline");function Wz(t={}){return lT({logger:Ec.info,...t})}i(Wz,"logPolicy");var Jz=uT;function Yz(t={}){return dT(t)}i(Yz,"redirectPolicy");var DT=R(require("node:os"),1),kT=R(require("node:process"),1);function age(){return"User-Agent"}i(age,"getHeaderName");async function cge(t){if(kT.default&&kT.default.versions){let e=`${DT.default.type()} ${DT.default.release()}; ${DT.default.arch()}`,r=kT.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(cge,"setPlatformSpecificData");var OT="1.22.2";function HAt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(HAt,"getUserAgentString");function lge(){return age()}i(lge,"getUserAgentHeaderName");async function LT(t){let e=new Map;e.set("core-rest-pipeline",OT),await cge(e);let r=HAt(e);return t?`${t} ${r}`:r}i(LT,"getUserAgentValue");var uge=lge(),dge="userAgentPolicy";function jz(t={}){let e=LT(t.userAgentPrefix);return{name:dge,async sendRequest(r,n){return r.headers.has(uge)||r.headers.set(uge,await e),n(r)}}}i(jz,"userAgentPolicy");var vo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Kz(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new vo(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(Kz,"createAbortablePromise");var YAt="The delay was aborted.";function QS(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Kz(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??YAt})}i(QS,"delay");function vd(t){if(rm(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(vd,"getErrorMessage");function pge(t){return rm(t)}i(pge,"isError");function gg(){return tm()}i(gg,"randomUUID");var pt=om;var fge=Symbol("rawContent");function Zz(t){return typeof t[fge]=="function"}i(Zz,"hasRawContent");function mge(t){return Zz(t)?t[fge]():t}i(mge,"getRawContent");var MT=vS;function e3(){let t=vT();return{name:MT,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Zz(n.body)&&(n.body=mge(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(e3,"multipartPolicy");var t3=pT;function r3(){return fT()}i(r3,"decompressResponsePolicy");function n3(t={}){return AT(t)}i(n3,"defaultRetryPolicy");function s3(){return gT()}i(s3,"formDataPolicy");function Qd(t){return $z(t)}i(Qd,"getDefaultProxySettings");function o3(t,e){return RT(t,e)}i(o3,"proxyPolicy");var hge="setClientRequestIdPolicy";function i3(t="x-ms-client-request-id"){return{name:hge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(i3,"setClientRequestIdPolicy");function a3(t){return NT(t)}i(a3,"agentPolicy");function c3(t){return TT(t)}i(c3,"tlsPolicy");var yg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Age(t={}){let e=new l3(t.parentContext);return t.span&&(e=e.setValue(yg.span,t.span)),t.namespace&&(e=e.setValue(yg.namespace,t.namespace)),e}i(Age,"createTracingContext");var l3=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 yge=R(gge(),1),UT=yge.state;function jAt(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(jAt,"createDefaultTracingSpan");function KAt(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:jAt(),tracingContext:Age({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(KAt,"createDefaultInstrumenter");function DS(){return UT.instrumenterImplementation||(UT.instrumenterImplementation=KAt()),UT.instrumenterImplementation}i(DS,"getInstrumenter");function kS(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let f=DS().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),m=f.tracingContext,h=f.span;m.getValue(yg.namespace)||(m=m.setValue(yg.namespace,e)),h.setAttribute("az.namespace",m.getValue(yg.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:m}});return{span:h,updatedOptions:A}}i(s,"startSpan");async function o(u,d,p,f){let{span:m,updatedOptions:h}=s(u,d,f);try{let A=await a(h.tracingOptions.tracingContext,()=>Promise.resolve(p(h,m)));return m.setStatus({status:"success"}),A}catch(A){throw m.setStatus({status:"error",error:A}),A}finally{m.end()}}i(o,"withSpan");function a(u,d,...p){return DS().withContext(u,d,...p)}i(a,"withContext");function c(u){return DS().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return DS().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(kS,"createTracingClient");var fu=As;function cm(t){return sT(t)}i(cm,"isRestError");var Ege="tracingPolicy";function u3(t={}){let e=LT(t.userAgentPrefix),r=new ua({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=XAt();return{name:Ege,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}=ZAt(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return tgt(l,d),d}catch(d){throw egt(l,d),d}}}}i(u3,"tracingPolicy");function XAt(){try{return kS({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:OT})}catch(t){Ec.warning(`Error when creating the TracingClient: ${vd(t)}`);return}}i(XAt,"tryCreateTracingClient");function ZAt(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){Ec.warning(`Skipping creating a tracing span due to an error: ${vd(n)}`);return}}i(ZAt,"tryCreateSpan");function egt(t,e){try{t.setStatus({status:"error",error:pge(e)?e:void 0}),cm(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Ec.warning(`Skipping tracing span processing due to an error: ${vd(r)}`)}}i(egt,"tryProcessError");function tgt(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){Ec.warning(`Skipping tracing span processing due to an error: ${vd(r)}`)}}i(tgt,"tryProcessResponse");function qT(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(qT,"wrapAbortSignalLike");var rgt="wrapAbortSignalLikePolicy";function Cge(){return{name:rgt,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=qT(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(Cge,"wrapAbortSignalLikePolicy");function d3(t){let e=QT();return pt&&(t.agent&&e.addPolicy(a3(t.agent)),t.tlsOptions&&e.addPolicy(c3(t.tlsOptions)),e.addPolicy(o3(t.proxyOptions)),e.addPolicy(r3())),e.addPolicy(Cge()),e.addPolicy(s3(),{beforePolicies:[MT]}),e.addPolicy(jz(t.userAgentOptions)),e.addPolicy(i3(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(e3(),{afterPhase:"Deserialize"}),e.addPolicy(n3(t.retryOptions),{phase:"Retry"}),e.addPolicy(u3({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),pt&&e.addPolicy(Yz(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(Wz(t.loggingOptions),{afterPhase:"Sign"}),e}i(d3,"createPipelineFromOptions");function OS(){let t=cT();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?qT(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(OS,"createDefaultHttpClient");function mu(t){return No(t)}i(mu,"createHttpHeaders");function LS(t){return rT(t)}i(LS,"createPipelineRequest");var BAr=yc("core-rest-pipeline retryPolicy");var ngt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function sgt(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(p3,"createTokenCycler");var xge="bearerTokenAuthenticationPolicy";async function $T(t,e){try{return[await e(t),void 0]}catch(r){if(cm(r)&&r.response)return[r.response,r];throw r}}i($T,"trySendRequest");async function ogt(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(ogt,"defaultAuthorizeRequest");function Ige(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(Ige,"isChallengeResponse");async function Sge(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(Sge,"authorizeRequestOnCaeChallenge");function Eg(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||Ec,o={authorizeRequest:n?.authorizeRequest?.bind(n)??ogt,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?p3(e):()=>Promise.resolve(null);return{name:xge,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 $T(c,l),Ige(u)){let f=wge(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 Sge({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await $T(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 $T(c,l)),Ige(u)&&(f=wge(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 Sge({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await $T(c,l))}}if(d)throw d;return u}}}i(Eg,"bearerTokenAuthenticationPolicy");function igt(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(igt,"parseChallenges");function wge(t){return t?igt(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(wge,"getCaeChallengeClaims");function Qo(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(Qo,"isTokenCredential");var f3="DisableKeepAlivePolicy";function bge(){return{name:f3,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(bge,"createDisableKeepAlivePolicy");function Bge(t){return t.getOrderedPolicies().some(e=>e.name===f3)}i(Bge,"pipelineContainsDisableKeepAlivePolicy");function m3(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(m3,"encodeByteArray");function h3(t){return Buffer.from(t,"base64")}i(h3,"decodeString");function cgt(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(cgt,"isPrimitiveBody");var lgt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Rge(t){return lgt.test(t)}i(Rge,"isDuration");var ugt=/^[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 Nge(t){return ugt.test(t)}i(Nge,"isValidUuid");function dgt(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(dgt,"handleNullableResponseAndWrappableBody");function A3(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 dgt({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:cgt(t.parsedBody,o)})}i(A3,"flattenResponse");var g3=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:h,UniqueItems:A}=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(y)!==E)&&s("UniqueItems",A)}}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=ggt(c,n,r):c.match(/^Enum$/i)!==null?a=ygt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=Igt(c,r,n):c.match(/^ByteArray$/i)!==null?a=Egt(n,r):c.match(/^Base64Url$/i)!==null?a=Cgt(n,r):c.match(/^Sequence$/i)!==null?a=Sgt(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=wgt(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=bgt(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=Rgt(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=Agt(r):c.match(/^ByteArray$/i)!==null?a=h3(r):c.match(/^Base64Url$/i)!==null?a=mgt(r):c.match(/^Sequence$/i)!==null?a=Tgt(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=Ngt(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function Do(t={},e=!1){return new g3(t,e)}i(Do,"createSerializer");function pgt(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(pgt,"trimEnd");function fgt(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=m3(t);return pgt(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(fgt,"bufferToBase64Url");function mgt(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,"/"),h3(t)}}i(mgt,"base64UrlToByteArray");function y3(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(y3,"splitSerializeName");function hgt(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(hgt,"dateToUnixTime");function Agt(t){if(t)return new Date(t*1e3)}i(Agt,"unixTimeToDate");function ggt(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"&&Nge(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(ggt,"serializeBasicTypes");function ygt(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(ygt,"serializeEnumType");function Egt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=m3(e)}return e}i(Egt,"serializeByteArrayType");function Cgt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=fgt(e)}return e}i(Cgt,"serializeBase64UrlType");function Igt(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=hgt(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Rge(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(Igt,"serializeDateTypes");function Sgt(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(bgt,"serializeCompositeType");function vge(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(vge,"getXmlObjectValue");function Bgt(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(Bgt,"isSpecialXmlProperty");function Rgt(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";GT(t,e)&&(e=Qge(t,e,r,"serializedName"));let a=_ge(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],f=y3(a[d].serializedName);l.push(f[0]);let{serializedName:m,xmlName:h,xmlElementName:A}=p,y=n;m!==""&&m!==void 0&&(y=n+"."+m);let E=p.headerCollectionPrefix;if(E){let I={};for(let x of Object.keys(r))x.startsWith(E)&&(I[x.substring(E.length)]=t.deserialize(p.type.value,r[x],y,s)),l.push(x);c[d]=I}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][h],y,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let I=A||h||m;if(p.xmlIsWrapped){let b=r[h]?.[A]??[];c[d]=t.deserialize(p,b,y,s),l.push(h)}else{let x=r[I];c[d]=t.deserialize(p,x,y,s),l.push(I)}}else{let I,x=r,b=0;for(let v of f){if(!x)break;b++,x=x[v]}x===null&&b{for(let f in a)if(y3(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)&&!Bgt(d,s)&&(c[d]=r[d]);return c}i(Rgt,"deserializeCompositeType");function Ngt(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(Ngt,"deserializeDictionaryType");function Tgt(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=Oge(t,n);!a.propertyFound&&r&&(a=Oge(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=kd(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(kd,"getOperationArgumentValueFromParameter");function Oge(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(Ogt,"deserializeResponseBody");function Lgt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(Lgt,"isOperationSpecEmpty");function Mgt(t,e,r,n){let s=200<=t.status&&t.status<300;if(Lgt(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 fu(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 h=p;if(e.isXML&&u.type.name===Cc.Sequence){h=[];let A=u.xmlElementName;typeof p=="object"&&A&&(h=p[A])}f=e.serializer.deserialize(u,h,"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(Mgt,"handleErrorResponse");async function Fgt(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||fu.PARSE_ERROR;throw new fu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(Fgt,"parse");function Fge(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Cc.Stream&&e.add(Number(r))}return e}i(Fge,"getStreamingResponseStatusCodes");function Ic(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(Ic,"getPathStringFromParameter");var Uge="serializationPolicy";function zT(t={}){let e=t.stringifyXML;return{name:Uge,async sendRequest(r,n){let s=hu(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(Ugt(r,a,o),qgt(r,a,o,e)),n(r)}}}i(zT,"serializationPolicy");function Ugt(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=kd(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,Ic(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||Ic(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(Ugt,"serializeHeaders");function qgt(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=kd(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:f,xmlNamespacePrefix:m,nullable:h}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||h&&t.body===null||l){let y=Ic(r.requestBody);t.body=r.serializer.serialize(c,t.body,y,o);let E=A===Cc.Stream;if(r.isXML){let I=m?`xmlns:${m}`:"xmlns",x=$gt(f,I,A,t.body,o);A===Cc.Sequence?t.body=n(Ggt(x,p||d||u,I,f),{rootName:d||u,xmlCharKey:a}):E||(t.body=n(x,{rootName:d||u,xmlCharKey:a}))}else{if(A===Cc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;E||(t.body=JSON.stringify(t.body))}}}catch(y){throw new Error(`Error "${y.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=kd(e,c);if(l!=null){let u=c.mapper.serializedName||Ic(c);t.formData[u]=r.serializer.serialize(c.mapper,l,Ic(c),o)}}}}i(qgt,"serializeRequestBody");function $gt(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($gt,"getXmlValueWithNamespace");function Ggt(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(Ggt,"prepareXMLRootList");function MS(t={}){let e=d3(t??{});return t.credentialOptions&&e.addPolicy(Eg({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(zT(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(C3(t.deserializationOptions),{phase:"Deserialize"}),e}i(MS,"createClientPipeline");var I3;function qge(){return I3||(I3=OS()),I3}i(qge,"getCachedDefaultHttpClient");var Hgt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function Gge(t,e,r,n){let s=zgt(e,r,n),o=!1,a=$ge(t,s);if(e.path){let u=$ge(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),Vgt(u)?(a=u,o=!0):a=Wgt(a,u)}let{queryParams:c,sequenceParams:l}=Jgt(e,r,n);return a=jgt(a,c,l,o),a}i(Gge,"getRequestUrl");function $ge(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i($ge,"replaceAll");function zgt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=kd(e,s,r),a=Ic(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(zgt,"calculateUrlReplacements");function Vgt(t){return t.includes("://")}i(Vgt,"isAbsoluteUrl");function Wgt(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(Wgt,"appendPath");function Jgt(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=kd(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,Ic(o));let c=o.collectionFormat?Hgt[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||Ic(o),a)}}return{queryParams:n,sequenceParams:s}}i(Jgt,"calculateQueryParameters");function Ygt(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(Ygt,"simpleParseQueryParams");function jgt(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=Ygt(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(jgt,"appendQueryParams");var S3=yc("core-client");var FS=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&&S3.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||qge(),this.pipeline=e.pipeline||Kgt(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=Gge(n,r,e,this),o=LS({url:s});o.method=r.httpMethod;let a=hu(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=Fge(r));try{let u=await this.sendRequest(o),d=A3(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=A3(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function Kgt(t){let e=Xgt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return MS({...t,credentialOptions:r})}i(Kgt,"createDefaultPipeline");function Xgt(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(Xgt,"getCredentialScopes");var Hge={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Zgt(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(Zgt,"isUuid");var VT=i(async t=>{let e=syt(t.request),r=ryt(t.response);if(r){let n=nyt(r),s=tyt(t,n),o=eyt(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(Hge.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function eyt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Zgt(n))return n}i(eyt,"extractTenantId");function tyt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=Hge.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(tyt,"buildScopes");function ryt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(ryt,"getChallenge");function nyt(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(nyt,"parseChallenge");function syt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(syt,"requestToOptions");var zge=Symbol("Original PipelineRequest"),oyt=Symbol.for("@azure/core-client original request");function qS(t,e={}){let n=t[zge],s=mu(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=LS({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[oyt]=e.originalRequest),o}}i(qS,"toPipelineRequest");function lm(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:$S(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===zge?t:o==="clone"?()=>lm(qS(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(lm,"toWebResourceLike");function $S(t){return new w3(t.toJSON({preserveCase:!0}))}i($S,"toHttpHeadersLike");function US(t){return t.toLowerCase()}i(US,"getHeaderKey");var w3=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[US(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[US(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[US(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[US(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(lm(e,{createProxy:!0}));return JT(r)},"sendRequest")}}i(B3,"convertHttpClient");var Jge=":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",cyt=Jge+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",lyt="["+Jge+"]["+cyt+"]*",uyt=new RegExp("^"+lyt+"$");function YT(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 Yge(t){return typeof t<"u"}i(Yge,"isExist");var HS=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],jT=["__proto__","constructor","prototype"];var dyt={allowBooleanAttributes:!1,unpairedTags:[]};function KT(t,e){e=Object.assign({},dyt,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--),!Eyt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Nr("InvalidTag",p,gs(t,o))}let u=myt(t,o);if(u===!1)return Nr("InvalidAttr","Attributes for '"+l+"' have open quote.",gs(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=Zge(d,e);if(f===!0)n=!0;else return Nr(f.err.code,f.err.msg,gs(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Nr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",gs(t,a));if(r.length===0)return Nr("InvalidTag","Closing tag '"+l+"' has not been opened.",gs(t,a));{let p=r.pop();if(l!==p.tagName){let f=gs(t,p.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",gs(t,a))}r.length==0&&(s=!0)}}else return Nr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",gs(t,o));else{let p=Zge(d,e);if(p!==!0)return Nr(p.err.code,p.err.msg,gs(t,o-d.length+p.err.line));if(s===!0)return Nr("InvalidXml","Multiple possible root nodes found.",gs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o0)return Nr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Nr("InvalidXml","Start tag expected.",1);return!0}i(KT,"validate");function jge(t){return t===" "||t===" "||t===` +`||t==="\r"}i(jge,"isWhiteSpace");function Kge(t,e){let r=e;for(;e5&&n==="xml")return Nr("InvalidXml","XML declaration allowed only at the start of the document.",gs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Kge,"readPI");function Xge(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(Xge,"readCommentAndCDATA");var pyt='"',fyt="'";function myt(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(myt,"readAttributeStr");var hyt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Zge(t,e){let r=YT(t,hyt),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"},tye={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"},rye={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"},nye={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"},sye={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"},oye={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:"<"},iye={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"},aye={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"},cye={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"},lye={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"},XT={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"},uye={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"},dye={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"},Cyt={...eye,...tye,...rye,...nye,...sye,...oye,...iye,...aye,...cye,...lye,...XT,...uye,...dye},VS={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},N3={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 Iyt=new Set("!?\\\\/[]$%{}^&*()<>|+");function pye(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Iyt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(pye,"validateEntityName");function T3(...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(T3,"mergeEntityMaps");var um="external",ZT="base",P3="all";function Syt(t){return!t||t===um?new Set([um]):t===P3?new Set([P3]):t===ZT?new Set([ZT]):Array.isArray(t)?new Set(t):new Set([um])}i(Syt,"parseLimitTiers");var Gs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),wyt=new Set([9,10,13]);function xyt(t){if(!t)return{xmlVersion:1,onLevel:Gs.allow,nullLevel:Gs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Gs[t.onNCR]??Gs.allow,n=Gs[t.nullNCR]??Gs.remove,s=Math.max(n,Gs.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(xyt,"parseNCRConfig");var Ig=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=Syt(this._limit.applyLimitsTo??um),this._numericAllowed=e.numericAllowed??!0,this._baseMap=T3(VS,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=xyt(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))pye(r);this._externalMap=T3(e)}addExternalEntity(e,r){pye(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=T3(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,h;if(this._removeSet.has(f))m="",h===void 0&&(h=um);else if(this._leaveSet.has(f)){a++;continue}else if(f.charCodeAt(0)===35){let A=this._resolveNCR(f);if(A===void 0){a++;continue}m=A,h=ZT}else{let A=this._resolveName(f);m=A?.value,h=A?.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(h)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let A=m.length-(f.length+2);if(A>0&&(this._expandedLength+=A,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&&!wyt.has(e)?Gs.remove:-1}_applyNCRAction(e,r,n){switch(e){case Gs.allow:return String.fromCodePoint(n);case Gs.remove:return"";case Gs.leave:return;case Gs.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&&sHS.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),byt={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:fye};function Byt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(HS.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(jT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(Byt,"validatePropertyName");function mye(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"}:mye(!0)}i(mye,"normalizeProcessEntities");var hye=i(function(t){let e=Object.assign({},byt,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&&Byt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=fye),e.processEntities=mye(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 eP;typeof Symbol!="function"?eP="@@xmlMetadata":eP=Symbol("XML Node Metadata");var Hs=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][eP]={startIndex:r})}static getMetaDataSymbol(){return eP}};var Aye=":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",Ryt=Aye+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",gye=":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}",Nyt=gye+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",yye=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"),Tyt=yye(Aye,Ryt),Pyt=yye(gye,Nyt,"u"),_yt=i((t="1.0")=>t==="1.1"?Pyt:Tyt,"getRegexes");var dm=i((t,{xmlVersion:e="1.0"}={})=>_yt(e).qName.test(t),"qName");var JS=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&&pm(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&pm(e,"!ATTLIST",r))r+=8;else if(a&&pm(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(pm(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=zs(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=zs(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 Uyt(t,Number(r),e)}i(v3,"toNumber");var Lyt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Myt(t,e,r){if(!r.eNotation)return t;let n=e.match(Lyt);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(Myt,"resolveEnotation");function Fyt(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(Fyt,"trimZeros");function _3(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(_3,"parse_int");function Uyt(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(Uyt,"handleInfinity");function Q3(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(Q3,"getIgnoreAttributesFn");var ko=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)}},Sc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new D3(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 qyt(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(qyt,"extractRawAttributes");function $yt(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($yt,"extractNamespace");var YS=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Wyt,this.parseTextData=Gyt,this.resolveNameSpace=Hyt,this.buildAttributesMap=Vyt,this.isItStopNode=Kyt,this.replaceEntitiesValue=Yyt,this.readStopNodeData=eEt,this.saveTextToParentTag=jyt,this.addChild=Jyt,this.ignoreAttributesFn=Q3(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...VS};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...N3,...XT}),this.entityDecoder=new Ig({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 Sc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Sg;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?L3(t,c.parseTagValue,c.numberParseOptions):t}}i(Gyt,"parseTextData");function Hyt(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(Hyt,"resolveNameSpace");var zyt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Vyt(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=YT(t,zyt),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=k3(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=O3(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 Hs(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=wg(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=wg(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=O3(t,c,s.removeNSPrefix);if(!d){let _=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${_}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,h=d.attrExpPresent,A=d.closeIndex;if({tagName:p,tagExp:m}=k3(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 y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),h=p!==m);let I=null,x={},b;b=$yt(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&h&&(I=this.buildAttributesMap(m,this.matcher,p),I&&(x=qyt(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let _="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let Y=this.readStopNodeData(t,f,A+1);if(!Y)throw new Error(`Unexpected end of ${f}`);c=Y.i,_=Y.tagContent}let v=new Hs(p);I&&(v[":@"]=I),v.add(s.textNodeName,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=k3(s.transformTagName,p,m,s));let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let _=new Hs(p);I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let _=new Hs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(_[":@"]=I),this.addChild(r,_,this.readonlyMatcher,N),r=_}n="",c=A}}}else n+=t[c];return e.child},"parseXml");function Jyt(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(Jyt,"addChild");function Yyt(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(Yyt,"replaceEntitiesValue");function jyt(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(jyt,"saveTextToParentTag");function Kyt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(Kyt,"isItStopNode");function Xyt(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=wg(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=wg(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=wg(t,"]]>",r,"StopNode is not closed.")-2;else{let c=O3(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(eEt,"readStopNodeData");function L3(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:v3(t,r)}else return Yge(t)?t:""}i(L3,"parseValue");function k3(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=Eye(e,n),{tagName:e,tagExp:r}}i(k3,"transformTagName");function Eye(t,e){if(jT.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return HS.includes(t)?e.onDangerousProperty(t):t}i(Eye,"sanitizeName");var M3=Hs.getMetaDataSymbol();function tEt(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(tEt,"stripAttributePrefix");function F3(t,e,r,n){return Cye(t,e,r,n)}i(F3,"prettify");function Cye(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(Cye,"compress");function rEt(t){let e=Object.keys(t);for(let r=0;r/g,"]]]]>")}i(rP,"safeCdata");function Od(t){return String(t).replace(/"/g,""").replace(/'/g,"'")}i(Od,"escapeAttribute");var oEt=` +`;function iEt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if($3(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(iEt,"detectXmlVersionFromArray");function Sye(t,e,r,n,s){return!r.sanitizeName||dm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Sye,"resolveTagName");function q3(t,e){let r="";e.format&&(r=oEt);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=U3(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=tP(x);a+=r+``,c=!0,n.pop();continue}else if(f[0]==="?"){let x=Iye(u[":@"],e,h,n,o);a+=(f==="?xml"?"":r)+`<${f}${x}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=Iye(u[":@"],e,h,n,o),E=r+`<${f}${y}`,I;h?I=xye(u[d],e):I=wye(u[d],e,A,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("`),c=!0,n.pop()}return a}i(wye,"arrToStr");function aEt(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(aEt,"extractAttributeValues");function xye(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(xye,"getRawContent");function cEt(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(cEt,"attr_to_str_raw");function $3(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(G3,"getIgnoreAttributesFn");var uEt={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 Vs(t){if(this.options=Object.assign({},uEt,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(Vs,"Builder");function lEt(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(lEt,"detectXmlVersionFromObj");function G3(t,e,r,n,s){return!r.sanitizeName||um(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(G3,"resolveTagName");Vs.prototype.build=function(t){if(this.options.preserveOrder)return U3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sc,r=lEt(t,this.options);return this.j2x(t,0,e,r).val}};Vs.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:G3(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=G3(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(A===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(A,e+1,r,n);r.pop(),f+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else f+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,A);y=this.replaceEntitiesValue(y),f+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+A;E===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+E+"${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};Vs.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};Vs.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}};Vs.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=eP(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(rP,"stringifyXML");async function z3(t,e={}){if(!t)throw new Error("Document is empty");let r=xye.validate(t);if(r!==!0)throw r;let s=new wg(mEt(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(z3,"parseXML");var nP=yc("storage-blob");var Pye=require("events");var Nye=require("node:stream");var sP=class extends Nye.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 Tye=R(require("node:buffer"),1);var oP=Tye.default.constants.MAX_LENGTH,iP=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/oP);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new sP(this.buffers,this.size)}};var aP=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Pye.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 iP(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 V3;function W3(){return V3||(V3=kS()),V3}i(W3,"getCachedDefaultHttpClient");var wc=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 hu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Pe={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 Od(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(Od,"setURLParameter");function cP(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(cP,"setURLHost");function lP(t){try{return new URL(t).pathname}catch{return}}i(lP,"getURLPath");function uP(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(dP,"delay");var YS=class extends wc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return pt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Od(e.url,hu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Pe.COOKIE),e.headers.remove(Pe.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var jS=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new YS(e,r)}};var pm=class extends wc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var KS=class extends pm{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var fm=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var Wt=class extends fm{static{i(this,"AnonymousCredential")}create(e,r){return new KS(e,r)}};var _ye=require("node:crypto");var hEt=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]),AEt=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]),gEt=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 pP(t,e){return yEt(t,e)?-1:1}i(pP,"compareHeader");function yEt(t,e){let r=[hEt,AEt,gEt],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Pe.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Pe.CONTENT_ENCODING),this.getHeaderValueToSign(e,Pe.CONTENT_LENGTH),this.getHeaderValueToSign(e,Pe.CONTENT_MD5),this.getHeaderValueToSign(e,Pe.CONTENT_TYPE),this.getHeaderValueToSign(e,Pe.DATE),this.getHeaderValueToSign(e,Pe.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Pe.IF_MATCH),this.getHeaderValueToSign(e,Pe.IF_NONE_MATCH),this.getHeaderValueToSign(e,Pe.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Pe.RANGE)].join(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Vs,"Builder");function dEt(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(dEt,"detectXmlVersionFromObj");function H3(t,e,r,n,s){return!r.sanitizeName||dm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(H3,"resolveTagName");Vs.prototype.build=function(t){if(this.options.preserveOrder)return q3(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sc,r=dEt(t,this.options);return this.j2x(t,0,e,r).val}};Vs.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:H3(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=H3(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(A===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(A,e+1,r,n);r.pop(),f+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else f+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,A);y=this.replaceEntitiesValue(y),f+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+A;E===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+E+"${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};Vs.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};Vs.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}};Vs.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=tP(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(nP,"stringifyXML");async function V3(t,e={}){if(!t)throw new Error("Document is empty");let r=bye.validate(t);if(r!==!0)throw r;let s=new xg(AEt(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(V3,"parseXML");var sP=yc("storage-blob");var _ye=require("events");var Tye=require("node:stream");var oP=class extends Tye.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 Pye=R(require("node:buffer"),1);var iP=Pye.default.constants.MAX_LENGTH,aP=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/iP);for(let o=0;o0&&(e[0]=e[0].slice(a))}getReadableStream(){return new oP(this.buffers,this.size)}};var cP=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new _ye.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 aP(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 W3;function J3(){return W3||(W3=OS()),W3}i(J3,"getCachedDefaultHttpClient");var wc=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 Au={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},Pe={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 Ld(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(Ld,"setURLParameter");function lP(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(lP,"setURLHost");function uP(t){try{return new URL(t).pathname}catch{return}}i(uP,"getURLPath");function dP(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(pP,"delay");var jS=class extends wc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return pt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Ld(e.url,Au.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(Pe.COOKIE),e.headers.remove(Pe.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var KS=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new jS(e,r)}};var fm=class extends wc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var XS=class extends fm{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var mm=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var Wt=class extends mm{static{i(this,"AnonymousCredential")}create(e,r){return new XS(e,r)}};var vye=require("node:crypto");var gEt=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]),yEt=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]),EEt=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 fP(t,e){return CEt(t,e)?-1:1}i(fP,"compareHeader");function CEt(t,e){let r=[gEt,yEt,EEt],n=0,s=0,o=0;for(;no;let a=s0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Pe.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Pe.CONTENT_ENCODING),this.getHeaderValueToSign(e,Pe.CONTENT_LENGTH),this.getHeaderValueToSign(e,Pe.CONTENT_MD5),this.getHeaderValueToSign(e,Pe.CONTENT_TYPE),this.getHeaderValueToSign(e,Pe.DATE),this.getHeaderValueToSign(e,Pe.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Pe.IF_MATCH),this.getHeaderValueToSign(e,Pe.IF_NONE_MATCH),this.getHeaderValueToSign(e,Pe.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Pe.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Pe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));r.sort((s,o)=>pP(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=lP(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=uP(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 dr=class extends fm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new XS(e,r,this)}computeHMACSHA256(e){return(0,_ye.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Vr=yc("storage-common");var yi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(yi||(yi={}));var Ld={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},EEt=new vo("The operation was aborted."),ZS=class extends wc{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=cP(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Od(s.url,hu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Vr.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(Vr.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 Vr.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 Vr.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 Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Vr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Pe.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')?(Vr.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 yi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case yi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${s}ms`),dP(s,n,EEt)}};var ew=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ZS(e,r,this.retryOptions)}};var CEt="storageBrowserPolicy";function vye(){return{name:CEt,async sendRequest(t,e){return pt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Od(t.url,hu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Pe.COOKIE),t.headers.delete(Pe.CONTENT_LENGTH)),e(t)}}}i(vye,"storageBrowserPolicy");var IEt="StorageCorrectContentLengthPolicy";function Qye(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:IEt,async sendRequest(e,r){return t(e),r(e)}}}i(Qye,"storageCorrectContentLengthPolicy");var SEt="storageRetryPolicy",xg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wEt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],xEt=new vo("The operation was aborted.");function Dye(t={}){let e=t.retryPolicyType??xg.retryPolicyType,r=t.maxTries??xg.maxTries,n=t.retryDelayInMs??xg.retryDelayInMs,s=t.maxRetryDelayInMs??xg.maxRetryDelayInMs,o=t.secondaryHost??xg.secondaryHost,a=t.tryTimeoutInMs??xg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return Vr.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(f){for(let m of wEt)if(f.name.toUpperCase().includes(m)||f.message.toUpperCase().includes(m)||f.code&&f.code.toString().toUpperCase()===m)return Vr.info(`RetryPolicy: Network error ${m} found, will retry.`),!0;if(f?.code==="PARSE_ERROR"&&f?.message.startsWith('Error "Error: Unclosed root tag'))return Vr.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 Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(m===503||m===500)return Vr.info(`RetryPolicy: Will retry for status code ${m}.`),!0}if(p&&p?.status>=400){let m=p.headers.get(Pe.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 yi.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case yi.FIXED:p=n;break}else p=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:SEt,async sendRequest(u,d){a&&(u.url=Od(u.url,hu.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,f=o?cP(u.url,o):void 0,m=!1,h=1,A=!0,y,E;for(;A;){let I=m||!f||!["GET","HEAD","OPTIONS"].includes(u.method)||h%2===1;u.url=I?p:f,y=void 0,E=void 0;try{Vr.info(`RetryPolicy: =====> Try=${h} ${I?"Primary":"Secondary"}`),y=await d(u),m=m||!I&&y.status===404}catch(x){if(am(x))Vr.error(`RetryPolicy: Caught error, message: ${x.message}, code: ${x.code}`),E=x;else throw Vr.error(`RetryPolicy: Caught error, message: ${_d(x)}`),x}A=c({isPrimaryRetry:I,attempt:h,response:y,error:E}),A&&await dP(l(I,h),u.abortSignal,xEt),h++}if(y)return y;throw E??new pu("RetryPolicy failed without known error.")}}}i(Dye,"storageRetryPolicy");var kye=require("node:crypto");var bEt="storageSharedKeyCredentialPolicy";function J3(t){function e(o){o.headers.set(Pe.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,Pe.CONTENT_LANGUAGE),r(o,Pe.CONTENT_ENCODING),r(o,Pe.CONTENT_LENGTH),r(o,Pe.CONTENT_MD5),r(o,Pe.CONTENT_TYPE),r(o,Pe.DATE),r(o,Pe.IF_MODIFIED_SINCE),r(o,Pe.IF_MATCH),r(o,Pe.IF_NONE_MATCH),r(o,Pe.IF_UNMODIFIED_SINCE),r(o,Pe.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Pe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Pe.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE));r.sort((s,o)=>fP(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=uP(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=dP(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 dr=class extends mm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ZS(e,r,this)}computeHMACSHA256(e){return(0,vye.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Vr=yc("storage-common");var yi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(yi||(yi={}));var Md={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},IEt=new vo("The operation was aborted."),ew=class extends wc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Md){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Md.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Md.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Md.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Md.maxRetryDelayInMs):Md.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Md.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Md.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=lP(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Ld(s.url,Au.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Vr.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(Vr.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 Vr.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 Vr.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 Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Vr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Pe.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')?(Vr.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 yi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case yi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${s}ms`),pP(s,n,IEt)}};var tw=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ew(e,r,this.retryOptions)}};var SEt="storageBrowserPolicy";function Qye(){return{name:SEt,async sendRequest(t,e){return pt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ld(t.url,Au.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Pe.COOKIE),t.headers.delete(Pe.CONTENT_LENGTH)),e(t)}}}i(Qye,"storageBrowserPolicy");var wEt="StorageCorrectContentLengthPolicy";function Dye(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:wEt,async sendRequest(e,r){return t(e),r(e)}}}i(Dye,"storageCorrectContentLengthPolicy");var xEt="storageRetryPolicy",bg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:yi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bEt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],BEt=new vo("The operation was aborted.");function kye(t={}){let e=t.retryPolicyType??bg.retryPolicyType,r=t.maxTries??bg.maxTries,n=t.retryDelayInMs??bg.retryDelayInMs,s=t.maxRetryDelayInMs??bg.maxRetryDelayInMs,o=t.secondaryHost??bg.secondaryHost,a=t.tryTimeoutInMs??bg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return Vr.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(f){for(let m of bEt)if(f.name.toUpperCase().includes(m)||f.message.toUpperCase().includes(m)||f.code&&f.code.toString().toUpperCase()===m)return Vr.info(`RetryPolicy: Network error ${m} found, will retry.`),!0;if(f?.code==="PARSE_ERROR"&&f?.message.startsWith('Error "Error: Unclosed root tag'))return Vr.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 Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(m===503||m===500)return Vr.info(`RetryPolicy: Will retry for status code ${m}.`),!0}if(p&&p?.status>=400){let m=p.headers.get(Pe.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 yi.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case yi.FIXED:p=n;break}else p=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:xEt,async sendRequest(u,d){a&&(u.url=Ld(u.url,Au.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,f=o?lP(u.url,o):void 0,m=!1,h=1,A=!0,y,E;for(;A;){let I=m||!f||!["GET","HEAD","OPTIONS"].includes(u.method)||h%2===1;u.url=I?p:f,y=void 0,E=void 0;try{Vr.info(`RetryPolicy: =====> Try=${h} ${I?"Primary":"Secondary"}`),y=await d(u),m=m||!I&&y.status===404}catch(x){if(cm(x))Vr.error(`RetryPolicy: Caught error, message: ${x.message}, code: ${x.code}`),E=x;else throw Vr.error(`RetryPolicy: Caught error, message: ${vd(x)}`),x}A=c({isPrimaryRetry:I,attempt:h,response:y,error:E}),A&&await pP(l(I,h),u.abortSignal,BEt),h++}if(y)return y;throw E??new fu("RetryPolicy failed without known error.")}}}i(kye,"storageRetryPolicy");var Oye=require("node:crypto");var REt="storageSharedKeyCredentialPolicy";function Y3(t){function e(o){o.headers.set(Pe.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(Pe.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,Pe.CONTENT_LANGUAGE),r(o,Pe.CONTENT_ENCODING),r(o,Pe.CONTENT_LENGTH),r(o,Pe.CONTENT_MD5),r(o,Pe.CONTENT_TYPE),r(o,Pe.DATE),r(o,Pe.IF_MODIFIED_SINCE),r(o,Pe.IF_MATCH),r(o,Pe.IF_NONE_MATCH),r(o,Pe.IF_UNMODIFIED_SINCE),r(o,Pe.RANGE)].join(` `)+` -`+n(o)+s(o),c=(0,kye.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Pe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Pe.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>pP(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=lP(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=uP(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:bEt,async sendRequest(o,a){return e(o),a(o)}}}i(J3,"storageSharedKeyCredentialPolicy");var BEt="storageRequestFailureDetailsParserPolicy";function Oye(){return{name:BEt,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(Oye,"storageRequestFailureDetailsParserPolicy");var Lye=require("node:crypto");var fP=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,Lye.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var mP="12.31.0",hP="2026-02-06";var AP="https://storage.azure.com/.default",Au={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var da="",Y3="*",REt=1*1024*1024;var NEt=4*REt;var Mye="AES256",Fye="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Uye=["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"],qye=["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"],$ye="BlobUsesCustomerSpecifiedEncryption",Gye="BlobDoesNotUseCustomerSpecifiedEncryption",Hye=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function gu(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(gu,"isPipelineLike");var tw=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 Tr(t,e={}){t||(t=new Wt);let r=new tw([],e);return r._credential=t,r}i(Tr,"newPipeline");function TEt(t){let e=[PEt,zye,_Et,vEt,QEt,DEt,OEt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>kEt(s));return{wrappedPolicies:x3(r),afterRetry:n}}}}i(TEt,"processDownlevelPipeline");function j3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?b3(e):W3(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${mP}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=LS({...r,loggingOptions:{additionalAllowedHeaderNames:Uye,additionalAllowedQueryParameters:qye,logger:nP.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:rP,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:z3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:e3}),s.addPolicy(Qye()),s.addPolicy(Dye(r.retryOptions),{phase:"Retry"}),s.addPolicy(Oye()),s.addPolicy(vye());let c=TEt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=K3(t);Qo(l)?s.addPolicy(yg({credential:l,scopes:r.audience??AP,challengeCallbacks:{authorizeRequestOnChallenge:zT}}),{phase:"Sign"}):l instanceof dr&&s.addPolicy(J3({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(j3,"getCoreClientOptions");function K3(t){if(t._credential)return t._credential;let e=new Wt;for(let r of t.factories)if(Qo(r.credential))e=r.credential;else if(zye(r))return r;return e}i(K3,"getCredentialFromPipeline");function zye(t){return t instanceof dr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(zye,"isStorageSharedKeyCredential");function PEt(t){return t instanceof Wt?!0:t.constructor.name==="AnonymousCredential"}i(PEt,"isAnonymousCredential");function _Et(t){return Qo(t.credential)}i(_Et,"isCoreHttpBearerTokenFactory");function vEt(t){return t instanceof jS?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(vEt,"isStorageBrowserPolicyFactory");function QEt(t){return t instanceof ew?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(QEt,"isStorageRetryPolicyFactory");function DEt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(DEt,"isStorageTelemetryPolicyFactory");function kEt(t){return t.constructor.name==="InjectorPolicyFactory"}i(kEt,"isInjectorPolicyFactory");function OEt(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(OEt,"isCoreHttpPolicyFactory");var Vye;(function(t){t.AES256="AES256"})(Vye||(Vye={}));var Wye;(function(t){t.Backup="backup"})(Wye||(Wye={}));var Jye;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Jye||(Jye={}));var Yye;(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"})(Yye||(Yye={}));var Oo={};cr(Oo,{AccessPolicy:()=>JEt,AppendBlobAppendBlockExceptionHeaders:()=>gW,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>EW,AppendBlobAppendBlockFromUrlHeaders:()=>yW,AppendBlobAppendBlockHeaders:()=>AW,AppendBlobCreateExceptionHeaders:()=>hW,AppendBlobCreateHeaders:()=>mW,AppendBlobSealExceptionHeaders:()=>IW,AppendBlobSealHeaders:()=>CW,ArrowConfiguration:()=>cCt,ArrowField:()=>lCt,BlobAbortCopyFromURLExceptionHeaders:()=>q4,BlobAbortCopyFromURLHeaders:()=>U4,BlobAcquireLeaseExceptionHeaders:()=>b4,BlobAcquireLeaseHeaders:()=>x4,BlobBreakLeaseExceptionHeaders:()=>Q4,BlobBreakLeaseHeaders:()=>v4,BlobChangeLeaseExceptionHeaders:()=>_4,BlobChangeLeaseHeaders:()=>P4,BlobCopyFromURLExceptionHeaders:()=>F4,BlobCopyFromURLHeaders:()=>M4,BlobCreateSnapshotExceptionHeaders:()=>k4,BlobCreateSnapshotHeaders:()=>D4,BlobDeleteExceptionHeaders:()=>l4,BlobDeleteHeaders:()=>c4,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>E4,BlobDeleteImmutabilityPolicyHeaders:()=>y4,BlobDownloadExceptionHeaders:()=>o4,BlobDownloadHeaders:()=>yP,BlobFlatListSegment:()=>YEt,BlobGetAccountInfoExceptionHeaders:()=>H4,BlobGetAccountInfoHeaders:()=>G4,BlobGetPropertiesExceptionHeaders:()=>a4,BlobGetPropertiesHeaders:()=>i4,BlobGetTagsExceptionHeaders:()=>W4,BlobGetTagsHeaders:()=>V4,BlobHierarchyListSegment:()=>ZEt,BlobItemInternal:()=>jEt,BlobName:()=>KEt,BlobPrefix:()=>eCt,BlobPropertiesInternal:()=>XEt,BlobQueryExceptionHeaders:()=>z4,BlobQueryHeaders:()=>CP,BlobReleaseLeaseExceptionHeaders:()=>R4,BlobReleaseLeaseHeaders:()=>B4,BlobRenewLeaseExceptionHeaders:()=>T4,BlobRenewLeaseHeaders:()=>N4,BlobServiceProperties:()=>rw,BlobServiceStatistics:()=>X3,BlobSetExpiryExceptionHeaders:()=>f4,BlobSetExpiryHeaders:()=>p4,BlobSetHttpHeadersExceptionHeaders:()=>h4,BlobSetHttpHeadersHeaders:()=>m4,BlobSetImmutabilityPolicyExceptionHeaders:()=>g4,BlobSetImmutabilityPolicyHeaders:()=>A4,BlobSetLegalHoldExceptionHeaders:()=>I4,BlobSetLegalHoldHeaders:()=>C4,BlobSetMetadataExceptionHeaders:()=>w4,BlobSetMetadataHeaders:()=>S4,BlobSetTagsExceptionHeaders:()=>Y4,BlobSetTagsHeaders:()=>J4,BlobSetTierExceptionHeaders:()=>$4,BlobSetTierHeaders:()=>EP,BlobStartCopyFromURLExceptionHeaders:()=>L4,BlobStartCopyFromURLHeaders:()=>O4,BlobTag:()=>VEt,BlobTags:()=>sw,BlobUndeleteExceptionHeaders:()=>d4,BlobUndeleteHeaders:()=>u4,Block:()=>tCt,BlockBlobCommitBlockListExceptionHeaders:()=>_W,BlockBlobCommitBlockListHeaders:()=>PW,BlockBlobGetBlockListExceptionHeaders:()=>QW,BlockBlobGetBlockListHeaders:()=>vW,BlockBlobPutBlobFromUrlExceptionHeaders:()=>bW,BlockBlobPutBlobFromUrlHeaders:()=>xW,BlockBlobStageBlockExceptionHeaders:()=>RW,BlockBlobStageBlockFromURLExceptionHeaders:()=>TW,BlockBlobStageBlockFromURLHeaders:()=>NW,BlockBlobStageBlockHeaders:()=>BW,BlockBlobUploadExceptionHeaders:()=>wW,BlockBlobUploadHeaders:()=>SW,BlockList:()=>oV,BlockLookupList:()=>sV,ClearRange:()=>nCt,ContainerAcquireLeaseExceptionHeaders:()=>HV,ContainerAcquireLeaseHeaders:()=>GV,ContainerBreakLeaseExceptionHeaders:()=>jV,ContainerBreakLeaseHeaders:()=>YV,ContainerChangeLeaseExceptionHeaders:()=>XV,ContainerChangeLeaseHeaders:()=>KV,ContainerCreateExceptionHeaders:()=>xV,ContainerCreateHeaders:()=>wV,ContainerDeleteExceptionHeaders:()=>NV,ContainerDeleteHeaders:()=>RV,ContainerFilterBlobsExceptionHeaders:()=>$V,ContainerFilterBlobsHeaders:()=>qV,ContainerGetAccessPolicyExceptionHeaders:()=>vV,ContainerGetAccessPolicyHeaders:()=>_V,ContainerGetAccountInfoExceptionHeaders:()=>s4,ContainerGetAccountInfoHeaders:()=>n4,ContainerGetPropertiesExceptionHeaders:()=>BV,ContainerGetPropertiesHeaders:()=>bV,ContainerItem:()=>GEt,ContainerListBlobFlatSegmentExceptionHeaders:()=>e4,ContainerListBlobFlatSegmentHeaders:()=>ZV,ContainerListBlobHierarchySegmentExceptionHeaders:()=>r4,ContainerListBlobHierarchySegmentHeaders:()=>t4,ContainerProperties:()=>HEt,ContainerReleaseLeaseExceptionHeaders:()=>VV,ContainerReleaseLeaseHeaders:()=>zV,ContainerRenameExceptionHeaders:()=>MV,ContainerRenameHeaders:()=>LV,ContainerRenewLeaseExceptionHeaders:()=>JV,ContainerRenewLeaseHeaders:()=>WV,ContainerRestoreExceptionHeaders:()=>OV,ContainerRestoreHeaders:()=>kV,ContainerSetAccessPolicyExceptionHeaders:()=>DV,ContainerSetAccessPolicyHeaders:()=>QV,ContainerSetMetadataExceptionHeaders:()=>PV,ContainerSetMetadataHeaders:()=>TV,ContainerSubmitBatchExceptionHeaders:()=>UV,ContainerSubmitBatchHeaders:()=>FV,CorsRule:()=>UEt,DelimitedTextConfiguration:()=>iCt,FilterBlobItem:()=>zEt,FilterBlobSegment:()=>nw,GeoReplication:()=>$Et,JsonTextConfiguration:()=>aCt,KeyInfo:()=>eV,ListBlobsFlatSegmentResponse:()=>rV,ListBlobsHierarchySegmentResponse:()=>nV,ListContainersSegmentResponse:()=>Z3,Logging:()=>LEt,Metrics:()=>FEt,PageBlobClearPagesExceptionHeaders:()=>tW,PageBlobClearPagesHeaders:()=>eW,PageBlobCopyIncrementalExceptionHeaders:()=>fW,PageBlobCopyIncrementalHeaders:()=>pW,PageBlobCreateExceptionHeaders:()=>K4,PageBlobCreateHeaders:()=>j4,PageBlobGetPageRangesDiffExceptionHeaders:()=>aW,PageBlobGetPageRangesDiffHeaders:()=>iW,PageBlobGetPageRangesExceptionHeaders:()=>oW,PageBlobGetPageRangesHeaders:()=>sW,PageBlobResizeExceptionHeaders:()=>lW,PageBlobResizeHeaders:()=>cW,PageBlobUpdateSequenceNumberExceptionHeaders:()=>dW,PageBlobUpdateSequenceNumberHeaders:()=>uW,PageBlobUploadPagesExceptionHeaders:()=>Z4,PageBlobUploadPagesFromURLExceptionHeaders:()=>nW,PageBlobUploadPagesFromURLHeaders:()=>rW,PageBlobUploadPagesHeaders:()=>X4,PageList:()=>gP,PageRange:()=>rCt,QueryFormat:()=>oCt,QueryRequest:()=>iV,QuerySerialization:()=>sCt,RetentionPolicy:()=>MEt,ServiceFilterBlobsExceptionHeaders:()=>SV,ServiceFilterBlobsHeaders:()=>IV,ServiceGetAccountInfoExceptionHeaders:()=>yV,ServiceGetAccountInfoHeaders:()=>gV,ServiceGetPropertiesExceptionHeaders:()=>uV,ServiceGetPropertiesHeaders:()=>lV,ServiceGetStatisticsExceptionHeaders:()=>pV,ServiceGetStatisticsHeaders:()=>dV,ServiceGetUserDelegationKeyExceptionHeaders:()=>AV,ServiceGetUserDelegationKeyHeaders:()=>hV,ServiceListContainersSegmentExceptionHeaders:()=>mV,ServiceListContainersSegmentHeaders:()=>fV,ServiceSetPropertiesExceptionHeaders:()=>cV,ServiceSetPropertiesHeaders:()=>aV,ServiceSubmitBatchExceptionHeaders:()=>CV,ServiceSubmitBatchHeaders:()=>EV,SignedIdentifier:()=>WEt,StaticWebsite:()=>qEt,StorageError:()=>M,UserDelegationKey:()=>tV});var rw={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"}}}}},LEt={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"}}}}},MEt={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"}}}}},FEt={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"}}}}},UEt={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"}}}}},qEt={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"}}}}},M={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"}}}}},X3={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},$Et={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"}}}}},Z3={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"}}}}},GEt={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"}}}}}}},HEt={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"}}}}},eV={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"}}}}},tV={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"}}}}},nw={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"}}}}},zEt={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"}}}}},sw={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"}}}}}}},VEt={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"}}}}},WEt={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"}}}}},JEt={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"}}}}},rV={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"}}}}},YEt={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"}}}}}}},jEt={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"}}}}},KEt={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"}}}}},XEt={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"}}}}},nV={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"}}}}},ZEt={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"}}}}}}},eCt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},sV={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"}}}}}}},oV={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"}}}}}}},tCt={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"}}}}},gP={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"}}}}},rCt={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"}}}}},nCt={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"}}}}},iV={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"}}}}},sCt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},oCt={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"}}}}}}},iCt={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"}}}}},aCt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},cCt={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"}}}}}}},lCt={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"}}}}},aV={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"}}}}},cV={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lV={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"}}}}},uV={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dV={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"}}}}},pV={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fV={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"}}}}},mV={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hV={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"}}}}},AV={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gV={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"}}}}},yV={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EV={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"}}}}},CV={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IV={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"}}}}},SV={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wV={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"}}}}},xV={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bV={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"}}}}},BV={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RV={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"}}}}},NV={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TV={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"}}}}},PV={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_V={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"}}}}},vV={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QV={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"}}}}},DV={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kV={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"}}}}},OV={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LV={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"}}}}},MV={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FV={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"}}}}},UV={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qV={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"}}}}},$V={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GV={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"}}}}},HV={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zV={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"}}}}},VV={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WV={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"}}}}},JV={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YV={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"}}}}},jV={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KV={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"}}}}},XV={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZV={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"}}}}},e4={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t4={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"}}}}},r4={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n4={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"}}}}},s4={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yP={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"}}}}},o4={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i4={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"}}}}},a4={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},c4={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"}}}}},l4={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},u4={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"}}}}},d4={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},p4={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"}}}}},f4={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m4={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"}}}}},h4={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A4={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"]}}}}},g4={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},y4={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"}}}}},E4={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C4={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"}}}}},I4={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S4={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"}}}}},w4={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x4={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"}}}}},b4={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B4={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"}}}}},R4={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N4={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"}}}}},T4={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P4={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"}}}}},_4={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v4={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"}}}}},Q4={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D4={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"}}}}},k4={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O4={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"}}}}},L4={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"}}}}},M4={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"}}}}},F4={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"}}}}},U4={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"}}}}},q4={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EP={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"}}}}},$4={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G4={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"}}}}},H4={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CP={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"}}}}},z4={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V4={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"}}}}},W4={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J4={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"}}}}},Y4={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j4={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"}}}}},K4={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},X4={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"}}}}},Z4={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eW={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"}}}}},tW={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rW={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"}}}}},nW={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"}}}}},sW={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"}}}}},oW={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iW={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"}}}}},aW={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cW={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"}}}}},lW={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uW={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"}}}}},dW={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pW={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"}}}}},fW={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mW={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"}}}}},hW={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AW={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"}}}}},gW={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yW={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"}}}}},EW={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"}}}}},CW={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"}}}}},IW={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SW={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"}}}}},wW={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xW={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"}}}}},bW={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"}}}}},BW={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"}}}}},RW={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NW={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"}}}}},TW={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"}}}}},PW={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"}}}}},_W={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vW={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"}}}}},QW={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var xc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},jye={parameterPath:"blobServiceProperties",mapper:rw},Ei={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},F={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},ow={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Ci={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},U={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},q={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},$={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"}}},Kye={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},iw={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aw={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},bc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},Bc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},Xye={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},Zye={parameterPath:"keyInfo",mapper:eV},eEe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bg={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},IP={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},SP={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},an={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},wP={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},xP={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},bP={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},cn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},zn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},DW={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},tEe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},rEe={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"}}},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"}}},BP={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},kW={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},nEe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},RP={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},sEe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},oEe={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},iEe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aEe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},cEe={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"}}},NP={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},TP={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},PP={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},_P={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Md={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},vP={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},QP={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},DP={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},kP={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},OP={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},OW={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"},LW={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},lEe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ys={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Rc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},mm={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},uEe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},dEe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},pr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},fr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},mr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},st={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},ot={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Xe={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},pEe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},fEe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},mEe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},hEe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},AEe={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},Nc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},Tc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},Pc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},_c={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},vc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Qc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},MW={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},pa={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},fa={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},gEe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},yEe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Mr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},EEe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},yu={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"]}}},FW={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},Dc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},kc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Oc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Lc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},LP={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},hm={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ma={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},CEe={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Mc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},IEe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Eu={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Cu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},MP={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},Iu={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},SEe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},wEe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},xEe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},bEe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},BEe={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"]}}},REe={parameterPath:["options","queryRequest"],mapper:iV},NEe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},UW={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qW={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},$W={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},GW={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},HW={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},TEe={parameterPath:["options","tags"],mapper:sw},Si={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Fc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},PEe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},zW={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},VW={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Am={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},gm={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ym={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},FP={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},WW={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},UP={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},qP={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},$P={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},_Ee={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Bg={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},vEe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Rg={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},QEe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},JW={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},DEe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},kEe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},OEe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},LEe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},MEe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},YW={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},jW={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},GP={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},HP={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},FEe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},KW={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},UEe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},XW={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ZW={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},qEe={parameterPath:"blocks",mapper:sV},e8={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$Ee={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var zP=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},uCt)}getProperties(e){return this.client.sendOperationRequest({options:e},dCt)}getStatistics(e){return this.client.sendOperationRequest({options:e},pCt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},fCt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},mCt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},hCt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},ACt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},gCt)}},Fd=Do(Oo,!0),uCt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:aV},default:{bodyMapper:M,headersMapper:cV}},requestBody:jye,queryParameters:[ow,Ci,U],urlParameters:[F],headerParameters:[xc,Ei,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fd},dCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rw,headersMapper:lV},default:{bodyMapper:M,headersMapper:uV}},queryParameters:[ow,Ci,U],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Fd},pCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:X3,headersMapper:dV},default:{bodyMapper:M,headersMapper:pV}},queryParameters:[ow,U,Kye],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Fd},fCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Z3,headersMapper:fV},default:{bodyMapper:M,headersMapper:mV}},queryParameters:[U,iw,aw,bc,Bc,Xye],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Fd},mCt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:tV,headersMapper:hV},default:{bodyMapper:M,headersMapper:AV}},requestBody:Zye,queryParameters:[ow,U,eEe],urlParameters:[F],headerParameters:[xc,Ei,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fd},hCt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:gV},default:{bodyMapper:M,headersMapper:yV}},queryParameters:[Ci,U,bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Fd},ACt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:EV},default:{bodyMapper:M,headersMapper:CV}},requestBody:IP,queryParameters:[U,SP],urlParameters:[F],headerParameters:[Ei,q,$,an,wP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fd},gCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:nw,headersMapper:IV},default:{bodyMapper:M,headersMapper:SV}},queryParameters:[U,bc,Bc,xP,bP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Fd};var VP=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},yCt)}getProperties(e){return this.client.sendOperationRequest({options:e},ECt)}delete(e){return this.client.sendOperationRequest({options:e},CCt)}setMetadata(e){return this.client.sendOperationRequest({options:e},ICt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},SCt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},wCt)}restore(e){return this.client.sendOperationRequest({options:e},xCt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},bCt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},BCt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},RCt)}acquireLease(e){return this.client.sendOperationRequest({options:e},NCt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},TCt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},PCt)}breakLease(e){return this.client.sendOperationRequest({options:e},_Ct)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},vCt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},QCt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},DCt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},kCt)}},ln=Do(Oo,!0),yCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:wV},default:{bodyMapper:M,headersMapper:xV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,zn,DW,tEe,rEe],isXML:!0,serializer:ln},ECt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:bV},default:{bodyMapper:M,headersMapper:BV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},CCt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:RV},default:{bodyMapper:M,headersMapper:NV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe],isXML:!0,serializer:ln},ICt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:TV},default:{bodyMapper:M,headersMapper:PV}},queryParameters:[U,cn,BP],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me],isXML:!0,serializer:ln},SCt={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:_V},default:{bodyMapper:M,headersMapper:vV}},queryParameters:[U,cn,kW],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},wCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:QV},default:{bodyMapper:M,headersMapper:DV}},requestBody:nEe,queryParameters:[U,cn,kW],urlParameters:[F],headerParameters:[xc,Ei,q,$,DW,Ge,Me,Fe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},xCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:kV},default:{bodyMapper:M,headersMapper:OV}},queryParameters:[U,cn,RP],urlParameters:[F],headerParameters:[q,$,j,sEe,oEe],isXML:!0,serializer:ln},bCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:LV},default:{bodyMapper:M,headersMapper:MV}},queryParameters:[U,cn,iEe],urlParameters:[F],headerParameters:[q,$,j,aEe,cEe],isXML:!0,serializer:ln},BCt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:FV},default:{bodyMapper:M,headersMapper:UV}},requestBody:IP,queryParameters:[U,SP,cn],urlParameters:[F],headerParameters:[Ei,q,$,an,wP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},RCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:nw,headersMapper:qV},default:{bodyMapper:M,headersMapper:$V}},queryParameters:[U,bc,Bc,xP,bP,cn],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},NCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:GV},default:{bodyMapper:M,headersMapper:HV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,NP,TP,PP],isXML:!0,serializer:ln},TCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:zV},default:{bodyMapper:M,headersMapper:VV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,_P,Md],isXML:!0,serializer:ln},PCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:WV},default:{bodyMapper:M,headersMapper:JV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Md,vP],isXML:!0,serializer:ln},_Ct={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:YV},default:{bodyMapper:M,headersMapper:jV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,QP,DP],isXML:!0,serializer:ln},vCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:KV},default:{bodyMapper:M,headersMapper:XV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Md,kP,OP],isXML:!0,serializer:ln},QCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:rV,headersMapper:ZV},default:{bodyMapper:M,headersMapper:e4}},queryParameters:[U,iw,aw,bc,Bc,cn,OW,LW],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},DCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:nV,headersMapper:t4},default:{bodyMapper:M,headersMapper:r4}},queryParameters:[U,iw,aw,bc,Bc,cn,OW,LW,lEe],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},kCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:n4},default:{bodyMapper:M,headersMapper:s4}},queryParameters:[Ci,U,bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln};var WP=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},OCt)}getProperties(e){return this.client.sendOperationRequest({options:e},LCt)}delete(e){return this.client.sendOperationRequest({options:e},MCt)}undelete(e){return this.client.sendOperationRequest({options:e},FCt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},UCt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},qCt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},$Ct)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},GCt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},HCt)}setMetadata(e){return this.client.sendOperationRequest({options:e},zCt)}acquireLease(e){return this.client.sendOperationRequest({options:e},VCt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},WCt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},JCt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},YCt)}breakLease(e){return this.client.sendOperationRequest({options:e},jCt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},KCt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},XCt)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},ZCt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},eIt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},tIt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},rIt)}query(e){return this.client.sendOperationRequest({options:e},nIt)}getTags(e){return this.client.sendOperationRequest({options:e},sIt)}setTags(e){return this.client.sendOperationRequest({options:e},oIt)}},Jt=Do(Oo,!0),OCt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:yP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:yP},default:{bodyMapper:M,headersMapper:o4}},queryParameters:[U,ys,Rc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,mm,uEe,dEe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Jt},LCt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:i4},default:{bodyMapper:M,headersMapper:a4}},queryParameters:[U,ys,Rc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Jt},MCt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:c4},default:{bodyMapper:M,headersMapper:l4}},queryParameters:[U,ys,Rc,fEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,pEe],isXML:!0,serializer:Jt},FCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:u4},default:{bodyMapper:M,headersMapper:d4}},queryParameters:[U,RP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},UCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:p4},default:{bodyMapper:M,headersMapper:f4}},queryParameters:[U,mEe],urlParameters:[F],headerParameters:[q,$,j,hEe,AEe],isXML:!0,serializer:Jt},qCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:m4},default:{bodyMapper:M,headersMapper:h4}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc],isXML:!0,serializer:Jt},$Ct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:A4},default:{bodyMapper:M,headersMapper:g4}},queryParameters:[U,ys,Rc,MW],urlParameters:[F],headerParameters:[q,$,j,Fe,pa,fa],isXML:!0,serializer:Jt},GCt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:y4},default:{bodyMapper:M,headersMapper:E4}},queryParameters:[U,ys,Rc,MW],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},HCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:C4},default:{bodyMapper:M,headersMapper:I4}},queryParameters:[U,ys,Rc,gEe],urlParameters:[F],headerParameters:[q,$,j,yEe],isXML:!0,serializer:Jt},zCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:S4},default:{bodyMapper:M,headersMapper:w4}},queryParameters:[U,BP],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Jt},VCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:x4},default:{bodyMapper:M,headersMapper:b4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,NP,TP,PP,st,ot,Xe],isXML:!0,serializer:Jt},WCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:B4},default:{bodyMapper:M,headersMapper:R4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,_P,Md,st,ot,Xe],isXML:!0,serializer:Jt},JCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:N4},default:{bodyMapper:M,headersMapper:T4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Md,vP,st,ot,Xe],isXML:!0,serializer:Jt},YCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:P4},default:{bodyMapper:M,headersMapper:_4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Md,kP,OP,st,ot,Xe],isXML:!0,serializer:Jt},jCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:v4},default:{bodyMapper:M,headersMapper:Q4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,QP,DP,st,ot,Xe],isXML:!0,serializer:Jt},KCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:D4},default:{bodyMapper:M,headersMapper:k4}},queryParameters:[U,EEe],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Jt},XCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:O4},default:{bodyMapper:M,headersMapper:L4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,st,ot,Xe,pa,fa,yu,FW,Dc,kc,Oc,Lc,LP,hm,ma,CEe,Mc],isXML:!0,serializer:Jt},ZCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:M4},default:{bodyMapper:M,headersMapper:F4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,st,ot,Xe,pa,fa,Mr,yu,Dc,kc,Oc,Lc,hm,ma,Mc,IEe,Eu,Cu,MP,Iu],isXML:!0,serializer:Jt},eIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:U4},default:{bodyMapper:M,headersMapper:q4}},queryParameters:[U,SEe,xEe],urlParameters:[F],headerParameters:[q,$,j,Ge,wEe],isXML:!0,serializer:Jt},tIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:EP},202:{headersMapper:EP},default:{bodyMapper:M,headersMapper:$4}},queryParameters:[U,ys,Rc,bEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,FW,BEe],isXML:!0,serializer:Jt},rIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:G4},default:{bodyMapper:M,headersMapper:H4}},queryParameters:[Ci,U,bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},nIt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:CP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:CP},default:{bodyMapper:M,headersMapper:z4}},requestBody:REe,queryParameters:[U,ys,NEe],urlParameters:[F],headerParameters:[xc,Ei,q,$,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Jt},sIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:sw,headersMapper:V4},default:{bodyMapper:M,headersMapper:W4}},queryParameters:[U,ys,Rc,UW],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,qW,$W,GW,HW],isXML:!0,serializer:Jt},oIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:J4},default:{bodyMapper:M,headersMapper:Y4}},requestBody:TEe,queryParameters:[U,Rc,UW],urlParameters:[F],headerParameters:[xc,Ei,q,$,Ge,Xe,qW,$W,GW,HW,Si,Fc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Jt};var JP=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},iIt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},aIt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},cIt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},lIt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},uIt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},dIt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},pIt)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},fIt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},mIt)}},Su=Do(Oo,!0),iIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:j4},default:{bodyMapper:M,headersMapper:K4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,yu,ma,Mc,PEe,zW,VW],isXML:!0,serializer:Su},aIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:X4},default:{bodyMapper:M,headersMapper:Z4}},requestBody:gm,queryParameters:[U,FP],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,mm,pr,fr,mr,st,ot,Xe,Mr,Si,Fc,Am,ym,WW,UP,qP,$P],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Su},cIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:eW},default:{bodyMapper:M,headersMapper:tW}},queryParameters:[U,FP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,mm,pr,fr,mr,st,ot,Xe,Mr,UP,qP,$P,_Ee],isXML:!0,serializer:Su},lIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:rW},default:{bodyMapper:M,headersMapper:nW}},queryParameters:[U,FP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Dc,kc,Oc,Lc,Eu,Cu,Iu,WW,UP,qP,$P,Bg,vEe,Rg,QEe],isXML:!0,serializer:Su},uIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:gP,headersMapper:sW},default:{bodyMapper:M,headersMapper:oW}},queryParameters:[U,bc,Bc,ys,JW],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,mm,st,ot,Xe],isXML:!0,serializer:Su},dIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:gP,headersMapper:iW},default:{bodyMapper:M,headersMapper:aW}},queryParameters:[U,bc,Bc,ys,JW,DEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,mm,st,ot,Xe,kEe],isXML:!0,serializer:Su},pIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:cW},default:{bodyMapper:M,headersMapper:lW}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,zW],isXML:!0,serializer:Su},fIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uW},default:{bodyMapper:M,headersMapper:dW}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,VW,OEe],isXML:!0,serializer:Su},mIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:pW},default:{bodyMapper:M,headersMapper:fW}},queryParameters:[U,LEe],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,st,ot,Xe,hm],isXML:!0,serializer:Su};var YP=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},hIt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},AIt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},gIt)}seal(e){return this.client.sendOperationRequest({options:e},yIt)}},jP=Do(Oo,!0),hIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:mW},default:{bodyMapper:M,headersMapper:hW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,ma,Mc,MEe],isXML:!0,serializer:jP},AIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:AW},default:{bodyMapper:M,headersMapper:gW}},requestBody:gm,queryParameters:[U,YW],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Si,Fc,Am,ym,jW,GP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:jP},gIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:yW},default:{bodyMapper:M,headersMapper:EW}},queryParameters:[U,YW],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Dc,kc,Oc,Lc,Eu,Cu,Iu,Si,Bg,Rg,jW,GP,HP],isXML:!0,serializer:jP},yIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:CW},default:{bodyMapper:M,headersMapper:IW}},queryParameters:[U,FEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,GP],isXML:!0,serializer:jP};var KP=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},EIt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},CIt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},IIt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},SIt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},wIt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},xIt)}},Tg=Do(Oo,!0),EIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:SW},default:{bodyMapper:M,headersMapper:wW}},requestBody:gm,queryParameters:[U],urlParameters:[F],headerParameters:[q,$,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,yu,ma,Mc,Si,Fc,Am,ym,KW],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Tg},CIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xW},default:{bodyMapper:M,headersMapper:bW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,Mr,yu,Dc,kc,Oc,Lc,LP,hm,ma,Eu,Cu,MP,Iu,Si,KW,UEe],isXML:!0,serializer:Tg},IIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:BW},default:{bodyMapper:M,headersMapper:RW}},requestBody:gm,queryParameters:[U,XW,ZW],urlParameters:[F],headerParameters:[q,$,an,Ge,pr,fr,mr,Mr,Si,Fc,Am,ym],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Tg},SIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:NW},default:{bodyMapper:M,headersMapper:TW}},queryParameters:[U,XW,ZW],urlParameters:[F],headerParameters:[q,$,j,an,Ge,pr,fr,mr,Mr,Dc,kc,Oc,Lc,Eu,Cu,Iu,Bg,Rg,HP],isXML:!0,serializer:Tg},wIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:PW},default:{bodyMapper:M,headersMapper:_W}},requestBody:qEe,queryParameters:[U,e8],urlParameters:[F],headerParameters:[xc,Ei,q,$,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,yu,ma,Mc,Si,Fc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Tg},xIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:oV,headersMapper:vW},default:{bodyMapper:M,headersMapper:QW}},queryParameters:[U,ys,e8,$Ee],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe],isXML:!0,serializer:Tg};var cw=class extends $S{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 zP(this),this.container=new VP(this),this.blob=new WP(this),this.pageBlob=new JP(this),this.appendBlob=new YP(this),this.blockBlob=new KP(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var lw=class extends cw{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 HEe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=BIt(r),e.pathname=r,e.toString()}i(HEe,"escapeURLPath");function bIt(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(bIt,"getProxyUriFromDevConnString");function Em(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Em,"getValueInConnString");function Cm(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=bIt(t),t=Fye);let r=Em(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=Em(t,"AccountName"),o=Buffer.from(Em(t,"AccountKey"),"base64"),!r){n=Em(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=Em(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=Em(t,"SharedAccessSignature"),s=Em(t,"AccountName");if(s||(s=s8(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(Cm,"extractConnectionStringParts");function BIt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(BIt,"escape");function Wr(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(Wr,"appendToURLPath");function Pg(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(Pg,"setURLParameter");function t8(t,e){return new URL(t).searchParams.get(e)??void 0}i(t8,"getURLParameter");function zEe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(zEe,"getURLScheme");function uw(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(uw,"appendToURLQuery");function ft(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(ft,"truncatedISO8061Date");function RIt(t){return pt?Buffer.from(t).toString("base64"):btoa(t)}i(RIt,"base64encode");function r8(t,e){t.length>42&&(t=t.slice(0,42));let o=t+NIt(e.toString(),48-t.length,"0");return RIt(o)}i(r8,"generateBlockID");function NIt(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(NIt,"padStart");function n8(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(n8,"iEqual");function s8(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:XP(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(s8,"getAccountNameFromUrl");function XP(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&&Hye.includes(t.port)}i(XP,"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 VEe(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(VEe,"toBlobTags");function ZP(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(ZP,"toTags");function o8(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(o8,"toQuerySerialization");function e_(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(e_,"parseObjectReplicationRecord");function _g(t){return t?t.scheme+" "+t.value:void 0}i(_g,"httpAuthorizationToString");function*i8(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 dw(t,e,r){return pw(t,e,r).sasQueryParameters}i(dw,"generateBlobSASQueryParameters");function pw(t,e,r){let n=t.version?t.version:hP,s=e instanceof dr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new fP(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?_It(t,s):n>="2025-07-05"?kIt(t,o):DIt(t,o);if(n>="2018-11-09")return s!==void 0?PIt(t,s):n>="2020-02-10"?QIt(t,o):vIt(t,o);if(n>="2015-04-05"){if(s!==void 0)return TIt(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(pw,"generateBlobSASQueryParametersInternal");function TIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():n=qc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(TIt,"generateBlobSASQueryParameters20150405");function PIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(PIt,"generateBlobSASQueryParameters20181109");function _It(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(_It,"generateBlobSASQueryParameters20201206");function vIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ha(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 Aa(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(vIt,"generateBlobSASQueryParametersUDK20181109");function QIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(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 Aa(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(QIt,"generateBlobSASQueryParametersUDK20200210");function DIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(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 Aa(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(DIt,"generateBlobSASQueryParametersUDK20201206");function kIt(t,e){if(t=Sm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Im(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ha(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 Aa(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(kIt,"generateBlobSASQueryParametersUDK20250705");function Im(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Im,"getCanonicalName");function Sm(t){let e=t.version?t.version:hP;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(Sm,"SASSignatureValuesSanityCheckAndAutofill");var fw=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=Ag()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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=>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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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=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!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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=>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!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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 de(await this._containerOrBlobOperation.breakLease(s))})}};var JEe=require("node:stream");var t_=class extends JEe.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 vo("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 r_=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 pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new t_(this.originalResponse.readableStreamBody,r,n,s,o)}};var eCe=require("node:stream");var a8=new Uint8Array([79,98,106,1]),YEe="avro.codec",jEe="avro.schema";var tr=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}},wm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(wm||(wm={}));var un;(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"})(un||(un={}));var wu=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 un.NULL:case un.BOOLEAN:case un.INT:case un.LONG:case un.FLOAT:case un.DOUBLE:case un.BYTES:case un.STRING:return new c8(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new u8(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case wm.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 p8(n,e.name);case wm.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 l8(e.symbols);case wm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new d8(t.fromSchema(e.values));case wm.ARRAY:case wm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},c8=class extends wu{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case un.NULL:return tr.readNull();case un.BOOLEAN:return tr.readBoolean(e,r);case un.INT:return tr.readInt(e,r);case un.LONG:return tr.readLong(e,r);case un.FLOAT:return tr.readFloat(e,r);case un.DOUBLE:return tr.readDouble(e,r);case un.BYTES:return tr.readBytes(e,r);case un.STRING:return tr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},l8=class extends wu{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._symbols[n]}},u8=class extends wu{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._types[n].read(e,r)}},d8=class extends wu{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 tr.readMap(e,n,r)}},p8=class extends wu{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 f8(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 tr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!f8(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var hw=class{static{i(this,"AvroReadable")}};var ZEe=require("buffer");var XEe=new vo("Reading from the avro stream was aborted."),Aw=class extends hw{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?ZEe.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 XEe;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(XEe)},"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 n_=class extends eCe.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 mw(new Aw(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 s_=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 pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new n_(this.originalResponse.readableStreamBody,r)}};var m8;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(m8||(m8={}));var h8;(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"})(h8||(h8={}));function qd(t){if(t!==void 0)return t}i(qd,"toAccessTier");function Jr(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Mye)}i(Jr,"ensureCpkIfSpecified");var A8;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(A8||(A8={}));function o_(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(o_,"rangeResponseFromModel");var FCe=R(MCe(),1);var h_=class extends FCe.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=Cw({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return vS(this.intervalInMs)}},ESt=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?Cw(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,Cw(r)):(r.isCancelled=!0,Cw(r))},"cancel"),CSt=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 Cw(r)},"update"),ISt=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function Cw(t){return{state:{...t},cancel:ESt,toString:ISt,update:CSt}}i(Cw,"makeBlobBeginCopyFromURLPollOperation");function Ws(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(Ws,"rangeToString");var UCe=require("events");var Iw;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(Iw||(Iw={}));var Sw=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=Iw.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new UCe.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=Iw.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($Ce,"streamToBuffer");async function GCe(t,e){return new Promise((r,n)=>{let s=A_.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(GCe,"readStreamToLocalFile");var HCe=qCe.default.promisify(A_.default.stat),zCe=A_.default.createReadStream;var xu=class t extends vg{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(gu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Cm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=vd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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=t8(this.url,Au.Parameters.SNAPSHOT),this._versionId=t8(this.url,Au.Parameters.VERSIONID)}withSnapshot(e){return new t(Pg(this.url,Au.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Pg(this.url,Au.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new y_(this.url,this.pipeline)}getBlockBlobClient(){return new kg(this.url,this.pipeline)}getPageBlobClient(){return new E_(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Jr(n.customerProvidedKey,this.isHttps),ee.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:pt?void 0:n.onProgress},range:e===0&&!r?void 0:Ws({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:e_(o.objectReplicationRules)};if(!pt)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 r_(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:Ws({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 Jr(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===$ye||n.details.errorCode===Gye))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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:e_(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ee.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 ee.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 ee.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||{},Jr(r.customerProvidedKey,this.isHttps),ee.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||{},Jr(r.customerProvidedKey,this.isHttps),ee.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 ee.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:VEe(e)})))}async getTags(e={}){return ee.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:ZP({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new fw(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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 h_({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=>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||{},ee.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:_g(r.sourceAuthorization),tier:qd(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 ee.withSpan("BlobClient-setAccessTier",r,async n=>de(await this.blobContext.setTier(qd(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 h=a+c;m+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await GCe(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(XP(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||{},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:qd(r.tier),blobTagsString:Ud(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=dw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(uw(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return pw({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=dw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(uw(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return pw({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=>de(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ee.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 ee.withSpan("BlobClient-setLegalHold",r,async n=>de(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ee.withSpan("BlobClient-getAccountInfo",e,async r=>de(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},y_=class t extends xu{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},gu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Cm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=vd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(Pg(this.url,Au.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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:Y3};return ee.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||{},ee.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||{},Jr(n.customerProvidedKey,this.isHttps),ee.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||{},Jr(s.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>de(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Ws({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:_g(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},kg=class t extends xu{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},gu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Cm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=vd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(Pg(this.url,Au.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(Jr(r.customerProvidedKey,this.isHttps),!pt)throw new Error("This operation currently is only supported in Node.js.");return ee.withSpan("BlockBlobClient-query",r,async n=>{let s=de(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:o8(r.inputTextConfiguration),outputSerialization:o8(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new s_(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},Jr(n.customerProvidedKey,this.isHttps),ee.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:qd(n.tier),blobTagsString:Ud(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:_g(r.sourceAuthorization),tier:qd(r.tier),blobTagsString:Ud(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return Jr(s.customerProvidedKey,this.isHttps),ee.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 Jr(o.customerProvidedKey,this.isHttps),ee.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:Ws({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:_g(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:qd(r.tier),blobTagsString:Ud(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ee.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 ee.withSpan("BlockBlobClient-uploadData",r,async n=>{if(pt){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 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=Ag(),d=0,p=new Sw(n.concurrency);for(let f=0;f{let m=r8(u,f),h=s*f,y=(f===c-1?r:h+s)-h;l.push(m),await this.stageBlock(m,e(h,y),y,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=y,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 HCe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>zCe(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=Ag(),l=0,u=[];return await new aP(e,r,n,async(p,f)=>{let m=r8(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(),de(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},E_=class t extends xu{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},gu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Cm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=vd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(Pg(this.url,Au.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:qd(r.tier),blobTagsString:Ud(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:Y3},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||{},Jr(s.customerProvidedKey,this.isHttps),ee.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:Ws({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||{},Jr(o.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>de(await this.pageBlobContext.uploadPagesFromURL(e,Ws({offset:r,count:s}),0,Ws({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:_g(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=>de(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ws({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=de(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ws({offset:e,count:r}),tracingOptions:s.tracingOptions}));return o_(o)})}async listPageRangesSegment(e=0,r,n,s={}){return ee.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:Ws({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*i8(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=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Ws({offset:e,count:r}),tracingOptions:o.tracingOptions}));return o_(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return ee.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:Ws({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*i8(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=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Ws({offset:e,count:r}),tracingOptions:o.tracingOptions}));return o_(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ee.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||{},ee.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 ee.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 VCe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(VCe||(VCe={}));var WCe;(function(t){t.AES256="AES256"})(WCe||(WCe={}));var C_=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Og=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"}};Og.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bm=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"}};Bm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ww=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var vSt=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())})},L8=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 JCe(t,e,r){return vSt(this,void 0,void 0,function*(){var n;let s=new xu(t),o=s.getBlockBlobClient(),a=new L8((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 C_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ur(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(JCe,"uploadCacheArchiveSDK");var jCe=R(require("buffer"),1),$c=R(require("fs"),1),KCe=R(require("stream"),1),XCe=R(require("util"),1);var I_=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 S_(t){return t?t>=200&&t<300:!1}i(S_,"isSuccessStatusCode");function QSt(t){return t?t>=500:!0}i(QSt,"isServerErrorStatusCode");function DSt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(DSt,"isRetryableStatusCode");function kSt(t){return I_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(kSt,"sleep");function YCe(t,e,r){return I_(this,arguments,void 0,function*(n,s,o,a=VN,c=WN,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(h){l&&(p=l(h)),m=!0,u=h.message}if(p&&(f=o(p),!QSt(f)))return p;if(f&&(m=DSt(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 kSt(c),d++}throw Error(`${n} failed: ${u}`)})}i(YCe,"retry");function xw(t,e){return I_(this,arguments,void 0,function*(r,n,s=VN,o=WN){return yield YCe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof mc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(xw,"retryTypedResponse");function Lg(t,e){return I_(this,arguments,void 0,function*(r,n,s=VN,o=WN){return yield YCe(r,n,a=>a.message.statusCode,s,o)})}i(Lg,"retryHttpClientResponse");var wi=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 OSt(t,e){return wi(this,void 0,void 0,function*(){yield XCe.promisify(KCe.pipeline)(t.message,e)})}i(OSt,"pipeResponseToStream");var w_=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 x_(t,e){return wi(this,void 0,void 0,function*(){let r=$c.createWriteStream(e),n=new Ro("actions/cache"),s=yield Lg("downloadCache",()=>wi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(uz,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${uz} ms`)}),yield OSt(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=fc(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(x_,"downloadCacheHttpClient");function ZCe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=yield $c.promises.open(e,"w"),o=new Ro("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Lg("downloadCacheMetadata",()=>wi(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;Iwi(this,void 0,void 0,function*(){return yield LSt(o,t,I,x)}),"promiseGetter")})}u.reverse();let p=0,f=0,m=new w_(l);m.startDisplayTimer();let h=m.onProgress(),A=[],y,E=i(()=>wi(this,void 0,void 0,function*(){let I=yield Promise.race(Object.values(A));yield s.write(I.buffer,0,I.count,I.offset),p--,delete A[I.offset],f+=I.count,h({loadedBytes:f})}),"waitAndWrite");for(;y=u.pop();)A[y.offset]=y.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield E());for(;p>0;)yield E()}finally{o.dispose(),yield s.close()}})}i(ZCe,"downloadCacheHttpClientConcurrent");function LSt(t,e,r,n){return wi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield tIe(3e4,MSt(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(LSt,"downloadSegmentRetry");function MSt(t,e,r,n){return wi(this,void 0,void 0,function*(){let s=yield Lg("downloadCachePart",()=>wi(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(MSt,"downloadSegment");function eIe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=new kg(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 x_(t,e);else{let c=Math.min(134217728,jCe.constants.MAX_LENGTH),l=new w_(a),u=$c.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 h=yield tIe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(f,m,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(h==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(h)&&$c.writeFileSync(u,h)}}finally{l.stopDisplayTimer(),$c.closeSync(u)}}})}i(eIe,"downloadCacheStorageSDK");var tIe=i((t,e)=>wi(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 M8(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(M8,"getUploadOptions");function rIe(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(rIe,"getDownloadOptions");function F8(){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(F8,"isGhes");function bw(){return F8()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(bw,"getCacheServiceVersion");var nIe=["none","read","write","write-only"];function U8(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(U8,"getCacheMode");function sIe(t){return nIe.includes(t)?t==="read"||t==="write":!0}i(sIe,"isCacheReadable");function oIe(t){return nIe.includes(t)?t==="write"||t==="write-only":!0}i(oIe,"isCacheWritable");function b_(){let t=bw();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(b_,"getCacheServiceURL");var lIe=R(cIe(),1);function B_(){return`@actions/cache-${lIe.version}`}i(B_,"getUserAgentString");var Js=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 Bw(t){let e=b_();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(Bw,"getCacheApiUrl");function qSt(t,e){return`${t};api-version=${e}`}i(qSt,"createAcceptHeader");function $St(){return{headers:{Accept:qSt("application/json","6.0-preview.1")}}}i($St,"getRequestOptions");function q8(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new cg(t);return new Ro(B_(),[e],$St())}i(q8,"createHttpClient");function pIe(t,e,r){return Js(this,void 0,void 0,function*(){var n;let s=q8(),o=ag(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield xw("getCacheEntry",()=>Js(this,void 0,void 0,function*(){return s.getJson(Bw(a))}));if(c.statusCode===204)return Vf()&&(yield GSt(t[0],s,o)),null;if(!S_(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(JN)?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 qn(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(pIe,"getCacheEntry");function GSt(t,e,r){return Js(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield xw("listCache",()=>Js(this,void 0,void 0,function*(){return e.getJson(Bw(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(GSt,"printCachesListForDiagnostics");function $8(t,e,r){return Js(this,void 0,void 0,function*(){let n=new dIe.URL(t),s=rIe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield eIe(t,e,s):s.concurrentBlobDownloads?yield ZCe(t,e,s):yield x_(t,e):yield x_(t,e)})}i($8,"downloadCache");function fIe(t,e,r){return Js(this,void 0,void 0,function*(){let n=q8(),s=ag(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield xw("reserveCache",()=>Js(this,void 0,void 0,function*(){return n.postJson(Bw("caches"),o)}))})}i(fIe,"reserveCache");function uIe(t,e){return`bytes ${t}-${e}/*`}i(uIe,"getContentRange");function HSt(t,e,r,n,s){return Js(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${uIe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":uIe(n,s)},a=yield Lg(`uploadChunk (start: ${n}, end: ${s})`,()=>Js(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!S_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(HSt,"uploadChunk");function zSt(t,e,r,n){return Js(this,void 0,void 0,function*(){let s=fc(r),o=Bw(`caches/${e.toString()}`),a=Mg.openSync(r,"r"),c=M8(n),l=mz("uploadConcurrency",c.uploadConcurrency),u=mz("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Js(this,void 0,void 0,function*(){for(;pMg.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),m,h)}})))}finally{Mg.closeSync(a)}})}i(zSt,"uploadFile");function VSt(t,e,r){return Js(this,void 0,void 0,function*(){let n={size:r};return yield xw("commitCache",()=>Js(this,void 0,void 0,function*(){return t.postJson(Bw(`caches/${e.toString()}`),n)}))})}i(VSt,"commitCache");function G8(t,e,r,n){return Js(this,void 0,void 0,function*(){if(M8(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield JCe(r,e,n)}else{let o=q8();T("Upload cache"),yield zSt(o,t,e,n),T("Commiting cache");let a=fc(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield VSt(o,t,a);if(!S_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(G8,"saveCache");var aSe=R(eSe(),1),vr=R(_r(),1),Mo=R(_r(),1),_m=R(_r(),1),vm=R(_r(),1),Qm=R(_r(),1);var LJ=R(_r(),1),MJ=R(_r(),1),sSe=R(_r(),1),oSe=R(_r(),1),iSe=R(_r(),1);var DJ=R(_r(),1),kJ=R(_r(),1),tSe=R(_r(),1),rSe=R(_r(),1),nSe=R(_r(),1);var OJ=class extends nSe.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,rSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posdv,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,oSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,sSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,vm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_m.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,vm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_m.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,vm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_m.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWJ.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=JJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>YJ.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=jJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>KJ.fromJson(s,{ignoreUnknownFields:!0}))}};function cSe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(qn(r),qn(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(cSe,"maskSigUrl");function lSe(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"&&cSe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&cSe(t.signed_download_url)}i(lSe,"maskSecretUrls");var fv=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())})},XJ=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=Qhe();this.baseUrl=b_(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ro(e,[new cg(o)])}request(e,r,n,s){return fv(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(()=>fv(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 fv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&ur(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new ww(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof Bm||c instanceof ww)throw c;if(Og.isNetworkErrorCode(c?.code))throw new Og(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?[At.BadGateway,At.GatewayTimeout,At.InternalServerError,At.ServiceUnavailable].includes(e):!1}sleep(e){return fv(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 ZJ(t){let e=new XJ(B_(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new pv(e)}i(ZJ,"internalCacheTwirpClient");var mv=require("fs"),Ks=R(require("path"),1);var Jc=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())})},zd=process.platform==="win32";function rbt(){return Jc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield vhe(),e=Nhe;if(t)return{path:t,type:Bo.GNU};if((0,mv.existsSync)(e))return{path:e,type:Bo.BSD};break}case"darwin":{let t=yield Ls("gtar",!1);return t?{path:t,type:Bo.GNU}:{path:yield Ls("tar",!0),type:Bo.BSD}}default:break}return{path:yield Ls("tar",!0),type:Bo.GNU}})}i(rbt,"getTarPath");function nbt(t,e,r){return Jc(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=Nd(s),u="cache.tar",d=dSe(),p=n.type===Bo.BSD&&s!==ms.Gzip&&zd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"--files-from",pz);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P","-C",p?eY(d):d.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P");break}if(n.type===Bo.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(nbt,"getTarArgs");function uSe(t,e){return Jc(this,arguments,void 0,function*(r,n,s=""){let o,a=yield rbt(),c=yield nbt(a,r,n,s),l=n!=="create"?yield sbt(a,r,s):yield obt(a,r),u=a.type===Bo.BSD&&r!==ms.Gzip&&zd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],{commands:u?o:[o.join(" ")],requiresTempDirectory:u&&n!=="create"}})}i(uSe,"getCommands");function dSe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(dSe,"getWorkingDirectory");function eY(t){return`"${Ks.resolve(t).replace(new RegExp(`\\${Ks.sep}`,"g"),"/")}"`}i(eY,"quoteAbsolutePath");function sbt(t,e,r){return Jc(this,void 0,void 0,function*(){let n=t.type===Bo.BSD&&e!==ms.Gzip&&zd;switch(e){case ms.Zstd:return n?["zstd -d --long=30 --force -o",SS,eY(r)]:["--use-compress-program",zd?'"zstd -d --long=30"':"unzstd --long=30"];case ms.ZstdWithoutLong:return n?["zstd -d --force -o",SS,eY(r)]:["--use-compress-program",zd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(sbt,"getDecompressionProgram");function obt(t,e){return Jc(this,void 0,void 0,function*(){let r=Nd(e),n=t.type===Bo.BSD&&e!==ms.Gzip&&zd;switch(e){case ms.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),SS]:["--use-compress-program",zd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case ms.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),SS]:["--use-compress-program",zd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(obt,"getCompressionProgram");function pSe(t,e){return Jc(this,void 0,void 0,function*(){for(let r of t)try{yield Ed(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(pSe,"execCommands");function fSe(t,e,r){return Jc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:s}=yield uSe(e,r,t),o=s?yield Zf():void 0;try{yield pSe(n,o)}finally{if(o)try{yield WI(o)}catch(a){T(`Failed to delete temporary tar directory: ${a}`)}}})}i(fSe,"execReadCommands");function qw(t,e){return Jc(this,void 0,void 0,function*(){yield fSe(t,e,"list")})}i(qw,"listTar");function tY(t,e){return Jc(this,void 0,void 0,function*(){let r=dSe();yield zf(r),yield fSe(t,e,"extract")})}i(tY,"extractTar");function rY(t,e,r){return Jc(this,void 0,void 0,function*(){(0,mv.writeFileSync)(Ks.join(t,pz),e.join(` -`));let{commands:n}=yield uSe(r,"create");yield pSe(n,t)})}i(rY,"createTar");var ey=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())})},Ea=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Dm=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nY="cache write denied:",hv=class t extends Dm{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},mSe=JN,Av=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},gv=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function hSe(t){if(!t||t.length===0)throw new Ea("Path Validation Error: At least one directory or file path is required")}i(hSe,"checkPaths");function sY(t){if(t.length>512)throw new Ea(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ea(`Key Validation Error: ${t} cannot contain commas.`)}i(sY,"checkKey");function oY(){return bw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(oY,"isFeatureAvailable");function ASe(t,e,r,n){return ey(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=bw();T(`Cache service version: ${u}`),hSe(s);let d=U8();if(!sIe(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 abt(s,o,a,c,l):yield ibt(s,o,a,c,l)})}i(ASe,"restoreCache");function ibt(t,e,r,n){return ey(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 Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)sY(m);let p=yield xS(),f="";try{let m;try{m=yield pIe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(A){let y=(u=A?.message)!==null&&u!==void 0?u:"";throw y.includes(mSe)?new Av(y):A}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=$w.join(yield Zf(),Nd(p)),T(`Archive Path: ${f}`),yield $8(m.archiveLocation,f,c),Vf()&&(yield qw(f,p));let h=fc(f);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield tY(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Ea.name)throw m;h instanceof mc&&typeof h.statusCode=="number"&&h.statusCode>=500?KA(`Failed to restore: ${m.message}`):ur(`Failed to restore: ${m.message}`)}finally{try{yield wS(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(ibt,"restoreCacheV1");function abt(t,e,r,n){return ey(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 Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)sY(f);let p="";try{let f=ZJ(),m=yield xS(),h={key:o,restoreKeys:a,version:ag(s,m,l)},A;try{A=yield f.GetCacheEntryDownloadURL(h)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(mSe)?new Av(x):I}if(!A.ok){T(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==A.matchedKey?ae(`Cache hit for restore-key: ${A.matchedKey}`):ae(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),A.matchedKey;p=$w.join(yield Zf(),Nd(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield $8(A.signedDownloadUrl,p,c);let E=fc(p);return ae(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Vf()&&(yield qw(p,m)),yield tY(p,m),ae("Cache restored successfully"),A.matchedKey}catch(f){let m=f;if(m.name===Ea.name)throw f;m instanceof mc&&typeof m.statusCode=="number"&&m.statusCode>=500?KA(`Failed to restore: ${f.message}`):ur(`Failed to restore: ${f.message}`)}finally{try{p&&(yield wS(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(abt,"restoreCacheV2");function iY(t,e,r){return ey(this,arguments,void 0,function*(n,s,o,a=!1){let c=bw();T(`Cache service version: ${c}`),hSe(n),sY(s);let l=U8();return oIe(l)?c==="v2"?yield lbt(n,s,o,a):yield cbt(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(iY,"saveCache");function cbt(t,e,r){return ey(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,f;let m=yield xS(),h=-1,A=yield fz(n);if(T("Cache Paths:"),T(`${JSON.stringify(A)}`),A.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 y=yield Zf(),E=$w.join(y,Nd(m));T(`Archive Path: ${E}`);try{yield rY(y,A,m),Vf()&&(yield qw(E,m));let I=10*1024*1024*1024,x=fc(E);if(T(`File Size: ${x}`),x>I&&!F8())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 fIe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:x});if(!((c=b?.result)===null||c===void 0)&&c.cacheId)h=(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(nY)?new hv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Dm(`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: ${h})`),yield G8(h,E,"",o)}catch(I){let x=I;if(x.name===Ea.name)throw I;x.name===Dm.name?ae(`Failed to save: ${x.message}`):x instanceof mc&&typeof x.statusCode=="number"&&x.statusCode>=500?KA(`Failed to save: ${x.message}`):ur(`Failed to save: ${x.message}`)}finally{try{yield wS(E)}catch(I){T(`Failed to delete archive: ${I}`)}}return h})}i(cbt,"saveCacheV1");function lbt(t,e,r){return ey(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 xS(),u=ZJ(),d=-1,p=yield fz(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 Zf(),m=$w.join(f,Nd(l));T(`Archive Path: ${m}`);try{yield rY(f,p,l),Vf()&&(yield qw(m,l));let h=fc(m);T(`File Size: ${h}`),o.archiveSizeBytes=h,T("Reserving Cache");let A=ag(n,l,a),y={key:s,version:A},E;try{let b=yield u.CreateCacheEntry(y);if(!b.ok)throw b.message&&!b.message.startsWith(nY)&&ur(`Cache reservation failed: ${b.message}`),new Error(b.message||"Response was not ok");E=b.signedUploadUrl}catch(b){T(`Failed to reserve cache: ${b}`);let N=(c=b?.message)!==null&&c!==void 0?c:"";throw N.startsWith(nY)?new hv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Dm(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${m}`),yield G8(d,m,E,o);let I={key:s,version:A,sizeBytes:`${h}`},x=yield u.FinalizeCacheEntryUpload(I);if(T(`FinalizeCacheEntryUploadResponse: ${x.ok}`),!x.ok)throw x.message?new gv(x.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(x.entryId)}catch(h){let A=h;if(A.name===Ea.name)throw h;A.name===Dm.name?ae(`Failed to save: ${A.message}`):A.name===gv.name?ur(A.message):A instanceof mc&&typeof A.statusCode=="number"&&A.statusCode>=500?KA(`Failed to save: ${A.message}`):ur(`Failed to save: ${A.message}`)}finally{try{yield wS(m)}catch(h){T(`Failed to delete archive: ${h}`)}}return d})}i(lbt,"saveCacheV2");var gSe=R(require("util"),1);var ty=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=gSe.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=cY.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=cY.default.join(this.cacheDir,this.opts.cacheFile),Gw.default.existsSync(this.cacheDir)||Gw.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&&oY())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await iY([this.cacheDir],this.ghaCacheKey)}catch(o){ur(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),Wf(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=sfe(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&&oY()){if(T("GitHub Actions cache feature available"),await ASe([this.cacheDir],this.ghaCacheKey)){if(ae(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!Gw.default.existsSync(this.cachePath))return ur(`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){ur(`Failed to restore cache: ${e}`)}return""}static async post(){let e=rde(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 iY([r.dir],r.key)}catch(n){ur(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ae(`Copying ${e} to ${this.cachePath}`),Gw.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await nfe(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`${aY.default.platform()}-${aY.default.arch()}${e?"v"+e:""}`}};var ySe=!!process.env.STATE_isPost;ySe||Wf("isPost","true");async function ESe(t,e){if(ySe)e&&await e(),await KI("Post cache",async()=>{await ty.post()});else try{await t()}catch(r){tde(r.message)}}i(ESe,"run");var jm=R(require("path"),1);var ct=Symbol("NOT_RESOLVED");function Wn(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(Wn,"defineScalarTag");function IY(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(IY,"defineSequenceTag");function Iv(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(Iv,"defineMappingTag");var pbt=Wn("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),fbt=["","~","null","Null","NULL"],mbt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>fbt.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),hbt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),Abt=["","~","null","Null","NULL"],gbt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>Abt.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),ybt=["true","True","TRUE"],Ebt=["false","False","FALSE"],Cbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>ybt.indexOf(t)!==-1?!0:Ebt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),Ibt=["true"],Sbt=["false"],wbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>Ibt.indexOf(t)!==-1?!0:Sbt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),xbt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],bbt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],Bbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>xbt.indexOf(t)!==-1?!0:bbt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),Rbt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),Nbt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Tbt(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(Tbt,"parseYamlInteger$2");function Pbt(t,e){if(e){if(!Nbt.test(t))return ct}else if(!Rbt.test(t))return ct;let r=Tbt(t);return Number.isFinite(r)?r:ct}i(Pbt,"resolveYamlInteger$2");var DSe=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Pbt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),_bt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),vbt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Qbt(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(Qbt,"parseYamlInteger$1");function Dbt(t,e){if(e){if(!vbt.test(t))return ct}else if(!_bt.test(t))return ct;let r=Qbt(t);return Number.isFinite(r)?r:ct}i(Dbt,"resolveYamlInteger$1");var kbt=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Dbt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Obt=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 Lbt(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(Lbt,"parseYamlInteger");function Mbt(t){if(!Obt.test(t))return ct;let e=Lbt(t);return Number.isFinite(e)?e:ct}i(Mbt,"resolveYamlInteger");var hY=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Mbt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Fbt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Ubt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qbt(t){if(!Fbt.test(t))return ct;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)||Ubt.test(t)?n:ct}i(qbt,"resolveYamlFloat$2");function $bt(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($bt,"representYamlFloat$2");var kSe=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:qbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:$bt}),Gbt=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Hbt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zbt(t,e){if(e){if(!Hbt.test(t))return ct;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:ct}if(!Gbt.test(t))return ct;let r=Number(t);return Number.isFinite(r)?r:ct}i(zbt,"resolveYamlFloat$1");function Vbt(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(Vbt,"representYamlFloat$1");var Wbt=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:zbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Vbt}),Jbt=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))$"),Ybt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jbt(t){if(!Jbt.test(t))return ct;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)||Ybt.test(t)?n:ct}i(jbt,"resolveYamlFloat");function Kbt(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(Kbt,"representYamlFloat");var AY=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:jbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Kbt}),Xbt=Wn("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":ct,"resolve"),identify:i(()=>!1,"identify")}),Zbt=/^[A-Za-z0-9+/]*={0,2}$/;function e0t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!Zbt.test(e))return ct;let r=atob(e),n=new Uint8Array(r.length);for(let s=0;sObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:t0t}),n0t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),s0t=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 CSe(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(CSe,"makeUtcDate");function o0t(t){let e=n0t.exec(t);if(e===null&&(e=s0t.exec(t)),e===null)return ct;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=CSe(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?ct:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return ct;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=CSe(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return ct;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return ct;let f=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-f:f))}return u}i(o0t,"resolveYamlTimestamp");var i0t=Wn("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:o0t,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),a0t=IY("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function Sv(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(Sv,"isPlainObject");function ISe(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(ISe,"pick");var c0t=IY("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(Sv(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")}),l0t=IY("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")}),u0t=Iv("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:Sv,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")}),d0t=Iv("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 p0t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(p0t,"createTagDefinitionMap");function f0t(){return{scalar:[],sequence:[],mapping:[]}}i(f0t,"createTagDefinitionListMap");function m0t(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!==ct)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 OSe([...this.tags,...r])}},SY=new wv([pbt,a0t,u0t]),GPr=new wv([...SY.tags,hbt,wbt,kbt,Wbt]),h0t=new wv([...SY.tags,mbt,Cbt,DSe,kSe]),A0t=new wv([...SY.tags,gbt,Bbt,hY,AY,i0t,Xbt,r0t,c0t,l0t,d0t]),g0t=A0t.withTags({...hY,resolve:i((t,e,r)=>{let n=hY.resolve(t,e,r);return n===ct?DSe.resolve(t,e,r):n},"resolve")},{...AY,resolve:i((t,e,r)=>{let n=AY.resolve(t,e,r);return n===ct?kSe.resolve(t,e,r):n},"resolve")}),HPr=Iv("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||Sv(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 SSe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:Sv,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=SSe(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=SSe(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")}),y0t={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function lY(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(lY,"getLine");function uY(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(uY,"padStart");function E0t(t,e){if(!t.buffer)return null;let r={...y0t,...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=lY(t.buffer,s[c-f],o[c-f],t.position-(s[c]-s[c-f]),d);l=`${" ".repeat(r.indent)}${uY((t.line-f+1).toString(),u)} | ${m.str} -${l}`}let p=lY(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${uY((t.line+1).toString(),u)} | ${p.str} +`+n(o)+s(o),c=(0,Oye.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(Pe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===Pe.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(Pe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>fP(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=uP(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=dP(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:REt,async sendRequest(o,a){return e(o),a(o)}}}i(Y3,"storageSharedKeyCredentialPolicy");var NEt="storageRequestFailureDetailsParserPolicy";function Lye(){return{name:NEt,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(Lye,"storageRequestFailureDetailsParserPolicy");var Mye=require("node:crypto");var mP=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,Mye.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var hP="12.31.0",AP="2026-02-06";var gP="https://storage.azure.com/.default",gu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var da="",j3="*",TEt=1*1024*1024;var PEt=4*TEt;var Fye="AES256",Uye="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",qye=["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"],$ye=["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"],Gye="BlobUsesCustomerSpecifiedEncryption",Hye="BlobDoesNotUseCustomerSpecifiedEncryption",zye=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function yu(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(yu,"isPipelineLike");var rw=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 Tr(t,e={}){t||(t=new Wt);let r=new rw([],e);return r._credential=t,r}i(Tr,"newPipeline");function _Et(t){let e=[vEt,Vye,QEt,DEt,kEt,OEt,MEt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>LEt(s));return{wrappedPolicies:b3(r),afterRetry:n}}}}i(_Et,"processDownlevelPipeline");function K3(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?B3(e):J3(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${hP}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=MS({...r,loggingOptions:{additionalAllowedHeaderNames:qye,additionalAllowedQueryParameters:$ye,logger:sP.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:nP,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:V3,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:t3}),s.addPolicy(Dye()),s.addPolicy(kye(r.retryOptions),{phase:"Retry"}),s.addPolicy(Lye()),s.addPolicy(Qye());let c=_Et(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=X3(t);Qo(l)?s.addPolicy(Eg({credential:l,scopes:r.audience??gP,challengeCallbacks:{authorizeRequestOnChallenge:VT}}),{phase:"Sign"}):l instanceof dr&&s.addPolicy(Y3({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(K3,"getCoreClientOptions");function X3(t){if(t._credential)return t._credential;let e=new Wt;for(let r of t.factories)if(Qo(r.credential))e=r.credential;else if(Vye(r))return r;return e}i(X3,"getCredentialFromPipeline");function Vye(t){return t instanceof dr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(Vye,"isStorageSharedKeyCredential");function vEt(t){return t instanceof Wt?!0:t.constructor.name==="AnonymousCredential"}i(vEt,"isAnonymousCredential");function QEt(t){return Qo(t.credential)}i(QEt,"isCoreHttpBearerTokenFactory");function DEt(t){return t instanceof KS?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(DEt,"isStorageBrowserPolicyFactory");function kEt(t){return t instanceof tw?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(kEt,"isStorageRetryPolicyFactory");function OEt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(OEt,"isStorageTelemetryPolicyFactory");function LEt(t){return t.constructor.name==="InjectorPolicyFactory"}i(LEt,"isInjectorPolicyFactory");function MEt(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(MEt,"isCoreHttpPolicyFactory");var Wye;(function(t){t.AES256="AES256"})(Wye||(Wye={}));var Jye;(function(t){t.Backup="backup"})(Jye||(Jye={}));var Yye;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(Yye||(Yye={}));var jye;(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"})(jye||(jye={}));var Oo={};cr(Oo,{AccessPolicy:()=>jEt,AppendBlobAppendBlockExceptionHeaders:()=>yW,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>CW,AppendBlobAppendBlockFromUrlHeaders:()=>EW,AppendBlobAppendBlockHeaders:()=>gW,AppendBlobCreateExceptionHeaders:()=>AW,AppendBlobCreateHeaders:()=>hW,AppendBlobSealExceptionHeaders:()=>SW,AppendBlobSealHeaders:()=>IW,ArrowConfiguration:()=>uCt,ArrowField:()=>dCt,BlobAbortCopyFromURLExceptionHeaders:()=>$4,BlobAbortCopyFromURLHeaders:()=>q4,BlobAcquireLeaseExceptionHeaders:()=>B4,BlobAcquireLeaseHeaders:()=>b4,BlobBreakLeaseExceptionHeaders:()=>D4,BlobBreakLeaseHeaders:()=>Q4,BlobChangeLeaseExceptionHeaders:()=>v4,BlobChangeLeaseHeaders:()=>_4,BlobCopyFromURLExceptionHeaders:()=>U4,BlobCopyFromURLHeaders:()=>F4,BlobCreateSnapshotExceptionHeaders:()=>O4,BlobCreateSnapshotHeaders:()=>k4,BlobDeleteExceptionHeaders:()=>u4,BlobDeleteHeaders:()=>l4,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>C4,BlobDeleteImmutabilityPolicyHeaders:()=>E4,BlobDownloadExceptionHeaders:()=>i4,BlobDownloadHeaders:()=>EP,BlobFlatListSegment:()=>KEt,BlobGetAccountInfoExceptionHeaders:()=>z4,BlobGetAccountInfoHeaders:()=>H4,BlobGetPropertiesExceptionHeaders:()=>c4,BlobGetPropertiesHeaders:()=>a4,BlobGetTagsExceptionHeaders:()=>J4,BlobGetTagsHeaders:()=>W4,BlobHierarchyListSegment:()=>tCt,BlobItemInternal:()=>XEt,BlobName:()=>ZEt,BlobPrefix:()=>rCt,BlobPropertiesInternal:()=>eCt,BlobQueryExceptionHeaders:()=>V4,BlobQueryHeaders:()=>IP,BlobReleaseLeaseExceptionHeaders:()=>N4,BlobReleaseLeaseHeaders:()=>R4,BlobRenewLeaseExceptionHeaders:()=>P4,BlobRenewLeaseHeaders:()=>T4,BlobServiceProperties:()=>nw,BlobServiceStatistics:()=>Z3,BlobSetExpiryExceptionHeaders:()=>m4,BlobSetExpiryHeaders:()=>f4,BlobSetHttpHeadersExceptionHeaders:()=>A4,BlobSetHttpHeadersHeaders:()=>h4,BlobSetImmutabilityPolicyExceptionHeaders:()=>y4,BlobSetImmutabilityPolicyHeaders:()=>g4,BlobSetLegalHoldExceptionHeaders:()=>S4,BlobSetLegalHoldHeaders:()=>I4,BlobSetMetadataExceptionHeaders:()=>x4,BlobSetMetadataHeaders:()=>w4,BlobSetTagsExceptionHeaders:()=>j4,BlobSetTagsHeaders:()=>Y4,BlobSetTierExceptionHeaders:()=>G4,BlobSetTierHeaders:()=>CP,BlobStartCopyFromURLExceptionHeaders:()=>M4,BlobStartCopyFromURLHeaders:()=>L4,BlobTag:()=>JEt,BlobTags:()=>ow,BlobUndeleteExceptionHeaders:()=>p4,BlobUndeleteHeaders:()=>d4,Block:()=>nCt,BlockBlobCommitBlockListExceptionHeaders:()=>vW,BlockBlobCommitBlockListHeaders:()=>_W,BlockBlobGetBlockListExceptionHeaders:()=>DW,BlockBlobGetBlockListHeaders:()=>QW,BlockBlobPutBlobFromUrlExceptionHeaders:()=>BW,BlockBlobPutBlobFromUrlHeaders:()=>bW,BlockBlobStageBlockExceptionHeaders:()=>NW,BlockBlobStageBlockFromURLExceptionHeaders:()=>PW,BlockBlobStageBlockFromURLHeaders:()=>TW,BlockBlobStageBlockHeaders:()=>RW,BlockBlobUploadExceptionHeaders:()=>xW,BlockBlobUploadHeaders:()=>wW,BlockList:()=>iV,BlockLookupList:()=>oV,ClearRange:()=>oCt,ContainerAcquireLeaseExceptionHeaders:()=>zV,ContainerAcquireLeaseHeaders:()=>HV,ContainerBreakLeaseExceptionHeaders:()=>KV,ContainerBreakLeaseHeaders:()=>jV,ContainerChangeLeaseExceptionHeaders:()=>ZV,ContainerChangeLeaseHeaders:()=>XV,ContainerCreateExceptionHeaders:()=>bV,ContainerCreateHeaders:()=>xV,ContainerDeleteExceptionHeaders:()=>TV,ContainerDeleteHeaders:()=>NV,ContainerFilterBlobsExceptionHeaders:()=>GV,ContainerFilterBlobsHeaders:()=>$V,ContainerGetAccessPolicyExceptionHeaders:()=>QV,ContainerGetAccessPolicyHeaders:()=>vV,ContainerGetAccountInfoExceptionHeaders:()=>o4,ContainerGetAccountInfoHeaders:()=>s4,ContainerGetPropertiesExceptionHeaders:()=>RV,ContainerGetPropertiesHeaders:()=>BV,ContainerItem:()=>zEt,ContainerListBlobFlatSegmentExceptionHeaders:()=>t4,ContainerListBlobFlatSegmentHeaders:()=>e4,ContainerListBlobHierarchySegmentExceptionHeaders:()=>n4,ContainerListBlobHierarchySegmentHeaders:()=>r4,ContainerProperties:()=>VEt,ContainerReleaseLeaseExceptionHeaders:()=>WV,ContainerReleaseLeaseHeaders:()=>VV,ContainerRenameExceptionHeaders:()=>FV,ContainerRenameHeaders:()=>MV,ContainerRenewLeaseExceptionHeaders:()=>YV,ContainerRenewLeaseHeaders:()=>JV,ContainerRestoreExceptionHeaders:()=>LV,ContainerRestoreHeaders:()=>OV,ContainerSetAccessPolicyExceptionHeaders:()=>kV,ContainerSetAccessPolicyHeaders:()=>DV,ContainerSetMetadataExceptionHeaders:()=>_V,ContainerSetMetadataHeaders:()=>PV,ContainerSubmitBatchExceptionHeaders:()=>qV,ContainerSubmitBatchHeaders:()=>UV,CorsRule:()=>$Et,DelimitedTextConfiguration:()=>cCt,FilterBlobItem:()=>WEt,FilterBlobSegment:()=>sw,GeoReplication:()=>HEt,JsonTextConfiguration:()=>lCt,KeyInfo:()=>tV,ListBlobsFlatSegmentResponse:()=>nV,ListBlobsHierarchySegmentResponse:()=>sV,ListContainersSegmentResponse:()=>eV,Logging:()=>FEt,Metrics:()=>qEt,PageBlobClearPagesExceptionHeaders:()=>rW,PageBlobClearPagesHeaders:()=>tW,PageBlobCopyIncrementalExceptionHeaders:()=>mW,PageBlobCopyIncrementalHeaders:()=>fW,PageBlobCreateExceptionHeaders:()=>X4,PageBlobCreateHeaders:()=>K4,PageBlobGetPageRangesDiffExceptionHeaders:()=>cW,PageBlobGetPageRangesDiffHeaders:()=>aW,PageBlobGetPageRangesExceptionHeaders:()=>iW,PageBlobGetPageRangesHeaders:()=>oW,PageBlobResizeExceptionHeaders:()=>uW,PageBlobResizeHeaders:()=>lW,PageBlobUpdateSequenceNumberExceptionHeaders:()=>pW,PageBlobUpdateSequenceNumberHeaders:()=>dW,PageBlobUploadPagesExceptionHeaders:()=>eW,PageBlobUploadPagesFromURLExceptionHeaders:()=>sW,PageBlobUploadPagesFromURLHeaders:()=>nW,PageBlobUploadPagesHeaders:()=>Z4,PageList:()=>yP,PageRange:()=>sCt,QueryFormat:()=>aCt,QueryRequest:()=>aV,QuerySerialization:()=>iCt,RetentionPolicy:()=>UEt,ServiceFilterBlobsExceptionHeaders:()=>wV,ServiceFilterBlobsHeaders:()=>SV,ServiceGetAccountInfoExceptionHeaders:()=>EV,ServiceGetAccountInfoHeaders:()=>yV,ServiceGetPropertiesExceptionHeaders:()=>dV,ServiceGetPropertiesHeaders:()=>uV,ServiceGetStatisticsExceptionHeaders:()=>fV,ServiceGetStatisticsHeaders:()=>pV,ServiceGetUserDelegationKeyExceptionHeaders:()=>gV,ServiceGetUserDelegationKeyHeaders:()=>AV,ServiceListContainersSegmentExceptionHeaders:()=>hV,ServiceListContainersSegmentHeaders:()=>mV,ServiceSetPropertiesExceptionHeaders:()=>lV,ServiceSetPropertiesHeaders:()=>cV,ServiceSubmitBatchExceptionHeaders:()=>IV,ServiceSubmitBatchHeaders:()=>CV,SignedIdentifier:()=>YEt,StaticWebsite:()=>GEt,StorageError:()=>M,UserDelegationKey:()=>rV});var nw={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"}}}}},FEt={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"}}}}},UEt={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"}}}}},qEt={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"}}}}},$Et={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"}}}}},GEt={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"}}}}},M={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"}}}}},Z3={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},HEt={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"}}}}},eV={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"}}}}},zEt={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"}}}}}}},VEt={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"}}}}},tV={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"}}}}},rV={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"}}}}},sw={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"}}}}},WEt={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"}}}}},ow={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"}}}}}}},JEt={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"}}}}},YEt={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"}}}}},jEt={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"}}}}},nV={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"}}}}},KEt={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"}}}}}}},XEt={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"}}}}},ZEt={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"}}}}},eCt={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"}}}}},sV={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"}}}}},tCt={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"}}}}}}},rCt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},oV={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"}}}}}}},iV={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"}}}}}}},nCt={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"}}}}},yP={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"}}}}},sCt={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"}}}}},oCt={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"}}}}},aV={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"}}}}},iCt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},aCt={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"}}}}}}},cCt={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"}}}}},lCt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},uCt={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"}}}}}}},dCt={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"}}}}},cV={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"}}}}},lV={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uV={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"}}}}},dV={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},pV={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"}}}}},fV={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mV={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"}}}}},hV={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AV={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"}}}}},gV={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yV={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"}}}}},EV={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CV={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"}}}}},IV={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SV={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"}}}}},wV={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xV={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"}}}}},bV={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BV={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"}}}}},RV={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NV={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"}}}}},TV={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PV={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"}}}}},_V={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vV={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"}}}}},QV={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DV={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"}}}}},kV={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OV={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"}}}}},LV={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MV={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"}}}}},FV={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UV={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"}}}}},qV={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$V={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"}}}}},GV={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HV={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"}}}}},zV={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VV={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"}}}}},WV={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JV={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"}}}}},YV={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jV={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"}}}}},KV={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XV={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"}}}}},ZV={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e4={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"}}}}},t4={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},r4={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"}}}}},n4={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},s4={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"}}}}},o4={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EP={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"}}}}},i4={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a4={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"}}}}},c4={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l4={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"}}}}},u4={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d4={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"}}}}},p4={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},f4={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"}}}}},m4={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h4={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"}}}}},A4={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g4={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"]}}}}},y4={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},E4={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"}}}}},C4={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I4={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"}}}}},S4={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w4={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"}}}}},x4={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},b4={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"}}}}},B4={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R4={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"}}}}},N4={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T4={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"}}}}},P4={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_4={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"}}}}},v4={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q4={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"}}}}},D4={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k4={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"}}}}},O4={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L4={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"}}}}},M4={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"}}}}},F4={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"}}}}},U4={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"}}}}},q4={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"}}}}},$4={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CP={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"}}}}},G4={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H4={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"}}}}},z4={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IP={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"}}}}},V4={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W4={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"}}}}},J4={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y4={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"}}}}},j4={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K4={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"}}}}},X4={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Z4={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"}}}}},eW={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tW={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"}}}}},rW={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nW={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"}}}}},sW={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"}}}}},oW={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"}}}}},iW={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},aW={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"}}}}},cW={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lW={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"}}}}},uW={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dW={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"}}}}},pW={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fW={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"}}}}},mW={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hW={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"}}}}},AW={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gW={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"}}}}},yW={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EW={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"}}}}},CW={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"}}}}},IW={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"}}}}},SW={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wW={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"}}}}},xW={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bW={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"}}}}},BW={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"}}}}},RW={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"}}}}},NW={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TW={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"}}}}},PW={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"}}}}},_W={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"}}}}},vW={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QW={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"}}}}},DW={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var xc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},Kye={parameterPath:"blobServiceProperties",mapper:nw},Ei={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},F={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},iw={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Ci={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},U={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},q={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},$={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"}}},Xye={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aw={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},cw={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},bc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},Bc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},Zye={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},eEe={parameterPath:"keyInfo",mapper:tV},tEe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Bg={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},SP={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},wP={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},an={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},xP={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},bP={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},BP={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},cn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},zn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},kW={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},rEe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},nEe={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"}}},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"}}},RP={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},OW={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},sEe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},NP={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},oEe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},iEe={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},aEe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},cEe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},lEe={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"}}},TP={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},PP={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},_P={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},vP={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Fd={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},QP={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},DP={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},kP={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},OP={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},LP={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},LW={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"},MW={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},uEe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ys={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Rc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},hm={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},dEe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},pEe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},pr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},fr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},mr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},st={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},ot={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Xe={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},fEe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},mEe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},hEe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},AEe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},gEe={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},Nc={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},Tc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},Pc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},_c={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},vc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Qc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},FW={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},pa={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},fa={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},yEe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},EEe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Mr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},CEe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Eu={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"]}}},UW={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},Dc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},kc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Oc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Lc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},MP={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Am={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ma={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},IEe={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Mc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},SEe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Cu={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Iu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},FP={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},Su={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},wEe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},xEe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},bEe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},BEe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},REe={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"]}}},NEe={parameterPath:["options","queryRequest"],mapper:aV},TEe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},qW={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$W={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},GW={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},HW={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},zW={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},PEe={parameterPath:["options","tags"],mapper:ow},Si={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},Fc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},_Ee={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},VW={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},WW={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},gm={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},ym={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Em={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},UP={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},JW={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},qP={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},$P={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},GP={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},vEe={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},Rg={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},QEe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Ng={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},DEe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},YW={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},kEe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},OEe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},LEe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},MEe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},FEe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},jW={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},KW={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},HP={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},zP={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},UEe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},XW={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},qEe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},ZW={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},e8={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},$Ee={parameterPath:"blocks",mapper:oV},t8={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},GEe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var VP=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},pCt)}getProperties(e){return this.client.sendOperationRequest({options:e},fCt)}getStatistics(e){return this.client.sendOperationRequest({options:e},mCt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},hCt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},ACt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},gCt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},yCt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},ECt)}},Ud=Do(Oo,!0),pCt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:cV},default:{bodyMapper:M,headersMapper:lV}},requestBody:Kye,queryParameters:[iw,Ci,U],urlParameters:[F],headerParameters:[xc,Ei,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},fCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:nw,headersMapper:uV},default:{bodyMapper:M,headersMapper:dV}},queryParameters:[iw,Ci,U],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Ud},mCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Z3,headersMapper:pV},default:{bodyMapper:M,headersMapper:fV}},queryParameters:[iw,U,Xye],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Ud},hCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:eV,headersMapper:mV},default:{bodyMapper:M,headersMapper:hV}},queryParameters:[U,aw,cw,bc,Bc,Zye],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Ud},ACt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:rV,headersMapper:AV},default:{bodyMapper:M,headersMapper:gV}},requestBody:eEe,queryParameters:[iw,U,tEe],urlParameters:[F],headerParameters:[xc,Ei,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},gCt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:yV},default:{bodyMapper:M,headersMapper:EV}},queryParameters:[Ci,U,Bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Ud},yCt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:CV},default:{bodyMapper:M,headersMapper:IV}},requestBody:SP,queryParameters:[U,wP],urlParameters:[F],headerParameters:[Ei,q,$,an,xP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ud},ECt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:sw,headersMapper:SV},default:{bodyMapper:M,headersMapper:wV}},queryParameters:[U,bc,Bc,bP,BP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Ud};var WP=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},CCt)}getProperties(e){return this.client.sendOperationRequest({options:e},ICt)}delete(e){return this.client.sendOperationRequest({options:e},SCt)}setMetadata(e){return this.client.sendOperationRequest({options:e},wCt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},xCt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},bCt)}restore(e){return this.client.sendOperationRequest({options:e},BCt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},RCt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},NCt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},TCt)}acquireLease(e){return this.client.sendOperationRequest({options:e},PCt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},_Ct)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},vCt)}breakLease(e){return this.client.sendOperationRequest({options:e},QCt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},DCt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},kCt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},OCt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},LCt)}},ln=Do(Oo,!0),CCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:xV},default:{bodyMapper:M,headersMapper:bV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,zn,kW,rEe,nEe],isXML:!0,serializer:ln},ICt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:BV},default:{bodyMapper:M,headersMapper:RV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},SCt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:NV},default:{bodyMapper:M,headersMapper:TV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe],isXML:!0,serializer:ln},wCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:PV},default:{bodyMapper:M,headersMapper:_V}},queryParameters:[U,cn,RP],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me],isXML:!0,serializer:ln},xCt={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:vV},default:{bodyMapper:M,headersMapper:QV}},queryParameters:[U,cn,OW],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},bCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:DV},default:{bodyMapper:M,headersMapper:kV}},requestBody:sEe,queryParameters:[U,cn,OW],urlParameters:[F],headerParameters:[xc,Ei,q,$,kW,Ge,Me,Fe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},BCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:OV},default:{bodyMapper:M,headersMapper:LV}},queryParameters:[U,cn,NP],urlParameters:[F],headerParameters:[q,$,j,oEe,iEe],isXML:!0,serializer:ln},RCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:MV},default:{bodyMapper:M,headersMapper:FV}},queryParameters:[U,cn,aEe],urlParameters:[F],headerParameters:[q,$,j,cEe,lEe],isXML:!0,serializer:ln},NCt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:UV},default:{bodyMapper:M,headersMapper:qV}},requestBody:SP,queryParameters:[U,wP,cn],urlParameters:[F],headerParameters:[Ei,q,$,an,xP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},TCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:sw,headersMapper:$V},default:{bodyMapper:M,headersMapper:GV}},queryParameters:[U,bc,Bc,bP,BP,cn],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},PCt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:HV},default:{bodyMapper:M,headersMapper:zV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,TP,PP,_P],isXML:!0,serializer:ln},_Ct={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:VV},default:{bodyMapper:M,headersMapper:WV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,vP,Fd],isXML:!0,serializer:ln},vCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:JV},default:{bodyMapper:M,headersMapper:YV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Fd,QP],isXML:!0,serializer:ln},QCt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:jV},default:{bodyMapper:M,headersMapper:KV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,DP,kP],isXML:!0,serializer:ln},DCt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:XV},default:{bodyMapper:M,headersMapper:ZV}},queryParameters:[U,cn,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Fd,OP,LP],isXML:!0,serializer:ln},kCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:nV,headersMapper:e4},default:{bodyMapper:M,headersMapper:t4}},queryParameters:[U,aw,cw,bc,Bc,cn,LW,MW],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},OCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:sV,headersMapper:r4},default:{bodyMapper:M,headersMapper:n4}},queryParameters:[U,aw,cw,bc,Bc,cn,LW,MW,uEe],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},LCt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:s4},default:{bodyMapper:M,headersMapper:o4}},queryParameters:[Ci,U,Bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln};var JP=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},MCt)}getProperties(e){return this.client.sendOperationRequest({options:e},FCt)}delete(e){return this.client.sendOperationRequest({options:e},UCt)}undelete(e){return this.client.sendOperationRequest({options:e},qCt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},$Ct)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},GCt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},HCt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},zCt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},VCt)}setMetadata(e){return this.client.sendOperationRequest({options:e},WCt)}acquireLease(e){return this.client.sendOperationRequest({options:e},JCt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},YCt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},jCt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},KCt)}breakLease(e){return this.client.sendOperationRequest({options:e},XCt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ZCt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},eIt)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},tIt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},rIt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},nIt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},sIt)}query(e){return this.client.sendOperationRequest({options:e},oIt)}getTags(e){return this.client.sendOperationRequest({options:e},iIt)}setTags(e){return this.client.sendOperationRequest({options:e},aIt)}},Jt=Do(Oo,!0),MCt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:EP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:EP},default:{bodyMapper:M,headersMapper:i4}},queryParameters:[U,ys,Rc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,hm,dEe,pEe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Jt},FCt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:a4},default:{bodyMapper:M,headersMapper:c4}},queryParameters:[U,ys,Rc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Jt},UCt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:l4},default:{bodyMapper:M,headersMapper:u4}},queryParameters:[U,ys,Rc,mEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,fEe],isXML:!0,serializer:Jt},qCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d4},default:{bodyMapper:M,headersMapper:p4}},queryParameters:[U,NP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},$Ct={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:f4},default:{bodyMapper:M,headersMapper:m4}},queryParameters:[U,hEe],urlParameters:[F],headerParameters:[q,$,j,AEe,gEe],isXML:!0,serializer:Jt},GCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:h4},default:{bodyMapper:M,headersMapper:A4}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc],isXML:!0,serializer:Jt},HCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:g4},default:{bodyMapper:M,headersMapper:y4}},queryParameters:[U,ys,Rc,FW],urlParameters:[F],headerParameters:[q,$,j,Fe,pa,fa],isXML:!0,serializer:Jt},zCt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:E4},default:{bodyMapper:M,headersMapper:C4}},queryParameters:[U,ys,Rc,FW],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},VCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:I4},default:{bodyMapper:M,headersMapper:S4}},queryParameters:[U,ys,Rc,yEe],urlParameters:[F],headerParameters:[q,$,j,EEe],isXML:!0,serializer:Jt},WCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:w4},default:{bodyMapper:M,headersMapper:x4}},queryParameters:[U,RP],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Jt},JCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:b4},default:{bodyMapper:M,headersMapper:B4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,TP,PP,_P,st,ot,Xe],isXML:!0,serializer:Jt},YCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:R4},default:{bodyMapper:M,headersMapper:N4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,vP,Fd,st,ot,Xe],isXML:!0,serializer:Jt},jCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:T4},default:{bodyMapper:M,headersMapper:P4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Fd,QP,st,ot,Xe],isXML:!0,serializer:Jt},KCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_4},default:{bodyMapper:M,headersMapper:v4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Fd,OP,LP,st,ot,Xe],isXML:!0,serializer:Jt},XCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Q4},default:{bodyMapper:M,headersMapper:D4}},queryParameters:[U,Ii],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,DP,kP,st,ot,Xe],isXML:!0,serializer:Jt},ZCt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:k4},default:{bodyMapper:M,headersMapper:O4}},queryParameters:[U,CEe],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Jt},eIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:L4},default:{bodyMapper:M,headersMapper:M4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,st,ot,Xe,pa,fa,Eu,UW,Dc,kc,Oc,Lc,MP,Am,ma,IEe,Mc],isXML:!0,serializer:Jt},tIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:F4},default:{bodyMapper:M,headersMapper:U4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,zn,Ge,Me,Fe,st,ot,Xe,pa,fa,Mr,Eu,Dc,kc,Oc,Lc,Am,ma,Mc,SEe,Cu,Iu,FP,Su],isXML:!0,serializer:Jt},rIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:q4},default:{bodyMapper:M,headersMapper:$4}},queryParameters:[U,wEe,bEe],urlParameters:[F],headerParameters:[q,$,j,Ge,xEe],isXML:!0,serializer:Jt},nIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:CP},202:{headersMapper:CP},default:{bodyMapper:M,headersMapper:G4}},queryParameters:[U,ys,Rc,BEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,UW,REe],isXML:!0,serializer:Jt},sIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:H4},default:{bodyMapper:M,headersMapper:z4}},queryParameters:[Ci,U,Bg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Jt},oIt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IP},default:{bodyMapper:M,headersMapper:V4}},requestBody:NEe,queryParameters:[U,ys,TEe],urlParameters:[F],headerParameters:[xc,Ei,q,$,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Jt},iIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ow,headersMapper:W4},default:{bodyMapper:M,headersMapper:J4}},queryParameters:[U,ys,Rc,qW],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,$W,GW,HW,zW],isXML:!0,serializer:Jt},aIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Y4},default:{bodyMapper:M,headersMapper:j4}},requestBody:PEe,queryParameters:[U,Rc,qW],urlParameters:[F],headerParameters:[xc,Ei,q,$,Ge,Xe,$W,GW,HW,zW,Si,Fc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Jt};var YP=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},cIt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},lIt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},uIt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},dIt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},pIt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},fIt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},mIt)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},hIt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},AIt)}},wu=Do(Oo,!0),cIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:K4},default:{bodyMapper:M,headersMapper:X4}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,Eu,ma,Mc,_Ee,VW,WW],isXML:!0,serializer:wu},lIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Z4},default:{bodyMapper:M,headersMapper:eW}},requestBody:ym,queryParameters:[U,UP],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,hm,pr,fr,mr,st,ot,Xe,Mr,Si,Fc,gm,Em,JW,qP,$P,GP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:wu},uIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:tW},default:{bodyMapper:M,headersMapper:rW}},queryParameters:[U,UP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,hm,pr,fr,mr,st,ot,Xe,Mr,qP,$P,GP,vEe],isXML:!0,serializer:wu},dIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:nW},default:{bodyMapper:M,headersMapper:sW}},queryParameters:[U,UP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Dc,kc,Oc,Lc,Cu,Iu,Su,JW,qP,$P,GP,Rg,QEe,Ng,DEe],isXML:!0,serializer:wu},pIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:yP,headersMapper:oW},default:{bodyMapper:M,headersMapper:iW}},queryParameters:[U,bc,Bc,ys,YW],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,hm,st,ot,Xe],isXML:!0,serializer:wu},fIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:yP,headersMapper:aW},default:{bodyMapper:M,headersMapper:cW}},queryParameters:[U,bc,Bc,ys,YW,kEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,hm,st,ot,Xe,OEe],isXML:!0,serializer:wu},mIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:lW},default:{bodyMapper:M,headersMapper:uW}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,VW],isXML:!0,serializer:wu},hIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:dW},default:{bodyMapper:M,headersMapper:pW}},queryParameters:[Ci,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,WW,LEe],isXML:!0,serializer:wu},AIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:fW},default:{bodyMapper:M,headersMapper:mW}},queryParameters:[U,MEe],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,st,ot,Xe,Am],isXML:!0,serializer:wu};var jP=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},gIt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},yIt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},EIt)}seal(e){return this.client.sendOperationRequest({options:e},CIt)}},KP=Do(Oo,!0),gIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hW},default:{bodyMapper:M,headersMapper:AW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,ma,Mc,FEe],isXML:!0,serializer:KP},yIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gW},default:{bodyMapper:M,headersMapper:yW}},requestBody:ym,queryParameters:[U,jW],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Si,Fc,gm,Em,KW,HP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:KP},EIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:EW},default:{bodyMapper:M,headersMapper:CW}},queryParameters:[U,jW],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Dc,kc,Oc,Lc,Cu,Iu,Su,Si,Rg,Ng,KW,HP,zP],isXML:!0,serializer:KP},CIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:IW},default:{bodyMapper:M,headersMapper:SW}},queryParameters:[U,UEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,HP],isXML:!0,serializer:KP};var XP=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},IIt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},SIt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},wIt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},xIt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},bIt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},BIt)}},Pg=Do(Oo,!0),IIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:wW},default:{bodyMapper:M,headersMapper:xW}},requestBody:ym,queryParameters:[U],urlParameters:[F],headerParameters:[q,$,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,Eu,ma,Mc,Si,Fc,gm,Em,XW],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Pg},SIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:bW},default:{bodyMapper:M,headersMapper:BW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,Mr,Eu,Dc,kc,Oc,Lc,MP,Am,ma,Cu,Iu,FP,Su,Si,XW,qEe],isXML:!0,serializer:Pg},wIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:RW},default:{bodyMapper:M,headersMapper:NW}},requestBody:ym,queryParameters:[U,ZW,e8],urlParameters:[F],headerParameters:[q,$,an,Ge,pr,fr,mr,Mr,Si,Fc,gm,Em],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Pg},xIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:TW},default:{bodyMapper:M,headersMapper:PW}},queryParameters:[U,ZW,e8],urlParameters:[F],headerParameters:[q,$,j,an,Ge,pr,fr,mr,Mr,Dc,kc,Oc,Lc,Cu,Iu,Su,Rg,Ng,zP],isXML:!0,serializer:Pg},bIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_W},default:{bodyMapper:M,headersMapper:vW}},requestBody:$Ee,queryParameters:[U,t8],urlParameters:[F],headerParameters:[xc,Ei,q,$,zn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Nc,Tc,Pc,_c,vc,Qc,pa,fa,Mr,Eu,ma,Mc,Si,Fc],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pg},BIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:iV,headersMapper:QW},default:{bodyMapper:M,headersMapper:DW}},queryParameters:[U,ys,t8,GEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe],isXML:!0,serializer:Pg};var lw=class extends GS{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 VP(this),this.container=new WP(this),this.blob=new JP(this),this.pageBlob=new YP(this),this.appendBlob=new jP(this),this.blockBlob=new XP(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var uw=class extends lw{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 zEe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=NIt(r),e.pathname=r,e.toString()}i(zEe,"escapeURLPath");function RIt(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(RIt,"getProxyUriFromDevConnString");function Cm(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Cm,"getValueInConnString");function Im(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=RIt(t),t=Uye);let r=Cm(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=Cm(t,"AccountName"),o=Buffer.from(Cm(t,"AccountKey"),"base64"),!r){n=Cm(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=Cm(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=Cm(t,"SharedAccessSignature"),s=Cm(t,"AccountName");if(s||(s=o8(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(Im,"extractConnectionStringParts");function NIt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(NIt,"escape");function Wr(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(Wr,"appendToURLPath");function _g(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(_g,"setURLParameter");function r8(t,e){return new URL(t).searchParams.get(e)??void 0}i(r8,"getURLParameter");function VEe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(VEe,"getURLScheme");function dw(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(dw,"appendToURLQuery");function ft(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(ft,"truncatedISO8061Date");function TIt(t){return pt?Buffer.from(t).toString("base64"):btoa(t)}i(TIt,"base64encode");function n8(t,e){t.length>42&&(t=t.slice(0,42));let o=t+PIt(e.toString(),48-t.length,"0");return TIt(o)}i(n8,"generateBlockID");function PIt(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(PIt,"padStart");function s8(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(s8,"iEqual");function o8(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:ZP(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(o8,"getAccountNameFromUrl");function ZP(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&&zye.includes(t.port)}i(ZP,"isIpEndpointStyle");function qd(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(qd,"toBlobTagsString");function WEe(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(WEe,"toBlobTags");function e_(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(e_,"toTags");function i8(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(i8,"toQuerySerialization");function t_(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(t_,"parseObjectReplicationRecord");function vg(t){return t?t.scheme+" "+t.value:void 0}i(vg,"httpAuthorizationToString");function*a8(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 pw(t,e,r){return fw(t,e,r).sasQueryParameters}i(pw,"generateBlobSASQueryParameters");function fw(t,e,r){let n=t.version?t.version:AP,s=e instanceof dr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new mP(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?QIt(t,s):n>="2025-07-05"?LIt(t,o):OIt(t,o);if(n>="2018-11-09")return s!==void 0?vIt(t,s):n>="2020-02-10"?kIt(t,o):DIt(t,o);if(n>="2015-04-05"){if(s!==void 0)return _It(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(fw,"generateBlobSASQueryParametersInternal");function _It(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():n=qc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(_It,"generateBlobSASQueryParameters20150405");function vIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(vIt,"generateBlobSASQueryParameters20181109");function QIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ha(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 Aa(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(QIt,"generateBlobSASQueryParameters20201206");function DIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ha(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 Aa(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(DIt,"generateBlobSASQueryParametersUDK20181109");function kIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(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 Aa(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(kIt,"generateBlobSASQueryParametersUDK20200210");function OIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ha(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 Aa(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(OIt,"generateBlobSASQueryParametersUDK20201206");function LIt(t,e){if(t=wm(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=Uc.parse(t.permissions.toString()).toString():s=qc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Sm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ha(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 Aa(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(LIt,"generateBlobSASQueryParametersUDK20250705");function Sm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Sm,"getCanonicalName");function wm(t){let e=t.version?t.version:AP;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(wm,"SASSignatureValuesSanityCheckAndAutofill");var mw=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=gg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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=>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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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=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!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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=>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!==da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==da||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!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||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 de(await this._containerOrBlobOperation.breakLease(s))})}};var YEe=require("node:stream");var r_=class extends YEe.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 vo("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 n_=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 pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new r_(this.originalResponse.readableStreamBody,r,n,s,o)}};var tCe=require("node:stream");var c8=new Uint8Array([79,98,106,1]),jEe="avro.codec",KEe="avro.schema";var tr=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}},xm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(xm||(xm={}));var un;(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"})(un||(un={}));var xu=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 un.NULL:case un.BOOLEAN:case un.INT:case un.LONG:case un.FLOAT:case un.DOUBLE:case un.BYTES:case un.STRING:return new l8(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new d8(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case xm.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 f8(n,e.name);case xm.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 u8(e.symbols);case xm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new p8(t.fromSchema(e.values));case xm.ARRAY:case xm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},l8=class extends xu{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case un.NULL:return tr.readNull();case un.BOOLEAN:return tr.readBoolean(e,r);case un.INT:return tr.readInt(e,r);case un.LONG:return tr.readLong(e,r);case un.FLOAT:return tr.readFloat(e,r);case un.DOUBLE:return tr.readDouble(e,r);case un.BYTES:return tr.readBytes(e,r);case un.STRING:return tr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},u8=class extends xu{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._symbols[n]}},d8=class extends xu{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._types[n].read(e,r)}},p8=class extends xu{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 tr.readMap(e,n,r)}},f8=class extends xu{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 m8(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 tr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!m8(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var Aw=class{static{i(this,"AvroReadable")}};var eCe=require("buffer");var ZEe=new vo("Reading from the avro stream was aborted."),gw=class extends Aw{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?eCe.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 ZEe;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(ZEe)},"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 s_=class extends tCe.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 hw(new gw(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 o_=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 pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new s_(this.originalResponse.readableStreamBody,r)}};var h8;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(h8||(h8={}));var A8;(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"})(A8||(A8={}));function $d(t){if(t!==void 0)return t}i($d,"toAccessTier");function Jr(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=Fye)}i(Jr,"ensureCpkIfSpecified");var g8;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(g8||(g8={}));function i_(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(i_,"rangeResponseFromModel");var UCe=R(FCe(),1);var A_=class extends UCe.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=Iw({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return QS(this.intervalInMs)}},ISt=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?Iw(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,Iw(r)):(r.isCancelled=!0,Iw(r))},"cancel"),SSt=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 Iw(r)},"update"),wSt=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function Iw(t){return{state:{...t},cancel:ISt,toString:wSt,update:SSt}}i(Iw,"makeBlobBeginCopyFromURLPollOperation");function Ws(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(Ws,"rangeToString");var qCe=require("events");var Sw;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(Sw||(Sw={}));var ww=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=Sw.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new qCe.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=Sw.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(GCe,"streamToBuffer");async function HCe(t,e){return new Promise((r,n)=>{let s=g_.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(HCe,"readStreamToLocalFile");var zCe=$Ce.default.promisify(g_.default.stat),VCe=g_.default.createReadStream;var bu=class t extends Qg{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(yu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Im(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Qd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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=r8(this.url,gu.Parameters.SNAPSHOT),this._versionId=r8(this.url,gu.Parameters.VERSIONID)}withSnapshot(e){return new t(_g(this.url,gu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(_g(this.url,gu.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new E_(this.url,this.pipeline)}getBlockBlobClient(){return new Og(this.url,this.pipeline)}getPageBlobClient(){return new C_(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Jr(n.customerProvidedKey,this.isHttps),ee.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:pt?void 0:n.onProgress},range:e===0&&!r?void 0:Ws({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:t_(o.objectReplicationRules)};if(!pt)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 n_(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:Ws({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 Jr(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===Gye||n.details.errorCode===Hye))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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:t_(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ee.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 ee.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 ee.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||{},Jr(r.customerProvidedKey,this.isHttps),ee.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||{},Jr(r.customerProvidedKey,this.isHttps),ee.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 ee.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:WEe(e)})))}async getTags(e={}){return ee.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:e_({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new mw(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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 A_({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=>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||{},ee.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:vg(r.sourceAuthorization),tier:$d(r.tier),blobTagsString:qd(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=>de(await this.blobContext.setTier($d(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 h=a+c;m+u{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await HCe(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(ZP(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||{},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:$d(r.tier),blobTagsString:qd(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=pw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(dw(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return fw({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=pw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(dw(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return fw({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=>de(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ee.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 ee.withSpan("BlobClient-setLegalHold",r,async n=>de(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ee.withSpan("BlobClient-getAccountInfo",e,async r=>de(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},E_=class t extends bu{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},yu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Im(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Qd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(_g(this.url,gu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Jr(e.customerProvidedKey,this.isHttps),ee.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:qd(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:j3};return ee.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||{},ee.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||{},Jr(n.customerProvidedKey,this.isHttps),ee.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||{},Jr(s.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>de(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Ws({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:vg(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},Og=class t extends bu{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},yu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Im(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Qd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(_g(this.url,gu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(Jr(r.customerProvidedKey,this.isHttps),!pt)throw new Error("This operation currently is only supported in Node.js.");return ee.withSpan("BlockBlobClient-query",r,async n=>{let s=de(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:i8(r.inputTextConfiguration),outputSerialization:i8(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new o_(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},Jr(n.customerProvidedKey,this.isHttps),ee.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:$d(n.tier),blobTagsString:qd(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:vg(r.sourceAuthorization),tier:$d(r.tier),blobTagsString:qd(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return Jr(s.customerProvidedKey,this.isHttps),ee.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 Jr(o.customerProvidedKey,this.isHttps),ee.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:Ws({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:vg(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:$d(r.tier),blobTagsString:qd(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ee.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 ee.withSpan("BlockBlobClient-uploadData",r,async n=>{if(pt){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 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=gg(),d=0,p=new ww(n.concurrency);for(let f=0;f{let m=n8(u,f),h=s*f,y=(f===c-1?r:h+s)-h;l.push(m),await this.stageBlock(m,e(h,y),y,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=y,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 zCe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>VCe(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=gg(),l=0,u=[];return await new cP(e,r,n,async(p,f)=>{let m=n8(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(),de(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},C_=class t extends bu{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},yu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Qo(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Im(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Qd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,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(_g(this.url,gu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},Jr(r.customerProvidedKey,this.isHttps),ee.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:$d(r.tier),blobTagsString:qd(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:j3},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||{},Jr(s.customerProvidedKey,this.isHttps),ee.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:Ws({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||{},Jr(o.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>de(await this.pageBlobContext.uploadPagesFromURL(e,Ws({offset:r,count:s}),0,Ws({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:vg(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=>de(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ws({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=de(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ws({offset:e,count:r}),tracingOptions:s.tracingOptions}));return i_(o)})}async listPageRangesSegment(e=0,r,n,s={}){return ee.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:Ws({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*a8(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=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Ws({offset:e,count:r}),tracingOptions:o.tracingOptions}));return i_(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return ee.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:Ws({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*a8(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=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Ws({offset:e,count:r}),tracingOptions:o.tracingOptions}));return i_(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ee.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||{},ee.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 ee.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 WCe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(WCe||(WCe={}));var JCe;(function(t){t.AES256="AES256"})(JCe||(JCe={}));var I_=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var Lg=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"}};Lg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rm=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"}};Rm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var xw=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var DSt=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())})},M8=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 YCe(t,e,r){return DSt(this,void 0,void 0,function*(){var n;let s=new bu(t),o=s.getBlockBlobClient(),a=new M8((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 I_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ur(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(YCe,"uploadCacheArchiveSDK");var KCe=R(require("buffer"),1),$c=R(require("fs"),1),XCe=R(require("stream"),1),ZCe=R(require("util"),1);var S_=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 w_(t){return t?t>=200&&t<300:!1}i(w_,"isSuccessStatusCode");function kSt(t){return t?t>=500:!0}i(kSt,"isServerErrorStatusCode");function OSt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(OSt,"isRetryableStatusCode");function LSt(t){return S_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(LSt,"sleep");function jCe(t,e,r){return S_(this,arguments,void 0,function*(n,s,o,a=WN,c=JN,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(h){l&&(p=l(h)),m=!0,u=h.message}if(p&&(f=o(p),!kSt(f)))return p;if(f&&(m=OSt(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 LSt(c),d++}throw Error(`${n} failed: ${u}`)})}i(jCe,"retry");function bw(t,e){return S_(this,arguments,void 0,function*(r,n,s=WN,o=JN){return yield jCe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof mc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(bw,"retryTypedResponse");function Mg(t,e){return S_(this,arguments,void 0,function*(r,n,s=WN,o=JN){return yield jCe(r,n,a=>a.message.statusCode,s,o)})}i(Mg,"retryHttpClientResponse");var wi=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 MSt(t,e){return wi(this,void 0,void 0,function*(){yield ZCe.promisify(XCe.pipeline)(t.message,e)})}i(MSt,"pipeResponseToStream");var x_=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 b_(t,e){return wi(this,void 0,void 0,function*(){let r=$c.createWriteStream(e),n=new Ro("actions/cache"),s=yield Mg("downloadCache",()=>wi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(dz,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${dz} ms`)}),yield MSt(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=fc(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(b_,"downloadCacheHttpClient");function eIe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=yield $c.promises.open(e,"w"),o=new Ro("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Mg("downloadCacheMetadata",()=>wi(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;Iwi(this,void 0,void 0,function*(){return yield FSt(o,t,I,x)}),"promiseGetter")})}u.reverse();let p=0,f=0,m=new x_(l);m.startDisplayTimer();let h=m.onProgress(),A=[],y,E=i(()=>wi(this,void 0,void 0,function*(){let I=yield Promise.race(Object.values(A));yield s.write(I.buffer,0,I.count,I.offset),p--,delete A[I.offset],f+=I.count,h({loadedBytes:f})}),"waitAndWrite");for(;y=u.pop();)A[y.offset]=y.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield E());for(;p>0;)yield E()}finally{o.dispose(),yield s.close()}})}i(eIe,"downloadCacheHttpClientConcurrent");function FSt(t,e,r,n){return wi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield rIe(3e4,USt(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(FSt,"downloadSegmentRetry");function USt(t,e,r,n){return wi(this,void 0,void 0,function*(){let s=yield Mg("downloadCachePart",()=>wi(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(USt,"downloadSegment");function tIe(t,e,r){return wi(this,void 0,void 0,function*(){var n;let s=new Og(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 b_(t,e);else{let c=Math.min(134217728,KCe.constants.MAX_LENGTH),l=new x_(a),u=$c.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 h=yield rIe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(f,m,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(h==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(h)&&$c.writeFileSync(u,h)}}finally{l.stopDisplayTimer(),$c.closeSync(u)}}})}i(tIe,"downloadCacheStorageSDK");var rIe=i((t,e)=>wi(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 F8(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(F8,"getUploadOptions");function nIe(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(nIe,"getDownloadOptions");function U8(){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(U8,"isGhes");function Bw(){return U8()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(Bw,"getCacheServiceVersion");var sIe=["none","read","write","write-only"];function q8(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(q8,"getCacheMode");function oIe(t){return sIe.includes(t)?t==="read"||t==="write":!0}i(oIe,"isCacheReadable");function iIe(t){return sIe.includes(t)?t==="write"||t==="write-only":!0}i(iIe,"isCacheWritable");function B_(){let t=Bw();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(B_,"getCacheServiceURL");var uIe=R(lIe(),1);function R_(){return`@actions/cache-${uIe.version}`}i(R_,"getUserAgentString");var Js=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 Rw(t){let e=B_();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(Rw,"getCacheApiUrl");function GSt(t,e){return`${t};api-version=${e}`}i(GSt,"createAcceptHeader");function HSt(){return{headers:{Accept:GSt("application/json","6.0-preview.1")}}}i(HSt,"getRequestOptions");function $8(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new lg(t);return new Ro(R_(),[e],HSt())}i($8,"createHttpClient");function fIe(t,e,r){return Js(this,void 0,void 0,function*(){var n;let s=$8(),o=cg(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield bw("getCacheEntry",()=>Js(this,void 0,void 0,function*(){return s.getJson(Rw(a))}));if(c.statusCode===204)return Wf()&&(yield zSt(t[0],s,o)),null;if(!w_(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(YN)?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 qn(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(fIe,"getCacheEntry");function zSt(t,e,r){return Js(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield bw("listCache",()=>Js(this,void 0,void 0,function*(){return e.getJson(Rw(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(zSt,"printCachesListForDiagnostics");function G8(t,e,r){return Js(this,void 0,void 0,function*(){let n=new pIe.URL(t),s=nIe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield tIe(t,e,s):s.concurrentBlobDownloads?yield eIe(t,e,s):yield b_(t,e):yield b_(t,e)})}i(G8,"downloadCache");function mIe(t,e,r){return Js(this,void 0,void 0,function*(){let n=$8(),s=cg(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield bw("reserveCache",()=>Js(this,void 0,void 0,function*(){return n.postJson(Rw("caches"),o)}))})}i(mIe,"reserveCache");function dIe(t,e){return`bytes ${t}-${e}/*`}i(dIe,"getContentRange");function VSt(t,e,r,n,s){return Js(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${dIe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":dIe(n,s)},a=yield Mg(`uploadChunk (start: ${n}, end: ${s})`,()=>Js(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!w_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(VSt,"uploadChunk");function WSt(t,e,r,n){return Js(this,void 0,void 0,function*(){let s=fc(r),o=Rw(`caches/${e.toString()}`),a=Fg.openSync(r,"r"),c=F8(n),l=hz("uploadConcurrency",c.uploadConcurrency),u=hz("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Js(this,void 0,void 0,function*(){for(;pFg.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),m,h)}})))}finally{Fg.closeSync(a)}})}i(WSt,"uploadFile");function JSt(t,e,r){return Js(this,void 0,void 0,function*(){let n={size:r};return yield bw("commitCache",()=>Js(this,void 0,void 0,function*(){return t.postJson(Rw(`caches/${e.toString()}`),n)}))})}i(JSt,"commitCache");function H8(t,e,r,n){return Js(this,void 0,void 0,function*(){if(F8(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield YCe(r,e,n)}else{let o=$8();T("Upload cache"),yield WSt(o,t,e,n),T("Commiting cache");let a=fc(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield JSt(o,t,a);if(!w_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(H8,"saveCache");var cSe=R(tSe(),1),vr=R(_r(),1),Mo=R(_r(),1),vm=R(_r(),1),Qm=R(_r(),1),Dm=R(_r(),1);var MJ=R(_r(),1),FJ=R(_r(),1),oSe=R(_r(),1),iSe=R(_r(),1),aSe=R(_r(),1);var kJ=R(_r(),1),OJ=R(_r(),1),rSe=R(_r(),1),nSe=R(_r(),1),sSe=R(_r(),1);var LJ=class extends sSe.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,nSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pospv,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,iSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,Qm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,Qm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posWc,"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,Qm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vm.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.posJJ.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=YJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>jJ.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=KJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>XJ.fromJson(s,{ignoreUnknownFields:!0}))}};function lSe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(qn(r),qn(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(lSe,"maskSigUrl");function uSe(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"&&lSe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&lSe(t.signed_download_url)}i(uSe,"maskSecretUrls");var mv=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())})},ZJ=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=Dhe();this.baseUrl=B_(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Ro(e,[new lg(o)])}request(e,r,n,s){return mv(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(()=>mv(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 mv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r0&&ur(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new xw(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof Rm||c instanceof xw)throw c;if(Lg.isNetworkErrorCode(c?.code))throw new Lg(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?[At.BadGateway,At.GatewayTimeout,At.InternalServerError,At.ServiceUnavailable].includes(e):!1}sleep(e){return mv(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 eY(t){let e=new ZJ(R_(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new fv(e)}i(eY,"internalCacheTwirpClient");var hv=require("fs"),Ks=R(require("path"),1);var Jc=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())})},Vd=process.platform==="win32";function sbt(){return Jc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Qhe(),e=The;if(t)return{path:t,type:Bo.GNU};if((0,hv.existsSync)(e))return{path:e,type:Bo.BSD};break}case"darwin":{let t=yield Ls("gtar",!1);return t?{path:t,type:Bo.GNU}:{path:yield Ls("tar",!0),type:Bo.BSD}}default:break}return{path:yield Ls("tar",!0),type:Bo.GNU}})}i(sbt,"getTarPath");function obt(t,e,r){return Jc(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=Td(s),u="cache.tar",d=pSe(),p=n.type===Bo.BSD&&s!==ms.Gzip&&Vd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"--files-from",fz);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P","-C",p?tY(d):d.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),"-P");break}if(n.type===Bo.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(obt,"getTarArgs");function dSe(t,e){return Jc(this,arguments,void 0,function*(r,n,s=""){let o,a=yield sbt(),c=yield obt(a,r,n,s),l=n!=="create"?yield ibt(a,r,s):yield abt(a,r),u=a.type===Bo.BSD&&r!==ms.Gzip&&Vd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],{commands:u?o:[o.join(" ")],requiresTempDirectory:u&&n!=="create"}})}i(dSe,"getCommands");function pSe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(pSe,"getWorkingDirectory");function tY(t){return`"${Ks.resolve(t).replace(new RegExp(`\\${Ks.sep}`,"g"),"/")}"`}i(tY,"quoteAbsolutePath");function ibt(t,e,r){return Jc(this,void 0,void 0,function*(){let n=t.type===Bo.BSD&&e!==ms.Gzip&&Vd;switch(e){case ms.Zstd:return n?["zstd -d --long=30 --force -o",wS,tY(r)]:["--use-compress-program",Vd?'"zstd -d --long=30"':"unzstd --long=30"];case ms.ZstdWithoutLong:return n?["zstd -d --force -o",wS,tY(r)]:["--use-compress-program",Vd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(ibt,"getDecompressionProgram");function abt(t,e){return Jc(this,void 0,void 0,function*(){let r=Td(e),n=t.type===Bo.BSD&&e!==ms.Gzip&&Vd;switch(e){case ms.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),wS]:["--use-compress-program",Vd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case ms.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${Ks.sep}`,"g"),"/"),wS]:["--use-compress-program",Vd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(abt,"getCompressionProgram");function fSe(t,e){return Jc(this,void 0,void 0,function*(){for(let r of t)try{yield Cd(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(fSe,"execCommands");function mSe(t,e,r){return Jc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:s}=yield dSe(e,r,t),o=s?yield em():void 0;try{yield fSe(n,o)}finally{if(o)try{yield JI(o)}catch(a){T(`Failed to delete temporary tar directory: ${a}`)}}})}i(mSe,"execReadCommands");function $w(t,e){return Jc(this,void 0,void 0,function*(){yield mSe(t,e,"list")})}i($w,"listTar");function rY(t,e){return Jc(this,void 0,void 0,function*(){let r=pSe();yield Vf(r),yield mSe(t,e,"extract")})}i(rY,"extractTar");function nY(t,e,r){return Jc(this,void 0,void 0,function*(){(0,hv.writeFileSync)(Ks.join(t,fz),e.join(` +`));let{commands:n}=yield dSe(r,"create");yield fSe(n,t)})}i(nY,"createTar");var ty=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())})},Ea=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},km=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},sY="cache write denied:",Av=class t extends km{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},hSe=YN,gv=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},yv=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ASe(t){if(!t||t.length===0)throw new Ea("Path Validation Error: At least one directory or file path is required")}i(ASe,"checkPaths");function oY(t){if(t.length>512)throw new Ea(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ea(`Key Validation Error: ${t} cannot contain commas.`)}i(oY,"checkKey");function iY(){return Bw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(iY,"isFeatureAvailable");function gSe(t,e,r,n){return ty(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=Bw();T(`Cache service version: ${u}`),ASe(s);let d=q8();if(!oIe(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 lbt(s,o,a,c,l):yield cbt(s,o,a,c,l)})}i(gSe,"restoreCache");function cbt(t,e,r,n){return ty(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 Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)oY(m);let p=yield bS(),f="";try{let m;try{m=yield fIe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(A){let y=(u=A?.message)!==null&&u!==void 0?u:"";throw y.includes(hSe)?new gv(y):A}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=Gw.join(yield em(),Td(p)),T(`Archive Path: ${f}`),yield G8(m.archiveLocation,f,c),Wf()&&(yield $w(f,p));let h=fc(f);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield rY(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Ea.name)throw m;h instanceof mc&&typeof h.statusCode=="number"&&h.statusCode>=500?XA(`Failed to restore: ${m.message}`):ur(`Failed to restore: ${m.message}`)}finally{try{yield xS(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(cbt,"restoreCacheV1");function lbt(t,e,r,n){return ty(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 Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)oY(f);let p="";try{let f=eY(),m=yield bS(),h={key:o,restoreKeys:a,version:cg(s,m,l)},A;try{A=yield f.GetCacheEntryDownloadURL(h)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(hSe)?new gv(x):I}if(!A.ok){T(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==A.matchedKey?ae(`Cache hit for restore-key: ${A.matchedKey}`):ae(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),A.matchedKey;p=Gw.join(yield em(),Td(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield G8(A.signedDownloadUrl,p,c);let E=fc(p);return ae(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Wf()&&(yield $w(p,m)),yield rY(p,m),ae("Cache restored successfully"),A.matchedKey}catch(f){let m=f;if(m.name===Ea.name)throw f;m instanceof mc&&typeof m.statusCode=="number"&&m.statusCode>=500?XA(`Failed to restore: ${f.message}`):ur(`Failed to restore: ${f.message}`)}finally{try{p&&(yield xS(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(lbt,"restoreCacheV2");function aY(t,e,r){return ty(this,arguments,void 0,function*(n,s,o,a=!1){let c=Bw();T(`Cache service version: ${c}`),ASe(n),oY(s);let l=q8();return iIe(l)?c==="v2"?yield dbt(n,s,o,a):yield ubt(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(aY,"saveCache");function ubt(t,e,r){return ty(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,f;let m=yield bS(),h=-1,A=yield mz(n);if(T("Cache Paths:"),T(`${JSON.stringify(A)}`),A.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 y=yield em(),E=Gw.join(y,Td(m));T(`Archive Path: ${E}`);try{yield nY(y,A,m),Wf()&&(yield $w(E,m));let I=10*1024*1024*1024,x=fc(E);if(T(`File Size: ${x}`),x>I&&!U8())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 mIe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:x});if(!((c=b?.result)===null||c===void 0)&&c.cacheId)h=(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(sY)?new Av(`Unable to reserve cache with key ${s}. More details: ${N}`):new km(`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: ${h})`),yield H8(h,E,"",o)}catch(I){let x=I;if(x.name===Ea.name)throw I;x.name===km.name?ae(`Failed to save: ${x.message}`):x instanceof mc&&typeof x.statusCode=="number"&&x.statusCode>=500?XA(`Failed to save: ${x.message}`):ur(`Failed to save: ${x.message}`)}finally{try{yield xS(E)}catch(I){T(`Failed to delete archive: ${I}`)}}return h})}i(ubt,"saveCacheV1");function dbt(t,e,r){return ty(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 bS(),u=eY(),d=-1,p=yield mz(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 em(),m=Gw.join(f,Td(l));T(`Archive Path: ${m}`);try{yield nY(f,p,l),Wf()&&(yield $w(m,l));let h=fc(m);T(`File Size: ${h}`),o.archiveSizeBytes=h,T("Reserving Cache");let A=cg(n,l,a),y={key:s,version:A},E;try{let b=yield u.CreateCacheEntry(y);if(!b.ok)throw b.message&&!b.message.startsWith(sY)&&ur(`Cache reservation failed: ${b.message}`),new Error(b.message||"Response was not ok");E=b.signedUploadUrl}catch(b){T(`Failed to reserve cache: ${b}`);let N=(c=b?.message)!==null&&c!==void 0?c:"";throw N.startsWith(sY)?new Av(`Unable to reserve cache with key ${s}. More details: ${N}`):new km(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${m}`),yield H8(d,m,E,o);let I={key:s,version:A,sizeBytes:`${h}`},x=yield u.FinalizeCacheEntryUpload(I);if(T(`FinalizeCacheEntryUploadResponse: ${x.ok}`),!x.ok)throw x.message?new yv(x.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(x.entryId)}catch(h){let A=h;if(A.name===Ea.name)throw h;A.name===km.name?ae(`Failed to save: ${A.message}`):A.name===yv.name?ur(A.message):A instanceof mc&&typeof A.statusCode=="number"&&A.statusCode>=500?XA(`Failed to save: ${A.message}`):ur(`Failed to save: ${A.message}`)}finally{try{yield xS(m)}catch(h){T(`Failed to delete archive: ${h}`)}}return d})}i(dbt,"saveCacheV2");var ySe=R(require("util"),1);var ry=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=ySe.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=lY.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=lY.default.join(this.cacheDir,this.opts.cacheFile),Hw.default.existsSync(this.cacheDir)||Hw.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&&iY())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await aY([this.cacheDir],this.ghaCacheKey)}catch(o){ur(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),Jf(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=ofe(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&&iY()){if(T("GitHub Actions cache feature available"),await gSe([this.cacheDir],this.ghaCacheKey)){if(ae(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!Hw.default.existsSync(this.cachePath))return ur(`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){ur(`Failed to restore cache: ${e}`)}return""}static async post(){let e=nde(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 aY([r.dir],r.key)}catch(n){ur(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ae(`Copying ${e} to ${this.cachePath}`),Hw.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await sfe(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`${cY.default.platform()}-${cY.default.arch()}${e?"v"+e:""}`}};var ESe=!!process.env.STATE_isPost;ESe||Jf("isPost","true");async function CSe(t,e){if(ESe)e&&await e(),await XI("Post cache",async()=>{await ry.post()});else try{await t()}catch(r){rde(r.message)}}i(CSe,"run");var Km=R(require("path"),1);var ct=Symbol("NOT_RESOLVED");function Wn(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(Wn,"defineScalarTag");function SY(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(SY,"defineSequenceTag");function Sv(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(Sv,"defineMappingTag");var mbt=Wn("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),hbt=["","~","null","Null","NULL"],Abt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>hbt.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),gbt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),ybt=["","~","null","Null","NULL"],Ebt=Wn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>ybt.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),Cbt=["true","True","TRUE"],Ibt=["false","False","FALSE"],Sbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>Cbt.indexOf(t)!==-1?!0:Ibt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),wbt=["true"],xbt=["false"],bbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>wbt.indexOf(t)!==-1?!0:xbt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),Bbt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],Rbt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],Nbt=Wn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>Bbt.indexOf(t)!==-1?!0:Rbt.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),Tbt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),Pbt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function _bt(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(_bt,"parseYamlInteger$2");function vbt(t,e){if(e){if(!Pbt.test(t))return ct}else if(!Tbt.test(t))return ct;let r=_bt(t);return Number.isFinite(r)?r:ct}i(vbt,"resolveYamlInteger$2");var kSe=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:vbt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Qbt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),Dbt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function kbt(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(kbt,"parseYamlInteger$1");function Obt(t,e){if(e){if(!Dbt.test(t))return ct}else if(!Qbt.test(t))return ct;let r=kbt(t);return Number.isFinite(r)?r:ct}i(Obt,"resolveYamlInteger$1");var Lbt=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Obt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),Mbt=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 Fbt(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(Fbt,"parseYamlInteger");function Ubt(t){if(!Mbt.test(t))return ct;let e=Fbt(t);return Number.isFinite(e)?e:ct}i(Ubt,"resolveYamlInteger");var AY=Wn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Ubt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),qbt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),$bt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Gbt(t){if(!qbt.test(t))return ct;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)||$bt.test(t)?n:ct}i(Gbt,"resolveYamlFloat$2");function Hbt(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(Hbt,"representYamlFloat$2");var OSe=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Gbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Hbt}),zbt=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Vbt=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wbt(t,e){if(e){if(!Vbt.test(t))return ct;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:ct}if(!zbt.test(t))return ct;let r=Number(t);return Number.isFinite(r)?r:ct}i(Wbt,"resolveYamlFloat$1");function Jbt(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(Jbt,"representYamlFloat$1");var Ybt=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Wbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Jbt}),jbt=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))$"),Kbt=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Xbt(t){if(!jbt.test(t))return ct;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)||Kbt.test(t)?n:ct}i(Xbt,"resolveYamlFloat");function Zbt(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(Zbt,"representYamlFloat");var gY=Wn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Xbt,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:Zbt}),e0t=Wn("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":ct,"resolve"),identify:i(()=>!1,"identify")}),t0t=/^[A-Za-z0-9+/]*={0,2}$/;function r0t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!t0t.test(e))return ct;let r=atob(e),n=new Uint8Array(r.length);for(let s=0;sObject.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:n0t}),o0t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i0t=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 ISe(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(ISe,"makeUtcDate");function a0t(t){let e=o0t.exec(t);if(e===null&&(e=i0t.exec(t)),e===null)return ct;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=ISe(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?ct:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return ct;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=ISe(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return ct;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return ct;let f=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-f:f))}return u}i(a0t,"resolveYamlTimestamp");var c0t=Wn("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:a0t,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),l0t=SY("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function wv(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(wv,"isPlainObject");function SSe(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(SSe,"pick");var u0t=SY("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(wv(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")}),d0t=SY("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")}),p0t=Sv("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:wv,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")}),f0t=Sv("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 m0t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(m0t,"createTagDefinitionMap");function h0t(){return{scalar:[],sequence:[],mapping:[]}}i(h0t,"createTagDefinitionListMap");function A0t(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!==ct)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 LSe([...this.tags,...r])}},wY=new xv([mbt,l0t,p0t]),JPr=new xv([...wY.tags,gbt,bbt,Lbt,Ybt]),g0t=new xv([...wY.tags,Abt,Sbt,kSe,OSe]),y0t=new xv([...wY.tags,Ebt,Nbt,AY,gY,c0t,e0t,s0t,u0t,d0t,f0t]),E0t=y0t.withTags({...AY,resolve:i((t,e,r)=>{let n=AY.resolve(t,e,r);return n===ct?kSe.resolve(t,e,r):n},"resolve")},{...gY,resolve:i((t,e,r)=>{let n=gY.resolve(t,e,r);return n===ct?OSe.resolve(t,e,r):n},"resolve")}),YPr=Sv("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||wv(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 wSe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r({}),"create"),identify:wv,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=wSe(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=wSe(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")}),C0t={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function uY(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(uY,"getLine");function dY(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(dY,"padStart");function I0t(t,e){if(!t.buffer)return null;let r={...C0t,...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=uY(t.buffer,s[c-f],o[c-f],t.position-(s[c]-s[c-f]),d);l=`${" ".repeat(r.indent)}${dY((t.line-f+1).toString(),u)} | ${m.str} +${l}`}let p=uY(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${dY((t.line+1).toString(),u)} | ${p.str} `,l+=`${"-".repeat(r.indent+u+3+p.pos)}^ -`;for(let f=1;f<=r.linesAfter&&!(c+f>=o.length);f++){let m=lY(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${uY((t.line+f+1).toString(),u)} | ${m.str} -`}return l.replace(/\n$/,"")}i(E0t,"makeSnippet");function wSe(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=uY(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${dY((t.line+f+1).toString(),u)} | ${m.str} +`}return l.replace(/\n$/,"")}i(I0t,"makeSnippet");function xSe(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(wSe,"formatError");var km=class LSe extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=wSe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${wSe(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(I0t,"charFromCodepoint");function S0t(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(S0t,"fromHexCode$1");function w0t(t){return t===120?2:t===117?4:8}i(w0t,"escapedHexLen$1");function yv(t,e,r){let n=0;for(;e0;u--){s++;let p=S0t(t.charCodeAt(s));d=(d<<4)+p}n+=I0t(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=yv(t,s,r);n+=wY(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(B0t,"getDoubleQuotedValue");function bSe(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(xSe,"formatError");var Om=class MSe extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=xSe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${xSe(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(w0t,"charFromCodepoint");function x0t(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(x0t,"fromHexCode$1");function b0t(t){return t===120?2:t===117?4:8}i(b0t,"escapedHexLen$1");function Ev(t,e,r){let n=0;for(;e0;u--){s++;let p=x0t(t.charCodeAt(s));d=(d<<4)+p}n+=w0t(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=Ev(t,s,r);n+=xY(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(N0t,"getDoubleQuotedValue");function BSe(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,f=!1;for(let m of l){let h=0;for(;h=m.length){p++;continue}let A=m.slice(a),y=A.charCodeAt(0);o?y===32||y===9?(f=!0,u+=` @@ -204,30 +204,30 @@ ${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i(wSe,"formatError");var km=cla `.repeat(p):u+=` `.repeat(d?1+p:p),u+=A,d=!0,p=0}return s===Fo.KEEP?u+=` `.repeat(d?1+p:p):s!==Fo.STRIP&&d&&(u+=` -`),u}i(bSe,"getBlockValue");function R0t(t,e){if(e.valueStart===C0t)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Ze.SINGLE_QUOTED:return b0t(t,r,n);case Ze.DOUBLE_QUOTED:return B0t(t,r,n);case Ze.LITERAL_BLOCK:return bSe(t,r,n,e.indent,e.chomping,!1);case Ze.FOLDED_BLOCK:return bSe(t,r,n,e.indent,e.chomping,!0);default:return x0t(t,r,n)}}i(R0t,"getScalarValue");var N0t=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),T0t="-#;/?:@&=+$_.~*'()",VPr=T0t+"!,[]";function dY(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(dY,"tagPercentDecode");function USe(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return dY(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return dY(e?.[n]??N0t[n]??n)+dY(t.slice(n.length))}i(USe,"tagNameFull");var ry=-1,P0t="tag:yaml.org,2002:merge",xY={filename:"",schema:h0t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function _0t(t){return"tagStart"in t&&t.tagStart!==ry?t.tagStart:"anchorStart"in t&&t.anchorStart!==ry?t.anchorStart:"valueStart"in t&&t.valueStart!==ry?t.valueStart:"start"in t?t.start:0}i(_0t,"eventPosition$1");function Tn(t,e){km.throwAt(t.source,t.position,e,t.filename)}i(Tn,"throwError$1");function qSe(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof km)throw s;km.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(qSe,"finalizeCollection");function v0t(t,e){let r=R0t(t.source,e),n=e.tagStart===ry?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=USe(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===ct&&Tn(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!==""&&Tn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:qSe(t,t.position,c,l),tag:c}}Tn(t,`unknown scalar tag !<${o}>`)}return e.style===Ze.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(v0t,"constructScalar");function BSe(t,e,r){let n=e.tagStart===ry?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:USe(n,t.tagHandlers)}i(BSe,"collectionTagName");function $Se(t){return t.nodeKind==="mapping"}i($Se,"isMappingTag");function RSe(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Tn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(RSe,"chargeMergeWork");function NSe(t,e,r,n){RSe(t);for(let s of n.keys(r)){if(RSe(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Tn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(NSe,"mergeKeys");function Q0t(t,e,r,n){if(t.position=e.keyPosition,$Se(n))NSe(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Tn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||Tn(t,"cannot merge mappings; the provided source object is unacceptable"),NSe(t,e,s,o)}}else Tn(t,"cannot merge mappings; the provided source object is unacceptable")}i(Q0t,"mergeSource");function D0t(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){Q0t(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Tn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Tn(t,o),e.overridable?.delete(r)}i(D0t,"addMappingValue");function pY(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"){$Se(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Tn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,D0t(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===P0t}i(pY,"addValue");function fY(t,e,r,n,s){if(e.anchorStart!==ry){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(fY,"storeAnchor");function k0t(t,e){let r={...xY,...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=fY(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case rr.MAPPING:{let s=BSe(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||Tn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=fY(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 rr.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Tn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||Tn(r,`unidentified alias "${s}"`),o.isValueFinal||Tn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),pY(r,o.value,o.tag);break}case rr.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,Tn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:qSe(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),pY(r,o,s.tag)}break}}}return r.documents}i(k0t,"constructFromEvents");var lt=-1,GSe=Object.prototype.hasOwnProperty,iy=1,HSe=2,zSe=3,Ev=4,O0t=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,L0t=/[,\[\]{}]/,VSe=/^(?:!|!!|![0-9A-Za-z-]+!)$/,gY=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,WSe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,M0t=new RegExp(`^(?:${gY})*$`),F0t=new RegExp(`^(?:${WSe})+$`),U0t=new RegExp(`^(?:!(?:${gY})*|${WSe}(?:${gY})*)$`),bY={filename:"",maxDepth:100};function q0t(t,e,r){t.events.push({type:rr.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(q0t,"addDocumentEvent");function JSe(t,e,r,n,s,o,a){t.events.push({type:rr.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(JSe,"addSequenceEvent");function YSe(t,e,r,n,s,o,a){t.events.push({type:rr.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(YSe,"addMappingEvent");function TSe(t,e){t.events.splice(e.eventsLength,0,{type:rr.MAPPING,start:e.position,anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt,style:Vd.FLOW})}i(TSe,"insertFlowPairMappingEvent");function ly(t,e,r,n,s,o,a,c,l=Fo.CLIP,u=-1,d=!1){t.events.push({type:rr.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(ly,"addScalarEvent");function $0t(t,e,r){t.events.push({type:rr.ALIAS,anchorStart:e,anchorEnd:r})}i($0t,"addAliasEvent");function ny(t){t.events.push({type:rr.POP})}i(ny,"addPopEvent");function Is(t){ly(t,lt,lt,lt,lt,lt,lt,Ze.PLAIN)}i(Is,"addEmptyScalarEvent");function PSe(){return{anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt}}i(PSe,"emptyProperties");function sy(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(sy,"snapshotState");function oy(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(oy,"restoreState");function pe(t,e){km.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(pe,"throwError");function pn(t){return t===10||t===13}i(pn,"isEol");function uy(t){return t===9||t===32}i(uy,"isWhiteSpace");function Ca(t){return uy(t)||pn(t)}i(Ca,"isWsOrEol");function Bu(t){return t===0||Ca(t)}i(Bu,"isWsOrEolOrEnd");function Om(t){return t===44||t===91||t===93||t===123||t===125}i(Om,"isFlowIndicator");function G0t(t){return t>=48&&t<=57?t-48:-1}i(G0t,"fromDecimalCode");function H0t(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(H0t,"fromHexCode");function z0t(t){return t===120?2:t===117?4:t===85?8:0}i(z0t,"escapedHexLen");function V0t(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(V0t,"isSimpleEscape");function Cv(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(Cv,"consumeLineBreak");function Vn(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||Ca(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;uy(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(!pn(n)&&n!==0);if(!pn(n))break;for(Cv(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(Vn,"skipSeparationSpace");function ay(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||Ca(n)}return!1}i(ay,"testDocumentSeparator");function jSe(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(jSe,"skipByteOrderMark");function BY(t){if(t.position!==t.lineStart)return!1;if(ay(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=sy(t);jSe(t),Vn(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&ay(t));return oy(t,e),n}i(BY,"testDocumentBoundary");function _Se(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!pn(e);)e=t.input.charCodeAt(++t.position)}i(_Se,"skipUntilLineEnd");function KSe(t,e,r){let n=O0t.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(KSe,"checkPrintable");function W0t(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==lt&&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&&!Ca(c)&&!(r&&Om(c));)c===33&&(o?pe(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),VSe.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),L0t.test(u)&&pe(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?M0t.test(u):F0t.test(u))&&pe(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!GSe.call(t.tagHandlers,a)&&pe(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(W0t,"readTagProperty");function J0t(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==lt&&pe(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position))&&!Om(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(J0t,"readAnchorProperty");function Y0t(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==lt||e.tagStart!==lt)&&pe(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position))&&!Om(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an alias node must contain at least one character"),$0t(t,r,t.position),!0}i(Y0t,"readAlias");function yY(t,e){Vn(t,!1),t.lineIndent0;)t.position++,H0t(t.input.charCodeAt(t.position))<0&&pe(t,"expected hexadecimal character");t.position++}}else pn(o)?(s=!1,yY(t,e)):t.position===t.lineStart&&ay(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(K0t,"readDoubleQuotedScalar");function X0t(t,e,r){let n=t.input.charCodeAt(t.position),s=Fo.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?Ze.LITERAL_BLOCK:Ze.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let m=t.input.charCodeAt(t.position),h=G0t(m);if(m===43||m===45)s!==Fo.CLIP&&pe(t,"repeat of a chomping mode identifier"),s=m===43?Fo.KEEP:Fo.STRIP,t.position++;else if(h>=0)h===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+h-1,a=!0,t.position++;else break}let l=!1;for(;uy(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&_Se(t),pn(t.input.charCodeAt(t.position))?Cv(t):t.input.charCodeAt(t.position)!==0&&pe(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,h=0;for(;t.input.charCodeAt(m+h)===32;)h++;let A=t.input.charCodeAt(m+h);if(A===0){u>=0?h>u&&(f=m+h):h>0&&(f=m+h);break}if(BY(t))break;if(!a&&u===-1&&pn(A)&&(d=Math.max(d,h)),!a&&u===-1&&!pn(A)&&(A===9&&h=e&&h=e){l=!0,a=t.input.charCodeAt(t.position);continue}t.position=u,t.line=d,t.lineStart=p,t.lineIndent=f;break}}uy(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(KSe(t,s,o),ly(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Ze.PLAIN,Fo.CLIP,-1,!l),!0)}i(eBt,"readPlainScalar");function Hw(t,e){let r=t.line;Vn(t,!0),(t.line>r&&t.lineIndent0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Bu(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?Is(t):cy(t,e,zSe,!1,!0),Vn(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&&Bu(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry")}return ny(t),!0}i(vSe,"readBlockSequence");function mY(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)&&Bu(u))a||(YSe(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Vd.BLOCK),a=!0),l===63?(s&&Is(t),o=!0,s=!0):(s||(Is(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(Is(t),s=!1);let p=sy(t);if(!cy(t,r,HSe,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);uy(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Bu(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:rr.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:Vd.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)pe(t,"expected ':' after a mapping key");else return n.anchorStart!==lt||n.tagStart!==lt?(oy(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!==lt||n.tagStart!==lt?(oy(t,p),!1):!0}if(cy(t,e,Ev,!0,c)&&(c=!1),s||c&&(Is(t),c=!1),Vn(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=PSe(),p=r===Ev||r===zSe,f=p,m=p;if(n&&Vn(t,!0)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1),a===1)for(;;){let h=t.input.charCodeAt(t.position),A=sy(t);if(c&&a!==1&&(h===33||h===38))break;if(c&&m&&(d.tagStart!==lt||d.anchorStart!==lt)&&(h===33||h===38)){let y=sy(t),E=e+1;if(mY(t,t.position-t.lineStart,E,d)&&t.events[y.eventsLength]?.type===rr.MAPPING)return t.depth--,!0;oy(t,y)}if(c&&(h===33&&d.tagStart!==lt||h===38&&d.anchorStart!==lt)||!W0t(t,d,r===iy)&&!J0t(t,d))break;u===null&&(u=A),Vn(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===Ev){let h=r===iy||r===HSe?e:e+1,A=t.position-t.lineStart;if(a===1)if(f&&(vSe(t,A,d)||mY(t,A,h,d))||tBt(t,h,d))l=!0;else{let y=t.input.charCodeAt(t.position);if(u!==null&&o&&m&&!f&&y!==124&&y!==62){let E=sy(t),I=u.position-u.lineStart;oy(t,u),mY(t,I,h,PSe())&&t.events[E.eventsLength]?.type===rr.MAPPING?l=!0:oy(t,E)}!l&&(p&&X0t(t,h,d)||j0t(t,h,d)||K0t(t,h,d)||Y0t(t,d)||eBt(t,h,r,d))&&(l=!0)}else a===0&&(l=f&&vSe(t,A,d))}return p=p&&!l,!l&&(d.anchorStart!==lt||d.tagStart!==lt||p)&&(ly(t,lt,lt,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Ze.PLAIN),l=!0),t.depth--,l||d.anchorStart!==lt||d.tagStart!==lt}i(cy,"parseNode");function rBt(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&&!Ca(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&&!pn(t.input.charCodeAt(t.position));){for(;uy(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||pn(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(pn(t.input.charCodeAt(t.position))&&Cv(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;VSe.test(s)||pe(t,"ill-formed tag handle (first argument) of the TAG directive"),GSe.call(t.tagHandlers,s)&&pe(t,`there is a previously declared suffix for "${s}" tag handle`),U0t.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(rBt,"readDirective");function nBt(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(Vn(t,!0);rBt(t);)e=!0,Vn(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&&Bu(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,Vn(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&&ay(t)){t.position+=3,Vn(t,!0);return}if(q0t(t,r,!1),cy(t,t.lineIndent-1,Ev,!1,s,s)||Is(t),Vn(t,!0),t.position===t.lineStart&&ay(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,Vn(t,!0),t.line===c&&t.position=n.length));){let o=n.position;nBt(n),n.position===o&&pe(n,"can not read a document")}return n.events}i(sBt,"parseEvents");var oBt={...bY,...xY};function iBt(t,e={}){let r={...oBt,...e},n=String(t),s=Object.keys(bY),o=Object.keys(xY);return k0t(sBt(n,ISe(r,s)),{...ISe(r,o),source:n})}i(iBt,"loadDocuments");function XSe(t,e){let r=iBt(t,e);if(r.length===0)throw new km("expected a document, but the input is empty");if(r.length===1)return r[0];throw new km("expected a single document in the stream, but found more")}i(XSe,"load");function xv(t,e){return(t&1<s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Ze.FOLDED_BLOCK:r&&(t.style=Ze.LITERAL_BLOCK)}i(dBt,"tryLongOrMultilineAsBlock");function pBt(t){t.style===Ze.PLAIN&&!xv(t.allowedStylesMask,Ze.PLAIN)&&(t.style=ZSe(t))}i(pBt,"quoteInvalidPlain");function fBt(t){xv(t.allowedStylesMask,t.style)||(t.style=Ze.DOUBLE_QUOTED)}i(fBt,"fallbackToDoubleQuoted");var mBt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",hBt="[\\n\\r]",ABt="\\uFEFF",RY="[ \\t]",ewe=`(?:(?!(?:${hBt}|${ABt}))${mBt})`,bv=`(?:(?!${RY})${ewe})`,twe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",rwe="[-?:,\\[\\]{}#&*!|>'\"%@`]",gBt="[,\\[\\]{}]",EY=bv,CY=`(?:(?!${gBt})${bv})`,yBt=`(?:(?:(?!${rwe})${bv})|[?:-](?=${EY}))`,EBt=`(?:(?:(?!${rwe})${bv})|[?:-](?=${CY}))`,nwe=`(?:(?:(?![:#])${EY})|:(?=${EY}))#*`,swe=`(?:(?:(?![:#])${CY})|:(?=${CY}))#*`,owe=`(?:${RY}*${nwe})*`,iwe=`(?:${RY}*${swe})*`,awe=`${yBt}#*${owe}`,cwe=`${EBt}#*${iwe}`,CBt=awe,IBt=cwe,SBt=`\\n+${nwe}${owe}`,wBt=`\\n+${swe}${iwe}`,xBt=`${awe}(?:${SBt})*`,bBt=`${cwe}(?:${wBt})*`,WPr=new RegExp(`^(?:${xBt})$`,"u"),JPr=new RegExp(`^(?:${bBt})$`,"u"),YPr=new RegExp(`^(?:${CBt})$`,"u"),jPr=new RegExp(`^(?:${IBt})$`,"u"),KPr=new RegExp(`^(?:${twe})*$`,"u"),XPr=new RegExp(`^(?:${twe}|\\n)*$`,"u"),ZPr=new RegExp(`^(?:${ewe}|\\n)*$`,"u");var BBt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(QSe).map(t=>Reflect.get(QSe,t)),tagBeforeAnchor:!1};var e_r={...BBt,schema:g0t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var t_r=rr.DOCUMENT,r_r=rr.SEQUENCE,n_r=rr.MAPPING,s_r=rr.SCALAR,o_r=rr.ALIAS,i_r=rr.POP,a_r=Ze.PLAIN,c_r=Ze.SINGLE_QUOTED,l_r=Ze.DOUBLE_QUOTED,u_r=Ze.LITERAL_BLOCK,d_r=Ze.FOLDED_BLOCK,p_r=Vd.BLOCK,f_r=Vd.FLOW,m_r=Fo.CLIP,h_r=Fo.STRIP,A_r=Fo.KEEP;var Di=R(require("fs"),1),eo=R(require("path"),1),GRe=require("util");var HRe=R(dbe(),1);var Mv=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 n5=R(require("fs"),1),qBe=R(require("os"),1),cx=R(require("path"),1),$Be=require("util"),GBe=R(ybe(),1);var sj=R(require("fs"),1),Lbe=R(require("os"),1),Mbe=R(require("path"),1),Fbe=R(Obe(),1);var qv=class t{static{i(this,"Context")}static _tmpDir=sj.default.mkdtempSync(Mbe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||Lbe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return sj.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return Fbe.tmpNameSync(e)}};var Nu=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),Ed(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),YI(e,r,n)}};var r5=R(require("crypto"),1),FBe=R(require("fs"),1),ax=R(require("path"),1),UBe=R(QBe(),1);var et=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 ix=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var BQ=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}},t5=e5;var DBe=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 t5(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 t5(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 kBe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var By=i(function(t){let e={};for(let n in t)e[kBe(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 et("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 et("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 et("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 et("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=BQ(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new et("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 et("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 et("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 et("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 et("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(!ix(e.delimiter_auto))throw new et("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(!ix(e.delimiter_auto.preferred))throw new et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 OBe=i(function(t,e){e||({delimiter_auto:e}=By({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=RQ({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=lQt(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"),lQt=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 LBe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),uQt=13,dQt=10,Ry={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},RQ=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=By(t);return{info:e,original_options:t,options:r,state:DBe(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(OBe(Ve,this.options.delimiter_auto))],this.state.previousBuf=Ve,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ve;return}}let{previousBuf:Tt}=this.state,Be;if(Tt===void 0)if(n===void 0){a();return}else Be=n;else Tt!==void 0&&n===void 0?Be=Tt:Be=Buffer.concat([Tt,n]);if(Y===!1)if(c===!1)this.state.bomSkipped=!0;else if(Be.length<3){if(s===!1){this.state.previousBuf=Be;return}}else{for(let Ve in Ry)if(Ry[Ve].compare(Be,0,Ry[Ve].length)===0){let ja=Ry[Ve].length;this.state.bufBytesStart+=ja,Be=Be.slice(ja);let iB=By({...this.original_options,encoding:Ve});for(let Gr in iB)this.options[Gr]=iB[Gr];({comment:b,escape:N,quote:_}=this.options);break}this.state.bomSkipped=!0}let oe=Be.length,Q;for(Q=0;Qx){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(Be,Q)&&(v=this.options.record_delimiter);let Ve=Be[Q];if(h===!0&&De.append(Ve),(Ve===uQt||Ve===dQt)&&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(Be,Q,Ve)&&Q+N.lengthRy[pf].equals(this.state.field.toString())?pf:!1).filter(Boolean)[0],Jl=this.__error(new et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Gr.column)} at line ${Gr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,df?`(${df} bom)`:void 0],this.options,Gr,{field:this.state.field}));if(Jl!==void 0)return Jl}}else{this.state.quoting=!0,Q+=_.length-1;continue}if(this.state.quoting===!1){let Gr=this.__isRecordDelimiter(Ve,Be,Q);if(Gr!==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(),Q+=Gr-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=Gr-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let pf=this.__onField();if(pf!==void 0)return pf;this.info.bytes=this.state.bufBytesStart+Q+Gr;let aB=this.__onRecord(o);if(aB!==void 0)return aB;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,Q+=Gr-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,Be,Q,Ve)!==0){this.state.commenting=!0;continue}let df=this.__isDelimiter(Be,Q,Ve);if(df!==0){this.info.bytes=this.state.bufBytesStart+Q;let Jl=this.__onField();if(Jl!==void 0)return Jl;Q+=df-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new et("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 ja=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(Be,Q),iB=y===!1||this.state.wasQuoting===!1;if(ja===!0&&iB===!0)this.state.field.append(Ve);else{if(y===!0&&!this.__isCharTrimable(Be,Q))return this.__error(new et("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()));ja===!1&&(Q+=this.__isCharTrimable(Be,Q)-1);continue}}if(s===!0)if(this.state.quoting===!0){let Ve=this.__error(new et("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(Ve!==void 0)return Ve}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+Q;let Ve=this.__onField();if(Ve!==void 0)return Ve;let ja=this.__onRecord(o);if(ja!==void 0)return ja}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=Q,this.state.previousBuf=Be.slice(Q);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:h,record:A}=this.state;if(h===!1)return this.__resetRecord();let y=A.length;if(s===!0){if(m===!0&&LBe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){let E=s===!1?new et("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new et("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&ythis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=E;else{let I=this.__error(E);if(I)return I}}if(m===!0&&LBe(A)){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:E}=this.options;if(s!==!1){let I={};for(let x=0,b=A.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(pY,"tagPercentDecode");function qSe(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return pY(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return pY(e?.[n]??P0t[n]??n)+pY(t.slice(n.length))}i(qSe,"tagNameFull");var ny=-1,v0t="tag:yaml.org,2002:merge",bY={filename:"",schema:g0t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Q0t(t){return"tagStart"in t&&t.tagStart!==ny?t.tagStart:"anchorStart"in t&&t.anchorStart!==ny?t.anchorStart:"valueStart"in t&&t.valueStart!==ny?t.valueStart:"start"in t?t.start:0}i(Q0t,"eventPosition$1");function Tn(t,e){Om.throwAt(t.source,t.position,e,t.filename)}i(Tn,"throwError$1");function $Se(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Om)throw s;Om.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i($Se,"finalizeCollection");function D0t(t,e){let r=T0t(t.source,e),n=e.tagStart===ny?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=qSe(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===ct&&Tn(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!==""&&Tn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:$Se(t,t.position,c,l),tag:c}}Tn(t,`unknown scalar tag !<${o}>`)}return e.style===Ze.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(D0t,"constructScalar");function RSe(t,e,r){let n=e.tagStart===ny?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:qSe(n,t.tagHandlers)}i(RSe,"collectionTagName");function GSe(t){return t.nodeKind==="mapping"}i(GSe,"isMappingTag");function NSe(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Tn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(NSe,"chargeMergeWork");function TSe(t,e,r,n){NSe(t);for(let s of n.keys(r)){if(NSe(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Tn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(TSe,"mergeKeys");function k0t(t,e,r,n){if(t.position=e.keyPosition,GSe(n))TSe(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Tn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||Tn(t,"cannot merge mappings; the provided source object is unacceptable"),TSe(t,e,s,o)}}else Tn(t,"cannot merge mappings; the provided source object is unacceptable")}i(k0t,"mergeSource");function O0t(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){k0t(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Tn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Tn(t,o),e.overridable?.delete(r)}i(O0t,"addMappingValue");function fY(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"){GSe(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Tn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,O0t(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===v0t}i(fY,"addValue");function mY(t,e,r,n,s){if(e.anchorStart!==ny){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(mY,"storeAnchor");function L0t(t,e){let r={...bY,...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=mY(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case rr.MAPPING:{let s=RSe(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||Tn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=mY(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 rr.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Tn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||Tn(r,`unidentified alias "${s}"`),o.isValueFinal||Tn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),fY(r,o.value,o.tag);break}case rr.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,Tn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:$Se(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),fY(r,o,s.tag)}break}}}return r.documents}i(L0t,"constructFromEvents");var lt=-1,HSe=Object.prototype.hasOwnProperty,ay=1,zSe=2,VSe=3,Cv=4,M0t=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,F0t=/[,\[\]{}]/,WSe=/^(?:!|!!|![0-9A-Za-z-]+!)$/,yY=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,JSe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,U0t=new RegExp(`^(?:${yY})*$`),q0t=new RegExp(`^(?:${JSe})+$`),$0t=new RegExp(`^(?:!(?:${yY})*|${JSe}(?:${yY})*)$`),BY={filename:"",maxDepth:100};function G0t(t,e,r){t.events.push({type:rr.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(G0t,"addDocumentEvent");function YSe(t,e,r,n,s,o,a){t.events.push({type:rr.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(YSe,"addSequenceEvent");function jSe(t,e,r,n,s,o,a){t.events.push({type:rr.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(jSe,"addMappingEvent");function PSe(t,e){t.events.splice(e.eventsLength,0,{type:rr.MAPPING,start:e.position,anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt,style:Wd.FLOW})}i(PSe,"insertFlowPairMappingEvent");function uy(t,e,r,n,s,o,a,c,l=Fo.CLIP,u=-1,d=!1){t.events.push({type:rr.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(uy,"addScalarEvent");function H0t(t,e,r){t.events.push({type:rr.ALIAS,anchorStart:e,anchorEnd:r})}i(H0t,"addAliasEvent");function sy(t){t.events.push({type:rr.POP})}i(sy,"addPopEvent");function Is(t){uy(t,lt,lt,lt,lt,lt,lt,Ze.PLAIN)}i(Is,"addEmptyScalarEvent");function _Se(){return{anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt}}i(_Se,"emptyProperties");function oy(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(oy,"snapshotState");function iy(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(iy,"restoreState");function pe(t,e){Om.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(pe,"throwError");function pn(t){return t===10||t===13}i(pn,"isEol");function dy(t){return t===9||t===32}i(dy,"isWhiteSpace");function Ca(t){return dy(t)||pn(t)}i(Ca,"isWsOrEol");function Ru(t){return t===0||Ca(t)}i(Ru,"isWsOrEolOrEnd");function Lm(t){return t===44||t===91||t===93||t===123||t===125}i(Lm,"isFlowIndicator");function z0t(t){return t>=48&&t<=57?t-48:-1}i(z0t,"fromDecimalCode");function V0t(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(V0t,"fromHexCode");function W0t(t){return t===120?2:t===117?4:t===85?8:0}i(W0t,"escapedHexLen");function J0t(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(J0t,"isSimpleEscape");function Iv(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(Iv,"consumeLineBreak");function Vn(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||Ca(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;dy(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(!pn(n)&&n!==0);if(!pn(n))break;for(Iv(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(Vn,"skipSeparationSpace");function cy(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||Ca(n)}return!1}i(cy,"testDocumentSeparator");function KSe(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(KSe,"skipByteOrderMark");function RY(t){if(t.position!==t.lineStart)return!1;if(cy(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=oy(t);KSe(t),Vn(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&cy(t));return iy(t,e),n}i(RY,"testDocumentBoundary");function vSe(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!pn(e);)e=t.input.charCodeAt(++t.position)}i(vSe,"skipUntilLineEnd");function XSe(t,e,r){let n=M0t.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(XSe,"checkPrintable");function Y0t(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==lt&&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&&!Ca(c)&&!(r&&Lm(c));)c===33&&(o?pe(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),WSe.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),F0t.test(u)&&pe(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?U0t.test(u):q0t.test(u))&&pe(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!HSe.call(t.tagHandlers,a)&&pe(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(Y0t,"readTagProperty");function j0t(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==lt&&pe(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position))&&!Lm(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(j0t,"readAnchorProperty");function K0t(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==lt||e.tagStart!==lt)&&pe(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position))&&!Lm(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an alias node must contain at least one character"),H0t(t,r,t.position),!0}i(K0t,"readAlias");function EY(t,e){Vn(t,!1),t.lineIndent0;)t.position++,V0t(t.input.charCodeAt(t.position))<0&&pe(t,"expected hexadecimal character");t.position++}}else pn(o)?(s=!1,EY(t,e)):t.position===t.lineStart&&cy(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(Z0t,"readDoubleQuotedScalar");function eBt(t,e,r){let n=t.input.charCodeAt(t.position),s=Fo.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?Ze.LITERAL_BLOCK:Ze.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let m=t.input.charCodeAt(t.position),h=z0t(m);if(m===43||m===45)s!==Fo.CLIP&&pe(t,"repeat of a chomping mode identifier"),s=m===43?Fo.KEEP:Fo.STRIP,t.position++;else if(h>=0)h===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+h-1,a=!0,t.position++;else break}let l=!1;for(;dy(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&vSe(t),pn(t.input.charCodeAt(t.position))?Iv(t):t.input.charCodeAt(t.position)!==0&&pe(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,h=0;for(;t.input.charCodeAt(m+h)===32;)h++;let A=t.input.charCodeAt(m+h);if(A===0){u>=0?h>u&&(f=m+h):h>0&&(f=m+h);break}if(RY(t))break;if(!a&&u===-1&&pn(A)&&(d=Math.max(d,h)),!a&&u===-1&&!pn(A)&&(A===9&&h=e&&h=e){l=!0,a=t.input.charCodeAt(t.position);continue}t.position=u,t.line=d,t.lineStart=p,t.lineIndent=f;break}}dy(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(XSe(t,s,o),uy(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Ze.PLAIN,Fo.CLIP,-1,!l),!0)}i(rBt,"readPlainScalar");function zw(t,e){let r=t.line;Vn(t,!0),(t.line>r&&t.lineIndent0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Ru(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?Is(t):ly(t,e,VSe,!1,!0),Vn(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&&Ru(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry")}return sy(t),!0}i(QSe,"readBlockSequence");function hY(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)&&Ru(u))a||(jSe(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Wd.BLOCK),a=!0),l===63?(s&&Is(t),o=!0,s=!0):(s||(Is(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(Is(t),s=!1);let p=oy(t);if(!ly(t,r,zSe,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);dy(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Ru(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:rr.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:Wd.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)pe(t,"expected ':' after a mapping key");else return n.anchorStart!==lt||n.tagStart!==lt?(iy(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!==lt||n.tagStart!==lt?(iy(t,p),!1):!0}if(ly(t,e,Cv,!0,c)&&(c=!1),s||c&&(Is(t),c=!1),Vn(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=_Se(),p=r===Cv||r===VSe,f=p,m=p;if(n&&Vn(t,!0)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1),a===1)for(;;){let h=t.input.charCodeAt(t.position),A=oy(t);if(c&&a!==1&&(h===33||h===38))break;if(c&&m&&(d.tagStart!==lt||d.anchorStart!==lt)&&(h===33||h===38)){let y=oy(t),E=e+1;if(hY(t,t.position-t.lineStart,E,d)&&t.events[y.eventsLength]?.type===rr.MAPPING)return t.depth--,!0;iy(t,y)}if(c&&(h===33&&d.tagStart!==lt||h===38&&d.anchorStart!==lt)||!Y0t(t,d,r===ay)&&!j0t(t,d))break;u===null&&(u=A),Vn(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===Cv){let h=r===ay||r===zSe?e:e+1,A=t.position-t.lineStart;if(a===1)if(f&&(QSe(t,A,d)||hY(t,A,h,d))||nBt(t,h,d))l=!0;else{let y=t.input.charCodeAt(t.position);if(u!==null&&o&&m&&!f&&y!==124&&y!==62){let E=oy(t),I=u.position-u.lineStart;iy(t,u),hY(t,I,h,_Se())&&t.events[E.eventsLength]?.type===rr.MAPPING?l=!0:iy(t,E)}!l&&(p&&eBt(t,h,d)||X0t(t,h,d)||Z0t(t,h,d)||K0t(t,d)||rBt(t,h,r,d))&&(l=!0)}else a===0&&(l=f&&QSe(t,A,d))}return p=p&&!l,!l&&(d.anchorStart!==lt||d.tagStart!==lt||p)&&(uy(t,lt,lt,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Ze.PLAIN),l=!0),t.depth--,l||d.anchorStart!==lt||d.tagStart!==lt}i(ly,"parseNode");function sBt(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&&!Ca(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&&!pn(t.input.charCodeAt(t.position));){for(;dy(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||pn(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Ca(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(pn(t.input.charCodeAt(t.position))&&Iv(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;WSe.test(s)||pe(t,"ill-formed tag handle (first argument) of the TAG directive"),HSe.call(t.tagHandlers,s)&&pe(t,`there is a previously declared suffix for "${s}" tag handle`),$0t.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(sBt,"readDirective");function oBt(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(Vn(t,!0);sBt(t);)e=!0,Vn(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&&Ru(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,Vn(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&&cy(t)){t.position+=3,Vn(t,!0);return}if(G0t(t,r,!1),ly(t,t.lineIndent-1,Cv,!1,s,s)||Is(t),Vn(t,!0),t.position===t.lineStart&&cy(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,Vn(t,!0),t.line===c&&t.position=n.length));){let o=n.position;oBt(n),n.position===o&&pe(n,"can not read a document")}return n.events}i(iBt,"parseEvents");var aBt={...BY,...bY};function cBt(t,e={}){let r={...aBt,...e},n=String(t),s=Object.keys(BY),o=Object.keys(bY);return L0t(iBt(n,SSe(r,s)),{...SSe(r,o),source:n})}i(cBt,"loadDocuments");function ZSe(t,e){let r=cBt(t,e);if(r.length===0)throw new Om("expected a document, but the input is empty");if(r.length===1)return r[0];throw new Om("expected a single document in the stream, but found more")}i(ZSe,"load");function bv(t,e){return(t&1<s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Ze.FOLDED_BLOCK:r&&(t.style=Ze.LITERAL_BLOCK)}i(fBt,"tryLongOrMultilineAsBlock");function mBt(t){t.style===Ze.PLAIN&&!bv(t.allowedStylesMask,Ze.PLAIN)&&(t.style=ewe(t))}i(mBt,"quoteInvalidPlain");function hBt(t){bv(t.allowedStylesMask,t.style)||(t.style=Ze.DOUBLE_QUOTED)}i(hBt,"fallbackToDoubleQuoted");var ABt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",gBt="[\\n\\r]",yBt="\\uFEFF",NY="[ \\t]",twe=`(?:(?!(?:${gBt}|${yBt}))${ABt})`,Bv=`(?:(?!${NY})${twe})`,rwe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",nwe="[-?:,\\[\\]{}#&*!|>'\"%@`]",EBt="[,\\[\\]{}]",CY=Bv,IY=`(?:(?!${EBt})${Bv})`,CBt=`(?:(?:(?!${nwe})${Bv})|[?:-](?=${CY}))`,IBt=`(?:(?:(?!${nwe})${Bv})|[?:-](?=${IY}))`,swe=`(?:(?:(?![:#])${CY})|:(?=${CY}))#*`,owe=`(?:(?:(?![:#])${IY})|:(?=${IY}))#*`,iwe=`(?:${NY}*${swe})*`,awe=`(?:${NY}*${owe})*`,cwe=`${CBt}#*${iwe}`,lwe=`${IBt}#*${awe}`,SBt=cwe,wBt=lwe,xBt=`\\n+${swe}${iwe}`,bBt=`\\n+${owe}${awe}`,BBt=`${cwe}(?:${xBt})*`,RBt=`${lwe}(?:${bBt})*`,XPr=new RegExp(`^(?:${BBt})$`,"u"),ZPr=new RegExp(`^(?:${RBt})$`,"u"),e_r=new RegExp(`^(?:${SBt})$`,"u"),t_r=new RegExp(`^(?:${wBt})$`,"u"),r_r=new RegExp(`^(?:${rwe})*$`,"u"),n_r=new RegExp(`^(?:${rwe}|\\n)*$`,"u"),s_r=new RegExp(`^(?:${twe}|\\n)*$`,"u");var NBt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(DSe).map(t=>Reflect.get(DSe,t)),tagBeforeAnchor:!1};var o_r={...NBt,schema:E0t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var i_r=rr.DOCUMENT,a_r=rr.SEQUENCE,c_r=rr.MAPPING,l_r=rr.SCALAR,u_r=rr.ALIAS,d_r=rr.POP,p_r=Ze.PLAIN,f_r=Ze.SINGLE_QUOTED,m_r=Ze.DOUBLE_QUOTED,h_r=Ze.LITERAL_BLOCK,A_r=Ze.FOLDED_BLOCK,g_r=Wd.BLOCK,y_r=Wd.FLOW,E_r=Fo.CLIP,C_r=Fo.STRIP,I_r=Fo.KEEP;var Di=R(require("fs"),1),eo=R(require("path"),1),HRe=require("util");var zRe=R(pbe(),1);var Fv=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 s5=R(require("fs"),1),$Be=R(require("os"),1),lx=R(require("path"),1),GBe=require("util"),HBe=R(Ebe(),1);var oj=R(require("fs"),1),Mbe=R(require("os"),1),Fbe=R(require("path"),1),Ube=R(Lbe(),1);var $v=class t{static{i(this,"Context")}static _tmpDir=oj.default.mkdtempSync(Fbe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||Mbe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return oj.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return Ube.tmpNameSync(e)}};var Tu=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),Cd(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),jI(e,r,n)}};var n5=R(require("crypto"),1),UBe=R(require("fs"),1),cx=R(require("path"),1),qBe=R(DBe(),1);var et=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 ax=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var RQ=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}},r5=t5;var kBe=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 r5(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 r5(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 OBe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var Ry=i(function(t){let e={};for(let n in t)e[OBe(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 et("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 et("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 et("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 et("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=RQ(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new et("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 et("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 et("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 et("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 et("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(!ax(e.delimiter_auto))throw new et("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(!ax(e.delimiter_auto.preferred))throw new et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 et("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 LBe=i(function(t,e){e||({delimiter_auto:e}=Ry({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=NQ({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=dQt(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"),dQt=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 MBe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),pQt=13,fQt=10,Ny={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},NQ=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=Ry(t);return{info:e,original_options:t,options:r,state:kBe(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(LBe(Ve,this.options.delimiter_auto))],this.state.previousBuf=Ve,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ve;return}}let{previousBuf:Tt}=this.state,Be;if(Tt===void 0)if(n===void 0){a();return}else Be=n;else Tt!==void 0&&n===void 0?Be=Tt:Be=Buffer.concat([Tt,n]);if(Y===!1)if(c===!1)this.state.bomSkipped=!0;else if(Be.length<3){if(s===!1){this.state.previousBuf=Be;return}}else{for(let Ve in Ny)if(Ny[Ve].compare(Be,0,Ny[Ve].length)===0){let ja=Ny[Ve].length;this.state.bufBytesStart+=ja,Be=Be.slice(ja);let aB=Ry({...this.original_options,encoding:Ve});for(let Gr in aB)this.options[Gr]=aB[Gr];({comment:b,escape:N,quote:_}=this.options);break}this.state.bomSkipped=!0}let oe=Be.length,Q;for(Q=0;Qx){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(Be,Q)&&(v=this.options.record_delimiter);let Ve=Be[Q];if(h===!0&&De.append(Ve),(Ve===pQt||Ve===fQt)&&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(Be,Q,Ve)&&Q+N.lengthNy[ff].equals(this.state.field.toString())?ff:!1).filter(Boolean)[0],Yl=this.__error(new et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Gr.column)} at line ${Gr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,pf?`(${pf} bom)`:void 0],this.options,Gr,{field:this.state.field}));if(Yl!==void 0)return Yl}}else{this.state.quoting=!0,Q+=_.length-1;continue}if(this.state.quoting===!1){let Gr=this.__isRecordDelimiter(Ve,Be,Q);if(Gr!==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(),Q+=Gr-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=Gr-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let ff=this.__onField();if(ff!==void 0)return ff;this.info.bytes=this.state.bufBytesStart+Q+Gr;let cB=this.__onRecord(o);if(cB!==void 0)return cB;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,Q+=Gr-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,Be,Q,Ve)!==0){this.state.commenting=!0;continue}let pf=this.__isDelimiter(Be,Q,Ve);if(pf!==0){this.info.bytes=this.state.bufBytesStart+Q;let Yl=this.__onField();if(Yl!==void 0)return Yl;Q+=pf-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new et("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 ja=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(Be,Q),aB=y===!1||this.state.wasQuoting===!1;if(ja===!0&&aB===!0)this.state.field.append(Ve);else{if(y===!0&&!this.__isCharTrimable(Be,Q))return this.__error(new et("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()));ja===!1&&(Q+=this.__isCharTrimable(Be,Q)-1);continue}}if(s===!0)if(this.state.quoting===!0){let Ve=this.__error(new et("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(Ve!==void 0)return Ve}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+Q;let Ve=this.__onField();if(Ve!==void 0)return Ve;let ja=this.__onRecord(o);if(ja!==void 0)return ja}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=Q,this.state.previousBuf=Be.slice(Q);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:h,record:A}=this.state;if(h===!1)return this.__resetRecord();let y=A.length;if(s===!0){if(m===!0&&MBe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){let E=s===!1?new et("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new et("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&ythis.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=E;else{let I=this.__error(E);if(I)return I}}if(m===!0&&MBe(A)){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:E}=this.options;if(s!==!1){let I={};for(let x=0,b=A.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 MBe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=RQ(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 Kd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(aa(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=MBe(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=aa(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return r5.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 r5.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return UBe.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=ax.default.resolve(e);return ax.default.resolve(r).startsWith(n.endsWith(ax.default.sep)?n:`${n}${ax.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||cx.default.join(qBe.default.homedir(),".docker")}static configFile(){let e=cx.default.join(t.configDir,"config.json");if(n5.default.existsSync(e))return JSON.parse(n5.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("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 Nu.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Nu.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,$Be.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 ty({htcName:a,htcVersion:c,baseCacheDir:cx.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&&ur(`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)ur(`Failed to pull image, using one from cache: ${p.message}`);else throw p}if(r&&d){let p=cx.default.join(qv.tmpDir(),`${Kd.hash(e)}.tar`);await t.getExecOutput([...s,"save","-o",p,e],{ignoreReturnCode:!0}).then(async f=>{if(f.stderr.length>0&&f.exitCode!=0)ur(`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,GBe.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 qRe=R(require("crypto"),1);var NQ=require("fs"),HBe=require("os");var Ny=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,NQ.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,NQ.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${HBe.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 a5=R(YBe(),1),jBe=R($f(),1);var xQt=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 KBe(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(KBe,"getAuthString");function XBe(t){return new a5.HttpClient().getAgent(t)}i(XBe,"getProxyAgent");function bQt(t){return new a5.HttpClient().getAgentDispatcher(t)}i(bQt,"getProxyAgentDispatcher");function ZBe(t){let e=bQt(t);return i((n,s)=>xQt(this,void 0,void 0,function*(){return(0,jBe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(ZBe,"getProxyFetch");function eRe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(eRe,"getApiBaseUrl");function c5(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(c5,"getUserAgentWithOrchestrationId");function Zd(){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(Zd,"getUserAgent");function kQ(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)=>kQ.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(kQ,"register");function tRe(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(tRe,"addHook");function rRe(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(rRe,"removeHook");var nRe=Function.bind,sRe=nRe.bind(nRe);function oRe(t,e,r){let n=sRe(rRe,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]=sRe(tRe,null).apply(null,o)})}i(oRe,"bindApi");function RQt(){let t=Symbol("Singular"),e={registry:{}},r=kQ.bind(null,e,t);return oRe(r,e,t),r}i(RQt,"Singular");function NQt(){let t={registry:{}},e=kQ.bind(null,t);return oRe(e,t),e}i(NQt,"Collection");var iRe={Singular:RQt,Collection:NQt};var TQt="0.0.0-development",PQt=`octokit-endpoint.js/${TQt} ${Zd()}`,_Qt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":PQt},mediaType:{format:""}};function vQt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(vQt,"lowercaseKeys");function QQt(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(QQt,"isPlainObject");function lRe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{QQt(e[n])?n in t?r[n]=lRe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(lRe,"mergeDeep");function aRe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(aRe,"removeUndefinedProperties");function u5(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=vQt(r.headers),aRe(r),aRe(r.headers);let n=lRe(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(u5,"merge");function DQt(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(DQt,"addQueryParameters");var kQt=/\{[^{}}]+\}/g;function OQt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(LQt,"extractUrlVariableNames");function cRe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(cRe,"omit");function uRe(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(uRe,"encodeReserved");function Py(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(Py,"encodeUnreserved");function ux(t,e,r){return e=t==="+"||t==="#"?uRe(e):Py(e),r?Py(r)+"="+e:e}i(ux,"encodeValue");function Ty(t){return t!=null}i(Ty,"isDefined");function l5(t){return t===";"||t==="&"||t==="?"}i(l5,"isKeyOperator");function MQt(t,e,r,n){var s=t[r],o=[];if(Ty(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(ux(e,s,l5(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(Ty).forEach(function(a){o.push(ux(e,a,l5(e)?r:""))}):Object.keys(s).forEach(function(a){Ty(s[a])&&o.push(ux(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(Ty).forEach(function(c){a.push(ux(e,c))}):Object.keys(s).forEach(function(c){Ty(s[c])&&(a.push(Py(c)),a.push(ux(e,s[c].toString())))}),l5(e)?o.push(Py(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?Ty(s)&&o.push(Py(r)):s===""&&(e==="&"||e==="?")?o.push(Py(r)+"="):s===""&&o.push("");return o}i(MQt,"getValues");function FQt(t){return{expand:UQt.bind(null,t)}}i(FQt,"parseUrl");function UQt(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(MQt(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 uRe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(UQt,"expand");function dRe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=cRe(t,["method","baseUrl","url","headers","request","mediaType"]),a=LQt(r);r=FQt(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=cRe(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=DQt(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(dRe,"parse");function qQt(t,e,r){return dRe(u5(t,e,r))}i(qQt,"endpointWithDefaults");function pRe(t,e){let r=u5(t,e),n=qQt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:pRe.bind(null,r),merge:u5.bind(null,r),parse:dRe})}i(pRe,"withDefaults");var fRe=pRe(null,_Qt);var BRe=R(gRe(),1);var $Qt=/^-?\d+$/,CRe=/^-?\d+n+$/,d5=JSON.stringify,yRe=JSON.parse,GQt=/^-?\d+n$/,HQt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,zQt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,IRe=i((t,e,r)=>"rawJSON"in JSON?d5(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?d5(t,(a,c)=>typeof c=="string"&&!!c.match(CRe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(HQt,"$1$2$3").replace(zQt,"$1$2$3"):d5(t,e,r),"JSONStringify"),VQt=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),WQt=i((t,e,r,n)=>typeof e=="string"&&e.match(GQt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(CRe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),JQt=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return yRe(t,e);if(VQt())return JQt(t,e);let r=t.replace(YQt,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(jQt))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthWQt(n,s,o,e))},"JSONParse");var Wm=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 bRe(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=ZQt(t.body)||Array.isArray(t.body)?IRe(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 Wm(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 Wm(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await p5(a),new Wm("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await p5(a),new Wm(tDt(d.data),c,{response:d,request:t});return d.data=n?await p5(a):a.body,d}i(bRe,"fetchWrapper");async function p5(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(xRe);let r=(0,BRe.safeParse)(e);if(eDt(r)){let n="";try{return n=await t.text(),wRe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(xRe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(p5,"getResponseData");function eDt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(eDt,"isJSONResponse");function tDt(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(tDt,"toErrorMessage");function f5(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 bRe(r.parse(a));let c=i((l,u)=>bRe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:f5.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:f5.bind(null,r)})}i(f5,"withDefaults");var px=f5(fRe,XQt);var rDt="0.0.0-development";function nDt(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 FBe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=NQ(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 Xd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(aa(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=FBe(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=aa(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;nsetTimeout(r,e*1e3))}static hash(e){return n5.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 n5.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return qBe.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=cx.default.resolve(e);return cx.default.resolve(r).startsWith(n.endsWith(cx.default.sep)?n:`${n}${cx.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 Zd=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||lx.default.join($Be.default.homedir(),".docker")}static configFile(){let e=lx.default.join(t.configDir,"config.json");if(s5.default.existsSync(e))return JSON.parse(s5.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("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,GBe.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 ry({htcName:a,htcVersion:c,baseCacheDir:lx.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&&ur(`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)ur(`Failed to pull image, using one from cache: ${p.message}`);else throw p}if(r&&d){let p=lx.default.join($v.tmpDir(),`${Xd.hash(e)}.tar`);await t.getExecOutput([...s,"save","-o",p,e],{ignoreReturnCode:!0}).then(async f=>{if(f.stderr.length>0&&f.exitCode!=0)ur(`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,HBe.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 $Re=R(require("crypto"),1);var TQ=require("fs"),zBe=require("os");var Ty=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,TQ.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,TQ.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${zBe.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 c5=R(jBe(),1),KBe=R(Gf(),1);var BQt=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 XBe(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(XBe,"getAuthString");function ZBe(t){return new c5.HttpClient().getAgent(t)}i(ZBe,"getProxyAgent");function RQt(t){return new c5.HttpClient().getAgentDispatcher(t)}i(RQt,"getProxyAgentDispatcher");function eRe(t){let e=RQt(t);return i((n,s)=>BQt(this,void 0,void 0,function*(){return(0,KBe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(eRe,"getProxyFetch");function tRe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(tRe,"getApiBaseUrl");function l5(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(l5,"getUserAgentWithOrchestrationId");function ep(){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(ep,"getUserAgent");function OQ(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)=>OQ.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(OQ,"register");function rRe(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(rRe,"addHook");function nRe(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(nRe,"removeHook");var sRe=Function.bind,oRe=sRe.bind(sRe);function iRe(t,e,r){let n=oRe(nRe,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]=oRe(rRe,null).apply(null,o)})}i(iRe,"bindApi");function TQt(){let t=Symbol("Singular"),e={registry:{}},r=OQ.bind(null,e,t);return iRe(r,e,t),r}i(TQt,"Singular");function PQt(){let t={registry:{}},e=OQ.bind(null,t);return iRe(e,t),e}i(PQt,"Collection");var aRe={Singular:TQt,Collection:PQt};var _Qt="0.0.0-development",vQt=`octokit-endpoint.js/${_Qt} ${ep()}`,QQt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":vQt},mediaType:{format:""}};function DQt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(DQt,"lowercaseKeys");function kQt(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(kQt,"isPlainObject");function uRe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{kQt(e[n])?n in t?r[n]=uRe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(uRe,"mergeDeep");function cRe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(cRe,"removeUndefinedProperties");function d5(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=DQt(r.headers),cRe(r),cRe(r.headers);let n=uRe(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(d5,"merge");function OQt(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(OQt,"addQueryParameters");var LQt=/\{[^{}}]+\}/g;function MQt(t){return t.replace(/(?:^\W+)|(?:(?r.concat(n),[]):[]}i(FQt,"extractUrlVariableNames");function lRe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(lRe,"omit");function dRe(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(dRe,"encodeReserved");function _y(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(_y,"encodeUnreserved");function dx(t,e,r){return e=t==="+"||t==="#"?dRe(e):_y(e),r?_y(r)+"="+e:e}i(dx,"encodeValue");function Py(t){return t!=null}i(Py,"isDefined");function u5(t){return t===";"||t==="&"||t==="?"}i(u5,"isKeyOperator");function UQt(t,e,r,n){var s=t[r],o=[];if(Py(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(dx(e,s,u5(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(Py).forEach(function(a){o.push(dx(e,a,u5(e)?r:""))}):Object.keys(s).forEach(function(a){Py(s[a])&&o.push(dx(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(Py).forEach(function(c){a.push(dx(e,c))}):Object.keys(s).forEach(function(c){Py(s[c])&&(a.push(_y(c)),a.push(dx(e,s[c].toString())))}),u5(e)?o.push(_y(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?Py(s)&&o.push(_y(r)):s===""&&(e==="&"||e==="?")?o.push(_y(r)+"="):s===""&&o.push("");return o}i(UQt,"getValues");function qQt(t){return{expand:$Qt.bind(null,t)}}i(qQt,"parseUrl");function $Qt(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(UQt(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 dRe(o)}),t==="/"?t:t.replace(/\/$/,"")}i($Qt,"expand");function pRe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=lRe(t,["method","baseUrl","url","headers","request","mediaType"]),a=FQt(r);r=qQt(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=lRe(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=OQt(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(pRe,"parse");function GQt(t,e,r){return pRe(d5(t,e,r))}i(GQt,"endpointWithDefaults");function fRe(t,e){let r=d5(t,e),n=GQt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:fRe.bind(null,r),merge:d5.bind(null,r),parse:pRe})}i(fRe,"withDefaults");var mRe=fRe(null,QQt);var RRe=R(yRe(),1);var HQt=/^-?\d+$/,IRe=/^-?\d+n+$/,p5=JSON.stringify,ERe=JSON.parse,zQt=/^-?\d+n$/,VQt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,WQt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,SRe=i((t,e,r)=>"rawJSON"in JSON?p5(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?p5(t,(a,c)=>typeof c=="string"&&!!c.match(IRe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(VQt,"$1$2$3").replace(WQt,"$1$2$3"):p5(t,e,r),"JSONStringify"),JQt=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),YQt=i((t,e,r,n)=>typeof e=="string"&&e.match(zQt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(IRe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),jQt=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n{if(!t)return ERe(t,e);if(JQt())return jQt(t,e);let r=t.replace(KQt,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(XQt))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.lengthYQt(n,s,o,e))},"JSONParse");var Jm=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 BRe(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=tDt(t.body)||Array.isArray(t.body)?SRe(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 Jm(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 Jm(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await f5(a),new Jm("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await f5(a),new Jm(nDt(d.data),c,{response:d,request:t});return d.data=n?await f5(a):a.body,d}i(BRe,"fetchWrapper");async function f5(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(bRe);let r=(0,RRe.safeParse)(e);if(rDt(r)){let n="";try{return n=await t.text(),xRe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(bRe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(f5,"getResponseData");function rDt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(rDt,"isJSONResponse");function nDt(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(nDt,"toErrorMessage");function m5(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 BRe(r.parse(a));let c=i((l,u)=>BRe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:m5.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:m5.bind(null,r)})}i(m5,"withDefaults");var fx=m5(mRe,eDt);var sDt="0.0.0-development";function oDt(t){return`Request failed due to following response errors: `+t.errors.map(e=>` - ${e.message}`).join(` -`)}i(nDt,"_buildMessageForResponseErrors");var sDt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(nDt(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},oDt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],iDt=["query","method","url"],RRe=/\/api\/v3\/?$/;function aDt(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(iDt.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)=>oDt.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 RRe.test(o)&&(s.url=o.replace(RRe,"/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 sDt(s,c,a.data)}return a.data.data})}i(aDt,"graphql");function m5(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>aDt(r,s,o),"newApi"),{defaults:m5.bind(null,r),endpoint:r.endpoint})}i(m5,"withDefaults");var Ykr=m5(px,{headers:{"user-agent":`octokit-graphql.js/${rDt} ${Zd()}`},method:"POST",url:"/graphql"});function NRe(t){return m5(t,{method:"POST",url:"/graphql"})}i(NRe,"withCustomRequest");var h5="(?:[a-zA-Z0-9_-]+)",TRe="\\.",PRe=new RegExp(`^${h5}${TRe}${h5}${TRe}${h5}$`),cDt=PRe.test.bind(PRe);async function lDt(t){let e=cDt(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(lDt,"auth");function uDt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(uDt,"withAuthorizationPrefix");async function dDt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=uDt(t),e(s)}i(dDt,"hook");var _Re=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(lDt.bind(null,e),{hook:dDt.bind(null,e)})},"createTokenAuth2");var A5="7.0.6";var vRe=i(()=>{},"noop"),pDt=console.warn.bind(console),fDt=console.error.bind(console);function mDt(t={}){return typeof t.debug!="function"&&(t.debug=vRe),typeof t.info!="function"&&(t.info=vRe),typeof t.warn!="function"&&(t.warn=pDt),typeof t.error!="function"&&(t.error=fDt),t}i(mDt,"createLogger");var QRe=`octokit-core.js/${A5} ${Zd()}`,FQ=class{static{i(this,"Octokit")}static VERSION=A5;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 iRe.Collection,n={baseUrl:px.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} ${QRe}`:QRe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=px.defaults(n),this.graphql=NRe(this.request).defaults(n),this.log=mDt(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=_Re(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=CDt(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:ORe(t,e,r,n)})}i(ORe,"gather");var IOr=Object.assign(kRe,{iterator:C5});function I5(t){return{paginate:Object.assign(kRe.bind(null,t),{iterator:C5.bind(null,t)})}}i(I5,"paginateRest");I5.VERSION=EDt;var ROr=new Ny,S5=eRe(),IDt={baseUrl:S5,request:{agent:XBe(S5),fetch:ZBe(S5)}},LRe=FQ.plugin(E5,I5).defaults(IDt);function MRe(t,e){let r=Object.assign({},e||{}),n=KBe(t,r);n&&(r.auth=n);let s=c5(r.userAgent);return s&&(r.userAgent=s),r}i(MRe,"getOctokitOptions");var _y=new Ny;function FRe(t,e,...r){let n=LRe.plugin(...r);return new n(MRe(t,e))}i(FRe,"getOctokit");var $Re=require("stream/consumers");var Ym=class extends Error{static{i(this,"InvalidTokenError")}};Ym.prototype.name="InvalidTokenError";function wDt(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(wDt,"b64DecodeUnicode");function xDt(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 wDt(e)}catch{return atob(e)}}i(xDt,"base64UrlDecode");function URe(t,e){if(typeof t!="string")throw new Ym("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 Ym(`Invalid token specified: missing part #${r+1}`);let s;try{s=xDt(n)}catch(o){throw new Ym(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new Ym(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(URe,"jwtDecode");var UQ=[1e3,3e3],bDt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),vy=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=FRe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({..._y.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<=UQ.length;c++)try{let u=await new Ro("docker-actions-toolkit").get(s,o),d=await(0,$Re.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===UQ.length)throw a;ae(`${a.message}. Retrying (${c+1}/${UQ.length})...`),await new Promise(u=>setTimeout(u,UQ[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&&bDt.has(n)||s.includes("socket hang up")||s.includes("read econnreset")}static get context(){return _y}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`${_y.repo.owner}/${_y.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:_y.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?URe(e):void 0}static printUntrusted(e){let r=qRe.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 qQ=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||eo.default.join(Xd.configDir,"buildx")}static get refsDir(){return eo.default.join(t.configDir,"refs")}static get refsGroupDir(){return eo.default.join(t.refsDir,"__group__")}static get certsDir(){return eo.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 Nu.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 Nu.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 Nu.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,GRe.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=HRe.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=eo.default.join(t.certsDir,`cacert_${a}.pem`);Di.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=eo.default.join(t.certsDir,`cert_${a}.pem`);Di.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=eo.default.join(t.certsDir,`key_${a}.pem`);Di.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=eo.default.join(r||t.refsDir,n,s,o);if(!Di.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Di.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=eo.default.resolve(n);if(e.builderName&&(c=eo.default.join(c,e.builderName)),e.nodeName&&(c=eo.default.join(c,e.nodeName)),!Di.default.existsSync(c))return r;let l=Di.default.readdirSync(c);for(let u of l){let d=eo.default.join(c,u),p=Di.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(A)).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,h=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:p,message:f,file:A.path,startLine:m}),h=!0;break}h||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function VRe(){return{registry:aa("registry"),username:aa("username"),password:aa("password"),scope:aa("scope"),ecr:aa("ecr"),logout:ede("logout"),registryAuth:aa("registry-auth")}}i(VRe,"getInputs");function WRe(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=XSe(t.registryAuth).map(r=>{r.password&&qn(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:$Q(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:$Q(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(WRe,"getAuthList");function $Q(t,e){if(BDt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=jm.default.resolve(qQ.configDir,"config"),o=jm.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!zRe(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=jm.default.resolve(o,c);if(!zRe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i($Q,"scopeToConfigDir");function zRe(t,e){let r=jm.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${jm.default.sep}`)&&!jm.default.isAbsolute(r)}i(zRe,"isChildPath");function BDt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Kd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(BDt,"scopeDisabled");var Cje=R(B8e(),1),Ije=R(sje(),1),zte=R(Vu(),1);var cje=R(require("net"),1),lje=R(require("tls"),1),uje=R(im(),1),dje=require("events");var oje=R(require("net"),1),ije=R(require("http"),1),aje=require("https");var zl=Symbol("AgentBaseInternalState"),s2=class extends ije.Agent{static{i(this,"Agent")}constructor(e){super(e),this[zl]={}}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 oje.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)?aje.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[zl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[zl].currentSocket;if(this[zl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zl]&&(this[zl].defaultPort=e)}get protocol(){return this[zl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zl]&&(this[zl].protocol=e)}};var $te=require("url");function o2(){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(o2,"createNegotiateAuth");var MC=(0,uje.default)("http-proxy-agent"),nB=class extends s2{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $te.URL(e):e,this.proxyHeaders=r?.headers??{},MC("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=o2():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?WKt(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 $te.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;MC("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(MC("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r +`)}i(oDt,"_buildMessageForResponseErrors");var iDt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(oDt(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},aDt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],cDt=["query","method","url"],NRe=/\/api\/v3\/?$/;function lDt(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(cDt.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)=>aDt.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 NRe.test(o)&&(s.url=o.replace(NRe,"/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 iDt(s,c,a.data)}return a.data.data})}i(lDt,"graphql");function h5(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>lDt(r,s,o),"newApi"),{defaults:h5.bind(null,r),endpoint:r.endpoint})}i(h5,"withDefaults");var eOr=h5(fx,{headers:{"user-agent":`octokit-graphql.js/${sDt} ${ep()}`},method:"POST",url:"/graphql"});function TRe(t){return h5(t,{method:"POST",url:"/graphql"})}i(TRe,"withCustomRequest");var A5="(?:[a-zA-Z0-9_-]+)",PRe="\\.",_Re=new RegExp(`^${A5}${PRe}${A5}${PRe}${A5}$`),uDt=_Re.test.bind(_Re);async function dDt(t){let e=uDt(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(dDt,"auth");function pDt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(pDt,"withAuthorizationPrefix");async function fDt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=pDt(t),e(s)}i(fDt,"hook");var vRe=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(dDt.bind(null,e),{hook:fDt.bind(null,e)})},"createTokenAuth2");var g5="7.0.6";var QRe=i(()=>{},"noop"),mDt=console.warn.bind(console),hDt=console.error.bind(console);function ADt(t={}){return typeof t.debug!="function"&&(t.debug=QRe),typeof t.info!="function"&&(t.info=QRe),typeof t.warn!="function"&&(t.warn=mDt),typeof t.error!="function"&&(t.error=hDt),t}i(ADt,"createLogger");var DRe=`octokit-core.js/${g5} ${ep()}`,UQ=class{static{i(this,"Octokit")}static VERSION=g5;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 aRe.Collection,n={baseUrl:fx.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} ${DRe}`:DRe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=fx.defaults(n),this.graphql=TRe(this.request).defaults(n),this.log=ADt(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=vRe(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=SDt(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:LRe(t,e,r,n)})}i(LRe,"gather");var BOr=Object.assign(ORe,{iterator:I5});function S5(t){return{paginate:Object.assign(ORe.bind(null,t),{iterator:I5.bind(null,t)})}}i(S5,"paginateRest");S5.VERSION=IDt;var vOr=new Ty,w5=tRe(),wDt={baseUrl:w5,request:{agent:ZBe(w5),fetch:eRe(w5)}},MRe=UQ.plugin(C5,S5).defaults(wDt);function FRe(t,e){let r=Object.assign({},e||{}),n=XBe(t,r);n&&(r.auth=n);let s=l5(r.userAgent);return s&&(r.userAgent=s),r}i(FRe,"getOctokitOptions");var vy=new Ty;function URe(t,e,...r){let n=MRe.plugin(...r);return new n(FRe(t,e))}i(URe,"getOctokit");var GRe=require("stream/consumers");var jm=class extends Error{static{i(this,"InvalidTokenError")}};jm.prototype.name="InvalidTokenError";function bDt(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(bDt,"b64DecodeUnicode");function BDt(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 bDt(e)}catch{return atob(e)}}i(BDt,"base64UrlDecode");function qRe(t,e){if(typeof t!="string")throw new jm("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 jm(`Invalid token specified: missing part #${r+1}`);let s;try{s=BDt(n)}catch(o){throw new jm(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new jm(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(qRe,"jwtDecode");var qQ=[1e3,3e3],RDt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),Qy=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=URe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...vy.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<=qQ.length;c++)try{let u=await new Ro("docker-actions-toolkit").get(s,o),d=await(0,GRe.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===qQ.length)throw a;ae(`${a.message}. Retrying (${c+1}/${qQ.length})...`),await new Promise(u=>setTimeout(u,qQ[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&&RDt.has(n)||s.includes("socket hang up")||s.includes("read econnreset")}static get context(){return vy}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`${vy.repo.owner}/${vy.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:vy.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?qRe(e):void 0}static printUntrusted(e){let r=$Re.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 $Q=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||eo.default.join(Zd.configDir,"buildx")}static get refsDir(){return eo.default.join(t.configDir,"refs")}static get refsGroupDir(){return eo.default.join(t.refsDir,"__group__")}static get certsDir(){return eo.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await Zd.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,HRe.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=zRe.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=eo.default.join(t.certsDir,`cacert_${a}.pem`);Di.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=eo.default.join(t.certsDir,`cert_${a}.pem`);Di.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=eo.default.join(t.certsDir,`key_${a}.pem`);Di.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=eo.default.join(r||t.refsDir,n,s,o);if(!Di.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Di.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=eo.default.resolve(n);if(e.builderName&&(c=eo.default.join(c,e.builderName)),e.nodeName&&(c=eo.default.join(c,e.nodeName)),!Di.default.existsSync(c))return r;let l=Di.default.readdirSync(c);for(let u of l){let d=eo.default.join(c,u),p=Di.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(A)).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,h=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:p,message:f,file:A.path,startLine:m}),h=!0;break}h||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function WRe(){return{registry:aa("registry"),username:aa("username"),password:aa("password"),scope:aa("scope"),ecr:aa("ecr"),logout:tde("logout"),registryAuth:aa("registry-auth")}}i(WRe,"getInputs");function JRe(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=ZSe(t.registryAuth).map(r=>{r.password&&qn(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:GQ(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:GQ(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(JRe,"getAuthList");function GQ(t,e){if(NDt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=Km.default.resolve($Q.configDir,"config"),o=Km.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!VRe(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=Km.default.resolve(o,c);if(!VRe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(GQ,"scopeToConfigDir");function VRe(t,e){let r=Km.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${Km.default.sep}`)&&!Km.default.isAbsolute(r)}i(VRe,"isChildPath");function NDt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Xd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(NDt,"scopeDisabled");var Sje=R(N8e(),1),wje=R(ije(),1),Vte=R(Wu(),1);var uje=R(require("net"),1),dje=R(require("tls"),1),pje=R(am(),1),fje=require("events");var aje=R(require("net"),1),cje=R(require("http"),1),lje=require("https");var Vl=Symbol("AgentBaseInternalState"),o2=class extends cje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Vl]={}}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 aje.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)?lje.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[Vl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Vl].currentSocket;if(this[Vl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vl]&&(this[Vl].defaultPort=e)}get protocol(){return this[Vl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vl]&&(this[Vl].protocol=e)}};var Gte=require("url");function i2(){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(i2,"createNegotiateAuth");var FC=(0,pje.default)("http-proxy-agent"),sB=class extends o2{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gte.URL(e):e,this.proxyHeaders=r?.headers??{},FC("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=i2():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?XKt(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 Gte.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;FC("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(FC("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),MC("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(MC("Creating `tls.Socket`: %o",this.connectOpts),o=lje.connect(this.connectOpts)):(MC("Creating `net.Socket`: %o",this.connectOpts),o=cje.connect(this.connectOpts)),await(0,dje.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}};nB.protocols=["http","https"];function WKt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(WKt,"omit");var Wl=R(require("net"),1),sB=R(require("tls"),1),gje=R(require("assert"),1),yje=R(im(),1);var pje=R(require("net"),1),fje=R(require("http"),1),mje=require("https");var Vl=Symbol("AgentBaseInternalState"),i2=class extends fje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Vl]={}}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 pje.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)?mje.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[Vl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Vl].currentSocket;if(this[Vl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vl]&&(this[Vl].defaultPort=e)}get protocol(){return this[Vl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vl]&&(this[Vl].protocol=e)}};var Eje=require("url");var hje=R(im(),1);var a2=(0,hje.default)("https-proxy-agent:parse-proxy-response");function Gte(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(),a2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),a2("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 +`)+4,e.outputData[0].data=e._header+n.substring(s),FC("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(FC("Creating `tls.Socket`: %o",this.connectOpts),o=dje.connect(this.connectOpts)):(FC("Creating `net.Socket`: %o",this.connectOpts),o=uje.connect(this.connectOpts)),await(0,fje.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}};sB.protocols=["http","https"];function XKt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(XKt,"omit");var Jl=R(require("net"),1),oB=R(require("tls"),1),Eje=R(require("assert"),1),Cje=R(am(),1);var mje=R(require("net"),1),hje=R(require("http"),1),Aje=require("https");var Wl=Symbol("AgentBaseInternalState"),a2=class extends hje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Wl]={}}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 mje.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)?Aje.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[Wl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Wl].currentSocket;if(this[Wl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Wl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Wl]&&(this[Wl].defaultPort=e)}get protocol(){return this[Wl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Wl]&&(this[Wl].protocol=e)}};var Ije=require("url");var gje=R(am(),1);var c2=(0,gje.default)("https-proxy-agent:parse-proxy-response");function Hte(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(),c2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),c2("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(f===-1){a2("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r -`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.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(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}a2("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Gte,"parseProxyResponse");var Kh=(0,yje.default)("https-proxy-agent"),c2=i(t=>t.servername===void 0&&t.host&&!Wl.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),oB=class extends i2{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Eje.URL(e):e,this.proxyHeaders=r?.headers??{},Kh("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=o2():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?Hte(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:"?(Kh("Creating `tls.Socket`: %o",this.connectOpts),s=sB.connect(c2(this.connectOpts))):(Kh("Creating `net.Socket`: %o",this.connectOpts),s=Wl.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Wl.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r +`);if(f===-1){c2("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r +`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.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(),_=x.slice(b+1).trimStart(),v=I[N];typeof v=="string"?I[N]=[v,_]:Array.isArray(v)?v.push(_):I[N]=_}c2("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(Hte,"parseProxyResponse");var Xh=(0,Cje.default)("https-proxy-agent"),l2=i(t=>t.servername===void 0&&t.host&&!Jl.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),iB=class extends a2{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Ije.URL(e):e,this.proxyHeaders=r?.headers??{},Xh("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=i2():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?zte(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:"?(Xh("Creating `tls.Socket`: %o",this.connectOpts),s=oB.connect(l2(this.connectOpts))):(Xh("Creating `net.Socket`: %o",this.connectOpts),s=Jl.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Jl.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=Gte(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",Aje),r.secureEndpoint?(Kh("Upgrading socket connection to TLS"),sB.connect({...Hte(c2(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Kh("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],h=await this.onProxyAuth({response:u,scheme:m});return this._connectWithAuth(e,r,h.headers)}s.destroy();let p=new Wl.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Kh("Replaying proxy buffer for failed request"),(0,gje.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=sB.connect(c2(this.connectOpts)):o=Wl.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=Wl.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\r +`;let l=Hte(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",yje),r.secureEndpoint?(Xh("Upgrading socket connection to TLS"),oB.connect({...zte(l2(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){Xh("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],h=await this.onProxyAuth({response:u,scheme:m});return this._connectWithAuth(e,r,h.headers)}s.destroy();let p=new Jl.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{Xh("Replaying proxy buffer for failed request"),(0,Eje.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=oB.connect(l2(this.connectOpts)):o=Jl.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=Jl.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=Gte(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",Aje),r.secureEndpoint?(Kh("Upgrading socket connection to TLS"),sB.connect({...Hte(c2(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};oB.protocols=["http","https"];function Aje(t){setImmediate(()=>{t.resume()})}i(Aje,"resume");function Hte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Hte,"omit");var Vte=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,JKt=/public\.ecr\.aws|ecr-public\.aws\.com/,Sje=i(t=>Vte.test(t)||l2(t),"isECR"),l2=i(t=>JKt.test(t),"isPubECR"),YKt=i(t=>{if(l2(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(Vte);return e?e[4]:""},"getRegion"),jKt=i(t=>{if(l2(t))return[];let e=t.match(Vte);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"),wje=i(async(t,e,r)=>{let n=YKt(t),s=jKt(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 nB(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new oB(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(l2(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new Ije.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new zte.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 h=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return qn(h[0]),qn(h[1]),[{registry:"public.ecr.aws",username:h[0],password:h[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new Cje.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new zte.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 h of f.authorizationData){let y=Buffer.from(h.authorizationToken||"","base64").toString("utf-8").split(":",2);qn(y[0]),qn(y[1]),m.push({registry:h.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var xje=/^(?:[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 XKt(t){return typeof t=="string"&&xje.test(t)}i(XKt,"validate");var Wte=XKt;var ZKt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),eXt=3600,bje=300,Bje=21600,Rje=5,Nje=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&ZKt.has(t),"isDockerHubOIDC"),Tje=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(!Wte(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=tXt(),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 nde(o),c=new Ro("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 rXt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await sXt(u));return qn(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),tXt=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||eXt.toString(),e=Number(t);if(isNaN(e)||eBje)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${bje} and ${Bje}`);return e},"getExpiresIn"),rXt=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"),nXt=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"),sXt=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 oXt(r,e);return e},"handleResponse"),oXt=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 Jte(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&Sje(t.registry))await cXt(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(Nje(t.registry,r)){let n=await Tje(t.registry,e);e=n.username,r=n.token}await aXt(t.registry,e,r,t.scope)}}i(Jte,"login");async function Pje(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&&ur(n.stderr.trim())})}i(Pje,"logout");async function aXt(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 _je(t,e,r,n)}i(aXt,"loginStandard");async function cXt(t,e,r,n){ae("Retrieving registries data through AWS SDK...");let s=await wje(t,e,r);for(let o of s)await _je(o.registry,o.username,o.password,n)}i(cXt,"loginECR");async function _je(t,e,r,n){let s,o=$Q(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(_je,"loginExec");var vje=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],Qje=/true/i.test(process.env.STATE_logout||"");function Dje(t){Wf("registries",JSON.stringify(t))}i(Dje,"setRegistries");function kje(t){Wf("logout",t)}i(kje,"setLogout");async function Oje(){let t=VRe();kje(t.logout);let e=WRe(t);if(Dje(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await Jte(e[0]);return}for(let r of e)await KI(`Login to ${r.registry}`,async()=>{await Jte(r)})}i(Oje,"main");async function dXt(){if(Qje)for(let t of vje)await KI(`Logout from ${t.registry}`,async()=>{await Pje(t.registry,t.configDir)})}i(dXt,"post");ESe(Oje,dXt);0&&(module.exports={main}); +`;let u=Hte(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",yje),r.secureEndpoint?(Xh("Upgrading socket connection to TLS"),oB.connect({...zte(l2(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};iB.protocols=["http","https"];function yje(t){setImmediate(()=>{t.resume()})}i(yje,"resume");function zte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(zte,"omit");var Wte=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,ZKt=/public\.ecr\.aws|ecr-public\.aws\.com/,xje=i(t=>Wte.test(t)||u2(t),"isECR"),u2=i(t=>ZKt.test(t),"isPubECR"),eXt=i(t=>{if(u2(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(Wte);return e?e[4]:""},"getRegion"),tXt=i(t=>{if(u2(t))return[];let e=t.match(Wte);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"),bje=i(async(t,e,r)=>{let n=eXt(t),s=tXt(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 sB(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new iB(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(u2(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new wje.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Vte.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 h=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return qn(h[0]),qn(h[1]),[{registry:"public.ecr.aws",username:h[0],password:h[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new Sje.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Vte.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 h of f.authorizationData){let y=Buffer.from(h.authorizationToken||"","base64").toString("utf-8").split(":",2);qn(y[0]),qn(y[1]),m.push({registry:h.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var Bje=/^(?:[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 nXt(t){return typeof t=="string"&&Bje.test(t)}i(nXt,"validate");var Jte=nXt;var sXt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),oXt=3600,Rje=300,Nje=21600,Tje=5,Pje=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&sXt.has(t),"isDockerHubOIDC"),_je=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(!Jte(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=iXt(),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 sde(o),c=new Ro("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 aXt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await lXt(u));return qn(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),iXt=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||oXt.toString(),e=Number(t);if(isNaN(e)||eNje)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${Rje} and ${Nje}`);return e},"getExpiresIn"),aXt=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"),cXt=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"),lXt=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 uXt(r,e);return e},"handleResponse"),uXt=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 Yte(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&xje(t.registry))await fXt(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(Pje(t.registry,r)){let n=await _je(t.registry,e);e=n.username,r=n.token}await pXt(t.registry,e,r,t.scope)}}i(Yte,"login");async function vje(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ae(`Alternative config dir: ${e}`)),await Zd.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&ur(n.stderr.trim())})}i(vje,"logout");async function pXt(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 Qje(t,e,r,n)}i(pXt,"loginStandard");async function fXt(t,e,r,n){ae("Retrieving registries data through AWS SDK...");let s=await bje(t,e,r);for(let o of s)await Qje(o.registry,o.username,o.password,n)}i(fXt,"loginECR");async function Qje(t,e,r,n){let s,o=GQ(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ae(`Logging into ${t} (scope ${n})...`)):ae(`Logging into ${t}...`),await Zd.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(Qje,"loginExec");var Dje=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],kje=/true/i.test(process.env.STATE_logout||"");function Oje(t){Jf("registries",JSON.stringify(t))}i(Oje,"setRegistries");function Lje(t){Jf("logout",t)}i(Lje,"setLogout");async function Mje(){let t=WRe();Lje(t.logout);let e=JRe(t);if(Oje(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await Yte(e[0]);return}for(let r of e)await XI(`Login to ${r.registry}`,async()=>{await Yte(r)})}i(Mje,"main");async function AXt(){if(kje)for(let t of Dje)await XI(`Logout from ${t.registry}`,async()=>{await vje(t.registry,t.configDir)})}i(AXt,"post");CSe(Mje,AXt);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 61f7453..1535a8d 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/@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/@protobuf-ts/runtime/build/commonjs/json-typings.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/base64.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/assert.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js", "../node_modules/@protobuf-ts/runtime/build/commonjs/index.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js", "../node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js", "../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/internal/trim-comparator-whitespace.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/retry/lib/retry_operation.js", "../node_modules/retry/lib/retry.js", "../node_modules/retry/index.js", "../node_modules/async-retry/lib/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/@actions/github/node_modules/@actions/http-client/src/proxy.ts", "../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/writeKey.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/AbstractRpcV2Protocol.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/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/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/httpRequest.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostLabel.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/parseQueryString.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/parseUrl.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/transport/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/schema/deref.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/schema/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/client/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveCustomEndpointsConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/utils/getEndpointFromRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/resolveEndpointsConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getHostnameFromVariants.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedHostname.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedPartition.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getResolvedSigningRegion.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/fromBase64.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/blob/Uint8ArrayBlobAdapter.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/uuid/v4.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/split-every.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-type-check.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/constants-for-browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase64.browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUtf8.browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.browser.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/checksum/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageDecoderStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageEncoderStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageEncoderStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getChunkedStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/EventStreamMarshaller.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-config-resolver/EventStreamSerdeConfig.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Fields.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/common.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js", "../node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/protocols/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/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.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/node_modules/balanced-match/src/index.ts", "../node_modules/@actions/glob/node_modules/brace-expansion/src/index.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/assert-valid-pattern.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/brace-expressions.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/unescape.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/ast.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/escape.ts", "../node_modules/@actions/glob/node_modules/minimatch/src/index.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/src/github/github.ts", "../node_modules/@actions/github/src/context.ts", "../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/@actions/github/src/utils.ts", "../node_modules/@actions/github/src/github.ts", "../node_modules/jwt-decode/build/esm/index.js", "../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/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2Fzb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QEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbU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QFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMj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AiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsg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AiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0M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AdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDt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AAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkg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a2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYC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kEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQA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VJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==', '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 * ::=