varo$e=Object.create;varlE=Object.defineProperty;vari$e=Object.getOwnPropertyDescriptor;vara$e=Object.getOwnPropertyNames;varc$e=Object.getPrototypeOf,l$e=Object.prototype.hasOwnProperty;vari=(t,e)=>lE(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(t&&(e=t(t=0)),e);varw=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Fr=(t,e)=>{for(varrine)lE(t,r,{get:e[r],enumerable:!0})},XK=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofa$e(e))!l$e.call(t,s)&&s!==r&&lE(t,s,{get:()=>e[s],enumerable:!(n=i$e(e,s))||n.enumerable});returnt};varR=(t,e,r)=>(r=t!=null?o$e(c$e(t)):{},XK(e||!t||!t.__esModule?lE(r,"default",{value:t,enumerable:!0}):r,t)),ee=t=>XK(lE({},"__esModule",{value:!0}),t);varaX=w(Yf=>{"use strict";vars3t=require("net"),A$e=require("tls"),eF=require("http"),sX=require("https"),h$e=require("events"),o3t=require("assert"),g$e=require("util");Yf.httpOverHttp=y$e;Yf.httpsOverHttp=E$e;Yf.httpOverHttps=C$e;Yf.httpsOverHttps=I$e;functiony$e(t){vare=newCl(t);returne.request=eF.request,e}i(y$e,"httpOverHttp");functionE$e(t){vare=newCl(t);returne.request=eF.request,e.createSocket=oX,e.defaultPort=443,e}i(E$e,"httpsOverHttp");functionC$e(t){vare=newCl(t);returne.request=sX.request,e}i(C$e,"httpOverHttps");functionI$e(t){vare=newCl(t);returne.request=sX.request,e.createSocket=oX,e.defaultPort=443,e}i(I$e,"httpsOverHttps");functionCl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||eF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(varc=iX(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(Cl,"TunnelingAgent");g$e.inherits(Cl,h$e.EventEmitter);Cl.prototype.addRequest=i(function(e,r,n,s){varo=this,a=tF({request:e},o.options,iX(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");Cl.prototype.createSocket=i(function(e,r){varn=this,s={};n.sockets.push(s);varo=tF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+newBuffer(o.proxyAuth).toString("base64")),xu("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,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");functionu(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){xu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.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(f.length>0){xu("got illegal response body from proxy"),m.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}returnxu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");functiond(p){a.removeAllListeners(),xu(`tunneling socket could not be established, cause=%s
`);m.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let E of m)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(AZ(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(wE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:UVe(t)}if((typeof s=="string"||wE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!EZ(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(wZ,"extractBody");function ZVe(t,e=!1){return t instanceof ReadableStream&&(oU(!wE.isDisturbed(t),"The body has already been consumed."),oU(!t.locked,"The stream is locked.")),wZ(t,e)}i(ZVe,"safelyExtractBody");function e4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(e4e,"cloneBody");function t4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(t4e,"throwIfAborted");function r4e(t){return{blob(){return cA(this,r=>{let n=gZ(this);return n===null?n="":n&&(n=jVe(n)),new WVe([r],{type:n})},t)},arrayBuffer(){return cA(this,r=>new Uint8Array(r).buffer,t)},text(){return cA(this,yZ,t)},json(){return cA(this,s4e,t)},formData(){return cA(this,r=>{let n=gZ(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=KVe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new hZ;return o[lA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new hZ;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returncA(this,r=>newUint8Array(r),t)}}}i(r4e,"bodyMixinMethods");functionn4e(t){Object.assign(t.prototype,r4e(t))}i(n4e,"mixinBody");asyncfunctioncA(t,e,r){if(VVe.brandCheck(t,r),SZ(t))thrownewTypeError("Body is unusable: Body has already been read");t4e(t[lA]);letn=HVe(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");returnt[lA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await$Ve(t[lA].body,o,s),n.promise)}i(cA,"consumeBody");functionSZ(t){lete=t[lA].body;returne!=null&&(e.stream.locked||wE.isDisturbed(e.stream))}i(SZ,"bodyUnusable");functions4e(t){returnJSON.parse(yZ(t))}i(s4e,"parseJSONFromBytes");functiongZ(t){lete=t[lA].headersList,r=zVe(e);returnr==="failure"?null:r}i(gZ,"bodyMimeType");xZ.exports={extractBody:wZ,safelyExtractBody:ZVe,cloneBody:e4e,mixinBody:n4e,streamRegistry:IZ,hasFinalizationRegistry:CZ,bodyUnusable:SZ}});varUZ=w((X3t,FZ)=>{"use strict";varAe=require("node:assert"),le=Ve(),{channels:bZ}=Kf(),aU=GF(),{RequestContentLengthMismatchError:Rp,ResponseContentLengthMismatchError:BZ,RequestAbortedError:DZ,InvalidArgumentError:o4e,HeadersTimeoutError:i4e,HeadersOverflowError:a4e,SocketError:dA,InformationalError:Np,BodyTimeoutError:c4e,HTTPParserError:l4e,ResponseExceededMaxSizeError:u4e}=it(),{kUrl:kZ,kReset:Is,kClient:Db,kParser:_t,kBlocking:bE,kRunning:Tr,kPending:LZ,kSize:RZ,kWriting:Bu,kQueue:_i,kNoRef:SE,kKeepAliveDefaultTimeout:d4e,kHostHeader:p4e,kPendingIdx:m4e,kRunningIdx:qo,kError:Kn,kPipelining:kb,kSocket:Tp,kKeepAliveTimeoutValue:Ob,kMaxHeadersSize:cU,kKeepAliveMaxTimeout:f4e,kKeepAliveTimeoutThreshold:A4e,kHeadersTimeout:h4e,kBodyTimeout:g4e,kStrictContentLength:dU,kMaxRequests:NZ,kCounter:y4e,kMaxResponseSize:E4e,kOnError:TZ,kResume:bl,kHTTPContext:OZ}=qt(),Zs=I7(),vZ=Buffer.alloc(0),Pb=Buffer[Symbol.species],_b=le.addListener,C4e=le.removeAllListeners,vp=Symbol("kIdleSocketValidation"),pA=Symbol("kIdleSocketValidationTimeout"),AU=Symbol("kSocketUsed"),lU;asyncfunctionI4e(){lett=process.e
`}return bZ.sendHeaders.hasSubscribers&&bZ.sendHeaders.publish({request:e,headers:h,socket:f}),!l||m===0?_Z(A,null,t,e,f,d,h,p):le.isBuffer(l)?_Z(A,l,t,e,f,d,h,p):le.isBlobLike(l)?typeof l.stream=="function"?QZ(A,l.stream(),t,e,f,d,h,p):T4e(A,l,t,e,f,d,h,p):le.isStream(l)?N4e(A,l,t,e,f,d,h,p):le.isIterable(l)?QZ(A,l,t,e,f,d,h,p):Ae(!1),!0}i(R4e,"writeH1");function N4e(t,e,r,n,s,o,a,c){Ae(o!==0||r[Tr]===0,"stream body cannot be pipelined");let l=!1,u=new Mb({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){le.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),m=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let A=new DZ;queueMicrotask(()=>f(A))}},"onClose"),f=i(function(A){if(!l){if(l=!0,Ae(s.destroyed||s[Bu]&&r[Tr]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?le.destroy(e,A):le.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(N4e,"writeStream");function _Z(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(Ae(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${o}\r
`,"latin1")),n.onRequestSent(),r[bl]()}catch(l){t(l)}}i(_Z,"writeBuffer");async function T4e(t,e,r,n,s,o,a,c){Ae(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Rp;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${o}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Is]=!0),r[bl]()}catch(l){t(l)}}i(T4e,"writeBlob");async function QZ(t,e,r,n,s,o,a,c){Ae(o!==0||r[Tr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Ae(l===null),s[Kn]?f(s[Kn]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new Mb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Kn])throw s[Kn];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(QZ,"writeIterable");var Mb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Bu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Kn])throw r[Kn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[dU])throw new Rp;process.emitWarning(new Rp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Is]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[dU])throw new Rp;process.emitWarning(new Rp)}e[_t].timeout&&e[_t].timeoutType===mA&&e[_t].timeout.refresh&&e[_t].timeout.refresh(),n[bl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Bu]=!1,e&&(Ae(n[Tr]<=1,"pipeline should only contain this request"),s(e))}};FZ.exports=S4e});var YZ=w((eVt,WZ)=>{"use strict";var ka=require("node:assert"),{errorMonitor:hU}=require("node:events"),{pipeline:v4e}=require("node:stream"),je=Ve(),{RequestContentLengthMismatchError:yU,RequestAbortedError:gU,SocketError:BE,InformationalError:Fb}=it(),{kUrl:Ub,kReset:Gb,kClient:fA,kRunning:Hb,kPending:P4e,kQueue:Pp,kPendingIdx:CU,kRunningIdx:Da,kError:Di,kSocket:Xr,kStrictContentLength:_4e,kOnError:IU,kMaxConcurrentStreams:zZ,kHTTP2Session:Qi,kResume:Nu,kSize:Q4e,kHTTPContext:D4e}=qt(),Ru=Symbol("open streams"),qZ,GZ=!1,qb;try{qb=require("node:http2")}catch{qb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:k4e,HTTP2_HEADER_METHOD:L4e,HTTP2_HEADER_PATH:O4e,HTTP2_HEADER_SCHEME:M4e,HTTP2_HEADER_CONTENT_LENGTH:F4e,HTTP2_HEADER_EXPECT:U4e,HTTP2_HEADER_STATUS:EU}}=qb;function VZ(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}i(VZ,"parseH2Headers");function q4e(t){let{[EU]:e,...r}=t;return VZ(r)}i(q4e,"parseH2ResponseHeaders");async function G4e(t,e){t[Xr]=e,GZ||(GZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=qb.connect(t[Ub],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[zZ]});r[Ru]=0,r[fA]=t,r[Xr]=e,je.addListener(r,"error",$4e),je.addListener(r,"frameError",z4e),je.addListener(r,"end",V4e),je.addListener(r,"goaway",W4e),je.addListener(r,"close",function(){let{[fA]:s}=this,{[Xr]:o}=s,a=this[Xr][Di]||this[Di]||new BE("closed",je.getSocketInfo(o));if(s[Qi]=null,s.destroyed){ka(s[P4e]===0);let c=s[Pp].splice(s[Da]);for(let l=0;l<c.length;l++){let u=c[l];je.errorRequest(s,u,a)}}}),r.unref(),t[Qi]=r,e[Qi]=r,je.addListener(e,"error",function(s){this[Di]=s,this[fA][IU](s)}),je.addListener(e,"end",function(){je.destroy(this,new BE("other side closed",je.getSocketInfo(this)))}),je.addListener(e,"close",function(){let s=this[Di]||new BE("closed",je.getSocketInfo(this));t[Xr]=null,this[Qi]!=null&&this[Qi].destroy(s),t[CU]=t[Da],ka(t[Hb]===0),t.emit("disconnect",t[Ub],[t],s),t[Nu]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return J4e(t,...s)},resume(){H4e(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(G4e,"connectH2");function H4e(t){let e=t[Xr];e?.destroyed===!1&&(t[Q4e]===0&&t[zZ]===0?(e.unref(),t[Qi].unref()):(e.ref(),t[Qi].ref()))}i(H4e,"resumeH2");function $4e(t){this[Xr][Di]=t,this[fA][IU](t)}i($4e,"onHttp2SessionError");function z4e(t,e,r){if(r===0){let n=new Fb(`HTTP/2:"frameError"received-type${t},code${e}`);this[Xr][Di]=n,this[fA][IU](n)}}i(z4e,"onHttp2FrameError");function V4e(){let t=new BE("other side closed",je.getSocketInfo(this[Xr]));this.destroy(t),je.destroy(this[Xr],t)}i(V4e,"onHttp2SessionEnd");function W4e(t){let e=this[Di]||new BE(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,je.getSocketInfo(this)),r=this[fA];if(r[Xr]=null,r[D4e]=null,this[Qi]!=null&&(this[Qi].destroy(e),this[Qi]=null),je.destroy(this[Xr],e),r[Da]<r[Pp].length){let n=r[Pp][r[Da]];r[Pp][r[Da]++]=null,je.errorRequest(r,n,e),r[CU]=r[Da]}ka(r[Hb]===0),r.emit("disconnect",r[Ub],[r],e),r[Nu]()}i(W4e,"onHTTP2GoAway");function Y4e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(Y4e,"shouldSendContentLength");function J4e(t,e){let r=t[Qi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return je.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 _=0;_<P.length;_++)p[N]?p[N]+=`,${P[_]}`:p[N]=P[_];else p[N]=P}let m,{hostname:f
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}:${o[m]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),dh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(dh("Creating `tls.Socket`: %o",this.connectOpts),o=zot.connect(this.connectOpts)):(dh("Creating `net.Socket`: %o",this.connectOpts),o=$ot.connect(this.connectOpts)),await(0,Wot.once)(o,"connect"),o}};CR.protocols=["http","https"];ti.HttpProxyAgent=CR;function Jot(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Jot,"omit")});var Ipe=w(DR=>{"use strict";Object.defineProperty(DR,"__esModule",{value:!0});DR.state=void 0;DR.state={instrumenterImplementation:void 0}});var Mpe=w(FR=>{"use strict";Object.defineProperty(FR,"__esModule",{value:!0});FR.state=void 0;FR.state={operationRequestMap:new WeakMap}});var hAe=w(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var Adt=require("os"),hdt=require("util");function gdt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(gdt,"_interopDefaultLegacy");var ydt=gdt(hdt);function Edt(t,...e){process.stderr.write(`${ydt.default.format(t,...e)}${Adt.EOL}`)}i(Edt,"log");var iAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,cAe,tV=[],rV=[],sT=[];iAe&&nV(iAe);var lAe=Object.assign(t=>uAe(t),{enable:nV,enabled:sV,disable:Cdt,log:Edt});function nV(t){cAe=t,tV=[],rV=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?rV.push(new RegExp(`^${n.substr(1)}$`)):tV.push(new RegExp(`^${n}$`));for(let n of sT)n.enabled=sV(n.namespace)}i(nV,"enable");function sV(t){if(t.endsWith("*"))return!0;for(let e of rV)if(e.test(t))return!1;for(let e of tV)if(e.test(t))return!0;return!1}i(sV,"enabled");function Cdt(){let t=cAe||"";return nV(""),t}i(Cdt,"disable");function uAe(t){let e=Object.assign(r,{enabled:sV(t),destroy:Idt,log:lAe.log,namespace:t,extend:wdt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return i(r,"debug"),sT.push(e),e}i(uAe,"createDebugger");function Idt(){let t=sT.indexOf(this);return t>=0?(sT.splice(t,1),!0):!1}i(Idt,"destroy");function wdt(t){let e=uAe(`${this.namespace}:${t}`);return e.log=this.log,e}i(wdt,"extend");var UI=lAe,dAe=new Set,rT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,oT,iT=UI("azure");iT.log=(...t)=>{UI.log(...t)};var oV=["verbose","info","warning","error"];rT&&(AAe(rT)?pAe(rT):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${rT}';loggingisnotenabled.Acceptablevalues:${oV.join(", ")}.`));function pAe(t){if(t&&!AAe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${oV.join(",")}`);oT=t;let e=[];for(let r of dAe)fAe(r)&&e.push(r.namespace);UI.enable(e.join(","))}i(pAe,"setLogLevel");function Sdt(){return oT}i(Sdt,"getLogLevel");var aAe={verbose:400,info:300,warning:200,error:100};function xdt(t){let e=iT.extend(t);return mAe(iT,e),{error:nT(e,"error"),warning:nT(e,"warning"),info:nT(e,"info"),verbose:nT(e,"verbose")}}i(xdt,"createClientLogger");function mAe(t,e){e.log=(...r)=>{t.log(...r)}}i(mAe,"patchLogMethod");function nT(t,e){let r=Object.assign(t.extend(e),{level:e});if(mAe(t,r),fAe(r)){let n=UI.disable();UI.enable(n+","+r.namespace)}return dAe.add(r),r}i(nT,"createLogger");function fAe(t){return!!(oT&&aAe[t.level]<=aAe[oT])}i(fAe,"shouldEnable");function AAe(t){return oV.includes(t)}i(AAe,"isAzureLogLevel");Th.AzureLogger=iT;Th.createClientLogger=xdt;Th.getLogLevel=Sdt;Th.setLogLevel=pAe});var cV=w(GI=>{"use strict";Object.defineProperty(GI,"__esModule",{value:!0});var vh=new WeakMap,aT=new WeakMap,qI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,vh.set(this,[]),aT.set(this,!1)}get aborted(){if(!aT.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return aT.get(this)}static get none(){return new t}addEventListener(e,r){if(!vh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");vh.get(this).push(r)}removeEventListener(e,r){if(!vh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=vh.get(this),s=n.indexOf(r);s>-
Polling status: ${BAe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){letp=a(u,r);if(p!==void0)return{response:awaite(p).catch(xAe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(qdt,"pollOperationHelper");asyncfunctionvAe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:A,isDone:h,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void0){let{response:I,status:x}=awaitqdt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(NAe({status:x,response:I,state:r,stateProxy:n,isDone:h,processResult:p,getError:m,setErrorAsResult:E}),!BAe.includes(x)){letb=d?.(I);b&&A(b);letN=c?.(I,r);if(N!==void0){letP=y!==N;r.config.operationLocation=N,u?.(N,P)}elseu?.(y,!1)}f?.(r,I)}}i(vAe,"pollOperation");functionPAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}i(PAe,"getOperationLocationPollingUrl");function_Ae(t){returnt.headers.location}i(_Ae,"getLocationHeader");functionQAe(t){returnt.headers["operation-location"]}i(QAe,"getOperationLocationHeader");functionDAe(t){returnt.headers["azure-asyncoperation"]}i(DAe,"getAzureAsyncOperationHeader");functionGdt(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":returnn;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":returnn;default:returne}}}i(Gdt,"findResourceLocation");functionkAe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=QAe(e),a=DAe(e),c=PAe({operationLocation:o,azureAsyncOperation:a}),l=_Ae(e),u=r?.toLocaleUpperCase();returnc!==void0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Gdt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void0}i(kAe,"inferLroMode");functionLAe(t){let{status:e,statusCode:r}=t;if(typeofe!="string"&&e!==void0)thrownewError(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){casevoid0:returnhV(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return_m.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(LAe,"transformStatus");functionHdt(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};returnLAe({status:r,statusCode:t.statusCode})}i(Hdt,"getStatus");function$dt(t){vare,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void0?e:{},o=(r=n?.provisioningState)!==null&&r!==void0?r:s;returnLAe({status:o,statusCode:t.statusCode})}i($dt,"getProvisioningState");functionhV(t){returnt===202?"running":t<300?"succeeded":"failed"}i(hV,"toOperationStatus");functionOAe({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?zdt(newDate(e)):r*1e3}}i(OAe,"parseRetryAfter");functionMAe(t){lete=t.flatResponse.error;if(!e){_m.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){_m.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}i(MAe,"getErrorFromResponse");functionzdt(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}i(zdt,"calculatePollingIntervalFromDate");functionFAe(t){let{response:e,state:r,operationLocation:n}=t;functions(){vara;switch((a=r.config.metadata)===null||a===void0?void0:a.mode){casevoid0:returnhV(e.rawResponse.sta
`)}};tv.RpcError=t4});varn4=w(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.mergeRpcOptions=void0;varXhe=br();functioncft(t,e){if(!e)returnt;letr={};rv(t,r),rv(e,r);for(letnofObject.keys(e)){lets=e[n];switch(n){case"jsonOptions":r.jsonOptions=Xhe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Xhe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},rv(t.meta,r.meta),rv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}returnr}i(cft,"mergeRpcOptions");nv.mergeRpcOptions=cft;functionrv(t,e){if(!t)return;letr=e;for(let[n,s]ofObject.entries(t))sinstanceofDate?r[n]=newDate(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(rv,"copy")});varo4=w(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.Deferred=Om.DeferredState=void0;varbc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(bc=Om.DeferredState||(Om.DeferredState={}));vars4=class{static{i(this,"Deferred")}constructor(e=!0){this._state=bc.PENDING,this._promise=newPromise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==bc.PENDING)thrownewError(`cannot resolve ${bc[this.state].toLowerCase()}`);this._resolve(e),this._state=bc.RESOLVED}reject(e){if(this.state!==bc.PENDING)thrownewError(`cannot reject ${bc[this.state].toLowerCase()}`);this._reject(e),this._state=bc.REJECTED}resolvePending(e){this._state===bc.PENDING&&this.resolve(e)}rejectPending(e){this._state===bc.PENDING&&this.reject(e)}};Om.Deferred=s4});vara4=w(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.RpcOutputStreamController=void0;varZhe=o4(),Mm=br(),i4=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{letn=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,n){Mm.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Mm.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){Mm.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){Mm.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{lete=this._itState;Mm.assert(e,"bad state"),Mm.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newZhe.Deferred,e.p.promise)},"next")}}pushIt(e){letr=this._itState;if(r.p){letn=r.p;Mm.assert(n.state==Zhe.DeferredState.PENDING,"iterator contract broken"),"value"ine?n.resolve(e):n.reject(e),deleter.p}elser.q.push(e)}};sv.RpcOutputStreamController=i4});varl4=w(Hh=>{"use strict";varlft=Hh&&Hh.__awaiter||function(t,e,r,n){functions(o){returnoinstanceofr?o:newr(function(a){a(o)})}returni(s,"adopt"),new(r||(r=Promise))(function(o,a){functionc(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");functionu(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.definePrope
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(vIt,"logUnexpecedPropertyAccessOnce");function PIt(){Object.keys(jv).forEach(function(t){delete jv[t]})}i(PIt,"resetLoggedProperties")});var Xv=w(Tc=>{"use strict";Tc.__esModule=!0;Tc.HandlebarsEnvironment=jW;function YCe(t){return t&&t.__esModule?t:{default:t}}i(YCe,"_interopRequireDefault");var Vm=Gn(),_It=mi(),YW=YCe(_It),QIt=$W(),DIt=$Ce(),kIt=VW(),Kv=YCe(kIt),LIt=WW(),OIt="4.7.10";Tc.VERSION=OIt;var MIt=8;Tc.COMPILER_REVISION=MIt;var FIt=7;Tc.LAST_COMPATIBLE_COMPILER_REVISION=FIt;var UIt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Tc.REVISION_CHANGES=UIt;var JW="[object Object]";function jW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},QIt.registerDefaultHelpers(this),DIt.registerDefaultDecorators(this)}i(jW,"HandlebarsEnvironment");jW.prototype={constructor:jW,logger:Kv.default,log:Kv.default.log,registerHelper:i(function(e,r){if(Vm.toString.call(e)===JW){if(r)throw new YW.default("Arg not supported with multiple helpers");Vm.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Vm.toString.call(e)===JW)Vm.extend(this.partials,e);else{if(typeof r>"u")throw new YW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Vm.toString.call(e)===JW){if(r)throw new YW.default("Arg not supported with multiple decorators");Vm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){LIt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var qIt=Kv.default.log;Tc.log=qIt;Tc.createFrame=Vm.createFrame;Tc.logger=Kv.default});var jCe=w((Zv,JCe)=>{"use strict";Zv.__esModule=!0;function KW(t){this.string=t}i(KW,"SafeString");KW.prototype.toString=KW.prototype.toHTML=function(){return""+this.string};Zv.default=KW;JCe.exports=Zv.default});var KCe=w(XW=>{"use strict";XW.__esModule=!0;XW.wrapHelper=GIt;function GIt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(GIt,"wrapHelper")});var rIe=w(yd=>{"use strict";yd.__esModule=!0;yd.checkRevision=YIt;yd.template=JIt;yd.wrapProgram=eP;yd.resolvePartial=jIt;yd.invokePartial=KIt;yd.noop=eIe;function HIt(t){return t&&t.__esModule?t:{default:t}}i(HIt,"_interopRequireDefault");function $It(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i($It,"_interopRequireWildcard");var zIt=Gn(),Wm=$It(zIt),VIt=mi(),ta=HIt(VIt),tu=Xv(),XCe=$W(),WIt=KCe(),ZW=WW();function YIt(t){var e=t&&t[0]||1,r=tu.COMPILER_REVISION;if(!(e>=tu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=tu.COMPILER_REVISION))if(e<tu.LAST_COMPATIBLE_COMPILER_REVISION){var n=tu.REVISION_CHANGES[r],s=tu.REVISION_CHANGES[e];throw new ta.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+").")}else throw new ta.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(YIt,"checkRevision");function JIt(t,e){if(!e)throw new ta.default("No environment passed to template");if(!t||!t.main)throw new ta.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Wm.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:E,expected:D})}}if(_[0]instanceofArray&&_.length>1)thrownewError("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(_[0]){case1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[1]),b=null,N?(b=N,N=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case2:if(ie=this.productions_[_[1]][1],Ce.$=c[c.length-ie],Ce._$={first_line:l[l.length-(ie||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ie||1)].first_column,last_column:l[l.length-1].last_column},y&&(Ce._$.range=[l[l.length-(ie||1)].range[0],l[l.length-1].range[1]]),ae=this.performAction.call(Ce,d,m,p,this.yy,_[1],c,l),typeofae<"u")returnae;ie&&(a=a.slice(0,-1*ie*2),c=c.slice(0,-1*ie),l=l.slice(0,-1*ie)),a.push(this.productions_[_[1]][0]),c.push(Ce.$),l.push(Ce._$),De=u[a[a.length-2]][a[a.length-1]],a.push(De);break;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(),m=0;m<p.length&&(c=this._input.match(this.rules[p[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);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.
Moreinformationcanbefoundat:https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var Jxt,jxt,NSe,TSe=g(()=>{Jxt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),jxt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},NSe=i(t=>({applyToStack:i(e=>{e.add(Jxt(),jxt)},"applyToStack")}),"getLongPollPlugin")});function xd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var vSe=g(()=>{i(xd,"setCredentialFeature")});var PSe,n8,_Se=g(()=>{PSe=require("node:stream"),n8=i(t=>t?.body instanceof PSe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var nf,bd,Bd,QSe,DSe,FP=g(()=>{nf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),bd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Bd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>QSe[f.step]-QSe[m.step]||DSe[f.priority||"normal"]-DSe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(A=>{let h=nf(A.name,A.aliases);if(h.includes(p)){m=!0;for(let E of h)n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(A=>{if(A.middleware===p){m=!0;for(let h of nf(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],A={};return t.forEach(E=>{let y={...E,before:[],after:[]};for(let I of nf(y.name,y.aliases))A[I]=y;m.push(y)}),e.forEach(E=>{let y={...E,before:[],after:[]};for(let I of nf(y.name,y.aliases))A[I]=y;f.push(y)}),f.forEach(E=>{if(E.toMiddleware){let y=A[E.toMiddleware];if(y===void 0){if(p)return;throw new Error(`${E.toMiddleware} is not found when adding ${bd(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&y.after.push(E),E.relation==="before"&&y.before.push(E)}}),s(m).map(l).reduce((E,y)=>(E.push(...y),E),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:A,aliases:h}=m,E={step:"initialize",priority:"normal",middleware:p,...m},y=nf(f,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${bd(f,h)}'`);for(let I of y){let x=t.findIndex(N=>N.name===I||N.aliases?.some(P=>P===I));if(x===-1)continue;let b=t[x];if(b.step!==E.step||E.priority!==b.priority)throw new Error(`"${bd(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${bd(f,h)}" middleware with ${E.priority} priority in ${E.step} step.`);t.splice(x,1)}}for(let I of y)n.add(I)}t.push(E)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:A,aliases:h}=m,E={middleware:p,...m},y=nf(f,h);if(y.length>0){if(y.some(I=>n.has(I))){if(!A)throw new Error(`Duplicate middleware name '${bd(f,h)}'`);for(let I of y){let x=e.findIndex(N=>N.name===I||N.aliases?.some(P=>P===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==E.toMiddleware||b.relation!==E.relation)throw new Error(`"${bd(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${bd(f,h)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of y)n.add(I)}e.push(E)},"addRelativeTo"),clone:i(()=>c(Bd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(A=>{let{tags:h,name:E,aliases:y}=A;if(h&&h.includes(p)){let I=nf(E,y);for(let x of I)n.delete(x);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Bd());return m.use(p),m.identifyOnResolve(r||m.identifyOnRes
`),"stackTraceWarning"),Og={warn:console.warn}});functionvo(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`${hbt[n]}, ${l}${q8[r]}${e}${u}:${d}:${p} GMT`}varhbt,q8,gbt,hbe,ybt,Ug,Ebt,Cbt,Ibt,Pd,qg,Jw,wbt,Sbt,xbt,U8,bbt,Bbt,Rbt,Mc,Nbt,Tbt,Fg,gbe=g(()=>{F8();hbt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],q8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(vo,"dateToUtcString");gbt=newRegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),hbe=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-3339 date-times must be expressed as strings");lete=gbt.exec(t);if(!e)thrownewTypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=vd(Fg(n)),p=Mc(s,"month",1,12),m=Mc(o,"day",1,31);returnJw(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),ybt=newRegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ug=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-3339 date-times must be expressed as strings");lete=ybt.exec(t);if(!e)thrownewTypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=vd(Fg(n)),m=Mc(s,"month",1,12),f=Mc(o,"day",1,31),A=Jw(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});returnd.toUpperCase()!="Z"&&A.setTime(A.getTime()-Tbt(d)),A},"parseRfc3339DateTimeWithOffset"),Ebt=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$/),Cbt=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$/),Ibt=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})$/),Pd=i(t=>{if(t==null)return;if(typeoft!="string")thrownewTypeError("RFC-7231 date-times must be expressed as strings");lete=Ebt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;returnJw(vd(Fg(o)),U8(s),Mc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=Cbt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;returnxbt(Jw(wbt(o),U8(s),Mc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=Ibt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;returnJw(vd(Fg(u)),U8(n),Mc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}thrownewTypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),qg=i(t=>{if(t==null)return;lete;if(typeoft=="number")e=t;elseif(typeoft=="string")e=Yw(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"),Jw=i((t,e,r,n)=>{lets=e-1;returnBbt(t,s,r),newDate(Date.UTC(t,s,r,Mc(n.hours,"hour",0,23),Mc(n.minutes,"minute",0,59),Mc(n.seconds,"seconds",0,60),Nbt(n.fractionalMilliseconds)))},"buildDate"),wbt=i(t=>{lete=newDate().getUTCFullYear(),r=Math.floor(e/100)*100+vd(Fg(t));returnr<e?r+100:r},"parseTwoDigitYear"),Sbt=50*365*24*60*60*1e3,xbt=i(t=>t.getTime()-newDate().getTime()>Sbt?newDate(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),U8=i(t=>{lete=q8.indexOf(t);if(e<0)thrownewTypeError(`Invalid month: ${t}`);returne+1},"parseMonthByShortName"),bbt=[31,28,31,30,31,30,31,31,30,31,30,31],Bbt=i((t,e,r)=>{letn=bbt[e];if(e===1&&Rbt(t)&&(n=29),r>n)thrownewTypeError(`Invalid day for ${q8[e]} in ${t}: ${r}`)},"validateDayOfMonth"),Rbt=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(an.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:Y8(/^x-[\w-]+-request-?id$/,u),extendedRequestId:Y8(/^x-[\w-]+-id-2$/,u),cfId:Y8(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),Y8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Po,Kw=g(()=>{Po=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider${s?"->":"(!)"}${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Qd,p_=g(()=>{Kw();Qd=class t extends Po{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var m_,Tbe=g(()=>{Kw();m_=class t extends Po{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var f_,j8=g(()=>{Kw();f_=i((...t)=>async()=>{if(t.length===0)throw new Po("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var A_,K8=g(()=>{A_=i(t=>()=>Promise.resolve(t),"fromValue")});var $g,h_=g(()=>{$g=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var cn,g_=g(()=>{cn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannotload${r}"${e}".Expected"true"or"false",got${t[e]}.`)}},"booleanSelector")});var vbe,Pbe=g(()=>{vbe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannotload${r}'${e}'.Expectednumber,got'${t[e]}'.`);return n},"numberSelector")});var Or,y_=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Or||(Or={}))});var _be,Qbe,X8,kbt,qc,zg=g(()=>{_be=require("node:os"),Qbe=require("node:path"),X8={},kbt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),qc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${Qbe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=kbt();return X8[s]||(X8[s]=(0,_be.homedir)()),X8[s]},"getHomeDir")});var Z8,eJ,E_,tJ=g(()=>{Z8="AWS_PROFILE",eJ="default",E_=i(t=>t.profile||process.env[Z8]||eJ,"getProfileName")});var Dbe,kbe,C_,rJ=g(()=>{Dbe=require("node:crypto"),kbe=require("node:path");zg();C_=i(t=>{let r=(0,Dbe.createHash)("sha1").update(t).digest("hex");return(0,kbe.join)(qc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var Lbe,Xw,Obe,nJ=g(()=>{Lbe=require("node:fs/promises");rJ();Xw={},Obe=i(async t=>{if(Xw[t])return Xw[t];let e=C_(t),r=await(0,Lbe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Gc,Mbe=g(()=>{Gc="."});var sJ,Fbe,Ube=g(()=>{sJ=R(sa()),Fbe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(sJ.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===sJ.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var qbe,Lbt,I_,oJ=g(()=>{qbe=require("node:path");zg();Lbt="AWS_CONFIG_FILE",I_=i(()=>process.env[Lbt]||(0,qbe.join)(qc(),".aws","config"),"getConfigFilepath")});var Gbe,Obt,Hbe,$be=g(()=>{Gbe=require("node:path");zg();Obt="AWS_SHARED_CREDENTIALS_FILE",Hbe=i(()=>process.env[Obt]||(0,Gbe.join)(qc(),".aws","credentials"),"getCredentialsFilepath")});var zbe,Mbt
`)}p.push(null)}catch(m){p.destroy(m)}}),p}varyRe,CRe=g(()=>{yRe=require("node:stream");gRe();la();i(ERe,"getAwsChunkedEncodingStream")});asyncfunctionIRe(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}varwRe=g(()=>{i(IRe,"headStream")});varSRe,xRe,ej,bRe=g(()=>{SRe=require("node:stream");jw();wRe();la();xRe=i((t,e)=>Jr(t)?IRe(t,e):newPromise((r,n)=>{lets=newej;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){leto=Uc(this.buffers);r(o)})}),"headStream"),ej=classextendsSRe.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()}}});varBRe,RRe=g(()=>{BRe=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")});asyncfunctiontj(t){returnt.arrayBuffer().then(e=>newUint8Array(e))}asyncfunctionrj(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}returnUc(e,n)}varNRe,nj=g(()=>{jw();la();NRe=i(asynct=>Dd(t)?tj(t):rj(t),"streamCollector");i(tj,"collectBlob");i(rj,"collectReadableStream")});varTRe,PRe,vRe,_Re=g(()=>{jJ();V8();RRe();nj();la();TRe="The stream has already been transformed.",PRe=i(t=>{if(!vRe(t)&&!Jr(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(TRe);returne=!0,awaitNRe(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")returnW_(o);if(s==="hex")returnEi(o);if(s===void0||s==="utf8"||s==="utf-8")returnBRe(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(TRe);if(e=!0,vRe(t))returnn(t);if(Jr(t))returnt;thrownewError(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),vRe=i(t=>typeofBlob=="function"&&tinstanceofBlob,"isBlobInstance")});varQRe,J_,sj,oj=g(()=>{QRe=require("node:stream");jw();nj();la();J_=i(t=>Dd(t)?tj(t):Jr(t)?rj(t):newPromise((e,r)=>{letn=newsj,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){leto=Uc(this.bufferedBytes);e(o)})}),"streamCollector"),sj=classextendsQRe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});varj_,DRe,K_,kRe=g(()=>{j_=require("node:stream");Td();_Re();oj();DRe="The stream has already been transformed.",K_=i(t=>{if(!(tinstanceofj_.Readable))try{returnPRe(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(DRe);returne=!0,awaitJ_(t)},"transformToByteArray");returnObject.assign(t,{transformToByteArray:r,transformToString:i(asyncn=>{lets=awaitr();returnn===void0||Buffer.isEncoding(n)?ca(s.buffer,s.byteOffset,s.byteLength).toString(n):newTextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)thrownewError(DRe);if(t.readableFlowing!==null)thrownewError("The stream has been consumed by other callbacks.");if(typeofj_.Readable.toWeb!="function")thrownewError("Readable.toWeb() is not supported. Please ensure a polyfill is available.");returne=!0,j_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});asyncfunctionLRe(t){returntypeoft.stream=="function"&&(t=t.stream()),t.tee()}varORe=g(()=>{i(LRe,"splitStream")});asyncfunctionMRe(t){if(Jr(t)||Dd(t))returnLRe(t);lete=newij.PassThrough,r=newij.PassThrough;returnt.pipe(e),t.pipe(r),[e,r]}varij,FRe=g(()=>{ij=require("node:stream");ORe();la();i(MRe,"splitStream")});varmf={};Fr(mf,{ChecksumStream:()=>Kg,Hash:()=>$_,LazyJsonString:()=>Lr,NumericValue:()=>Je,Uint8ArrayBlobAdapter:()=>pf,_parseEpochTimestamp:()=>_d,_parseRfc3339DateTimeWithOffset:()=>i_,_parseRfc7231DateTime:()=>a_,calculateBodyLength:()=>Fc,concatBytes:()=>Uc,copyDocumentWithTransform:()=>rbe,createBufferedReadable:()=>fRe,createChecksumStream:()=>lRe,dateToUtcString:()=>vo,deserializerMiddleware:()=>d_,deserializerMiddlewareOption:()=>VJ,expectBoolean:()=>obe,expectByte:()=>ZP,expectFloat32:()=>Ww,expectInt:()=>ibe,expectInt32:()=>KP,expectLong:()=>Lg,expectNonNull:()=>abe,expectNumber:()=>kg,expectObject:()=>O8,expectShort:()=>XP,expectString:()=>cbe,expectUnion:()=>t_,fromArrayBuffer:()=>ca,fromBase64:()=>fr,fromHex:()=>u_,fromString:()=>Nd,fromUtf8:()=>Yr,generateIdempotencyToken:()=>Lo,getAwsChunkedEncodingStream:()=>ERe,getSerdePlugin:()=>JBe,handleFloat:()=>ube,hasOwn:()=>X,headStream:()=>xRe,isArrayBuffer:()=>YP,isBlob:()=>Dd,isReadableStream:()=>Jr,limitedParseDouble:()=>n_,limitedParseFloat:()=>dbe,limitedParseFloat32:()=>pbe,logger:()=>Og,nv:()=>l_,parseBoolean:()=>sbe,parseEpochTimestamp:()=>qg,parseRfc3339DateTime:()=>hbe,parseRfc3339DateTimeWithOffset:()=>Ug,parseRfc7231DateTime:()=>Pd,quoteHeader:()=>o_,sdkStreamMixin:()=>K_,serializerMiddleware:()=>H_,serializerMiddlewareOption:()=>WJ,splitEvery:()=>c_,splitHeader:()=>Gg,splitStream:()=>MRe,streamCollector:()=>J_,strictParseByte:()=>s_,strictParseDouble:()=>Yw,strictParseFloat:()=>lbe,strictParseFloat32:()=>r_,strictPars
`));return r(s)},"httpAuthSchemeMiddleware")});var $Q,fa,bTe=g(()=>{HQ();$Q={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},fa=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Ef(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$Q)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var zQ,I5,BTe=g(()=>{HQ();zQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},I5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Ef(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),zQ)},"applyToStack")}),"getHttpAuthSchemePlugin")});var RTe=g(()=>{HQ();bTe();BTe()});var K0t,X0t,CS,w5=g(()=>{be();xe();K0t=i(t=>e=>{throw e},"defaultErrorHandler"),X0t=i((t,e)=>{},"defaultSuccessHandler"),CS=i(t=>(e,r)=>async n=>{if(!We.isInstance(n.request))return e(n);let o=xt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||K0t)(a));return(l.successHandler||X0t)(u.response,a),u},"httpSigningMiddleware")});var VQ,Aa,NTe=g(()=>{w5();VQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Aa=i(t=>({applyToStack:i(e=>{e.addRelativeTo(CS(t),VQ)},"applyToStack")}),"getHttpSigningPlugin")});var TTe=g(()=>{w5();NTe()});var Bi,vTe=g(()=>{Bi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function PTe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)m=await Z0t(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalidclient,expectedinstanceof${t.name}`);yield m;let f=d;d=eBt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}return void 0},"paginateOperation")}var Z0t,eBt,_Te=g(()=>{Z0t=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(PTe,"createPaginator");eBt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function QTe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var DTe=g(()=>{i(QTe,"setFeature")});var Mo,kTe=g(()=>{xe();Mo=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!X(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var S5,xy,LTe=g(()=>{be();S5=R(sa()),xy=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=We.clone(e);if(n.in===S5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===S5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme}${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var by,OTe=g(()=>{be();by=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=We.clone(e);if(!r.token)throw new Error("request could no
${Cf(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("/")?"/":""}`;returncD(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=pBt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){returnObject.keys(e).sort().join(";")}},Ny={},uD=[],dD=i((t,e,r)=>`${t}/${e}/${r}/${n6}`,"createScope"),ePe=i(async(t,e,r,n,s)=>{leto=awaitLve(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${Cf(o)}:${e.sessionToken}`;if(ainNy)returnNy[a];for(uD.push(a);uD.length>Kve;)deleteNy[uD.shift()];letc=`AWS4${e.secretAccessKey}`;for(letlof[r,n,s,n6])c=awaitLve(t,c,l);returnNy[a]=c},"getSigningKey"),fBt=i(()=>{uD.length=0,Object.keys(Ny).forEach(t=>{deleteNy[t]})},"clearCredentialCache"),Lve=i((t,e,r)=>{letn=newt(e);returnn.update(PS(r)),n.digest()},"hmac"),J5=i(({headers:t},e,r)=>{letn={};for(letsofObject.keys(t).sort()){if(t[s]==null)continue;leto=s.toLowerCase();(oinVve||e?.has(o)||Wve.test(o)||Yve.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}returnn},"getCanonicalHeaders"),pD=i(async({headers:t,body:e},r)=>{for(letnint)if(Ty(t,n)&&n.toLowerCase()===mD)returnt[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeofe=="string"||ArrayBuffer.isView(e)||iBt(e)){letn=newr;returnn.update(PS(e)),Cf(awaitn.digest())}returnjve},"getPayloadHash"),tPe=i((t,e)=>{t=t.toLowerCase();for(letrine)if(Ty(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),rPe=i((t,e={})=>{let{headers:r,query:n={}}=Ove.clone(t);for(letsinr){if(!Ty(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"),j5=i(t=>{t=Ove.clone(t);for(leteint.headers)Ty(t.headers,e)&&Hve.indexOf(e.toLowerCase())>-1&&deletet.headers[e];returnt},"prepareRequest"),K5=classextendsfD{static{i(this,"SignatureV4")}headerFormatter=newW5;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);letm=u??awaitthis.regionProvider(),{longDate:f,shortDate:A}=this.formatDate(n);if(s>Xve)returnPromise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");leth=dD(A,m,d??this.service),E=rPe(j5(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(E.query[e6]=p.sessionToken),E.query[Mve]=lD,E.query[Fve]=`${p.accessKeyId}/${h}`,E.query[X5]=f,E.query[qve]=s.toString(10);lety=J5(E,o,c);returnE.query[Uve]=this.getCanonicalHeaderList(y),E.query[Z5]=awaitthis.getSignature(f,h,this.getSigningKey(p,m,A,d),this.createCanonicalRequest(E,y,awaitpD(e,this.sha256))),E}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=dD(u,l,a??this.service),m=awaitpD({headers:{},body:r},this.sha256),f=newthis.sha256;f.update(e);letA=Cf(awaitf.digest()),h=[Jve,d,p,s,A,m].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(PS(e)),Cf(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=j5(e),{longDate:d,shortDate:p}=this.formatDate(r),m=dD(p,l,a??this.service);u.headers[r6]=d,c.sessionToken&&(u.headers[zve]=c.sessionToken);letf=awaitpD(u,this.sha256);!tPe(mD,u.headers)&&this.applyChecksum&&(u.headers[mD]=f);letA=J5(u,s,n),h=awaitthis.getSignature(d,m,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,A,f));returnu.headers[t6]=`${lD} Credential=${c.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${h}`,u}asyncgetSignature(e,r,n,s){leto=awaitthis.createStringToSign(e,r,s,lD),a=newthis.sha256(awaitn);returna.update(PS(o)),Cf(awaita.digest())}getSigningKey(e,r,n,s){returnePe(this.sha256,e,n,r,s||this.service)}},ABt={SignatureV4a:null};$e.ALGORITHM_IDENTIFIER=lD;$e.ALGORITHM_IDENTIFIER_V4A=dBt;$e.ALGORITHM_QUERY_PARAM=Mve;$e.ALWAYS_UNSIGNABLE_HEADERS=Vve;$e.AMZ_DATE_HEADER=r6;$e.AMZ_DATE_QUERY_PARAM=X5;$e.AUTH_HEADER=t6;$e.CREDENTIAL_QUERY_PARAM=Fve;$e.DATE_HEADER=Gve;$e.EVENT_ALGORITHM_IDENTIFIER=Jve;$e.EXPIRES_QUERY_PARAM=qve;$e.GENERATED_HEADERS=Hve;$e.HOST_HEADER=lBt;$e.KEY_TYPE_IDENTIFIER=n6;$e.MAX_CACHE_SIZE=Kve;$e.MAX_PRESIGNED_TTL=Xve;$e.PROXY_HEADER_PATTERN=Wve;$e.REGION_SET_PARAM=cBt;$e.SEC_HEADER_PATTERN=Yve;$e.SHA256_HEADER=mD;$e.SIGNATURE_HEADER=$ve;$e.SIGNATURE_QUERY_PARAM=Z5;$e.SIGNED_HEADERS_QUERY_PARAM=Uve;$e.SignatureV4=K5;$e.SignatureV4Base=fD;$e.TOKEN_HEADER=zve;$e.TOKEN_QUERY_PARAM=e6;$e.UNSIGNABLE_PATTERNS=uBt;$e.UNSIGNED_PAYLOAD=jve;$e.clearCredentialCache=fBt;$e.createScope=dD;$e.getCanonicalHeaders=J5;$e.getCanonicalQuery=Zve;$e.getPayloadHash=pD;$e.getSigningKey=ePe;$e.hasHeader=tPe;$e.moveHeadersToQuery=rPe;$e.prepareRequest=j5;$e.signatureV4aContainer=ABt});functionhBt(t,{credentials:e,credentialDefaultProvider:r}){letn;returne?e?.memoized?n=e:n=wS(e,IS,By):r?n=Bi(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}functiongBt(t,e){if(e.configBound)returne;letr=i(asyncn=>e({...n,callerClientConfig:t}),"fn");returnr.memoized=e.memoized,r.configBound=!0,r}varo6,i6,nPe=g(()=>{Et();ys();o6=R(s6()),i6=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=hBt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),m=gBt(e,p);if(n&&!m.attributed){letf=typeofr=="object"&&r!==null;s=i(asyncA=>{letE=awaitm(A);returnf&&(!E.$source||Object.keys(E.$source).length===0)?xd(E,"CREDENTIALS_CODE","e"):E},"resolvedCredentials"),s.memoized=m.memoized,s.configBound=m.configBound,s.attributed=!0}elses=m},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=Bi(e.signer):e.regionInfoProvider?l=i(()=>Bi(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");functiongRt(t){returnnewuRt({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}i(gRt,"createGetRequest");asyncfunctionyRt(t,e){letn=awaitdRt(t.body).transformToString();if(t.statusCode===200){lets=JSON.parse(n);if(typeofs.AccessKeyId!="string"||typeofs.SecretAccessKey!="string"||typeofs.Token!="string"||typeofs.Expiration!="string")thrownewIf("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:pRt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){lets={};try{s=JSON.parse(n)}catch{}throwObject.assign(newIf(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}thrownewIf(`Server responded with status: ${t.statusCode}`,{logger:e})}i(yRt,"getCredentials");varERt=i((t,e,r)=>async()=>{for(letn=0;n<e;++n)try{returnawaitt()}catch{awaitnewPromise(o=>setTimeout(o,r))}returnawaitt()},"retryWrapper"),CRt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",IRt="http://169.254.170.2",wRt="AWS_CONTAINER_CREDENTIALS_FULL_URI",SRt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",xRt="AWS_CONTAINER_AUTHORIZATION_TOKEN",bRt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");lete,r=t.awsContainerCredentialsRelativeUri??process.env[CRt],n=t.awsContainerCredentialsFullUri??process.env[wRt],s=t.awsContainerAuthorizationToken??process.env[xRt],o=t.awsContainerAuthorizationTokenFile??process.env[SRt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${IRt}${r}`;elseif(n)e=n;elsethrownewIf(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});letc=newURL(e);hRt(c,t.logger);letl=cRt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=ERt(async()=>{letp=gRt(c);o?p.headers.Authorization=QPe((awaitlRt.readFile(o)).toString()):s&&(p.headers.Authorization=QPe(s));try{letm=awaitl.handle(p,{requestTimeout:u});returnyRt(m.response).then(f=>aRt(f,"CREDENTIALS_HTTP","z"))}catch(m){thrownewIf(String(m),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);returnasync()=>{try{returnawaitd()}finally{l.destroy?.()}}},"fromHttp"),QPe=i(t=>{if(t.includes(`\r
`))thrownewIf("Authorization token contains invalid \\r\\n sequence.");returnt},"validateToken");DPe.fromHttp=bRt});functionBRt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}functionRRt(t){return{schemeId:"smithy.api#noAuth"}}varkPe,LPe,OPe,w6=g(()=>{Wn();we();kPe=i(async(t,e,r)=>({operation:xt(e).operation,region:awaitbt(t.region)()||(()=>{thrownewError("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(BRt,"createAwsAuthSigv4HttpAuthOption");i(RRt,"createSmithyApiNoAuthHttpAuthOption");LPe=i(t=>{lete=[];returnt.operation==="CreateToken"?e.push(RRt(t)):e.push(BRt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),OPe=i(t=>{lete=dl(t);returnObject.assign(e,{authSchemePreference:bt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});varMPe,FPe,S6=g(()=>{MPe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),FPe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});varnp,OS=g(()=>{np={name:"@aws-sdk/nested-clients",version:"3.997.49",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&G6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-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__"&&G6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&G6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<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]??"")}};UD.XmlNode=H6;UD.XmlText=FD;UD.parseXML=XRt});var fl,HS=g(()=>{fl=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var GD,l_e=g(()=>{GD=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function u_e(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var d_e=g(()=>{i(u_e,"writeKey")});var p_e,ip,HD=g(()=>{p_e=R(qD());we();be();Ye();Se();HS();l_e();d_e();ip=class extends fl{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new qd(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=L.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Mt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=L.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let m of p)l.push(this.readSchema(c,m));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let m of u){let f=m[d],A=m[p];f==="__proto__"&&u_e(a),a[f]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new GD(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,p_e.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),cf(o)}return{}}}});var My,z6=g(()=>{be();Ye();Se();Se();HS();My=class extends fl{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=L.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??vt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isString
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),VTt=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso-fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=GTt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await HTt(t))[l];if(!d)throw new ba(`Profile ${l} was not found.`,{logger:t.logger});if(!pDe(d))throw new ba(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let y=(await $Tt(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==y.sso_region)throw new ba("ConflictingSSOregion"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==y.sso_start_url)throw new ba("ConflictingSSOstart_url"+I,{tryNextLink:!1,logger:t.logger});d.sso_region=y.sso_region,d.sso_start_url=y.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:A,sso_session:h}=mDe(d,t.logger);return dDe({ssoStartUrl:p,ssoSession:h,ssoAccountId:m,ssoRegion:f,ssoRoleName:A,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new ba('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return dDe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");uk.fromSSO=VTt;uk.isSsoProfile=pDe;uk.validateSsoProfile=mDe});var I9=w(pk=>{var{SignatureV4:WTt,signatureV4aContainer:fDe}=s6(),fx={CrtSignerV4:null},E9="X-Amz-S3session-Token",ADe=E9.toLowerCase(),dk=class extends WTt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=hDe(r);e.headers[ADe]=r.sessionToken;let o=this;return gDe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=hDe(r);return delete e.headers[ADe],e.headers[E9]=r.sessionToken,e.query=e.query??{},e.query[E9]=r.sessionToken,gDe(this,s),this.presign(e,n)}};function hDe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(hDe,"getCredentialsWithoutSessionToken");function gDe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(gDe,"setSingleOverride");var C9=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof fx.CrtSignerV4=="function"?"crt":typeof fDe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new dk(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=fx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=fx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT de
`,"utf-8")],s=lit(n);s&&t.headers.set("Content-Length",s),t.body=awaitlpe(n)}i(uit,"buildRequestBody");vareI="multipartPolicy",dit=70,pit=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionmit(t){if(t.length>dit)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!pit.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}i(mit,"assertValidBoundary");functionRR(){return{name:eI,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?mit(r):r=iit(),t.headers.set("Content-Type",`${o}; boundary=${r}`),awaituit(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}i(RR,"multipartPolicy");functionNR(){returnXB()}i(NR,"createEmptyPipeline");varupe=JB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ter=upe.logger;functionKa(t){returnupe.createClientLogger(t)}i(Ka,"createClientLogger");varXa=Ka("core-rest-pipeline");functionvG(t={}){returnsR({logger:Xa.info,...t})}i(vG,"logPolicy");varPG=oR;function_G(t={}){returniR(t)}i(_G,"redirectPolicy");varTR=R(require("node:os"),1),vR=R(require("node:process"),1);functiondpe(){return"User-Agent"}i(dpe,"getHeaderName");asyncfunctionppe(t){if(vR.default&&vR.default.versions){lete=`${TR.default.type()}${TR.default.release()}; ${TR.default.arch()}`,r=vR.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i(ppe,"setPlatformSpecificData");varPR="1.22.2";functionIit(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}i(Iit,"getUserAgentString");functionmpe(){returndpe()}i(mpe,"getUserAgentHeaderName");asyncfunction_R(t){lete=newMap;e.set("core-rest-pipeline",PR),awaitppe(e);letr=Iit(e);returnt?`${t}${r}`:r}i(_R,"getUserAgentValue");varfpe=mpe(),Ape="userAgentPolicy";functionQG(t={}){lete=_R(t.userAgentPrefix);return{name:Ape,asyncsendRequest(r,n){returnr.headers.has(fpe)||r.headers.set(fpe,awaite),n(r)}}}i(QG,"userAgentPolicy");vargo=classextendsError{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionDG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((o,a)=>{functionc(){a(newgo(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(DG,"createAbortablePromise");varBit="The delay was aborted.";functiontI(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnDG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Bit})}i(tI,"delay");functiontd(t){if(lm(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(td,"getErrorMessage");functionhpe(t){returnlm(t)}i(hpe,"isError");functionph(){returncm()}i(ph,"randomUUID");varut=pm;vargpe=Symbol("rawContent");functionLG(t){returntypeoft[gpe]=="function"}i(LG,"hasRawContent");functionype(t){returnLG(t)?t[gpe]():t}i(ype,"getRawContent");varQR=eI;functionOG(){lett=RR();return{name:QR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)LG(n.body)&&(n.body=ype(n.body));returnt.sendRequest(e,r)},"sendRequest")}}i(OG,"multipartPolicy");varMG=aR;functionFG(){returncR()}i(FG,"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--),!jat(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",wr("InvalidTag",p,cs(t,o))}let u=zat(t,o);if(u===!1)return wr("InvalidAttr","Attributes for '"+l+"' have open quote.",cs(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=nme(d,e);if(m===!0)n=!0;else return wr(m.err.code,m.err.msg,cs(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return wr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",cs(t,a));if(r.length===0)return wr("InvalidTag","Closing tag '"+l+"' has not been opened.",cs(t,a));{let p=r.pop();if(l!==p.tagName){let m=cs(t,p.tagStartPos);return wr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",cs(t,a))}r.length==0&&(s=!0)}}else return wr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",cs(t,o));else{let p=nme(d,e);if(p!==!0)return wr(p.err.code,p.err.msg,cs(t,o-d.length+p.err.line));if(s===!0)return wr("InvalidXml","Multiple possible root nodes found.",cs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=rme(t,o);continue}else if(t[o+1]==="?"){if(o=tme(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=Yat(t,o);if(p==-1)return wr("InvalidChar","char '&' is not expected.",cs(t,o));o=p}else if(s===!0&&!eme(t[o]))return wr("InvalidXml","Extra text at the end",cs(t,o));t[o]==="<"&&o--}}else{if(eme(t[o]))continue;return wr("InvalidChar","char '"+t[o]+"' is not expected.",cs(t,o))}if(n){if(r.length==1)return wr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",cs(t,r[0].tagStartPos));if(r.length>0)return wr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return wr("InvalidXml","Start tag expected.",1);return!0}i(VR,"validate");function eme(t){return t===" "||t===" "||t===`
`||t==="\r"}i(eme,"isWhiteSpace");function tme(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return wr("InvalidXml","XML declaration allowed only at the start of the document.",cs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(tme,"readPI");function rme(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<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(rme,"readCommentAndCDATA");var Hat='"',$at="'";function zat(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Hat||t[e]===$at)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(zat,"readAttributeStr");var Vat=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function nme(t,e){let r=$R(t,Vat),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return wr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",mI(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return wr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",mI(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return wr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",mI(r[s]));let o=r[s][2];if(!Jat(o))return wr("InvalidAttr","Attribute '"+o+"' is an invalid name.",mI(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return wr("InvalidAttr","Attribute '"+o+"' is repeated.",mI(r[s]))}return!0}i(nme,"validateAttributeString");function Wat(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(Wat,"validateNumberAmpersand");function Yat(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Wat(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(Yat,"validateAmpersand");function wr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(wr,"getErrorObject");function Jat(t){return uH(t)}i(Jat,"validateAttrName");function jat(t){return uH(t)}i(jat,"validateTagName");function cs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(cs,"getLineNumberForPosition");function mI(t){return t.startIndex+t[1].length}i(mI,"getPositionFromMatch");var sme={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"},ome={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new _s("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new hI(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=yh(t,">",c,"ClosingTagisnotclosed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=yH(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=EH(t,c,!1,"?>");if(!d)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new _s(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=yh(t,"-->",c+4,"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=yh(t,"]]>",c,"CDATAisnotclosed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=EH(t,c,s.removeNSPrefix);if(!d){let P=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${P}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:f}=yH(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),A=p!==f);let I=null,x={},b;b=Ect(m),p!==e.tagname&&this.matcher.push(p,{},b),p!==f&&A&&(I=this.buildAttributesMap(f,this.matcher,p),I&&(x=yct(I,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let P="";if(y)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let G=this.readStopNodeData(t,m,h+1);if(!G)throw new Error(`Unexpected end of ${m}`);c=G.i,P=G.tagContent}let _=new _s(p);I&&(_[":@"]=I),_.add(s.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,N)}else{if(y){({tagName:p,tagExp:f}=yH(s.transformTagName,p,f,s));let P=new _s(p);I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let P=new _s(p);I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let P=new _s(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(P[":@"]=I),this.addChild(r,P,this.readonlyMatcher,N),r=P}n="",c=h}}}else n+=t[c];return e.child},"parseXml"
${c}:${decodeURIComponent(o[c])}`}returnn}};varir=classextendsIm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewII(e,r,this)}computeHMACSHA256(e){return(0,Lme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varqr=Ka("storage-common");varri;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ri||(ri={}));varad={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ri.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Xct=newgo("The operation was aborted."),wI=classextendsrc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=ad){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ad.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ad.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ad.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ad.maxRetryDelayInMs):ad.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ad.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ad.secondaryHost}}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=sN(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=id(s.url,Ul.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(qr.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(qr.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)returnqr.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)returnqr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnqr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnqr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Te.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')?(qr.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){caseri.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseri.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnqr.info(`RetryPolicy: Delay for ${s}ms`),aN(s,n,Xct)}};varSI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewwI(e,r,this.retryOptions)}};varZct="storageBrowserPolicy";functionOme(){return{name:Zct,asyncsendRequest(t,e){returnut||((t.method==="GET"||t.method==="HEAD")&&(t.url=id(t.url,Ul.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Te.COOKIE),t.headers.delete(Te.CONTENT_LENGTH)),e(t)}}}i(Ome,"storageBrowserPolicy");varelt="StorageCorrectContentLengthPolicy";functionMme(){functiont(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=oN(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=iN(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newji(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(cdt,"generateBlobSASQueryParameters20150405");functionldt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(ldt,"generateBlobSASQueryParameters20181109");functionudt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(udt,"generateBlobSASQueryParameters20201206");functionddt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(ddt,"generateBlobSASQueryParametersUDK20181109");functionpdt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(pdt,"generateBlobSASQueryParametersUDK20200210");functionmdt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(mdt,"generateBlobSASQueryParametersUDK20201206");functionfdt(t,e){if(t=vm(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=Ec.parse(t.permissions.toString()).toString():s=Cc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?dt(t.startsOn,!1):"",t.expiresOn?dt(t.expiresOn,!1):"",Tm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?dt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?dt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Ji(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newji(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(fdt,"generateBlobSASQueryParametersUDK20250705");functionTm(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}i(Tm,"getCanonicalName");functionvm(t){lete=t.version?t.version:dN;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(vm,"SASSignatureValuesSanityCheckAndAutofill");varLI=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=ph()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zi||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.");returnte.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>de(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!==zi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zi||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.");returnte.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=de(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"}};_h.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Dm=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
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"}};Dm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var VI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var dpt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},IV=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ge(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ZAe(t,e,r){return dpt(this,void 0,void 0,function*(){var n;let s=new Jl(t),o=s.getBlockBlobClient(),a=new IV((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new hT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Cr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(ZAe,"uploadCacheArchiveSDK");var the=R(require("buffer"),1),Ic=R(require("fs"),1),rhe=R(require("stream"),1),nhe=R(require("util"),1);var gT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function yT(t){return t?t>=200&&t<300:!1}i(yT,"isSuccessStatusCode");function ppt(t){return t?t>=500:!0}i(ppt,"isServerErrorStatusCode");function mpt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(mpt,"isRetryableStatusCode");function fpt(t){return gT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(fpt,"sleep");function ehe(t,e,r){return gT(this,arguments,void 0,function*(n,s,o,a=GB,c=HB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(A){l&&(p=l(A)),f=!0,u=A.message}if(p&&(m=o(p),!ppt(m)))return p;if(m&&(f=mpt(m),u=`Cache service responded with ${m}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){T(`${n} - Error is not retryable`);break}yield fpt(c),d++}throw Error(`${n} failed: ${u}`)})}i(ehe,"retry");function WI(t,e){return gT(this,arguments,void 0,function*(r,n,s=GB,o=HB){return yield ehe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Wa)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(WI,"retryTypedResponse");function Qh(t,e){return gT(this,arguments,void 0,function*(r,n,s=GB,o=HB){return yield ehe(r,n,a=>a.message.statusCode,s,o)})}i(Qh,"retryHttpClientResponse");var ai=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(
Othercacheswithsimilarkey:`);for(let c of o?.artifactCaches||[])T(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(wpt,"printCachesListForDiagnostics");function BV(t,e,r){return Ls(this,void 0,void 0,function*(){let n=new hhe.URL(t),s=ahe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ohe(t,e,s):s.concurrentBlobDownloads?yield she(t,e,s):yield CT(t,e):yield CT(t,e)})}i(BV,"downloadCache");function yhe(t,e,r){return Ls(this,void 0,void 0,function*(){let n=bV(),s=nh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield WI("reserveCache",()=>Ls(this,void 0,void 0,function*(){return n.postJson(JI("caches"),o)}))})}i(yhe,"reserveCache");function Ahe(t,e){return`bytes${t}-${e}/*`}i(Ahe,"getContentRange");function Spt(t,e,r,n,s){return Ls(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ahe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":Ahe(n,s)},a=yield Qh(`uploadChunk (start: ${n}, end: ${s})`,()=>Ls(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!yT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Spt,"uploadChunk");function xpt(t,e,r,n){return Ls(this,void 0,void 0,function*(){let s=Va(r),o=JI(`caches/${e.toString()}`),a=Dh.openSync(r,"r"),c=wV(n),l=Xq("uploadConcurrency",c.uploadConcurrency),u=Xq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ls(this,void 0,void 0,function*(){for(;p<s;){let m=Math.min(s-p,u),f=p,A=p+m-1;p+=u,yield Spt(t,o,()=>Dh.createReadStream(r,{fd:a,start:f,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),f,A)}})))}finally{Dh.closeSync(a)}})}i(xpt,"uploadFile");function bpt(t,e,r){return Ls(this,void 0,void 0,function*(){let n={size:r};return yield WI("commitCache",()=>Ls(this,void 0,void 0,function*(){return t.postJson(JI(`caches/${e.toString()}`),n)}))})}i(bpt,"commitCache");function RV(t,e,r,n){return Ls(this,void 0,void 0,function*(){if(wV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ZAe(r,e,n)}else{let o=bV();T("Upload cache"),yield xpt(o,t,e,n),T("Commiting cache");let a=Va(e);ge(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield bpt(o,t,a);if(!yT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ge("Cache saved successfully")}})}i(RV,"saveCache");var pge=R(oge(),1),Br=R(br(),1),So=R(br(),1),Fm=R(br(),1),Um=R(br(),1),qm=R(br(),1);var I4=R(br(),1),w4=R(br(),1),lge=R(br(),1),uge=R(br(),1),dge=R(br(),1);var y4=R(br(),1),E4=R(br(),1),ige=R(br(),1),age=R(br(),1),cge=R(br(),1);var C4=class extends cge.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,age.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ige.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.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?E4.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,y4.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,y4.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?E4.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},av=new C4;var S4=class extends dge.Me
`));let n=yield M4(r,"create");yield F4(n,t)})}i(q4,"createTar");var jh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Zi=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Gm=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},G4="cache write denied:",dv=class t extends Gm{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},hge=$B,pv=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},mv=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function gge(t){if(!t||t.length===0)throw new Zi("Path Validation Error: At least one directory or file path is required")}i(gge,"checkPaths");function H4(t){if(t.length>512)throw new Zi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Zi(`Key Validation Error: ${t} cannot contain commas.`)}i(H4,"checkKey");function $4(){return YI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i($4,"isFeatureAvailable");function yge(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=YI();T(`Cache service version: ${u}`),gge(s);let d=xV();if(!lhe(d)){ge(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield Uft(s,o,a,c,l):yield Fft(s,o,a,c,l)})}i(yge,"restoreCache");function Fft(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Zi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)H4(f);let p=yield WC(),m="";try{let f;try{f=yield ghe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let E=(u=h?.message)!==null&&u!==void 0?u:"";throw E.includes(hge)?new pv(E):h}if(!f?.archiveLocation)return;if(c?.lookupOnly)return ge("Lookup only - skipping download"),f.cacheKey;m=dw.join(yield zC(),Xu(p)),T(`Archive Path: ${m}`),yield BV(f.archiveLocation,m,c),tm()&&(yield uw(m,p));let A=Va(m);return ge(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`),yield U4(m,p),ge("Cache restored successfully"),f.cacheKey}catch(f){let A=f;if(A.name===Zi.name)throw f;A instanceof Wa&&typeof A.statusCode=="number"&&A.statusCode>=500?WA(`Failed to restore: ${f.message}`):Cr(`Failed to restore: ${f.message}`)}finally{try{yield VC(m)}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(Fft,"restoreCacheV1");function Uft(t,e,r,n){return jh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new Zi("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)H4(m);let p="";try{let m=O4(),f=yield WC(),A={key:o,restoreKeys:a,version:nh(s,f,l)},h;try{h=yield m.GetCacheEntryDownloadURL(A)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(hge)?new pv(x):I}if(!h.ok){T(`Cache not found for version ${A.version} of keys: ${d.join(", ")}`);return}if(A.key!==h.matchedKey?ge(`Cache hit for restore-key: ${h.matchedKey}`):ge(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return ge("Lookup only - skipping download"),h.matchedKey;p=dw.join(yield zC(),Xu(f)),T(`Archive path: ${p}`),T(`Starting download of archive to:
`),u="",d=!1,p=0,m=!1;for(let f of l){let A=0;for(;A<a&&f.charCodeAt(A)===32;)A++;if(n<0||A>=f.length){p++;continue}let h=f.slice(a),E=h.charCodeAt(0);o?E===32||E===9?(m=!0,u+=`
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return m<f},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:p,ltrim:m,max_record_size:f,raw:A,relax_quotes:h,rtrim:E,skip_empty_lines:y,to:I,to_line:x}=this.options,{comment:b,escape:N,quote:P,record_delimiter:_}=this.options,{bomSkipped:G,delimiterDiscovered:ae,delimiterBufPrevious:Ce,rawBuffer:_e,escapeIsQuote:ie}=this.state;if(!ae&&u){let mt;if(Ce===void 0?mt=n:Ce!==void 0&&n===void 0?mt=Ce:mt=Buffer.concat([Ce,n]),n=void 0,s||mt.length>u.size)this.options.delimiter=[Buffer.from(Ewe(mt,this.options.delimiter_auto))],this.state.previousBuf=mt,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=mt;return}}let{previousBuf:De}=this.state,D;if(De===void 0)if(n===void 0){a();return}else D=n;else De!==void 0&&n===void 0?D=De:D=Buffer.concat([De,n]);if(G===!1)if(c===!1)this.state.bomSkipped=!0;else if(D.length<3){if(s===!1){this.state.previousBuf=D;return}}else{for(let mt in xg)if(xg[mt].compare(D,0,xg[mt].length)===0){let Na=xg[mt].length;this.state.bufBytesStart+=Na,D=D.slice(Na);let wu=Sg({...this.original_options,encoding:mt});for(let sr in wu)this.options[sr]=wu[sr];({comment:b,escape:N,quote:P}=this.options);break}this.state.bomSkipped=!0}let ze=D.length,Z;for(Z=0;Z<ze&&!this.__needMoreData(Z,ze,s);Z++){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&&_.length===0&&this.__autoDiscoverRecordDelimiter(D,Z)&&(_=this.options.record_delimiter);let mt=D[Z];if(A===!0&&_e.append(mt),(mt===QSt||mt===DSt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(D,Z,mt)&&Z+N.length<ze)if(ie){if(this.__isQuote(D,Z+N.length)){this.state.escaping=!0,Z+=N.length-1;continue}}else{this.state.escaping=!0,Z+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(D,Z))if(this.state.quoting===!0){let sr=D[Z+P.length],Ta=E&&this.__isCharTrimable(D,Z+P.length),js=b!==null&&this.__compareBytes(b,D,Z+P.length,sr),Ip=this.__isDelimiter(D,Z+P.length,sr),rb=_.length===0?this.__autoDiscoverRecordDelimiter(D,Z+P.length):this.__isRecordDelimiter(sr,D,Z+P.length);if(N!==null&&this.__isEscape(D,Z,mt)&&this.__isQuote(D,Z+N.length))Z+=N.length-1;else if(!sr||Ip||rb||js||Ta){this.state.quoting=!1,this.state.wasQuoting=!0,Z+=P.length-1;continue}else if(h===!1){let KK=this.__error(new Ze("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(sr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(KK!==void 0)return KK}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(P),Z+=P.length-1}else if(this.state.field.length!==0){if(h===!1){let sr=this.__infoField(),Ta=Object.keys(xg).map(Ip=>xg[Ip].equals(this.state.field.toString())?Ip:!1).filter(Boolean)[0],js=this.__error(new Ze("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(sr.column)} at line ${sr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ta?`(${Ta} bom)`:void 0],this.options,sr,{field:this.state.field}));if(js!==void 0)return js}}else{this.state.quoting=!0,Z+=P.length-1;continue}if(this.state.quoting===!1){let sr=this.__isRecordDelimiter(mt,D,Z);if(sr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Z+=sr-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Z+=sr-1;continue}this.info.bytes=this.state.bufBytesStart+Z;let Ip=this.__onFiel
`)}i(Bxt,"_buildMessageForResponseErrors");var Rxt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Bxt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Nxt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Txt=["query","method","url"],cSe=/\/api\/v3\/?$/;function vxt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Txt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Nxt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cSe.test(o)&&(s.url=o.replace(cSe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Rxt(s,c,a.data)}return a.data.data})}i(vxt,"graphql");function YY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>vxt(r,s,o),"newApi"),{defaults:YY.bind(null,r),endpoint:r.endpoint})}i(YY,"withDefaults");var XSr=YY(Qw,{headers:{"user-agent":`octokit-graphql.js/${bxt} ${Sd()}`},method:"POST",url:"/graphql"});function lSe(t){return YY(t,{method:"POST",url:"/graphql"})}i(lSe,"withCustomRequest");var JY="(?:[a-zA-Z0-9_-]+)",uSe="\\.",dSe=new RegExp(`^${JY}${uSe}${JY}${uSe}${JY}$`),Pxt=dSe.test.bind(dSe);async function _xt(t){let e=Pxt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(_xt,"auth");function Qxt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(Qxt,"withAuthorizationPrefix");async function Dxt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Qxt(t),e(s)}i(Dxt,"hook");var pSe=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(_xt.bind(null,e),{hook:Dxt.bind(null,e)})},"createTokenAuth2");var jY="7.0.6";var mSe=i(()=>{},"noop"),kxt=console.warn.bind(console),Lxt=console.error.bind(console);function Oxt(t={}){return typeof t.debug!="function"&&(t.debug=mSe),typeof t.info!="function"&&(t.info=mSe),typeof t.warn!="function"&&(t.warn=kxt),typeof t.error!="function"&&(t.error=Lxt),t}i(Oxt,"createLogger");var fSe=`octokit-core.js/${jY} ${Sd()}`,LP=class{static{i(this,"Octokit")}static VERSION=jY;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qwe.Collection,n={baseUrl:Qw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${fSe}`:fSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qw.defaults(n),this.graphql=lSe(this.request).defaults(n),this.log=Oxt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=pSe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:m,file:h.path,startLine:f}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function xSe(){return{registry:qi("registry"),username:qi("username"),password:qi("password"),scope:qi("scope"),ecr:qi("ecr"),logout:rie("logout"),registryAuth:qi("registry-auth")}}i(xSe,"getInputs");function bSe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=eye(t.registryAuth).map(r=>{r.password&&Ln(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:String(r.ecr??"")||"auto",configDir:MP(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:MP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(bSe,"getAuthList");function MP(t,e){if(Yxt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=rf.default.resolve(OP.configDir,"config"),o=rf.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!SSe(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=rf.default.resolve(o,c);if(!SSe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(MP,"scopeToConfigDir");function SSe(t,e){let r=rf.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${rf.default.sep}`)&&!rf.default.isAbsolute(r)}i(SSe,"isChildPath");function Yxt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Id.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(Yxt,"scopeDisabled");var GHe=R(Y2e(),1),HHe=R(BHe(),1),WK=R(hu(),1);var vHe=R(require("net"),1),PHe=R(require("tls"),1),_He=R(fm(),1),QHe=require("events");var RHe=R(require("net"),1),NHe=R(require("http"),1),THe=require("https");var gl=Symbol("AgentBaseInternalState"),$M=class extends NHe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[gl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new RHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?THe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[gl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[gl].currentSocket;if(this[gl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[gl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[gl]&&(this[gl].defaultPort=e)}get protocol(){return this[gl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[gl]&&(this[gl].protocol=e)}};var $K=require("url");function zM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}i(zM,"createNegotiateAuth");var cE=(0,_He.default)("http-proxy-agent"),Zx=class extends $M{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $K.URL(e):e,this.proxyHeaders=r?.headers??{},cE("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=zM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Nzt(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new $K.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;cE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(cE("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r
`;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",MHe),r.secureEndpoint?(Wf("Upgrading socket connection to TLS"),eb.connect({...VK(YM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};tb.protocols=["http","https"];function MHe(t){setImmediate(()=>{t.resume()})}i(MHe,"resume");function VK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(VK,"omit");var YK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,Tzt=/public\.ecr\.aws|ecr-public\.aws\.com/,$He=i(t=>YK.test(t)||JM(t),"isECR"),JM=i(t=>Tzt.test(t),"isPubECR"),vzt=i(t=>{if(JM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(YK);return e?e[4]:""},"getRegion"),Pzt=i(t=>{if(JM(t))return[];let e=t.match(YK);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},"getAccountIDs"),zHe=i(async(t,e,r)=>{let n=vzt(t),s=Pzt(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new Zx(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new tb(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(JM(t)){ge(`AWS Public ECR detected with ${n} region`);let m=await new HHe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new WK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return Ln(A[0]),Ln(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{ge(`AWS ECR detected with ${n} region`);let m=await new GHe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new WK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let A of m.authorizationData){let E=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);Ln(E[0]),Ln(E[1]),f.push({registry:A.proxyEndpoint||"",username:E[0],password:E[1]})}return f}},"getRegistriesData");var VHe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Qzt(t){return typeof t=="string"&&VHe.test(t)}i(Qzt,"validate");var JK=Qzt;var Dzt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),kzt=300,WHe=300,YHe=21600,JHe=5,jHe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&Dzt.has(t),"isDockerHubOIDC"),KHe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!JK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=Lzt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ge(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ge("Retrieving GitHub OIDC token for Docker Hub");let a=await oie(o),c=new po("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),ge("Exchangi