varyPe=Object.create;varfb=Object.defineProperty;varEPe=Object.getOwnPropertyDescriptor;varCPe=Object.getOwnPropertyNames;varIPe=Object.getPrototypeOf,bPe=Object.prototype.hasOwnProperty;var_=(t,e)=>()=>(t&&(e=t(t=0)),e);varC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gn=(t,e)=>{for(varrine)fb(t,r,{get:e[r],enumerable:!0})},U3=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofCPe(e))!bPe.call(t,s)&&s!==r&&fb(t,s,{get:()=>e[s],enumerable:!(n=EPe(e,s))||n.enumerable});returnt};varB=(t,e,r)=>(r=t!=null?yPe(IPe(t)):{},U3(e||!t||!t.__esModule?fb(r,"default",{value:t,enumerable:!0}):r,t)),Ze=t=>U3(fb({},"__esModule",{value:!0}),t);varW3=C(qA=>{"use strict";varHPt=require("net"),NPe=require("tls"),Hv=require("http"),V3=require("https"),TPe=require("events"),zPt=require("assert"),PPe=require("util");qA.httpOverHttp=QPe;qA.httpsOverHttp=_Pe;qA.httpOverHttps=vPe;qA.httpsOverHttps=DPe;functionQPe(t){vare=newbc(t);returne.request=Hv.request,e}function_Pe(t){vare=newbc(t);returne.request=Hv.request,e.createSocket=Y3,e.defaultPort=443,e}functionvPe(t){vare=newbc(t);returne.request=V3.request,e}functionDPe(t){vare=newbc(t);returne.request=V3.request,e.createSocket=Y3,e.defaultPort=443,e}functionbc(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Hv.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,o,i){for(vara=j3(s,o,i),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}PPe.inherits(bc,TPe.EventEmitter);bc.prototype.addRequest=function(e,r,n,s){varo=this,i=zv({request:e},o.options,j3(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(i);return}o.createSocket(i,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){o.emit("free",a,i)}functionl(u){o.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};bc.prototype.createSocket=function(e,r){varn=this,s={};n.sockets.push(s);varo=zv({},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 "+newBuffer(o.proxyAuth).toString("base64")),Ol("making CONNECT request");vari=n.request(o);i.useChunkedEncodingByDefault=!1,i.once("response",a),i.once("upgrade",c),i.once("connect",l),i.once("error",u),i.end();functiona(d){d.upgrade=!0}functionc(d,p,A){process.nextTick(function(){l(d,p,A)})}functionl(d,p,A){if(i.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){Ol("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();varf=newError("tunneling socket could not be established, statusCode="+d.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(A.length>0){Ol("got illegal response body from proxy"),p.destroy();varf=newError("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}returnOl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}functionu(d){i.removeAllListeners(),Ol(`tunneling socket could not be established, cause=%s
`);p.push(y),o+=y.byteLength,f&&(o=null),s=t,n=async function*(){for(let b of p)b.stream?yield*b.stream():yield b},i=`multipart/form-data;boundary=${c}`}else if(r8(t))s=t,o=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Xve(t)}if((typeof s=="string"||gg.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:d}=await c.next();if(d)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!i8(r)){let p=new Uint8Array(u);p.byteLength&&l.enqueue(p)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:o},i]}function dDe(t,e=!1){return t instanceof ReadableStream&&(JD(!gg.isDisturbed(t),"The body has already been consumed."),JD(!t.locked,"The stream is locked.")),l8(t,e)}function pDe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function ADe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function mDe(t){return{blob(){return em(this,r=>{let n=s8(this);return n===null?n="":n&&(n=cDe(n)),new oDe([r],{type:n})},t)},arrayBuffer(){return em(this,r=>new Uint8Array(r).buffer,t)},text(){return em(this,o8,t)},json(){return em(this,hDe,t)},formData(){return em(this,r=>{let n=s8(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=lDe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new n8;return o[tm]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new n8;for(let[i,a]of s)o.append(i,a);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return em(this,r=>new Uint8Array(r),t)}}}function fDe(t){Object.assign(t.prototype,mDe(t))}async function em(t,e,r){if(sDe.brandCheck(t,r),u8(t))throw new TypeError("Body is unusable: Body has already been read");ADe(t[tm]);let n=tDe(),s=i=>n.reject(i),o=i=>{try{n.resolve(e(i))}catch(a){s(a)}};return t[tm].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await rDe(t[tm].body,o,s),n.promise)}function u8(t){let e=t[tm].body;return e!=null&&(e.stream.locked||gg.isDisturbed(e.stream))}function hDe(t){return JSON.parse(o8(t))}function s8(t){let e=t[tm].headersList,r=nDe(e);return r==="failure"?null:r}d8.exports={extractBody:l8,safelyExtractBody:dDe,cloneBody:pDe,mixinBody:fDe,streamRegistry:c8,hasFinalizationRegistry:a8,bodyUnusable:u8}});var b8=C((IQt,I8)=>{"use strict";var Se=require("node:assert"),Me=tt(),{channels:p8}=GA(),XD=vD(),{RequestContentLengthMismatchError:Td,ResponseContentLengthMismatchError:gDe,RequestAbortedError:y8,HeadersTimeoutError:yDe,HeadersOverflowError:EDe,SocketError:Wb,InformationalError:nm,BodyTimeoutError:CDe,HTTPParserError:IDe,ResponseExceededMaxSizeError:bDe}=ft(),{kUrl:E8,kReset:xs,kClient:rk,kParser:mr,kBlocking:Cg,kRunning:Bn,kPending:xDe,kSize:A8,kWriting:Ul,kQueue:bi,kNoRef:yg,kKeepAliveDefaultTimeout:wDe,kHostHeader:SDe,kPendingIdx:BDe,kRunningIdx:Po,kError:Qo,kPipelining:Yb,kSocket:sm,kKeepAliveTimeoutValue:Jb,kMaxHeadersSize:ZD,kKeepAliveMaxTimeout:RDe,kKeepAliveTimeoutThreshold:NDe,kHeadersTimeout:TDe,kBodyTimeout:PDe,kStrictContentLength:nk,kMaxRequests:m8,kCounter:QDe,kMaxResponseSize:_De,kOnError:vDe,kResume:Ml,kHTTPContext:C8}=Yt(),la=cK(),DDe=Buffer.alloc(0),Hb=Buffer[Symbol.species],zb=Me.addListener,kDe=Me.removeAllListeners,ek;async function LDe(){let t=process.env.JEST_WORKER_ID?LD():void 0,e;try{e=await WebAssembly.compile(dK())}catch{e=await WebAssembly.compile(t||LD())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Se($r.ptr===r);let o=n-da+ua.byteOffset;return $r.onStatus(new Hb(ua.buffer,o,s))||0},wasm_on_message_begin:r=>(Se($r.ptr===r),$r.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Se($r.
`}return p8.sendHeaders.hasSubscribers&&p8.sendHeaders.publish({request:e,headers:y,socket:A}),!c||p===0?h8(f,null,t,e,A,u,y,d):Me.isBuffer(c)?h8(f,c,t,e,A,u,y,d):Me.isBlobLike(c)?typeof c.stream=="function"?g8(f,c.stream(),t,e,A,u,y,d):GDe(f,c,t,e,A,u,y,d):Me.isStream(c)?$De(f,c,t,e,A,u,y,d):Me.isIterable(c)?g8(f,c,t,e,A,u,y,d):Se(!1),!0}function $De(t,e,r,n,s,o,i,a){Se(o!==0||r[Bn]===0,"stream body cannot be pipelined");let c=!1,l=new Kb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:a,header:i}),u=function(f){if(!c)try{!l.write(f)&&this.pause&&this.pause()}catch(y){Me.destroy(this,y)}},d=function(){c||e.resume&&e.resume()},p=function(){if(queueMicrotask(()=>{e.removeListener("error",A)}),!c){let f=new y8;queueMicrotask(()=>A(f))}},A=function(f){if(!c){if(c=!0,Se(s.destroyed||s[Ul]&&r[Bn]<=1),s.off("drain",d).off("error",A),e.removeListener("data",u).removeListener("end",A).removeListener("close",p),!f)try{l.end()}catch(y){f=y}l.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Me.destroy(e,f):Me.destroy(e)}};e.on("data",u).on("end",A).on("error",A).on("close",p),e.resume&&e.resume(),s.on("drain",d).on("error",A),e.errorEmitted??e.errored?setImmediate(()=>A(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>A(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}function h8(t,e,r,n,s,o,i,a){try{e?Me.isBuffer(e)&&(Se(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length:${o}\r
`,"latin1"):(Se(o===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),n.onRequestSent(),r[Ml]()}catch(c){t(c)}}async function GDe(t,e,r,n,s,o,i,a){Se(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Td;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length:${o}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[xs]=!0),r[Ml]()}catch(c){t(c)}}async function g8(t,e,r,n,s,o,i,a){Se(o!==0||r[Bn]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}let u=()=>new Promise((p,A)=>{Se(c===null),s[Qo]?A(s[Qo]):c=p});s.on("close",l).on("drain",l);let d=new Kb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:a,header:i});try{for await(let p of e){if(s[Qo])throw s[Qo];d.write(p)||await u()}d.end()}catch(p){d.destroy(p)}finally{s.off("close",l).off("drain",l)}}var Kb=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:i,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=i,this.header=a,this.abort=e,r[Ul]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:i,expectsPayload:a,header:c}=this;if(r[Qo])throw r[Qo];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(s!==null&&i+l>s){if(o[nk])throw new Td;process.emitWarning(new Td)}r.cork(),i===0&&(!a&&n.reset!==!1&&(r[xs]=!0),s===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[nk])throw new Td;process.emitWarning(new Td)}e[mr].timeout&&e[mr].timeoutType===om&&e[mr].timeout.refresh&&e[mr].timeout.refresh(),n[Ml]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ul]=!1,e&&(Se(n[Bn]<=1,"pipeline should only contain this request"),s(e))}};I8.exports=FDe});var P8=C((bQt,T8)=>{"use strict";var _o=require("node:assert"),{pipeline:HDe}=require("node:stream"),at=tt(),{RequestContentLengthMismatchError:ak,RequestAbortedError:x8,SocketError:Ig,InformationalError:ck}=ft(),{kUrl:Xb,kReset:ex,kClient:im,kRunning:tx,kPending:zDe,kQueue:ql,kPendingIdx:lk,kRunningIdx:xi,kError:Si,kSocket:an,kStrictContentLength:VDe,kOnError:uk,kMaxConcurrentStreams:N8,kHTTP2Session:wi,kResume:$l,kSize:YDe,kHTTPContext:jDe}=Yt(),Nc=Symbol("open streams"),w8,S8=!1,Zb;try{Zb=require("node:http2")}catch{Zb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:WDe,HTTP2_HEADER_METHOD:JDe,HTTP2_HEADER_PATH:KDe,HTTP2_HEADER_SCHEME:XDe,HTTP2_HEADER_CONTENT_LENGTH:ZDe,HTTP2_HEADER_EXPECT:eke,HTTP2_HEADER_STATUS:tke}}=Zb;function rke(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}async function nke(t,e){t[an]=e,S8||(S8=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Zb.connect(t[Xb],{createConnection:()=>e,peerMaxConcurrentStreams:t[N8]});r[Nc]=0,r[im]=t,r[an]=e,at.addListener(r,"error",oke),at.addListener(r,"frameError",ike),at.addListener(r,"end",ake),at.addListener(r,"goaway",cke),at.addListener(r,"close",function(){let{[im]:s}=this,{[an]:o}=s,i=this[an][Si]||this[Si]||new Ig("closed",at.getSocketInfo(o));if(s[wi]=null,s.destroyed){_o(s[zDe]===0);let a=s[ql].splice(s[xi]);for(let c=0;c<a.length;c++){let l=a[c];at.errorRequest(s,l,i)}}}),r.unref(),t[wi]=r,e[wi]=r,at.addListener(e,"error",function(s){_o(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Si]=s,this[im][uk](s)}),at.addListener(e,"end",function(){at.destroy(this,new Ig("other side closed",at.getSocketInfo(this)))}),at.addListener(e,"close",function(){let s=this[Si]||new Ig("closed",at.getSocketInfo(this));t[an]=null,this[wi]!=null&&this[wi].destroy(s),t[lk]=t[xi],_o(t[tx]===0),t.emit("disconnect",t[Xb],[t],s),t[$l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uke(t,...s)},resume(){ske(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}function ske(t){let e=t[an];e?.destroyed===!1&&(t[YDe]===0&&t[N8]===0?(e.unref(),t[wi].unref()):(e.ref(),t[wi].ref()))}function oke(t){_o(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[an][Si]=t,this[im][uk](t)}function ike(t,e,r){if(r===0){let n=new ck(`HTTP/2:"frameError"received-type${t},code${e}`);this[an][Si]=n,this[im][uk](n)}}function ake(){let t=new Ig("other side closed",at.getSocketInfo(this[an]));this.destroy(t),at.destroy(this[an],t)}function cke(t){let e=this[Si]||new Ig(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,at.getSocketInfo(this)),r=this[im];if(r[an]=null,r[jDe]=null,this[wi]!=null&&(this[wi].destroy(e),this[wi]=null),at.destroy(this[an],e),r[xi]<r[ql].length){let n=r[ql][r[xi]];r[ql][r[xi]++]=null,at.errorRequest(r,n,e),r[lk]=r[xi]}_o(r[tx]===0),r.emit("disconnect",r[Xb],[r],e),r[$l]()}function lke(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uke(t,e){let r=t[wi],{method:n,path:s,host:o,upgrade:i,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(i)return at.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let v=0;v<l.length;v+=2){let O=l[v+0],U=l[v+1];if(Array.isArray(U))for(let Y=0;Y<U.length;Y++)d[O]?d[O]+=`,${U[Y]}`:d[O]=U[Y];else d[O]=U}let p,{hostname:A,port:f}=t[Xb];d[WDe]=o||`${A}${f?`:${f}`:""}`,d[JDe]=n;let y=v=>{e.aborted||e.completed||(v=v||new x8,at.errorRequest(t,e,v),p!=null&&at.destroy(p,v),at.destroy(u,v),t[ql][t[xi]++]=null,t[$l]())};try{e.onConnect(y)}catch(v){at.errorRequest(t,e,v)}if(e
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(p).toString("base64")}`}o.Host=`${i}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(o))a+=`${p}:${o[p]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),rf("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(rf("Creating `tls.Socket`: %o",this.connectOpts),o=uJe.connect(this.connectOpts)):(rf("Creating `net.Socket`: %o",this.connectOpts),o=lJe.connect(this.connectOpts)),await(0,pJe.once)(o,"connect"),o}};SS.protocols=["http","https"];Ho.HttpProxyAgent=SS;function mJe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ooe=C(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.state=void 0;MS.state={instrumenterImplementation:void 0}});var eie=C(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.state=void 0;HS.state={operationRequestMap:new WeakMap}});var _ce=C(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var D9e=require("os"),k9e=require("util");function L9e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var O9e=L9e(k9e);function F9e(t,...e){process.stderr.write(`${O9e.default.format(t,...e)}${D9e.EOL}`)}var bce=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wce,N$=[],T$=[],lR=[];bce&&P$(bce);var Sce=Object.assign(t=>Bce(t),{enable:P$,enabled:Q$,disable:M9e,log:F9e});function P$(t){wce=t,N$=[],T$=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?T$.push(new RegExp(`^${n.substr(1)}$`)):N$.push(new RegExp(`^${n}$`));for(let n of lR)n.enabled=Q$(n.namespace)}function Q$(t){if(t.endsWith("*"))return!0;for(let e of T$)if(e.test(t))return!1;for(let e of N$)if(e.test(t))return!0;return!1}function M9e(){let t=wce||"";return P$(""),t}function Bce(t){let e=Object.assign(r,{enabled:Q$(t),destroy:U9e,log:Sce.log,namespace:t,extend:q9e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return lR.push(e),e}function U9e(){let t=lR.indexOf(this);return t>=0?(lR.splice(t,1),!0):!1}function q9e(t){let e=Bce(`${this.namespace}:${t}`);return e.log=this.log,e}var SE=Sce,Rce=new Set,aR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,uR,dR=SE("azure");dR.log=(...t)=>{SE.log(...t)};var _$=["verbose","info","warning","error"];aR&&(Qce(aR)?Nce(aR):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${aR}';loggingisnotenabled.Acceptablevalues:${_$.join(", ")}.`));function Nce(t){if(t&&!Qce(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${_$.join(",")}`);uR=t;let e=[];for(let r of Rce)Pce(r)&&e.push(r.namespace);SE.enable(e.join(","))}function $9e(){return uR}var xce={verbose:400,info:300,warning:200,error:100};function G9e(t){let e=dR.extend(t);return Tce(dR,e),{error:cR(e,"error"),warning:cR(e,"warning"),info:cR(e,"info"),verbose:cR(e,"verbose")}}function Tce(t,e){e.log=(...r)=>{t.log(...r)}}function cR(t,e){let r=Object.assign(t.extend(e),{level:e});if(Tce(t,r),Pce(r)){let n=SE.disable();SE.enable(n+","+r.namespace)}return Rce.add(r),r}function Pce(t){return!!(uR&&xce[t.level]<=xce[uR])}function Qce(t){return _$.includes(t)}If.AzureLogger=dR;If.createClientLogger=G9e;If.getLogLevel=$9e;If.setLogLevel=Nce});var k$=C(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});var bf=new WeakMap,pR=new WeakMap,BE=class t{constructor(){this.onabort=null,bf.set(this,[]),pR.set(this,!1)}get aborted(){if(!pR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return pR.get(this)}static get none(){return new t}addEventListener(e,r){if(!bf.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");bf.get(this).push(r)}removeEventListener(e,r){if(!bf.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=bf.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 vce(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=bf.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),pR.set(t,!0)}var v$=class extends Error{constructor(e){super(e),t
orincreasesocketAcquisitionWarningTimeout=(millis)intheNodeHttpHandlerconfig.`),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=e.protocol==="https:";return!o&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((i,a)=>{let c,l=[],u=async V=>{await c,l.forEach(fs.clearTimeout),i(V)},d=async V=>{await c,l.forEach(fs.clearTimeout),a(V)};if(r?.aborted){let V=yN(r);d(V);return}let p=e.headers??{},A=(p.Expect??p.expect)==="100-continue",f=o?s.httpsAgent:s.httpAgent;A&&!this.externalAgent&&(f=new(o?hN.Agent:gN)({keepAlive:!1,maxSockets:1/0})),l.push(fs.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(f,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3)));let y=Ofe.buildQueryString(e.query||{}),b;if(e.username!=null||e.password!=null){let V=e.username??"",Ee=e.password??"";b=`${V}:${Ee}`}let x=e.path;y&&(x+=`?${y}`),e.fragment&&(x+=`#${e.fragment}`);let I=e.hostname??"";I[0]==="["&&I.endsWith("]")?I=e.hostname.slice(1,-1):I=e.hostname;let T={headers:e.headers,host:I,method:e.method,path:x,port:e.port,agent:f,auth:b},O=(o?hN.request:kfe)(T,V=>{let Ee=new Lfe.HttpResponse({statusCode:V.statusCode||-1,reason:V.statusMessage,headers:Mfe(V.headers),body:V});u({response:Ee})});if(O.on("error",V=>{kit.includes(V.code)?d(Object.assign(V,{name:"TimeoutError"})):d(V)}),r){let V=()=>{O.destroy();let Ee=yN(r);d(Ee)};if(typeof r.addEventListener=="function"){let Ee=r;Ee.addEventListener("abort",V,{once:!0}),O.once("close",()=>Ee.removeEventListener("abort",V))}else r.onabort=V}let U=n??s.requestTimeout;l.push(Lit(O,d,s.connectionTimeout)),l.push(Oit(O,d,U,s.throwOnRequestTimeout,s.logger??console)),l.push(Uit(O,d,s.socketTimeout));let Y=T.agent;typeof Y=="object"&&"keepAlive"in Y&&l.push(Mit(O,{keepAlive:Y.keepAlive,keepAliveMsecs:Y.keepAliveMsecs})),c=Ufe(O,e,U,this.externalAgent).catch(V=>(l.forEach(fs.clearTimeout),a(V)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:l}=e||{},u=!0,d=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:p,request:A}=await import("node:http");return kfe=A,gN=p,i instanceof gN||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new gN({keepAlive:u,maxSockets:d,...i})},httpsAgent:a instanceof hN.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new hN.Agent({keepAlive:u,maxSockets:d,...a}),logger:l}}},sz=class{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter(r=>r!==e)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(let r of this.sessions)r===e&&(r.destroyed||r.destroy())}},oz=class{constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}config;sessionCache=new Map;lease(e,r){let n=this.getUrlString(e),s=this.sessionCache.get(n);if(s){let c=s.poll();if(c&&!this.config.disableConcurrency)return c}let o=rz.connect(n);this.config.maxConcurrency&&o.settings({maxConcurrentStreams:this.config.maxConcurrency},c=>{if(c)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destin
IfyouareusingReactNative,thisAPIisnotyetsupported,see:https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async s=>{let o=await r();if(s==="base64")return(0,rat.toBase64)(o);if(s==="hex")return(0,nat.toHex)(o);if(s===void 0||s==="utf8"||s==="utf-8")return(0,sat.toUtf8)(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(Yfe);if(e=!0,jfe(t))return n(t);if((0,Vfe.isReadableStream)(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})};IN.sdkStreamMixin=oat;var jfe=t=>typeof Blob=="function"&&t instanceof Blob});var Kfe=C(bN=>{"use strict";Object.defineProperty(bN,"__esModule",{value:!0});bN.sdkStreamMixin=void 0;var iat=sc(),aat=oh(),pz=require("stream"),cat=Wfe(),Jfe="The stream has already been transformed.",lat=t=>{if(!(t instanceof pz.Readable))try{return(0,cat.sdkStreamMixin)(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=async()=>{if(e)throw new Error(Jfe);return e=!0,await(0,iat.streamCollector)(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?(0,aat.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},transformToWebStream:()=>{if(e)throw new Error(Jfe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof pz.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,pz.Readable.toWeb(t)}})};bN.sdkStreamMixin=lat});var Xfe=C(Az=>{"use strict";Object.defineProperty(Az,"__esModule",{value:!0});Az.splitStream=uat;async function uat(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}});var the=C(mz=>{"use strict";Object.defineProperty(mz,"__esModule",{value:!0});mz.splitStream=pat;var Zfe=require("stream"),dat=Xfe(),ehe=cl();async function pat(t){if((0,ehe.isReadableStream)(t)||(0,ehe.isBlob)(t))return(0,dat.splitStream)(t);let e=new Zfe.PassThrough,r=new Zfe.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}});var PN=C(ht=>{"use strict";var rhe=Kr(),nhe=Jr(),xN=G2(),wN=Efe(),SN=Sfe(),BN=Rfe(),RN=Tfe(),NN=Kfe(),TN=the(),she=cl(),fz=class t extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?t.mutate(rhe.fromBase64(e)):t.mutate(nhe.fromUtf8(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,t.prototype),e}transformToString(e="utf-8"){return e==="base64"?rhe.toBase64(this):nhe.toUtf8(this)}};ht.isBlob=she.isBlob;ht.isReadableStream=she.isReadableStream;ht.Uint8ArrayBlobAdapter=fz;Object.prototype.hasOwnProperty.call(xN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:xN.__proto__});Object.keys(xN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=xN[t])});Object.prototype.hasOwnProperty.call(wN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:wN.__proto__});Object.keys(wN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=wN[t])});Object.prototype.hasOwnProperty.call(SN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:SN.__proto__});Object.keys(SN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=SN[t])});Object.prototype.hasOwnProperty.call(BN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:BN.__proto__});Object.keys(BN).
`+p}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(p):r.logger?.warn?.(p)}typeof d.$responseBodyText<"u"&&d.$response&&(d.$response.body=d.$responseBodyText);try{if(ohe.HttpResponse.isInstance(s)){let{headers:A={}}=s,f=Object.entries(A);d.$metadata={httpStatusCode:s.statusCode,requestId:gz(/^x-[\w-]+-request-?id$/,f),extendedRequestId:gz(/^x-[\w-]+-id-2$/,f),cfId:gz(/^x-[\w-]+-cf-id$/,f)}}}catch{}}throw d}},gz=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var uhe=C(lhe=>{"use strict";function Aat(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}lhe.parseQueryString=Aat});var Vi=C(phe=>{"use strict";var mat=uhe(),dhe=t=>{if(typeof t=="string")return dhe(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,i;return o&&(i=mat.parseQueryString(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:i}};phe.parseUrl=dhe});var yz,Ez,Ahe=_(()=>{yz=B(Vi()),Ez=t=>{if(typeof t=="object"){if("url"in t){let e=(0,yz.parseUrl)(t.url);if(t.headers){e.headers={};for(let[r,n]of Object.entries(t.headers))e.headers[r.toLowerCase()]=n.join(", ")}return e}return t}return(0,yz.parseUrl)(t)}});var mhe={};gn(mhe,{toEndpointV1:()=>Ez});var Cz=_(()=>{Ahe()});var fhe,hhe,ghe=_(()=>{Cz();fhe=B(Fn());DN();hhe=t=>(e,r)=>async n=>{let{operationSchema:s}=(0,fhe.getSmithyContext)(r),[,o,i,a,c,l]=s??[],u=r.endpointV2?async()=>Ez(r.endpointV2):t.endpoint,d=await t.protocol.serializeRequest(IC(o,i,a,c,l),n.input,{...t,...r,endpoint:u});return e({...n,request:d})}});function dl(t){return{applyToStack:e=>{e.add(hhe(t),Ehe),e.add(ahe(t),yhe),t.protocol.setSerdeContext(t)}}}var yhe,Ehe,Che=_(()=>{che();ghe();yhe={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ehe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var Dr,Ou=_(()=>{Dr=class{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 kN,fat,Ihe=_(()=>{Ou();kN=class t extends Dr{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},fat=(t,e,r,n)=>Dr.assign(new kN,{name:e,namespace:t,traits:r,valueSchema:n})});var LN,hat,bhe=_(()=>{Ou();LN=class t extends Dr{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},hat=(t,e,r,n,s)=>Dr.assign(new LN,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s})});var ON,gat,xhe=_(()=>{Ou();ON=class t extends Dr{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},gat=(t,e,r,n,s)=>Dr.assign(new ON,{name:e,namespace:t,traits:r,input:n,output:s})});var ch,yat,Iz=_(()=>{Ou();ch=class t extends Dr{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},yat=(t,e,r,n,s)=>Dr.assign(new ch,{name:e,namespace:t,traits:r,memberNames:n,memberList:s})});var FN,Eat,whe=_(()=>{Ou();Iz();FN=class t extends ch{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},Eat=(t,e,r,n,s,o)=>Dr.assign(new FN,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null})});function ic(t){if(typeof t=="object")return t;if(t=t|0,MN[t])return MN[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return MN[t]=e}var MN,bz=_(()=>{MN=[]});function xC(t,e){if(t instanceof me)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=me;return new r(t,e)}var bC,UN,qN,me,xz,She,Bhe=_(()=>{hz();bz();bC={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},UN=[],qN={},me=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memb
`),RC={warn:console.warn}});function TC(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,l=o<10?`0${o}`:`${o}`,u=i<10?`0${i}`:`${i}`,d=a<10?`0${a}`:`${a}`;return`${Mat[n]},${c}${vz[r]}${e}${l}:${u}:${d}GMT`}var Mat,vz,Uat,qat,$at,Dz,Gat,Hat,zat,kz,Lz,NC,Vat,Yat,jat,_z,Wat,Jat,Kat,ac,Xat,Zat,dh,Dhe=_(()=>{Qz();Mat=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],vz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Uat=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),qat=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Uat.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,i,a,c,l]=e,u=Wp(dh(n)),d=ac(s,"month",1,12),p=ac(o,"day",1,31);return NC(u,d,p,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})},$at=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Dz=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=$at.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,i,a,c,l,u]=e,d=Wp(dh(n)),p=ac(s,"month",1,12),A=ac(o,"day",1,31),f=NC(d,p,A,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!="Z"&&f.setTime(f.getTime()-Zat(u)),f},Gat=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$/),Hat=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$/),zat=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})$/),kz=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Gat.exec(t);if(e){let[r,n,s,o,i,a,c,l]=e;return NC(Wp(dh(o)),_z(s),ac(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}if(e=Hat.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return jat(NC(Vat(o),_z(s),ac(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l}))}if(e=zat.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return NC(Wp(dh(l)),_z(n),ac(s.trimLeft(),"day",1,31),{hours:o,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Lz=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=HN(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))},NC=(t,e,r,n)=>{let s=e-1;return Jat(t,s,r),new Date(Date.UTC(t,s,r,ac(n.hours,"hour",0,23),ac(n.minutes,"minute",0,59),ac(n.seconds,"seconds",0,60),Xat(n.fractionalMilliseconds)))},Vat=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Wp(dh(t));return r<e?r+100:r},Yat=50*365*24*60*60*1e3,jat=t=>t.getTime()-new Date().getTime()>Yat?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,_z=t=>{let e=vz.indexOf(t);if(e<0)throw new TypeError(`Invalidmonth:${t}`);return e+1},Wat=[31,28,31,30,31,30,31,31,30,31,30,31],Jat=(t,e,r)=>{let n=Wat[e];if(e===1&&Kat(t)&&(n=29),r>n)throw new TypeError(`Invaliddayfor${vz[e]}in${t}:${r}`)},Kat=t=>t%4===0&&(t%100!==0||t%400===0),ac=(t,e,r,n)=>{let s=Pz(dh(t));if(s<r||s>n)throw new TypeError(`${e}mustbebetween${r}and${n},inclusive`);return s},Xat=t=>t==null?0:Nz("0."+t)*1e3,Zat=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offsetdirection,${e
${zu.toHex(i)}`}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 IT.escapeUri(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=Pdt(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},cY=class extends RT{headerFormatter=new oY;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:l,signingService:u}=r,d=await this.credentialProvider();this.validateResolvedCredentials(d);let p=l??await this.regionProvider(),{longDate:A,shortDate:f}=this.formatDate(n);if(s>pCe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let y=wT(f,p,u??this.service),b=fCe(aY(e),{unhoistableHeaders:i,hoistableHeaders:c});d.sessionToken&&(b.query[dY]=d.sessionToken),b.query[XEe]=bT,b.query[ZEe]=`${d.accessKeyId}/${y}`,b.query[lY]=A,b.query[tCe]=s.toString(10);let x=sY(b,o,a);return b.query[eCe]=this.getCanonicalHeaderList(x),b.query[uY]=await this.getSignature(A,y,this.getSigningKey(d,p,f,u),this.createCanonicalRequest(b,x,await ST(e,this.sha256))),b}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:i}){let a=o??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(n),u=wT(c,a,i??this.service),d=await ST({headers:{},body:r},this.sha256),p=new this.sha256;p.update(e);let A=zu.toHex(await p.digest()),f=[lCe,l,u,s,A,d].join(`
-EKScontainerhost169.254.170.23or[fd00:ec2::23]`,{logger:e})}};PT.checkUrl=xpt});var OCe=C(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});QT.createGetRequest=Rpt;QT.getCredentials=Npt;var SY=Hn(),wpt=Bt(),Spt=_e(),Bpt=PN();function Rpt(t){return new wpt.HttpRequest({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})}async function Npt(t,e){let n=await(0,Bpt.sdkStreamMixin)(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 SY.CredentialsProviderError("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:(0,Spt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new SY.CredentialsProviderError(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new SY.CredentialsProviderError(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e})}});var FCe=C(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.retryWrapper=void 0;var Tpt=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()};_T.retryWrapper=Tpt});var qCe=C(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.fromHttp=void 0;var Ppt=(QC(),Ze(PC)),Qpt=(mn(),Ze(ii)),_pt=sc(),MCe=Hn(),vpt=Ppt.__importDefault(require("node:fs/promises")),Dpt=LCe(),UCe=OCe(),kpt=FCe(),Lpt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Opt="http://169.254.170.2",Fpt="AWS_CONTAINER_CREDENTIALS_FULL_URI",Mpt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Upt="AWS_CONTAINER_AUTHORIZATION_TOKEN",qpt=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[Lpt],n=t.awsContainerCredentialsFullUri??process.env[Fpt],s=t.awsContainerAuthorizationToken??process.env[Upt],o=t.awsContainerAuthorizationTokenFile??process.env[Mpt],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsFullUri will take precedence.")),s&&o&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationToken will take precedence.")),n)e=n;else if(r)e=`${Opt}${r}`;else throw new MCe.CredentialsProviderError(`NoHTTPcredentialproviderhostprovided.
SetAWS_CONTAINER_CREDENTIALS_FULL_URIorAWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);(0,Dpt.checkUrl)(a,t.logger);let c=_pt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,kpt.retryWrapper)(async()=>{let l=(0,UCe.createGetRequest)(a);s?l.headers.Authorization=s:o&&(l.headers.Authorization=(await vpt.default.readFile(o)).toString());try{let u=await c.handle(l);return(0,UCe.getCredentials)(u.response).then(d=>(0,Qpt.setCredentialFeature)(d,"CREDENTIALS_HTTP","z"))}catch(u){throw new MCe.CredentialsProviderError(String(u),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)};vT.fromHttp=qpt});var BY=C(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.fromHttp=void 0;var $pt=qCe();Object.defineProperty(DT,"fromHttp",{enumerable:!0,get:function(){return $pt.fromHttp}})});function Gpt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Hpt(t){return{schemeId:"smithy.api#noAuth"}}var GC,$Ce,GCe,HCe,RY=_(()=>{Ur();GC=B(Fn()),$Ce=async(t,e,r)=>({operation:(0,GC.getSmithyContext)(e).operation,region:await(0,GC.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});GCe=t=>{let e=[];return t.operation==="CreateToken"?e.push(Hpt(t)):e.push(Gpt(t)),e},HCe=t=>{let e=lc(t);return Object.assign(e,{authSchemePreference:(0,GC.normalizeProvider)(t.authSchemePreference??[])})}});var zCe,VCe,NY=_(()=>{zCe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),VCe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Wu,HC=_(()=>{Wu={name:"@aws-sdk/nested-clients",version:"3.996.18",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.26","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.28","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.14","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.13","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.28","@smithy/middleware-retry":"^4.4.46","@smithy/middleware-serde":"^4.2.16","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.1","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.8","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/ut
`&&E[N]!=="\r";N++)D+=E[N];if(D=D.trim(),D[D.length-1]==="/"&&(D=D.substring(0,D.length-1),N--),!O(D)){let ce;return ce=D.trim().length===0?"Invalid space after '<'.":"Tag '"+D+"' is an invalid name.",T("InvalidTag",ce,U(E,N))}let M=y(E,N);if(M===!1)return T("InvalidAttr","Attributes for '"+D+"' have open quote.",U(E,N));let H=M.value;if(N=M.index,H[H.length-1]==="/"){let ce=N-H.length;H=H.substring(0,H.length-1);let it=x(H,h);if(it!==!0)return T(it.err.code,it.err.msg,U(E,ce+it.err.line));S=!0}else if(Q){if(!M.tagClosed)return T("InvalidTag","Closing tag '"+D+"' doesn't have proper closing.",U(E,N));if(H.trim().length>0)return T("InvalidTag","Closing tag '"+D+"' can't have attributes or invalid starting.",U(E,L));if(g.length===0)return T("InvalidTag","Closing tag '"+D+"' has not been opened.",U(E,L));{let ce=g.pop();if(D!==ce.tagName){let it=U(E,ce.tagStartPos);return T("InvalidTag","Expected closing tag '"+ce.tagName+"' (opened in line "+it.line+", col "+it.col+") instead of closing tag '"+D+"'.",U(E,L))}g.length==0&&(P=!0)}}else{let ce=x(H,h);if(ce!==!0)return T(ce.err.code,ce.err.msg,U(E,N-H.length+ce.err.line));if(P===!0)return T("InvalidXml","Multiple possible root nodes found.",U(E,N));h.unpairedTags.indexOf(D)!==-1||g.push({tagName:D,tagStartPos:L}),S=!0}for(N++;N<E.length;N++)if(E[N]==="<"){if(E[N+1]==="!"){N++,N=p(E,N);continue}if(E[N+1]!=="?")break;if(N=d(E,++N),N.err)return N}else if(E[N]==="&"){let ce=I(E,N);if(ce==-1)return T("InvalidChar","char '&' is not expected.",U(E,N));N=ce}else if(P===!0&&!u(E[N]))return T("InvalidXml","Extra text at the end",U(E,N));E[N]==="<"&&N--}}}return S?g.length==1?T("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",U(E,g[0].tagStartPos)):!(g.length>0)||T("InvalidXml","Invalid '"+JSON.stringify(g.map(N=>N.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):T("InvalidXml","Start tag expected.",1)}function u(E){return E===" "||E===" "||E===`
`||E==="\r"}function d(E,h){let g=h;for(;h<E.length;h++)if(E[h]=="?"||E[h]==" "){let S=E.substr(g,h-g);if(h>5&&S==="xml")return T("InvalidXml","XML declaration allowed only at the start of the document.",U(E,h));if(E[h]=="?"&&E[h+1]==">"){h++;break}continue}return h}function p(E,h){if(E.length>h+5&&E[h+1]==="-"&&E[h+2]==="-"){for(h+=3;h<E.length;h++)if(E[h]==="-"&&E[h+1]==="-"&&E[h+2]===">"){h+=2;break}}else if(E.length>h+8&&E[h+1]==="D"&&E[h+2]==="O"&&E[h+3]==="C"&&E[h+4]==="T"&&E[h+5]==="Y"&&E[h+6]==="P"&&E[h+7]==="E"){let g=1;for(h+=8;h<E.length;h++)if(E[h]==="<")g++;else if(E[h]===">"&&(g--,g===0))break}else if(E.length>h+9&&E[h+1]==="["&&E[h+2]==="C"&&E[h+3]==="D"&&E[h+4]==="A"&&E[h+5]==="T"&&E[h+6]==="A"&&E[h+7]==="["){for(h+=8;h<E.length;h++)if(E[h]==="]"&&E[h+1]==="]"&&E[h+2]===">"){h+=2;break}}return h}let A='"',f="'";function y(E,h){let g="",S="",P=!1;for(;h<E.length;h++){if(E[h]===A||E[h]===f)S===""?S=E[h]:S!==E[h]||(S="");else if(E[h]===">"&&S===""){P=!0;break}g+=E[h]}return S===""&&{value:g,index:h,tagClosed:P}}let b=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function x(E,h){let g=s(E,b),S={};for(let P=0;P<g.length;P++){if(g[P][1].length===0)return T("InvalidAttr","Attribute '"+g[P][2]+"' has no space in starting.",Y(g[P]));if(g[P][3]!==void 0&&g[P][4]===void 0)return T("InvalidAttr","Attribute '"+g[P][2]+"' is without value.",Y(g[P]));if(g[P][3]===void 0&&!h.allowBooleanAttributes)return T("InvalidAttr","boolean attribute '"+g[P][2]+"' is not allowed.",Y(g[P]));let N=g[P][2];if(!v(N))return T("InvalidAttr","Attribute '"+N+"' is an invalid name.",Y(g[P]));if(Object.prototype.hasOwnProperty.call(S,N))return T("InvalidAttr","Attribute '"+N+"'isrepeated.",Y(g[P]));S[N]=1}return!0}function I(E,h){if(E[++h]===";")return-1;if(E[h]==="#")return(function(S,P){let N=/\d/;for(S[P]==="x"&&(P++,N=/[\da-fA-F]/);P<S.length;P++){if(S[P]===";")return P;if(!S[P].match(N))break}return-1})(E,++h);let g=0;for(;h<E.length;h++,g++)if(!(E[h].match(/\w/)&&g<20)){if(E[h]===";")break;return-1}return h}function T(E,h,g){return{err:{code:E,msg:h,line:g.line||g,col:g.col}}}function v(E){return o(E)}function O(E){return o(E)}function U(E,h){let g=E.substring(0,h).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function Y(E){return E.startIndex+E[1].length}let V=E=>i.includes(E)?"__"+E:E,Ee={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(E,h){return h},attributeValueProcessor:function(E,h){return h},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(E,h,g){return E},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:V};function Ne(E,h){if(typeof E!="string")return;let g=E.toLowerCase();if(i.some(S=>g===S.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${E}" is a reserved JavaScript keyword that could cause prototype pollution`);if(a.some(S=>g===S.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${E}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ee(E){return typeof E=="boolean"?{enabled:E,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof E=="object"&&E!==null?{enabled:E.enabled!==!1,maxEntitySize:Math.max(1,E.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,E.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,E.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,E.maxExpandedLength??1e5),maxEntityCount:Math.max(1,E.maxEntityCount??100),allowedTags:E.allowedTags??null,tagFilter:E.tagFilter??null}:ee(!0)}letGe=function(E){leth=Object.assign({},Ee,E),g=[{value:h.attributeNamePrefix,n
`);let h=new ut("!xml"),g=h,S="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let P=new nn(this.options.processEntities);for(let N=0;N<E.length;N++)if(E[N]==="<")if(E[N+1]==="/"){let L=xd(E,">",N,"Closing Tag is not closed."),Q=E.substring(N+2,L).trim();if(this.options.removeNSPrefix){let M=Q.indexOf(":");M!==-1&&(Q=Q.substr(M+1))}Q=kv(this.options.transformTagName,Q,"",this.options).tagName,g&&(S=this.saveTextToParentTag(S,g,this.readonlyMatcher));let D=this.matcher.getCurrentTag();if(Q&&this.options.unpairedTags.indexOf(Q)!==-1)throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${Q}>`);D&&this.options.unpairedTags.indexOf(D)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,g=this.tagsNodeStack.pop(),S="",N=L}else if(E[N+1]==="?"){let L=Dv(E,N,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(S=this.saveTextToParentTag(S,g,this.readonlyMatcher),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){let Q=new ut(L.tagName);Q.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(Q[":@"]=this.buildAttributesMap(L.tagExp,this.matcher,L.tagName)),this.addChild(g,Q,this.readonlyMatcher,N)}N=L.closeIndex+1}else if(E.substr(N+1,3)==="!--"){let L=xd(E,"-->",N+4,"Comment is not closed.");if(this.options.commentPropName){let Q=E.substring(N+4,L-2);S=this.saveTextToParentTag(S,g,this.readonlyMatcher),g.add(this.options.commentPropName,[{[this.options.textNodeName]:Q}])}N=L}else if(E.substr(N+1,2)==="!D"){let L=P.readDocType(E,N);this.docTypeEntities=L.entities,N=L.i}else if(E.substr(N+1,2)==="!["){let L=xd(E,"]]>",N,"CDATA is not closed.")-2,Q=E.substring(N+9,L);S=this.saveTextToParentTag(S,g,this.readonlyMatcher);let D=this.parseTextData(Q,g.tagname,this.readonlyMatcher,!0,!1,!0,!0);D==null&&(D=""),this.options.cdataPropName?g.add(this.options.cdataPropName,[{[this.options.textNodeName]:Q}]):g.add(this.options.textNodeName,D),N=L+2}else{let L=Dv(E,N,this.options.removeNSPrefix);if(!L){let Is=E.substring(Math.max(0,N-50),Math.min(E.length,N+50));throw new Error(`readTagExp returned undefined at position ${N}. Context: "${Is}"`)}let Q=L.tagName,D=L.rawTagName,M=L.tagExp,H=L.attrExpPresent,ce=L.closeIndex;if({tagName:Q,tagExp:M}=kv(this.options.transformTagName,Q,M,this.options),this.options.strictReservedNames&&(Q===this.options.commentPropName||Q===this.options.cdataPropName||Q===this.options.textNodeName||Q===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${Q}`);g&&S&&g.tagname!=="!xml"&&(S=this.saveTextToParentTag(S,g,this.readonlyMatcher,!1));let it=g;it&&this.options.unpairedTags.indexOf(it.tagname)!==-1&&(g=this.tagsNodeStack.pop(),this.matcher.pop());let Xe=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(Xe=!0,Q[Q.length-1]==="/"?(Q=Q.substr(0,Q.length-1),M=Q):M=M.substr(0,M.length-1),H=Q!==M);let nt,yt=null,oa={};nt=GTe(D),Q!==h.tagname&&this.matcher.push(Q,{},nt),Q!==M&&H&&(yt=this.buildAttributesMap(M,this.matcher,Q),yt&&(oa=$Te(yt,this.options))),Q!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let sn=N;if(this.isCurrentNodeStopNode){let Is="";if(Xe)N=L.closeIndex;else if(this.options.unpairedTags.indexOf(Q)!==-1)N=L.closeIndex;else{let Mv=this.readStopNodeData(E,D,ce+1);if(!Mv)throw new Error(`Unexpected end of ${D}`);N=Mv.i,Is=Mv.tagContent}let Fv=new ut(Q);yt&&(Fv[":@"]=yt),Fv.add(this.options.textNodeName,Is),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(g,Fv,this.readonlyMatcher,sn)}else{if(Xe){({tagName:Q,tagExp:M}=kv(this.options.transformTagName,Q,M,this.options));let Is=new ut(Q);yt&&(Is[":@"]=yt),this.addChild(g,Is,this.readonlyMatcher,sn),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(this.options.unpairedTags.indexOf(Q)!==-1){let Is=new ut(Q);yt&&(Is[":@"]=yt),this.addChild(g,Is,this.readonlyMatcher,sn),this.matcher.pop(),this.isCurrentNodeStopNode=!1,N=L.closeIndex;continue}{letIs=newut(Q);if(this.tagsNodeStack.length>this.options.maxNestedTags)thrownew
`);function UAt(t){return nj.parse(t,!0)}});var KT=C(JT=>{"use strict";var qAt=MIe(),$At=/[&<>"]/g,GAt={"&":"&","<":"<",">":">",'"':"""};function HAt(t){return t.replace($At,e=>GAt[e])}var zAt=/[&"'<>\r\n\u0085\u2028]/g,VAt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function YAt(t){return t.replace(zAt,e=>VAt[e])}var WT=class{value;constructor(e){this.value=e}toString(){return YAt(""+this.value)}},oj=class t{name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new WT(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(i=>{i.withName(n),this.c(i)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),i=new t(n);o.map(a=>{i.c(a)}),this.c(i)}}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}="${HAt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};JT.parseXML=qAt.parseXML;JT.XmlNode=oj;JT.XmlText=WT});var UIe,qIe,$Ie,hA,XT=_(()=>{UIe=B(KT());Hs();lt();qIe=B(_e()),$Ie=B(Jr());ed();JY();hA=class extends Vn{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Xp(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=me.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){let l={},u=Object.keys(o)[0];return o[u].isBlobSchema()?l[u]=r:l[u]=this.read(o[u],r),l}let a=(this.serdeContext?.utf8Encoder??$Ie.toUtf8)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=me.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 a=n.getValueSchema(),c=[],l=a.getMergedTraits().xmlName??"member",u=o?r:(r[0]??r)[l];if(u==null)return c;let d=Array.isArray(u)?u:[u];for(let p of d)c.push(this.readSchema(a,p));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),l;o?l=Array.isArray(r)?r:[r]:l=Array.isArray(r.entry)?r.entry:[r.entry];let u=a.getMergedTraits().xmlName??"key",d=c.getMergedTraits().xmlName??"value";for(let p of l){let A=p[u],f=p[d];i[A]=this.readSchema(c,f)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new Nh(r,i));for(let[l,u]of n.structIterator()){let d=u.getMergedTraits(),p=d.httpPayload?d.xmlName??u.getName():u.getMemberTraits().xmlName??l;a&&c.mark(p),r[p]!=null&&(i[l]=this.readSchema(u,r[p]))}return a&&c.writeUnknown(),i}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,UIe.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),(0,qIe.getValueFromTextNode)(o)}return{}}}});var GIe,HIe,eI,ij=_(()=>{Hs();lt();gs();GIe=B(_e()),HIe=B(Kr());ed();eI=class extends Vn{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=me.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||rinstanceofUint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??HIe.toBase64)(r)));elseif(s.isBooleanSchema()||
Reference:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},Qft=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:i}=t,{ssoClient:a}=t,c=kP.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!i){let u=(await kP.parseKnownFiles(t))[c];if(!u)throw new Zi.CredentialsProviderError(`Profile ${c} was not found.`,{logger:t.logger});if(!Swe(u))throw new Zi.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(u?.sso_session){let x=(await kP.loadSsoSessionData(t))[u.sso_session],I=` configurations in profile ${c} and sso-session ${u.sso_session}`;if(s&&s!==x.sso_region)throw new Zi.CredentialsProviderError("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==x.sso_start_url)throw new Zi.CredentialsProviderError("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});u.sso_region=x.sso_region,u.sso_start_url=x.sso_start_url}let{sso_start_url:d,sso_account_id:p,sso_region:A,sso_role_name:f,sso_session:y}=Bwe(u,t.logger);return wwe({ssoStartUrl:d,ssoSession:y,ssoAccountId:p,ssoRegion:A,ssoRoleName:f,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Zi.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return wwe({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};LP.fromSSO=Qft;LP.isSsoProfile=Swe;LP.validateSsoProfile=Bwe});function _ft(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function vft(t){return{schemeId:"smithy.api#noAuth"}}var PI,Rwe,Nwe,Twe,qj=_(()=>{Ur();PI=B(Fn()),Rwe=async(t,e,r)=>({operation:(0,PI.getSmithyContext)(e).operation,region:await(0,PI.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});Nwe=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(vft(t)):e.push(_ft(t)),e},Twe=t=>{let e=lc(t);return Object.assign(e,{authSchemePreference:(0,PI.normalizeProvider)(t.authSchemePreference??[])})}});var Pwe,Qwe,$j=_(()=>{Pwe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),Qwe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Mwe,jn,_we,CA,Lh,id,ea,MP,Gj,vwe,Dwe,kwe,Hj,zj,Yn,Vj,OP,FP,Lwe,Owe,Fwe,Dft,Uwe,qwe=_(()=>{Mwe="required",jn="argv",_we="isSet",CA="booleanEquals",Lh="error",id="endpoint",ea="tree",MP="PartitionResult",Gj="stringEquals",vwe={[Mwe]:!0,default:!1,type:"boolean"},Dwe={[Mwe]:!1,type:"string"},kwe={ref:"Endpoint"},Hj={fn:CA,[jn]:[{ref:"UseFIPS"},!0]},zj={fn:CA,[jn]:[{ref:"UseDualStack"},!0]},Yn={},Vj={fn:"getAttr",[jn]:[{ref:MP},"name"]},OP={fn:CA,[jn]:[{ref:"UseFIPS"},!1]},FP={fn:CA,[jn]:[{ref:"UseDualStack"},!1]},Lwe={fn:"getAttr",[jn]:[{ref:MP},"supportsFIPS"]},Owe={fn:CA,[jn]:[!0,{fn:"getAttr",[jn]:[{ref:MP},"supportsDualStack"]}]},Fwe=[{ref:"Region"}],Dft={version:"1.0",parameters:{UseDualStack:vwe,UseFIPS:vwe,Endpoint:Dwe,Region:Dwe},rules:[{conditions:[{fn:_we,[jn]:[kwe]}],rules:[{conditions:[Hj],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Lh},{rules:[{conditions:[zj],error:"In
`),URe=!0)),new WI.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),NW.fromEnv(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:i}=t;if(!r&&!n&&!s&&!o&&!i)throw new WI.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=await Promise.resolve().then(()=>B(Uj()));return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>B(FRe()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>B(xW()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>B(SW()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Fgt(t))()),async()=>{throw new WI.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],qRe),$gt=t=>t?.expiration!==void 0,qRe=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;SQ.credentialsTreatedAsExpired=qRe;SQ.credentialsWillNeedRefresh=$gt;SQ.defaultProvider=qgt});var KRe=C(DQ=>{"use strict";Object.defineProperty(DQ,"__esModule",{value:!0});DQ.ruleSet=void 0;var JRe="required",Qt="fn",_t="argv",Jn="ref",NA="url",TA="properties",PA="headers",$Re=!0,GRe="isSet",QA="booleanEquals",Uh="error",ot="endpoint",ra="tree",na="PartitionResult",HRe={[JRe]:!0,default:!1,type:"boolean"},zRe={[JRe]:!1,type:"string"},VRe={[Jn]:"Endpoint"},tn={[Qt]:QA,[_t]:[{[Jn]:"UseFIPS"},!0]},rn={[Qt]:QA,[_t]:[{[Jn]:"UseDualStack"},!0]},qh={},BQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws"]},wn={[Qt]:QA,[_t]:[{[Jn]:"UseFIPS"},!1]},Sn={[Qt]:QA,[_t]:[{[Jn]:"UseDualStack"},!1]},Pl={[NA]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[TA]:{},[PA]:{}},fd={[NA]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[TA]:{},[PA]:{}},Ql={[NA]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[TA]:{},[PA]:{}},hd={[NA]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[TA]:{},[PA]:{}},RQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-us-gov"]},NQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-cn"]},TQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-iso"]},PQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-iso-b"]},QQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-iso-e"]},_Q={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-iso-f"]},vQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:na},"name"]},"aws-eusc"]},YRe={[Qt]:"getAttr",[_t]:[{[Jn]:na},"supportsFIPS"]},jRe={[Qt]:QA,[_t]:[!0,{[Qt]:"getAttr",[_t]:[{[Jn]:na},"supportsDualStack"]}]},WRe=[{[Jn]:"Region"}],Ggt={version:"1.0",parameters:{UseDualStack:HRe,UseFIPS:HRe,Endpoint:zRe,Region:zRe},rules:[{conditions:[{[Qt]:GRe,[_t]:[VRe]}],rules:[{conditions:[tn],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Uh},{rules:[{conditions:[rn],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Uh},{endpoint:{[NA]:VRe,[TA]:qh,[PA]:qh},type:ot}],type:ra}],type:ra},{rules:[{conditions:[{[Qt]:GRe,[_t]:WRe}],rules:[{conditions:[{[Qt]:"aws.partition",[_t]:WRe,assign:na}],rules:[{conditions:[BQ,wn,Sn],endpoint:Pl,type:ot},{conditions:[BQ,wn,rn],endpoint:fd,type:ot},{conditions:[BQ,tn,Sn],endpoint:Ql,type:ot},{conditions:[BQ,tn,rn],endpoint:hd,type:ot},{conditions:[RQ,wn,Sn],endpoint:Pl,type:ot},{conditions:[RQ,wn,rn],endpoint:fd,type:ot},{conditions:[RQ,t
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionq7(t){process.exitCode=TO.Failure,Mm(t)}functionou(){returnprocess.env.RUNNER_DEBUG==="1"}functionk(t){wd("debug",{},t)}functionMm(t,e={}){wd("error",Uv(e),tinstanceofError?t.toString():t)}functionRr(t,e={}){wd("warning",Uv(e),tinstanceofError?t.toString():t)}functionUe(t){process.stdout.write(t+M7.EOL)}functionaGe(t){$v("group",t)}functioncGe(){$v("endgroup")}functionuy(t,e){returniGe(this,void0,void0,function*(){aGe(t);letr;try{r=yielde()}finally{cGe()}returnr})}functionXd(t,e){if(process.env.GITHUB_STATE||"")returnH3("STATE",z3(t,e));wd("save-state",{name:t},Ll(e))}function$7(t){returnprocess.env[`STATE_${t}`]||""}varg0=B(require("fs"),1),gH=B(require("os"),1),yH=B(require("path"),1);varTs=B(require("fs"),1);varsze=B(WO(),1);varPw=B(require("os"),1),iu=B(require("path"),1);varFo=B(WO(),1);var_te=require("assert");varQte=function(t,e,r,n){functions(o){returnoinstanceofr?o:newr(function(i){i(o)})}returnnew(r||(r=Promise))(function(o,i){functiona(u){try{l(n.next(u))}catch(d){i(d)}}functionc(u){try{l(n.throw(u))}catch(d){i(d)}}functionl(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};vardDt=process.platform==="win32",pDt=process.platform==="darwin";functionJO(t,e,r,n){returnQte(this,void0,void0,function*(){if(r=Fo.clean(r)||r,n=n||Pw.arch(),k(`Caching tool ${e}${r}${n}`),k(`source dir: ${t}`),!Ts.statSync(t).isDirectory())thrownewError("sourceDir is not a directory");lets=yieldaze(e,r,n);for(letoofTs.readdirSync(t)){leti=iu.join(t,o);yieldP7(i,s,{recursive:!0})}returncze(e,r,n),s})}functionvte(t,e,r){if(!t)thrownewError("toolName parameter is required");if(!e)thrownewError("versionSpec parameter is required");if(r=r||Pw.arch(),!Dte(e)){lets=ize(t,r);e=lze(s,e)}letn="";if(e){e=Fo.clean(e)||"";lets=iu.join(Qw(),t,e,r);k(`checking cache: ${s}`),Ts.existsSync(s)&&Ts.existsSync(`${s}.complete`)?(k(`Found tool in cache ${t}${e}${r}`),n=s):k("not found")}returnn}functionize(t,e){letr=[];e=e||Pw.arch();letn=iu.join(Qw(),t);if(Ts.existsSync(n)){lets=Ts.readdirSync(n);for(letoofs)if(Dte(o)){leti=iu.join(n,o,e||"");Ts.existsSync(i)&&Ts.existsSync(`${i}.complete`)&&r.push(o)}}returnr}functionaze(t,e,r){returnQte(this,void0,void0,function*(){letn=iu.join(Qw(),t,Fo.clean(e)||e,r||"");k(`destination ${n}`);lets=`${n}.complete`;returnyieldbO(n),yieldbO(s),yieldKd(n),n})}functioncze(t,e,r){lets=`${iu.join(Qw(),t,Fo.clean(e)||e,r||"")}.complete`;Ts.writeFileSync(s,""),k("finished caching tool")}functionDte(t){lete=Fo.clean(t)||"";k(`isExplicit: ${e}`);letr=Fo.valid(e)!=null;returnk(`explicit? ${r}`),r}functionlze(t,e){letr="";k(`evaluating ${t.length} versions`),t=t.sort((n,s)=>Fo.gt(n,s)?1:-1);for(letn=t.length-1;n>=0;n--){lets=t[n];if(Fo.satisfies(s,e)){r=s;break}}returnr?k(`matched: ${r}`):k("match not found"),r}functionQw(){lett=process.env.RUNNER_TOOL_CACHE||"";return(0,_te.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}varJE=B(require("path"),1);varzm=B(require("fs"),1);functionKO(t){lete={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};returnt&&(typeoft.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,k(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeoft.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,k(`implicitDescendants '${e.implicitDescendants}'`)),typeoft.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,k(`matchDirectories '${e.matchDirectories}'`)),typeoft.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,k(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeoft.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,k(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}varLw=B(require("path"),1);varqm=B(require("path"),1),au=B(require("assert"),1),cu=process.platform==="win32";functi
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new Iy(o));return n.searchPaths.push(...ZO(n.patterns)),n})}static stat(e,r,n){return sF(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield zm.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){k(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw o}else s=yield zm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield zm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(i=>i===o)){k(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${o}'`);return}n.push(o)}return s})}};var Mze=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function are(t,e){return Mze(this,void 0,void 0,function*(){return yield kw.create(t,e)})}var Kw=B(require("crypto"),1),jm=B(require("fs"),1),sp=B(require("path"),1),Xne=B(Jne(),1),Zne=B(require("util"),1);var Py;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Py||(Py={}));var is;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(is||(is={}));var oo;(function(t){t.GNU="gnu",t.BSD="bsd"})(oo||(oo={}));var Ww=2,Jw=5e3,wF=5e3,SF=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Kne=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Qy="cache.tar",BF="manifest.txt",bkt=10*Math.pow(1024,3);var Ym=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},Lje=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(i){return new Promise(function(a,c){i=t[o](i),s(a,c,i.done,i.value)})}}function s(o,i,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},i)}},Oje="1.0";function _y(){return Ym(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=sp.join(n,"actions","temp")}let r=sp.join(e,Kw.randomUUID());return yield Kd(r),r})}function Ia(t){return jm.statSync(t).size}function RF(t){return Ym(this,void 0,void 0,function*(){var e,r,n,s,o;let i=[],a=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),c=yield are(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=Lje(c.globGenerator()),d;d=yield u.next(),e=d.done,!e;l=!0){s=d.value,l=!1;let A=sp.relative(a,s).replace(new RegExp(`\\${sp.sep}`,"g"),"/");k(`Matched:${A}`),A===""?i.push("."):i.push(`${A}`)}}catch(p){r={error:p}}finally{try{!l&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return i})}function vy(t){return Ym(this,void 0,void 0,function*(){return Zne.promisify(jm.unlink)(t)})}function ese(t){return Ym(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),k(`Checking${e}${r.join(" ")}`);try{yield su(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){k(s.message)}return n=n.trim(),k(n),n})}function Dy(){return Ym(this,void 0,void 0,function*(){let t=yield ese("zstd",["--quiet"]),e=Xne.clean(t);return k(`zstdversion:${e}`),t===""?is.Gzip:is.ZstdWithoutLong})}function pu(t){return t===is.Gzip?Py.Gzip:Py.Zstd}function tse(){return Ym(this,void 0,void 0,function*(){return jm.existsSync(SF)?SF:(yield ese("tar")).toLowerCase().includes("gnu tar")?Ns("tar"):""})}function NF(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function Wm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Oje),Kw.createHash("sha256").update(n.join("|")).digest("hex")}function rse(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Bf=B(require("fs"),1),Tle=require("url");var ba=class extends Error{constructor(e){super(e),this.name="AbortError"}};var nse=require("node:os"),sse=B(require("node:util"),1),ose=B(require("node:process"),1);function ise(t,...e){ose.default.stderr.write(`${sse.default.format(t,...e)}${nse.EOL}`)}var ase=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,lse,TF=[],PF=[],Zw=[];ase&&QF(ase);var use=Object.assign(t=>dse(t),{enable:QF,enabled:_F,disable:Fje,log:ise});function QF(t){lse=t,TF=[],PF=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?PF.push(r.substring(1)):TF.push(r);for(let r of Zw)r.enabled=_F(r.namespace)}function _F(t){if(t.endsWith("*"))return!0;for(let e of PF)if(cse(t,e))return!1;for(let e of TF)if(cse(t,e))return!0;return!1}function cse(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let p=[],A="";for(let f of e)f==="*"&&A==="*"||(A=f,p.push(f));r=p.join("")}let n=0,s=0,o=r.length,i=t.length,a=-1,c=-1;for(;n<i&&s<o;)if(r[s]==="*"){if(a=s,s++,s===o)return!0;for(;t[n]!==r[s];)if(n++,n===i)return!1;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===i)return!1;for(;t[n]!==r[s];)if(n++,n===i)return!1;c=n,n++,s++;continue}else return!1;let l=n===t.length,u=s===r.length,d=s===r.length-1&&r[s]==="*";return l&&(u||d)}function Fje(){let t=lse||"";return QF(""),t}function dse(t){let e=Object.assign(r,{enabled:_F(t),destroy:Mje,log:use.log,namespace:t,extend:Uje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return Zw.push(e),e}function Mje(){let t=Zw.indexOf(this);return t>=0?(Zw.splice(t,1),!0):!1}function Uje(t){let e=dse(`${this.namespace}:${t}`);return e.log=this.log,e}var Jm=use;var vF=["verbose","info","warning","error"],pse={verbose:400,info:300,warning:200,error:100};function Ase(t,e){e.log=(...r)=>{t.log(...r)}}function mse(t){return vF.includes(t)}function eS(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Jm(t.namespace);s.log=(...u)=>{Jm.log(...u)};function o(u){if(u&&!mse(u))throw new Error(`Unknownloglevel'${u}'.Acceptablevalues:${vF.join(",")}`);n=u;let d=[];for(let p of e)i(p)&&d.push(p.namespace);Jm.enable(d.join(","))}r&&(mse(r)?o(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${vF.join(", ")}.`));function i(u){return!!(n&&pse[u.level]<=pse[n])}function a(u,d){let p=Object.assign(u.extend(d),{level:d});if(Ase(u,p),i(p)){let A=Jm.disable();Jm.enab
${zje.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sS(t){return t instanceof as?!0:ip(t)&&t.name==="RestError"}function Ps(t,e){return Buffer.from(t,e)}var oS=B(require("node:http"),1),iS=B(require("node:https"),1),FF=B(require("node:zlib"),1),Cse=require("node:stream");var qo=ky("ts-http-runtime");var Vje={};function Ly(t){return t&&typeof t.pipe=="function"}function Ese(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ise(t){return t&&typeof t.byteLength=="number"}var aS=class extends Cse.Transform{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}},MF=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ba("The operation was aborted. Request has already been canceled.");n=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let l=new ki;qo.info(`requestto'${l.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),i=o?.includes("gzip")||o?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=Jje(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,y=new aS(f);y.on("error",b=>{qo.error("Error in upload progress",b)}),Ly(a)?a.pipe(y):y.end(a),a=y}let l=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Yje(l),p={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),p;c=i?jje(l,u):l;let A=e.onDownloadProgress;if(A){let f=new aS(A);f.on("error",y=>{qo.error("Error in download progress",y)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=c:p.bodyAsText=await Wje(c),p}finally{if(e.abortSignal&&n){let l=Promise.resolve();Ly(a)&&(l=Ese(a));let u=Promise.resolve();Ly(c)&&(u=Ese(c)),Promise.all([l,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(d=>{qo.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let a={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((c,l)=>{let u=o?oS.default.request(a,c):iS.default.request(a,c);u.once("error",d=>{l(new as(d.message,{code:d.code??as.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new ba("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),l(d)}),n&&Ly(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Ise(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qo.error("Unrecognized body type",n),l(new as("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?oS.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new oS.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return iS.default.globalAgent;let s=e.tlsSettings??Vje,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(qo.info("No cached TLS Agent exist, creating a new Agent"),o=new iS.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function Yje(t){let e=io();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(
`;return e}function RJe(t){return t instanceof Uint8Array?t.byteLength:PS(t)?t.size===-1?void 0:t.size:void 0}function NJe(t){let e=0;for(let r of t){let n=RJe(r);if(n===void 0)return;e+=n}return e}async function TJe(t,e,r){let n=[Ps(`--${r}`,"utf-8"),...e.flatMap(o=>[Ps(`\r
`,"utf-8")],s=NJe(n);s&&t.headers.set("Content-Length",s),t.body=await Soe(n)}var My="multipartPolicy",PJe=70,QJe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function _Je(t){if(t.length>PJe)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!QJe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function _S(){return{name:My,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(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,o,i]=s;if(i&&r&&i!==r)throw new Error(`Multipartboundarywasspecifiedas${i}intheheader,butgot${r}intherequestbody`);return r??=i,r?_Je(r):r=SJe(),t.headers.set("Content-Type",`${o};boundary=${r}`),await TJe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function vS(){return nS()}var Boe=eS({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),oMt=Boe.logger;function Sa(t){return Boe.createClientLogger(t)}var Ba=Sa("core-rest-pipeline");function nM(t={}){return lS({logger:Ba.info,...t})}var sM=uS;function oM(t={}){return dS(t)}var DS=B(require("node:os"),1),kS=B(require("node:process"),1);function Roe(){return"User-Agent"}async function Noe(t){if(kS.default&&kS.default.versions){let e=`${DS.default.type()}${DS.default.release()};${DS.default.arch()}`,r=kS.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})`)}}var LS="1.22.2";function UJe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Toe(){return Roe()}async function OS(t){let e=new Map;e.set("core-rest-pipeline",LS),await Noe(e);let r=UJe(e);return t?`${t}${r}`:r}var Poe=Toe(),Qoe="userAgentPolicy";function iM(t={}){let e=OS(t.userAgentPrefix);return{name:Qoe,async sendRequest(r,n){return r.headers.has(Poe)||r.headers.set(Poe,await e),n(r)}}}var uo=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aM(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,i)=>{function a(){i(new uo(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),o(u)},u=>{c(),i(u)})}catch(u){i(u)}n?.addEventListener("abort",l)})}var zJe="The delay was aborted.";function Uy(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aM(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??zJe})}function mu(t){if(ip(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`Unknownerror${e}`}}function _oe(t){return ip(t)}function nf(){return op()}var Ct=lp;var voe=Symbol("rawContent");function lM(t){return typeof t[voe]=="function"}function Doe(t){return lM(t)?t[voe]():t}var FS=My;function uM(){let t=_S();return{name:FS,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)lM(n.body)&&(n.body=Doe(n.body));return t.sendRequest(e,r)}}}var dM=pS;function pM(){return AS()}function AM(t={}){return hS(t)}function mM(){return gS()}function fu(t){return XF(t)}function fM(t,e){return RS(t,e)}var koe="setClientRequestIdPolicy";function hM(t="x-ms-client-request-id"){return{name:koe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function gM(t){return NS(t)}function yM(t){return TS(t)}var sf={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Loe(t={}){let e=new EM(t.parentContext);return t.span&&(e=e.setValue(sf.span,t.span)),t.namespace&&(e=e.setValue(sf.namespace,t.namespace)),e}var EM=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[o]!=="\r";o++)c+=t[o];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),o--),!f4e(c)){let d;return c.trim().length===0?d="Invalid space after '<'.":d="Tag '"+c+"' is an invalid name.",Nr("InvalidTag",d,cs(t,o))}let l=u4e(t,o);if(l===!1)return Nr("InvalidAttr","Attributes for '"+c+"' have open quote.",cs(t,o));let u=l.value;if(o=l.index,u[u.length-1]==="/"){let d=o-u.length;u=u.substring(0,u.length-1);let p=Eie(u,e);if(p===!0)n=!0;else return Nr(p.err.code,p.err.msg,cs(t,d+p.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Nr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",cs(t,i));if(r.length===0)return Nr("InvalidTag","Closing tag '"+c+"' has not been opened.",cs(t,i));{let d=r.pop();if(c!==d.tagName){let p=cs(t,d.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+c+"'.",cs(t,i))}r.length==0&&(s=!0)}}else return Nr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",cs(t,o));else{let d=Eie(u,e);if(d!==!0)return Nr(d.err.code,d.err.msg,cs(t,o-u.length+d.err.line));if(s===!0)return Nr("InvalidXml","Multiple possible root nodes found.",cs(t,o));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:i}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=yie(t,o);continue}else if(t[o+1]==="?"){if(o=gie(t,++o),o.err)return o}else break;else if(t[o]==="&"){let d=A4e(t,o);if(d==-1)return Nr("InvalidChar","char '&' is not expected.",cs(t,o));o=d}else if(s===!0&&!hie(t[o]))return Nr("InvalidXml","Extra text at the end",cs(t,o));t[o]==="<"&&o--}}else{if(hie(t[o]))continue;return Nr("InvalidChar","char '"+t[o]+"' is not expected.",cs(t,o))}if(n){if(r.length==1)return Nr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",cs(t,r[0].tagStartPos));if(r.length>0)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}function hie(t){return t===" "||t===" "||t===`
`||t==="\r"}function gie(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Nr("InvalidXml","XML declaration allowed only at the start of the document.",cs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function yie(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){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<t.length;e++)if(t[e]==="<")r++;else if(t[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<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var c4e='"',l4e="'";function u4e(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===c4e||t[e]===l4e)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var d4e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Eie(t,e){let r=WS(t,d4e),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Xy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Xy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Nr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Xy(r[s]));let o=r[s][2];if(!m4e(o))return Nr("InvalidAttr","Attribute '"+o+"' is an invalid name.",Xy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Nr("InvalidAttr","Attribute '"+o+"' is repeated.",Xy(r[s]))}return!0}function p4e(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function A4e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,p4e(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Nr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function m4e(t){return OM(t)}function f4e(t){return OM(t)}function cs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Xy(t){return t.startIndex+t[1].length}var Cie={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",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"},Iie={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",tho
`);let e=new Ds("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new tE(s.processEntities),i=t.length;for(let a=0;a<i;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=uf(t,">",a,"Closing Tag is not closed."),d=t.substring(a+2,u).trim();if(s.removeNSPrefix){let A=d.indexOf(":");A!==-1&&(d=d.substr(A+1))}d=zM(s.transformTagName,d,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&s.unpairedTagsSet.has(d))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${d}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(l===63){let u=VM(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),o.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let p=new Ds(u.tagName);p.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=uf(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let d=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:d}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=o.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=uf(t,"]]>",a,"CDATA is not closed.")-2,d=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:d}]):r.add(s.textNodeName,p),a=u+2}else{let u=VM(t,a,s.removeNSPrefix);if(!u){let U=t.substring(Math.max(0,a-50),Math.min(i,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${U}"`)}let d=u.tagName,p=u.rawTagName,A=u.tagExp,f=u.attrExpPresent,y=u.closeIndex;if({tagName:d,tagExp:A}=zM(s.transformTagName,d,A,s),s.strictReservedNames&&(d===s.commentPropName||d===s.cdataPropName||d===s.textNodeName||d===s.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let b=r;b&&s.unpairedTagsSet.has(b.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let x=!1;A.length>0&&A.lastIndexOf("/")===A.length-1&&(x=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),A=d):A=A.substr(0,A.length-1),f=d!==A);let I=null,T={},v;v=F4e(p),d!==e.tagname&&this.matcher.push(d,{},v),d!==A&&f&&(I=this.buildAttributesMap(A,this.matcher,d),I&&(T=O4e(I,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let O=a;if(this.isCurrentNodeStopNode){let U="";if(x)a=u.closeIndex;else if(s.unpairedTagsSet.has(d))a=u.closeIndex;else{let V=this.readStopNodeData(t,p,y+1);if(!V)throw new Error(`Unexpected end of ${p}`);a=V.i,U=V.tagContent}let Y=new Ds(d);I&&(Y[":@"]=I),Y.add(s.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Y,this.readonlyMatcher,O)}else{if(x){({tagName:d,tagExp:A}=zM(s.transformTagName,d,A,s));let U=new Ds(d);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let U=new Ds(d);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let U=new Ds(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,O),r=U}n="",a=y}}}elsen+=t[a];returne.child};functionH
`}),n}getCanonicalizedResourceString(e){let r=uB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=dB(e.url),o={};if(s){let i=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();o[c]=s[a],i.push(c)}i.sort();for(let a of i)n+=`
${a}:${decodeURIComponent(o[a])}`}return n}};var hr=class extends yp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new iE(e,r,this)}computeHMACSHA256(e){return(0,Xie.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Hr=Sa("storage-common");var zo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(zo||(zo={}));var Cu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:zo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},gKe=new uo("The operation was aborted."),aE=class extends Pa{retryOptions;constructor(e,r,n=Cu){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Cu.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Cu.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Cu.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Cu.maxRetryDelayInMs):Cu.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Cu.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Cu.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=lB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Eu(s.url,Gc.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if(Hr.info(`RetryPolicy:=====>Try=${n}${o?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,i))return i;r=r||!o&&i.status===404}catch(a){if(Hr.error(`RetryPolicy:Caughterror,message:${a.message},code:${a.code}`),!this.shouldRetry(o,n,i,a))throw a}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Hr.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of o)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return Hr.info(`RetryPolicy:Networkerror${i}found,willretry.`),!0}if(n||s){let i=n?n.status:s?s.statusCode:0;if(!e&&i===404)return Hr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return Hr.info(`RetryPolicy:Willretryforstatuscode${i}.`),!0}if(n&&n?.status>=400){let i=n.headers.get(Qe.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Hr.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 zo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case zo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Hr.info(`RetryPolicy:Delayfor${s}ms`),pB(s,n,gKe)}};var cE=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new aE(e,r,this.retryOptions)}};var yKe="storageBrowserPolicy";function Zie(){return{name:yKe,async sendRequest(t,e){return Ct||((t.method==="GET"||t.method==="HEAD")&&(t.url=Eu(t.url,Gc.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Qe.COOKIE),t.headers.delete(Qe.CONTENT_LENGTH)),e(t)}}}var EKe="StorageCorrectContentLengthPolicy";function eae(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:EKe,async send
`}),a}function s(o){let i=uB(o.url)||"/",a="";a+=`/${t.accountName}${i}`;let c=dB(o.url),l={};if(c){let u=[];for(let d in c)if(Object.prototype.hasOwnProperty.call(c,d)){let p=d.toLowerCase();l[p]=c[d],u.push(p)}u.sort();for(let d of u)a+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new qi(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}}function N9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function T9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ui(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(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function P9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function Q9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function _9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function v9e(t,e){if(t=Rp(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=Ya.parse(t.permissions.toString()).toString():s=ja.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Bp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ui(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new qi(t.version,i,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}}function Bp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Rp(t){let e=t.version?t.version:hB;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}var IE=class{_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=nf()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Li||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Li||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 de.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ie(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!==Li||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Li||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 de.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ie(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!==Li||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Li||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints: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"}};wf.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Qp=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Qp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QE=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var P5e=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},j$=class{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);Ue(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function fle(t,e,r){return P5e(this,void 0,void 0,function*(){var n;let s=new Xc(t),o=s.getBlockBlobClient(),i=new j$((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),k(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield o.uploadFile(e,a);if(c._response.status>=400)throw new IR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Rr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{i.stopDisplayTimer()}})}var gle=B(require("buffer"),1),Wa=B(require("fs"),1),yle=B(require("stream"),1),Ele=B(require("util"),1);var bR=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function xR(t){return t?t>=200&&t<300:!1}function Q5e(t){return t?t>=500:!0}function _5e(t){return t?[fr.BadGateway,fr.ServiceUnavailable,fr.GatewayTimeout].includes(t):!1}function v5e(t){return bR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function hle(t,e,r){return bR(this,arguments,void 0,function*(n,s,o,i=Ww,a=Jw,c=void 0){let l="",u=1;for(;u<=i;){let d,p,A=!1;try{d=yield s()}catch(f){c&&(d=c(f)),A=!0,l=f.message}if(d&&(p=o(d),!Q5e(p)))return d;if(p&&(A=_5e(p),l=`Cache service responded with ${p}`),k(`${n} - Attempt ${u} of ${i} failed with error: ${l}`),!A){k(`${n} - Error is not retryable`);break}yield v5e(a),u++}throw Error(`${n} failed: ${l}`)})}function _E(t,e){return bR(this,arguments,void 0,function*(r,n,s=Ww,o=Jw){return yield hle(r,n,i=>i.statusCode,s,o,i=>{if(i instanceof ga)return{statusCode:i.statusCode,result:null,headers:{},error:i}})})}function Sf(t,e){return bR(this,arguments,void 0,function*(r,n,s=Ww,o=Jw){return yield hle(r,n,i=>i.message.statusCode,s,o)})}var Jo=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function D5e(t,e){return Jo(this,void 0,void 0,function*(){yield Ele.promisify(yle.pipeline)(t.message,e)})}var wR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Othercacheswithsimilarkey:`);for(let a of o?.artifactCaches||[])k(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function X$(t,e,r){return Fs(this,void 0,void 0,function*(){let n=new Tle.URL(t),s=xle(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Ile(t,e,s):s.concurrentBlobDownloads?yield Cle(t,e,s):yield SR(t,e):yield SR(t,e)})}function Qle(t,e,r){return Fs(this,void 0,void 0,function*(){let n=K$(),s=Wm(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield _E("reserveCache",()=>Fs(this,void 0,void 0,function*(){return n.postJson(DE("caches"),o)}))})}function Nle(t,e){return`bytes${t}-${e}/*`}function $5e(t,e,r,n,s){return Fs(this,void 0,void 0,function*(){k(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${Nle(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":Nle(n,s)},i=yield Sf(`uploadChunk(start:${n},end:${s})`,()=>Fs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!xR(i.message.statusCode))throw new Error(`Cacheservicerespondedwith${i.message.statusCode}duringuploadchunk.`)})}function G5e(t,e,r,n){return Fs(this,void 0,void 0,function*(){let s=Ia(r),o=DE(`caches/${e.toString()}`),i=Bf.openSync(r,"r"),a=W$(n),c=NF("uploadConcurrency",a.uploadConcurrency),l=NF("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];k("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>Fs(this,void 0,void 0,function*(){for(;d<s;){let p=Math.min(s-d,l),A=d,f=d+p-1;d+=l,yield $5e(t,o,()=>Bf.createReadStream(r,{fd:i,start:A,end:f,autoClose:!1}).on("error",y=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${y.message}`)}),A,f)}})))}finally{Bf.closeSync(i)}})}function H5e(t,e,r){return Fs(this,void 0,void 0,function*(){let n={size:r};return yield _E("commitCache",()=>Fs(this,void 0,void 0,function*(){return t.postJson(DE(`caches/${e.toString()}`),n)}))})}function Z$(t,e,r,n){return Fs(this,void 0,void 0,function*(){if(W$(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield fle(r,e,n)}else{let o=K$();k("Upload cache"),yield G5e(o,t,e,n),k("Commiting cache");let i=Ia(e);Ue(`CacheSize:~${Math.round(i/(1024*1024))}MB(${i}B)`);let a=yield H5e(o,t,i);if(!xR(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);Ue("Cache saved successfully")}})}var Sue=B(yue(),1),_r=B(Qr(),1),go=B(Qr(),1),Lp=B(Qr(),1),Op=B(Qr(),1),Fp=B(Qr(),1);var YG=B(Qr(),1),jG=B(Qr(),1),bue=B(Qr(),1),xue=B(Qr(),1),wue=B(Qr(),1);var HG=B(Qr(),1),zG=B(Qr(),1),Eue=B(Qr(),1),Cue=B(Qr(),1),Iue=B(Qr(),1),VG=class extends Iue.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Cue.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Eue.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),i=e.pos+r;for(;e.pos<i;){let[a,c]=e.tag();switch(a){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknownfield${a}(wiretype${c})for${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?zG.UnknownFieldHandler.onRead:l)(this.typeName,o,a,c,u)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,HG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?zG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},p0=new VG;var WG=class extends wue.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>p0}])}create(e){let r={repositoryId:"0",scope:[]
`));let n=yield uH(r,"create");yield dH(n,t)})}var Gf=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(u){try{l(n.next(u))}catch(d){i(d)}}function c(u){try{l(n.throw(u))}catch(d){i(d)}}function l(u){u.done?o(u.value):s(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},Hi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},$f=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},h0=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Tue(t){if(!t||t.length===0)throw new Hi("Path Validation Error: At least one directory or file path is required")}function mH(t){if(t.length>512)throw new Hi(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Hi(`KeyValidationError:${t}cannotcontaincommas.`)}function fH(){return vE()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Pue(t,e,r,n){return Gf(this,arguments,void 0,function*(s,o,i,a,c=!1){let l=vE();return k(`Cacheserviceversion:${l}`),Tue(s),l==="v2"?yield oZe(s,o,i,a,c):yield sZe(s,o,i,a,c)})}function sZe(t,e,r,n){return Gf(this,arguments,void 0,function*(s,o,i,a,c=!1){i=i||[];let l=[o,...i];if(k("Resolved Keys:"),k(JSON.stringify(l)),l.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of l)mH(p);let u=yield Dy(),d="";try{let p=yield Ple(l,s,{compressionMethod:u,enableCrossOsArchive:c});if(!p?.archiveLocation)return;if(a?.lookupOnly)return Ue("Lookup only - skipping download"),p.cacheKey;d=JE.join(yield _y(),pu(u)),k(`ArchivePath:${d}`),yield X$(p.archiveLocation,d,a),ou()&&(yield WE(d,u));let A=Ia(d);return Ue(`CacheSize:~${Math.round(A/(1024*1024))}MB(${A}B)`),yield pH(d,u),Ue("Cache restored successfully"),p.cacheKey}catch(p){let A=p;if(A.name===Hi.name)throw p;A instanceof ga&&typeof A.statusCode=="number"&&A.statusCode>=500?Mm(`Failedtorestore:${p.message}`):Rr(`Failedtorestore:${p.message}`)}finally{try{yield vy(d)}catch(p){k(`Failedtodeletearchive:${p}`)}}})}function oZe(t,e,r,n){return Gf(this,arguments,void 0,function*(s,o,i,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),i=i||[];let l=[o,...i];if(k("Resolved Keys:"),k(JSON.stringify(l)),l.length>10)throw new Hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)mH(d);let u="";try{let d=lH(),p=yield Dy(),A={key:o,restoreKeys:i,version:Wm(s,p,c)},f=yield d.GetCacheEntryDownloadURL(A);if(!f.ok){k(`Cachenotfoundforversion${A.version}ofkeys:${l.join(", ")}`);return}if(A.key!==f.matchedKey?Ue(`Cachehitforrestore-key:${f.matchedKey}`):Ue(`Cachehitfor:${f.matchedKey}`),a?.lookupOnly)return Ue("Lookup only - skipping download"),f.matchedKey;u=JE.join(yield _y(),pu(p)),k(`Archivepath:${u}`),k(`Startingdownloadofarchiveto:${u}`),yield X$(f.signedDownloadUrl,u,a);let b=Ia(u);return Ue(`CacheSize:~${Math.round(b/(1024*1024))}MB(${b}B)`),ou()&&(yield WE(u,p)),yield pH(u,p),Ue("Cache restored successfully"),f.matchedKey}catch(d){let p=d;if(p.name===Hi.name)throw d;p instanceof ga&&typeof p.statusCode=="number"&&p.statusCode>=500?Mm(`Failedtorestore:${d.message}`):Rr(`Failedtorestore:${d.message}`)}finally{try{u&&(yield vy(u))}catch(d){k(`Failedtodeletearchive:${d}`)}}})}function hH(t,e,r){return Gf(this,arguments,void 0,function*(n,s,o,i=!1){let a=vE();return k(`Cacheserviceversion:${a}`),Tue(n),mH(s),a==="v2"?yield aZe(n,s,o,i):yield iZe(n,s,o,i)})}function iZe(t,e,r){return Gf(this,arguments,void 0,function*(n,s,o,i=!1){var a,c,l,u,d;let p=yield Dy(),A=-1,f=yield RF(n);if(k("Cache Paths:"),k(`${JSON.stringify(f)}`),f.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 _y(),b=JE.join(y,pu(p));k(`ArchivePath:${b}`)
`;return a.replace(/\n$/,"")}var bZe=IZe,xZe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wZe=["scalar","sequence","mapping"];function SZe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function BZe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(xZe.indexOf(r)===-1)throw new qs('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=SZe(e.styleAliases||null),wZe.indexOf(this.kind)===-1)throw new qs('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dn=BZe;function Due(t,e){var r=[];return t[e].forEach(function(n){var s=r.length;r.forEach(function(o,i){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(s=i)}),r[s]=n}),r}function RZe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function bH(t){return this.extend(t)}bH.prototype.extend=function(e){var r=[],n=[];if(e instanceof Dn)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new qs("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Dn))throw new qs("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new qs("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new qs("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof Dn))throw new qs("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(bH.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=Due(s,"implicit"),s.compiledExplicit=Due(s,"explicit"),s.compiledTypeMap=RZe(s.compiledImplicit,s.compiledExplicit),s};var NZe=bH,TZe=new Dn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),PZe=new Dn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),QZe=new Dn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),_Ze=new NZe({explicit:[TZe,PZe,QZe]});function vZe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function DZe(){return null}function kZe(t){return t===null}var LZe=new Dn("tag:yaml.org,2002:null",{kind:"scalar",resolve:vZe,construct:DZe,predicate:kZe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function OZe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function FZe(t){return t==="true"||t==="True"||t==="TRUE"}function MZe(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var UZe=new Dn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:OZe,construct:FZe,predicate:MZe,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function D7e(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function sde(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var ode=new Array(256),ide=new Array(256);for(Mp=0;Mp<256;Mp++)ode[Mp]=Oue(Mp)?1:0,ide[Mp]=Oue(Mp);var Mp;function k7e(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Zue,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ade(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=bZe(r),new qs(e,r)}function ge(t,e){throw ade(t,e)}function C0(t,e){t.onWarning&&t.onWarning.call(null,ade(t,e))}var Fue={YAML:function(e,r,n){var s,o,i;e.version!==null&&ge(e,"duplication of %YAML directive"),n.length!==1&&ge(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&ge(e,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),i=parseInt(s[2],10),o!==1&&ge(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,i!==1&&i!==2&&C0(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var s,o;n.length!==2&&ge(e,"TAG directive accepts exactly two arguments"),s=n[0],o=n[1],rde.test(s)||ge(e,"ill-formed tag handle (first argument) of the TAG directive"),Pu.call(e.tagMap,s)&&ge(e,'there is a previously declared suffix for "'+s+'" tag handle'),nde.test(o)||ge(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ge(e,"tag prefix is malformed: "+o)}e.tagMap[s]=o}};function Tu(t,e,r,n){var s,o,i,a;if(e<r){if(a=t.input.slice(e,r),n)for(s=0,o=a.length;s<o;s+=1)i=a.charCodeAt(s),i===9||32<=i&&i<=1114111||ge(t,"expected valid JSON character");else N7e.test(a)&&ge(t,"the stream contains non-printable characters");t.result+=a}}function Mue(t,e,r,n){var s,o,i,a;for(Wr.isObject(r)||ge(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),i=0,a=s.length;i<a;i+=1)o=s[i],Pu.call(e,o)||(sde(e,o,r[o]),n[o]=!0)}function Yf(t,e,r,n,s,o,i,a,c){var l,u;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),l=0,u=s.length;l<u;l+=1)Array.isArray(s[l])&&ge(t,"nested arrays are not supported inside keys"),typeof s=="object"&&Lue(s[l])==="[object Object]"&&(s[l]="[object Object]");if(typeof s=="object"&&Lue(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)Mue(t,e,o[l],r);else Mue(t,e,o,r);else!t.json&&!Pu.call(r,s)&&Pu.call(e,s)&&(t.line=i||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,ge(t,"duplicated mapping key")),sde(e,s,o),delete r[s];return e}function NH(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):ge(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Mr(t,e,r){for(var n=0,s=t.input.charCodeAt(t.position);s!==0;){for(;Up(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(tc(s))for(NH(t),s=t.input.charCodeAt(t.position),n++,t.lineIndent=0;s===32;)t.lineIndent++,s=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&C0(t,"deficient indentation"),n}function x0(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r
`,e-1))}function L7e(t,e,r){var n,s,o,i,a,c,l,u,d=t.kind,p=t.result,A;if(A=t.input.charCodeAt(t.position),$s(A)||Vf(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96||(A===63||A===45)&&(s=t.input.charCodeAt(t.position+1),$s(s)||r&&Vf(s)))return!1;for(t.kind="scalar",t.result="",o=i=t.position,a=!1;A!==0;){if(A===58){if(s=t.input.charCodeAt(t.position+1),$s(s)||r&&Vf(s))break}else if(A===35){if(n=t.input.charCodeAt(t.position-1),$s(n))break}else{if(t.position===t.lineStart&&x0(t)||r&&Vf(A))break;if(tc(A))if(c=t.line,l=t.lineStart,u=t.lineIndent,Mr(t,!1,-1),t.lineIndent>=e){a=!0,A=t.input.charCodeAt(t.position);continue}else{t.position=i,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(Tu(t,o,i,!1),TH(t,t.line-c),o=i=t.position,a=!1),Up(A)||(i=t.position+1),A=t.input.charCodeAt(++t.position)}return Tu(t,o,i,!1),t.result?!0:(t.kind=d,t.result=p,!1)}function O7e(t,e){var r,n,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Tu(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,s=t.position;else return!0;else tc(r)?(Tu(t,n,s,!0),TH(t,Mr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&x0(t)?ge(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);ge(t,"unexpected end of the stream within a single quoted scalar")}function F7e(t,e){var r,n,s,o,i,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Tu(t,r,t.position,!0),t.position++,!0;if(a===92){if(Tu(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),tc(a))Mr(t,!1,e);else if(a<256&&ode[a])t.result+=ide[a],t.position++;else if((i=_7e(a))>0){for(s=i,o=0;s>0;s--)a=t.input.charCodeAt(++t.position),(i=Q7e(a))>=0?o=(o<<4)+i:ge(t,"expected hexadecimal character");t.result+=D7e(o),t.position++}else ge(t,"unknown escape sequence");r=n=t.position}else tc(a)?(Tu(t,r,n,!0),TH(t,Mr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&x0(t)?ge(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}ge(t,"unexpected end of the stream within a double quoted scalar")}function M7e(t,e){var r=!0,n,s,o,i=t.tag,a,c=t.anchor,l,u,d,p,A,f=Object.create(null),y,b,x,I;if(I=t.input.charCodeAt(t.position),I===91)u=93,A=!1,a=[];else if(I===123)u=125,A=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),I=t.input.charCodeAt(++t.position);I!==0;){if(Mr(t,!0,e),I=t.input.charCodeAt(t.position),I===u)return t.position++,t.tag=i,t.anchor=c,t.kind=A?"mapping":"sequence",t.result=a,!0;r?I===44&&ge(t,"expected the node content, but found ','"):ge(t,"missed comma between flow collection entries"),b=y=x=null,d=p=!1,I===63&&(l=t.input.charCodeAt(t.position+1),$s(l)&&(d=p=!0,t.position++,Mr(t,!0,e))),n=t.line,s=t.lineStart,o=t.position,jf(t,e,y0,!1,!0),b=t.tag,y=t.result,Mr(t,!0,e),I=t.input.charCodeAt(t.position),(p||t.line===n)&&I===58&&(d=!0,I=t.input.charCodeAt(++t.position),Mr(t,!0,e),jf(t,e,y0,!1,!0),x=t.result),A?Yf(t,a,f,b,y,x,n,s,o):d?a.push(Yf(t,null,f,b,y,x,n,s,o)):a.push(y),Mr(t,!0,e),I=t.input.charCodeAt(t.position),I===44?(r=!0,I=t.input.charCodeAt(++t.position)):r=!1}ge(t,"unexpected end of the stream within a flow collection")}function U7e(t,e){var r,n,s=IH,o=!1,i=!1,a=e,c=0,l=!1,u,d;if(d=t.input.charCodeAt(t.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)IH===s?s=d===43?kue:R7e:ge(t,"repeat of a chomping mode identifier");else if((u=v7e(d))>=0)u===0?ge(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ge(t,"repeat of an indentation width identifier"):(a=e+u-1,i=!0);else break;if(Up(d)){do d=t.input.charCodeAt(++t.position);while(Up(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!tc(d)&&d!==0)}for(;d!==0;){for(NH(t),t.lineIndent=0,d=t.input.charCodeAt(
`,o?1+c:c),o=!0,i=!0,c=0,r=t.position;!tc(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Tu(t,r,t.position,!1)}return!0}function Uue(t,e){var r,n=t.tag,s=t.anchor,o=[],i,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ge(t,"tab characters must not be used in indentation")),!(c!==45||(i=t.input.charCodeAt(t.position+1),!$s(i))));){if(a=!0,t.position++,Mr(t,!0,-1)&&t.lineIndent<=e){o.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,jf(t,e,tde,!1,!0),o.push(t.result),Mr(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)ge(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=s,t.kind="sequence",t.result=o,!0):!1}function q7e(t,e,r){var n,s,o,i,a,c,l=t.tag,u=t.anchor,d={},p=Object.create(null),A=null,f=null,y=null,b=!1,x=!1,I;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),I=t.input.charCodeAt(t.position);I!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,ge(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),o=t.line,(I===63||I===58)&&$s(n))I===63?(b&&(Yf(t,d,p,A,f,null,i,a,c),A=f=y=null),x=!0,b=!0,s=!0):b?(b=!1,s=!0):ge(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,I=n;else{if(i=t.line,a=t.lineStart,c=t.position,!jf(t,r,ede,!1,!0))break;if(t.line===o){for(I=t.input.charCodeAt(t.position);Up(I);)I=t.input.charCodeAt(++t.position);if(I===58)I=t.input.charCodeAt(++t.position),$s(I)||ge(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Yf(t,d,p,A,f,null,i,a,c),A=f=y=null),x=!0,b=!1,s=!1,A=t.tag,f=t.result;else if(x)ge(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(x)ge(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(b&&(i=t.line,a=t.lineStart,c=t.position),jf(t,e,E0,!0,s)&&(b?f=t.result:y=t.result),b||(Yf(t,d,p,A,f,y,i,a,c),A=f=y=null),Mr(t,!0,-1),I=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&I!==0)ge(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&Yf(t,d,p,A,f,null,i,a,c),x&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=d),x}function $7e(t){var e,r=!1,n=!1,s,o,i;if(i=t.input.charCodeAt(t.position),i!==33)return!1;if(t.tag!==null&&ge(t,"duplication of a tag property"),i=t.input.charCodeAt(++t.position),i===60?(r=!0,i=t.input.charCodeAt(++t.position)):i===33?(n=!0,s="!!",i=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do i=t.input.charCodeAt(++t.position);while(i!==0&&i!==62);t.position<t.length?(o=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):ge(t,"unexpected end of the stream within a verbatim tag")}else{for(;i!==0&&!$s(i);)i===33&&(n?ge(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),rde.test(s)||ge(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),P7e.test(o)&&ge(t,"tag suffix cannot contain flow indicator characters")}o&&!nde.test(o)&&ge(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ge(t,"tag name is malformed: "+o)}return r?t.tag=o:Pu.call(t.tagMap,s)?t.tag=t.tagMap[s]+o:s==="!"?t.tag="!"+o:s==="!!"?t.tag="tag:yaml.org,2002:"+o:ge(t,'undeclared tag handle "'+s+'"'),!0}function G7e(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&ge(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!$s(r)&&!Vf(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&ge(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function H7e(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;f
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new k7e(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,ge(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)z7e(r);return r.documents}function V7e(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=cde(t,r);if(typeof e!="function")return n;for(var s=0,o=n.length;s<o;s+=1)e(n[s])}function Y7e(t,e){var r=cde(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new qs("expected a single document in the stream, but found more")}}var j7e=V7e,W7e=Y7e,lde={loadAll:j7e,load:W7e},ude=Object.prototype.toString,dde=Object.prototype.hasOwnProperty,PH=65279,J7e=9,ZE=10,K7e=13,X7e=32,Z7e=33,eet=34,xH=35,tet=37,ret=38,net=39,set=42,pde=44,oet=45,I0=58,iet=61,aet=62,cet=63,uet=64,Ade=91,mde=93,det=96,fde=123,pet=124,hde=125,kn={};kn[0]="\\0";kn[7]="\\a";kn[8]="\\b";kn[9]="\\t";kn[10]="\\n";kn[11]="\\v";kn[12]="\\f";kn[13]="\\r";kn[27]="\\e";kn[34]='\\"';kn[92]="\\\\";kn[133]="\\N";kn[160]="\\_";kn[8232]="\\L";kn[8233]="\\P";var Aet=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],met=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fet(t,e){var r,n,s,o,i,a,c;if(e===null)return{};for(r={},n=Object.keys(e),s=0,o=n.length;s<o;s+=1)i=n[s],a=String(e[i]),i.slice(0,2)==="!!"&&(i="tag:yaml.org,2002:"+i.slice(2)),c=t.compiledTypeMap.fallback[i],c&&dde.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[i]=a;return r}function het(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new qs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Wr.repeat("0",n-e.length)+e}var get=1,eC=2;function yet(t){this.schema=t.schema||Zue,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Wr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=fet(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?eC:get,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function que(t,e){for(var r=Wr.repeat(" ",e),n=0,s=-1,o="",i,a=t.length;n<a;)s=t.indexOf(`
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(p).toString("base64")}`}o.Host=`${i}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(o))a+=`${p}:${o[p]}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",RPt),r.secureEndpoint?(Ab("Upgrading socket connection to TLS"),N3.connect({...BTe(STe(r),"host","path","port"),socket:s})):s;s.destroy();let d=new bd.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{Ab("Replaying proxy buffer for failed request"),(0,RTe.default)(p.listenerCount("data")>0),p.push(u),p.push(null)}),d}};mb.protocols=["http","https"];function RPt(t){t.resume()}function BTe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var P3=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,NPt=/public\.ecr\.aws|ecr-public\.aws\.com/,_Te=t=>P3.test(t)||_v(t),_v=t=>NPt.test(t),TPt=t=>{if(_v(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(P3);return e?e[4]:""},PPt=t=>{if(_v(t))return[];let e=t.match(P3);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)},vTe=async(t,e,r)=>{let n=TPt(t),s=PPt(t),o={};s.length>0&&(k(`RequestingAWSECRauthtokenfor${s.join(", ")}`),o.registryIds=s);let i,a=process.env.http_proxy||process.env.HTTP_PROXY||"";a&&(k(`Usinghttpproxy${a}`),i=new pb(a));let c,l=process.env.https_proxy||process.env.HTTPS_PROXY||"";l&&(k(`Usinghttpsproxy${l}`),c=new mb(l));let u=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(_v(t)){Ue(`AWSPublicECRdetectedwith${n}region`);let p=await new QTe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:u,region:n,requestHandler:new T3.NodeHttpHandler({httpAgent:i,httpsAgent:c})}).getAuthorizationToken(o);if(!p.authorizationData||!p.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let f=Buffer.from(p.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return ro(f[0]),ro(f[1]),[{registry:"public.ecr.aws",username:f[0],password:f[1]}]}else{Ue(`AWSECRdetectedwith${n}region`);let p=await new PTe.ECR({customUserAgent:"docker-login-action",credentials:u,region:n,requestHandler:new T3.NodeHttpHandler({httpAgent:i,httpsAgent:c})}).getAuthorizationToken(o);if(!Array.isArray(p.authorizationData)||!p.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let A=[];for(let f of p.authorizationData){let b=Buffer.from(f.authorizationToken||"","base64").toString("utf-8").split(":",2);ro(b[0]),ro(b[1]),A.push({registry:f.proxyEndpoint||"",username:b[0],password:b[1]})}return A}};async function Q3(t){/true/i.test(t.ecr)||t.ecr=="auto"&&_Te(t.registry)?await vPt(t.registry,t.username,t.password,t.scope):await _Pt(t.registry,t.username,t.password,t.scope)}async function DTe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),Ue(`Alternativeconfigdir:${e}`)),await _u.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Rr(n.stderr.trim())})}async function _Pt(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 kTe(t,e,r,n)}async function vPt(t,e,r,n){Ue("Retrieving registries data through AWS SDK...");let s=await vTe(t,e,r);for(let o of s)await kTe(o.registry,o.username,o.password,n)}async function kTe(t,e,r,n){let s,o=eN(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),Ue(`Logginginto${t}(scope${n})...`)):Ue(`Logginginto${t}...`),await _u.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());Ue("Login Succeeded!")})}var LTe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],OTe=/true/i.test(process.env.STATE_logout||"");function FTe(t){Xd("registries",JSON.stringify(t))}function MTe(t){Xd("logout",t)}async function UTe(){le