varB5=Object.create;varUC=Object.defineProperty;varQ5=Object.getOwnPropertyDescriptor;varx5=Object.getOwnPropertyNames;varw5=Object.getPrototypeOf,b5=Object.prototype.hasOwnProperty;varh=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),N5=(t,e)=>{for(varrine)UC(t,r,{get:e[r],enumerable:!0})},S5=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofx5(e))!b5.call(t,s)&&s!==r&&UC(t,s,{get:()=>e[s],enumerable:!(n=Q5(e,s))||n.enumerable});returnt};varB=(t,e,r)=>(r=t!=null?B5(w5(t)):{},S5(e||!t||!t.__esModule?UC(r,"default",{value:t,enumerable:!0}):r,t));varYD=h(sc=>{"use strict";varI0e=require("net"),D5=require("tls"),HC=require("http"),HD=require("https"),k5=require("events"),B0e=require("assert"),T5=require("util");sc.httpOverHttp=M5;sc.httpsOverHttp=L5;sc.httpOverHttps=_5;sc.httpsOverHttps=F5;functionM5(t){vare=newti(t);returne.request=HC.request,e}functionL5(t){vare=newti(t);returne.request=HC.request,e.createSocket=zD,e.defaultPort=443,e}function_5(t){vare=newti(t);returne.request=HD.request,e}functionF5(t){vare=newti(t);returne.request=HD.request,e.createSocket=zD,e.defaultPort=443,e}functionti(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(vara=GD(s,i,o),c=0,l=e.requests.length;c<l;++c){varA=e.requests[c];if(A.host===a.host&&A.port===a.port){e.requests.splice(c,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}T5.inherits(ti,k5.EventEmitter);ti.prototype.addRequest=function(e,r,n,s){vari=this,o=zC({request:e},i.options,GD(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){i.emit("free",a,o)}functionl(A){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};ti.prototype.createSocket=function(e,r){varn=this,s={};n.sockets.push(s);vari=zC({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),Oi("making CONNECT request");varo=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",A),o.end();functiona(u){u.upgrade=!0}functionc(u,d,m){process.nextTick(function(){l(u,d,m)})}functionl(u,d,m){if(o.removeAllListeners(),d.removeAllListeners(),u.statusCode!==200){Oi("tunneling socket could not be established, statusCode=%d",u.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+u.statusCode);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s);return}if(m.length>0){Oi("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s);return}returnOi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}functionA(u){o.removeAllListeners(),Oi(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}functionfc(t,e,r){letn=r.position;for(;n<e.length&&t(e[n]);)++n;returne.subarray(r.position,r.position=n)}functionVI(t,e,r,n){lets=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;returns===0&&i===t.length-1?t:t.subarray(s,i+1)}functiondp(t,e,r){if(t.length<e.length)return!1;for(letn=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}KT.exports={multipartFormDataParser:eK,validateBoundary:Zj}});varEc=h((K0e,cM)=>{"use strict";varMA=ce(),{ReadableStreamFrom:rK,isBlobLike:ZT,isReadableStreamLike:nK,readableStreamClose:sK,createDeferredPromise:iK,fullyReadBody:oK,extractMimeType:aK,utf8DecodeBytes:rM}=br(),{FormData:eM}=TA(),{kState:yc}=qi(),{webidl:cK}=vt(),{Blob:lK}=require("node:buffer"),JI=require("node:assert"),{isErrored:nM,isDisturbed:AK}=require("node:stream"),{isArrayBuffer:uK}=require("node:util/types"),{serializeAMimeType:dK}=ir(),{multipartFormDataParser:mK}=XT(),WI;try{lett=require("node:crypto");WI=e=>t.randomInt(0,e)}catch{WI=t=>Math.floor(Math.random(t))}varmp=newTextEncoder;functionpK(){}varsM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,iM;sM&&(iM=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!AK(e)&&!nM(e)&&e.cancel("Response object has been garbage collected").catch(pK)}));functionoM(t,e=!1){letr=null;tinstanceofReadableStream?r=t:ZT(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofs=="string"?mp.encode(s):s;l.byteLength&&c.enqueue(l),queueMicrotask(()=>sK(c))},start(){},type:"bytes"}),JI(nK(r));letn=null,s=null,i=null,o=null;if(typeoft=="string")s=t,o="text/plain;charset=UTF-8";elseif(tinstanceofURLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";elseif(uK(t))s=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))s=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(MA.isFormDataLike(t)){letc=`----formdata-undici-0${`${WI(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);d.push(f),i+=f.byteLength,p&&(i=null),s=t,n=asyncfunction*(){for(letEofd)E.stream?yield*E.stream():yieldE},o=`multipart/form-data; boundary=${c}`}elseif(ZT(t))s=t,i=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(MA.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:rK(t)}if((typeofs=="string"||MA.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){letc;r=newReadableStream({asyncstart(){c=n(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:A,done:u}=awaitc.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!nM(r)){letd=newUint8Array(A);d.byteLength&&l.enqueue(d)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}functionhK(t,e=!1){returntinstanceofReadableStream&&(JI(!MA.isDisturbed(t),"The body has already been consumed."),JI(!t.locked,"The stream is locked.")),oM(t,e)}functionfK(t,e){let[r,n]=e.stream.tee();returne.stream=r,{stream:n,length:e.length,source:e.source}}functiongK(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionyK(t){return{blob(){returngc(this,r=>{letn=tM(this);returnn===null?n="":n&&(n=dK(n)),newlK([r],{type:n})},t)},arrayBuffer(){returngc(this,r=>newUint8Array(r).buffer,t)},text(){returngc(this,rM,t)},json(){returngc(this,CK,t)},formData(){returngc(this,r=>{letn=tM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{lets=mK(r,n);if(s==="failure")thrownewTypeError("Failed to parse body as FormData.");leti=neweM;returni[yc]=s,i}case"application/x-www-form-urlencoded":{lets=newURLSearchParams(r.toString()),i=neweM;for(let[o,a]ofs)i.append(o,a);returni}}thrownewTypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){returngc(this,r=>newUint8Array(r),t)}}}functionEK(t){Object.assign(t.prototype,yK(t))}asyncfunctiongc(t,e,r){if(cK.brandCheck(t,r),aM(t))thrownewTypeError("Body is unusable: Body has already been read");gK(t[yc]);letn=iK(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};returnt[yc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(awaitoK(t[yc].body,i,s),n.promise)}functionaM(t){lete=t[yc].body;returne!=null&&(e.stream.locked||MA.isDisturbed(e.stream))}functionCK(t){returnJSON.parse(rM(t))}functiontM(t){lete=t[yc].headersList,r=aK(e);returnr==="failure"?null:r}cM.exports={extractBody:oM,safelyExtractBody:hK,cloneBody:fK,mixinBody:EK,streamRegistry:iM,hasFinalizationRegistry:sM,bodyUnusable:aM}});varBM=h((X0e,IM)=>{"use strict";varV=require("node:assert"),Z=ce(),{channels:lM}=oc(),$I=PI(),{RequestContentLengthMismatchError:Ho,ResponseContentLengthMismatchError:AM,RequestAbortedError:yM,HeadersTimeoutError:IK,HeadersOverflowError:BK,SocketError:Cp,InformationalError:Cc,BodyTimeoutError:QK,HTTPParserError:xK,ResponseExceededMaxSizeError:wK}=ye(),{kUrl:EM,kReset:or,kClient:gp,kParser:Ye,kBlocking:FA,kRunning:Mt,kPending:bK,kSize:uM,kWriting:zi,kQueue:Sn,kNoRef:LA,kKeepAliveDefaultTimeout:NK,kHostHeader:SK,kPendingIdx:RK,kRunningIdx:tn,kError:Vt,kPipelining:yp,kSocket:Ic,kKeepAliveTimeoutValue:Ip,kMaxHeadersSize:jI,kKeepAliveMaxTimeout:PK,kKeepAliveTimeoutThreshold:vK,kHeadersTimeout:DK,kBodyTimeout:kK,kStrictContentLength:ZI,kMaxRequests:dM,kCounter:TK,kMaxResponseSize:MK,kOnError:mM,kResume:Hi,kHTTPContext:CM}=Le(),Nr=iT(),pM=Buffer.alloc(0),pp=Buffer[Symbol.species],hp=Z.addListener,LK=Z.removeAllListeners,KI;asyncfunction_K(){lett=process.env.JEST_WORKER_ID?kI():void0,e;try{e=awaitWebAssembly.compile(cT())}catch{e=awaitWebAssembly.compile(t||kI())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{V(Ge.ptr===r);leti=n-ss+ns.byteOffset;returnGe.onStatus(newpp(ns.buffer,i,s))||0},wasm_on_message_begin:r=>(V(Ge.ptr===r),Ge.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{V(Ge.ptr===r);leti=n-ss+ns.byteOffset;returnGe.onH
`}return lM.sendHeaders.hasSubscribers&&lM.sendHeaders.publish({request:e,headers:f,socket:m}),!c||d===0?fM(p,null,t,e,m,A,f,u):Z.isBuffer(c)?fM(p,c,t,e,m,A,f,u):Z.isBlobLike(c)?typeof c.stream=="function"?gM(p,c.stream(),t,e,m,A,f,u):GK(p,c,t,e,m,A,f,u):Z.isStream(c)?zK(p,c,t,e,m,A,f,u):Z.isIterable(c)?gM(p,c,t,e,m,A,f,u):V(!1),!0}function zK(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===0,"stream body cannot be pipelined");let c=!1,l=new Bp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(f){Z.destroy(this,f)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new yM;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,V(s.destroyed||s[zi]&&r[Mt]<=1),s.off("drain",u).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",d),!p)try{l.end()}catch(f){p=f}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Z.destroy(e,p):Z.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),s.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function fM(t,e,r,n,s,i,o,a){try{e?Z.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length:${i}\r
`,"latin1")),n.onRequestSent(),r[Hi]()}catch(c){t(c)}}async function GK(t,e,r,n,s,i,o,a){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ho;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length:${i}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[or]=!0),r[Hi]()}catch(c){t(c)}}async function gM(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let A=()=>new Promise((d,m)=>{V(c===null),s[Vt]?m(s[Vt]):c=d});s.on("close",l).on("drain",l);let u=new Bp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Vt])throw s[Vt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{s.off("close",l).off("drain",l)}}var Bp=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[zi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Vt])throw r[Vt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(s!==null&&o+l>s){if(i[ZI])throw new Ho;process.emitWarning(new Ho)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[or]=!0),s===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[ZI])throw new Ho;process.emitWarning(new Ho)}e[Ye].timeout&&e[Ye].timeoutType===Bc&&e[Ye].timeout.refresh&&e[Ye].timeout.refresh(),n[Hi]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zi]=!1,e&&(V(n[Mt]<=1,"pipeline should only contain this request"),s(e))}};IM.exports=UK});var PM=h((Z0e,RM)=>{"use strict";var rn=require("node:assert"),{pipeline:YK}=require("node:stream"),Ae=ce(),{RequestContentLengthMismatchError:nB,RequestAbortedError:QM,SocketError:UA,InformationalError:sB}=ye(),{kUrl:Qp,kReset:wp,kClient:Qc,kRunning:bp,kPending:VK,kQueue:Gi,kPendingIdx:iB,kRunningIdx:Rn,kError:vn,kSocket:xt,kStrictContentLength:JK,kOnError:oB,kMaxConcurrentStreams:SM,kHTTP2Session:Pn,kResume:Yi,kSize:WK,kHTTPContext:$K}=Le(),ai=Symbol("open streams"),xM,wM=!1,xp;try{xp=require("node:http2")}catch{xp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jK,HTTP2_HEADER_METHOD:KK,HTTP2_HEADER_PATH:XK,HTTP2_HEADER_SCHEME:ZK,HTTP2_HEADER_CONTENT_LENGTH:eX,HTTP2_HEADER_EXPECT:tX,HTTP2_HEADER_STATUS:rX}}=xp;function nX(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function sX(t,e){t[xt]=e,wM||(wM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=xp.connect(t[Qp],{createConnection:()=>e,peerMaxConcurrentStreams:t[SM]});r[ai]=0,r[Qc]=t,r[xt]=e,Ae.addListener(r,"error",oX),Ae.addListener(r,"frameError",aX),Ae.addListener(r,"end",cX),Ae.addListener(r,"goaway",lX),Ae.addListener(r,"close",function(){let{[Qc]:s}=this,{[xt]:i}=s,o=this[xt][vn]||this[vn]||new UA("closed",Ae.getSocketInfo(i));if(s[Pn]=null,s.destroyed){rn(s[VK]===0);let a=s[Gi].splice(s[Rn]);for(let c=0;c<a.length;c++){let l=a[c];Ae.errorRequest(s,l,o)}}}),r.unref(),t[Pn]=r,e[Pn]=r,Ae.addListener(e,"error",function(s){rn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn]=s,this[Qc][oB](s)}),Ae.addListener(e,"end",function(){Ae.destroy(this,new UA("other side closed",Ae.getSocketInfo(this)))}),Ae.addListener(e,"close",function(){let s=this[vn]||new UA("closed",Ae.getSocketInfo(this));t[xt]=null,this[Pn]!=null&&this[Pn].destroy(s),t[iB]=t[Rn],rn(t[bp]===0),t.emit("disconnect",t[Qp],[t],s),t[Yi]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uX(t,...s)},resume(){iX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function iX(t){let e=t[xt];e?.destroyed===!1&&(t[WK]===0&&t[SM]===0?(e.unref(),t[Pn].unref()):(e.ref(),t[Pn].ref()))}function oX(t){rn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][vn]=t,this[Qc][oB](t)}function aX(t,e,r){if(r===0){let n=new sB(`HTTP/2:"frameError"received-type${t},code${e}`);this[xt][vn]=n,this[Qc][oB](n)}}function cX(){let t=new UA("other side closed",Ae.getSocketInfo(this[xt]));this.destroy(t),Ae.destroy(this[xt],t)}function lX(t){let e=this[vn]||new UA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Ae.getSocketInfo(this)),r=this[Qc];if(r[xt]=null,r[$K]=null,this[Pn]!=null&&(this[Pn].destroy(e),this[Pn]=null),Ae.destroy(this[xt],e),r[Rn]<r[Gi].length){let n=r[Gi][r[Rn]];r[Gi][r[Rn]++]=null,Ae.errorRequest(r,n,e),r[iB]=r[Rn]}rn(r[bp]===0),r.emit("disconnect",r[Qp],[r],e),r[Yi]()}function AX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uX(t,e){let r=t[Pn],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return Ae.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let w=l[I+0],D=l[I+1];if(Array.isArray(D))for(let _=0;_<D.length;_++)u[w]?u[w]+=`,${D[_]}`:u[w]=D[_];else u[w]=D}let d,{hostname:m,port:p}=t[Qp];u[jK]=i||`${m}${p?`:${p}`:""}`,u[KK]=n;let f=I=>{e.aborted||e.completed||(I=I||new QM,Ae.errorRequest(t,e,I),d!=null&&Ae.destroy(d,I),Ae.destroy(A,I),t[Gi][t[Rn]++]=null,t[Yi]())};try{e.onConnect(f)}catch(I){Ae.errorRequest(t,e,I)}if(e.aborted)return!1;if(n==="CONNECT"
`.trim())}};lF.exports=CQ});var $p=h((TNe,pF)=>{"use strict";var uF=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_ee}=ye(),Fee=Sc();mF()===void 0&&dF(new Fee);function dF(t){if(!t||typeof t.dispatch!="function")throw new _ee("Argument agent must implement Agent");Object.defineProperty(globalThis,uF,{value:t,writable:!0,enumerable:!1,configurable:!1})}function mF(){return globalThis[uF]}pF.exports={setGlobalDispatcher:dF,getGlobalDispatcher:mF}});var jp=h((LNe,hF)=>{"use strict";hF.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var gF=h((_Ne,fF)=>{"use strict";var Uee=Sp();fF.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new Uee(r,o,s,i);return r(a,c)}}});var EF=h((FNe,yF)=>{"use strict";var Oee=Up();yF.exports=t=>e=>function(n,s){return e(n,new Oee({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var IF=h((UNe,CF)=>{"use strict";var qee=ce(),{InvalidArgumentError:Hee,RequestAbortedError:zee}=ye(),Gee=jp(),IQ=class extends Gee{#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Hee("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#n=e}onHeaders(e,r,n,s){let o=qee.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new zee(`Responsesize(${o})largerthanmaxSize(${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Yee({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new IQ({maxSize:i},s);return e(n,o)}}CF.exports=Yee});var xF=h((ONe,QF)=>{"use strict";var{isIP:Vee}=require("node:net"),{lookup:Jee}=require("node:dns"),Wee=jp(),{InvalidArgumentError:Fc,InformationalError:$ee}=ye(),BF=Math.pow(2,31)-1,BQ=class{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new $ee("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),A;typeof l.port=="number"?A=`:${l.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,n){Jee(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===BF?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===
${i}`;break;case"retry":n1(i)&&(r[s]=i);break;case"id":s1(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&n1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&s1(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};i1.exports={EventSourceStream:lx}});var p1=h((gSe,m1)=>{"use strict";var{pipeline:sie}=require("node:stream"),{fetching:iie}=au(),{makeRequest:oie}=qc(),{webidl:pi}=vt(),{EventSourceStream:aie}=o1(),{parseMIMEType:cie}=ir(),{createFastMessageEvent:lie}=Jc(),{isNetworkError:a1}=iu(),{delay:Aie}=ax(),{kEnumerableProperty:oa}=ce(),{environmentSettingsObject:c1}=br(),l1=!1,A1=3e3,Cu=0,u1=1,Iu=2,uie="anonymous",die="use-credentials",Xc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=Cu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),pi.util.markAsUncloneable(this);let n="EventSource constructor";pi.argumentLengthCheck(arguments,1,n),l1||(l1=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pi.converters.USVString(e,n,"url"),r=pi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:A1};let s=c1,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=uie;r.withCredentials&&(o=die,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=c1.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=oie(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===Iu)return;this.#i=Cu;let e={request:this.#s,dispatcher:this.#o},r=n=>{a1(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(a1(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),i=s!==null?cie(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=u1,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let a=new aie({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(lie(c.type,c.options))}});sie(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=iie(e)}async#l(){this.#i!==Iu&&(this.#i=Cu,this.dispatchEvent(new Event("error")),await Aie(this.#a.reconnectionTime),this.#i===Cu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){pi.brandCheck(this,t),this.#i!==Iu&&(this.#i=Iu,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},d1={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Cu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:u1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Iu,writable:!1}};Object.defineProperties(Xc,d1);Object.defineProperties(Xc.prototype,d1);Obj
%s`,w,w,y,n);varD=y.type==="*"?uw:y.type==="?"?Aw:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+D+"\\("+w}p(),i&&(n+="\\\\");var_=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(varae=a.length-1;ae>-1;ae--){varge=a[ae],Be=n.slice(0,ge.reStart),H=n.slice(ge.reStart,ge.reEnd-8),ee=n.slice(ge.reEnd-8,ge.reEnd),F=n.slice(ge.reEnd);ee+=F;varde=Be.split("(").length-1,At=F;for(f=0;f<de;f++)At=At.replace(/\)[+*?]?/,"");F=At;varHe="";F===""&&e!==uf&&(He="$");vartt=Be+H+F+He+ee;n=tt}if(n!==""&&s&&(n="(?=.)"+n),_&&(n=d+n),e===uf)return[n,s];if(!s)return$le(t);varei=r.nocase?"i":"";try{varwr=newRegExp("^"+n+"$",ei)}catch{returnnewRegExp("$.")}returnwr._glob=t,wr._src=n,wr}_r.makeRe=function(t,e){returnnewDt(t,e||{}).makeRe()};Dt.prototype.makeRe=Wle;functionWle(){if(this.regexp||this.regexp===!1)returnthis.regexp;vart=this.set;if(!t.length)returnthis.regexp=!1,this.regexp;vare=this.options,r=e.noglobstar?uw:e.dot?Ole:qle,n=e.nocase?"i":"",s=t.map(function(i){returni.map(function(o){returno===dw?r:typeofo=="string"?jle(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=newRegExp(s,n)}catch{this.regexp=!1}returnthis.regexp}_r.match=function(t,e,r){r=r||{};varn=newDt(e,r);returnt=t.filter(function(s){returnn.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Dt.prototype.match=function(e,r){if(typeofr>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)returne==="";if(e==="/"&&r)return!0;varn=this.options;Gu.sep!=="/"&&(e=e.split(Gu.sep).join("/")),e=e.split(CH),this.debug(this.pattern,"split",e);vars=this.set;this.debug(this.pattern,"set",s);vari,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){vara=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);varl=this.matchOne(c,a,r);if(l)returnn.flipNegate?!0:!this.negate}returnn.flipNegate?!1:this.negate};Dt.prototype.matchOne=function(t,e,r){varn=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(vars=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");varc=e[i],l=t[s];if(this.debug(e,c,l),c===!1)return!1;if(c===dw){this.debug("GLOBSTAR",[e,c,l]);varA=s,u=i+1;if(u===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;A<o;){vard=t[A];if(this.debug(`
globstar while`,t,A,e,u,d),this.matchOne(t.slice(A),e.slice(u),r))returnthis.debug("globstar found match!",A,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,A,e,u);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newApe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?upe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){lets={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),ainstanceoffY.Agent)try{returna.addRequest(e,s)}catch(c){returnn(c)}this[Es].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){lete=this[Es].currentSocket;if(this[Es].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[Es].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[Es]&&(this[Es].defaultPort=e)}getprotocol(){returnthis[Es].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[Es]&&(this[Es].protocol=e)}};qr.Agent=ab});varCY=h(Cl=>{"use strict";vardpe=Cl&&Cl.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parseProxyResponse=void0;varmpe=dpe(tg()),rg=(0,mpe.default)("https-proxy-agent:parse-proxy-response");functionppe(t){returnnewPromise((e,r)=>{letn=0,s=[];functioni(){letA=t.read();A?l(A):t.once("readable",i)}functiono(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}functiona(){o(),rg("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}functionc(A){o(),rg("onerror %o",A),r(A)}functionl(A){s.push(A),n+=A.length;letu=Buffer.concat(s,n),d=u.indexOf(`\r
`);let{connect:l,buffered:A}=awaitc;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)returne.once("socket",Bpe),r.secureEndpoint?(Ad("Upgrading socket connection to TLS"),IY.connect({...QY(BY(r),"host","path","port"),socket:s})):s;s.destroy();letu=newng.Socket({writable:!1});returnu.readable=!0,e.once("socket",d=>{Ad("Replaying proxy buffer for failed request"),(0,gpe.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};sg.protocols=["http","https"];hn.HttpsProxyAgent=sg;functionBpe(t){t.resume()}functionQY(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}});varRY=h(hr=>{"use strict";varQpe=hr&&hr.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),xpe=hr&&hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NY=hr&&hr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Qpe(e,t,r);returnxpe(e,t),e};Object.defineProperty(hr,"__esModule",{value:!0});hr.req=hr.json=hr.toBuffer=void0;varwpe=NY(require("http")),bpe=NY(require("https"));asyncfunctionSY(t){lete=0,r=[];forawait(letnoft)e+=n.length,r.push(n);returnBuffer.concat(r,e)}hr.toBuffer=SY;asyncfunctionNpe(t){letr=(awaitSY(t)).toString("utf8");try{returnJSON.parse(r)}catch(n){lets=n;throws.message+=` (input: ${r})`,s}}hr.json=Npe;functionSpe(t,e={}){letn=((typeoft=="string"?t:t.href).startsWith("https:")?bpe:wpe).request(t,e),s=newPromise((i,o)=>{n.once("response",i).once("error",o).end()});returnn.then=s.then.bind(s),n}hr.req=Spe});varkY=h(Hr=>{"use strict";varvY=Hr&&Hr.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Rpe=Hr&&Hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DY=Hr&&Hr.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vY(e,t,r);returnRpe(e,t),e},Ppe=Hr&&Hr.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vY(e,t,r)};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Agent=void0;varvpe=DY(require("net")),PY=DY(require("http")),Dpe=require("https");Ppe(RY(),Hr);varCs=Symbol("AgentBaseInternalState"),cb=classextendsPY.Agent{constructor(e){super(e),this[Cs]={}}isSecureEndpoint(e){if(e){if(typeofe.secureEndpoint=="boolean")returne.secureEndpoint;if(typeofe.protocol=="string")returne.protocol==="https:"}let{stack:r}=newError;returntypeofr!="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)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newvpe.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Dpe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){lets={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),ainstanceofPY.Agent)returna.addRequest(e,s);this[Cs].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){lete=this[Cs].currentSocket;if(this[Cs].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[Cs].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[Cs]&&(this[Cs].defaultPort=e)}getprotocol(){returnthis[Cs].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[Cs]&&(this[Cs].protocol=e)}};Hr.Agent=cb});varLY=h(fn=>{"use strict";varkpe=fn&&fn.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Tpe=fn&&fn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MY=fn&&fn.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&kpe(e,t,r);returnTpe(e,t),e},Mpe=fn&&fn.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(fn,"__esModule",{value:!0});fn.HttpProxyAgent=void0;varLpe=MY(require("net")),_pe=MY(require("tls")),Fpe=Mpe(tg()),Upe=require("events"),Ope=kY(),TY=require("url"),Il=(0,Fpe.default)("http-proxy-agent"),ig=classextendsOpe.Agent{constructor(e,r){super(r),this.proxy=typeofe=="string"?newTY.URL(e):e,this.proxyHeaders=r?.headers??{},Il("Creating new HttpProxyAgent instance: %o",this.proxy.href);letn=(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?qpe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=newTY.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);letc=typeofthis.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){letl=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(letlofObject.keys(c)){letA=c[l];A&&e.setHeader(l,A)}}asyncconnect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);letn,s;Il("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Il("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Il("Output buffer: %o",e.outputData[0].data));leti;returnthis.proxy.protocol==="https:"?(Il("Creating `tls.Socket`: %o",this.connectOpts),i=_pe.connect(this.connectOpts)):(Il("Creating `net.Socket`: %o",this.connectOpts),i=Lpe.connect(this.connectOpts)),await(0,Upe.once)(i,"connect"),i}};ig.protocols=["http","https"];fn.HttpProxyAgent=ig;functionqpe(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}});varsV=h(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.state=void0;Eg.state={instrumenterImplementation:void0}});varIV=h(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.state=void0;xg.state={operationRequestMap:newWeakMap}});varZ3=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});varaCe=require("os"),cCe=require("util");functionlCe(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}varACe=lCe(cCe);functionuCe(t,...e){process.stderr.write(`${ACe.default.format(t,...e)}${aCe.EOL}`)}varz3=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,Y3,OR=[],qR=[],zy=[];z3&&HR(z3);varV3=Object.assign(t=>J3(t),{enable:HR,enabled:zR,disable:dCe,log:uCe});functionHR(t){Y3=t,OR=[],qR=[];lete=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(letnofr)n.startsWith("-")?qR.push(newRegExp(`^${n.substr(1)}$`)):OR.push(newRegExp(`^${n}$`));for(letnofzy)n.enabled=zR(n.namespace)}functionzR(t){if(t.endsWith("*"))return!0;for(leteofqR)if(e.test(t))return!1;for(leteofOR)if(e.test(t))return!0;return!1}functiondCe(){lett=Y3||"";returnHR(""),t}functionJ3(t){lete=Object.assign(r,{enabled:zR(t),destroy:mCe,log:V3.log,namespace:t,extend:pCe});functionr(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}returnzy.push(e),e}functionmCe(){lett=zy.indexOf(this);returnt>=0?(zy.splice(t,1),!0):!1}functionpCe(t){lete=J3(`${this.namespace}:${t}`);returne.log=this.log,e}varKd=V3,W3=newSet,qy=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,Gy,Yy=Kd("azure");Yy.log=(...t)=>{Kd.log(...t)};varGR=["verbose","info","warning","error"];qy&&(X3(qy)?$3(qy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${qy}'; logging is not enabled. Acceptable values: ${GR.join(", ")}.`));function$3(t){if(t&&!X3(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${GR.join(",")}`);Gy=t;lete=[];for(letrofW3)K3(r)&&e.push(r.namespace);Kd.enable(e.join(","))}functionhCe(){returnGy}varG3={verbose:400,info:300,warning:200,error:100};functionfCe(t){lete=Yy.extend(t);returnj3(Yy,e),{error:Hy(e,"error"),warning:Hy(e,"warning"),info:Hy(e,"info"),verbose:Hy(e,"verbose")}}functionj3(t,e){e.log=(...r)=>{t.log(...r)}}functionHy(t,e){letr=Object.assign(t.extend(e),{level:e});if(j3(t,r),K3(r)){letn=Kd.disable();Kd.enable(n+","+r.namespace)}returnW3.add(r),r}functionK3(t){return!!(Gy&&G3[t.level]<=G3[Gy])}functionX3(t){returnGR.includes(t)}Ul.AzureLogger=Yy;Ul.createClientLogger=fCe;Ul.getLogLevel=hCe;Ul.setLogLevel=$3});varJR=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});varOl=newWeakMap,Vy=newWeakMap,Xd=classt{constructor(){this.onabort=null,Ol.set(this,[]),Vy.set(this,!1)}getaborted(){if(!Vy.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnVy.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!Ol.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");Ol.get(this).push(r)}removeEventListener(e,r){if(!Ol.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");letn=Ol.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){thrownewError("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};functione4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);lete=Ol.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Vy.set(t,!0)}varYR=classextendsError{constructor(e){super(e),this.name="AbortError"}},VR=class{c
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function uwe(){Object.keys(dC).forEach(function(t){delete dC[t]})}});var pC=h(Xs=>{"usestrict";Xs.__esModule=!0;Xs.HandlebarsEnvironment=Kv;function J8(t){return t&&t.__esModule?t:{default:t}}var Xa=sr(),dwe=Xr(),$v=J8(dwe),mwe=Yv(),pwe=z8(),hwe=Jv(),mC=J8(hwe),fwe=Wv(),gwe="4.7.9";Xs.VERSION=gwe;var ywe=8;Xs.COMPILER_REVISION=ywe;var Ewe=7;Xs.LAST_COMPATIBLE_COMPILER_REVISION=Ewe;var Cwe={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"};Xs.REVISION_CHANGES=Cwe;var jv="[objectObject]";function Kv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},mwe.registerDefaultHelpers(this),pwe.registerDefaultDecorators(this)}Kv.prototype={constructor:Kv,logger:mC.default,log:mC.default.log,registerHelper:function(e,r){if(Xa.toString.call(e)===jv){if(r)throw new $v.default("Argnotsupportedwithmultiplehelpers");Xa.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Xa.toString.call(e)===jv)Xa.extend(this.partials,e);else{if(typeof r>"u")throw new $v.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Xa.toString.call(e)===jv){if(r)throw new $v.default("Argnotsupportedwithmultipledecorators");Xa.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){fwe.resetLoggedProperties()}};var Iwe=mC.default.log;Xs.log=Iwe;Xs.createFrame=Xa.createFrame;Xs.logger=mC.default});var $8=h((hC,W8)=>{"usestrict";hC.__esModule=!0;function Xv(t){this.string=t}Xv.prototype.toString=Xv.prototype.toHTML=function(){return""+this.string};hC.default=Xv;W8.exports=hC.default});var j8=h(Zv=>{"usestrict";Zv.__esModule=!0;Zv.wrapHelper=Bwe;function Bwe(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var r$=h(Mo=>{"usestrict";Mo.__esModule=!0;Mo.checkRevision=Swe;Mo.template=Rwe;Mo.wrapProgram=fC;Mo.resolvePartial=Pwe;Mo.invokePartial=vwe;Mo.noop=e$;function Qwe(t){return t&&t.__esModule?t:{default:t}}function xwe(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}var wwe=sr(),dA=xwe(wwe),bwe=Xr(),Li=Qwe(bwe),_i=pC(),K8=Yv(),Nwe=j8(),X8=Wv();function Swe(t){var e=t&&t[0]||1,r=_i.COMPILER_REVISION;if(!(e>=_i.LAST_COMPATIBLE_COMPILER_REVISION&&e<=_i.COMPILER_REVISION))if(e<_i.LAST_COMPATIBLE_COMPILER_REVISION){var n=_i.REVISION_CHANGES[r],s=_i.REVISION_CHANGES[e];throw new Li.default("TemplatewasprecompiledwithanolderversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourprecompilertoanewerversion("+n+")ordowngradeyourruntimetoanolderversion("+s+").")}else throw new Li.default("TemplatewasprecompiledwithanewerversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourruntimetoanewerversion("+t[1]+").")}function Rwe(t,e){if(!e)throw new Li.default("Noenvironmentpassedtotemplate");if(!t||!t.main)throw new Li.default("Unknowntemplateobject:"+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(o,a,c){c.hash&&(a=dA.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var A=l.split(`
`,e};et.prototype.Program=function(t){vare="",r=t.body,n=void0,s=void0;if(t.blockParams){vari="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);returnthis.padding--,e};et.prototype.MustacheStatement=function(t){returnthis.pad("{{ "+this.SubExpression(t)+" }}")};et.prototype.Decorator=function(t){returnthis.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};et.prototype.BlockStatement=et.prototype.DecoratorBlock=function(t){vare="";returne+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};et.prototype.PartialStatement=function(t){vare="PARTIAL:"+t.name.original;returnt.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};et.prototype.PartialBlockStatement=function(t){vare="PARTIAL BLOCK:"+t.name.original;returnt.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};et.prototype.ContentStatement=function(t){returnthis.pad("CONTENT[ '"+t.value+"' ]")};et.prototype.CommentStatement=function(t){returnthis.pad("{{! '"+t.value+"' }}")};et.prototype.SubExpression=function(t){for(vare=t.params,r=[],n=void0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));returne="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};et.prototype.PathExpression=function(t){vare=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};et.prototype.StringLiteral=function(t){return'"'+t.value+'"'};et.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};et.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};et.prototype.UndefinedLiteral=function(){return"UNDEFINED"};et.prototype.NullLiteral=function(){return"NULL"};et.prototype.Hash=function(t){for(vare=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};et.prototype.HashPair=function(t){returnt.key+"="+this.accept(t.value)}});varu5=h((N4e,A5)=>{var_C=o5().default,l5=a5();_C.PrintVisitor=l5.PrintVisitor;_C.print=l5.print;A5.exports=_C;functionc5(t,e){varr=require("fs"),n=r.readFileSync(e,"utf8");t.exports=_C.compile(n)}typeofrequire<"u"&&require.extensions&&(require.extensions[".handlebars"]=c5,require.extensions[".hbs"]=c5)});varFD=B(require("os"),1);functionUi(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionOm(t,e,r){letn=newOC(t,e,r);process.stdout.write(n.toString()+FD.EOL)}functionqC(t,e=""){Om(t,{},e)}var_D="::",OC=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=_D+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${P5(s)}`)}}returne+=`${_D}${R5(this.message)}`,e}};functionR5(t){returnUi(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionP5(t){returnUi(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varUD=B(require("crypto"),1),Hm=B(require("fs"),1),qm=B(require("os"),1);functionOD(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!Hm.existsSync(r))thrownewError(`Missing file at path: ${r}`);Hm.appendFileSync(r,`${Ui(e)}${qm.EOL}`,{encoding:"utf8"})}functionqD(t,e){letr=`ghadelimiter_${UD.randomUUID()}`,n=Ui(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))thrownewError(`Unexpect
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}functionO1(t,e){if(process.env.GITHUB_OUTPUT||"")returnOD("OUTPUT",qD(t,e));process.stdout.write(Bx.EOL),Om("set-output",{name:t},Ui(e))}functionPe(t){Om("debug",{},t)}functionzh(t){process.stdout.write(t+Bx.EOL)}functionsoe(t){qC("group",t)}functionioe(){qC("endgroup")}functionao(t,e){returnnoe(this,void0,void0,function*(){soe(t);letr;try{r=yielde()}finally{ioe()}returnr})}varH1=B(require("os"),1);functionco(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionwx(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}functionrl(t,e,r){letn=newbx(t,e,r);process.stdout.write(n.toString()+H1.EOL)}functionNx(t,e=""){rl(t,{},e)}varq1="::",bx=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=q1+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${aoe(s)}`)}}returne+=`${q1}${ooe(this.message)}`,e}};functionooe(t){returnco(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionaoe(t){returnco(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varz1=B(require("crypto"),1),Yh=B(require("fs"),1),Gh=B(require("os"),1);functionG1(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!Yh.existsSync(r))thrownewError(`Missing file at path: ${r}`);Yh.appendFileSync(r,`${co(e)}${Gh.EOL}`,{encoding:"utf8"})}functionY1(t,e){letr=`ghadelimiter_${z1.randomUUID()}`,n=co(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))thrownewError(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Gh.EOL}${n}${Gh.EOL}${r}`}varj1=B(require("os"),1);varVh=B(QA(),1),loe=B(Qu(),1);vards;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ds||(ds={}));varV1;(function(t){t.Accept="accept",t.ContentType="content-type"})(V1||(V1={}));varJ1;(function(t){t.ApplicationJson="application/json"})(J1||(J1={}));varsRe=[ds.MovedPermanently,ds.ResourceMoved,ds.SeeOther,ds.TemporaryRedirect,ds.PermanentRedirect],iRe=[ds.BadGateway,ds.ServiceUnavailable,ds.GatewayTimeout];var$1=require("os"),Ru=require("fs"),Sx=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(A){try{l(n.next(A))}catch(u){o(u)}}functionc(A){try{l(n.throw(A))}catch(u){o(u)}}functionl(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},{access:Aoe,appendFile:uoe,writeFile:doe}=Ru.promises,W1="GITHUB_STEP_SUMMARY";varRx=class{constructor(){this._buffer=""}filePath(){returnSx(this,void0,void0,function*(){if(this._filePath)return
`,"utf-8")],s=the(n);s&&t.headers.set("Content-Length",s),t.body=awaitVY(n)}varud="multipartPolicy",nhe=70,she=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionihe(t){if(t.length>nhe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!she.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}functiondg(){return{name:ud,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[,i,o]=s;if(o&&r&&o!==r)thrownewError(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);returnr??=o,r?ihe(r):r=Xpe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),awaitrhe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}functionmg(){returnLf()}varJY=kf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),lLe=JY.logger;functionIs(t){returnJY.createClientLogger(t)}varBs=Is("core-rest-pipeline");functionhb(t={}){returnHf({logger:Bs.info,...t})}varfb=zf;functiongb(t={}){returnGf(t)}varpg=B(require("node:os"),1),hg=B(require("node:process"),1);functionWY(){return"User-Agent"}asyncfunction$Y(t){if(hg.default&&hg.default.versions){lete=`${pg.default.type()}${pg.default.release()}; ${pg.default.arch()}`,r=hg.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})`)}}varfg="1.22.2";functionmhe(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}functionjY(){returnWY()}asyncfunctiongg(t){lete=newMap;e.set("core-rest-pipeline",fg),await$Y(e);letr=mhe(e);returnt?`${t}${r}`:r}varKY=jY(),XY="userAgentPolicy";functionyb(t={}){lete=gg(t.userAgentPrefix);return{name:XY,asyncsendRequest(r,n){returnr.headers.has(KY)||r.headers.set(KY,awaite),n(r)}}}varzr=classextendsError{constructor(e){super(e),this.name="AbortError"}};functionEb(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((i,o)=>{functiona(){o(newzr(s??"The operation was aborted."))}functionc(){n?.removeEventListener("abort",l)}functionl(){r?.(),c(),a()}if(n?.aborted)returna();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}n?.addEventListener("abort",l)})}varyhe="The delay was aborted.";functiondd(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnEb(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??yhe})}functionCo(t){if(Ea(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}`}}functionZY(t){returnEa(t)}functionBl(){returnya()}varCe=Ba;vareV=Symbol("rawContent");functionIb(t){returntypeoft[eV]=="function"}functiontV(t){returnIb(t)?t[eV]():t}varyg=ud;functionBb(){lett=dg();return{name:yg,sendRequest:async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)Ib(n.body)&&(n.body=tV(n.body));returnt.sendRequest(e,r)}}}varQb=Yf;functionxb(){returnVf()}functionwb(t={}){return$f(t)}functionbb(){returnjf()}functionIo(t){returnAb(t)}functionNb(t,e){returnag(t,e)}varrV="setClientRequestIdPolicy";functionSb(t="x-ms-client-request-id"){return{name:rV,asyncsendRequest(e,r){returne.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}functionRb(t){returncg(t)}functionPb(t){returnlg(t)}varQl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};functionnV(t={}){lete=newvb(t.parentContext);returnt.span&&(e=e.setValue(Ql.span,t.span)),t.namespace&&(e=e.setValue(Ql.namespace,t.namespace)),e}varvb=classt{_contextMap;constructor(e){this._contextMap=einstanceoft?newMap(e._contextMap):
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Hfe(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",it("InvalidTag",u,tr(t,i))}let l=_fe(t,i);if(l===!1)return it("InvalidAttr","Attributes for '"+c+"' have open quote.",tr(t,i));let A=l.value;if(i=l.index,A[A.length-1]==="/"){let u=i-A.length;A=A.substring(0,A.length-1);let d=OV(A,e);if(d===!0)n=!0;else return it(d.err.code,d.err.msg,tr(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return it("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",tr(t,o));if(r.length===0)return it("InvalidTag","Closing tag '"+c+"' has not been opened.",tr(t,o));{let u=r.pop();if(c!==u.tagName){let d=tr(t,u.tagStartPos);return it("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",tr(t,o))}r.length==0&&(s=!0)}}else return it("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",tr(t,i));else{let u=OV(A,e);if(u!==!0)return it(u.err.code,u.err.msg,tr(t,i-A.length+u.err.line));if(s===!0)return it("InvalidXml","Multiple possible root nodes found.",tr(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=UV(t,i);continue}else if(t[i+1]==="?"){if(i=FV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=Ofe(t,i);if(u==-1)return it("InvalidChar","char '&' is not expected.",tr(t,i));i=u}else if(s===!0&&!_V(t[i]))return it("InvalidXml","Extra text at the end",tr(t,i));t[i]==="<"&&i--}}else{if(_V(t[i]))continue;return it("InvalidChar","char '"+t[i]+"' is not expected.",tr(t,i))}if(n){if(r.length==1)return it("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tr(t,r[0].tagStartPos));if(r.length>0)return it("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return it("InvalidXml","Start tag expected.",1);return!0}function _V(t){return t===" "||t===" "||t===`
`||t==="\r"}function FV(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 it("InvalidXml","XML declaration allowed only at the start of the document.",tr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function UV(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Mfe='"',Lfe="'";function _fe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Mfe||t[e]===Lfe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Ffe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function OV(t,e){let r=Rg(t,Ffe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return it("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xd(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return it("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xd(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return it("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xd(r[s]));let i=r[s][2];if(!qfe(i))return it("InvalidAttr","Attribute '"+i+"' is an invalid name.",xd(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return it("InvalidAttr","Attribute '"+i+"' is repeated.",xd(r[s]))}return!0}function Ufe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Ofe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ufe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function it(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function qfe(t){return $b(t)}function Hfe(t){return $b(t)}function tr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function xd(t){return t.startIndex+t[1].length}var qV={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"},HV={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\
`);let e=new gr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Nd(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let A=Sl(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,A).trim();if(s.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=n0(s.transformTagName,u,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(u&&s.unpairedTagsSet.has(u))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${u}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=A}else if(l===63){let A=s0(t,a,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let u=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(u){let d=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&A.tagName==="?xml"||s.ignorePiTags)){let d=new gr(A.tagName);d.add(s.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=u),this.addChild(r,d,this.readonlyMatcher,a)}a=A.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let A=Sl(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let u=t.substring(a+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:u}])}a=A}else if(l===33&&t.charCodeAt(a+2)===68){let A=i.readDocType(t,a);this.entityDecoder.addInputEntities(A.entities),a=A.i}else if(l===33&&t.charCodeAt(a+2)===91){let A=Sl(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:u}]):r.add(s.textNodeName,d),a=A+2}else{let A=s0(t,a,s.removeNSPrefix);if(!A){let D=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${D}"`)}let u=A.tagName,d=A.rawTagName,m=A.tagExp,p=A.attrExpPresent,f=A.closeIndex;if({tagName:u,tagExp:m}=n0(s.transformTagName,u,m,s),s.strictReservedNames&&(u===s.commentPropName||u===s.cdataPropName||u===s.textNodeName||u===s.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);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 g=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(g=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),p=u!==m);let y=null,C={},I;I=uge(d),u!==e.tagname&&this.matcher.push(u,{},I),u!==m&&p&&(y=this.buildAttributesMap(m,this.matcher,u),y&&(C=Age(y,s))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let w=a;if(this.isCurrentNodeStopNode){let D="";if(g)a=A.closeIndex;else if(s.unpairedTagsSet.has(u))a=A.closeIndex;else{let ae=this.readStopNodeData(t,d,f+1);if(!ae)throw new Error(`Unexpected end of ${d}`);a=ae.i,D=ae.tagContent}let _=new gr(u);y&&(_[":@"]=y),_.add(s.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,w)}else{if(g){({tagName:u,tagExp:m}=n0(s.transformTagName,u,m,s));let D=new gr(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(u)){let D=new gr(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=A.closeIndex;continue}else{let D=new gr(u);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),r=D}n="",a=f}}}else n+=t[a];return e.child};functi
${a}:${decodeURIComponent(i[a])}`}returnn}};varJe=classextendsPa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewDd(e,r,this)}computeHMACSHA256(e){return(0,EJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};vargt=Is("storage-common");vargn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(gn||(gn={}));varbo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:gn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Gge=newzr("The operation was aborted."),kd=classextendsbs{retryOptions;constructor(e,r,n=bo){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:bo.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):bo.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:bo.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:bo.maxRetryDelayInMs):bo.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:bo.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:bo.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=zg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=wo(s.url,Qi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(gt.info(`RetryPolicy: =====> Try=${n}${i?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))returno;r=r||!i&&o.status===404}catch(a){if(gt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throwa}returnawaitthis.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returngt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(letoofi)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)returngt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){leto=n?n.status:s?s.statusCode:0;if(!e&&o===404)returngt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returngt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){leto=n.headers.get(X.X_MS_CopySourceErrorCode);if(o!==void0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(gt.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){casegn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;casegn.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returngt.info(`RetryPolicy: Delay for ${s}ms`),Vg(s,n,Gge)}};varTd=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewkd(e,r,this.retryOptions)}};varYge="storageBrowserPolicy";functionCJ(){return{name:Yge,asyncsendRequest(t,e){returnCe||((t.method==="GET"||t.method==="HEAD")&&(t.url=wo(t.url,Qi.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(X.COOKIE),t.headers.delete(X.CONTENT_LENGTH)),e(t)}}}varVge="StorageCorrectContentLengthPolicy";functionIJ(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(X.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Vge,asyncsendRequest
`}),a}function s(i){let o=Gg(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Yg(i.url),l={};if(c){let A=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let d=u.toLowerCase();l[d]=c[u],A.push(d)}A.sort();for(let u of A)a+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:newJn(t.version,i,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}}functiontCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functionrCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functionnCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functionsCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functioniCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functionoCe(t,e){if(t=Ua(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=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newJn(t.version,o,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:i}}functionFa(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}functionUa(t){lete=t.version?t.version:jg;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}varJd=class{_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=Bl()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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.");returnq.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>Y(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!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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.");returnq.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=Y(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?.ifMatch&&e.conditions?.ifMatch!==Hn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Hn||e.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfN
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Hl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var za=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};za.isUsageErrorMessage=t=>t?t.includes("insufficientusage"):!1;var nm=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var fIe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},lP=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);mt(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function L4(t,e,r){return fIe(this,void 0,void 0,function*(){var n;let s=new Di(t),i=s.getBlockBlobClient(),o=new lP((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),N(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new tE(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Fn(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var F4=B(require("buffer"),1),Ys=B(require("fs"),1),U4=B(require("stream"),1),O4=B(require("util"),1);var rE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function nE(t){return t?t>=200&&t<300:!1}function gIe(t){return t?t>=500:!0}function yIe(t){return t?[Ve.BadGateway,Ve.ServiceUnavailable,Ve.GatewayTimeout].includes(t):!1}function EIe(t){return rE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function _4(t,e,r){return rE(this,arguments,void 0,function*(n,s,i,o=Nf,a=Sf,c=void 0){let l="",A=1;for(;A<=o;){let u,d,m=!1;try{u=yield s()}catch(p){c&&(u=c(p)),m=!0,l=p.message}if(u&&(d=i(u),!gIe(d)))return u;if(d&&(m=yIe(d),l=`Cache service responded with ${d}`),N(`${n} - Attempt ${A} of ${o} failed with error: ${l}`),!m){N(`${n} - Error is not retryable`);break}yield EIe(a),A++}throw Error(`${n} failed: ${l}`)})}function sm(t,e){return rE(this,arguments,void 0,function*(r,n,s=Nf,i=Sf){return yield _4(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof gs)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function zl(t,e){return rE(this,arguments,void 0,function*(r,n,s=Nf,i=Sf){return yield _4(r,n,o=>o.message.statusCode,s,i)})}var Bn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function CIe(t,e){return Bn(this,void 0,void 0,function*(){yield O4.promisify(U4.pipeline)(t.message,e)})}var sE=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSi
Other caches with similar key:`);for(let a of i?.artifactCaches||[])N(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function mP(t,e,r){return Ir(this,void 0,void 0,function*(){let n=new j4.URL(t),s=G4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield H4(t,e,s):s.concurrentBlobDownloads?yield q4(t,e,s):yield iE(t,e):yield iE(t,e)})}function X4(t,e,r){return Ir(this,void 0,void 0,function*(){let n=dP(),s=ml(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield sm("reserveCache",()=>Ir(this,void 0,void 0,function*(){return n.postJson(om("caches"),i)}))})}function $4(t,e){return`bytes ${t}-${e}/*`}function SIe(t,e,r,n,s){return Ir(this,void 0,void 0,function*(){N(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${$4(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":$4(n,s)},o=yield zl(`uploadChunk (start: ${n}, end: ${s})`,()=>Ir(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!nE(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function RIe(t,e,r,n){return Ir(this,void 0,void 0,function*(){let s=fs(r),i=om(`caches/${e.toString()}`),o=Gl.openSync(r,"r"),a=AP(n),c=_w("uploadConcurrency",a.uploadConcurrency),l=_w("uploadChunkSize",a.uploadChunkSize),A=[...new Array(c).keys()];N("Awaitingalluploads");let u=0;try{yield Promise.all(A.map(()=>Ir(this,void 0,void 0,function*(){for(;u<s;){let d=Math.min(s-u,l),m=u,p=u+d-1;u+=l,yield SIe(t,i,()=>Gl.createReadStream(r,{fd:o,start:m,end:p,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,p)}})))}finally{Gl.closeSync(o)}})}function PIe(t,e,r){return Ir(this,void 0,void 0,function*(){let n={size:r};return yield sm("commitCache",()=>Ir(this,void 0,void 0,function*(){return t.postJson(om(`caches/${e.toString()}`),n)}))})}function pP(t,e,r,n){return Ir(this,void 0,void 0,function*(){if(AP(n).useAzureSdk){if(!r)throw new Error("AzureStorageSDKcanonlybeusedwhenasignedURLisprovided.");yield L4(r,e,n)}else{let i=dP();N("Uploadcache"),yield RIe(i,t,e,n),N("Commitingcache");let o=fs(e);mt(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield PIe(i,t,o);if(!nE(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);mt("Cachesavedsuccessfully")}})}var VW=B(UW(),1),lt=B(ct(),1),$r=B(ct(),1),Wa=B(ct(),1),$a=B(ct(),1),ja=B(ct(),1);var cv=B(ct(),1),lv=B(ct(),1),zW=B(ct(),1),GW=B(ct(),1),YW=B(ct(),1);var iv=B(ct(),1),ov=B(ct(),1),OW=B(ct(),1),qW=B(ct(),1),HW=B(ct(),1),av=class extends HW.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,qW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,OW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?ov.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,iv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,iv.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?ov.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VE=new av;var Av=class extends YW.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>VE}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.O
`));let n=yield wv(r,"create");yield bv(n,t)})}var aA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},jn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},oA=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},jE=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jW(t){if(!t||t.length===0)throw new jn("PathValidationError:Atleastonedirectoryorfilepathisrequired")}function Rv(t){if(t.length>512)throw new jn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new jn(`Key Validation Error: ${t} cannot contain commas.`)}function Pv(){return im()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function KW(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){let l=im();return N(`Cache service version: ${l}`),jW(s),l==="v2"?yield YQe(s,i,o,a,c):yield GQe(s,i,o,a,c)})}function GQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let l=[i,...o];if(N("ResolvedKeys:"),N(JSON.stringify(l)),l.length>10)throw new jn("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let d of l)Rv(d);let A=yield sd(),u="";try{let d=yield K4(l,s,{compressionMethod:A,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return mt("Lookuponly-skippingdownload"),d.cacheKey;u=Bm.join(yield rd(),go(A)),N(`Archive Path: ${u}`),yield mP(d.archiveLocation,u,a),da()&&(yield Im(u,A));let m=fs(u);return mt(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield Nv(u,A),mt("Cacherestoredsuccessfully"),d.cacheKey}catch(d){let m=d;if(m.name===jn.name)throw d;m instanceof gs&&typeof m.statusCode=="number"&&m.statusCode>=500?qu(`Failed to restore: ${d.message}`):Fn(`Failed to restore: ${d.message}`)}finally{try{yield nd(u)}catch(d){N(`Failed to delete archive: ${d}`)}}})}function YQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(N("ResolvedKeys:"),N(JSON.stringify(l)),l.length>10)throw new jn("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let u of l)Rv(u);let A="";try{let u=xv(),d=yield sd(),m={key:i,restoreKeys:o,version:ml(s,d,c)},p=yield u.GetCacheEntryDownloadURL(m);if(!p.ok){N(`Cache not found for version ${m.version} of keys: ${l.join(",")}`);return}if(m.key!==p.matchedKey?mt(`Cache hit for restore-key: ${p.matchedKey}`):mt(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return mt("Lookuponly-skippingdownload"),p.matchedKey;A=Bm.join(yield rd(),go(d)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield mP(p.signedDownloadUrl,A,a);let E=fs(A);return mt(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),da()&&(yield Im(A,d)),yield Nv(A,d),mt("Cacherestoredsuccessfully"),p.matchedKey}catch(u){let d=u;if(d.name===jn.name)throw u;d instanceof gs&&typeof d.statusCode=="number"&&d.statusCode>=500?qu(`Failed to restore: ${u.message}`):Fn(`Failed to restore: ${u.message}`)}finally{try{A&&(yield nd(A))}catch(u){N(`Failed to delete archive: ${u}`)}}})}function vv(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,o=!1){let a=im();return N(`Cache service version: ${a}`),jW(n),Rv(s),a==="v2"?yield JQe(n,s,i,o):yield VQe(n,s,i,o)})}function VQe(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,l,A,u;let d=yield sd(),m=-1,p=yield Lw(n);if(N("CachePaths:"),N(`${JSON.stringify(p)}`),p.length===0)throw new Error("PathValidationError:Path(s)specifiedintheactionforcachingdo(es)notexist,hencenocacheisbeingsaved.");let f=yield rd(),E=Bm.join(f,go(d));N(`Archive Path: ${E}`);try{
`,o).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return d<m},parse:function(n,s,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:A,ltrim:u,max_record_size:d,raw:m,relax_quotes:p,rtrim:f,skip_empty_lines:E,to:g,to_line:y}=this.options,{comment:C,escape:I,quote:w,record_delimiter:D}=this.options,{bomSkipped:_,previousBuf:ae,rawBuffer:ge,escapeIsQuote:Be}=this.state,H;if(ae===void 0)if(n===void 0){o();return}else H=n;else ae!==void 0&&n===void 0?H=ae:H=Buffer.concat([ae,n]);if(_===!1)if(a===!1)this.state.bomSkipped=!0;else if(H.length<3){if(s===!1){this.state.previousBuf=H;return}}else{for(let de in IA)if(IA[de].compare(H,0,IA[de].length)===0){let At=IA[de].length;this.state.bufBytesStart+=At,H=H.slice(At);let He=TD({...this.original_options,encoding:de});for(let tt in He)this.options[tt]=He[tt];({comment:C,escape:I,quote:w}=this.options);break}this.state.bomSkipped=!0}let ee=H.length,F;for(F=0;F<ee&&!this.__needMoreData(F,ee,s);F++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),y!==-1&&this.info.lines>y){this.state.stop=!0,o();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(H,F)&&(D=this.options.record_delimiter);let de=H[F];if(m===!0&&ge.append(de),(de===d0e||de===m0e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(H,F,de)&&F+I.length<ee)if(Be){if(this.__isQuote(H,F+I.length)){this.state.escaping=!0,F+=I.length-1;continue}}else{this.state.escaping=!0,F+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(H,F))if(this.state.quoting===!0){let tt=H[F+w.length],ei=f&&this.__isCharTrimable(H,F+w.length),wr=C!==null&&this.__compareBytes(C,H,F+w.length,tt),Zn=this.__isDelimiter(H,F+w.length,tt),_o=D.length===0?this.__autoDiscoverRecordDelimiter(H,F+w.length):this.__isRecordDelimiter(tt,H,F+w.length);if(I!==null&&this.__isEscape(H,F,de)&&this.__isQuote(H,F+I.length))F+=I.length-1;else if(!tt||Zn||_o||wr||ei){this.state.quoting=!1,this.state.wasQuoting=!0,F+=w.length-1;continue}else if(p===!1){let nc=this.__error(new fe("CSV_INVALID_CLOSING_QUOTE",["InvalidClosingQuote:",`got "${String.fromCharCode(tt)}"`,`at line ${this.info.lines}`,"insteadofdelimiter,recorddelimiter,trimablecharacter","(ifactivated)orcomment"],this.options,this.__infoField()));if(nc!==void 0)return nc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(w),F+=w.length-1}else if(this.state.field.length!==0){if(p===!1){let tt=this.__infoField(),ei=Object.keys(IA).map(Zn=>IA[Zn].equals(this.state.field.toString())?Zn:!1).filter(Boolean)[0],wr=this.__error(new fe("INVALID_OPENING_QUOTE",["InvalidOpeningQuote:",`a quote is found on field ${JSON.stringify(tt.column)} at line ${tt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ei?`(${ei} bom)`:void 0],this.options,tt,{field:this.state.field}));if(wr!==void 0)return wr}}else{this.state.quoting=!0,F+=w.length-1;continue}if(this.state.quoting===!1){let tt=this.__isRecordDelimiter(de,H,F);if(tt!==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)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),F+=tt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,F+=tt-1;continue}this.info.bytes=this.state.bufBytesStart+F;let Zn=this.__onField();if(Zn!==void 0)return Zn;this.info.bytes=this.state.bufBytesStart+F+tt;let _o=this.__onRecord(i);if(_o!==void 0)return _o;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,F+=tt-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,H,F,de)!==0){this.state.commenting=!0;continue}let ei=this.__isDelimiter(