varFQe=Object.create;varkw=Object.defineProperty;varUQe=Object.getOwnPropertyDescriptor;varMQe=Object.getOwnPropertyNames;var$Qe=Object.getPrototypeOf,qQe=Object.prototype.hasOwnProperty;var_=(t,e)=>()=>(t&&(e=t(t=0)),e);varC=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),hn=(t,e)=>{for(varrine)kw(t,r,{get:e[r],enumerable:!0})},T4=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofMQe(e))!qQe.call(t,s)&&s!==r&&kw(t,s,{get:()=>e[s],enumerable:!(n=UQe(e,s))||n.enumerable});returnt};varb=(t,e,r)=>(r=t!=null?FQe($Qe(t)):{},T4(e||!t||!t.__esModule?kw(r,"default",{value:t,enumerable:!0}):r,t)),Xe=t=>T4(kw({},"__esModule",{value:!0}),t);varU4=C(JA=>{"use strict";varF_t=require("net"),jQe=require("tls"),pD=require("http"),L4=require("https"),WQe=require("events"),U_t=require("assert"),JQe=require("util");JA.httpOverHttp=KQe;JA.httpsOverHttp=XQe;JA.httpOverHttps=ZQe;JA.httpsOverHttps=e_e;functionKQe(t){vare=newbc(t);returne.request=pD.request,e}functionXQe(t){vare=newbc(t);returne.request=pD.request,e.createSocket=O4,e.defaultPort=443,e}functionZQe(t){vare=newbc(t);returne.request=L4.request,e}functione_e(t){vare=newbc(t);returne.request=L4.request,e.createSocket=O4,e.defaultPort=443,e}functionbc(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||pD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,o,i){for(vara=F4(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)})}JQe.inherits(bc,WQe.EventEmitter);bc.prototype.addRequest=function(e,r,n,s){varo=this,i=AD({request:e},o.options,F4(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=AD({},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")),Ml("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){Ml("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){Ml("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}returnMl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}functionu(d){i.removeAllListeners(),Ml(`tunneling socket could not be established, cause=%s
`);p.push(y),o+=y.byteLength,f&&(o=null),s=t,n=async function*(){for(let w of p)w.stream?yield*w.stream():yield w},i=`multipart/form-data;boundary=${c}`}else if(V8(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(Rg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yke(t)}if((typeof s=="string"||Rg.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(!J8(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 Qke(t,e=!1){return t instanceof ReadableStream&&(yk(!Rg.isDisturbed(t),"The body has already been consumed."),yk(!t.locked,"The stream is locked.")),Z8(t,e)}function _ke(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vke(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Dke(t){return{blob(){return lm(this,r=>{let n=j8(this);return n===null?n="":n&&(n=Nke(n)),new Ske([r],{type:n})},t)},arrayBuffer(){return lm(this,r=>new Uint8Array(r).buffer,t)},text(){return lm(this,W8,t)},json(){return lm(this,Lke,t)},formData(){return lm(this,r=>{let n=j8(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Tke(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new Y8;return o[um]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new Y8;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 lm(this,r=>new Uint8Array(r),t)}}}function kke(t){Object.assign(t.prototype,Dke(t))}async function lm(t,e,r){if(bke.brandCheck(t,r),e9(t))throw new TypeError("Body is unusable: Body has already been read");vke(t[um]);let n=Ike(),s=i=>n.reject(i),o=i=>{try{n.resolve(e(i))}catch(a){s(a)}};return t[um].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await wke(t[um].body,o,s),n.promise)}function e9(t){let e=t[um].body;return e!=null&&(e.stream.locked||Rg.isDisturbed(e.stream))}function Lke(t){return JSON.parse(W8(t))}function j8(t){let e=t[um].headersList,r=xke(e);return r==="failure"?null:r}t9.exports={extractBody:Z8,safelyExtractBody:Qke,cloneBody:_ke,mixinBody:kke,streamRegistry:X8,hasFinalizationRegistry:K8,bodyUnusable:e9}});var p9=C((fvt,d9)=>{"use strict";var Se=require("node:assert"),Ue=et(),{channels:r9}=XA(),Ck=tk(),{RequestContentLengthMismatchError:Dd,ResponseContentLengthMismatchError:Oke,RequestAbortedError:c9,HeadersTimeoutError:Fke,HeadersOverflowError:Uke,SocketError:fx,InformationalError:pm,BodyTimeoutError:Mke,HTTPParserError:$ke,ResponseExceededMaxSizeError:qke}=mt(),{kUrl:l9,kReset:bs,kClient:bk,kParser:Ar,kBlocking:Pg,kRunning:Bn,kPending:Gke,kSize:n9,kWriting:Gl,kQueue:xi,kNoRef:Ng,kKeepAliveDefaultTimeout:Hke,kHostHeader:zke,kPendingIdx:Vke,kRunningIdx:Po,kError:Qo,kPipelining:Ax,kSocket:Am,kKeepAliveTimeoutValue:hx,kMaxHeadersSize:Ik,kKeepAliveMaxTimeout:Yke,kKeepAliveTimeoutThreshold:jke,kHeadersTimeout:Wke,kBodyTimeout:Jke,kStrictContentLength:Sk,kMaxRequests:s9,kCounter:Kke,kMaxResponseSize:Xke,kOnError:Zke,kResume:ql,kHTTPContext:u9}=Yt(),da=XK(),eLe=Buffer.alloc(0),ux=Buffer[Symbol.species],dx=Ue.addListener,tLe=Ue.removeAllListeners,wk;async function rLe(){let t=process.env.JEST_WORKER_ID?sk():void 0,e;try{e=await WebAssembly.compile(t8())}catch{e=await WebAssembly.compile(t||sk())}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-Aa+pa.byteOffset;return $r.onStatus(new ux(pa.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 r9.sendHeaders.hasSubscribers&&r9.sendHeaders.publish({request:e,headers:y,socket:A}),!c||p===0?i9(f,null,t,e,A,u,y,d):Ue.isBuffer(c)?i9(f,c,t,e,A,u,y,d):Ue.isBlobLike(c)?typeof c.stream=="function"?a9(f,c.stream(),t,e,A,u,y,d):lLe(f,c,t,e,A,u,y,d):Ue.isStream(c)?cLe(f,c,t,e,A,u,y,d):Ue.isIterable(c)?a9(f,c,t,e,A,u,y,d):Se(!1),!0}function cLe(t,e,r,n,s,o,i,a){Se(o!==0||r[Bn]===0,"stream body cannot be pipelined");let c=!1,l=new gx({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){Ue.destroy(this,y)}},d=function(){c||e.resume&&e.resume()},p=function(){if(queueMicrotask(()=>{e.removeListener("error",A)}),!c){let f=new c9;queueMicrotask(()=>A(f))}},A=function(f){if(!c){if(c=!0,Se(s.destroyed||s[Gl]&&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")?Ue.destroy(e,f):Ue.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 i9(t,e,r,n,s,o,i,a){try{e?Ue.isBuffer(e)&&(Se(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length:${o}\r
`,"latin1")),n.onRequestSent(),r[ql]()}catch(c){t(c)}}async function lLe(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 Dd;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[bs]=!0),r[ql]()}catch(c){t(c)}}async function a9(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 gx({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 gx=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[Gl]=!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[Sk])throw new Dd;process.emitWarning(new Dd)}r.cork(),i===0&&(!a&&n.reset!==!1&&(r[bs]=!0),s===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[Sk])throw new Dd;process.emitWarning(new Dd)}e[Ar].timeout&&e[Ar].timeoutType===mm&&e[Ar].timeout.refresh&&e[Ar].timeout.refresh(),n[ql]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Gl]=!1,e&&(Se(n[Bn]<=1,"pipeline should only contain this request"),s(e))}};d9.exports=sLe});var C9=C((hvt,E9)=>{"use strict";var _o=require("node:assert"),{pipeline:uLe}=require("node:stream"),it=et(),{RequestContentLengthMismatchError:Tk,RequestAbortedError:A9,SocketError:Qg,InformationalError:Pk}=mt(),{kUrl:yx,kReset:Cx,kClient:fm,kRunning:Ix,kPending:dLe,kQueue:Hl,kPendingIdx:Qk,kRunningIdx:bi,kError:Bi,kSocket:on,kStrictContentLength:pLe,kOnError:_k,kMaxConcurrentStreams:y9,kHTTP2Session:Si,kResume:zl,kSize:ALe,kHTTPContext:mLe}=Yt(),Pc=Symbol("open streams"),m9,f9=!1,Ex;try{Ex=require("node:http2")}catch{Ex={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fLe,HTTP2_HEADER_METHOD:hLe,HTTP2_HEADER_PATH:gLe,HTTP2_HEADER_SCHEME:yLe,HTTP2_HEADER_CONTENT_LENGTH:ELe,HTTP2_HEADER_EXPECT:CLe,HTTP2_HEADER_STATUS:ILe}}=Ex;function wLe(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 xLe(t,e){t[on]=e,f9||(f9=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Ex.connect(t[yx],{createConnection:()=>e,peerMaxConcurrentStreams:t[y9]});r[Pc]=0,r[fm]=t,r[on]=e,it.addListener(r,"error",SLe),it.addListener(r,"frameError",BLe),it.addListener(r,"end",RLe),it.addListener(r,"goaway",NLe),it.addListener(r,"close",function(){let{[fm]:s}=this,{[on]:o}=s,i=this[on][Bi]||this[Bi]||new Qg("closed",it.getSocketInfo(o));if(s[Si]=null,s.destroyed){_o(s[dLe]===0);let a=s[Hl].splice(s[bi]);for(let c=0;c<a.length;c++){let l=a[c];it.errorRequest(s,l,i)}}}),r.unref(),t[Si]=r,e[Si]=r,it.addListener(e,"error",function(s){_o(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bi]=s,this[fm][_k](s)}),it.addListener(e,"end",function(){it.destroy(this,new Qg("other side closed",it.getSocketInfo(this)))}),it.addListener(e,"close",function(){let s=this[Bi]||new Qg("closed",it.getSocketInfo(this));t[on]=null,this[Si]!=null&&this[Si].destroy(s),t[Qk]=t[bi],_o(t[Ix]===0),t.emit("disconnect",t[yx],[t],s),t[zl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return PLe(t,...s)},resume(){bLe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}function bLe(t){let e=t[on];e?.destroyed===!1&&(t[ALe]===0&&t[y9]===0?(e.unref(),t[Si].unref()):(e.ref(),t[Si].ref()))}function SLe(t){_o(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[on][Bi]=t,this[fm][_k](t)}function BLe(t,e,r){if(r===0){let n=new Pk(`HTTP/2:"frameError"received-type${t},code${e}`);this[on][Bi]=n,this[fm][_k](n)}}function RLe(){let t=new Qg("other side closed",it.getSocketInfo(this[on]));this.destroy(t),it.destroy(this[on],t)}function NLe(t){let e=this[Bi]||new Qg(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,it.getSocketInfo(this)),r=this[fm];if(r[on]=null,r[mLe]=null,this[Si]!=null&&(this[Si].destroy(e),this[Si]=null),it.destroy(this[on],e),r[bi]<r[Hl].length){let n=r[Hl][r[bi]];r[Hl][r[bi]++]=null,it.errorRequest(r,n,e),r[Qk]=r[bi]}_o(r[Ix]===0),r.emit("disconnect",r[yx],[r],e),r[zl]()}function TLe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function PLe(t,e){let r=t[Si],{method:n,path:s,host:o,upgrade:i,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(i)return it.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let v=0;v<l.length;v+=2){let L=l[v+0],U=l[v+1];if(Array.isArray(U))for(let V=0;V<U.length;V++)d[L]?d[L]+=`,${U[V]}`:d[L]=U[V];else d[L]=U}let p,{hostname:A,port:f}=t[yx];d[fLe]=o||`${A}${f?`:${f}`:""}`,d[hLe]=n;let y=v=>{e.aborted||e.completed||(v=v||new A9,it.errorRequest(t,e,v),p!=null&&it.destroy(p,v),it.destroy(u,v),t[Hl][t[bi]++]=null,t[zl]())};try{e.onConnect(y)}catch(v){it.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),Af("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Af("Creating `tls.Socket`: %o",this.connectOpts),o=s4e.connect(this.connectOpts)):(Af("Creating `net.Socket`: %o",this.connectOpts),o=n4e.connect(this.connectOpts)),await(0,i4e.once)(o,"connect"),o}};jS.protocols=["http","https"];zo.HttpProxyAgent=jS;function c4e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var nae=C(cB=>{"use strict";Object.defineProperty(cB,"__esModule",{value:!0});cB.state=void 0;cB.state={instrumenterImplementation:void 0}});var Cae=C(AB=>{"use strict";Object.defineProperty(AB,"__esModule",{value:!0});AB.state=void 0;AB.state={operationRequestMap:new WeakMap}});var Xle=C(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var N6e=require("os"),T6e=require("util");function P6e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Q6e=P6e(T6e);function _6e(t,...e){process.stderr.write(`${Q6e.default.format(t,...e)}${N6e.EOL}`)}var qle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hle,gG=[],yG=[],_R=[];qle&&EG(qle);var zle=Object.assign(t=>Vle(t),{enable:EG,enabled:CG,disable:v6e,log:_6e});function EG(t){Hle=t,gG=[],yG=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?yG.push(new RegExp(`^${n.substr(1)}$`)):gG.push(new RegExp(`^${n}$`));for(let n of _R)n.enabled=CG(n.namespace)}function CG(t){if(t.endsWith("*"))return!0;for(let e of yG)if(e.test(t))return!1;for(let e of gG)if(e.test(t))return!0;return!1}function v6e(){let t=Hle||"";return EG(""),t}function Vle(t){let e=Object.assign(r,{enabled:CG(t),destroy:D6e,log:zle.log,namespace:t,extend:k6e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return _R.push(e),e}function D6e(){let t=_R.indexOf(this);return t>=0?(_R.splice(t,1),!0):!1}function k6e(t){let e=Vle(`${this.namespace}:${t}`);return e.log=this.log,e}var zE=zle,Yle=new Set,PR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,vR,DR=zE("azure");DR.log=(...t)=>{zE.log(...t)};var IG=["verbose","info","warning","error"];PR&&(Kle(PR)?jle(PR):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${PR}';loggingisnotenabled.Acceptablevalues:${IG.join(", ")}.`));function jle(t){if(t&&!Kle(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${IG.join(",")}`);vR=t;let e=[];for(let r of Yle)Jle(r)&&e.push(r.namespace);zE.enable(e.join(","))}function L6e(){return vR}var Gle={verbose:400,info:300,warning:200,error:100};function O6e(t){let e=DR.extend(t);return Wle(DR,e),{error:QR(e,"error"),warning:QR(e,"warning"),info:QR(e,"info"),verbose:QR(e,"verbose")}}function Wle(t,e){e.log=(...r)=>{t.log(...r)}}function QR(t,e){let r=Object.assign(t.extend(e),{level:e});if(Wle(t,r),Jle(r)){let n=zE.disable();zE.enable(n+","+r.namespace)}return Yle.add(r),r}function Jle(t){return!!(vR&&Gle[t.level]<=Gle[vR])}function Kle(t){return IG.includes(t)}Qf.AzureLogger=DR;Qf.createClientLogger=O6e;Qf.getLogLevel=L6e;Qf.setLogLevel=jle});var bG=C(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});var _f=new WeakMap,kR=new WeakMap,VE=class t{constructor(){this.onabort=null,_f.set(this,[]),kR.set(this,!1)}get aborted(){if(!kR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return kR.get(this)}static get none(){return new t}addEventListener(e,r){if(!_f.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");_f.get(this).push(r)}removeEventListener(e,r){if(!_f.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=_f.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 Zle(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=_f.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),kR.set(t,!0)}var wG=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 z=>{await c,l.forEach(hs.clearTimeout),i(z)},d=async z=>{await c,l.forEach(hs.clearTimeout),a(z)};if(r?.aborted){let z=$N(r);d(z);return}let p=e.headers??{},A=(p.Expect??p.expect)==="100-continue",f=o?s.httpsAgent:s.httpAgent;A&&!this.externalAgent&&(f=new(o?UN.Agent:MN)({keepAlive:!1,maxSockets:1/0})),l.push(hs.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(f,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3)));let y=nge.buildQueryString(e.query||{}),w;if(e.username!=null||e.password!=null){let z=e.username??"",Ee=e.password??"";w=`${z}:${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:w},L=(o?UN.request:tge)(T,z=>{let Ee=new rge.HttpResponse({statusCode:z.statusCode||-1,reason:z.statusMessage,headers:oge(z.headers),body:z});u({response:Ee})});if(L.on("error",z=>{Tct.includes(z.code)?d(Object.assign(z,{name:"TimeoutError"})):d(z)}),r){let z=()=>{L.destroy();let Ee=$N(r);d(Ee)};if(typeof r.addEventListener=="function"){let Ee=r;Ee.addEventListener("abort",z,{once:!0}),L.once("close",()=>Ee.removeEventListener("abort",z))}else r.onabort=z}let U=n??s.requestTimeout;l.push(Pct(L,d,s.connectionTimeout)),l.push(Qct(L,d,U,s.throwOnRequestTimeout,s.logger??console)),l.push(Dct(L,d,s.socketTimeout));let V=T.agent;typeof V=="object"&&"keepAlive"in V&&l.push(vct(L,{keepAlive:V.keepAlive,keepAliveMsecs:V.keepAliveMsecs})),c=ige(L,e,U,this.externalAgent).catch(z=>(l.forEach(hs.clearTimeout),a(z)))})}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 tge=A,MN=p,i instanceof MN||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new MN({keepAlive:u,maxSockets:d,...i})},httpsAgent:a instanceof UN.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new UN.Agent({keepAlive:u,maxSockets:d,...a}),logger:l}}},Yz=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())}},jz=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=zz.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,Jct.toBase64)(o);if(s==="hex")return(0,Kct.toHex)(o);if(s===void 0||s==="utf8"||s==="utf-8")return(0,Xct.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(Age);if(e=!0,mge(t))return n(t);if((0,pge.isReadableStream)(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})};HN.sdkStreamMixin=Zct;var mge=t=>typeof Blob=="function"&&t instanceof Blob});var gge=C(zN=>{"use strict";Object.defineProperty(zN,"__esModule",{value:!0});zN.sdkStreamMixin=void 0;var elt=ic(),tlt=fh(),tV=require("stream"),rlt=fge(),hge="The stream has already been transformed.",nlt=t=>{if(!(t instanceof tV.Readable))try{return(0,rlt.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(hge);return e=!0,await(0,elt.streamCollector)(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?(0,tlt.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},transformToWebStream:()=>{if(e)throw new Error(hge);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof tV.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,tV.Readable.toWeb(t)}})};zN.sdkStreamMixin=nlt});var yge=C(rV=>{"use strict";Object.defineProperty(rV,"__esModule",{value:!0});rV.splitStream=slt;async function slt(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}});var Ige=C(nV=>{"use strict";Object.defineProperty(nV,"__esModule",{value:!0});nV.splitStream=ilt;var Ege=require("stream"),olt=yge(),Cge=dl();async function ilt(t){if((0,Cge.isReadableStream)(t)||(0,Cge.isBlob)(t))return(0,olt.splitStream)(t);let e=new Ege.PassThrough,r=new Ege.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}});var ZN=C(ht=>{"use strict";var wge=Jr(),xge=Wr(),VN=_z(),YN=Uhe(),jN=zhe(),WN=Yhe(),JN=Whe(),KN=gge(),XN=Ige(),bge=dl(),sV=class t extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?t.mutate(wge.fromBase64(e)):t.mutate(xge.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"?wge.toBase64(this):xge.toUtf8(this)}};ht.isBlob=bge.isBlob;ht.isReadableStream=bge.isReadableStream;ht.Uint8ArrayBlobAdapter=sV;Object.prototype.hasOwnProperty.call(VN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:VN.__proto__});Object.keys(VN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=VN[t])});Object.prototype.hasOwnProperty.call(YN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:YN.__proto__});Object.keys(YN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=YN[t])});Object.prototype.hasOwnProperty.call(jN,"__proto__")&&!Object.prototype.hasOwnProperty.call(ht,"__proto__")&&Object.defineProperty(ht,"__proto__",{enumerable:!0,value:jN.__proto__});Object.keys(jN).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(ht,t)&&(ht[t]=jN[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).
`+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(Sge.HttpResponse.isInstance(s)){let{headers:A={}}=s,f=Object.entries(A);d.$metadata={httpStatusCode:s.statusCode,requestId:iV(/^x-[\w-]+-request-?id$/,f),extendedRequestId:iV(/^x-[\w-]+-id-2$/,f),cfId:iV(/^x-[\w-]+-cf-id$/,f)}}}catch{}}throw d}},iV=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var Pge=C(Tge=>{"use strict";function alt(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}Tge.parseQueryString=alt});var ji=C(_ge=>{"use strict";var clt=Pge(),Qge=t=>{if(typeof t=="string")return Qge(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,i;return o&&(i=clt.parseQueryString(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:i}};_ge.parseUrl=Qge});var aV,cV,vge=_(()=>{aV=b(ji()),cV=t=>{if(typeof t=="object"){if("url"in t){let e=(0,aV.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,aV.parseUrl)(t)}});var Dge={};hn(Dge,{toEndpointV1:()=>cV});var lV=_(()=>{vge()});var kge,Lge,Oge=_(()=>{lV();kge=b(Fn());nT();Lge=t=>(e,r)=>async n=>{let{operationSchema:s}=(0,kge.getSmithyContext)(r),[,o,i,a,c,l]=s??[],u=r.endpointV2?async()=>cV(r.endpointV2):t.endpoint,d=await t.protocol.serializeRequest($C(o,i,a,c,l),n.input,{...t,...r,endpoint:u});return e({...n,request:d})}});function ml(t){return{applyToStack:e=>{e.add(Lge(t),Uge),e.add(Rge(t),Fge),t.protocol.setSerdeContext(t)}}}var Fge,Uge,Mge=_(()=>{Nge();Oge();Fge={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Uge={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var _r,Gu=_(()=>{_r=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 sT,llt,$ge=_(()=>{Gu();sT=class t extends _r{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},llt=(t,e,r,n)=>_r.assign(new sT,{name:e,namespace:t,traits:r,valueSchema:n})});var oT,ult,qge=_(()=>{Gu();oT=class t extends _r{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},ult=(t,e,r,n,s)=>_r.assign(new oT,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s})});var iT,dlt,Gge=_(()=>{Gu();iT=class t extends _r{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},dlt=(t,e,r,n,s)=>_r.assign(new iT,{name:e,namespace:t,traits:r,input:n,output:s})});var yh,plt,uV=_(()=>{Gu();yh=class t extends _r{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},plt=(t,e,r,n,s)=>_r.assign(new yh,{name:e,namespace:t,traits:r,memberNames:n,memberList:s})});var aT,Alt,Hge=_(()=>{Gu();uV();aT=class t extends yh{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},Alt=(t,e,r,n,s,o)=>_r.assign(new aT,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null})});function cc(t){if(typeof t=="object")return t;if(t=t|0,cT[t])return cT[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return cT[t]=e}var cT,dV=_(()=>{cT=[]});function GC(t,e){if(t instanceof me)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=me;return new r(t,e)}var qC,lT,uT,me,pV,zge,Vge=_(()=>{oV();dV();qC={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},lT=[],uT={},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
`),YC={warn:console.warn}});function WC(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`${vlt[n]},${c}${wV[r]}${e}${l}:${u}:${d}GMT`}var vlt,wV,Dlt,klt,Llt,xV,Olt,Flt,Ult,bV,SV,jC,Mlt,$lt,qlt,IV,Glt,Hlt,zlt,lc,Vlt,Ylt,Ih,eye=_(()=>{CV();vlt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wV=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Dlt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),klt=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Dlt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,i,a,c,l]=e,u=nA(Ih(n)),d=lc(s,"month",1,12),p=lc(o,"day",1,31);return jC(u,d,p,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})},Llt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),xV=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Llt.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=nA(Ih(n)),p=lc(s,"month",1,12),A=lc(o,"day",1,31),f=jC(d,p,A,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l});return u.toUpperCase()!="Z"&&f.setTime(f.getTime()-Ylt(u)),f},Olt=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$/),Flt=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$/),Ult=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})$/),bV=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Olt.exec(t);if(e){let[r,n,s,o,i,a,c,l]=e;return jC(nA(Ih(o)),IV(s),lc(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}if(e=Flt.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return qlt(jC(Mlt(o),IV(s),lc(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l}))}if(e=Ult.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return jC(nA(Ih(l)),IV(n),lc(s.trimLeft(),"day",1,31),{hours:o,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},SV=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=AT(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))},jC=(t,e,r,n)=>{let s=e-1;return Hlt(t,s,r),new Date(Date.UTC(t,s,r,lc(n.hours,"hour",0,23),lc(n.minutes,"minute",0,59),lc(n.seconds,"seconds",0,60),Vlt(n.fractionalMilliseconds)))},Mlt=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+nA(Ih(t));return r<e?r+100:r},$lt=50*365*24*60*60*1e3,qlt=t=>t.getTime()-new Date().getTime()>$lt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,IV=t=>{let e=wV.indexOf(t);if(e<0)throw new TypeError(`Invalidmonth:${t}`);return e+1},Glt=[31,28,31,30,31,30,31,31,30,31,30,31],Hlt=(t,e,r)=>{let n=Glt[e];if(e===1&&zlt(t)&&(n=29),r>n)throw new TypeError(`Invaliddayfor${wV[e]}in${t}:${r}`)},zlt=t=>t%4===0&&(t%100!==0||t%400===0),lc=(t,e,r,n)=>{let s=EV(Ih(t));if(s<r||s>n)throw new TypeError(`${e}mustbebetween${r}and${n},inclusive`);return s},Vlt=t=>t==null?0:gV("0."+t)*1e3,Ylt=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offsetdirection,${e
${Ku.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 HT.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=bAt(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},KY=class extends JT{headerFormatter=new jY;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>_Ie)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let y=YT(f,p,u??this.service),w=kIe(JY(e),{unhoistableHeaders:i,hoistableHeaders:c});d.sessionToken&&(w.query[ej]=d.sessionToken),w.query[yIe]=zT,w.query[EIe]=`${d.accessKeyId}/${y}`,w.query[XY]=A,w.query[IIe]=s.toString(10);let x=YY(w,o,a);return w.query[CIe]=this.getCanonicalHeaderList(x),w.query[ZY]=await this.getSignature(A,y,this.getSigningKey(d,p,f,u),this.createCanonicalRequest(w,x,await jT(e,this.sha256))),w}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=YT(c,a,i??this.service),d=await jT({headers:{},body:r},this.sha256),p=new this.sha256;p.update(e);let A=Ku.toHex(await p.digest()),f=[TIe,l,u,s,A,d].join(`
-EKScontainerhost169.254.170.23or[fd00:ec2::23]`,{logger:e})}};ZT.checkUrl=gmt});var nwe=C(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.createGetRequest=Imt;eP.getCredentials=wmt;var mj=Hn(),ymt=Bt(),Emt=_e(),Cmt=ZN();function Imt(t){return new ymt.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 wmt(t,e){let n=await(0,Cmt.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 mj.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,Emt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new mj.CredentialsProviderError(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new mj.CredentialsProviderError(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e})}});var swe=C(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.retryWrapper=void 0;var xmt=(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()};tP.retryWrapper=xmt});var awe=C(rP=>{"use strict";Object.defineProperty(rP,"__esModule",{value:!0});rP.fromHttp=void 0;var bmt=(KC(),Xe(JC)),Smt=(An(),Xe(ai)),Bmt=ic(),owe=Hn(),Rmt=bmt.__importDefault(require("node:fs/promises")),Nmt=rwe(),iwe=nwe(),Tmt=swe(),Pmt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Qmt="http://169.254.170.2",_mt="AWS_CONTAINER_CREDENTIALS_FULL_URI",vmt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Dmt="AWS_CONTAINER_AUTHORIZATION_TOKEN",kmt=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[Pmt],n=t.awsContainerCredentialsFullUri??process.env[_mt],s=t.awsContainerAuthorizationToken??process.env[Dmt],o=t.awsContainerAuthorizationTokenFile??process.env[vmt],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=`${Qmt}${r}`;else throw new owe.CredentialsProviderError(`NoHTTPcredentialproviderhostprovided.
SetAWS_CONTAINER_CREDENTIALS_FULL_URIorAWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);(0,Nmt.checkUrl)(a,t.logger);let c=Bmt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,Tmt.retryWrapper)(async()=>{let l=(0,iwe.createGetRequest)(a);s?l.headers.Authorization=s:o&&(l.headers.Authorization=(await Rmt.default.readFile(o)).toString());try{let u=await c.handle(l);return(0,iwe.getCredentials)(u.response).then(d=>(0,Smt.setCredentialFeature)(d,"CREDENTIALS_HTTP","z"))}catch(u){throw new owe.CredentialsProviderError(String(u),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)};rP.fromHttp=kmt});var fj=C(nP=>{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.fromHttp=void 0;var Lmt=awe();Object.defineProperty(nP,"fromHttp",{enumerable:!0,get:function(){return Lmt.fromHttp}})});function Omt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Fmt(t){return{schemeId:"smithy.api#noAuth"}}var lI,cwe,lwe,uwe,hj=_(()=>{Ur();lI=b(Fn()),cwe=async(t,e,r)=>({operation:(0,lI.getSmithyContext)(e).operation,region:await(0,lI.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});lwe=t=>{let e=[];return t.operation==="CreateToken"?e.push(Fmt(t)):e.push(Omt(t)),e},uwe=t=>{let e=dc(t);return Object.assign(e,{authSchemePreference:(0,lI.normalizeProvider)(t.authSchemePreference??[])})}});var dwe,pwe,gj=_(()=>{dwe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),pwe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var td,uI=_(()=>{td={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--),!L(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 F=y(E,N);if(F===!1)return T("InvalidAttr","Attributes for '"+D+"' have open quote.",U(E,N));let G=F.value;if(N=F.index,G[G.length-1]==="/"){let ce=N-G.length;G=G.substring(0,G.length-1);let ot=x(G,h);if(ot!==!0)return T(ot.err.code,ot.err.msg,U(E,ce+ot.err.line));B=!0}else if(Q){if(!F.tagClosed)return T("InvalidTag","Closing tag '"+D+"' doesn't have proper closing.",U(E,N));if(G.trim().length>0)return T("InvalidTag","Closing tag '"+D+"' can't have attributes or invalid starting.",U(E,k));if(g.length===0)return T("InvalidTag","Closing tag '"+D+"' has not been opened.",U(E,k));{let ce=g.pop();if(D!==ce.tagName){let ot=U(E,ce.tagStartPos);return T("InvalidTag","Expected closing tag '"+ce.tagName+"' (opened in line "+ot.line+", col "+ot.col+") instead of closing tag '"+D+"'.",U(E,k))}g.length==0&&(P=!0)}}else{let ce=x(G,h);if(ce!==!0)return T(ce.err.code,ce.err.msg,U(E,N-G.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:k}),B=!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 B?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 B=E.substr(g,h-g);if(h>5&&B==="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="",B="",P=!1;for(;h<E.length;h++){if(E[h]===A||E[h]===f)B===""?B=E[h]:B!==E[h]||(B="");else if(E[h]===">"&&B===""){P=!0;break}g+=E[h]}return B===""&&{value:g,index:h,tagClosed:P}}let w=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function x(E,h){let g=s(E,w),B={};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.",V(g[P]));if(g[P][3]!==void 0&&g[P][4]===void 0)return T("InvalidAttr","Attribute '"+g[P][2]+"' is without value.",V(g[P]));if(g[P][3]===void 0&&!h.allowBooleanAttributes)return T("InvalidAttr","boolean attribute '"+g[P][2]+"' is not allowed.",V(g[P]));let N=g[P][2];if(!v(N))return T("InvalidAttr","Attribute '"+N+"' is an invalid name.",V(g[P]));if(Object.prototype.hasOwnProperty.call(B,N))return T("InvalidAttr","Attribute '"+N+"'isrepeated.",V(g[P]));B[N]=1}return!0}function I(E,h){if(E[++h]===";")return-1;if(E[h]==="#")return(function(B,P){let N=/\d/;for(B[P]==="x"&&(P++,N=/[\da-fA-F]/);P<B.length;P++){if(B[P]===";")return P;if(!B[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 L(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 V(E){return E.startIndex+E[1].length}let z=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:z};function Ne(E,h){if(typeof E!="string")return;let g=E.toLowerCase();if(i.some(B=>g===B.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${E}" is a reserved JavaScript keyword that could cause prototype pollution`);if(a.some(B=>g===B.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)}letqe=function(E){leth=Object.assign({},Ee,E),g=[{value:h.attributeNamePrefix,n
`);let h=new lt("!xml"),g=h,B="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let P=new rn(this.options.processEntities);for(let N=0;N<E.length;N++)if(E[N]==="<")if(E[N+1]==="/"){let k=Td(E,">",N,"Closing Tag is not closed."),Q=E.substring(N+2,k).trim();if(this.options.removeNSPrefix){let F=Q.indexOf(":");F!==-1&&(Q=Q.substr(F+1))}Q=sD(this.options.transformTagName,Q,"",this.options).tagName,g&&(B=this.saveTextToParentTag(B,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(),B="",N=k}else if(E[N+1]==="?"){let k=nD(E,N,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(B=this.saveTextToParentTag(B,g,this.readonlyMatcher),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){let Q=new lt(k.tagName);Q.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(Q[":@"]=this.buildAttributesMap(k.tagExp,this.matcher,k.tagName)),this.addChild(g,Q,this.readonlyMatcher,N)}N=k.closeIndex+1}else if(E.substr(N+1,3)==="!--"){let k=Td(E,"-->",N+4,"Comment is not closed.");if(this.options.commentPropName){let Q=E.substring(N+4,k-2);B=this.saveTextToParentTag(B,g,this.readonlyMatcher),g.add(this.options.commentPropName,[{[this.options.textNodeName]:Q}])}N=k}else if(E.substr(N+1,2)==="!D"){let k=P.readDocType(E,N);this.docTypeEntities=k.entities,N=k.i}else if(E.substr(N+1,2)==="!["){let k=Td(E,"]]>",N,"CDATA is not closed.")-2,Q=E.substring(N+9,k);B=this.saveTextToParentTag(B,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=k+2}else{let k=nD(E,N,this.options.removeNSPrefix);if(!k){let ws=E.substring(Math.max(0,N-50),Math.min(E.length,N+50));throw new Error(`readTagExp returned undefined at position ${N}. Context: "${ws}"`)}let Q=k.tagName,D=k.rawTagName,F=k.tagExp,G=k.attrExpPresent,ce=k.closeIndex;if({tagName:Q,tagExp:F}=sD(this.options.transformTagName,Q,F,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&&B&&g.tagname!=="!xml"&&(B=this.saveTextToParentTag(B,g,this.readonlyMatcher,!1));let ot=g;ot&&this.options.unpairedTags.indexOf(ot.tagname)!==-1&&(g=this.tagsNodeStack.pop(),this.matcher.pop());let Ke=!1;F.length>0&&F.lastIndexOf("/")===F.length-1&&(Ke=!0,Q[Q.length-1]==="/"?(Q=Q.substr(0,Q.length-1),F=Q):F=F.substr(0,F.length-1),G=Q!==F);let rt,yt=null,aa={};rt=lQe(D),Q!==h.tagname&&this.matcher.push(Q,{},rt),Q!==F&&G&&(yt=this.buildAttributesMap(F,this.matcher,Q),yt&&(aa=cQe(yt,this.options))),Q!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let nn=N;if(this.isCurrentNodeStopNode){let ws="";if(Ke)N=k.closeIndex;else if(this.options.unpairedTags.indexOf(Q)!==-1)N=k.closeIndex;else{let cD=this.readStopNodeData(E,D,ce+1);if(!cD)throw new Error(`Unexpected end of ${D}`);N=cD.i,ws=cD.tagContent}let aD=new lt(Q);yt&&(aD[":@"]=yt),aD.add(this.options.textNodeName,ws),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(g,aD,this.readonlyMatcher,nn)}else{if(Ke){({tagName:Q,tagExp:F}=sD(this.options.transformTagName,Q,F,this.options));let ws=new lt(Q);yt&&(ws[":@"]=yt),this.addChild(g,ws,this.readonlyMatcher,nn),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(this.options.unpairedTags.indexOf(Q)!==-1){let ws=new lt(Q);yt&&(ws[":@"]=yt),this.addChild(g,ws,this.readonlyMatcher,nn),this.matcher.pop(),this.isCurrentNodeStopNode=!1,N=k.closeIndex;continue}{letws=newlt(Q);if(this.tagsNodeStack.length>this.options.maxNestedTags)thrownew
`);function Dft(t){return Vj.parse(t,!0)}});var CP=C(EP=>{"use strict";var kft=oxe(),Lft=/[&<>"]/g,Oft={"&":"&","<":"<",">":">",'"':"""};function Fft(t){return t.replace(Lft,e=>Oft[e])}var Uft=/[&"'<>\r\n\u0085\u2028]/g,Mft={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function $ft(t){return t.replace(Uft,e=>Mft[e])}var yP=class{value;constructor(e){this.value=e}toString(){return $ft(""+this.value)}},jj=class t{name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new yP(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}="${Fft(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};EP.parseXML=kft.parseXML;EP.XmlNode=jj;EP.XmlText=yP});var ixe,axe,cxe,bA,IP=_(()=>{ixe=b(CP());Vs();ct();axe=b(_e()),cxe=b(Wr());id();Uj();bA=class extends Vn{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new iA(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??cxe.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 Fh(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,ixe.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,axe.getValueFromTextNode)(o)}return{}}}});var lxe,uxe,CI,Wj=_(()=>{Vs();ct();ys();lxe=b(_e()),uxe=b(Jr());id();CI=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??uxe.toBase64)(r)));elseif(s.isBooleanSchema()||
Reference:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},Sgt=(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=sQ.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!i){let u=(await sQ.parseKnownFiles(t))[c];if(!u)throw new ta.CredentialsProviderError(`Profile ${c} was not found.`,{logger:t.logger});if(!zSe(u))throw new ta.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(u?.sso_session){let x=(await sQ.loadSsoSessionData(t))[u.sso_session],I=` configurations in profile ${c} and sso-session ${u.sso_session}`;if(s&&s!==x.sso_region)throw new ta.CredentialsProviderError("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==x.sso_start_url)throw new ta.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}=VSe(u,t.logger);return HSe({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 ta.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return HSe({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})}};oQ.fromSSO=Sgt;oQ.isSsoProfile=zSe;oQ.validateSsoProfile=VSe});function Bgt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Rgt(t){return{schemeId:"smithy.api#noAuth"}}var JI,YSe,jSe,WSe,PW=_(()=>{Ur();JI=b(Fn()),YSe=async(t,e,r)=>({operation:(0,JI.getSmithyContext)(e).operation,region:await(0,JI.normalizeProvider)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});jSe=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(Rgt(t)):e.push(Bgt(t)),e},WSe=t=>{let e=dc(t);return Object.assign(e,{authSchemePreference:(0,JI.normalizeProvider)(t.authSchemePreference??[])})}});var JSe,KSe,QW=_(()=>{JSe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),KSe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var oBe,jn,XSe,NA,Vh,pd,ra,cQ,_W,ZSe,eBe,tBe,vW,DW,Yn,kW,iQ,aQ,rBe,nBe,sBe,Ngt,iBe,aBe=_(()=>{oBe="required",jn="argv",XSe="isSet",NA="booleanEquals",Vh="error",pd="endpoint",ra="tree",cQ="PartitionResult",_W="stringEquals",ZSe={[oBe]:!0,default:!1,type:"boolean"},eBe={[oBe]:!1,type:"string"},tBe={ref:"Endpoint"},vW={fn:NA,[jn]:[{ref:"UseFIPS"},!0]},DW={fn:NA,[jn]:[{ref:"UseDualStack"},!0]},Yn={},kW={fn:"getAttr",[jn]:[{ref:cQ},"name"]},iQ={fn:NA,[jn]:[{ref:"UseFIPS"},!1]},aQ={fn:NA,[jn]:[{ref:"UseDualStack"},!1]},rBe={fn:"getAttr",[jn]:[{ref:cQ},"supportsFIPS"]},nBe={fn:NA,[jn]:[!0,{fn:"getAttr",[jn]:[{ref:cQ},"supportsDualStack"]}]},sBe=[{ref:"Region"}],Ngt={version:"1.0",parameters:{UseDualStack:ZSe,UseFIPS:ZSe,Endpoint:eBe,Region:eBe},rules:[{conditions:[{fn:XSe,[jn]:[tBe]}],rules:[{conditions:[vW],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Vh},{rules:[{conditions:[DW],error:"In
`),iNe=!0)),new fw.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),gJ.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 fw.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=await Promise.resolve().then(()=>b(TW()));return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>b(sNe()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>b(pJ()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>b(mJ()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await _Et(t))()),async()=>{throw new fw.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],aNe),LEt=t=>t?.expiration!==void 0,aNe=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;jQ.credentialsTreatedAsExpired=aNe;jQ.credentialsWillNeedRefresh=LEt;jQ.defaultProvider=kEt});var gNe=C(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.ruleSet=void 0;var hNe="required",Qt="fn",_t="argv",Jn="ref",LA="url",OA="properties",FA="headers",cNe=!0,lNe="isSet",UA="booleanEquals",Jh="error",st="endpoint",sa="tree",oa="PartitionResult",uNe={[hNe]:!0,default:!1,type:"boolean"},dNe={[hNe]:!1,type:"string"},pNe={[Jn]:"Endpoint"},en={[Qt]:UA,[_t]:[{[Jn]:"UseFIPS"},!0]},tn={[Qt]:UA,[_t]:[{[Jn]:"UseDualStack"},!0]},Kh={},WQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws"]},bn={[Qt]:UA,[_t]:[{[Jn]:"UseFIPS"},!1]},Sn={[Qt]:UA,[_t]:[{[Jn]:"UseDualStack"},!1]},vl={[LA]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[OA]:{},[FA]:{}},Id={[LA]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[OA]:{},[FA]:{}},Dl={[LA]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[OA]:{},[FA]:{}},wd={[LA]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[OA]:{},[FA]:{}},JQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-us-gov"]},KQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-cn"]},XQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-iso"]},ZQ={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-iso-b"]},e_={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-iso-e"]},t_={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-iso-f"]},r_={[Qt]:"stringEquals",[_t]:[{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"name"]},"aws-eusc"]},ANe={[Qt]:"getAttr",[_t]:[{[Jn]:oa},"supportsFIPS"]},mNe={[Qt]:UA,[_t]:[!0,{[Qt]:"getAttr",[_t]:[{[Jn]:oa},"supportsDualStack"]}]},fNe=[{[Jn]:"Region"}],OEt={version:"1.0",parameters:{UseDualStack:uNe,UseFIPS:uNe,Endpoint:dNe,Region:dNe},rules:[{conditions:[{[Qt]:lNe,[_t]:[pNe]}],rules:[{conditions:[en],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Jh},{rules:[{conditions:[tn],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Jh},{endpoint:{[LA]:pNe,[OA]:Kh,[FA]:Kh},type:st}],type:sa}],type:sa},{rules:[{conditions:[{[Qt]:lNe,[_t]:fNe}],rules:[{conditions:[{[Qt]:"aws.partition",[_t]:fNe,assign:oa}],rules:[{conditions:[WQ,bn,Sn],endpoint:vl,type:st},{conditions:[WQ,bn,tn],endpoint:Id,type:st},{conditions:[WQ,en,Sn],endpoint:Dl,type:st},{conditions:[WQ,en,tn],endpoint:wd,type:st},{conditions:[JQ,bn,Sn],endpoint:vl,type:st},{conditions:[JQ,bn,tn],endpoint:Id,type:st},{conditions:[JQ,e
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functiongy(t){WA("debug",{},t)}function_ee(t,e={}){WA("warning",P4(e),tinstanceofError?t.toString():t)}functionUc(t){process.stdout.write(t+Pee.EOL)}functionRHe(t){uD("group",t)}functionNHe(){uD("endgroup")}functionWO(t,e){returnBHe(this,void0,void0,function*(){RHe(t);letr;try{r=yielde()}finally{NHe()}returnr})}functionJO(t,e){if(process.env.GITHUB_STATE||"")returnD4("STATE",k4(t,e));WA("save-state",{name:t},Ul(e))}varDee=b(require("os"),1);functionuu(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionKO(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}functionjm(t,e,r){letn=newXO(t,e,r);process.stdout.write(n.toString()+Dee.EOL)}functionZO(t,e=""){jm(t,{},e)}varvee="::",XO=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=vee+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${PHe(s)}`)}}returne+=`${vee}${THe(this.message)}`,e}};functionTHe(t){returnuu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionPHe(t){returnuu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varkee=b(require("crypto"),1),Ub=b(require("fs"),1),Fb=b(require("os"),1);functionLee(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!Ub.existsSync(r))thrownewError(`Missing file at path: ${r}`);Ub.appendFileSync(r,`${uu(e)}${Fb.EOL}`,{encoding:"utf8"})}functionOee(t,e){letr=`ghadelimiter_${kee.randomUUID()}`,n=uu(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))thrownewError(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Fb.EOL}${n}${Fb.EOL}${r}`}varMee=b(require("os"),1);varUee=require("os"),wy=require("fs"),eF=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())})},{access:QHe,appendFile:_He,writeFile:vHe}=wy.promises,Fee="GITHUB_STEP_SUMMARY";vartF=class{constructor(){this._buffer=""}filePath(){returneF(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[Fee];if(!e)thrownewError(`Unable to find environment variable for $${Fee}. Check if your runtime environment supports job summaries.`);try{yieldQHe(e,wy.constants.R_OK|wy.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){lets=Object.entries(n).map(([o,i])=>`${o}="${i}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returneF(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?vHe:_He)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returneF(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(Uee.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),o=this.wrap(n,s);returnthis.addRaw(o).addEOL()}addTable(e){letr=e.map(s=>{leto=s.map(i=>{if(typeofi=="string")returnthis.wrap("td",i);let{header:a,data:c,colspan:l,
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new $y(o));return n.searchPaths.push(...qF(n.patterns)),n})}static stat(e,r,n){return YF(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield tf.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Uo(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw o}else s=yield tf.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield tf.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(i=>i===o)){Uo(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${o}'`);return}n.push(o)}return s})}};var vYe=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 Rne(t,e){return vYe(this,void 0,void 0,function*(){return yield sS.create(t,e)})}var CS=b(require("crypto"),1),sf=b(require("fs"),1),pp=b(require("path"),1),yoe=b(hoe(),1),Eoe=b(require("util"),1);var Jy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Jy||(Jy={}));var as;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(as||(as={}));var oo;(function(t){t.GNU="gnu",t.BSD="bsd"})(oo||(oo={}));var yS=2,ES=5e3,AU=5e3,mU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,goe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ky="cache.tar",fU="manifest.txt",vUt=10*Math.pow(1024,3);var nf=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())})},PJe=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)}},QJe="1.0";function Xy(){return nf(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=pp.join(n,"actions","temp")}let r=pp.join(e,CS.randomUUID());return yield tp(r),r})}function xa(t){return sf.statSync(t).size}function hU(t){return nf(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 Rne(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=PJe(c.globGenerator()),d;d=yield u.next(),e=d.done,!e;l=!0){s=d.value,l=!1;let A=pp.relative(a,s).replace(new RegExp(`\\${pp.sep}`,"g"),"/");j(`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 Zy(t){return nf(this,void 0,void 0,function*(){return Eoe.promisify(sf.unlink)(t)})}function Coe(t){return nf(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),j(`Checking${e}${r.join(" ")}`);try{yield cu(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){j(s.message)}return n=n.trim(),j(n),n})}function eE(){return nf(this,void 0,void 0,function*(){let t=yield Coe("zstd",["--quiet"]),e=yoe.clean(t);return j(`zstdversion:${e}`),t===""?as.Gzip:as.ZstdWithoutLong})}function yu(t){return t===as.Gzip?Jy.Gzip:Jy.Zstd}function Ioe(){return nf(this,void 0,void 0,function*(){return sf.existsSync(mU)?mU:(yield Coe("tar")).toLowerCase().includes("gnu tar")?Ts("tar"):""})}function gU(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function of(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(QJe),CS.createHash("sha256").update(n.join("|")).digest("hex")}function woe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Lf=b(require("fs"),1),Wue=require("url");var ba=class extends Error{constructor(e){super(e),this.name="AbortError"}};var xoe=require("node:os"),boe=b(require("node:util"),1),Soe=b(require("node:process"),1);function Boe(t,...e){Soe.default.stderr.write(`${boe.default.format(t,...e)}${xoe.EOL}`)}var Roe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Toe,yU=[],EU=[],wS=[];Roe&&CU(Roe);var Poe=Object.assign(t=>Qoe(t),{enable:CU,enabled:IU,disable:_Je,log:Boe});function CU(t){Toe=t,yU=[],EU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?EU.push(r.substring(1)):yU.push(r);for(let r of wS)r.enabled=IU(r.namespace)}function IU(t){if(t.endsWith("*"))return!0;for(let e of EU)if(Noe(t,e))return!1;for(let e of yU)if(Noe(t,e))return!0;return!1}function Noe(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 _Je(){let t=Toe||"";return CU(""),t}function Qoe(t){let e=Object.assign(r,{enabled:IU(t),destroy:vJe,log:Poe.log,namespace:t,extend:DJe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return wS.push(e),e}function vJe(){let t=wS.indexOf(this);return t>=0?(wS.splice(t,1),!0):!1}function DJe(t){let e=Qoe(`${this.namespace}:${t}`);return e.log=this.log,e}var af=Poe;var wU=["verbose","info","warning","error"],_oe={verbose:400,info:300,warning:200,error:100};function voe(t,e){e.log=(...r)=>{t.log(...r)}}function Doe(t){return wU.includes(t)}function xS(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=af(t.namespace);s.log=(...u)=>{af.log(...u)};function o(u){if(u&&!Doe(u))throw new Error(`Unknownloglevel'${u}'.Acceptablevalues:${wU.join(",")}`);n=u;let d=[];for(let p of e)i(p)&&d.push(p.namespace);af.enable(d.join(","))}r&&(Doe(r)?o(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${wU.join(", ")}.`));function i(u){return!!(n&&_oe[u.level]<=_oe[n])}function a(u,d){let p=Object.assign(u.extend(d),{level:d});if(voe(u,p),i(p)){let A=af.disable();af.enab
${UJe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function RS(t){return t instanceof cs?!0:mp(t)&&t.name==="RestError"}function _s(t,e){return Buffer.from(t,e)}var NS=b(require("node:http"),1),TS=b(require("node:https"),1),RU=b(require("node:zlib"),1),Moe=require("node:stream");var qo=tE("ts-http-runtime");var MJe={};function rE(t){return t&&typeof t.pipe=="function"}function Uoe(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 $oe(t){return t&&typeof t.byteLength=="number"}var PS=class extends Moe.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}},NU=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 Oi;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=HJe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,y=new PS(f);y.on("error",w=>{qo.error("Error in upload progress",w)}),rE(a)?a.pipe(y):y.end(a),a=y}let l=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=$Je(l),p={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),p;c=i?qJe(l,u):l;let A=e.onDownloadProgress;if(A){let f=new PS(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 GJe(c),p}finally{if(e.abortSignal&&n){let l=Promise.resolve();rE(a)&&(l=Uoe(a));let u=Promise.resolve();rE(c)&&(u=Uoe(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?NS.default.request(a,c):TS.default.request(a,c);u.once("error",d=>{l(new cs(d.message,{code:d.code??cs.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&&rE(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):$oe(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qo.error("Unrecognized body type",n),l(new cs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?NS.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NS.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return TS.default.globalAgent;let s=e.tlsSettings??MJe,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(qo.info("No cached TLS Agent exist, creating a new Agent"),o=new TS.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function $Je(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 I4e(t){return t instanceof Uint8Array?t.byteLength:ZS(t)?t.size===-1?void 0:t.size:void 0}function w4e(t){let e=0;for(let r of t){let n=I4e(r);if(n===void 0)return;e+=n}return e}async function x4e(t,e,r){let n=[_s(`--${r}`,"utf-8"),...e.flatMap(o=>[_s(`\r
`,"utf-8")],s=w4e(n);s&&t.headers.set("Content-Length",s),t.body=await zie(n)}var oE="multipartPolicy",b4e=70,S4e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function B4e(t){if(t.length>b4e)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!S4e.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function tB(){return{name:oE,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?B4e(r):r=E4e(),t.headers.set("Content-Type",`${o};boundary=${r}`),await x4e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function rB(){return BS()}var Vie=xS({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),hqt=Vie.logger;function Ra(t){return Vie.createClientLogger(t)}var Na=Ra("core-rest-pipeline");function VU(t={}){return _S({logger:Na.info,...t})}var YU=vS;function jU(t={}){return DS(t)}var nB=b(require("node:os"),1),sB=b(require("node:process"),1);function Yie(){return"User-Agent"}async function jie(t){if(sB.default&&sB.default.versions){let e=`${nB.default.type()}${nB.default.release()};${nB.default.arch()}`,r=sB.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 oB="1.22.2";function D4e(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Wie(){return Yie()}async function iB(t){let e=new Map;e.set("core-rest-pipeline",oB),await jie(e);let r=D4e(e);return t?`${t}${r}`:r}var Jie=Wie(),Kie="userAgentPolicy";function WU(t={}){let e=iB(t.userAgentPrefix);return{name:Kie,async sendRequest(r,n){return r.headers.has(Jie)||r.headers.set(Jie,await e),n(r)}}}var uo=class extends Error{constructor(e){super(e),this.name="AbortError"}};function JU(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 U4e="The delay was aborted.";function iE(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return JU(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??U4e})}function Cu(t){if(mp(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 Xie(t){return mp(t)}function mf(){return Ap()}var Ct=gp;var Zie=Symbol("rawContent");function XU(t){return typeof t[Zie]=="function"}function eae(t){return XU(t)?t[Zie]():t}var aB=oE;function ZU(){let t=tB();return{name:aB,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)XU(n.body)&&(n.body=eae(n.body));return t.sendRequest(e,r)}}}var eM=kS;function tM(){return LS()}function rM(t={}){return US(t)}function nM(){return MS()}function Iu(t){return $U(t)}function sM(t,e){return JS(t,e)}var tae="setClientRequestIdPolicy";function oM(t="x-ms-client-request-id"){return{name:tae,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function iM(t){return KS(t)}function aM(t){return XS(t)}var ff={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function rae(t={}){let e=new cM(t.parentContext);return t.span&&(e=e.setValue(ff.span,t.span)),t.namespace&&(e=e.setValue(ff.namespace,t.namespace)),e}var cM=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--),!l8e(c)){let d;return c.trim().length===0?d="Invalid space after '<'.":d="Tag '"+c+"' is an invalid name.",Br("InvalidTag",d,ls(t,o))}let l=s8e(t,o);if(l===!1)return Br("InvalidAttr","Attributes for '"+c+"' have open quote.",ls(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=Uae(u,e);if(p===!0)n=!0;else return Br(p.err.code,p.err.msg,ls(t,d+p.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Br("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ls(t,i));if(r.length===0)return Br("InvalidTag","Closing tag '"+c+"' has not been opened.",ls(t,i));{let d=r.pop();if(c!==d.tagName){let p=ls(t,d.tagStartPos);return Br("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+c+"'.",ls(t,i))}r.length==0&&(s=!0)}}else return Br("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ls(t,o));else{let d=Uae(u,e);if(d!==!0)return Br(d.err.code,d.err.msg,ls(t,o-u.length+d.err.line));if(s===!0)return Br("InvalidXml","Multiple possible root nodes found.",ls(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=Fae(t,o);continue}else if(t[o+1]==="?"){if(o=Oae(t,++o),o.err)return o}else break;else if(t[o]==="&"){let d=a8e(t,o);if(d==-1)return Br("InvalidChar","char '&' is not expected.",ls(t,o));o=d}else if(s===!0&&!Lae(t[o]))return Br("InvalidXml","Extra text at the end",ls(t,o));t[o]==="<"&&o--}}else{if(Lae(t[o]))continue;return Br("InvalidChar","char '"+t[o]+"' is not expected.",ls(t,o))}if(n){if(r.length==1)return Br("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ls(t,r[0].tagStartPos));if(r.length>0)return Br("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Br("InvalidXml","Start tag expected.",1);return!0}function Lae(t){return t===" "||t===" "||t===`
`||t==="\r"}function Oae(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 Br("InvalidXml","XML declaration allowed only at the start of the document.",ls(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Fae(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 r8e='"',n8e="'";function s8e(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===r8e||t[e]===n8e)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 o8e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Uae(t,e){let r=yB(t,o8e),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Br("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",yE(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Br("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",yE(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Br("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",yE(r[s]));let o=r[s][2];if(!c8e(o))return Br("InvalidAttr","Attribute '"+o+"' is an invalid name.",yE(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Br("InvalidAttr","Attribute '"+o+"' is repeated.",yE(r[s]))}return!0}function i8e(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 a8e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,i8e(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 Br(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function c8e(t){return BM(t)}function l8e(t){return BM(t)}function ls(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function yE(t){return t.startIndex+t[1].length}var Mae={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"},$ae={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 Ls("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new IE(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=Cf(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=DM(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=kM(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 Ls(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=Cf(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=Cf(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=kM(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}=DM(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 w=r;w&&s.unpairedTagsSet.has(w.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=_8e(p),d!==e.tagname&&this.matcher.push(d,{},v),d!==A&&f&&(I=this.buildAttributesMap(A,this.matcher,d),I&&(T=Q8e(I,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let L=a;if(this.isCurrentNodeStopNode){let U="";if(x)a=u.closeIndex;else if(s.unpairedTagsSet.has(d))a=u.closeIndex;else{let z=this.readStopNodeData(t,p,y+1);if(!z)throw new Error(`Unexpected end of ${p}`);a=z.i,U=z.tagContent}let V=new Ls(d);I&&(V[":@"]=I),V.add(s.textNodeName,U),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,V,this.readonlyMatcher,L)}else{if(x){({tagName:d,tagExp:A}=DM(s.transformTagName,d,A,s));let U=new Ls(d);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,L),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let U=new Ls(d);I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,L),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let U=new Ls(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(U[":@"]=I),this.addChild(r,U,this.readonlyMatcher,L),r=U}n="",a=y}}}elsen+=t[a];returne.child};functionF
`}),n}getCanonicalizedResourceString(e){let r=vB(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 fr=class extends Bp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new BE(e,r,this)}computeHMACSHA256(e){return(0,yce.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Gr=Ra("storage-common");var Vo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Vo||(Vo={}));var Bu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Vo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},d9e=new uo("The operation was aborted."),RE=class extends _a{retryOptions;constructor(e,r,n=Bu){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Bu.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Bu.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Bu.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Bu.maxRetryDelayInMs):Bu.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Bu.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Bu.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=_B(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Su(s.url,Vc.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if(Gr.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(Gr.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 Gr.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 Gr.info(`RetryPolicy:Networkerror${i}found,willretry.`),!0}if(n||s){let i=n?n.status:s?s.statusCode:0;if(!e&&i===404)return Gr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return Gr.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')?(Gr.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 Vo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Vo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Gr.info(`RetryPolicy:Delayfor${s}ms`),kB(s,n,d9e)}};var NE=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new RE(e,r,this.retryOptions)}};var p9e="storageBrowserPolicy";function Ece(){return{name:p9e,async sendRequest(t,e){return Ct||((t.method==="GET"||t.method==="HEAD")&&(t.url=Su(t.url,Vc.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Qe.COOKIE),t.headers.delete(Qe.CONTENT_LENGTH)),e(t)}}}var A9e="StorageCorrectContentLengthPolicy";function Cce(){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:A9e,async send
`}),a}function s(o){let i=vB(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 Gi(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 w6e(t,e){if(t=kp(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=Wa.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):"",Dp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qi(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 Gi(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 x6e(t,e){if(t=kp(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=Wa.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):"",Dp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qi(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 Gi(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 b6e(t,e){if(t=kp(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=Wa.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):"",Dp(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?qi(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 Gi(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 S6e(t,e){if(t=kp(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=Wa.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):"",Dp(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?qi(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 Gi(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 B6e(t,e){if(t=kp(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=Wa.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):"",Dp(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?qi(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 Gi(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 R6e(t,e){if(t=kp(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=Wa.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):"",Dp(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?qi(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 Gi(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 Dp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function kp(t){let e=t.version?t.version:UB;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 $E=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=mf()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||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!==Fi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fi||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!==Fi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fi||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"}};Df.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Up=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"}};Up.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var KE=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var bXe=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())})},OG=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);kr(`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 kue(t,e,r){return bXe(this,void 0,void 0,function*(){var n;let s=new tl(t),o=s.getBlockBlobClient(),i=new OG((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(),j(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield o.uploadFile(e,a);if(c._response.status>=400)throw new HR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Di(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{i.stopDisplayTimer()}})}var Oue=b(require("buffer"),1),Ka=b(require("fs"),1),Fue=b(require("stream"),1),Uue=b(require("util"),1);var zR=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 VR(t){return t?t>=200&&t<300:!1}function SXe(t){return t?t>=500:!0}function BXe(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}function RXe(t){return zR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Lue(t,e,r){return zR(this,arguments,void 0,function*(n,s,o,i=yS,a=ES,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),!SXe(p)))return d;if(p&&(A=BXe(p),l=`Cache service responded with ${p}`),j(`${n} - Attempt ${u} of ${i} failed with error: ${l}`),!A){j(`${n} - Error is not retryable`);break}yield RXe(a),u++}throw Error(`${n} failed: ${l}`)})}function XE(t,e){return zR(this,arguments,void 0,function*(r,n,s=yS,o=ES){return yield Lue(r,n,i=>i.statusCode,s,o,i=>{if(i instanceof Ea)return{statusCode:i.statusCode,result:null,headers:{},error:i}})})}function kf(t,e){return zR(this,arguments,void 0,function*(r,n,s=yS,o=ES){return yield Lue(r,n,i=>i.message.statusCode,s,o)})}var Ko=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 NXe(t,e){return Ko(this,void 0,void 0,function*(){yield Uue.promisify(Fue.pipeline)(t.message,e)})}var YR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Othercacheswithsimilarkey:`);for(let a of o?.artifactCaches||[])j(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function $G(t,e,r){return Ms(this,void 0,void 0,function*(){let n=new Wue.URL(t),s=Gue(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield $ue(t,e,s):s.concurrentBlobDownloads?yield Mue(t,e,s):yield jR(t,e):yield jR(t,e)})}function Kue(t,e,r){return Ms(this,void 0,void 0,function*(){let n=MG(),s=of(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield XE("reserveCache",()=>Ms(this,void 0,void 0,function*(){return n.postJson(eC("caches"),o)}))})}function jue(t,e){return`bytes${t}-${e}/*`}function LXe(t,e,r,n,s){return Ms(this,void 0,void 0,function*(){j(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${jue(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":jue(n,s)},i=yield kf(`uploadChunk(start:${n},end:${s})`,()=>Ms(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!VR(i.message.statusCode))throw new Error(`Cacheservicerespondedwith${i.message.statusCode}duringuploadchunk.`)})}function OXe(t,e,r,n){return Ms(this,void 0,void 0,function*(){let s=xa(r),o=eC(`caches/${e.toString()}`),i=Lf.openSync(r,"r"),a=FG(n),c=gU("uploadConcurrency",a.uploadConcurrency),l=gU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];j("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>Ms(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 LXe(t,o,()=>Lf.createReadStream(r,{fd:i,start:A,end:f,autoClose:!1}).on("error",y=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${y.message}`)}),A,f)}})))}finally{Lf.closeSync(i)}})}function FXe(t,e,r){return Ms(this,void 0,void 0,function*(){let n={size:r};return yield XE("commitCache",()=>Ms(this,void 0,void 0,function*(){return t.postJson(eC(`caches/${e.toString()}`),n)}))})}function qG(t,e,r,n){return Ms(this,void 0,void 0,function*(){if(FG(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kue(r,e,n)}else{let o=MG();j("Upload cache"),yield OXe(o,t,e,n),j("Commiting cache");let i=xa(e);kr(`CacheSize:~${Math.round(i/(1024*1024))}MB(${i}B)`);let a=yield FXe(o,t,i);if(!VR(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);kr("Cache saved successfully")}})}var zde=b(Fde(),1),Pr=b(Tr(),1),go=b(Tr(),1),Hp=b(Tr(),1),zp=b(Tr(),1),Vp=b(Tr(),1);var LH=b(Tr(),1),OH=b(Tr(),1),qde=b(Tr(),1),Gde=b(Tr(),1),Hde=b(Tr(),1);var vH=b(Tr(),1),DH=b(Tr(),1),Ude=b(Tr(),1),Mde=b(Tr(),1),$de=b(Tr(),1),kH=class extends $de.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,Mde.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ude.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?DH.UnknownFieldHandler.onRead:l)(this.typeName,o,a,c,u)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,vH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,vH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?DH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},k0=new kH;var FH=class extends Hde.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:()=>k0}])}create(e){let r={repositoryId:"0",scope:[]
`));let n=yield ZH(r,"create");yield e2(n,t)})}var Zf=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())})},Vi=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Xf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},U0=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Wde(t){if(!t||t.length===0)throw new Vi("Path Validation Error: At least one directory or file path is required")}function n2(t){if(t.length>512)throw new Vi(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Vi(`KeyValidationError:${t}cannotcontaincommas.`)}function s2(){return ZE()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Jde(t,e,r,n){return Zf(this,arguments,void 0,function*(s,o,i,a,c=!1){let l=ZE();return j(`Cacheserviceversion:${l}`),Wde(s),l==="v2"?yield Z7e(s,o,i,a,c):yield X7e(s,o,i,a,c)})}function X7e(t,e,r,n){return Zf(this,arguments,void 0,function*(s,o,i,a,c=!1){i=i||[];let l=[o,...i];if(j("Resolved Keys:"),j(JSON.stringify(l)),l.length>10)throw new Vi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of l)n2(p);let u=yield eE(),d="";try{let p=yield Jue(l,s,{compressionMethod:u,enableCrossOsArchive:c});if(!p?.archiveLocation)return;if(a?.lookupOnly)return kr("Lookup only - skipping download"),p.cacheKey;d=hC.join(yield Xy(),yu(u)),j(`ArchivePath:${d}`),yield $G(p.archiveLocation,d,a),ip()&&(yield fC(d,u));let A=xa(d);return kr(`CacheSize:~${Math.round(A/(1024*1024))}MB(${A}B)`),yield t2(d,u),kr("Cache restored successfully"),p.cacheKey}catch(p){let A=p;if(A.name===Vi.name)throw p;A instanceof Ea&&typeof A.statusCode=="number"&&A.statusCode>=500?ky(`Failedtorestore:${p.message}`):Di(`Failedtorestore:${p.message}`)}finally{try{yield Zy(d)}catch(p){j(`Failedtodeletearchive:${p}`)}}})}function Z7e(t,e,r,n){return Zf(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(j("Resolved Keys:"),j(JSON.stringify(l)),l.length>10)throw new Vi("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)n2(d);let u="";try{let d=XH(),p=yield eE(),A={key:o,restoreKeys:i,version:of(s,p,c)},f=yield d.GetCacheEntryDownloadURL(A);if(!f.ok){j(`Cachenotfoundforversion${A.version}ofkeys:${l.join(", ")}`);return}if(A.key!==f.matchedKey?kr(`Cachehitforrestore-key:${f.matchedKey}`):kr(`Cachehitfor:${f.matchedKey}`),a?.lookupOnly)return kr("Lookup only - skipping download"),f.matchedKey;u=hC.join(yield Xy(),yu(p)),j(`Archivepath:${u}`),j(`Startingdownloadofarchiveto:${u}`),yield $G(f.signedDownloadUrl,u,a);let w=xa(u);return kr(`CacheSize:~${Math.round(w/(1024*1024))}MB(${w}B)`),ip()&&(yield fC(u,p)),yield t2(u,p),kr("Cache restored successfully"),f.matchedKey}catch(d){let p=d;if(p.name===Vi.name)throw d;p instanceof Ea&&typeof p.statusCode=="number"&&p.statusCode>=500?ky(`Failedtorestore:${d.message}`):Di(`Failedtorestore:${d.message}`)}finally{try{u&&(yield Zy(u))}catch(d){j(`Failedtodeletearchive:${d}`)}}})}function o2(t,e,r){return Zf(this,arguments,void 0,function*(n,s,o,i=!1){let a=ZE();return j(`Cacheserviceversion:${a}`),Wde(n),n2(s),a==="v2"?yield tet(n,s,o,i):yield eet(n,s,o,i)})}function eet(t,e,r){return Zf(this,arguments,void 0,function*(n,s,o,i=!1){var a,c,l,u,d;let p=yield eE(),A=-1,f=yield hU(n);if(j("Cache Paths:"),j(`${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 Xy(),w=hC.join(y,yu(p));j(`ArchivePath:${w}`)
`;return a.replace(/\n$/,"")}var get=het,yet=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Eet=["scalar","sequence","mapping"];function Cet(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Iet(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(yet.indexOf(r)===-1)throw new Gs('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=Cet(e.styleAliases||null),Eet.indexOf(this.kind)===-1)throw new Gs('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dn=Iet;function epe(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 wet(){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 d2(t){return this.extend(t)}d2.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 Gs("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Dn))throw new Gs("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Gs("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 Gs("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 Gs("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(d2.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=epe(s,"implicit"),s.compiledExplicit=epe(s,"explicit"),s.compiledTypeMap=wet(s.compiledImplicit,s.compiledExplicit),s};var xet=d2,bet=new Dn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Bet=new Dn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ret=new Dn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Net=new xet({explicit:[bet,Bet,Ret]});function Tet(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Pet(){return null}function Qet(t){return t===null}var _et=new Dn("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tet,construct:Pet,predicate:Qet,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function vet(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 Det(t){return t==="true"||t==="True"||t==="TRUE"}function ket(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Let=new Dn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vet,construct:Det,predicate:ket,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 Ptt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function bpe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var Spe=new Array(256),Bpe=new Array(256);for(Yp=0;Yp<256;Yp++)Spe[Yp]=npe(Yp)?1:0,Bpe[Yp]=npe(Yp);var Yp;function Qtt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Epe,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 Rpe(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=get(r),new Gs(e,r)}function ge(t,e){throw Rpe(t,e)}function G0(t,e){t.onWarning&&t.onWarning.call(null,Rpe(t,e))}var spe={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&&G0(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],wpe.test(s)||ge(e,"ill-formed tag handle (first argument) of the TAG directive"),Lu.call(e.tagMap,s)&&ge(e,'there is a previously declared suffix for "'+s+'" tag handle'),xpe.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 ku(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 btt.test(a)&&ge(t,"the stream contains non-printable characters");t.result+=a}}function ope(t,e,r,n){var s,o,i,a;for(jr.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],Lu.call(e,o)||(bpe(e,o,r[o]),n[o]=!0)}function nh(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"&&rpe(s[l])==="[object Object]"&&(s[l]="[object Object]");if(typeof s=="object"&&rpe(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)ope(t,e,o[l],r);else ope(t,e,o,r);else!t.json&&!Lu.call(r,s)&&Lu.call(e,s)&&(t.line=i||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,ge(t,"duplicated mapping key")),bpe(e,s,o),delete r[s];return e}function g2(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 Fr(t,e,r){for(var n=0,s=t.input.charCodeAt(t.position);s!==0;){for(;jp(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(nc(s))for(g2(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&&G0(t,"deficient indentation"),n}function V0(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 _tt(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),Hs(A)||rh(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),Hs(s)||r&&rh(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),Hs(s)||r&&rh(s))break}else if(A===35){if(n=t.input.charCodeAt(t.position-1),Hs(n))break}else{if(t.position===t.lineStart&&V0(t)||r&&rh(A))break;if(nc(A))if(c=t.line,l=t.lineStart,u=t.lineIndent,Fr(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&&(ku(t,o,i,!1),y2(t,t.line-c),o=i=t.position,a=!1),jp(A)||(i=t.position+1),A=t.input.charCodeAt(++t.position)}return ku(t,o,i,!1),t.result?!0:(t.kind=d,t.result=p,!1)}function vtt(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(ku(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 nc(r)?(ku(t,n,s,!0),y2(t,Fr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&V0(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 Dtt(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 ku(t,r,t.position,!0),t.position++,!0;if(a===92){if(ku(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),nc(a))Fr(t,!1,e);else if(a<256&&Spe[a])t.result+=Bpe[a],t.position++;else if((i=Ntt(a))>0){for(s=i,o=0;s>0;s--)a=t.input.charCodeAt(++t.position),(i=Rtt(a))>=0?o=(o<<4)+i:ge(t,"expected hexadecimal character");t.result+=Ptt(o),t.position++}else ge(t,"unknown escape sequence");r=n=t.position}else nc(a)?(ku(t,r,n,!0),y2(t,Fr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&V0(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 ktt(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,w,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(Fr(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"),w=y=x=null,d=p=!1,I===63&&(l=t.input.charCodeAt(t.position+1),Hs(l)&&(d=p=!0,t.position++,Fr(t,!0,e))),n=t.line,s=t.lineStart,o=t.position,sh(t,e,$0,!1,!0),w=t.tag,y=t.result,Fr(t,!0,e),I=t.input.charCodeAt(t.position),(p||t.line===n)&&I===58&&(d=!0,I=t.input.charCodeAt(++t.position),Fr(t,!0,e),sh(t,e,$0,!1,!0),x=t.result),A?nh(t,a,f,w,y,x,n,s,o):d?a.push(nh(t,null,f,w,y,x,n,s,o)):a.push(y),Fr(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 Ltt(t,e){var r,n,s=u2,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)u2===s?s=d===43?tpe:xtt:ge(t,"repeat of a chomping mode identifier");else if((u=Ttt(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(jp(d)){do d=t.input.charCodeAt(++t.position);while(jp(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!nc(d)&&d!==0)}for(;d!==0;){for(g2(t),t.lineIndent=0,d=t.input.charCodeAt(
`,o?1+c:c),o=!0,i=!0,c=0,r=t.position;!nc(d)&&d!==0;)d=t.input.charCodeAt(++t.position);ku(t,r,t.position,!1)}return!0}function ipe(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),!Hs(i))));){if(a=!0,t.position++,Fr(t,!0,-1)&&t.lineIndent<=e){o.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,sh(t,e,Ipe,!1,!0),o.push(t.result),Fr(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 Ott(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,w=!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(!w&&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)&&Hs(n))I===63?(w&&(nh(t,d,p,A,f,null,i,a,c),A=f=y=null),x=!0,w=!0,s=!0):w?(w=!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,!sh(t,r,Cpe,!1,!0))break;if(t.line===o){for(I=t.input.charCodeAt(t.position);jp(I);)I=t.input.charCodeAt(++t.position);if(I===58)I=t.input.charCodeAt(++t.position),Hs(I)||ge(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(nh(t,d,p,A,f,null,i,a,c),A=f=y=null),x=!0,w=!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)&&(w&&(i=t.line,a=t.lineStart,c=t.position),sh(t,e,q0,!0,s)&&(w?f=t.result:y=t.result),w||(nh(t,d,p,A,f,y,i,a,c),A=f=y=null),Fr(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 w&&nh(t,d,p,A,f,null,i,a,c),x&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=d),x}function Ftt(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&&!Hs(i);)i===33&&(n?ge(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),wpe.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),Btt.test(o)&&ge(t,"tag suffix cannot contain flow indicator characters")}o&&!xpe.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:Lu.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 Utt(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&&!Hs(r)&&!rh(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 Mtt(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 Qtt(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;)$tt(r);return r.documents}function qtt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Npe(t,r);if(typeof e!="function")return n;for(var s=0,o=n.length;s<o;s+=1)e(n[s])}function Gtt(t,e){var r=Npe(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Gs("expected a single document in the stream, but found more")}}var Htt=qtt,ztt=Gtt,Tpe={loadAll:Htt,load:ztt},Ppe=Object.prototype.toString,Qpe=Object.prototype.hasOwnProperty,E2=65279,Vtt=9,EC=10,Ytt=13,jtt=32,Wtt=33,Jtt=34,p2=35,Ktt=37,Xtt=38,Ztt=39,ert=42,_pe=44,trt=45,H0=58,rrt=61,nrt=62,srt=63,ort=64,vpe=91,Dpe=93,irt=96,kpe=123,art=124,Lpe=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 crt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lrt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function urt(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&&Qpe.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[i]=a;return r}function drt(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 Gs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+jr.repeat("0",n-e.length)+e}var prt=1,CC=2;function Art(t){this.schema=t.schema||Epe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=jr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=urt(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==='"'?CC:prt,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 ape(t,e){for(var r=jr.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",I_t),r.secureEndpoint?(vw("Upgrading socket connection to TLS"),g4.connect({...VPe(zPe(r),"host","path","port"),socket:s})):s;s.destroy();let d=new Nd.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{vw("Replaying proxy buffer for failed request"),(0,YPe.default)(p.listenerCount("data")>0),p.push(u),p.push(null)}),d}};Dw.protocols=["http","https"];function I_t(t){t.resume()}function VPe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var E4=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,w_t=/public\.ecr\.aws|ecr-public\.aws\.com/,XPe=t=>E4.test(t)||tD(t),tD=t=>w_t.test(t),x_t=t=>{if(tD(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(E4);return e?e[4]:""},b_t=t=>{if(tD(t))return[];let e=t.match(E4);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)},ZPe=async(t,e,r)=>{let n=x_t(t),s=b_t(t),o={};s.length>0&&(gy(`RequestingAWSECRauthtokenfor${s.join(", ")}`),o.registryIds=s);let i,a=process.env.http_proxy||process.env.HTTP_PROXY||"";a&&(gy(`Usinghttpproxy${a}`),i=new _w(a));let c,l=process.env.https_proxy||process.env.HTTPS_PROXY||"";l&&(gy(`Usinghttpsproxy${l}`),c=new Dw(l));let u=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(tD(t)){Uc(`AWSPublicECRdetectedwith${n}region`);let p=await new KPe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:u,region:n,requestHandler:new y4.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 iu(f[0]),iu(f[1]),[{registry:"public.ecr.aws",username:f[0],password:f[1]}]}else{Uc(`AWSECRdetectedwith${n}region`);let p=await new JPe.ECR({customUserAgent:"docker-login-action",credentials:u,region:n,requestHandler:new y4.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 w=Buffer.from(f.authorizationToken||"","base64").toString("utf-8").split(":",2);iu(w[0]),iu(w[1]),A.push({registry:f.proxyEndpoint||"",username:w[0],password:w[1]})}return A}};async function C4(t){/true/i.test(t.ecr)||t.ecr=="auto"&&XPe(t.registry)?await R_t(t.registry,t.username,t.password,t.scope):await B_t(t.registry,t.username,t.password,t.scope)}async function eQe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),Uc(`Alternativeconfigdir:${e}`)),await Fu.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&_ee(n.stderr.trim())})}async function B_t(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 tQe(t,e,r,n)}async function R_t(t,e,r,n){Uc("Retrieving registries data through AWS SDK...");let s=await ZPe(t,e,r);for(let o of s)await tQe(o.registry,o.username,o.password,n)}async function tQe(t,e,r,n){let s,o=xN(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),Uc(`Logginginto${t}(scope${n})...`)):Uc(`Logginginto${t}...`),await Fu.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());Uc("Login Succeeded!")})}var rQe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],nQe=/true/i.test(process.env.STATE_logout||"");function sQe(t){JO("registries",JSON.stringify(t))}function oQe(t){JO("logout",t)}async function iQe(