varkPe=Object.create;vargS=Object.defineProperty;varLPe=Object.getOwnPropertyDescriptor;varMPe=Object.getOwnPropertyNames;varFPe=Object.getPrototypeOf,UPe=Object.prototype.hasOwnProperty;varo=(t,e)=>gS(t,"name",{value:e,configurable:!0});varqPe=(t,e)=>()=>(t&&(e=t(t=0)),e);varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),NW=(t,e)=>{for(varrine)gS(t,r,{get:e[r],enumerable:!0})},GPe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofMPe(e))!UPe.call(t,i)&&i!==r&&gS(t,i,{get:()=>e[i],enumerable:!(s=LPe(e,i))||s.enumerable});returnt};vark=(t,e,r)=>(r=t!=null?kPe(FPe(t)):{},GPe(e||!t||!t.__esModule?gS(r,"default",{value:t,enumerable:!0}):r,t));varnK=g(UA=>{"use strict";varrPt=require("net"),zDe=require("tls"),VD=require("http"),rK=require("https"),VDe=require("events"),sPt=require("assert"),$De=require("util");UA.httpOverHttp=jDe;UA.httpsOverHttp=JDe;UA.httpOverHttps=YDe;UA.httpsOverHttps=WDe;functionjDe(t){vare=newKl(t);returne.request=VD.request,e}o(jDe,"httpOverHttp");functionJDe(t){vare=newKl(t);returne.request=VD.request,e.createSocket=sK,e.defaultPort=443,e}o(JDe,"httpsOverHttp");functionYDe(t){vare=newKl(t);returne.request=rK.request,e}o(YDe,"httpOverHttps");functionWDe(t){vare=newKl(t);returne.request=rK.request,e.createSocket=sK,e.defaultPort=443,e}o(WDe,"httpsOverHttps");functionKl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||VD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,i,n,a){for(varc=iK(i,n,a),l=0,u=e.requests.length;l<u;++l){varh=e.requests[l];if(h.host===c.host&&h.port===c.port){e.requests.splice(l,1),h.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Kl,"TunnelingAgent");$De.inherits(Kl,VDe.EventEmitter);Kl.prototype.addRequest=o(function(e,r,s,i){varn=this,a=$D({request:e},n.options,iK(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(a);return}n.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){n.emit("free",c,a)}o(l,"onFree");functionu(h){n.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Kl.prototype.createSocket=o(function(e,r){vars=this,i={};s.sockets.push(i);varn=$D({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+newBuffer(n.proxyAuth).toString("base64")),Ph("making CONNECT request");vara=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",h),a.end();functionc(d){d.upgrade=!0}o(c,"onResponse");functionl(d,f,p){process.nextTick(function(){u(d,f,p)})}o(l,"onUpgrade");functionu(d,f,p){if(a.removeAllListeners(),f.removeAllListeners(),d.statusCode!==200){Ph("tunneling socket could not be established, statusCode=%d",d.statusCode),f.destroy();varA=newError("tunneling socket could not be established, statusCode="+d.statusCode);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}if(p.length>0){Ph("got illegal response body from proxy"),f.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}returnPh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=f,r(f)}o(u,"onConnect");functionh(d){a.removeAllListeners(),Ph(`tunneling socket could not be established, cause=%s
`);f.push(m),n+=m.byteLength,A&&(n=null),i=t,s=o(async function*(){for(let C of f)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(f7(t))i=t,n=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(nC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:p2e(t)}if((typeof i=="string"||nC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:h,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!g7(r)){let f=new Uint8Array(h);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:n},a]}o(C7,"extractBody");function N2e(t,e=!1){return t instanceof ReadableStream&&(Wk(!nC.isDisturbed(t),"The body has already been consumed."),Wk(!t.locked,"The stream is locked.")),C7(t,e)}o(N2e,"safelyExtractBody");function R2e(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(R2e,"cloneBody");function v2e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(v2e,"throwIfAborted");function T2e(t){return{blob(){return ZA(this,r=>{let s=A7(this);return s===null?s="":s&&(s=S2e(s)),new I2e([r],{type:s})},t)},arrayBuffer(){return ZA(this,r=>new Uint8Array(r).buffer,t)},text(){return ZA(this,m7,t)},json(){return ZA(this,Q2e,t)},formData(){return ZA(this,r=>{let s=A7(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=B2e(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new p7;return n[em]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new p7;for(let[a,c]of i)n.append(a,c);return n}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return ZA(this,r=>new Uint8Array(r),t)}}}o(T2e,"bodyMixinMethods");function _2e(t){Object.assign(t.prototype,T2e(t))}o(_2e,"mixinBody");async function ZA(t,e,r){if(C2e.brandCheck(t,r),I7(t))throw new TypeError("Body is unusable: Body has already been read");v2e(t[em]);let s=g2e(),i=o(a=>s.reject(a),"errorSteps"),n=o(a=>{try{s.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[em].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await y2e(t[em].body,n,i),s.promise)}o(ZA,"consumeBody");function I7(t){let e=t[em].body;return e!=null&&(e.stream.locked||nC.isDisturbed(e.stream))}o(I7,"bodyUnusable");function Q2e(t){return JSON.parse(m7(t))}o(Q2e,"parseJSONFromBytes");function A7(t){let e=t[em].headersList,r=E2e(e);return r==="failure"?null:r}o(A7,"bodyMimeType");b7.exports={extractBody:C7,safelyExtractBody:N2e,cloneBody:R2e,mixinBody:_2e,streamRegistry:E7,hasFinalizationRegistry:y7,bodyUnusable:I7}});var P7=g((WPt,Q7)=>{"use strict";var Pe=require("node:assert"),Ge=it(),{channels:w7}=GA(),Xk=Pk(),{RequestContentLengthMismatchError:Cf,ResponseContentLengthMismatchError:P2e,RequestAbortedError:v7,HeadersTimeoutError:O2e,HeadersOverflowError:D2e,SocketError:oB,InformationalError:rm,BodyTimeoutError:k2e,HTTPParserError:L2e,ResponseExceededMaxSizeError:M2e}=Ct(),{kUrl:T7,kReset:an,kClient:rL,kParser:Er,kBlocking:cC,kRunning:Xs,kPending:F2e,kSize:S7,kWriting:kh,kQueue:Ta,kNoRef:oC,kKeepAliveDefaultTimeout:U2e,kHostHeader:q2e,kPendingIdx:G2e,kRunningIdx:To,kError:_o,kPipelining:iB,kSocket:sm,kKeepAliveTimeoutValue:aB,kMaxHeadersSize:Zk,kKeepAliveMaxTimeout:H2e,kKeepAliveTimeoutThreshold:z2e,kHeadersTimeout:V2e,kBodyTimeout:$2e,kStrictContentLength:sL,kMaxRequests:B7,kCounter:j2e,kMaxResponseSize:J2e,kOnError:Y2e,kResume:Dh,kHTTPContext:_7}=ar(),pc=EX(),W2e=Buffer.alloc(0),tB=Buffer[Symbol.species],rB=Ge.addListener,K2e=Ge.removeAllListeners,eL;async function X2e(){let t=process.env.JEST_WORKER_ID?kk():void 0,e;try{e=await WebAssembly.compile(bX())}catch{e=await WebAssembly.compile(t||kk())}return awa
`}return w7.sendHeaders.hasSubscribers&&w7.sendHeaders.publish({request:e,headers:m,socket:p}),!l||f===0?N7(A,null,t,e,p,h,m,d):Ge.isBuffer(l)?N7(A,l,t,e,p,h,m,d):Ge.isBlobLike(l)?typeof l.stream=="function"?R7(A,l.stream(),t,e,p,h,m,d):nFe(A,l,t,e,p,h,m,d):Ge.isStream(l)?iFe(A,l,t,e,p,h,m,d):Ge.isIterable(l)?R7(A,l,t,e,p,h,m,d):Pe(!1),!0}o(sFe,"writeH1");function iFe(t,e,r,s,i,n,a,c){Pe(n!==0||r[Xs]===0,"stream body cannot be pipelined");let l=!1,u=new cB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a}),h=o(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(m){Ge.destroy(this,m)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),f=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let A=new v7;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!l){if(l=!0,Pe(i.destroyed||i[kh]&&r[Xs]<=1),i.off("drain",d).off("error",p),e.removeListener("data",h).removeListener("end",p).removeListener("close",f),!A)try{u.end()}catch(m){A=m}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Ge.destroy(e,A):Ge.destroy(e)}},"onFinished");e.on("data",h).on("end",p).on("error",p).on("close",f),e.resume&&e.resume(),i.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}o(iFe,"writeStream");function N7(t,e,r,s,i,n,a,c){try{e?Ge.isBuffer(e)&&(Pe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${n}\r
`,"latin1")),s.onRequestSent(),r[Dh]()}catch(l){t(l)}}o(N7,"writeBuffer");async function nFe(t,e,r,s,i,n,a,c){Pe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Cf;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${n}\r
`,"latin1"),i.write(l),i.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(i[an]=!0),r[Dh]()}catch(l){t(l)}}o(nFe,"writeBlob");async function R7(t,e,r,s,i,n,a,c){Pe(n!==0||r[Xs]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let h=o(()=>new Promise((f,p)=>{Pe(l===null),i[_o]?p(i[_o]):l=f}),"waitForDrain");i.on("close",u).on("drain",u);let d=new cB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(i[_o])throw i[_o];d.write(f)||await h()}d.end()}catch(f){d.destroy(f)}finally{i.off("close",u).off("drain",u)}}o(R7,"writeIterable");var cB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[kh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[_o])throw r[_o];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(n[sL])throw new Cf;process.emitWarning(new Cf)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[an]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),r!==null&&i!==r){if(s[sL])throw new Cf;process.emitWarning(new Cf)}e[Er].timeout&&e[Er].timeoutType===im&&e[Er].timeout.refresh&&e[Er].timeout.refresh(),s[Dh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[kh]=!1,e&&(Pe(s[Xs]<=1,"pipeline should only contain this request"),i(e))}};Q7.exports=eFe});var q7=g((XPt,U7)=>{"use strict";var Qo=require("node:assert"),{pipeline:oFe}=require("node:stream"),ut=it(),{RequestContentLengthMismatchError:aL,RequestAbortedError:O7,SocketError:lC,InformationalError:cL}=Ct(),{kUrl:lB,kReset:hB,kClient:nm,kRunning:dB,kPending:aFe,kQueue:Lh,kPendingIdx:lL,kRunningIdx:_a,kError:Pa,kSocket:gs,kStrictContentLength:cFe,kOnError:uL,kMaxConcurrentStreams:F7,kHTTP2Session:Qa,kResume:Mh,kSize:lFe,kHTTPContext:uFe}=ar(),su=Symbol("open streams"),D7,k7=!1,uB;try{uB=require("node:http2")}catch{uB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:hFe,HTTP2_HEADER_METHOD:dFe,HTTP2_HEADER_PATH:fFe,HTTP2_HEADER_SCHEME:pFe,HTTP2_HEADER_CONTENT_LENGTH:AFe,HTTP2_HEADER_EXPECT:mFe,HTTP2_HEADER_STATUS:gFe}}=uB;function yFe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}o(yFe,"parseH2Headers");async function EFe(t,e){t[gs]=e,k7||(k7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=uB.connect(t[lB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[F7]});r[su]=0,r[nm]=t,r[gs]=e,ut.addListener(r,"error",IFe),ut.addListener(r,"frameError",bFe),ut.addListener(r,"end",wFe),ut.addListener(r,"goaway",SFe),ut.addListener(r,"close",function(){let{[nm]:i}=this,{[gs]:n}=i,a=this[gs][Pa]||this[Pa]||new lC("closed",ut.getSocketInfo(n));if(i[Qa]=null,i.destroyed){Qo(i[aFe]===0);let c=i[Lh].splice(i[_a]);for(let l=0;l<c.length;l++){let u=c[l];ut.errorRequest(i,u,a)}}}),r.unref(),t[Qa]=r,e[Qa]=r,ut.addListener(e,"error",function(i){Qo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Pa]=i,this[nm][uL](i)}),ut.addListener(e,"end",function(){ut.destroy(this,new lC("other side closed",ut.getSocketInfo(this)))}),ut.addListener(e,"close",function(){let i=this[Pa]||new lC("closed",ut.getSocketInfo(this));t[gs]=null,this[Qa]!=null&&this[Qa].destroy(i),t[lL]=t[_a],Qo(t[dB]===0),t.emit("disconnect",t[lB],[t],i),t[Mh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return xFe(t,...i)},resume(){CFe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}o(EFe,"connectH2");function CFe(t){let e=t[gs];e?.destroyed===!1&&(t[lFe]===0&&t[F7]===0?(e.unref(),t[Qa].unref()):(e.ref(),t[Qa].ref()))}o(CFe,"resumeH2");function IFe(t){Qo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gs][Pa]=t,this[nm][uL](t)}o(IFe,"onHttp2SessionError");function bFe(t,e,r){if(r===0){let s=new cL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gs][Pa]=s,this[nm][uL](s)}}o(bFe,"onHttp2FrameError");function wFe(){let t=new lC("other side closed",ut.getSocketInfo(this[gs]));this.destroy(t),ut.destroy(this[gs],t)}o(wFe,"onHttp2SessionEnd");function SFe(t){let e=this[Pa]||new lC(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this)),r=this[nm];if(r[gs]=null,r[uFe]=null,this[Qa]!=null&&(this[Qa].destroy(e),this[Qa]=null),ut.destroy(this[gs],e),r[_a]<r[Lh].length){let s=r[Lh][r[_a]];r[Lh][r[_a]++]=null,ut.errorRequest(r,s,e),r[lL]=r[_a]}Qo(r[dB]===0),r.emit("disconnect",r[lB],[r],e),r[Mh]()}o(SFe,"onHTTP2GoAway");function BFe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(BFe,"shouldSendContentLength");function xFe(t,e){let r=t[Qa],{method:s,path:i,host:n,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:h}=e;if(a)return ut.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<u.length;x+=2){let R=u[x+0],D=u[x+1];if(Array.isArray(D))for(let O=0;O<D.length;O++)d[R]?d[R]+=`,${D[O]}`:d[R]=D[O];else d[R]=D}let f,{hostname:p,port:A}=t[lB];d[hFe]=n||`${p}
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}: ${n[f]}\r
`)+4,e.outputData[0].data=e._header+s.substring(i),ng("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(ng("Creating `tls.Socket`: %o",this.connectOpts),n=oKe.connect(this.connectOpts)):(ng("Creating `net.Socket`: %o",this.connectOpts),n=nKe.connect(this.connectOpts)),await(0,cKe.once)(n,"connect"),n}};FN.protocols=["http","https"];jo.HttpProxyAgent=FN;function uKe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(uKe,"omit")});var phe=g(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.state=void 0;ZN.state={instrumenterImplementation:void 0}});var _he=g(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.state=void 0;iR.state={operationRequestMap:new WeakMap}});var lpe=g(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});var Qtt=require("os"),Ptt=require("util");function Ott(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Ott,"_interopDefaultLegacy");var Dtt=Ott(Ptt);function ktt(t,...e){process.stderr.write(`${Dtt.default.format(t,...e)}${Qtt.EOL}`)}o(ktt,"log");var Zfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,tpe,J4=[],Y4=[],wv=[];Zfe&&W4(Zfe);var rpe=Object.assign(t=>spe(t),{enable:W4,enabled:K4,disable:Ltt,log:ktt});function W4(t){tpe=t,J4=[],Y4=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?Y4.push(new RegExp(`^${s.substr(1)}$`)):J4.push(new RegExp(`^${s}$`));for(let s of wv)s.enabled=K4(s.namespace)}o(W4,"enable");function K4(t){if(t.endsWith("*"))return!0;for(let e of Y4)if(e.test(t))return!1;for(let e of J4)if(e.test(t))return!0;return!1}o(K4,"enabled");function Ltt(){let t=tpe||"";return W4(""),t}o(Ltt,"disable");function spe(t){let e=Object.assign(r,{enabled:K4(t),destroy:Mtt,log:rpe.log,namespace:t,extend:Ftt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),wv.push(e),e}o(spe,"createDebugger");function Mtt(){let t=wv.indexOf(this);return t>=0?(wv.splice(t,1),!0):!1}o(Mtt,"destroy");function Ftt(t){let e=spe(`${this.namespace}:${t}`);return e.log=this.log,e}o(Ftt,"extend");var C0=rpe,ipe=new Set,Iv=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Sv,Bv=C0("azure");Bv.log=(...t)=>{C0.log(...t)};var X4=["verbose","info","warning","error"];Iv&&(cpe(Iv)?npe(Iv):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Iv}'; logging is not enabled. Acceptable values: ${X4.join(", ")}.`));function npe(t){if(t&&!cpe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${X4.join(",")}`);Sv=t;let e=[];for(let r of ipe)ape(r)&&e.push(r.namespace);C0.enable(e.join(","))}o(npe,"setLogLevel");function Utt(){return Sv}o(Utt,"getLogLevel");var epe={verbose:400,info:300,warning:200,error:100};function qtt(t){let e=Bv.extend(t);return ope(Bv,e),{error:bv(e,"error"),warning:bv(e,"warning"),info:bv(e,"info"),verbose:bv(e,"verbose")}}o(qtt,"createClientLogger");function ope(t,e){e.log=(...r)=>{t.log(...r)}}o(ope,"patchLogMethod");function bv(t,e){let r=Object.assign(t.extend(e),{level:e});if(ope(t,r),ape(r)){let s=C0.disable();C0.enable(s+","+r.namespace)}return ipe.add(r),r}o(bv,"createLogger");function ape(t){return!!(Sv&&epe[t.level]<=epe[Sv])}o(ape,"shouldEnable");function cpe(t){return X4.includes(t)}o(cpe,"isAzureLogLevel");wg.AzureLogger=Bv;wg.createClientLogger=qtt;wg.getLogLevel=Utt;wg.setLogLevel=npe});var t8=g(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});var Sg=new WeakMap,xv=new WeakMap,I0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Sg.set(this,[]),xv.set(this,!1)}get aborted(){if(!xv.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return xv.get(this)}static get none(){return new t}addEventListener(e,r){if(!Sg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Sg.get(this).push(r)}removeEventListener(e,r){if(!Sg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Sg.get(this),i=s.indexOf(r);i>-
Polling status: ${Epe.includes(h)?"Stopped":"Running"}`),h==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(gpe({state:r,stateProxy:s,isOperationError:c})),status:h}}return{response:u,status:h}}o(irt,"pollOperationHelper");async function wpe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:h,processResult:d,getError:f,updateState:p,setDelay:A,isDone:m,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:S}=await irt({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:i});if(Ipe({status:S,response:I,state:r,stateProxy:s,isDone:m,processResult:d,getError:f,setErrorAsResult:C}),!Epe.includes(S)){let x=h?.(I);x&&A(x);let R=c?.(I,r);if(R!==void 0){let D=E!==R;r.config.operationLocation=R,u?.(R,D)}else u?.(E,!1)}p?.(r,I)}}o(wpe,"pollOperation");function Spe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Spe,"getOperationLocationPollingUrl");function Bpe(t){return t.headers.location}o(Bpe,"getLocationHeader");function xpe(t){return t.headers["operation-location"]}o(xpe,"getOperationLocationHeader");function Npe(t){return t.headers["azure-asyncoperation"]}o(Npe,"getAzureAsyncOperationHeader");function nrt(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(nrt,"findResourceLocation");function Rpe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=xpe(e),a=Npe(e),c=Spe({operationLocation:n,azureAsyncOperation:a}),l=Bpe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:nrt({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(Rpe,"inferLroMode");function vpe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return l8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return yp.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}o(vpe,"transformStatus");function ort(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return vpe({status:r,statusCode:t.statusCode})}o(ort,"getStatus");function art(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return vpe({status:n,statusCode:t.statusCode})}o(art,"getProvisioningState");function l8(t){return t===202?"running":t<300?"succeeded":"failed"}o(l8,"toOperationStatus");function Tpe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?crt(new Date(e)):r*1e3}}o(Tpe,"parseRetryAfter");function _pe(t){let e=t.flatResponse.error;if(!e){yp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){yp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(_pe,"getErrorFromResponse");function crt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(crt,"calculatePollingIntervalFromDate");function Qpe(t){let{response:e,state:r,operationLocation:s}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return l8(e.rawResponse.sta
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Nlt,"logUnexpecedPropertyAccessOnce");functionRlt(){Object.keys(i_).forEach(function(t){deletei_[t]})}o(Rlt,"resetLoggedProperties")});varo_=g(hl=>{"use strict";hl.__esModule=!0;hl.HandlebarsEnvironment=bV;functionjye(t){returnt&&t.__esModule?t:{default:t}}o(jye,"_interopRequireDefault");varvp=Fi(),vlt=ho(),CV=jye(vlt),Tlt=mV(),_lt=Hye(),Qlt=yV(),n_=jye(Qlt),Plt=EV(),Olt="4.7.9";hl.VERSION=Olt;varDlt=8;hl.COMPILER_REVISION=Dlt;varklt=7;hl.LAST_COMPATIBLE_COMPILER_REVISION=klt;varLlt={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"};hl.REVISION_CHANGES=Llt;varIV="[object Object]";functionbV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Tlt.registerDefaultHelpers(this),_lt.registerDefaultDecorators(this)}o(bV,"HandlebarsEnvironment");bV.prototype={constructor:bV,logger:n_.default,log:n_.default.log,registerHelper:o(function(e,r){if(vp.toString.call(e)===IV){if(r)thrownewCV.default("Arg not supported with multiple helpers");vp.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(vp.toString.call(e)===IV)vp.extend(this.partials,e);else{if(typeofr>"u")thrownewCV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){deletethis.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(vp.toString.call(e)===IV){if(r)thrownewCV.default("Arg not supported with multiple decorators");vp.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Plt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};varMlt=n_.default.log;hl.log=Mlt;hl.createFrame=vp.createFrame;hl.logger=n_.default});varYye=g((a_,Jye)=>{"use strict";a_.__esModule=!0;functionwV(t){this.string=t}o(wV,"SafeString");wV.prototype.toString=wV.prototype.toHTML=function(){return""+this.string};a_.default=wV;Jye.exports=a_.default});varWye=g(SV=>{"use strict";SV.__esModule=!0;SV.wrapHelper=Flt;functionFlt(t,e){if(typeoft!="function")returnt;varr=o(function(){vari=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");returnr}o(Flt,"wrapHelper")});varrEe=g(Bd=>{"use strict";Bd.__esModule=!0;Bd.checkRevision=Vlt;Bd.template=$lt;Bd.wrapProgram=c_;Bd.resolvePartial=jlt;Bd.invokePartial=Jlt;Bd.noop=eEe;functionUlt(t){returnt&&t.__esModule?t:{default:t}}o(Ult,"_interopRequireDefault");functionqlt(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}o(qlt,"_interopRequireWildcard");varGlt=Fi(),Kg=qlt(Glt),Hlt=ho(),Du=Ult(Hlt),ku=o_(),Kye=mV(),zlt=Wye(),Xye=EV();functionVlt(t){vare=t&&t[0]||1,r=ku.COMPILER_REVISION;if(!(e>=ku.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ku.COMPILER_REVISION))if(e<ku.LAST_COMPATIBLE_COMPILER_REVISION){vars=ku.REVISION_CHANGES[r],i=ku.REVISION_CHANGES[e];thrownewDu.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}elsethrownewDu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Vlt,"checkRevision");function$lt(t,e){if(!e)thrownewDu.default("No environment passed to template");if(!t||!t.main)thrownewDu.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functions(a,c,l){l.hash&&(c=Kg.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting `+j.join(", ")+", got '"+(this.terminals_[x]||x)+"'":se="Parse error on line "+(d+1)+": Unexpected "+(x==1?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(se,{text:this.lexer.match,token:this.terminals_[x]||x,line:this.lexer.yylineno,loc:C,expected:j})}}if(O[0]instanceofArray&&O.length>1)thrownewError("Parse Error: multiple actions possible at state: "+D+", token: "+x);switch(O[0]){case1:a.push(x),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(O[1]),x=null,R?(x=R,R=null):(f=this.lexer.yyleng,h=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case2:if(q=this.productions_[O[1]][1],ee.$=c[c.length-q],ee._$={first_line:l[l.length-(q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(q||1)].first_column,last_column:l[l.length-1].last_column},E&&(ee._$.range=[l[l.length-(q||1)].range[0],l[l.length-1].range[1]]),V=this.performAction.call(ee,h,f,d,this.yy,O[1],c,l),typeofV<"u")returnV;q&&(a=a.slice(0,-1*q*2),c=c.slice(0,-1*q),l=l.slice(0,-1*q)),a.push(this.productions_[O[1]][0]),c.push(ee.$),l.push(ee._$),z=u[a[a.length-2]][a[a.length-1]],a.push(z);break;case3:return!0}}return!0},"parse")},e=(function(){vars={EOF:1,parseError:o(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);elsethrownewError(n)},"parseError"),setInput:o(function(n){returnthis._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){varn=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;vara=n.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:o(function(n){vara=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varu=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){returnthis._more=!0,this},"more"),less:o(function(n){this.unput(this.match.slice(n))},"less"),pastInput:o(function(){varn=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){varn=this.match;returnn.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){varn=this.pastInput(),a=newArray(n.length+1).join("-");returnn+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);varn,a,c,l,u,h;this._more||(this.yytext="",this.match="");for(vard=this._currentRules(),f=0;f<d.length&&(c=this._input.match(this.rules[d[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);returna?(h=a[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],n=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){varn=this.next();returntypeofn<"u"?n:this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:o(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(n){this.begin(n)},"begin")};returns.options={},s.performAction=o(function(n,a,c,l){functionu(d,f){returna.yytext=a.yytext.substring(d,a.yyleng-f+d)}o(u,"strip");varh=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;functionr(){this.yy={}}returno(r,"Parser"),r.prototype=t,t.Parser=r,newr})();f_.default=out;hEe.exports=f_.default});varg_=g((m_,AEe)=>{"use strict";m_.__esModule=!0;functionaut(t){returnt&&t.__esModule?t:{default:t}}o(aut,"_interopRequireDefault");varcut=ho(),TV=aut(cut);functionp_(){this.parents=[]}o(p_,"Visitor");p_.prototype={constructor:p_,mutating:!1,acceptKey:o(function(e,r){vars=this.accept(e[r]);if(this.mutating){if(s&&!p_.prototype[s.type])thrownewTV.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Pp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Pp?e:(e=XV(e,this,r),new Pp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var a=XV(e[n],r);a!=="undefined"&&s.push([r.quotedString(n),":",a])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(XV(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};B_.default=WEe;KEe.exports=B_.default});var sCe=g((x_,rCe)=>{"use strict";x_.__esModule=!0;function tCe(t){return t&&t.__esModule?t:{default:t}}o(tCe,"_interopRequireDefault");var ZEe=o_(),nht=ho(),e3=tCe(nht),oht=Fi(),aht=XEe(),eCe=tCe(aht);function sy(t){this.value=t}o(sy,"Literal");function iy(){}o(iy,"JavaScriptCompiler");iy.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=ZEe.COMPILER_REVISION,r=ZEe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return oht.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=n.length;l<u;l++)a=n[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new e3.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});varSbe=g(wbe=>{"use strict";varH$=Wu().Buffer;wbe._dbcs=Xu;varYs=-1,bbe=-2,fa=-10,Ki=-1e3,vy=newArray(256),qb=-1;for(s1=0;s1<256;s1++)vy[s1]=Ys;vars1;functionXu(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[]
Found: ${t.length}`);throwc.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{letc=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throwc.code="EINTEGRITY",c.found=n,c.expected=e,c.algorithm=s,c.sri=e,c}}o(bgt,"checkData");Rl.exports.checkStream=wgt;functionwgt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Co(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=m6(r);returnnewPromise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);leta;s.on("verified",c=>{a=c}),s.on("end",()=>i(a)),s.resume()})}o(wgt,"checkStream");Rl.exports.integrityStream=m6;functionm6(t=Object.create(null)){returnnewp6(t)}o(m6,"integrityStream");Rl.exports.create=Sgt;functionSgt(t){lete=t?.algorithms||[...A6],r=Yb(t?.options),s=e.map(Jb.createHash);return{update:o(function(i,n){returns.forEach(a=>a.update(i,n)),this},"update"),digest:o(function(){returne.reduce((n,a)=>{letc=s.shift().digest("base64"),l=newsh(`${a}-${c}${r}`,t);returnn[l.algorithm]||(n[l.algorithm]=[]),n[l.algorithm].push(l),n},newrA)},"digest")}}o(Sgt,"createIntegrity");functionBgt(t,e){returnRwe.indexOf(t.toLowerCase())>=Rwe.indexOf(e.toLowerCase())?t:e}o(Bgt,"getPrioritizedHash")});vary6=g((Ifr,Dwe)=>{var_we=n6(),Qwe=h6(),xgt=vl(),Pwe={shared:!1,ignoreCargoCult:!0},Ngt={status:200,headers:{}},Qy=o(t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),Owe=o(t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),g6=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Qy(r),this.response=Owe(s),this.options=i,this.policy=new_we(this.request,this.response,Pwe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}staticstorable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new_we(Qy(e),Ngt,Pwe).storable()}satisfies(e){letr=Qy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newQwe(this.request),i=newQwe(r);returnJSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?xgt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=Qy(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=Qy(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=Qy(e),i=Owe(r);return!this.policy.revalidatedPolicy(s,i).modified}};Dwe.exports=g6});varLwe=g((wfr,kwe)=>{varE6=classextendsError{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};kwe.exports={NotCachedError:E6}});varjwe=g((Bfr,$we)=>{"use strict";varMwe=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},Rgt=require("events"),Fwe=require("stream"),Uwe=require("string_decoder").StringDecoder,ih=Symbol("EOF"),nh=Symbol("maybeEmitEnd"),zd=Symbol("emittedEnd"),m1=Symbol("emittingEnd"),Wb=Symbol("emittedError"),g1=Symbol("closed"),qwe=Symbol("read"),y1=Symbol("flush"),Gwe=Symbol("flushChunk"),vn=Symbol("encoding"),oh=Symbol("decoder"),E1=Symbol("flowing"),Kb=Symbol("paused"),Py=Symbol("resume"),Os=Symbol("bufferLength"),C6=Symbol("bufferPush"),I6=Symbol("bufferShift"),fi=Symbol("objectMode"),pi=Symbol("destroyed"),b6=Symbol("emitData"),Hwe=Symbol("emitEnd"),w6=Symbol("emitEnd2"),ah=Symbol("async"),Xb=o(t=>Promise.resolve().then(t),"defer"),zwe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",vgt=zwe&&Symbol.asyncIter
${V1(u)}${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return $1(t,l)}o(iNe,"insert");bo.exports.find=m0t;async function m0t(t,e){let r=Aw(t,e);try{return(await z1(r)).reduce((i,n)=>n&&n.key===e?$1(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(m0t,"find");bo.exports.delete=g0t;function g0t(t,e,r={}){if(!r.removeFully)return iNe(t,e,null,r);let s=Aw(t,e);return sNe(s,{recursive:!0,force:!0})}o(g0t,"del");bo.exports.lsStream=nNe;function nNe(t){let e=Cj(t),r=new c0t({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(H1(),G1)),i=await yj(e);return await s(i,async n=>{let a=_l.join(e,n),c=await yj(a);await s(c,async l=>{let u=_l.join(a,l),h=await yj(u);await s(h,async d=>{let f=_l.join(u,d);try{let A=(await z1(f)).reduce((m,C)=>(m.set(C.key,C),m),new Map);for(let m of A.values()){let C=$1(t,m);C&&r.write(C)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:gj})},{concurrency:gj})},{concurrency:gj}),r.end(),r}).catch(s=>r.emit("error",s)),r}o(nNe,"lsStream");bo.exports.ls=y0t;async function y0t(t){return(await nNe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(y0t,"ls");bo.exports.bucketEntries=z1;async function z1(t,e){let r=await n0t(t,"utf8");return E0t(r,e)}o(z1,"bucketEntries");function E0t(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||V1(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}o(E0t,"_bucketEntries");bo.exports.bucketDir=Cj;function Cj(t){return _l.join(t,`index-v${f0t}`)}o(Cj,"bucketDir");bo.exports.bucketPath=Aw;function Aw(t,e){let r=oNe(e);return _l.join.apply(_l,[Cj(t)].concat(d0t(r)))}o(Aw,"bucketPath");bo.exports.hashKey=oNe;function oNe(t){return aNe(t,"sha256")}o(oNe,"hashKey");bo.exports.hashEntry=V1;function V1(t){return aNe(t,"sha1")}o(V1,"hashEntry");function aNe(t,e){return s0t.createHash(e).update(t).digest("hex")}o(aNe,"hash");function $1(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?h0t(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o($1,"formatEntry");function yj(t){return o0t(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(yj,"readdirOrEmpty")});var gw=g(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0});Y1.LRUCache=void 0;var C0t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,lNe=new Set,Ij=typeof process=="object"&&process?process:{},uNe=o((t,e,r,s)=>{typeof Ij.emitWarning=="function"?Ij.emitWarning(t,e,r,s):console.error(`[${r}]${e}:${t}`)},"I"),J1=globalThis.AbortController,cNe=globalThis.AbortSignal;if(typeof J1>"u"){cNe=class{static{o(this,"L")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},J1=class{static{o(this,"C")}constructor(){e()}signal=new cNe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=Ij.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,uNe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"t")}var I0t=o(t=>!lNe.has(t),"G"),$d=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"y"),hNe=o(t=>$d(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?j1:null:null,"M"),j1=class extends Array{static{o(this,"z")}constructor(t){super(t),this.fill(0)}},b0t=class mw{static{o(this,"a")}heap;length;static#e=!1;static create(e){let r=hNe(e);if(!r)return[];mw.#e=!0;let s=new mw(e,r);return mw.#e=!1,s}constructor(e,r){if(!mw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},w0t=class dNe{static{o(this,"a")}#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#S;#B;#E;#C;#b;#R;#c;#O;static unsafeExposeInternals(e){return{starts:e.#B,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#S,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:o(r=>e.#d(r),"isBackgroundFetch"),backgroundFetch:o((r,s,i,n)=>e.#G(r,s,i,n),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#v(r),"indexes"),rindexes:o(r=>e.#T(r),"rindexes"),isStale:o(r=>e.#w(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:c,allowS
globstarwhile`,T,te,P,ke,ot),this.matchOne(T.slice(te),P.slice(ke),L))return this.debug("globstar found match!",te,v,ot),!0;if(ot==="."||ot===".."||!G.dot&&ot.charAt(0)==="."){this.debug("dot detected!",T,te,P,ke);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(L&&(this.debug(`
>>>nomatch,partial?`,T,te,P,ke),te===v))}let st;if(typeof J=="string"?(st=ge===J,this.debug("string match",J,ge,st)):(st=J.test(ge),this.debug("pattern match",J,ge,st)),!st)return!1}if(y===v&&B===F)return!0;if(y===v)return L;if(B===F)return y===v-1&&T[y]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(T){(0,r.assertValidPattern)(T);let P=this.options;if(T==="**")return t.GLOBSTAR;if(T==="")return"";let L,G=null;(L=T.match(E))?G=P.dot?S:I:(L=T.match(c))?G=(P.nocase?P.dot?d:h:P.dot?u:l)(L[1]):(L=T.match(x))?G=(P.nocase?P.dot?D:R:P.dot?O:M)(L):(L=T.match(f))?G=P.dot?A:p:(L=T.match(m))&&(G=C);let W=s.AST.fromGlob(T,this.options).toMMPattern();return G&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:G}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let T=this.set;if(!T.length)return this.regexp=!1,this.regexp;let P=this.options,L=P.noglobstar?j:P.dot?se:Qe,G=new Set(P.nocase?["i"]:[]),W=T.map(v=>{let F=v.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))G.add(te);return typeof ge=="string"?Vt(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});F.forEach((ge,te)=>{let ke=F[te+1],ot=F[te-1];ge!==t.GLOBSTAR||ot===t.GLOBSTAR||(ot===void 0?ke!==void 0&&ke!==t.GLOBSTAR?F[te+1]="(?:\\/|"+L+"\\/)?"+ke:F[te]=L:ke===void 0?F[te-1]=ot+"(?:\\/|\\/"+L+")?":ke!==t.GLOBSTAR&&(F[te-1]=ot+"(?:\\/|\\/"+L+"\\/)"+ke,F[te+1]=t.GLOBSTAR))});let J=F.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&J.length>=1){let ge=[];for(let te=1;te<=J.length;te++)ge.push(J.slice(0,te).join("/"));return"(?:"+ge.join("|")+")"}return J.join("/")}).join("|"),[y,B]=T.length>1?["(?:",")"]:["",""];W="^"+y+W+B+"$",this.partial&&(W="^(?:\\/|"+y+W.slice(1,-1)+B+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...G].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(T){return this.preserveMultipleSlashes?T.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(T)?["",...T.split(/\/+/)]:T.split(/\/+/)}match(T,P=this.partial){if(this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&P)return!0;let L=this.options;this.isWindows&&(T=T.split("\\").join("/"));let G=this.slashSplit(T);this.debug(this.pattern,"split",G);let W=this.set;this.debug(this.pattern,"set",W);let y=G[G.length-1];if(!y)for(let B=G.length-2;!y&&B>=0;B--)y=G[B];for(let B=0;B<W.length;B++){let v=W[B],F=G;if(L.matchBase&&v.length===1&&(F=[y]),this.matchOne(F,v,P))return L.flipNegate?!0:!this.negate}return L.flipNegate?!1:this.negate}static defaults(T){return t.minimatch.defaults(T).Minimatch}};t.Minimatch=ss;var Ln=DNe();Object.defineProperty(t,"AST",{enumerable:!0,get:o(function(){return Ln.AST},"get")});var Tt=kNe();Object.defineProperty(t,"escape",{enumerable:!0,get:o(function(){return Tt.escape},"get")});var Bo=kj();Object.defineProperty(t,"unescape",{enumerable:!0,get:o(function(){return Bo.unescape},"get")}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=ss,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),pbt=Ws(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=o((p,A,m,C)=>{typeof s.emitWarning=="function"?s.emitWarning(p,A,m,C):console.error(`[${m}]${A}:${p}`)},"ls"),n=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof n>"u"){a=class{static{o(this,"os")}onabort;_onabort=[];reason;aborted=!1;addEventListener(m,C){this._onabort.push(C)}},n=class{static{o(this,"Lt")}constructor(){A()}signal=new a;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let C of this.signal._onabort)C(m);this.signal.onabort?.(m)}}};let p=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=o(()=>{p&&(p=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other conte
`);let{connect:u,buffered:h}=awaitl;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Xwt),r.secureEndpoint){Tw("Upgrading socket connection to TLS");letf=r.servername||r.host;returnLRe.connect({...MRe(r,"host","path","port"),socket:i,servername:vw.isIP(f)?void0:f})}returni}i.destroy();letd=newvw.Socket({writable:!1});returnd.readable=!0,e.once("socket",f=>{Tw("Replaying proxy buffer for failed request"),(0,jwt.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};fP.protocols=["http","https"];ga.HttpsProxyAgent=fP;functionXwt(t){t.resume()}o(Xwt,"resume");functionMRe(t,...e){letr={},s;for(sint)e.includes(s)||(r[s]=t[s]);returnr}o(MRe,"omit")});varVRe=g(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});varGRe=require("buffer"),mA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Ch.ERRORS=mA;functionZwt(t){if(!GRe.Buffer.isEncoding(t))thrownewError(mA.INVALID_ENCODING)}o(Zwt,"checkEncoding");Ch.checkEncoding=Zwt;functionHRe(t){returntypeoft=="number"&&isFinite(t)&&sSt(t)}o(HRe,"isFiniteInteger");Ch.isFiniteInteger=HRe;functionzRe(t,e){if(typeoft=="number"){if(!HRe(t)||t<0)thrownewError(e?mA.INVALID_OFFSET:mA.INVALID_LENGTH)}elsethrownewError(e?mA.INVALID_OFFSET_NON_NUMBER:mA.INVALID_LENGTH_NON_NUMBER)}o(zRe,"checkOffsetOrLengthValue");functioneSt(t){zRe(t,!1)}o(eSt,"checkLengthValue");Ch.checkLengthValue=eSt;functiontSt(t){zRe(t,!0)}o(tSt,"checkOffsetValue");Ch.checkOffsetValue=tSt;functionrSt(t,e){if(t<0||t>e.length)thrownewError(mA.INVALID_TARGET_OFFSET)}o(rSt,"checkTargetOffset");Ch.checkTargetOffset=rSt;functionsSt(t){returntypeoft=="number"&&isFinite(t)&&Math.floor(t)===t}o(sSt,"isInteger");functioniSt(t){if(typeofBigInt>"u")thrownewError("Platform does not support JS BigInt type.");if(typeofGRe.Buffer.prototype[t]>"u")thrownewError(`Platform does not support Buffer.prototype.${t}.`)}o(iSt,"bigIntAndBufferInt64Check");Ch.bigIntAndBufferInt64Check=iSt});varjRe=g(oJ=>{"use strict";Object.defineProperty(oJ,"__esModule",{value:!0});varrt=VRe(),$Re=4096,nSt="utf8",nJ=classt{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=nSt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(rt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(rt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);elsethrownewError(rt.ERRORS.INVALID_SMARTBUFFER_SIZE);elseif(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;elsethrownewError(rt.ERRORS.INVALID_SMARTBUFFER_BUFFER);elsethis._buff=Buffer.allocUnsafe($Re);else{if(typeofe<"u")thrownewError(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe($Re)}}staticfromSize(e,r){returnnewthis({size:e,encoding:r})}staticfromBuffer(e,r){returnnewthis({buff:e,encoding:r})}staticfromOptions(e){returnnewthis(e)}staticisSmartBufferOptions(e){letr=e;returnr&&(r.encoding!==void0||r.size!==void0||r.buff!==void0)}read
`,a1t=/\u2014 (\S+) (\S+)\n/g;functionc1t(t,e){letr=t.inclusionProof,s=tW.fromString(r.checkpoint.envelope),i=XO.fromString(s.note);if(!l1t(s,e))thrownewoS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});returni}o(c1t,"verifyCheckpoint");functionl1t(t,e){letr=Buffer.from(t.note,"utf-8");returnt.signatures.some(s=>{leti=e.find(n=>YQe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));returni?YQe.crypto.verify(r,i.publicKey,s.signature):!1})}o(l1t,"verifySignedNote");vartW=classt{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}staticfromString(e){if(!e.includes(eW))thrownewoS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});letr=e.indexOf(eW),s=e.slice(0,r+1),n=e.slice(r+eW.length).matchAll(a1t),a=Array.from(n,c=>{let[,l,u]=c,h=Buffer.from(u,"base64");if(h.length<5)thrownewoS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:h.subarray(0,4),signature:h.subarray(4)}});if(a.length===0)thrownewoS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});returnnewt(s,a)}},XO=classt{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}staticfromString(e){letr=e.trimEnd().split(`
`);if(r.length<3)thrownewoS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});lets=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),a=r.slice(3);returnnewt(s,i,n,a)}};aS.LogCheckpoint=XO});varKQe=g(nW=>{"use strict";Object.defineProperty(nW,"__esModule",{value:!0});nW.verifyMerkleInclusion=d1t;variW=mo(),rW=Ei(),u1t=Buffer.from([0]),h1t=Buffer.from([1]);functiond1t(t,e){letr=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)thrownewrW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:a}=f1t(s,i);if(r.hashes.length!==n+a)thrownewrW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});letc=r.hashes.slice(0,n),l=r.hashes.slice(n),u=E1t(t.canonicalizedBody),h=A1t(p1t(u,c,s),l);if(!iW.crypto.bufferEqual(h,e.logHash))thrownewrW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(d1t,"verifyMerkleInclusion");functionf1t(t,e){letr=m1t(t,e),s=g1t(t>>BigInt(r));return{inner:r,border:s}}o(f1t,"decompInclProof");functionp1t(t,e,r){returne.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?sW(i,s):sW(s,i),t)}o(p1t,"chainInner");functionA1t(t,e){returne.reduce((r,s)=>sW(s,r),t)}o(A1t,"chainBorderRight");functionm1t(t,e){returny1t(t^e-BigInt(1))}o(m1t,"innerProofSize");functiong1t(t){returnt.toString(2).split("1").length-1}o(g1t,"onesCount");functiony1t(t){returnt===0n?0:t.toString(2).length}o(y1t,"bitLength");functionsW(t,e){returniW.crypto.digest("sha256",h1t,t,e)}o(sW,"hashChildren");functionE1t(t){returniW.crypto.digest("sha256",u1t,t)}o(E1t,"hashLeaf")});varZQe=g(oW=>{"use strict";Object.defineProperty(oW,"__esModule",{value:!0});oW.verifyTLogSET=b1t;varXQe=mo(),C1t=Ei(),I1t=kE();functionb1t(t,e){if(!(0,I1t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:newDate(Number(t.integratedTime)*1e3)}).some(i=>{letn=w1t(t),a=Buffer.from(XQe.json.canonicalize(n),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;returnXQe.crypto.verify(a,i.publicKey,c)}))thrownewC1t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(b1t,"verifyTLogSET");functionw1t(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(w1t,"toVerificationPayload")});vart1e=g(ZO=>{"use strict";Object.defineProperty(ZO,"__esModule",{value:!0});ZO.verifyTLogBody=R1t;ZO.verifyTLogInclusion=v1t;vare1e=eY(),lW=Ei(),aW=$Qe(),cW=jQe(),S1t=JQe(),B1t=WQe(),x1t=KQe(),N1t=ZQe();functionR1t(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)thrownewlW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==aW.DSSE_API_VERSION_V1)return(0,aW.verifyDSSETLogBody)(i,e);{letn=e1e.Entry.fromJSON(i);return(0,aW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,S1t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==cW.HASHEDREKORD_API_VERSION_V1)return(0,cW.verifyHashedRekordTLogBody)(i,e);{letn=e1e.Entry.fromJSON(i);return(0,cW.verifyHashedRekordTLogBodyV2)(n,e)}default:thrownewlW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(R1t,"verifyTLogBody");functionv1t(t,e){letr=!1;if(T1t(t)&&((0,N1t.verifyTLogSET)(t,e),r=!0),_1t(t)){lets=(0,B1t.verifyCheckpoint)(t,e);(0,x1t.verifyMerkleInclusion)(t,s),r=!0}if(!r)thrownewlW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(v1t,"verifyTLogInclusion");functionT1t(t){returnt.inclusionPromise!==void0}o(T1t,"isTLogEntryWithInclusionPromise");function_1t(t){returnt.inclusionProof!==void0}o(_1t,"isTLogEntryWithInclusionProof")});varo1e=g(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});eD.Verifier=void0;varQ1t=require("util"),L
`),u="",h=!1,d=0,f=!1;for(let p of l){let A=0;for(;A<a&&p.charCodeAt(A)===32;)A++;if(s<0||A>=p.length){d++;continue}let m=p.slice(a),C=m.charCodeAt(0);n?C===32||C===9?(f=!0,u+=`
`.repeat(h?1+d:d)):f?(f=!1,u+=`
`.repeat(d+1)):d===0?h&&(u+=" "):u+=`
`.repeat(d):u+=`
`.repeat(h?1+d:d),u+=m,h=!0,d=0}return i===3?u+=`
`.repeat(h?1+d:d):i!==2&&h&&(u+=`
`),u}o(QW,"getBlockValue");function sDe(t,e){if(e.valueStart===WOe)return"";let{valueStart:r,valueEnd:s}=e;if(e.fast)return t.slice(r,s);switch(e.style){case 2:return tDe(t,r,s);case 3:return rDe(t,r,s);case 4:return QW(t,r,s,e.indent,e.chomping,!1);case 5:return QW(t,r,s,e.indent,e.chomping,!0);default:return eDe(t,r,s)}}o(sDe,"getScalarValue");var iDe={"!":"!","!!":"tag:yaml.org,2002:"};function HW(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),s=r===-1?"!":t.slice(0,r+1),i=e?.[s]??iDe[s]??s;return decodeURIComponent(i)+decodeURIComponent(t.slice(s.length))}o(HW,"tagNameFull");var LA=-1,MD={filename:"",schema:$Oe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function nDe(t){return"tagStart"in t&&t.tagStart!==LA?t.tagStart:"anchorStart"in t&&t.anchorStart!==LA?t.anchorStart:"valueStart"in t&&t.valueStart!==LA?t.valueStart:"start"in t?t.start:0}o(nDe,"eventPosition$1");function nn(t,e){BS(t.source,t.position,e,t.filename)}o(nn,"throwError$1");function zW(t,e,r,s){try{return r.finalize(s)}catch(i){if(i instanceof ES)throw i;BS(t.source,e,i instanceof Error?i.message:String(i),t.filename)}}o(zW,"finalizeCollection");function yS(t,e,r){let s=t[r];if(s)return s;for(let i of e)if(r.startsWith(i.tagName))return i}o(yS,"lookupTag");function oDe(t,e,r,s,i){let n=yS(e,r,s);if(n)return n;nn(t,`unknown${i}tag!<${s}>`)}o(oDe,"findExplicitTag");function aDe(t,e){let r=sDe(t.source,e),s=e.tagStart===LA?"":t.source.slice(e.tagStart,e.tagEnd),i=t.schema.defaultScalarTag;if(s!==""){if(s==="!")return{value:r,tag:i};let n=HW(s,t.tagHandlers),a=yS(t.schema.exact.scalar,t.schema.prefix.scalar,n);if(a){let l=a.resolve(r,!0,n);return l===Et&&nn(t,`cannotresolveanodewith!<${n}>explicittag`),{value:l,tag:a}}let c=yS(t.schema.exact.mapping,t.schema.prefix.mapping,n)??yS(t.schema.exact.sequence,t.schema.prefix.sequence,n);if(c){r!==""&&nn(t,`cannotresolveanodewith!<${n}>explicittag`);let l=c.create(n);return{value:c.carrierIsResult?l:zW(t,t.position,c,l),tag:c}}nn(t,`unknownscalartag!<${n}>`)}if(e.style===1){let n=t.schema.implicitScalarByFirstChar.get(r.charAt(0))??t.schema.implicitScalarAnyFirstChar;for(let a of n){let c=a.resolve(r,!1,a.tagName);if(c!==Et)return{value:c,tag:a}}}return{value:i.resolve(r,!1,i.tagName),tag:i}}o(aDe,"constructScalar");function PW(t,e,r,s,i,n){let a=e.tagStart===LA?"":t.source.slice(e.tagStart,e.tagEnd),c=a===""||a==="!"?i:HW(a,t.tagHandlers);return{tagName:c,tag:oDe(t,r,s,c,n)}}o(PW,"collectionTag");function VW(t){return t.nodeKind==="mapping"}o(VW,"isMappingTag");function OW(t,e,r,s){for(let i of s.keys(r)){if(t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&nn(t,`mergekeysexceededmaxTotalMergeKeys(${t.maxTotalMergeKeys})`),e.tag.has(e.value,i))continue;let n=e.tag.addPair(e.value,i,s.get(r,i));n&&nn(t,n),(e.overridable??=new Set).add(i)}}o(OW,"mergeKeys");function cDe(t,e,r,s){if(t.position=e.keyPosition,VW(s))OW(t,e,r,s);else if(s.nodeKind==="sequence"&&Array.isArray(r))for(let i of r)OW(t,e,i,e.tag);else nn(t,"cannot merge mappings; the provided source object is unacceptable")}o(cDe,"mergeSource");function lDe(t,e,r,s,i){if(t.position=e.keyPosition,r===PD){cDe(t,e,s,i);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&nn(t,"duplicated mapping key");let n=e.tag.addPair(e.value,r,s);n&&nn(t,n),e.overridable?.delete(r)}o(lDe,"addMappingValue");function BD(t,e,r){let s=t.frames[t.frames.length-1];if(s.kind==="document")s.value=e,s.hasValue=!0;else if(s.kind==="sequence"){s.merge&&(VW(r)||nn(t,"cannot merge mappings; the provided source object is unacceptable"));let i=s.tag.addItem(s.value,e,s.index++);i&&nn(t,i)}else if(s.hasKey){let i=s.key;s.key=void 0,s.hasKey=!1,lDe(t,s,i,e,r)}else s.key=e,s.keyPosition=t.position,s.hasKey=!0}o(BD,"addValue");function xD(t,e,r,s,i){if(e.anchorStart!==LA){let n={value:r,tag:s,isValueFinal:i};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),n),n}return null}o(xD,"storeAnchor");function uDe(t,e){let r={...MD,...e,events:t,documents:[],eventIndex:0,positio
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Gf,"getBooleanInput");functioneI(t,e){if(process.env.GITHUB_OUTPUT||"")returnRS("OUTPUT",HD(t,e));process.stdout.write(v2.EOL),Wl("set-output",{name:t},Yl(e))}o(eI,"setOutput");functionKie(t){process.exitCode=R2.Failure,Fm(t)}o(Kie,"setFailed");functionfu(){returnprocess.env.RUNNER_DEBUG==="1"}o(fu,"isDebug");functionQ(t){Wl("debug",{},t)}o(Q,"debug");functionFm(t,e={}){Wl("error",UD(e),tinstanceofError?t.toString():t)}o(Fm,"error");functionkt(t,e={}){Wl("warning",UD(e),tinstanceofError?t.toString():t)}o(kt,"warning");functionH(t){process.stdout.write(t+v2.EOL)}o(H,"info");functionb3e(t){GD("group",t)}o(b3e,"startGroup");functionw3e(){GD("endgroup")}o(w3e,"endGroup");functioner(t,e){returnI3e(this,void0,void0,function*(){b3e(t);letr;try{r=yielde()}finally{w3e()}returnr})}o(er,"group");functiondn(t,e){if(process.env.GITHUB_STATE||"")returnRS("STATE",HD(t,e));Wl("save-state",{name:t},Yl(e))}o(dn,"saveState");functionXie(t){returnprocess.env[`STATE_${t}`]||""}o(Xie,"getState");var_T=k(require("fs"),1),Lz=k(require("os"),1),Mz=k(require("path"),1);varene=k(require("os"),1);functiontI(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(tI,"toCommandValue");functiontne(t,e,r){lets=newT2(t,e,r);process.stdout.write(s.toString()+ene.EOL)}o(tne,"issueCommand");varZie="::",T2=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=Zie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){leti=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${B3e(i)}`)}}returne+=`${Zie}${S3e(this.message)}`,e}};functionS3e(t){returntI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(S3e,"escapeData");functionB3e(t){returntI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(B3e,"escapeProperty");varnne=k(require("os"),1);varsne=require("os"),rI=require("fs");var_2=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(a){a(n)})}returno(i,"adopt"),new(r||(r=Promise))(function(n,a){functionc(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");functionl(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");functionu(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:x3e,appendFile:N3e,writeFile:R3e}=rI.promises,rne="GITHUB_STEP_SUMMARY";varQ2=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return_2(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[rne];if(!e)thrownewError(`Unable to find environment variable for $${rne}. Check if your runtime environment supports job summaries.`);try{yieldx3e(e,rI.constants.R_OK|rI.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,s={}){leti=Object.entries(s).map(([n,a])=>` ${n}="${a}"`).join("");returnr?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return_2(this,void0,void0,function*(){letr=!!e?.overwrite,s=yieldthis.filePath();returnyield(r?R3e:N3e)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return_2(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(sne.EOL)}addCodeBlock(e,r){lets=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),s);returnthis.addRaw(i).addEOL()}addList(e,r=!1){lets=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),n=this.wrap(s,i);returnthis.addRaw(n).addEOL()}addTable(e){letr=e.map(i=>{letn=i.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);l
`,"utf-8")],i=SKe(s);i&&t.headers.set("Content-Length",i),t.body=awaitrhe(s)}o(BKe,"buildRequestBody");varOI="multipartPolicy",xKe=70,NKe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionRKe(t){if(t.length>xKe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!NKe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}o(RKe,"assertValidBoundary");function$N(){return{name:OI,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,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)thrownewError(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,a]=i;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?RKe(r):r=IKe(),t.headers.set("Content-Type",`${n}; boundary=${r}`),awaitBKe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}o($N,"multipartPolicy");functionjN(){returngN()}o(jN,"createEmptyPipeline");varshe=pN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Qzt=she.logger;functionPc(t){returnshe.createClientLogger(t)}o(Pc,"createClientLogger");varOc=Pc("core-rest-pipeline");functionwU(t={}){returnwN({logger:Oc.info,...t})}o(wU,"logPolicy");varSU=SN;functionBU(t={}){returnBN(t)}o(BU,"redirectPolicy");varJN=k(require("node:os"),1),YN=k(require("node:process"),1);functionihe(){return"User-Agent"}o(ihe,"getHeaderName");asyncfunctionnhe(t){if(YN.default&&YN.default.versions){lete=`${JN.default.type()}${JN.default.release()}; ${JN.default.arch()}`,r=YN.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})`)}}o(nhe,"setPlatformSpecificData");varWN="1.22.2";functionkKe(t){lete=[];for(let[r,s]oft){leti=s?`${r}/${s}`:r;e.push(i)}returne.join(" ")}o(kKe,"getUserAgentString");functionohe(){returnihe()}o(ohe,"getUserAgentHeaderName");asyncfunctionKN(t){lete=newMap;e.set("core-rest-pipeline",WN),awaitnhe(e);letr=kKe(e);returnt?`${t}${r}`:r}o(KN,"getUserAgentValue");varahe=ohe(),che="userAgentPolicy";functionxU(t={}){lete=KN(t.userAgentPrefix);return{name:che,asyncsendRequest(r,s){returnr.headers.has(ahe)||r.headers.set(ahe,awaite),s(r)}}}o(xU,"userAgentPolicy");varro=classextendsError{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionNU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};returnnewPromise((n,a)=>{functionc(){a(newro(i??"The operation was aborted."))}o(c,"rejectOnAbort");functionl(){s?.removeEventListener("abort",u)}o(l,"removeListeners");functionu(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)returnc();try{t(h=>{l(),n(h)},h=>{l(),a(h)})}catch(h){a(h)}s?.addEventListener("abort",u)})}o(NU,"createAbortablePromise");varqKe="The delay was aborted.";functionDI(t,e){letr,{abortSignal:s,abortErrorMsg:i}=e??{};returnNU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:i??qKe})}o(DI,"delay");functionld(t){if(Yf(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}`}}o(ld,"getErrorMessage");functionlhe(t){returnYf(t)}o(lhe,"isError");functionog(){returnJf()}o(og,"randomUUID");varRt=Xf;varuhe=Symbol("rawContent");functionvU(t){returntypeoft[uhe]=="function"}o(vU,"hasRawContent");functionhhe(t){returnvU(t)?t[uhe]():t}o(hhe,"getRawContent");varXN=OI;functionTU(){lett=$N();return{name:XN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(letsofe.multipartBody.parts)vU(s.body)&&(s.body=hhe(s.body));returnt.sendRequest(e,r)},"sendRequest")}}o(TU,"multipartPolicy");var_U=xN;functionQU(){returnNN()}o(QU,"decompressResponsePolicy");fun
`&&t[n]!=="\r";n++)l+=t[n];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),n--),!h7e(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",Lr("InvalidTag",d,Pi(t,n))}let u=o7e(t,n);if(u===!1)return Lr("InvalidAttr","Attributes for '"+l+"' have open quote.",Pi(t,n));let h=u.value;if(n=u.index,h[h.length-1]==="/"){let d=n-h.length;h=h.substring(0,h.length-1);let f=Whe(h,e);if(f===!0)s=!0;else return Lr(f.err.code,f.err.msg,Pi(t,d+f.err.line))}else if(c)if(u.tagClosed){if(h.trim().length>0)return Lr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Pi(t,a));if(r.length===0)return Lr("InvalidTag","Closing tag '"+l+"' has not been opened.",Pi(t,a));{let d=r.pop();if(l!==d.tagName){let f=Pi(t,d.tagStartPos);return Lr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",Pi(t,a))}r.length==0&&(i=!0)}}else return Lr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Pi(t,n));else{let d=Whe(h,e);if(d!==!0)return Lr(d.err.code,d.err.msg,Pi(t,n-h.length+d.err.line));if(i===!0)return Lr("InvalidXml","Multiple possible root nodes found.",Pi(t,n));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=Yhe(t,n);continue}else if(t[n+1]==="?"){if(n=Jhe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let d=l7e(t,n);if(d==-1)return Lr("InvalidChar","char '&' is not expected.",Pi(t,n));n=d}else if(i===!0&&!jhe(t[n]))return Lr("InvalidXml","Extra text at the end",Pi(t,n));t[n]==="<"&&n--}}else{if(jhe(t[n]))continue;return Lr("InvalidChar","char '"+t[n]+"' is not expected.",Pi(t,n))}if(s){if(r.length==1)return Lr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pi(t,r[0].tagStartPos));if(r.length>0)return Lr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Lr("InvalidXml","Start tag expected.",1);return!0}o(hR,"validate");function jhe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(jhe,"isWhiteSpace");function Jhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Lr("InvalidXml","XML declaration allowed only at the start of the document.",Pi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Jhe,"readPI");function Yhe(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}o(Yhe,"readCommentAndCDATA");var i7e='"',n7e="'";function o7e(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===i7e||t[e]===n7e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}o(o7e,"readAttributeStr");var a7e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Whe(t,e){let r=lR(t,a7e),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Lr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",jI(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Lr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",jI(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Lr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",jI(r[i]));let n=r[i][2];if(!u7e(n))return Lr("InvalidAttr","Attribute '"+n+"' is an invalid name.",jI(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Lr("InvalidAttr","Attribute '"+n+"' is repeated.",jI(r[i]))}return!0}o(Whe,"validateAttributeString");function c7e(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}o(c7e,"validateNumberAmpersand");function l7e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,c7e(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}o(l7e,"validateAmpersand");function Lr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Lr,"getErrorObject");function u7e(t){return sq(t)}o(u7e,"validateAttrName");function h7e(t){return sq(t)}o(h7e,"validateTagName");function Pi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Pi,"getLineNumberForPosition");function jI(t){return t.startIndex+t[1].length}o(jI,"getPositionFromMatch");var Khe={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"},Xhe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new gn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new WI(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let h=dg(t,">",c,"ClosingTagisnotclosed."),d=t.substring(c+2,h).trim();if(i.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=hq(i.transformTagName,d,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);f&&i.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=h}else if(u===63){let h=dq(t,c,!1,"?>");if(!h)throw new Error("PiTagisnotclosed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(h.tagExp,this.matcher,h.tagName,!0);if(d){let f=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),n.setXmlVersion(Number(f)||1)}if(!(i.ignoreDeclaration&&h.tagName==="?xml"||i.ignorePiTags)){let f=new gn(h.tagName);f.add(i.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&i.ignoreAttributes!==!0&&(f[":@"]=d),this.addChild(r,f,this.readonlyMatcher,c)}c=h.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let h=dg(t,"-->",c+4,"Commentisnotclosed.");if(i.commentPropName){let d=t.substring(c+4,h-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:d}])}c=h}else if(u===33&&t.charCodeAt(c+2)===68){let h=n.readDocType(t,c);this.entityDecoder.addInputEntities(h.entities),c=h.i}else if(u===33&&t.charCodeAt(c+2)===91){let h=dg(t,"]]>",c,"CDATAisnotclosed.")-2,d=t.substring(c+9,h);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let f=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:d}]):r.add(i.textNodeName,f),c=h+2}else{let h=dq(t,c,i.removeNSPrefix);if(!h){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=h.tagName,f=h.rawTagName,p=h.tagExp,A=h.attrExpPresent,m=h.closeIndex;if({tagName:d,tagExp:p}=hq(i.transformTagName,d,p,i),i.strictReservedNames&&(d===i.commentPropName||d===i.cdataPropName||d===i.textNodeName||d===i.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&i.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),A=d!==p);let I=null,S={},x;x=O7e(f),d!==e.tagname&&this.matcher.push(d,{},x),d!==p&&A&&(I=this.buildAttributesMap(p,this.matcher,d),I&&(S=P7e(I,i))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=h.closeIndex;else if(i.unpairedTagsSet.has(d))c=h.closeIndex;else{let M=this.readStopNodeData(t,f,m+1);if(!M)throw new Error(`Unexpected end of ${f}`);c=M.i,D=M.tagContent}let O=new gn(d);I&&(O[":@"]=I),O.add(i.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,O,this.readonlyMatcher,R)}else{if(E){({tagName:d,tagExp:p}=hq(i.transformTagName,d,p,i));let D=new gn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(d)){let D=new gn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=h.closeIndex;continue}else{let D=new gn(d);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),r=D}s="",c=m}}}else s+=t[c];return e.child},"parseXml"
${c}:${decodeURIComponent(n[c])}`}returns}};varIr=classextendsap{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewt0(e,r,this)}computeHMACSHA256(e){return(0,vde.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varos=Pc("storage-common");varJo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Jo||(Jo={}));varAd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},fZe=newro("The operation was aborted."),r0=classextendsMc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Ad){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Ad.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Ad.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Ad.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Ad.maxRetryDelayInMs):Ad.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Ad.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Ad.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,s){leti=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=wR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=pd(i.url,bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(os.info(`RetryPolicy: =====> Try=${s}${n?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,a))returna;r=r||!n&&a.status===404}catch(c){if(os.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(n,s,a,c))throwc}returnawaitthis.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)returnos.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;letn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(letaofn)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)returnos.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||i){leta=s?s.status:i?i.statusCode:0;if(!e&&a===404)returnos.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnos.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){leta=s.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returni?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(os.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,s){leti=0;if(e)switch(this.retryOptions.retryPolicyType){caseJo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseJo.FIXED:i=this.retryOptions.retryDelayInMs;break}elsei=Math.random()*1e3;returnos.info(`RetryPolicy: Delay for ${i}ms`),xR(i,s,fZe)}};vars0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewr0(e,r,this.retryOptions)}};varpZe="storageBrowserPolicy";functionTde(){return{name:pZe,asyncsendRequest(t,e){returnRt||((t.method==="GET"||t.method==="HEAD")&&(t.url=pd(t.url,bu.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(Tde,"storageBrowserPolicy");varAZe="StorageCorrectContentLengthPolicy";function_de(){functiont(e){e.body&&(
`}),c}o(s,"getCanonicalizedHeadersString");function i(n){let a=SR(n.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=BR(n.url),u={};if(l){let h=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let f=d.toLowerCase();u[f]=l[d],h.push(f)}h.sort();for(let d of h)c+=`
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:newYa(t.version,n,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}}o(Btt,"generateBlobSASQueryParameters20150405");functionxtt(t,e){if(t=mp(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(xtt,"generateBlobSASQueryParameters20181109");functionNtt(t,e){if(t=mp(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,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:n}}o(Ntt,"generateBlobSASQueryParameters20201206");functionRtt(t,e){if(t=mp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,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:n}}o(Rtt,"generateBlobSASQueryParametersUDK20181109");functionvtt(t,e){if(t=mp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,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:n}}o(vtt,"generateBlobSASQueryParametersUDK20200210");functionTtt(t,e){if(t=mp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,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:n}}o(Ttt,"generateBlobSASQueryParametersUDK20201206");function_tt(t,e){if(t=mp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));leti;t.permissions&&(t.blobName?i=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());letn=[i||"",t.startsOn?vt(t.startsOn,!1):"",t.expiresOn?vt(t.expiresOn,!1):"",Ap(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:newYa(t.version,a,i,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:n}}o(_tt,"generateBlobSASQueryParametersUDK20250705");functionAp(t,e,r){lets=[`/blob/${t}/${e}`];returnr&&s.push(`/${r}`),s.join("")}o(Ap,"getCanonicalName");functionmp(t){lete=t.version?t.version:TR;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}o(mp,"SASSignatureValuesSanityCheckAndAutofill");varm0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){lets=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=og()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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.");returnSe.withSpan("BlobLeaseClient-acquireLease",r,asyncs=>Re(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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.");returnSe.withSpan("BlobLeaseClient-changeLease",r,asyncs=>{leti=Re(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));returnthis._leaseId=e,i})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};xg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Cp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Cp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var x0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Rrt=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},p8=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);H(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function $pe(t,e,r){return Rrt(this,void 0,void 0,function*(){var s;let i=new _u(t),n=i.getBlockBlobClient(),a=new p8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),Q(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield n.uploadFile(e,c);if(l._response.status>=400)throw new Dv(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw kt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o($pe,"uploadCacheArchiveSDK");var Jpe=k(require("buffer"),1),sl=k(require("fs"),1),Ype=k(require("stream"),1),Wpe=k(require("util"),1);var kv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Lv(t){return t?t>=200&&t<300:!1}o(Lv,"isSuccessStatusCode");function vrt(t){return t?t>=500:!0}o(vrt,"isServerErrorStatusCode");function Trt(t){return t?[Cr.BadGateway,Cr.ServiceUnavailable,Cr.GatewayTimeout].includes(t):!1}o(Trt,"isRetryableStatusCode");function _rt(t){return kv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(_rt,"sleep");function jpe(t,e,r){return kv(this,arguments,void 0,function*(s,i,n,a=cN,c=lN,l=void 0){let u="",h=1;for(;h<=a;){let d,f,p=!1;try{d=yield i()}catch(A){l&&(d=l(A)),p=!0,u=A.message}if(d&&(f=n(d),!vrt(f)))return d;if(f&&(p=Trt(f),u=`Cache service responded with ${f}`),Q(`${s} - Attempt ${h} of ${a} failed with error: ${u}`),!p){Q(`${s} - Error is not retryable`);break}yield _rt(c),h++}throw Error(`${s} failed: ${u}`)})}o(jpe,"retry");function N0(t,e){return kv(this,arguments,void 0,function*(r,s,i=cN,n=lN){return yield jpe(r,s,a=>a.statusCode,i,n,a=>{if(a instanceof vc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(N0,"retryTypedResponse");function Ng(t,e){return kv(this,arguments,void 0,function*(r,s,i=cN,n=lN){return yield jpe(r,s,a=>a.message.statusCode,i,n)})}o(Ng,"retryHttpClientResponse");var Zo=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a
Othercacheswithsimilarkey:`);for(let c of n?.artifactCaches||[])Q(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(Frt,"printCachesListForDiagnostics");function y8(t,e,r){return In(this,void 0,void 0,function*(){let s=new oAe.URL(t),i=eAe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Xpe(t,e,i):i.concurrentBlobDownloads?yield Kpe(t,e,i):yield Fv(t,e):yield Fv(t,e)})}o(y8,"downloadCache");function cAe(t,e,r){return In(this,void 0,void 0,function*(){let s=g8(),i=Km(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield N0("reserveCache",()=>In(this,void 0,void 0,function*(){return s.postJson(v0("caches"),n)}))})}o(cAe,"reserveCache");function nAe(t,e){return`bytes${t}-${e}/*`}o(nAe,"getContentRange");function Urt(t,e,r,s,i){return In(this,void 0,void 0,function*(){Q(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${nAe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":nAe(s,i)},a=yield Ng(`uploadChunk (start: ${s}, end: ${i})`,()=>In(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Lv(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Urt,"uploadChunk");function qrt(t,e,r,s){return In(this,void 0,void 0,function*(){let i=Rc(r),n=v0(`caches/${e.toString()}`),a=Rg.openSync(r,"r"),c=A8(s),l=HF("uploadConcurrency",c.uploadConcurrency),u=HF("uploadChunkSize",c.uploadChunkSize),h=[...new Array(l).keys()];Q("Awaiting all uploads");let d=0;try{yield Promise.all(h.map(()=>In(this,void 0,void 0,function*(){for(;d<i;){let f=Math.min(i-d,u),p=d,A=d+f-1;d+=u,yield Urt(t,n,()=>Rg.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),p,A)}})))}finally{Rg.closeSync(a)}})}o(qrt,"uploadFile");function Grt(t,e,r){return In(this,void 0,void 0,function*(){let s={size:r};return yield N0("commitCache",()=>In(this,void 0,void 0,function*(){return t.postJson(v0(`caches/${e.toString()}`),s)}))})}o(Grt,"commitCache");function E8(t,e,r,s){return In(this,void 0,void 0,function*(){if(A8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,s)}else{let n=g8();Q("Upload cache"),yield qrt(n,t,e,s),Q("Commiting cache");let a=Rc(e);H(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Grt(n,t,a);if(!Lv(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);H("Cache saved successfully")}})}o(E8,"saveCache");var rme=k(YAe(),1),qr=k(Ur(),1),co=k(Ur(),1),Bp=k(Ur(),1),xp=k(Ur(),1),Np=k(Ur(),1);var fz=k(Ur(),1),pz=k(Ur(),1),ZAe=k(Ur(),1),eme=k(Ur(),1),tme=k(Ur(),1);var uz=k(Ur(),1),hz=k(Ur(),1),WAe=k(Ur(),1),KAe=k(Ur(),1),XAe=k(Ur(),1);var dz=class extends XAe.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,KAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,WAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let h=e.skip(l);u!==!1&&(u===!0?hz.UnknownFieldHandler.onRead:u)(this.typeName,n,c,l,h)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,uz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,uz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?hz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},xT=new dz;var Az=class extends tme.Mess
`));let s=yield Tz(r,"create");yield _z(s,t)})}o(Pz,"createTar");var Vg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Xa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},zg=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},TT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ome(t){if(!t||t.length===0)throw new Xa("Path Validation Error: At least one directory or file path is required")}o(ome,"checkPaths");function Oz(t){if(t.length>512)throw new Xa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Xa(`Key Validation Error: ${t} cannot contain commas.`)}o(Oz,"checkKey");function Dz(){return R0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Dz,"isFeatureAvailable");function ame(t,e,r,s){return Vg(this,arguments,void 0,function*(i,n,a,c,l=!1){let u=R0();return Q(`Cache service version: ${u}`),ome(i),u==="v2"?yield snt(i,n,a,c,l):yield rnt(i,n,a,c,l)})}o(ame,"restoreCache");function rnt(t,e,r,s){return Vg(this,arguments,void 0,function*(i,n,a,c,l=!1){a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Xa("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)Oz(f);let h=yield xI(),d="";try{let f=yield aAe(u,i,{compressionMethod:h,enableCrossOsArchive:l});if(!f?.archiveLocation)return;if(c?.lookupOnly)return H("Lookup only - skipping download"),f.cacheKey;d=V0.join(yield SI(),od(h)),Q(`Archive Path: ${d}`),yield y8(f.archiveLocation,d,c),fu()&&(yield z0(d,h));let p=Rc(d);return H(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Qz(d,h),H("Cache restored successfully"),f.cacheKey}catch(f){let p=f;if(p.name===Xa.name)throw f;p instanceof vc&&typeof p.statusCode=="number"&&p.statusCode>=500?Fm(`Failed to restore: ${f.message}`):kt(`Failed to restore: ${f.message}`)}finally{try{yield BI(d)}catch(f){Q(`Failed to delete archive: ${f}`)}}})}o(rnt,"restoreCacheV1");function snt(t,e,r,s){return Vg(this,arguments,void 0,function*(i,n,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Xa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)Oz(d);let h="";try{let d=vz(),f=yield xI(),p={key:n,restoreKeys:a,version:Km(i,f,l)},A=yield d.GetCacheEntryDownloadURL(p);if(!A.ok){Q(`Cache not found for version ${p.version} of keys: ${u.join(", ")}`);return}if(p.key!==A.matchedKey?H(`Cache hit for restore-key: ${A.matchedKey}`):H(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return H("Lookup only - skipping download"),A.matchedKey;h=V0.join(yield SI(),od(f)),Q(`Archive path: ${h}`),Q(`Starting download of archive to: ${h}`),yield y8(A.signedDownloadUrl,h,c);let C=Rc(h);return H(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),fu()&&(yield z0(h,f)),yield Qz(h,f),H("Cache restored successfully"),A.matchedKey}catch(d){let f=d;if(f.name===Xa.name)throw d;f instanceof vc&&typeof f.statusCode=="number"&&f.statusCode>=500?Fm(`Failed to restore: ${d.message}`):kt(`Failed to restore: ${d.message}`)}finally{try{h&&(yield BI(h))}catch(d){Q(`Failed to delete archive: ${d}`)}}})}o(snt,"restoreCacheV2");function kz(t,e,r){return Vg(this,arguments,void 0,function*(s,i,n,a=!1){let c=R0();return Q(`Cache service version: ${c}`),ome(s),Oz(i),c==="v2"?yield nnt(s,i,n,a):yield int(s,i,n,a)})}o(kz,"saveCache");function int(t,e,r){return Vg(this,arguments,void 0,fu
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return f<p},"__needMoreData"),parse:o(function(s,i,n,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:h,ltrim:d,max_record_size:f,raw:p,relax_quotes:A,rtrim:m,skip_empty_lines:C,to:E,to_line:I}=this.options,{comment:S,escape:x,quote:R,record_delimiter:D}=this.options,{bomSkipped:O,previousBuf:M,rawBuffer:V,escapeIsQuote:ee}=this.state,U;if(M===void 0)if(s===void 0){a();return}else U=s;else M!==void 0&&s===void 0?U=M:U=Buffer.concat([M,s]);if(O===!1)if(c===!1)this.state.bomSkipped=!0;else if(U.length<3){if(i===!1){this.state.previousBuf=U;return}}else{for(let j in oy)if(oy[j].compare(U,0,oy[j].length)===0){let se=oy[j].length;this.state.bufBytesStart+=se,U=U.slice(se);let Qe=n3({...this.original_options,encoding:j});for(let we in Qe)this.options[we]=Qe[we];({comment:S,escape:x,quote:R}=this.options);break}this.state.bomSkipped=!0}let q=U.length,z;for(z=0;z<q&&!this.__needMoreData(z,q,i);z++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(U,z)&&(D=this.options.record_delimiter);let j=U[z];if(p===!0&&V.append(j),(j===vht||j===Tht)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(U,z,j)&&z+x.length<q)if(ee){if(this.__isQuote(U,z+x.length)){this.state.escaping=!0,z+=x.length-1;continue}}else{this.state.escaping=!0,z+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,z))if(this.state.quoting===!0){let we=U[z+R.length],le=m&&this.__isCharTrimable(U,z+R.length),ct=S!==null&&this.__compareBytes(S,U,z+R.length,we),et=this.__isDelimiter(U,z+R.length,we),bt=D.length===0?this.__autoDiscoverRecordDelimiter(U,z+R.length):this.__isRecordDelimiter(we,U,z+R.length);if(x!==null&&this.__isEscape(U,z,j)&&this.__isQuote(U,z+x.length))z+=x.length-1;else if(!we||et||bt||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,z+=R.length-1;continue}else if(A===!1){let De=this.__error(new yt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(we)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(De!==void 0)return De}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),z+=R.length-1}else if(this.state.field.length!==0){if(A===!1){let we=this.__infoField(),le=Object.keys(oy).map(et=>oy[et].equals(this.state.field.toString())?et:!1).filter(Boolean)[0],ct=this.__error(new yt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(we.column)} at line ${we.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,z+=R.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(j,U,z);if(we!==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)>=h){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),z+=we-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=we-1;continue}this.info.bytes=this.state.bufBytesStart+z;let et=this.__onField();if(et!==void 0)return et;this.info.bytes=this.state.bufBytesStart+z+we;let bt=this.__onRecord(n);if(bt!==void 0)return bt;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=we-1;continue}if(this.state.commenting)continue;if(S!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(S,U,z,j)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(U,z,
`)}o(bdt,"_buildMessageForResponseErrors");var wdt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(bdt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Sdt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Bdt=["query","method","url"],sIe=/\/api\/v3\/?$/;function xdt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Bdt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((a,c)=>Sdt.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return sIe.test(n)&&(i.url=n.replace(sIe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new wdt(i,c,a.data)}return a.data.data})}o(xdt,"graphql");function y3(t,e){let r=t.defaults(e);return Object.assign(o((i,n)=>xdt(r,i,n),"newApi"),{defaults:y3.bind(null,r),endpoint:r.endpoint})}o(y3,"withDefaults");var Hcr=y3(mb,{headers:{"user-agent":`octokit-graphql.js/${Idt} ${Nd()}`},method:"POST",url:"/graphql"});function iIe(t){return y3(t,{method:"POST",url:"/graphql"})}o(iIe,"withCustomRequest");var E3="(?:[a-zA-Z0-9_-]+)",nIe="\\.",oIe=new RegExp(`^${E3}${nIe}${E3}${nIe}${E3}$`),Ndt=oIe.test.bind(oIe);async function Rdt(t){let e=Ndt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(Rdt,"auth");function vdt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(vdt,"withAuthorizationPrefix");async function Tdt(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=vdt(t),e(i)}o(Tdt,"hook");var aIe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Rdt.bind(null,e),{hook:Tdt.bind(null,e)})},"createTokenAuth2");var C3="7.0.6";var cIe=o(()=>{},"noop"),_dt=console.warn.bind(console),Qdt=console.error.bind(console);function Pdt(t={}){return typeof t.debug!="function"&&(t.debug=cIe),typeof t.info!="function"&&(t.info=cIe),typeof t.warn!="function"&&(t.warn=_dt),typeof t.error!="function"&&(t.error=Qdt),t}o(Pdt,"createLogger");var lIe=`octokit-core.js/${C3} ${Nd()}`,G_=class{static{o(this,"Octokit")}static VERSION=C3;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new kCe.Collection,s={baseUrl:mb.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${lIe}`:lIe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=mb.defaults(s),this.graphql=iIe(this.request).defaults(s),this.log=Pdt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...a}=e,c=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=aIe(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let m of a)if(m.remote||m.path.endsWith(u)&&m.content===h){c.push({title:d,message:f,file:m.path,startLine:p}),A=!0;break}A||Q(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};var vd=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new It}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),s=await ve.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(Q(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(Q(`Builder.exists error: ${i}`),!1));return Q(`Builder.exists: ${s}`),s}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),s=["inspect"];e&&s.push(e);let i=await this.buildx.getCommand(s);return await ve.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return t.parseInspect(n.stdout)})}static parseInspect(e){let r={nodes:[]},s,i={},n,a,c;for(let l of e.trim().split(`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}returna&&i.devices&&i.devices.push(a),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};varMp=k(require("fs"),1),Q3=k(require("path"),1);var$_=classt{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||newIt,this.iidFilename=`build-iidfile-${Bt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Bt.generateRandomString()}.json`}asyncgitContext(e){letr=newSet(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([p])=>!r.has(p)),n=Bt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||qi.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Bt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;letc=`${Mt.serverURL}/${qi.repo.owner}/${qi.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,h=e?.format;if(!h){if(h="fragment",i.length>0)h="query";elseif(Bt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{awaitthis.buildx.versionSatisfies(">=0.29.0")&&(h="query")}catch{}}letd=qi.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(d=typeofqi.payload.pull_request?.head?.sha=="string"?qi.payload.pull_request.head.sha:a);letf=l||d;if(h==="query"){letp=[`ref=${n||l?a:f}`],A=n?f:l;A&&p.push(`checksum=${A}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[m,C]ofi)p.push(`${m}=${C}`);return`${c}?${p.join("&")}`}return`${c}#${f}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){returnQ3.default.join(St.tmpDir(),this.iidFilename)}resolveImageID(){lete=this.getImageIDFilePath();if(Mp.default.existsSync(e))returnMp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){returnQ3.default.join(St.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!Mp.default.existsSync(e))return;letr=Mp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"ine)returne["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"ine)returne["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"ine)returne["containerimage.digest"]}staticresolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}staticresolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}staticresolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}staticresolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Mp.default.existsSync(i))thrownewError(`secret file ${i} not found`);return[s,i]}letn=St.tmpName({tmpdir:St.tmpDir()});returnMp.default.writeFileSync(n,i),[s,n]}staticgetProvenanceInput(e){letr=ri(e);if(!r)returnr;try{returnGf(e)?`builder-id=${Mt.workflowRunURL(!0)}`:"false"}catch{returnt.resolveProvenanceAttrs(r)}}staticresolveProvenanceAttrs(e){if(!e)return`builder-id=${Mt.workflowRunURL(!0)}`;letr=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letsofr)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")returne;return`${e},builder-id=${Mt.workflowRunURL(!0)}`}staticresolveCacheToAttrs(e,r){if(!e)returne;lets="registry",i="",n="",a=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letcofa){letl=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(n=l[1])}returns==="gha"&&(i||(e=`${e},repository=${Mt.repository}`),!n&&r&&(e=`${e},ghtoken=${r}`)),e}statichasLocalExporter(e){returnt.hasExporterType("local",e)}statichasTarExporter(e){returnt.hasExporterType("tar",e)}statichasDockerExporter(e,r){returnr||t.hasExporterType("docker",e)}statichasExporterType(e,r){lets=po(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letiofs){if(i.length==1&&!i[0].startsWith("type="))returne=="local";for(let[n,a]ofi.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0}return!1}statichasAttestationType(e,r){lets=po(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letiofs)for(let[n,a]ofi.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0;return!1}staticresolveAttestationAttrs(e){letr=po(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(letiofr)for(letnofi)try{leta=Bt.parseBool(n);s.push(`disabled=${!a}`)}catch{s.push(n)}returns.join(",")}statichasGitAuthTokenSecret(e,r){for(letsofe){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}staticparseSecretKvp(e,r){lets=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)thrownewError(`${e} is not a valid secret`);returnr&&bc(n),[i,n]}};varP3=k(require("fs"),1),EIe=k(require("path"),1);varj_=classt{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||newIt,this.metadataFilename=`bake-metadata-${Bt.generateRandomString()}.json`}getMetadataFilePath(){returnEIe.default.join(St.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!P3.default.existsSync(e))return;letr=P3.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;letr=newArray;for(letsine)"buildx.build.ref"ine[s]&&r.push(e[s]["buildx.build.ref"]);returnr.length>0?r:void0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}asyncgetDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});lets=["bake"],i,n=[],a=[...e.files||[],e.source];if(a){for(letlofa.map(u=>u?u.trim():""))if(l.length!=0){if(!Bt.isValidRef(l)){n.push(l);continue}if(i)thrownewError("Only one remote bake definition can be defined");i=l}}i&&s.push(i);for(letlofn)s.push("--file",l);if(e.overrides)for(letlofe.overrides)s.push("--set",l);if(e.vars)for(letlofe.vars)s.push("--var",l);if(e.allow)for(letlofe.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);letc=awaitthis.buildx.getCommand([...s,"--print",...e.targets||[]]);returnawaitve.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)thrownewError(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);returnt.parseDefinition(l.stdout.trim())})}staticparseDefinition(e){letr=JSON.parse(e);for(letsinr.target){leti=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}returnr}staticparseAttestEntry(e){if(typeofe!="string")returne;letr={type:""},s=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letiofs){let[n,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(n){case"type":r.type=a;break;case"disabled":r.disabled=Bt.parseBool(a);break;default:r[n]=a}}returnr}staticparseCacheEntry(e){if(typeofe!="string")returne;letr={type:""},s=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))returnr.type="registry",r.ref=s[0],r;for(letiofs){let[n,a]=i.toString().