varaHe=Object.create;varYy=Object.defineProperty;varcHe=Object.getOwnPropertyDescriptor;varlHe=Object.getOwnPropertyNames;varuHe=Object.getPrototypeOf,dHe=Object.prototype.hasOwnProperty;vari=(t,e)=>Yy(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(t&&(e=t(t=0)),e);varI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(varrine)Yy(t,r,{get:e[r],enumerable:!0})},NK=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsoflHe(e))!dHe.call(t,s)&&s!==r&&Yy(t,s,{get:()=>e[s],enumerable:!(n=cHe(e,s))||n.enumerable});returnt};varR=(t,e,r)=>(r=t!=null?aHe(uHe(t)):{},NK(e||!t||!t.__esModule?Yy(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>NK(Yy({},"__esModule",{value:!0}),t);varOK=I(Fm=>{"use strict";varg$t=require("net"),gHe=require("tls"),qM=require("http"),DK=require("https"),yHe=require("events"),y$t=require("assert"),EHe=require("util");Fm.httpOverHttp=CHe;Fm.httpsOverHttp=IHe;Fm.httpOverHttps=wHe;Fm.httpsOverHttps=SHe;functionCHe(t){vare=newAl(t);returne.request=qM.request,e}i(CHe,"httpOverHttp");functionIHe(t){vare=newAl(t);returne.request=qM.request,e.createSocket=kK,e.defaultPort=443,e}i(IHe,"httpsOverHttp");functionwHe(t){vare=newAl(t);returne.request=DK.request,e}i(wHe,"httpOverHttps");functionSHe(t){vare=newAl(t);returne.request=DK.request,e.createSocket=kK,e.defaultPort=443,e}i(SHe,"httpsOverHttps");functionAl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||qM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(varc=LK(s,o,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(Al,"TunnelingAgent");EHe.inherits(Al,yHe.EventEmitter);Al.prototype.addRequest=i(function(e,r,n,s){varo=this,a=GM({request:e},o.options,LK(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){o.emit("free",c,a)}i(l,"onFree");functionu(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Al.prototype.createSocket=i(function(e,r){varn=this,s={};n.sockets.push(s);varo=GM({},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")),Iu("making CONNECT request");vara=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(p){p.upgrade=!0}i(c,"onResponse");functionl(p,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");functionu(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){Iu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();varA=newError("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(m.length>0){Iu("got illegal response body from proxy"),f.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}returnIu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");functiond(p){a.removeAllListeners(),Iu(`tunneling socket could not be established, cause=%s
`);f.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if($7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:q3e(t)}if((typeof s=="string"||iE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Y7(r)){let f=new Uint8Array(d);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(K7,"extractBody");function eVe(t,e=!1){return t instanceof ReadableStream&&(WF(!iE.isDisturbed(t),"The body has already been consumed."),WF(!t.locked,"The stream is locked.")),K7(t,e)}i(eVe,"safelyExtractBody");function tVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(tVe,"cloneBody");function rVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(rVe,"throwIfAborted");function nVe(t){return{blob(){return Zm(this,r=>{let n=V7(this);return n===null?n="":n&&(n=K3e(n)),new Y3e([r],{type:n})},t)},arrayBuffer(){return Zm(this,r=>new Uint8Array(r).buffer,t)},text(){return Zm(this,W7,t)},json(){return Zm(this,oVe,t)},formData(){return Zm(this,r=>{let n=V7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=X3e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new z7;return o[eA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new z7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return Zm(this,r=>new Uint8Array(r),t)}}}i(nVe,"bodyMixinMethods");function sVe(t){Object.assign(t.prototype,nVe(t))}i(sVe,"mixinBody");async function Zm(t,e,r){if(W3e.brandCheck(t,r),X7(t))throw new TypeError("Body is unusable: Body has already been read");rVe(t[eA]);let n=$3e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[eA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await z3e(t[eA].body,o,s),n.promise)}i(Zm,"consumeBody");function X7(t){let e=t[eA].body;return e!=null&&(e.stream.locked||iE.isDisturbed(e.stream))}i(X7,"bodyUnusable");function oVe(t){return JSON.parse(W7(t))}i(oVe,"parseJSONFromBytes");function V7(t){let e=t[eA].headersList,r=V3e(e);return r==="failure"?null:r}i(V7,"bodyMimeType");Z7.exports={extractBody:K7,safelyExtractBody:eVe,cloneBody:tVe,mixinBody:sVe,streamRegistry:j7,hasFinalizationRegistry:J7,bodyUnusable:X7}});var AZ=I((dzt,mZ)=>{"use strict";var de=require("node:assert"),ye=ze(),{channels:eZ}=Gm(),JF=vF(),{RequestContentLengthMismatchError:Cp,ResponseContentLengthMismatchError:tZ,RequestAbortedError:lZ,HeadersTimeoutError:iVe,HeadersOverflowError:aVe,SocketError:rA,InformationalError:nA,BodyTimeoutError:cVe,HTTPParserError:lVe,ResponseExceededMaxSizeError:uVe}=ot(),{kUrl:uZ,kReset:Es,kClient:Ib,kParser:Pt,kBlocking:lE,kRunning:Nr,kPending:dZ,kSize:rZ,kWriting:Su,kQueue:Ni,kNoRef:aE,kKeepAliveDefaultTimeout:dVe,kHostHeader:pVe,kPendingIdx:fVe,kRunningIdx:Oo,kError:Vn,kPipelining:wb,kSocket:wp,kKeepAliveTimeoutValue:xb,kMaxHeadersSize:jF,kKeepAliveMaxTimeout:mVe,kKeepAliveTimeoutThreshold:AVe,kHeadersTimeout:hVe,kBodyTimeout:gVe,kStrictContentLength:ZF,kMaxRequests:nZ,kCounter:yVe,kMaxResponseSize:EVe,kOnError:sZ,kResume:Il,kHTTPContext:pZ}=Ft(),Js=jX(),oZ=Buffer.alloc(0),yb=Buffer[Symbol.species],Eb=ye.addListener,CVe=ye.removeAllListeners,Sp=Symbol("kIdleSocketValidation"),Ip=Symbol("kIdleSocketValidationTimeout"),nU=Symbol("kSocketUsed"),KF;async function IVe(){let t=process.env.JEST_WORKER_ID?_F():vo
`}return eZ.sendHeaders.hasSubscribers&&eZ.sendHeaders.publish({request:e,headers:h,socket:m}),!l||f===0?aZ(A,null,t,e,m,d,h,p):ye.isBuffer(l)?aZ(A,l,t,e,m,d,h,p):ye.isBlobLike(l)?typeof l.stream=="function"?cZ(A,l.stream(),t,e,m,d,h,p):TVe(A,l,t,e,m,d,h,p):ye.isStream(l)?NVe(A,l,t,e,m,d,h,p):ye.isIterable(l)?cZ(A,l,t,e,m,d,h,p):de(!1),!0}i(RVe,"writeH1");function NVe(t,e,r,n,s,o,a,c){de(o!==0||r[Nr]===0,"stream body cannot be pipelined");let l=!1,u=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(h){ye.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let A=new lZ;queueMicrotask(()=>m(A))}},"onClose"),m=i(function(A){if(!l){if(l=!0,de(s.destroyed||s[Su]&&r[Nr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?ye.destroy(e,A):ye.destroy(e)}},"onFinished");e.on("data",d).on("end",m).on("error",m).on("close",f),e.resume&&e.resume(),s.on("drain",p).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}i(NVe,"writeStream");function aZ(t,e,r,n,s,o,a,c){try{e?ye.isBuffer(e)&&(de(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r
`,"latin1"):(de(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Il]()}catch(l){t(l)}}i(aZ,"writeBuffer");async function TVe(t,e,r,n,s,o,a,c){de(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Cp;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Es]=!0),r[Il]()}catch(l){t(l)}}i(TVe,"writeBlob");async function cZ(t,e,r,n,s,o,a,c){de(o!==0||r[Nr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}i(u,"onDrain");let d=i(()=>new Promise((f,m)=>{de(l===null),s[Vn]?m(s[Vn]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[Vn])throw s[Vn];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(cZ,"writeIterable");var bb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Su]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Vn])throw r[Vn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[ZF])throw new Cp;process.emitWarning(new Cp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Es]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),r!==null&&s!==r){if(n[ZF])throw new Cp;process.emitWarning(new Cp)}e[Pt].timeout&&e[Pt].timeoutType===sA&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Su]=!1,e&&(de(n[Nr]<=1,"pipeline should only contain this request"),s(e))}};mZ.exports=SVe});var SZ=I((fzt,wZ)=>{"use strict";var Mo=require("node:assert"),{pipeline:vVe}=require("node:stream"),Ke=ze(),{RequestContentLengthMismatchError:sU,RequestAbortedError:hZ,SocketError:uE,InformationalError:oU}=ot(),{kUrl:Bb,kReset:Nb,kClient:oA,kRunning:Tb,kPending:PVe,kQueue:xu,kPendingIdx:iU,kRunningIdx:Ti,kError:Pi,kSocket:jr,kStrictContentLength:QVe,kOnError:aU,kMaxConcurrentStreams:IZ,kHTTP2Session:vi,kResume:bu,kSize:_Ve,kHTTPContext:DVe}=Ft(),wl=Symbol("open streams"),gZ,yZ=!1,Rb;try{Rb=require("node:http2")}catch{Rb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kVe,HTTP2_HEADER_METHOD:LVe,HTTP2_HEADER_PATH:OVe,HTTP2_HEADER_SCHEME:MVe,HTTP2_HEADER_CONTENT_LENGTH:FVe,HTTP2_HEADER_EXPECT:UVe,HTTP2_HEADER_STATUS:qVe}}=Rb;function GVe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(GVe,"parseH2Headers");async function HVe(t,e){t[jr]=e,yZ||(yZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Rb.connect(t[Bb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[IZ]});r[wl]=0,r[oA]=t,r[jr]=e,Ke.addListener(r,"error",zVe),Ke.addListener(r,"frameError",VVe),Ke.addListener(r,"end",WVe),Ke.addListener(r,"goaway",YVe),Ke.addListener(r,"close",function(){let{[oA]:s}=this,{[jr]:o}=s,a=this[jr][Pi]||this[Pi]||new uE("closed",Ke.getSocketInfo(o));if(s[vi]=null,s.destroyed){Mo(s[PVe]===0);let c=s[xu].splice(s[Ti]);for(let l=0;l<c.length;l++){let u=c[l];Ke.errorRequest(s,u,a)}}}),r.unref(),t[vi]=r,e[vi]=r,Ke.addListener(e,"error",function(s){Mo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Pi]=s,this[oA][aU](s)}),Ke.addListener(e,"end",function(){Ke.destroy(this,new uE("other side closed",Ke.getSocketInfo(this)))}),Ke.addListener(e,"close",function(){let s=this[Pi]||new uE("closed",Ke.getSocketInfo(this));t[jr]=null,this[vi]!=null&&this[vi].destroy(s),t[iU]=t[Ti],Mo(t[Tb]===0),t.emit("disconnect",t[Bb],[t],s),t[bu]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jVe(t,...s)},resume(){$Ve(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(HVe,"connectH2");function $Ve(t){let e=t[jr];e?.destroyed===!1&&(t[_Ve]===0&&t[IZ]===0?(e.unref(),t[vi].unref()):(e.ref(),t[vi].ref()))}i($Ve,"resumeH2");function zVe(t){Mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[jr][Pi]=t,this[oA][aU](t)}i(zVe,"onHttp2SessionError");function VVe(t,e,r){if(r===0){let n=new oU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[jr][Pi]=n,this[oA][aU](n)}}i(VVe,"onHttp2FrameError");function WVe(){let t=new uE("other side closed",Ke.getSocketInfo(this[jr]));this.destroy(t),Ke.destroy(this[jr],t)}i(WVe,"onHttp2SessionEnd");function YVe(t){let e=this[Pi]||new uE(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ke.getSocketInfo(this)),r=this[oA];if(r[jr]=null,r[DVe]=null,this[vi]!=null&&(this[vi].destroy(e),this[vi]=null),Ke.destroy(this[jr],e),r[Ti]<r[xu].length){let n=r[xu][r[Ti]];r[xu][r[Ti]++]=null,Ke.errorRequest(r,n,e),r[iU]=r[Ti]}Mo(r[Tb]===0),r.emit("disconnect",r[Bb],[r],e),r[bu]()}i(YVe,"onHTTP2GoAway");function JVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(JVe,"shouldSendContentLength");function jVe(t,e){let r=t[vi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Ke.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let b=0;b<u.length;b+=2){let N=u[b+0],P=u[b+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)p[N]?p[N]+=`,${P[Q]}`:p[N]=P[Q];else p[N]=P}let f,{hostname:m,port:A}=t[Bb];p[kVe]=o||`${m}
`);if(f===-1){rR("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],E=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,P]:Array.isArray(Q)?Q.push(P):w[N]=P}rR("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:E,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(ust,"parseProxyResponse");th.parseProxyResponse=ust});var wde=I(Ko=>{"use strict";var dst=Ko&&Ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pst=Ko&&Ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cde=Ko&&Ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dst(e,t,r);return pst(e,t),e},Ide=Ko&&Ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.HttpsProxyAgent=void 0;var nR=Cde(require("net")),gde=Cde(require("tls")),fst=Ide(require("assert")),mst=Ide(of()),Ast=Ade(),hst=require("url"),gst=hde(),kC=(0,mst.default)("https-proxy-agent"),yde=i(t=>t.servername===void 0&&t.host&&!nR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),sR=class extends Ast.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hst.URL(e):e,this.proxyHeaders=r?.headers??{},kC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ede(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No"host"provided');let s;n.protocol==="https:"?(kC("Creating `tls.Socket`: %o",this.connectOpts),s=gde.connect(yde(this.connectOpts))):(kC("Creating `net.Socket`: %o",this.connectOpts),s=nR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=nR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),rh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(rh("Creating `tls.Socket`: %o",this.connectOpts),o=Qst.connect(this.connectOpts)):(rh("Creating `net.Socket`: %o",this.connectOpts),o=Pst.connect(this.connectOpts)),await(0,Dst.once)(o,"connect"),o}};oR.protocols=["http","https"];Xo.HttpProxyAgent=oR;function Lst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Lst,"omit")});var Zde=I(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});ER.state=void 0;ER.state={instrumenterImplementation:void 0}});var hpe=I(xR=>{"use strict";Object.defineProperty(xR,"__esModule",{value:!0});xR.state=void 0;xR.state={operationRequestMap:new WeakMap}});var Yme=I(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var rut=require("os"),nut=require("util");function sut(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(sut,"_interopDefaultLegacy");var out=sut(nut);function iut(t,...e){process.stderr.write(`${out.default.format(t,...e)}${rut.EOL}`)}i(iut,"log");var Mme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ume,F3=[],U3=[],HN=[];Mme&&q3(Mme);var qme=Object.assign(t=>Gme(t),{enable:q3,enabled:G3,disable:aut,log:iut});function q3(t){Ume=t,F3=[],U3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?U3.push(new RegExp(`^${n.substr(1)}$`)):F3.push(new RegExp(`^${n}$`));for(let n of HN)n.enabled=G3(n.namespace)}i(q3,"enable");function G3(t){if(t.endsWith("*"))return!0;for(let e of U3)if(e.test(t))return!1;for(let e of F3)if(e.test(t))return!0;return!1}i(G3,"enabled");function aut(){let t=Ume||"";return q3(""),t}i(aut,"disable");function Gme(t){let e=Object.assign(r,{enabled:G3(t),destroy:cut,log:qme.log,namespace:t,extend:lut});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),HN.push(e),e}i(Gme,"createDebugger");function cut(){let t=HN.indexOf(this);return t>=0?(HN.splice(t,1),!0):!1}i(cut,"destroy");function lut(t){let e=Gme(`${this.namespace}:${t}`);return e.log=this.log,e}i(lut,"extend");var wI=qme,Hme=new Set,qN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,$N,zN=wI("azure");zN.log=(...t)=>{wI.log(...t)};var H3=["verbose","info","warning","error"];qN&&(Wme(qN)?$me(qN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${qN}'; logging is not enabled. Acceptable values: ${H3.join(", ")}.`));function $me(t){if(t&&!Wme(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${H3.join(",")}`);$N=t;let e=[];for(let r of Hme)Vme(r)&&e.push(r.namespace);wI.enable(e.join(","))}i($me,"setLogLevel");function uut(){return $N}i(uut,"getLogLevel");var Fme={verbose:400,info:300,warning:200,error:100};function dut(t){let e=zN.extend(t);return zme(zN,e),{error:GN(e,"error"),warning:GN(e,"warning"),info:GN(e,"info"),verbose:GN(e,"verbose")}}i(dut,"createClientLogger");function zme(t,e){e.log=(...r)=>{t.log(...r)}}i(zme,"patchLogMethod");function GN(t,e){let r=Object.assign(t.extend(e),{level:e});if(zme(t,r),Vme(r)){let n=wI.disable();wI.enable(n+","+r.namespace)}return Hme.add(r),r}i(GN,"createLogger");function Vme(t){return!!($N&&Fme[t.level]<=Fme[$N])}i(Vme,"shouldEnable");function Wme(t){return H3.includes(t)}i(Wme,"isAzureLogLevel");Ch.AzureLogger=zN;Ch.createClientLogger=dut;Ch.getLogLevel=uut;Ch.setLogLevel=$me});var V3=I(xI=>{"use strict";Object.defineProperty(xI,"__esModule",{value:!0});var Ih=new WeakMap,VN=new WeakMap,SI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Ih.set(this,[]),VN.set(this,!1)}get aborted(){if(!VN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return VN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ih.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ih.get(this).push(r)}removeEventListener(e,r){if(!Ih.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ih.get(this),s=n.indexOf(r);s>-
Polling status: ${sAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(rAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(Nut,"pollOperationHelper");async function cAe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:f,updateState:m,setDelay:A,isDone:h,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:w,status:x}=await Nut({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(iAe({status:x,response:w,state:r,stateProxy:n,isDone:h,processResult:p,getError:f,setErrorAsResult:y}),!sAe.includes(x)){let b=d?.(w);b&&A(b);let N=c?.(w,r);if(N!==void 0){let P=E!==N;r.config.operationLocation=N,u?.(N,P)}else u?.(E,!1)}m?.(r,w)}}i(cAe,"pollOperation");function lAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(lAe,"getOperationLocationPollingUrl");function uAe(t){return t.headers.location}i(uAe,"getLocationHeader");function dAe(t){return t.headers["operation-location"]}i(dAe,"getOperationLocationHeader");function pAe(t){return t.headers["azure-asyncoperation"]}i(pAe,"getAzureAsyncOperationHeader");function Tut(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(Tut,"findResourceLocation");function fAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=dAe(e),a=pAe(e),c=lAe({operationLocation:o,azureAsyncOperation:a}),l=uAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Tut({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(fAe,"inferLroMode");function mAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return eV(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return xf.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}i(mAe,"transformStatus");function vut(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return mAe({status:r,statusCode:t.statusCode})}i(vut,"getStatus");function Put(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return mAe({status:o,statusCode:t.statusCode})}i(Put,"getProvisioningState");function eV(t){return t===202?"running":t<300?"succeeded":"failed"}i(eV,"toOperationStatus");function AAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Qut(new Date(e)):r*1e3}}i(AAe,"parseRetryAfter");function hAe(t){let e=t.flatResponse.error;if(!e){xf.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xf.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(hAe,"getErrorFromResponse");function Qut(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(Qut,"calculatePollingIntervalFromDate");function gAe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return eV(e.rawResponse.sta
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(JEt,"logUnexpecedPropertyAccessOnce");functionjEt(){Object.keys(Lv).forEach(function(t){deleteLv[t]})}i(jEt,"resetLoggedProperties")});varMv=I(xc=>{"use strict";xc.__esModule=!0;xc.HandlebarsEnvironment=QW;functionlCe(t){returnt&&t.__esModule?t:{default:t}}i(lCe,"_interopRequireDefault");varFf=ds(),KEt=wo(),vW=lCe(KEt),XEt=BW(),ZEt=oCe(),eCt=NW(),Ov=lCe(eCt),tCt=TW(),rCt="4.7.9";xc.VERSION=rCt;varnCt=8;xc.COMPILER_REVISION=nCt;varsCt=7;xc.LAST_COMPATIBLE_COMPILER_REVISION=sCt;varoCt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};xc.REVISION_CHANGES=oCt;varPW="[object Object]";functionQW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},XEt.registerDefaultHelpers(this),ZEt.registerDefaultDecorators(this)}i(QW,"HandlebarsEnvironment");QW.prototype={constructor:QW,logger:Ov.default,log:Ov.default.log,registerHelper:i(function(e,r){if(Ff.toString.call(e)===PW){if(r)thrownewvW.default("Arg not supported with multiple helpers");Ff.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Ff.toString.call(e)===PW)Ff.extend(this.partials,e);else{if(typeofr>"u")thrownewvW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){deletethis.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Ff.toString.call(e)===PW){if(r)thrownewvW.default("Arg not supported with multiple decorators");Ff.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){tCt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};variCt=Ov.default.log;xc.log=iCt;xc.createFrame=Ff.createFrame;xc.logger=Ov.default});vardCe=I((Fv,uCe)=>{"use strict";Fv.__esModule=!0;function_W(t){this.string=t}i(_W,"SafeString");_W.prototype.toString=_W.prototype.toHTML=function(){return""+this.string};Fv.default=_W;uCe.exports=Fv.default});varpCe=I(DW=>{"use strict";DW.__esModule=!0;DW.wrapHelper=aCt;functionaCt(t,e){if(typeoft!="function")returnt;varr=i(function(){vars=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");returnr}i(aCt,"wrapHelper")});varyCe=I(Ad=>{"use strict";Ad.__esModule=!0;Ad.checkRevision=fCt;Ad.template=mCt;Ad.wrapProgram=Uv;Ad.resolvePartial=ACt;Ad.invokePartial=hCt;Ad.noop=hCe;functioncCt(t){returnt&&t.__esModule?t:{default:t}}i(cCt,"_interopRequireDefault");functionlCt(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}i(lCt,"_interopRequireWildcard");varuCt=ds(),Zh=lCt(uCt),dCt=wo(),Zl=cCt(dCt),eu=Mv(),fCe=BW(),pCt=pCe(),mCe=TW();functionfCt(t){vare=t&&t[0]||1,r=eu.COMPILER_REVISION;if(!(e>=eu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=eu.COMPILER_REVISION))if(e<eu.LAST_COMPATIBLE_COMPILER_REVISION){varn=eu.REVISION_CHANGES[r],s=eu.REVISION_CHANGES[e];thrownewZl.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}elsethrownewZl.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(fCt,"checkRevision");functionmCt(t,e){if(!e)thrownewZl.default("No environment passed to template");if(!t||!t.main)thrownewZl.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functionn(a,c,l){l.hash&&(c=Zh.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting `+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Ze="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Ze,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:D})}}if(Q[0]instanceofArray&&Q.length>1)thrownewError("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(Q[0]){case1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(Q[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case2:if(oe=this.productions_[Q[1]][1],Ie.$=c[c.length-oe],Ie._$={first_line:l[l.length-(oe||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(oe||1)].first_column,last_column:l[l.length-1].last_column},E&&(Ie._$.range=[l[l.length-(oe||1)].range[0],l[l.length-1].range[1]]),ae=this.performAction.call(Ie,d,f,p,this.yy,Q[1],c,l),typeofae<"u")returnae;oe&&(a=a.slice(0,-1*oe*2),c=c.slice(0,-1*oe),l=l.slice(0,-1*oe)),a.push(this.productions_[Q[1]][0]),c.push(Ie.$),l.push(Ie._$),De=u[a[a.length-2]][a[a.length-1]],a.push(De);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);elsethrownewError(o)},"parseError"),setInput:i(function(o){returnthis._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){varo=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;vara=o.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){vara=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varu=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){returnthis._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){varo=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){varo=this.match;returno.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){varo=this.pastInput(),a=newArray(o.length+1).join("-");returno+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);varo,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(varp=this._currentRules(),f=0;f<p.length&&(c=this._input.match(this.rules[p[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);returna?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){varo=this.next();returntypeofo<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:i(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};returnn.options={},n.performAction=i(function(o,a,c,l){functionu(p,f){returna.yytext=a.yytext.substring(p,a.yyleng-f+p)}i(u,"strip");vard=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;functionr(){this.yy={}}returni(r,"Parser"),r.prototype=t,t.Parser=r,newr})();zv.default=NCt;RCe.exports=zv.default});varJv=I((Yv,PCe)=>{"use strict";Yv.__esModule=!0;functionTCt(t){returnt&&t.__esModule?t:{default:t}}i(TCt,"_interopRequireDefault");varvCt=wo(),UW=TCt(vCt);functionVv(){this.parents=[]}i(Vv,"Visitor");Vv.prototype={constructor:Vv,mutating:!1,acceptKey:i(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!Vv.prototype[n.type])thrownewUW.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.a
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Hf(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Hf?e:(e=cY(e,this,r),new Hf(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=cY(e[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(cY(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};nP.default=pIe;fIe.exports=nP.default});var EIe=I((sP,yIe)=>{"use strict";sP.__esModule=!0;function gIe(t){return t&&t.__esModule?t:{default:t}}i(gIe,"_interopRequireDefault");var AIe=Mv(),RIt=wo(),uY=gIe(RIt),NIt=ds(),TIt=mIe(),hIe=gIe(TIt);function og(t){this.value=t}i(og,"Literal");function ig(){}i(ig,"JavaScriptCompiler");ig.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=AIe.COMPILER_REVISION,r=AIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return NIt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l<u;l++)a=o[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new uY.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
Moreinformationcanbefoundat:https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var lSt,uSt,Fwe,Uwe=g(()=>{lSt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),uSt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Fwe=i(t=>({applyToStack:i(e=>{e.add(lSt(),uSt)},"applyToStack")}),"getLongPollPlugin")});function Cd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var qwe=g(()=>{i(Cd,"setCredentialFeature")});var Gwe,LY,Hwe=g(()=>{Gwe=require("node:stream"),LY=i(t=>t?.body instanceof Gwe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Jf,Id,wd,$we,zwe,xP=g(()=>{Jf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Id=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),wd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>$we[m.step]-$we[f.step]||zwe[m.priority||"normal"]-zwe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(A=>{let h=Jf(A.name,A.aliases);if(h.includes(p)){f=!0;for(let y of h)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(A=>{if(A.middleware===p){f=!0;for(let h of Jf(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByReference"),c=i(p=>(t.forEach(f=>{p.add(f.middleware,{...f})}),e.forEach(f=>{p.addRelativeTo(f.middleware,{...f})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let f=[];return p.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(p),p.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let f=[],m=[],A={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let w of Jf(E.name,E.aliases))A[w]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let w of Jf(E.name,E.aliases))A[w]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=A[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${Id(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&E.after.push(y),y.relation==="before"&&E.before.push(y)}}),s(f).map(l).reduce((y,E)=>(y.push(...E),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:A,aliases:h}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=Jf(m,h);if(E.length>0){if(E.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Id(m,h)}'`);for(let w of E){let x=t.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${Id(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${Id(m,h)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let w of E)n.add(w)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:A,aliases:h}=f,y={middleware:p,...f},E=Jf(m,h);if(E.length>0){if(E.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Id(m,h)}'`);for(let w of E){let x=e.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${Id(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${Id(m,h)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let w of E)n.add(w)}e.push(y)},"addRelativeTo"),clone:i(()=>c(wd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let f=!1,m=i(A=>{let{tags:h,name:y,aliases:E}=A;if(h&&h.includes(p)){let w=Jf(y,E);for(let x of w)n.delete(x);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(wd());return f.use(p),f.identifyOnResolve(r||f.identifyOnRes
`),"stackTraceWarning"),wg={warn:console.warn}});functionBo(t){lete=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${vSt[n]}, ${l}${E8[r]}${e}${u}:${d}:${p} GMT`}varvSt,E8,PSt,Nxe,QSt,bg,_St,DSt,kSt,Rd,Bg,Ow,LSt,OSt,MSt,y8,FSt,USt,qSt,Dc,GSt,HSt,xg,Txe=g(()=>{g8();vSt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],E8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Bo,"dateToUtcString");PSt=newRegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Nxe=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-3339 date-times must be expressed as strings");lete=PSt.exec(t);if(!e)thrownewTypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Bd(xg(n)),p=Dc(s,"month",1,12),f=Dc(o,"day",1,31);returnOw(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),QSt=newRegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),bg=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-3339 date-times must be expressed as strings");lete=QSt.exec(t);if(!e)thrownewTypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Bd(xg(n)),f=Dc(s,"month",1,12),m=Dc(o,"day",1,31),A=Ow(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});returnd.toUpperCase()!="Z"&&A.setTime(A.getTime()-HSt(d)),A},"parseRfc3339DateTimeWithOffset"),_St=newRegExp(/^(?: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$/),DSt=newRegExp(/^(?: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$/),kSt=newRegExp(/^(?: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})$/),Rd=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-7231 date-times must be expressed as strings");lete=_St.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;returnOw(Bd(xg(o)),y8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=DSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;returnMSt(Ow(LSt(o),y8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=kSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;returnOw(Bd(xg(u)),y8(n),Dc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}thrownewTypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Bg=i(t=>{if(t==null)return;lete;if(typeoft=="number")e=t;elseif(typeoft=="string")e=Lw(t);elseif(typeoft=="object"&&t.tag===1)e=t.value;elsethrownewTypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)thrownewTypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");returnnewDate(Math.round(e*1e3))},"parseEpochTimestamp"),Ow=i((t,e,r,n)=>{lets=e-1;returnUSt(t,s,r),newDate(Date.UTC(t,s,r,Dc(n.hours,"hour",0,23),Dc(n.minutes,"minute",0,59),Dc(n.seconds,"seconds",0,60),GSt(n.fractionalMilliseconds)))},"buildDate"),LSt=i(t=>{lete=newDate().getUTCFullYear(),r=Math.floor(e/100)*100+Bd(xg(t));returnr<e?r+100:r},"parseTwoDigitYear"),OSt=50*365*24*60*60*1e3,MSt=i(t=>t.getTime()-newDate().getTime()>OSt?newDate(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),y8=i(t=>{lete=E8.indexOf(t);if(e<0)thrownewTypeError(`Invalid month: ${t}`);returne+1},"parseMonthByShortName"),FSt=[31,28,31,30,31,30,31,31,30,31,30,31],USt=i((t,e,r)=>{letn=FSt[e];if(e===1&&qSt(t)&&(n=29),r>n)thrownewTypeError(`Invalid day for ${E8[e]} in ${t}: ${r}`)},"validateDayOfMonth"),qSt=i(t=>t%4===0&&(t%100!==0|
`+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(sn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:B8(/^x-[\w-]+-request-?id$/,u),extendedRequestId:B8(/^x-[\w-]+-id-2$/,u),cfId:B8(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),B8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Ro,Fw=g(()=>{Ro=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider${s?"->":"(!)"}${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Td,KP=g(()=>{Fw();Td=class t extends Ro{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var XP,qxe=g(()=>{Fw();XP=class t extends Ro{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var ZP,N8=g(()=>{Fw();ZP=i((...t)=>async()=>{if(t.length===0)throw new Ro("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var eQ,T8=g(()=>{eQ=i(t=>()=>Promise.resolve(t),"fromValue")});var Tg,tQ=g(()=>{Tg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var on,rQ=g(()=>{on=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannotload${r}"${e}".Expected"true"or"false",got${t[e]}.`)}},"booleanSelector")});var Gxe,Hxe=g(()=>{Gxe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannotload${r}'${e}'.Expectednumber,got'${t[e]}'.`);return n},"numberSelector")});var Lr,nQ=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Lr||(Lr={}))});var $xe,zxe,v8,JSt,Oc,vg=g(()=>{$xe=require("node:os"),zxe=require("node:path"),v8={},JSt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Oc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${zxe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=JSt();return v8[s]||(v8[s]=(0,$xe.homedir)()),v8[s]},"getHomeDir")});var P8,Q8,sQ,_8=g(()=>{P8="AWS_PROFILE",Q8="default",sQ=i(t=>t.profile||process.env[P8]||Q8,"getProfileName")});var Vxe,Wxe,oQ,D8=g(()=>{Vxe=require("node:crypto"),Wxe=require("node:path");vg();oQ=i(t=>{let r=(0,Vxe.createHash)("sha1").update(t).digest("hex");return(0,Wxe.join)(Oc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var Yxe,Uw,Jxe,k8=g(()=>{Yxe=require("node:fs/promises");D8();Uw={},Jxe=i(async t=>{if(Uw[t])return Uw[t];let e=oQ(t),r=await(0,Yxe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Mc,jxe=g(()=>{Mc="."});var L8,Kxe,Xxe=g(()=>{L8=R(Rc()),Kxe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(L8.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===L8.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var Zxe,jSt,iQ,O8=g(()=>{Zxe=require("node:path");vg();jSt="AWS_CONFIG_FILE",iQ=i(()=>process.env[jSt]||(0,Zxe.join)(Oc(),".aws","config"),"getConfigFilepath")});var ebe,KSt,tbe,rbe=g(()=>{ebe=require("node:path");vg();KSt="AWS_SHARED_CREDENTIALS_FILE",tbe=i(()=>process.env[KSt]||(0,ebe.join)(Oc(),".aws","credentials"),"getCredentialsFilepath")});var nbe,XSt
`)}p.push(null)}),p}varvBe,QBe=g(()=>{vBe=require("node:stream");TBe();sa();i(PBe,"getAwsChunkedEncodingStream")});asyncfunction_Be(t,e){letr=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=awaits.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();leta=newUint8Array(Math.min(e,r)),c=0;for(letlofn){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}elsea.set(l,c);c+=l.length}returna}varDBe=g(()=>{i(_Be,"headStream")});varkBe,LBe,QJ,OBe=g(()=>{kBe=require("node:stream");Mw();DBe();sa();LBe=i((t,e)=>Yr(t)?_Be(t,e):newPromise((r,n)=>{lets=newQJ;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){leto=Lc(this.buffers);r(o)})}),"headStream"),QJ=classextendskBe.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){lets=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});varMBe,FBe=g(()=>{MBe=i(t=>{if(typeoft=="string")returnt;if(typeoft!="object"||typeoft.byteOffset!="number"||typeoft.byteLength!="number")thrownewError("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");returnnewTextDecoder("utf-8").decode(t)},"toUtf8")});asyncfunction_J(t){returnt.arrayBuffer().then(e=>newUint8Array(e))}asyncfunctionDJ(t){lete=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=awaitr.read();if(o&&(e.push(o),n+=o.length),s)break}returnLc(e,n)}varUBe,kJ=g(()=>{Mw();sa();UBe=i(asynct=>vd(t)?_J(t):DJ(t),"streamCollector");i(_J,"collectBlob");i(DJ,"collectReadableStream")});varqBe,HBe,GBe,$Be=g(()=>{NJ();x8();FBe();kJ();sa();qBe="The stream has already been transformed.",HBe=i(t=>{if(!GBe(t)&&!Yr(t)){lets=t?.__proto__?.constructor?.name||t;thrownewError(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}lete=!1,r=i(async()=>{if(e)thrownewError(qBe);returne=!0,awaitUBe(t)},"transformToByteArray"),n=i(s=>{if(typeofs.stream!="function")thrownewError(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);returns.stream()},"blobToWebStream");returnObject.assign(t,{transformToByteArray:r,transformToString:i(asyncs=>{leto=awaitr();if(s==="base64")returnQQ(o);if(s==="hex")returnhi(o);if(s===void0||s==="utf8"||s==="utf-8")returnMBe(o);if(typeofTextDecoder=="function")returnnewTextDecoder(s).decode(o);thrownewError("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)thrownewError(qBe);if(e=!0,GBe(t))returnn(t);if(Yr(t))returnt;thrownewError(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),GBe=i(t=>typeofBlob=="function"&&tinstanceofBlob,"isBlobInstance")});varzBe,DQ,LJ,OJ=g(()=>{zBe=require("node:stream");Mw();kJ();sa();DQ=i(t=>vd(t)?_J(t):Yr(t)?DJ(t):newPromise((e,r)=>{letn=newLJ,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){leto=Lc(this.bufferedBytes);e(o)})}),"streamCollector"),LJ=classextendszBe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});varkQ,VBe,LQ,WBe=g(()=>{kQ=require("node:stream");bd();$Be();OJ();VBe="The stream has already been transformed.",LQ=i(t=>{if(!(tinstanceofkQ.Readable))try{returnHBe(t)}catch{lets=t?.__proto__?.constructor?.name||t;thrownewError(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}lete=!1,r=i(async()=>{if(e)thrownewError(VBe);returne=!0,awaitDQ(t)},"transformToByteArray");returnObject.assign(t,{transformToByteArray:r,transformToString:i(asyncn=>{lets=awaitr();returnn===void0||Buffer.isEncoding(n)?na(s.buffer,s.byteOffset,s.byteLength).toString(n):newTextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)thrownewError(VBe);if(t.readableFlowing!==null)thrownewError("The stream has been consumed by other callbacks.");if(typeofkQ.Readable.toWeb!="function")thrownewError("Readable.toWeb() is not supported. Please ensure a polyfill is available.");returne=!0,kQ.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});asyncfunctionYBe(t){returntypeoft.stream=="function"&&(t=t.stream()),t.tee()}varJBe=g(()=>{i(YBe,"splitStream")});asyncfunctionjBe(t){if(Yr(t)||vd(t))returnYBe(t);lete=newMJ.PassThrough,r=newMJ.PassThrough;returnt.pipe(e),t.pipe(r),[e,r]}varMJ,KBe=g(()=>{MJ=require("node:stream");JBe();sa();i(jBe,"splitStream")});varsm={};Mr(sm,{ChecksumStream:()=>Lg,Hash:()=>TQ,LazyJsonString:()=>kr,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>nm,_parseEpochTimestamp:()=>Nd,_parseRfc3339DateTimeWithOffset:()=>zP,_parseRfc7231DateTime:()=>VP,calculateBodyLength:()=>kc,concatBytes:()=>Lc,copyDocumentWithTransform:()=>mxe,createBufferedReadable:()=>BBe,createChecksumStream:()=>IBe,dateToUtcString:()=>Bo,deserializerMiddleware:()=>jP,deserializerMiddlewareOption:()=>xJ,expectBoolean:()=>gxe,expectByte:()=>MP,expectFloat32:()=>kw,expectInt:()=>yxe,expectInt32:()=>LP,expectLong:()=>Ig,expectNonNull:()=>Exe,expectNumber:()=>Cg,expectObject:()=>A8,expectShort:()=>OP,expectString:()=>Cxe,expectUnion:()=>UP,fromArrayBuffer:()=>na,fromBase64:()=>pr,fromHex:()=>JP,fromString:()=>xd,fromUtf8:()=>Wr,generateIdempotencyToken:()=>Qo,getAwsChunkedEncodingStream:()=>PBe,getSerdePlugin:()=>aBe,handleFloat:()=>wxe,hasOwn:()=>Ce,headStream:()=>LBe,isArrayBuffer:()=>_P,isBlob:()=>vd,isReadableStream:()=>Yr,limitedParseDouble:()=>GP,limitedParseFloat:()=>Sxe,limitedParseFloat32:()=>xxe,logger:()=>wg,nv:()=>YP,parseBoolean:()=>hxe,parseEpochTimestamp:()=>Bg,parseRfc3339DateTime:()=>Nxe,parseRfc3339DateTimeWithOffset:()=>bg,parseRfc7231DateTime:()=>Rd,quoteHeader:()=>$P,sdkStreamMixin:()=>LQ,serializerMiddleware:()=>NQ,serializerMiddlewareOption:()=>bJ,splitEvery:()=>WP,splitHeader:()=>Rg,splitStream:()=>jBe,streamCollector:()=>DQ,strictParseByte:()=>HP,strictParseDouble:()=>Lw,strictParseFloat:()=>Ixe,strictParseFloat32:()=>qP,strictPar
`));return r(s)},"httpAuthSchemeMiddleware")});var y_,la,xNe=g(()=>{g_();y_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},la=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(lm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),y_)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var E_,q5,bNe=g(()=>{g_();E_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},q5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(lm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),E_)},"applyToStack")}),"getHttpAuthSchemePlugin")});var BNe=g(()=>{g_();xNe();bNe()});var nbt,sbt,iS,G5=g(()=>{me();ke();nbt=i(t=>e=>{throw e},"defaultErrorHandler"),sbt=i((t,e)=>{},"defaultSuccessHandler"),iS=i(t=>(e,r)=>async n=>{if(!Ve.isInstance(n.request))return e(n);let o=Rt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||nbt)(a));return(l.successHandler||sbt)(u.response,a),u},"httpSigningMiddleware")});var C_,ua,RNe=g(()=>{G5();C_={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ua=i(t=>({applyToStack:i(e=>{e.addRelativeTo(iS(t),C_)},"applyToStack")}),"getHttpSigningPlugin")});var NNe=g(()=>{G5();RNe()});var Ii,TNe=g(()=>{Ii=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function vNe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,f;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)f=await obt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalidclient,expectedinstanceof${t.name}`);yield f;let m=d;d=ibt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var obt,ibt,PNe=g(()=>{obt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(vNe,"createPaginator");ibt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function QNe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var _Ne=g(()=>{i(QNe,"setFeature")});var Do,DNe=g(()=>{ke();Do=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!Ce(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var H5,ty,kNe=g(()=>{me();H5=R(Rc()),ty=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=Ve.clone(e);if(n.in===H5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===H5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme}${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var ry,LNe=g(()=>{me();ry=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ve.clone(e);if(!r.token)throw new Error("request could n
${um(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){letr=[];for(letoofe.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));letn=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;returnL_(n).replace(/%2F/g,"/")}returne}validateResolvedCredentials(e){if(typeofe!="object"||typeofe.accessKeyId!="string"||typeofe.secretAccessKey!="string")thrownewError("Resolved credential object is not valid")}formatDate(e){letr=gbt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){returnObject.keys(e).sort().join(";")}},oy={},M_=[],F_=i((t,e,r)=>`${t}/${e}/${r}/${Sj}`,"createScope"),XTe=i(async(t,e,r,n,s)=>{leto=awaitDTe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${um(o)}:${e.sessionToken}`;if(ainoy)returnoy[a];for(M_.push(a);M_.length>JTe;)deleteoy[M_.shift()];letc=`AWS4${e.secretAccessKey}`;for(letlof[r,n,s,Sj])c=awaitDTe(t,c,l);returnoy[a]=c},"getSigningKey"),Ebt=i(()=>{M_.length=0,Object.keys(oy).forEach(t=>{deleteoy[t]})},"clearCredentialCache"),DTe=i((t,e,r)=>{letn=newt(e);returnn.update(gS(r)),n.digest()},"hmac"),Aj=i(({headers:t},e,r)=>{letn={};for(letsofObject.keys(t).sort()){if(t[s]==null)continue;leto=s.toLowerCase();(oin$Te||e?.has(o)||zTe.test(o)||VTe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}returnn},"getCanonicalHeaders"),U_=i(async({headers:t,body:e},r)=>{for(letnint)if(iy(t,n)&&n.toLowerCase()===q_)returnt[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeofe=="string"||ArrayBuffer.isView(e)||dbt(e)){letn=newr;returnn.update(gS(e)),um(awaitn.digest())}returnYTe},"getPayloadHash"),ZTe=i((t,e)=>{t=t.toLowerCase();for(letrine)if(iy(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),eve=i((t,e={})=>{let{headers:r,query:n={}}=kTe.clone(t);for(letsinr){if(!iy(r,s))continue;leto=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],deleter[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),hj=i(t=>{t=kTe.clone(t);for(leteint.headers)iy(t.headers,e)&&qTe.indexOf(e.toLowerCase())>-1&&deletet.headers[e];returnt},"prepareRequest"),gj=classextendsG_{static{i(this,"SignatureV4")}headerFormatter=newfj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}asyncpresign(e,r={}){let{signingDate:n=newDate,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=awaitthis.credentialProvider();this.validateResolvedCredentials(p);letf=u??awaitthis.regionProvider(),{longDate:m,shortDate:A}=this.formatDate(n);if(s>jTe)returnPromise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");leth=F_(A,f,d??this.service),y=eve(hj(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[Cj]=p.sessionToken),y.query[LTe]=O_,y.query[OTe]=`${p.accessKeyId}/${h}`,y.query[yj]=m,y.query[FTe]=s.toString(10);letE=Aj(y,o,c);returny.query[MTe]=this.getCanonicalHeaderList(E),y.query[Ej]=awaitthis.getSignature(m,h,this.getSigningKey(p,f,A,d),this.createCanonicalRequest(y,E,awaitU_(e,this.sha256))),y}asyncsign(e,r){returntypeofe=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}asyncsignEvent({headers:e,payload:r},{signingDate:n=newDate,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){letl=o??awaitthis.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=F_(u,l,a??this.service),f=awaitU_({headers:{},body:r},this.sha256),m=newthis.sha256;m.update(e);letA=um(awaitm.digest()),h=[WTe,d,p,s,A,f].join(`
`);returnthis.signString(h,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}asyncsignMessage(e,{signingDate:r=newDate,signingRegion:n,signingService:s,eventStreamCredentials:o}){returnthis.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}asyncsignString(e,{signingDate:r=newDate,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){leta=o??awaitthis.credentialProvider();this.validateResolvedCredentials(a);letc=n??awaitthis.regionProvider(),{shortDate:l}=this.formatDate(r),u=newthis.sha256(awaitthis.getSigningKey(a,c,l,s));returnu.update(gS(e)),um(awaitu.digest())}asyncsignRequest(e,{signingDate:r=newDate,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){letc=awaitthis.credentialProvider();this.validateResolvedCredentials(c);letl=o??awaitthis.regionProvider(),u=hj(e),{longDate:d,shortDate:p}=this.formatDate(r),f=F_(p,l,a??this.service);u.headers[wj]=d,c.sessionToken&&(u.headers[HTe]=c.sessionToken);letm=awaitU_(u,this.sha256);!ZTe(q_,u.headers)&&this.applyChecksum&&(u.headers[q_]=m);letA=Aj(u,s,n),h=awaitthis.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,A,m));returnu.headers[Ij]=`${O_} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${h}`,u}asyncgetSignature(e,r,n,s){leto=awaitthis.createStringToSign(e,r,s,O_),a=newthis.sha256(awaitn);returna.update(gS(o)),um(awaita.digest())}getSigningKey(e,r,n,s){returnXTe(this.sha256,e,n,r,s||this.service)}},Cbt={SignatureV4a:null};$e.ALGORITHM_IDENTIFIER=O_;$e.ALGORITHM_IDENTIFIER_V4A=hbt;$e.ALGORITHM_QUERY_PARAM=LTe;$e.ALWAYS_UNSIGNABLE_HEADERS=$Te;$e.AMZ_DATE_HEADER=wj;$e.AMZ_DATE_QUERY_PARAM=yj;$e.AUTH_HEADER=Ij;$e.CREDENTIAL_QUERY_PARAM=OTe;$e.DATE_HEADER=UTe;$e.EVENT_ALGORITHM_IDENTIFIER=WTe;$e.EXPIRES_QUERY_PARAM=FTe;$e.GENERATED_HEADERS=qTe;$e.HOST_HEADER=mbt;$e.KEY_TYPE_IDENTIFIER=Sj;$e.MAX_CACHE_SIZE=JTe;$e.MAX_PRESIGNED_TTL=jTe;$e.PROXY_HEADER_PATTERN=zTe;$e.REGION_SET_PARAM=fbt;$e.SEC_HEADER_PATTERN=VTe;$e.SHA256_HEADER=q_;$e.SIGNATURE_HEADER=GTe;$e.SIGNATURE_QUERY_PARAM=Ej;$e.SIGNED_HEADERS_QUERY_PARAM=MTe;$e.SignatureV4=gj;$e.SignatureV4Base=G_;$e.TOKEN_HEADER=HTe;$e.TOKEN_QUERY_PARAM=Cj;$e.UNSIGNABLE_PATTERNS=Abt;$e.UNSIGNED_PAYLOAD=YTe;$e.clearCredentialCache=Ebt;$e.createScope=F_;$e.getCanonicalHeaders=Aj;$e.getCanonicalQuery=KTe;$e.getPayloadHash=U_;$e.getSigningKey=XTe;$e.hasHeader=ZTe;$e.moveHeadersToQuery=eve;$e.prepareRequest=hj;$e.signatureV4aContainer=Cbt});functionIbt(t,{credentials:e,credentialDefaultProvider:r}){letn;returne?e?.memoized?n=e:n=cS(e,aS,ny):r?n=Ii(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{thrownewError("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}functionwbt(t,e){if(e.configBound)returne;letr=i(asyncn=>e({...n,callerClientConfig:t}),"fn");returnr.memoized=e.memoized,r.configBound=!0,r}varbj,Bj,tve=g(()=>{gt();hs();bj=R(xj()),Bj=i(t=>e=>{letr=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;letp=Ibt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=wbt(e,p);if(n&&!f.attributed){letm=typeofr=="object"&&r!==null;s=i(asyncA=>{lety=awaitf(A);returnm&&(!y.$source||Object.keys(y.$source).length===0)?Cd(y,"CREDENTIALS_CODE","e"):y},"resolvedCredentials"),s.memoized=f.memoized,s.configBound=f.configBound,s.attributed=!0}elses=f},get(){returns},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;returne.signer?l=Ii(e.signer):e.regionInfoProvider?l=i(()=>Ii(e.region)().then(asyncd=>[awaite.regionInfoProvider(d,{useFipsEndpoint:awaite.useFipsEndpoint(),useDualstackEndpoint:awaite.useDu
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");functionw0t(t){returnnewA0t({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(w0t,"createGetRequest");asyncfunctionS0t(t,e){letn=awaith0t(t.body).transformToString();if(t.statusCode===200){lets=JSON.parse(n);if(typeofs.AccessKeyId!="string"||typeofs.SecretAccessKey!="string"||typeofs.Token!="string"||typeofs.Expiration!="string")thrownewdm("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:g0t(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){lets={};try{s=JSON.parse(n)}catch{}throwObject.assign(newdm(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}thrownewdm(`Server responded with status: ${t.statusCode}`,{logger:e})}i(S0t,"getCredentials");varx0t=i((t,e,r)=>async()=>{for(letn=0;n<e;++n)try{returnawaitt()}catch{awaitnewPromise(o=>setTimeout(o,r))}returnawaitt()},"retryWrapper"),b0t="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B0t="http://169.254.170.2",R0t="AWS_CONTAINER_CREDENTIALS_FULL_URI",N0t="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",T0t="AWS_CONTAINER_AUTHORIZATION_TOKEN",v0t=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");lete,r=t.awsContainerCredentialsRelativeUri??process.env[b0t],n=t.awsContainerCredentialsFullUri??process.env[R0t],s=t.awsContainerAuthorizationToken??process.env[T0t],o=t.awsContainerAuthorizationTokenFile??process.env[N0t],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${B0t}${r}`;elseif(n)e=n;elsethrownewdm(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});letc=newURL(e);I0t(c,t.logger);letl=f0t.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=x0t(async()=>{letp=w0t(c);o?p.headers.Authorization=Pve((awaitm0t.readFile(o)).toString()):s&&(p.headers.Authorization=Pve(s));try{letf=awaitl.handle(p,{requestTimeout:u});returnS0t(f.response).then(m=>p0t(m,"CREDENTIALS_HTTP","z"))}catch(f){thrownewdm(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);returnasync()=>{try{returnawaitd()}finally{l.destroy?.()}}},"fromHttp"),Pve=i(t=>{if(t.includes(`\r
`))thrownewdm("Authorization token contains invalid \\r\\n sequence.");returnt},"validateToken");Qve.fromHttp=v0t});functionP0t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}functionQ0t(t){return{schemeId:"smithy.api#noAuth"}}var_ve,Dve,kve,Gj=g(()=>{Gn();Se();_ve=i(async(t,e,r)=>({operation:Rt(e).operation,region:awaitIt(t.region)()||(()=>{thrownewError("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(P0t,"createAwsAuthSigv4HttpAuthOption");i(Q0t,"createSmithyApiNoAuthHttpAuthOption");Dve=i(t=>{lete=[];returnt.operation==="CreateToken"?e.push(Q0t(t)):e.push(P0t(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),kve=i(t=>{lete=il(t);returnObject.assign(e,{authSchemePreference:It(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});varLve,Ove,Hj=g(()=>{Lve=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),Ove={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});varYd,SS=g(()=>{Yd={name:"@aws-sdk/nested-clients",version:"3.997.44",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&y6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofself-closingtag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofopeningtag.");++e.i;let o=[],a=[],c=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,o.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i<e.z&&e.x[e.i]!=="<";)d+=e.x[e.i++];o.push(e.decodeEntities(d))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${l}>.`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(`
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&y6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&y6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdkXMLparseerror:unclosedDOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};TD.XmlNode=E6;TD.XmlText=ND;TD.parseXML=dBt});var EPe,Zd,PD=g(()=>{EPe=R(vD());Se();me();Je();xe();ha();uD();vS();Zd=class extends mr{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ld(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=L.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Kt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=L.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let f of p)l.push(this.readSchema(c,f));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let f of u){let m=f[d],A=f[p];m==="__proto__"&&xi(a),a[m]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new jd(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),f=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(f),r[f]!=null&&(a[u]=this.readSchema(d,r[f]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,EPe.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Zf(o)}return{}}}});var Sy,I6=g(()=>{me();Je();xe();xe();ha();Sy=class extends mr{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=L.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Tt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Qo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof je?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),cn(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Bo(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?t
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),oNt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso-fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=tNt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await rNt(t))[l];if(!d)throw new Ia(`Profile ${l} was not found.`,{logger:t.logger});if(!g_e(d))throw new Ia(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await nNt(t))[d.sso_session],w=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Ia("ConflictingSSOregion"+w,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Ia("ConflictingSSOstart_url"+w,{tryNextLink:!1,logger:t.logger});d.sso_region=E.sso_region,d.sso_start_url=E.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:A,sso_session:h}=y_e(d,t.logger);return h_e({ssoStartUrl:p,ssoSession:h,ssoAccountId:f,ssoRegion:m,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Ia('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return h_e({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");KD.fromSSO=oNt;KD.isSsoProfile=g_e;KD.validateSsoProfile=y_e});var K6=I(ZD=>{var{SignatureV4:iNt,signatureV4aContainer:E_e}=xj(),tx={CrtSignerV4:null},J6="X-Amz-S3session-Token",C_e=J6.toLowerCase(),XD=class extends iNt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=I_e(r);e.headers[C_e]=r.sessionToken;let o=this;return w_e(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=I_e(r);return delete e.headers[C_e],e.headers[J6]=r.sessionToken,e.query=e.query??{},e.query[J6]=r.sessionToken,w_e(this,s),this.presign(e,n)}};function I_e(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(I_e,"getCredentialsWithoutSessionToken");function w_e(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(w_e,"setSingleOverride");var j6=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tx.CrtSignerV4=="function"?"crt":typeof E_e.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new XD(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=tx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=tx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT de
`,"utf-8")],s=jst(n);s&&t.headers.set("Content-Length",s),t.body=awaitqde(n)}i(Kst,"buildRequestBody");varLC="multipartPolicy",Xst=70,Zst=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functioneot(t){if(t.length>Xst)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Zst.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}i(eot,"assertValidBoundary");functionpR(){return{name:LC,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?eot(r):r=Wst(),t.headers.set("Content-Type",`${o}; boundary=${r}`),awaitKst(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}i(pR,"multipartPolicy");functionfR(){returnOB()}i(fR,"createEmptyPipeline");varGde=DB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),m7t=Gde.logger;functionVa(t){returnGde.createClientLogger(t)}i(Va,"createClientLogger");varWa=Va("core-rest-pipeline");functionmG(t={}){returnHB({logger:Wa.info,...t})}i(mG,"logPolicy");varAG=$B;functionhG(t={}){returnzB(t)}i(hG,"redirectPolicy");varmR=R(require("node:os"),1),AR=R(require("node:process"),1);functionHde(){return"User-Agent"}i(Hde,"getHeaderName");asyncfunction$de(t){if(AR.default&&AR.default.versions){lete=`${mR.default.type()}${mR.default.release()}; ${mR.default.arch()}`,r=AR.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i($de,"setPlatformSpecificData");varhR="1.22.2";functioncot(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}i(cot,"getUserAgentString");functionzde(){returnHde()}i(zde,"getUserAgentHeaderName");asyncfunctiongR(t){lete=newMap;e.set("core-rest-pipeline",hR),await$de(e);letr=cot(e);returnt?`${t}${r}`:r}i(gR,"getUserAgentValue");varVde=zde(),Wde="userAgentPolicy";functiongG(t={}){lete=gR(t.userAgentPrefix);return{name:Wde,asyncsendRequest(r,n){returnr.headers.has(Vde)||r.headers.set(Vde,awaite),n(r)}}}i(gG,"userAgentPolicy");varfo=classextendsError{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionyG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((o,a)=>{functionc(){a(newfo(s??"The operation was aborted."))}i(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",u)}i(l,"removeListeners");functionu(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)returnc();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(yG,"createAbortablePromise");varfot="The delay was aborted.";functionOC(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnyG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??fot})}i(OC,"delay");functionXu(t){if(ef(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(Xu,"getErrorMessage");functionYde(t){returnef(t)}i(Yde,"isError");functionnh(){returnZp()}i(nh,"randomUUID");varlt=nf;varJde=Symbol("rawContent");functionCG(t){returntypeoft[Jde]=="function"}i(CG,"hasRawContent");functionjde(t){returnCG(t)?t[Jde]():t}i(jde,"getRawContent");varyR=LC;functionIG(){lett=pR();return{name:yR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)CG(n.body)&&(n.body=jde(n.body));returnt.sendRequest(e,r)},"sendRequest")}}i(IG,"multipartPolicy");varwG=VB;functionSG(){returnWB()}i(SG,"decompressResponsePolicy");fun
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!Oit(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Ir("InvalidTag",p,ns(t,o))}let u=Qit(t,o);if(u===!1)return Ir("InvalidAttr","Attributes for '"+l+"' have open quote.",ns(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let f=kpe(d,e);if(f===!0)n=!0;else return Ir(f.err.code,f.err.msg,ns(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ir("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ns(t,a));if(r.length===0)return Ir("InvalidTag","Closing tag '"+l+"' has not been opened.",ns(t,a));{let p=r.pop();if(l!==p.tagName){let f=ns(t,p.tagStartPos);return Ir("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ns(t,a))}r.length==0&&(s=!0)}}else return Ir("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ns(t,o));else{let p=kpe(d,e);if(p!==!0)return Ir(p.err.code,p.err.msg,ns(t,o-d.length+p.err.line));if(s===!0)return Ir("InvalidXml","Multiple possible root nodes found.",ns(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=Dpe(t,o);continue}else if(t[o+1]==="?"){if(o=_pe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=kit(t,o);if(p==-1)return Ir("InvalidChar","char '&' is not expected.",ns(t,o));o=p}else if(s===!0&&!Qpe(t[o]))return Ir("InvalidXml","Extra text at the end",ns(t,o));t[o]==="<"&&o--}}else{if(Qpe(t[o]))continue;return Ir("InvalidChar","char '"+t[o]+"' is not expected.",ns(t,o))}if(n){if(r.length==1)return Ir("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ns(t,r[0].tagStartPos));if(r.length>0)return Ir("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ir("InvalidXml","Start tag expected.",1);return!0}i(PR,"validate");function Qpe(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Qpe,"isWhiteSpace");function _pe(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 Ir("InvalidXml","XML declaration allowed only at the start of the document.",ns(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(_pe,"readPI");function Dpe(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}i(Dpe,"readCommentAndCDATA");var vit='"',Pit="'";function Qit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===vit||t[e]===Pit)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}}i(Qit,"readAttributeStr");var _it=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kpe(t,e){let r=TR(t,_it),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",JC(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",JC(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ir("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",JC(r[s]));let o=r[s][2];if(!Lit(o))return Ir("InvalidAttr","Attribute '"+o+"' is an invalid name.",JC(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Ir("InvalidAttr","Attribute '"+o+"' is repeated.",JC(r[s]))}return!0}i(kpe,"validateAttributeString");function Dit(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}i(Dit,"validateNumberAmpersand");function kit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Dit(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}i(kit,"validateAmpersand");function Ir(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Ir,"getErrorObject");function Lit(t){return YG(t)}i(Lit,"validateAttrName");function Oit(t){return YG(t)}i(Oit,"validateTagName");function ns(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(ns,"getLineNumberForPosition");function JC(t){return t.startIndex+t[1].length}i(JC,"getPositionFromMatch");var Lpe={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"},Ope={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",ntil
`);let e=new vs("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new XC(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=lh(t,">",c,"ClosingTagisnotclosed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=rH(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);f&&s.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=nH(t,c,!1,"?>");if(!d)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new vs(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=lh(t,"-->",c+4,"Commentisnotclosed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=lh(t,"]]>",c,"CDATAisnotclosed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=nH(t,c,s.removeNSPrefix);if(!d){let P=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${P}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:m}=rH(s.transformTagName,p,m,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),A=p!==m);let w=null,x={},b;b=iat(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&A&&(w=this.buildAttributesMap(m,this.matcher,p),w&&(x=oat(w,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let P="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let J=this.readStopNodeData(t,f,h+1);if(!J)throw new Error(`Unexpected end of ${f}`);c=J.i,P=J.tagContent}let Q=new vs(p);w&&(Q[":@"]=w),Q.add(s.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=rH(s.transformTagName,p,m,s));let P=new vs(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let P=new vs(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let P=new vs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),r=P}n="",c=h}}}else n+=t[c];return e.child},"parseXml"
${c}:${decodeURIComponent(o[c])}`}returnn}};varsr=classextendsff{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewnI(e,r,this)}computeHMACSHA256(e){return(0,mfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varUr=Va("storage-common");varZo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Zo||(Zo={}));varsd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Zo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Fat=newfo("The operation was aborted."),sI=classextendsKa{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=sd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:sd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):sd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:sd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:sd.maxRetryDelayInMs):sd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:sd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:sd.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=HR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=nd(s.url,Ml.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(Ur.info(`RetryPolicy: =====> Try=${n}${o?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))returna;r=r||!o&&a.status===404}catch(c){if(Ur.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throwc}returnawaitthis.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returnUr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leto=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(letaofo)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)returnUr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnUr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnUr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Ne.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Ur.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){lets=0;if(e)switch(this.retryOptions.retryPolicyType){caseZo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseZo.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnUr.info(`RetryPolicy: Delay for ${s}ms`),VR(s,n,Fat)}};varoI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewsI(e,r,this.retryOptions)}};varUat="storageBrowserPolicy";functionAfe(){return{name:Uat,asyncsendRequest(t,e){returnlt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,Ml.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Ne.COOKIE),t.headers.delete(Ne.CONTENT_LENGTH)),e(t)}}}i(Afe,"storageBrowserPolicy");varqat="StorageCorrectContentLengthPolicy";functionhfe(){functiont(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=$R(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=zR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let f=p.toLowerCase();u[f]=l[p],d.push(f)}d.sort();for(let p of d)c+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newWi(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(Jlt,"generateBlobSASQueryParameters20150405");functionjlt(t,e){if(t=wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(jlt,"generateBlobSASQueryParameters20181109");functionKlt(t,e){if(t=wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:o}}i(Klt,"generateBlobSASQueryParameters20201206");functionXlt(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(Xlt,"generateBlobSASQueryParametersUDK20181109");functionZlt(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(Zlt,"generateBlobSASQueryParametersUDK20200210");functioneut(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(eut,"generateBlobSASQueryParametersUDK20201206");functiontut(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Vi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newWi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(tut,"generateBlobSASQueryParametersUDK20250705");functionIf(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}i(If,"getCanonicalName");functionwf(t){lete=t.version?t.version:jR;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}i(wf,"SASSignatureValuesSanityCheckAndAutofill");varyI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=nh()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gi||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnee.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>le(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gi||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnee.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=le(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,s})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.i
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"}};Sh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bf=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
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"}};Bf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Xut=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},oV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function PAe(t,e,r){return Xut(this,void 0,void 0,function*(){var n;let s=new Wl(t),o=s.getBlockBlobClient(),a=new oV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new tT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Er(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(PAe,"uploadCacheArchiveSDK");var _Ae=R(require("buffer"),1),hc=R(require("fs"),1),DAe=R(require("stream"),1),kAe=R(require("util"),1);var rT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function nT(t){return t?t>=200&&t<300:!1}i(nT,"isSuccessStatusCode");function Zut(t){return t?t>=500:!0}i(Zut,"isServerErrorStatusCode");function edt(t){return t?[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout].includes(t):!1}i(edt,"isRetryableStatusCode");function tdt(t){return rT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(tdt,"sleep");function QAe(t,e,r){return rT(this,arguments,void 0,function*(n,s,o,a=RB,c=NB,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(A){l&&(p=l(A)),m=!0,u=A.message}if(p&&(f=o(p),!Zut(f)))return p;if(f&&(m=edt(f),u=`Cache service responded with ${f}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!m){T(`${n} - Error is not retryable`);break}yield tdt(c),d++}throw Error(`${n} failed: ${u}`)})}i(QAe,"retry");function TI(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield QAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Ga)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(TI,"retryTypedResponse");function xh(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield QAe(r,n,a=>a.message.statusCode,s,o)})}i(xh,"retryHttpClientResponse");var si=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(
Othercacheswithsimilarkey:`);for(let c of o?.artifactCaches||[])T(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(ldt,"printCachesListForDiagnostics");function uV(t,e,r){return Ds(this,void 0,void 0,function*(){let n=new YAe.URL(t),s=FAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield OAe(t,e,s):s.concurrentBlobDownloads?yield LAe(t,e,s):yield oT(t,e):yield oT(t,e)})}i(uV,"downloadCache");function jAe(t,e,r){return Ds(this,void 0,void 0,function*(){let n=lV(),s=YA(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield TI("reserveCache",()=>Ds(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i(jAe,"reserveCache");function WAe(t,e){return`bytes${t}-${e}/*`}i(WAe,"getContentRange");function udt(t,e,r,n,s){return Ds(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${WAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":WAe(n,s)},a=yield xh(`uploadChunk (start: ${n}, end: ${s})`,()=>Ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!nT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(udt,"uploadChunk");function ddt(t,e,r,n){return Ds(this,void 0,void 0,function*(){let s=qa(r),o=PI(`caches/${e.toString()}`),a=bh.openSync(r,"r"),c=iV(n),l=Lq("uploadConcurrency",c.uploadConcurrency),u=Lq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ds(this,void 0,void 0,function*(){for(;p<s;){let f=Math.min(s-p,u),m=p,A=p+f-1;p+=u,yield udt(t,o,()=>bh.createReadStream(r,{fd:a,start:m,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),m,A)}})))}finally{bh.closeSync(a)}})}i(ddt,"uploadFile");function pdt(t,e,r){return Ds(this,void 0,void 0,function*(){let n={size:r};return yield TI("commitCache",()=>Ds(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(pdt,"commitCache");function dV(t,e,r,n){return Ds(this,void 0,void 0,function*(){if(iV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield PAe(r,e,n)}else{let o=lV();T("Upload cache"),yield ddt(o,t,e,n),T("Commiting cache");let a=qa(e);he(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield pdt(o,t,a);if(!nT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);he("Cache saved successfully")}})}i(dV,"saveCache");var $he=R(Ohe(),1),br=R(xr(),1),Eo=R(xr(),1),Pf=R(xr(),1),Qf=R(xr(),1),_f=R(xr(),1);var o4=R(xr(),1),i4=R(xr(),1),qhe=R(xr(),1),Ghe=R(xr(),1),Hhe=R(xr(),1);var r4=R(xr(),1),n4=R(xr(),1),Mhe=R(xr(),1),Fhe=R(xr(),1),Uhe=R(xr(),1);var s4=class extends Uhe.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Fhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Mhe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?n4.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,r4.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,r4.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?n4.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VT=new s4;var a4=class extends Hhe.Me
`));let n=yield w4(r,"create");yield S4(n,t)})}i(b4,"createTar");var qh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},ji=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Df=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},B4="cache write denied:",jT=class t extends Df{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Yhe=TB,KT=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},XT=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Jhe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}i(Jhe,"checkPaths");function R4(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}i(R4,"checkKey");function N4(){return vI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(N4,"isFeatureAvailable");function jhe(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=vI();T(`Cache service version: ${u}`),Jhe(s);let d=cV();if(!qAe(d)){he(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield Rft(s,o,a,c,l):yield Bft(s,o,a,c,l)})}i(jhe,"restoreCache");function Bft(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)R4(m);let p=yield TC(),f="";try{let m;try{m=yield JAe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let y=(u=h?.message)!==null&&u!==void 0?u:"";throw y.includes(Yhe)?new KT(y):h}if(!m?.archiveLocation)return;if(c?.lookupOnly)return he("Lookup only - skipping download"),m.cacheKey;f=WI.join(yield RC(),Ju(p)),T(`Archive Path: ${f}`),yield uV(m.archiveLocation,f,c),Vp()&&(yield VI(f,p));let A=qa(f);return he(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield x4(f,p),he("Cache restored successfully"),m.cacheKey}catch(m){let A=m;if(A.name===ji.name)throw m;A instanceof Ga&&typeof A.statusCode=="number"&&A.statusCode>=500?MA(`Failed to restore: ${m.message}`):Er(`Failed to restore: ${m.message}`)}finally{try{yield NC(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(Bft,"restoreCacheV1");function Rft(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)R4(f);let p="";try{let f=I4(),m=yield TC(),A={key:o,restoreKeys:a,version:YA(s,m,l)},h;try{h=yield f.GetCacheEntryDownloadURL(A)}catch(w){let x=(u=w?.message)!==null&&u!==void 0?u:"";throw x.includes(Yhe)?new KT(x):w}if(!h.ok){T(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==h.matchedKey?he(`Cache hit for restore-key: ${h.matchedKey}`):he(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return he("Lookup only - skipping download"),h.matchedKey;p=WI.join(yield RC(),Ju(m)),T(`Archive path: ${p}`),T(`Starting download of archive to:
`),u="",d=!1,p=0,f=!1;for(let m of l){let A=0;for(;A<a&&m.charCodeAt(A)===32;)A++;if(n<0||A>=m.length){p++;continue}let h=m.slice(a),y=h.charCodeAt(0);o?y===32||y===9?(f=!0,u+=`
`),u}i(sge,"getBlockValue");function Vmt(t,e){if(e.valueStart===Fmt)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case 2:return $mt(t,r,n);case 3:return zmt(t,r,n);case 4:return sge(t,r,n,e.indent,e.chomping,!1);case 5:return sge(t,r,n,e.indent,e.chomping,!0);default:return Hmt(t,r,n)}}i(Vmt,"getScalarValue");var Wmt={"!":"!","!!":"tag:yaml.org,2002:"};function hge(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??Wmt[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}i(hge,"tagNameFull");var Hh=-1,W4={filename:"",schema:kmt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Ymt(t){return"tagStart"in t&&t.tagStart!==Hh?t.tagStart:"anchorStart"in t&&t.anchorStart!==Hh?t.anchorStart:"valueStart"in t&&t.valueStart!==Hh?t.valueStart:"start"in t?t.start:0}i(Ymt,"eventPosition$1");function Os(t,e){cv(t.source,t.position,e,t.filename)}i(Os,"throwError$1");function gge(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof tv)throw s;cv(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(gge,"finalizeCollection");function ev(t,e,r){let n=t[r];if(n)return n;for(let s of e)if(r.startsWith(s.tagName))return s}i(ev,"lookupTag");function Jmt(t,e,r,n,s){let o=ev(e,r,n);if(o)return o;Os(t,`unknown ${s} tag !<${n}>`)}i(Jmt,"findExplicitTag");function jmt(t,e){let r=Vmt(t.source,e),n=e.tagStart===Hh?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=hge(n,t.tagHandlers),a=ev(t.schema.exact.scalar,t.schema.prefix.scalar,o);if(a){let l=a.resolve(r,!0,o);return l===it&&Os(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=ev(t.schema.exact.mapping,t.schema.prefix.mapping,o)??ev(t.schema.exact.sequence,t.schema.prefix.sequence,o);if(c){r!==""&&Os(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:gge(t,t.position,c,l),tag:c}}Os(t,`unknown scalar tag !<${o}>`)}if(e.style===1){let o=t.schema.implicitScalarByFirstChar.get(r.charAt(0))??t.schema.implicitScalarAnyFirstChar;for(let a of o){let c=a.resolve(r,!1,a.tagName);if(c!==it)return{value:c,tag:a}}}return{value:s.resolve(r,!1,s.tagName),tag:s}}i(jmt,"constructScalar");function oge(t,e,r,n,s,o){let a=e.tagStart===Hh?"":t.source.slice(e.tagStart,e.tagEnd),c=a===""||a==="!"?s:hge(a,t.tagHandlers);return{tagName:c,tag:Jmt(t,r,n,c,o)}}i(oge,"collectionTag");function yge(t){return t.nodeKind==="mapping"}i(yge,"isMappingTag");function ige(t,e,r,n){for(let s of n.keys(r)){if(t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&Os(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Os(t,o),(e.overridable??=new Set).add(s)}}i(ige,"mergeKeys");function Kmt(t,e,r,n){if(t.position=e.keyPosition,yge(n))ige(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let s of r)ige(t,e,s,e.tag);else Os(t,"cannot merge mappings; the provided source object is unacceptable")}i(Kmt,"mergeSource");function Xmt(t,e,r,n,s){if(t.position=e.keyPosition,r===H4){Kmt(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Os(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Os(t,o),e.overridable?.delete(r)}i(Xmt,"addMappingValue");function D4(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(yge(r)||Os(t,"cannot merge mappings; the provided source object is unacceptable"));let s=n.tag.addItem(n.value,e,n.index++);s&&Os(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,Xmt(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0}i(D4,"addValue");function k4(t,e,r,n,s){if(e.anchorStart!==Hh){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(k4,"storeAnchor");function Zmt(t,e){let r={...W4,...e,events:t,documents:[],
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return f<m},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:p,ltrim:f,max_record_size:m,raw:A,relax_quotes:h,rtrim:y,skip_empty_lines:E,to:w,to_line:x}=this.options,{comment:b,escape:N,quote:P,record_delimiter:Q}=this.options,{bomSkipped:J,delimiterDiscovered:ae,delimiterBufPrevious:Ie,rawBuffer:Pe,escapeIsQuote:oe}=this.state;if(!ae&&u){let pt;if(Ie===void 0?pt=n:Ie!==void 0&&n===void 0?pt=Ie:pt=Buffer.concat([Ie,n]),n=void 0,s||pt.length>u.size)this.options.delimiter=[Buffer.from(vIe(pt,this.options.delimiter_auto))],this.state.previousBuf=pt,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=pt;return}}let{previousBuf:De}=this.state,D;if(De===void 0)if(n===void 0){a();return}else D=n;else De!==void 0&&n===void 0?D=De:D=Buffer.concat([De,n]);if(J===!1)if(c===!1)this.state.bomSkipped=!0;else if(D.length<3){if(s===!1){this.state.previousBuf=D;return}}else{for(let pt in lg)if(lg[pt].compare(D,0,lg[pt].length)===0){let xa=lg[pt].length;this.state.bufBytesStart+=xa,D=D.slice(xa);let Eu=cg({...this.original_options,encoding:pt});for(let rr in Eu)this.options[rr]=Eu[rr];({comment:b,escape:N,quote:P}=this.options);break}this.state.bomSkipped=!0}let Ze=D.length,X;for(X=0;X<Ze&&!this.__needMoreData(X,Ze,s);X++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),x!==-1&&this.info.lines>x){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(D,X)&&(Q=this.options.record_delimiter);let pt=D[X];if(A===!0&&Pe.append(pt),(pt===WIt||pt===YIt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(D,X,pt)&&X+N.length<Ze)if(oe){if(this.__isQuote(D,X+N.length)){this.state.escaping=!0,X+=N.length-1;continue}}else{this.state.escaping=!0,X+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(D,X))if(this.state.quoting===!0){let rr=D[X+P.length],ba=y&&this.__isCharTrimable(D,X+P.length),Ws=b!==null&&this.__compareBytes(b,D,X+P.length,rr),mp=this.__isDelimiter(D,X+P.length,rr),Hx=Q.length===0?this.__autoDiscoverRecordDelimiter(D,X+P.length):this.__isRecordDelimiter(rr,D,X+P.length);if(N!==null&&this.__isEscape(D,X,pt)&&this.__isQuote(D,X+N.length))X+=N.length-1;else if(!rr||mp||Hx||Ws||ba){this.state.quoting=!1,this.state.wasQuoting=!0,X+=P.length-1;continue}else if(h===!1){let RK=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(rr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(RK!==void 0)return RK}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(P),X+=P.length-1}else if(this.state.field.length!==0){if(h===!1){let rr=this.__infoField(),ba=Object.keys(lg).map(mp=>lg[mp].equals(this.state.field.toString())?mp:!1).filter(Boolean)[0],Ws=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(rr.column)} at line ${rr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,ba?`(${ba} bom)`:void 0],this.options,rr,{field:this.state.field}));if(Ws!==void 0)return Ws}}else{this.state.quoting=!0,X+=P.length-1;continue}if(this.state.quoting===!1){let rr=this.__isRecordDelimiter(pt,D,X);if(rr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),X+=rr-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,X+=rr-1;continue}this.info.bytes=this.state.bufBytesStart+X;let mp=this.__onFiel
`)}i(Uwt,"_buildMessageForResponseErrors");var qwt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Uwt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Gwt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Hwt=["query","method","url"],Ewe=/\/api\/v3\/?$/;function $wt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Hwt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Gwt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Ewe.test(o)&&(s.url=o.replace(Ewe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new qwt(s,c,a.data)}return a.data.data})}i($wt,"graphql");function RY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>$wt(r,s,o),"newApi"),{defaults:RY.bind(null,r),endpoint:r.endpoint})}i(RY,"withDefaults");var UIr=RY(Iw,{headers:{"user-agent":`octokit-graphql.js/${Fwt} ${Ed()}`},method:"POST",url:"/graphql"});function Cwe(t){return RY(t,{method:"POST",url:"/graphql"})}i(Cwe,"withCustomRequest");var NY="(?:[a-zA-Z0-9_-]+)",Iwe="\\.",wwe=new RegExp(`^${NY}${Iwe}${NY}${Iwe}${NY}$`),zwt=wwe.test.bind(wwe);async function Vwt(t){let e=zwt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(Vwt,"auth");function Wwt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(Wwt,"withAuthorizationPrefix");async function Ywt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Wwt(t),e(s)}i(Ywt,"hook");var Swe=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Vwt.bind(null,e),{hook:Ywt.bind(null,e)})},"createTokenAuth2");var TY="7.0.6";var xwe=i(()=>{},"noop"),Jwt=console.warn.bind(console),jwt=console.error.bind(console);function Kwt(t={}){return typeof t.debug!="function"&&(t.debug=xwe),typeof t.info!="function"&&(t.info=xwe),typeof t.warn!="function"&&(t.warn=Jwt),typeof t.error!="function"&&(t.error=jwt),t}i(Kwt,"createLogger");var bwe=`octokit-core.js/${TY} ${Ed()}`,IP=class{static{i(this,"Octokit")}static VERSION=TY;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new XIe.Collection,n={baseUrl:Iw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${bwe}`:bwe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Iw.defaults(n),this.graphql=Cwe(this.request).defaults(n),this.log=Kwt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=Swe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:f,file:h.path,startLine:m}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function kwe(){return{registry:Mi("registry"),username:Mi("username"),password:Mi("password"),scope:Mi("scope"),ecr:Mi("ecr"),logout:Doe("logout"),registryAuth:Mi("registry-auth")}}i(kwe,"getInputs");function Lwe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=bge(t.registryAuth).map(r=>{r.password&&_n(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:SP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:SP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(Lwe,"getAuthList");function SP(t,e){if(cSt()||!e||e==="")return"";let r=Yf.default.resolve(wP.configDir,"config"),n=Yf.default.resolve(r,t==="docker.io"?"registry-1.docker.io":t);if(!Dwe(r,n))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let s=e.split("@");if(s.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[o,a]=s;if(a!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(a))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let c=a===void 0?"":`@${a}`;if(o==="")return`${n}${c}`;let l=Yf.default.resolve(n,o);if(!Dwe(n,l))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${l}${c}`}i(SP,"scopeToConfigDir");function Dwe(t,e){let r=Yf.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${Yf.default.sep}`)&&!Yf.default.isAbsolute(r)}i(Dwe,"isChildPath");function cSt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?gd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(cSt,"scopeDisabled");var $Ge=R(j1e(),1),zGe=R(NGe(),1),SK=R(fu(),1);var QGe=R(require("net"),1),_Ge=R(require("tls"),1),DGe=R(of(),1),kGe=require("events");var TGe=R(require("net"),1),vGe=R(require("http"),1),PGe=require("https");var pl=Symbol("AgentBaseInternalState"),PM=class extends vGe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[pl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new TGe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?PGe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[pl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[pl].currentSocket;if(this[pl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[pl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[pl]&&(this[pl].defaultPort=e)}get protocol(){return this[pl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[pl]&&(this[pl].protocol=e)}};var CK=require("url");function QM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(QM,"createNegotiateAuth");var Wy=(0,DGe.default)("http-proxy-agent"),Ux=class extends PM{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new CK.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=QM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?qHt(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new CK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Wy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wy("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`);if(f===-1){DM("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],E=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,P]:Array.isArray(Q)?Q.push(P):w[N]=P}DM("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:E,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(IK,"parseProxyResponse");var Mm=(0,GGe.default)("https-proxy-agent"),kM=i(t=>t.servername===void 0&&t.host&&!ml.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Gx=class extends _M{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new HGe.URL(e):e,this.proxyHeaders=r?.headers??{},Mm("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=QM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?wK(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Mm("Creating `tls.Socket`: %o",this.connectOpts),s=qx.connect(kM(this.connectOpts))):(Mm("Creating `net.Socket`: %o",this.connectOpts),s=ml.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ml.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}: ${o[f]}\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;a["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}Object.assign(a,n),a.Host=`${c}:${r.port}`,a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(a))l+=`${p}: ${a[p]}\r
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",UGe),r.secureEndpoint?(Mm("Upgrading socket connection to TLS"),qx.connect({...wK(kM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};Gx.protocols=["http","https"];function UGe(t){setImmediate(()=>{t.resume()})}i(UGe,"resume");function wK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(wK,"omit");var xK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,GHt=/public\.ecr\.aws|ecr-public\.aws\.com/,VGe=i(t=>xK.test(t)||LM(t),"isECR"),LM=i(t=>GHt.test(t),"isPubECR"),HHt=i(t=>{if(LM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(xK);return e?e[4]:""},"getRegion"),$Ht=i(t=>{if(LM(t))return[];let e=t.match(xK);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),WGe=i(async(t,e,r)=>{let n=HHt(t),s=$Ht(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new Ux(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new Gx(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(LM(t)){he(`AWS Public ECR detected with ${n} region`);let f=await new zGe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new SK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!f.authorizationData||!f.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return _n(A[0]),_n(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{he(`AWS ECR detected with ${n} region`);let f=await new $Ge.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new SK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(f.authorizationData)||!f.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let A of f.authorizationData){let y=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);_n(y[0]),_n(y[1]),m.push({registry:A.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var YGe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function VHt(t){return typeof t=="string"&&YGe.test(t)}i(VHt,"validate");var bK=VHt;var WHt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),YHt=300,JGe=300,jGe=21600,KGe=5,XGe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&WHt.has(t),"isDockerHubOIDC"),ZGe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!bK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=JHt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;he(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),he("Retrieving GitHub OIDC token for Docker Hub");let a=await Ooe(o),c=new ao("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),he("Exchangi