varkUe=Object.create;varOB=Object.defineProperty;varPUe=Object.getOwnPropertyDescriptor;varOUe=Object.getOwnPropertyNames;varLUe=Object.getPrototypeOf,MUe=Object.prototype.hasOwnProperty;varo=(t,e)=>OB(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FUe=(t,e)=>{for(varrine)OB(t,r,{get:e[r],enumerable:!0})},UUe=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofOUe(e))!MUe.call(t,i)&&i!==r&&OB(t,i,{get:()=>e[i],enumerable:!(n=PUe(e,i))||n.enumerable});returnt};varT=(t,e,r)=>(r=t!=null?kUe(LUe(t)):{},UUe(e||!t||!t.__esModule?OB(r,"default",{value:t,enumerable:!0}):r,t));varOX=g(VA=>{"use strict";varj8t=require("net"),$Ue=require("tls"),NO=require("http"),QX=require("https"),jUe=require("events"),W8t=require("assert"),WUe=require("util");VA.httpOverHttp=JUe;VA.httpsOverHttp=YUe;VA.httpOverHttps=KUe;VA.httpsOverHttps=XUe;functionJUe(t){vare=newJl(t);returne.request=NO.request,e}o(JUe,"httpOverHttp");functionYUe(t){vare=newJl(t);returne.request=NO.request,e.createSocket=kX,e.defaultPort=443,e}o(YUe,"httpsOverHttp");functionKUe(t){vare=newJl(t);returne.request=QX.request,e}o(KUe,"httpOverHttps");functionXUe(t){vare=newJl(t);returne.request=QX.request,e.createSocket=kX,e.defaultPort=443,e}o(XUe,"httpsOverHttps");functionJl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||NO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(varc=PX(i,s,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(Jl,"TunnelingAgent");WUe.inherits(Jl,jUe.EventEmitter);Jl.prototype.addRequest=o(function(e,r,n,i){vars=this,a=_O({request:e},s.options,PX(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){s.emit("free",c,a)}o(l,"onFree");functionu(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Jl.prototype.createSocket=o(function(e,r){varn=this,i={};n.sockets.push(i);vars=_O({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+newBuffer(s.proxyAuth).toString("base64")),dd("making CONNECT request");vara=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(f){f.upgrade=!0}o(c,"onResponse");functionl(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");functionu(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){dd("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();varm=newError("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}if(p.length>0){dd("got illegal response body from proxy"),h.destroy();varm=newError("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}returndd("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");functiond(f){a.removeAllListeners(),dd(`tunneling socket could not be established, cause=%s
`);h.push(A),s+=A.byteLength,m&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(Hee(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(MC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:m4e(t)}if((typeof i=="string"||MC.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!jee(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(Yee,"extractBody");function _4e(t,e=!1){return t instanceof ReadableStream&&(QL(!MC.isDisturbed(t),"The body has already been consumed."),QL(!t.locked,"The stream is locked.")),Yee(t,e)}o(_4e,"safelyExtractBody");function R4e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(R4e,"cloneBody");function T4e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(T4e,"throwIfAborted");function D4e(t){return{blob(){return sm(this,r=>{let n=Vee(this);return n===null?n="":n&&(n=x4e(n)),new I4e([r],{type:n})},t)},arrayBuffer(){return sm(this,r=>new Uint8Array(r).buffer,t)},text(){return sm(this,$ee,t)},json(){return sm(this,k4e,t)},formData(){return sm(this,r=>{let n=Vee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=v4e(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new zee;return s[om]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new zee;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returnsm(this,r=>newUint8Array(r),t)}}}o(D4e,"bodyMixinMethods");functionQ4e(t){Object.assign(t.prototype,D4e(t))}o(Q4e,"mixinBody");asyncfunctionsm(t,e,r){if(w4e.brandCheck(t,r),Kee(t))thrownewTypeError("Body is unusable: Body has already been read");T4e(t[om]);letn=E4e(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");returnt[om].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(awaitC4e(t[om].body,s,i),n.promise)}o(sm,"consumeBody");functionKee(t){lete=t[om].body;returne!=null&&(e.stream.locked||MC.isDisturbed(e.stream))}o(Kee,"bodyUnusable");functionk4e(t){returnJSON.parse($ee(t))}o(k4e,"parseJSONFromBytes");functionVee(t){lete=t[om].headersList,r=b4e(e);returnr==="failure"?null:r}o(Vee,"bodyMimeType");Xee.exports={extractBody:Yee,safelyExtractBody:_4e,cloneBody:R4e,mixinBody:Q4e,streamRegistry:Jee,hasFinalizationRegistry:Wee,bodyUnusable:Kee}});varpte=g((qzt,hte)=>{"use strict";var_e=require("node:assert"),De=st(),{channels:Zee}=WA(),PL=mL(),{RequestContentLengthMismatchError:ch,ResponseContentLengthMismatchError:ete,RequestAbortedError:cte,InvalidArgumentError:P4e,HeadersTimeoutError:O4e,HeadersOverflowError:L4e,SocketError:cm,InformationalError:lm,BodyTimeoutError:M4e,HTTPParserError:F4e,ResponseExceededMaxSizeError:U4e}=xt(),{kUrl:lte,kReset:ts,kClient:Ax,kParser:Yt,kBlocking:qC,kRunning:en,kPending:ute,kSize:tte,kWriting:hd,kQueue:Ea,kNoRef:FC,kKeepAliveDefaultTimeout:q4e,kHostHeader:G4e,kPendingIdx:H4e,kRunningIdx:yo,kError:xi,kPipelining:mx,kSocket:uh,kKeepAliveTimeoutValue:yx,kMaxHeadersSize:OL,kKeepAliveMaxTimeout:z4e,kKeepAliveTimeoutThreshold:V4e,kHeadersTimeout:$4e,kBodyTimeout:j4e,kStrictContentLength:FL,kMaxRequests:rte,kCounter:W4e,kMaxResponseSize:J4e,kOnError:nte,kResume:tu,kHTTPContext:dte}=lr(),Ts=JZ(),ite=Buffer.alloc(0),fx=Buffer[Symbol.species],hx=De.addListener,Y4e=De.removeAllListeners,dh=Symbol("kIdleSocketValidation"),lh=Symbol("kIdleSocketValidationTimeout"),HL=Symbol("kSocketUsed"),LL;asyn
`}return Zee.sendHeaders.hasSubscribers&&Zee.sendHeaders.publish({request:e,headers:A,socket:p}),!l||h===0?ote(m,null,t,e,p,d,A,f):De.isBuffer(l)?ote(m,l,t,e,p,d,A,f):De.isBlobLike(l)?typeof l.stream=="function"?ate(m,l.stream(),t,e,p,d,A,f):s5e(m,l,t,e,p,d,A,f):De.isStream(l)?i5e(m,l,t,e,p,d,A,f):De.isIterable(l)?ate(m,l,t,e,p,d,A,f):_e(!1),!0}o(n5e,"writeH1");function i5e(t,e,r,n,i,s,a,c){_e(s!==0||r[en]===0,"stream body cannot be pipelined");let l=!1,u=new Ex({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(A){De.destroy(this,A)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let m=new cte;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,_e(i.destroyed||i[hd]&&r[en]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?De.destroy(e,m):De.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(i5e,"writeStream");function ote(t,e,r,n,i,s,a,c){try{e?De.isBuffer(e)&&(_e(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length:${s}\r
`,"latin1"):(_e(s===null,"no body must not have content length"),i.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[tu]()}catch(l){t(l)}}o(ote,"writeBuffer");async function s5e(t,e,r,n,i,s,a,c){_e(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new ch;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length:${s}\r
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[ts]=!0),r[tu]()}catch(l){t(l)}}o(s5e,"writeBlob");async function ate(t,e,r,n,i,s,a,c){_e(s!==0||r[en]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{_e(l===null),i[xi]?p(i[xi]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new Ex({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[xi])throw i[xi];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(ate,"writeIterable");var Ex=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[hd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[xi])throw r[xi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[FL])throw new ch;process.emitWarning(new ch)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[ts]=!0),i===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(n[FL])throw new ch;process.emitWarning(new ch)}e[Yt].timeout&&e[Yt].timeoutType===um&&e[Yt].timeout.refresh&&e[Yt].timeout.refresh(),n[tu]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[hd]=!1,e&&(_e(n[en]<=1,"pipeline should only contain this request"),i(e))}};hte.exports=Z4e});var wte=g((Hzt,bte)=>{"use strict";var Eo=require("node:assert"),{pipeline:o5e}=require("node:stream"),dt=st(),{RequestContentLengthMismatchError:zL,RequestAbortedError:Ate,SocketError:GC,InformationalError:VL}=xt(),{kUrl:Cx,kReset:wx,kClient:dm,kRunning:Ix,kPending:a5e,kQueue:pd,kPendingIdx:$L,kRunningIdx:Ca,kError:wa,kSocket:vn,kStrictContentLength:c5e,kOnError:jL,kMaxConcurrentStreams:Cte,kHTTP2Session:ba,kResume:Ad,kSize:l5e,kHTTPContext:u5e}=lr(),ru=Symbol("open streams"),mte,gte=!1,bx;try{bx=require("node:http2")}catch{bx={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:d5e,HTTP2_HEADER_METHOD:f5e,HTTP2_HEADER_PATH:h5e,HTTP2_HEADER_SCHEME:p5e,HTTP2_HEADER_CONTENT_LENGTH:A5e,HTTP2_HEADER_EXPECT:m5e,HTTP2_HEADER_STATUS:g5e}}=bx;function y5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(y5e,"parseH2Headers");async function E5e(t,e){t[vn]=e,gte||(gte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=bx.connect(t[Cx],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Cte]});r[ru]=0,r[dm]=t,r[vn]=e,dt.addListener(r,"error",b5e),dt.addListener(r,"frameError",w5e),dt.addListener(r,"end",I5e),dt.addListener(r,"goaway",S5e),dt.addListener(r,"close",function(){let{[dm]:i}=this,{[vn]:s}=i,a=this[vn][wa]||this[wa]||new GC("closed",dt.getSocketInfo(s));if(i[ba]=null,i.destroyed){Eo(i[a5e]===0);let c=i[pd].splice(i[Ca]);for(let l=0;l<c.length;l++){let u=c[l];dt.errorRequest(i,u,a)}}}),r.unref(),t[ba]=r,e[ba]=r,dt.addListener(e,"error",function(i){Eo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wa]=i,this[dm][jL](i)}),dt.addListener(e,"end",function(){dt.destroy(this,new GC("other side closed",dt.getSocketInfo(this)))}),dt.addListener(e,"close",function(){let i=this[wa]||new GC("closed",dt.getSocketInfo(this));t[vn]=null,this[ba]!=null&&this[ba].destroy(i),t[$L]=t[Ca],Eo(t[Ix]===0),t.emit("disconnect",t[Cx],[t],i),t[Ad]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return x5e(t,...i)},resume(){C5e(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(E5e,"connectH2");function C5e(t){let e=t[vn];e?.destroyed===!1&&(t[l5e]===0&&t[Cte]===0?(e.unref(),t[ba].unref()):(e.ref(),t[ba].ref()))}o(C5e,"resumeH2");function b5e(t){Eo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][wa]=t,this[dm][jL](t)}o(b5e,"onHttp2SessionError");function w5e(t,e,r){if(r===0){let n=new VL(`HTTP/2:"frameError"received-type${t},code${e}`);this[vn][wa]=n,this[dm][jL](n)}}o(w5e,"onHttp2FrameError");function I5e(){let t=new GC("other side closed",dt.getSocketInfo(this[vn]));this.destroy(t),dt.destroy(this[vn],t)}o(I5e,"onHttp2SessionEnd");function S5e(t){let e=this[wa]||new GC(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,dt.getSocketInfo(this)),r=this[dm];if(r[vn]=null,r[u5e]=null,this[ba]!=null&&(this[ba].destroy(e),this[ba]=null),dt.destroy(this[vn],e),r[Ca]<r[pd].length){let n=r[pd][r[Ca]];r[pd][r[Ca]++]=null,dt.errorRequest(r,n,e),r[$L]=r[Ca]}Eo(r[Ix]===0),r.emit("disconnect",r[Cx],[r],e),r[Ad]()}o(S5e,"onHTTP2GoAway");function B5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(B5e,"shouldSendContentLength");function x5e(t,e){let r=t[ba],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return dt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let k=u[B+0],F=u[B+1];if(Array.isArray(F))for(let N=0;N<F.length;N++)f[k]?f[k]+=`,${F[N]}`:f[k]=F[N];else f[k]=F}let h,{hostname:p,port:m}=t[Cx];f[d5
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newSrt.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){returnthis.isSecureEndpoint(e)?Brt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){leti={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),cinstanceofshe.Agent)try{returnc.addRequest(e,i)}catch(l){returnn(l)}this[xc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){lete=this[xc].currentSocket;if(this[xc].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[xc].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[xc]&&(this[xc].defaultPort=e)}getprotocol(){returnthis[xc].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[xc]&&(this[xc].protocol=e)}};$s.Agent=i3});varlhe=g(lg=>{"use strict";varxrt=lg&&lg.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(lg,"__esModule",{value:!0});lg.parseProxyResponse=void0;varvrt=xrt(Wv()),Jv=(0,vrt.default)("https-proxy-agent:parse-proxy-response");functionNrt(t){returnnewPromise((e,r)=>{letn=0,i=[];functions(){letd=t.read();d?u(d):t.once("readable",s)}o(s,"read");functiona(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");functionc(){a(),Jv("onend"),r(newError("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");functionl(d){a(),Jv("onerror %o",d),r(d)}o(l,"onerror");functionu(d){i.push(d),n+=d.length;letf=Buffer.concat(i,n),h=f.indexOf(`\r
`);let{connect:u,buffered:d}=awaitl;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)returne.once("socket",Ort),r.secureEndpoint?(d0("Upgrading socket connection to TLS"),uhe.connect({...fhe(dhe(r),"host","path","port"),socket:i})):i;i.destroy();letf=newYv.Socket({writable:!1});returnf.readable=!0,e.once("socket",h=>{d0("Replaying proxy buffer for failed request"),(0,Trt.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};Kv.protocols=["http","https"];ko.HttpsProxyAgent=Kv;functionOrt(t){t.resume()}o(Ort,"resume");functionfhe(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}o(fhe,"omit")});varyhe=g(ls=>{"use strict";varLrt=ls&&ls.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Mrt=ls&&ls.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mhe=ls&&ls.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Lrt(e,t,r);returnMrt(e,t),e};Object.defineProperty(ls,"__esModule",{value:!0});ls.req=ls.json=ls.toBuffer=void0;varFrt=mhe(require("http")),Urt=mhe(require("https"));asyncfunctionghe(t){lete=0,r=[];forawait(letnoft)e+=n.length,r.push(n);returnBuffer.concat(r,e)}o(ghe,"toBuffer");ls.toBuffer=ghe;asyncfunctionqrt(t){letr=(awaitghe(t)).toString("utf8");try{returnJSON.parse(r)}catch(n){leti=n;throwi.message+=` (input: ${r})`,i}}o(qrt,"json");ls.json=qrt;functionGrt(t,e={}){letn=((typeoft=="string"?t:t.href).startsWith("https:")?Urt:Frt).request(t,e),i=newPromise((s,a)=>{n.once("response",s).once("error",a).end()});returnn.then=i.then.bind(i),n}o(Grt,"req");ls.req=Grt});varwhe=g(js=>{"use strict";varChe=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Hrt=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bhe=js&&js.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Che(e,t,r);returnHrt(e,t),e},zrt=js&&js.__exportStar||function(t,e){for(varrint)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Che(e,t,r)};Object.defineProperty(js,"__esModule",{value:!0});js.Agent=void0;varVrt=bhe(require("net")),Ehe=bhe(require("http")),$rt=require("https");zrt(yhe(),js);varvc=Symbol("AgentBaseInternalState"),s3=classextendsEhe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[vc]={}}isSecureEndpoint(e){if(e){if(typeofe.secureEndpoint=="boolean")returne.secureEndpoint;if(typeofe.protocol=="string")returne.protocol==="https:"}let{stack:r}=newError;returntypeofr!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)returnnull;this.sockets[e]||(this.sockets[e]=[]);letr=newVrt.Socket({writable:!1});returnthis.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;letn=this.sockets[e],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&deletethis.sockets[e])}getName(e){return(typeofe.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?$rt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){leti={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),cinstanceofEhe.Agent)returnc.addRequest(e,i);this[vc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){lete=this[vc].currentSocket;if(this[vc].currentSocket=void0,!e)thrownewError("No socket was returned in the `connect()` function");returne}getdefaultPort(){returnthis[vc].defaultPort??(this.protocol==="https:"?443:80)}setdefaultPort(e){this[vc]&&(this[vc].defaultPort=e)}getprotocol(){returnthis[vc].protocol??(this.isSecureEndpoint()?"https:":"http:")}setprotocol(e){this[vc]&&(this[vc].protocol=e)}};js.Agent=s3});varBhe=g(Po=>{"use strict";varjrt=Po&&Po.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Wrt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),She=Po&&Po.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&jrt(e,t,r);returnWrt(e,t),e},Jrt=Po&&Po.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void0;varYrt=She(require("net")),Krt=She(require("tls")),Xrt=Jrt(Wv()),Zrt=require("events"),ent=whe(),Ihe=require("url"),ug=(0,Xrt.default)("http-proxy-agent"),Xv=classextendsent.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeofe=="string"?newIhe.URL(e):e,this.proxyHeaders=r?.headers??{},ug("Creating new HttpProxyAgent instance: %o",this.proxy.href);letn=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?tnt(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=newIhe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);letl=typeofthis.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){letu=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(letuofObject.keys(l)){letd=l[u];d&&e.setHeader(u,d)}}asyncconnect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);letn,i;ug("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(ug("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
`)+4,e.outputData[0].data=e._header+n.substring(i),ug("Output buffer: %o",e.outputData[0].data));lets;returnthis.proxy.protocol==="https:"?(ug("Creating `tls.Socket`: %o",this.connectOpts),s=Krt.connect(this.connectOpts)):(ug("Creating `net.Socket`: %o",this.connectOpts),s=Yrt.connect(this.connectOpts)),await(0,Zrt.once)(s,"connect"),s}};Xv.protocols=["http","https"];Po.HttpProxyAgent=Xv;functiontnt(t,...e){letr={},n;for(nint)e.includes(n)||(r[n]=t[n]);returnr}o(tnt,"omit")});varjhe=g(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.state=void0;fN.state={instrumenterImplementation:void0}});varupe=g(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.state=void0;gN.state={operationRequestMap:newWeakMap}});varGme=g(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});varbct=require("os"),wct=require("util");functionIct(t){returnt&&typeoft=="object"&&"default"int?t:{default:t}}o(Ict,"_interopDefaultLegacy");varSct=Ict(wct);functionBct(t,...e){process.stderr.write(`${Sct.default.format(t,...e)}${bct.EOL}`)}o(Bct,"log");varDme=typeofprocess<"u"&&process.env&&process.env.DEBUG||void0,kme,LH=[],MH=[],O_=[];Dme&&FH(Dme);varPme=Object.assign(t=>Ome(t),{enable:FH,enabled:UH,disable:xct,log:Bct});functionFH(t){kme=t,LH=[],MH=[];lete=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(letnofr)n.startsWith("-")?MH.push(newRegExp(`^${n.substr(1)}$`)):LH.push(newRegExp(`^${n}$`));for(letnofO_)n.enabled=UH(n.namespace)}o(FH,"enable");functionUH(t){if(t.endsWith("*"))return!0;for(leteofMH)if(e.test(t))return!1;for(leteofLH)if(e.test(t))return!0;return!1}o(UH,"enabled");functionxct(){lett=kme||"";returnFH(""),t}o(xct,"disable");functionOme(t){lete=Object.assign(r,{enabled:UH(t),destroy:vct,log:Pme.log,namespace:t,extend:Nct});functionr(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}returno(r,"debug"),O_.push(e),e}o(Ome,"createDebugger");functionvct(){lett=O_.indexOf(this);returnt>=0?(O_.splice(t,1),!0):!1}o(vct,"destroy");functionNct(t){lete=Ome(`${this.namespace}:${t}`);returne.log=this.log,e}o(Nct,"extend");varX0=Pme,Lme=newSet,k_=typeofprocess<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void0,L_,M_=X0("azure");M_.log=(...t)=>{X0.log(...t)};varqH=["verbose","info","warning","error"];k_&&(qme(k_)?Mme(k_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${k_}'; logging is not enabled. Acceptable values: ${qH.join(", ")}.`));functionMme(t){if(t&&!qme(t))thrownewError(`Unknown log level '${t}'. Acceptable values: ${qH.join(",")}`);L_=t;lete=[];for(letrofLme)Ume(r)&&e.push(r.namespace);X0.enable(e.join(","))}o(Mme,"setLogLevel");function_ct(){returnL_}o(_ct,"getLogLevel");varQme={verbose:400,info:300,warning:200,error:100};functionRct(t){lete=M_.extend(t);returnFme(M_,e),{error:P_(e,"error"),warning:P_(e,"warning"),info:P_(e,"info"),verbose:P_(e,"verbose")}}o(Rct,"createClientLogger");functionFme(t,e){e.log=(...r)=>{t.log(...r)}}o(Fme,"patchLogMethod");functionP_(t,e){letr=Object.assign(t.extend(e),{level:e});if(Fme(t,r),Ume(r)){letn=X0.disable();X0.enable(n+","+r.namespace)}returnLme.add(r),r}o(P_,"createLogger");functionUme(t){return!!(L_&&Qme[t.level]<=Qme[L_])}o(Ume,"shouldEnable");functionqme(t){returnqH.includes(t)}o(qme,"isAzureLogLevel");Ng.AzureLogger=M_;Ng.createClientLogger=Rct;Ng.getLogLevel=_ct;Ng.setLogLevel=Mme});varzH=g(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});var_g=newWeakMap,F_=newWeakMap,Z0=classt{static{o(this,"AbortSignal")}constructor(){this.onabort=null,_g.set(this,[]),F_.set(this,!1)}getaborted(){if(!F_.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");returnF_.get(this)}staticgetnone(){returnnewt}addEventListener(e,r){if(!_g.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");_g.get(this).push(r)}removeEventListener(e,r){if(!_g.has(this))thrownewTypeError("Expected `this` to be an instance of AbortSignal.");letn=_g.get(this),i=n.indexOf(r);i>-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Omt,"logUnexpecedPropertyAccessOnce");function Lmt(){Object.keys(yT).forEach(function(t){delete yT[t]})}o(Lmt,"resetLoggedProperties")});var CT=g(al=>{"usestrict";al.__esModule=!0;al.HandlebarsEnvironment=mV;function Fbe(t){return t&&t.__esModule?t:{default:t}}o(Fbe,"_interopRequireDefault");var Sp=fi(),Mmt=Wo(),pV=Fbe(Mmt),Fmt=uV(),Umt=Pbe(),qmt=fV(),ET=Fbe(qmt),Gmt=hV(),Hmt="4.7.10";al.VERSION=Hmt;var zmt=8;al.COMPILER_REVISION=zmt;var Vmt=7;al.LAST_COMPATIBLE_COMPILER_REVISION=Vmt;var $mt={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"};al.REVISION_CHANGES=$mt;var AV="[objectObject]";function mV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Fmt.registerDefaultHelpers(this),Umt.registerDefaultDecorators(this)}o(mV,"HandlebarsEnvironment");mV.prototype={constructor:mV,logger:ET.default,log:ET.default.log,registerHelper:o(function(e,r){if(Sp.toString.call(e)===AV){if(r)throw new pV.default("Argnotsupportedwithmultiplehelpers");Sp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Sp.toString.call(e)===AV)Sp.extend(this.partials,e);else{if(typeof r>"u")throw new pV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Sp.toString.call(e)===AV){if(r)throw new pV.default("Argnotsupportedwithmultipledecorators");Sp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Gmt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var jmt=ET.default.log;al.log=jmt;al.createFrame=Sp.createFrame;al.logger=ET.default});var qbe=g((bT,Ube)=>{"usestrict";bT.__esModule=!0;function gV(t){this.string=t}o(gV,"SafeString");gV.prototype.toString=gV.prototype.toHTML=function(){return""+this.string};bT.default=gV;Ube.exports=bT.default});var Gbe=g(yV=>{"usestrict";yV.__esModule=!0;yV.wrapHelper=Wmt;function Wmt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Wmt,"wrapHelper")});var jbe=g(nf=>{"usestrict";nf.__esModule=!0;nf.checkRevision=egt;nf.template=tgt;nf.wrapProgram=wT;nf.resolvePartial=rgt;nf.invokePartial=ngt;nf.noop=Vbe;function Jmt(t){return t&&t.__esModule?t:{default:t}}o(Jmt,"_interopRequireDefault");function Ymt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Ymt,"_interopRequireWildcard");var Kmt=fi(),Bp=Ymt(Kmt),Xmt=Wo(),$a=Jmt(Xmt),Tu=CT(),Hbe=uV(),Zmt=Gbe(),EV=hV();function egt(t){var e=t&&t[0]||1,r=Tu.COMPILER_REVISION;if(!(e>=Tu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Tu.COMPILER_REVISION))if(e<Tu.LAST_COMPATIBLE_COMPILER_REVISION){var n=Tu.REVISION_CHANGES[r],i=Tu.REVISION_CHANGES[e];throw new $a.default("TemplatewasprecompiledwithanolderversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourprecompilertoanewerversion("+n+")ordowngradeyourruntimetoanolderversion("+i+").")}else throw new $a.default("TemplatewasprecompiledwithanewerversionofHandlebarsthanthecurrentruntime.Pleaseupdateyourruntimetoanewerversion("+t[1]+").")}o(egt,"checkRevision");function tgt(t,e){if(!e)throw new $a.default("Noenvironmentpassedtotemplate");if(!t||!t.main)throw new $a.default("Unknowntemplateobject:"+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Bp.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
globstarwhile`,e,f,r,h,p),this.matchOne(e.slice(f),r.slice(h),n))return this.debug("globstar found match!",f,c,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
`,S);S=P===-1?I.length:P}elseif(R!==-1&&I[S]==="/"&&I[S+1]==="*"){letP=I.indexOf("*/",S);P!==-1?(S=P+2,R=I.indexOf("*/",S)):(b+=I[S],S++)}elseb+=I[S],S++;returnb}o(gC,"stripComments");functionfB(I){letb=gC(I.toString()),S=b.match(mO);if(S||(S=b.match(uB)),!S)thrownewError(`could not parse args in autoInject
`+b);let[,R]=S;returnR.replace(/\s/g,"").split(dB).map(P=>P.replace(mC,"").trim())}o(fB,"parseParams");functionFA(I,b){varS={};returnObject.keys(I).forEach(R=>{varP=I[R],L,U=p(P),H=!U&&P.length===1||U&&P.length===0;if(Array.isArray(P))L=[...P],P=L.pop(),S[R]=L.concat(L.length>0?W:P);elseif(H)S[R]=P;else{if(L=fB(P),P.length===0&&!U&&L.length===0)thrownewError("autoInject task functions require explicit parameters.");U||L.pop(),S[R]=L.concat(W)}functionW(we,gt){varvt=L.map(Ct=>we[Ct]);vt.push(gt),E(P)(...vt)}o(W,"newTask")}),AC(S,b)}o(FA,"autoInject");classhB{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){returnb.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();returnthis}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):yC(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):yC(this,b)}shift(){returnthis.head&&this.removeLink(this.head)}pop(){returnthis.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(varb=this.head;b;)yieldb.data,b=b.next}remove(b){for(varS=this.head;S;){var{next:R}=S;b(S)&&this.removeLink(S),S=R}returnthis}}functionyC(I,b){I.length=1,I.head=I.tail=b}o(yC,"setInitial");functionUA(I,b,S){if(b==null)b=1;elseif(b===0)thrownewRangeError("Concurrency must not be zero");varR=E(I),P=0,L=[];letU={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};functionH(Qe,be){U[Qe].push(be)}o(H,"on");functionW(Qe,be){letke=o((...bt)=>{we(Qe,ke),be(...bt)},"handleAndRemove");U[Qe].push(ke)}o(W,"once");functionwe(Qe,be){if(!Qe)returnObject.keys(U).forEach(ke=>U[ke]=[]);if(!be)returnU[Qe]=[];U[Qe]=U[Qe].filter(ke=>ke!==be)}o(we,"off");functiongt(Qe,...be){U[Qe].forEach(ke=>ke(...be))}o(gt,"trigger");varvt=!1;functionCt(Qe,be,ke,bt){if(bt!=null&&typeofbt!="function")thrownewError("task callback must be a function");Nt.started=!0;varcr,Bn;functionmo(nh,...BC){if(nh)returnke?Bn(nh):cr();if(BC.length<=1)returncr(BC[0]);cr(BC)}o(mo,"promiseCallback");varzA=Nt._createTaskItem(Qe,ke?mo:bt||mo);if(be?Nt._tasks.unshift(zA):Nt._tasks.push(zA),vt||(vt=!0,u(()=>{vt=!1,Nt.process()})),ke||!bt)returnnewPromise((nh,BC)=>{cr=nh,Bn=BC})}o(Ct,"_insert");functionAo(Qe){returnfunction(be,...ke){P-=1;for(varbt=0,cr=Qe.length;bt<cr;bt++){varBn=Qe[bt],mo=L.indexOf(Bn);mo===0?L.shift():mo>0&&L.splice(mo,1),Bn.callback(be,...ke),be!=null&>("error",be,Bn.data)}P<=Nt.concurrency-Nt.buffer&>("unsaturated"),Nt.idle()&>("drain"),Nt.process()}}o(Ao,"_createCB");functionHA(Qe){returnQe.length===0&&Nt.idle()?(u(()=>gt("drain")),!0):!1}o(HA,"_maybeDrain");letrh=o(Qe=>be=>{if(!be)returnnewPromise((ke,bt)=>{W(Qe,(cr,Bn)=>{if(cr)returnbt(cr);ke(Bn)})});we(Qe),H(Qe,be)},"eventMethod");varSC=!1,Nt={_tasks:newhB,_createTaskItem(Qe,be){return{data:Qe,callback:be}},*[Symbol.iterator](){yield*Nt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(Qe,be){returnArray.isArray(Qe)?HA(Qe)?void0:Qe.map(ke=>Ct(ke,!1,!1,be)):Ct(Qe,!1,!1,be)},pushAsync(Qe,be){returnArray.isArray(Qe)?HA(Qe)?void0:Qe.map(ke=>Ct(ke,!1,!0,be)):Ct(Qe,!1,!0,be)},kill(){we(),Nt._tasks.empty()},unshift(Qe,be){returnArray.isArray(Qe)?HA(Qe)?void0:Qe.map(ke=>Ct(ke,!0,!1,be)):Ct(Qe,!0,!1,be)},unshiftAsync(Qe,be){returnArray.isArray(Qe)?HA(Qe)?void0:Qe.map(ke=>Ct(ke,!0,!0,be)):Ct(Qe,!0,!0,be)},remove(Qe){Nt._tasks.remove(Qe)},process(){if(!SC){for(SC=!0;!Nt.paused&&P<Nt.concurrency&&Nt._tasks.length;){varQe=[],be=[],ke=Nt._tasks.length;Nt.payload&&(ke=Math.min(ke,Nt.payload));for(varbt=0;bt<ke;bt++){varcr=Nt._tasks.shift();Qe.push(cr),L.push(cr),be.push(cr.data)}P+=1,Nt._tasks.length===0&>("empty"),P===Nt.concurrency&>("saturated");varBn=oe(Ao(Qe));R(be,Bn)}SC=!1}},length(){returnNt._tasks.length},running(){ret
`;super(r),this.name="AggregateError",this.errors=e}};g$.exports={AggregateError:m$,kEmptyObject:Object.freeze({}),once(t){lete=!1;returnfunction(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){lett,e;return{promise:newPromise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){returnnewPromise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){returnfunction(){}},format(t,...e){returnt.replace(/%([sdifj])/g,function(...[r,n]){leti=e.shift();returnn==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeofi=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeoft){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}elsereturn`"${t}"`;return`'${t}'`;case"number":returnisNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":returnString(t);case"object":return"{}"}},types:{isAsyncFunction(t){returntinstanceofQSt},isArrayBufferView(t){returnArrayBuffer.isView(t)}},isBlob:kSt,deprecate(t,e){returnt},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void0)thrownewERR_INVALID_ARG_TYPE("signal","AbortSignal",e);E2e(e,"signal"),PSt(r,"listener");letn;returne.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[_St]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[RSt](){vari;(i=n)===null||i===void0||i()}}},"addAbortListener"),AbortSignalAny:TSt.any||o(function(e){if(e.length===1)returne[0];letr=newDSt,n=o(()=>r.abort(),"abort");returne.forEach(i=>{E2e(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};g$.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});varzi=g((lNr,w2e)=>{"use strict";var{format:OSt,inspect:$1,AggregateError:LSt}=Ai(),MSt=globalThis.AggregateError||LSt,FSt=Symbol("kIsNodeError"),USt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qSt=/^([A-Z][a-z0-9]*)+$/,GSt="__node_internal_",j1={};functionUp(t,e){if(!t)thrownewj1.ERR_INTERNAL_ASSERTION(e)}o(Up,"assert");functionC2e(t){lete="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(C2e,"addNumericalSeparator");functionHSt(t,e,r){if(typeofe=="function")returnUp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);letn=(e.match(/%[dfijoOs]/g)||[]).length;returnUp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:OSt(e,...r)}o(HSt,"getMessage");functionei(t,e,r){r||(r=Error);classnextendsr{static{o(this,"NodeError")}constructor(...s){super(HSt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[FSt]=!0,j1[t]=n}o(ei,"E");functionb2e(t){lete=GSt+t.name;returnObject.defineProperty(t,"name",{value:e}),t}o(b2e,"hideStackFrames");functionzSt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))returne.errors.push(t),e;letr=newMSt([e,t],e.message);returnr.code=e.code,r}returnt||e}o(zSt,"aggregateTwoErrors");vary$=classextendsError{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void0){if(r!==void0&&typeofr!="object")thrownewj1.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ei("ERR_ASSERTION","%s",Error);ei("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Up(typeoft=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);letn="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"proper
`)),e.linkname&&(r+=WW("linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=WW(""+i+"="+n[i]+`
`)}o($3t,"fromDER")});varWk=g(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.SHA2_HASH_ALGOS=jf.RSA_SIGNATURE_ALGOS=jf.ECDSA_SIGNATURE_ALGOS=void0;jf.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};jf.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};jf.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varE7=g(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.RFC3161TimestampVerificationError=void0;vary7=classextendsError{static{o(this,"RFC3161TimestampVerificationError")}};Jk.RFC3161TimestampVerificationError=y7});varALe=g(Pl=>{"use strict";varj3t=Pl&&Pl.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),W3t=Pl&&Pl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J3t=Pl&&Pl.__importStar||(function(){vart=o(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(variinr)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),i=0;i<n.length;i++)n[i]!=="default"&&j3t(r,e,n[i]);returnW3t(r,e),r}})();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.TSTInfo=void0;varpLe=J3t(jE()),Y3t=Wk(),K3t=E7(),C7=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnY3t.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=pLe.digest(this.messageImprintHashAlgorithm,e);if(!pLe.bufferEqual(r,this.messageImprintHashedMessage))thrownewK3t.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};Pl.TSTInfo=C7});vargLe=g(Ol=>{"use strict";varX3t=Ol&&Ol.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Z3t=Ol&&Ol.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eGt=Ol&&Ol.__importStar||(function(){vart=o(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(variinr)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),i=0;i<n.length;i++)n[i]!=="default"&&X3t(r,e,n[i]);returnZ3t(r,e),r}})();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.RFC3161Timestamp=void0;vartGt=Vk(),b7=eGt(jE()),mLe=Wk(),GS=E7(),rGt=ALe(),nGt="1.2.840.113549.1.7.2",iGt="1.2.840.113549.1.9.16.1.4",sGt="1.2.840.113549.1.9.4",w7=classt{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}staticparse(e){letr=tGt.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorith
`,B4t=/\u2014 (\S+) (\S+)\n/g;function x4t(t,e){let r=t.inclusionProof,n=X7.fromString(r.checkpoint.envelope),i=AP.fromString(n.note);if(!v4t(n,e))throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(x4t,"verifyCheckpoint");function v4t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>KLe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?KLe.crypto.verify(r,i.publicKey,n.signature):!1})}o(v4t,"verifySignedNote");var X7=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(K7))throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(K7),n=e.slice(0,r+1),s=e.slice(r+K7.length).matchAll(B4t),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},AP=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new eC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};jS.LogCheckpoint=AP});var ZLe=g(tK=>{"use strict";Object.defineProperty(tK,"__esModule",{value:!0});tK.verifyMerkleInclusion=R4t;var eK=ic(),mP=Ii(),N4t=Buffer.from([0]),_4t=Buffer.from([1]);function R4t(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new mP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new mP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:s,border:a}=T4t(n,i);if(r.hashes.length!==s+a)throw new mP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=L4t(t.canonicalizedBody),d=Q4t(D4t(u,c,n),l);if(!eK.crypto.bufferEqual(d,e.logHash))throw new mP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(R4t,"verifyMerkleInclusion");function T4t(t,e){let r=k4t(t,e),n=P4t(t>>BigInt(r));return{inner:r,border:n}}o(T4t,"decompInclProof");function D4t(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?Z7(i,n):Z7(n,i),t)}o(D4t,"chainInner");function Q4t(t,e){return e.reduce((r,n)=>Z7(n,r),t)}o(Q4t,"chainBorderRight");function k4t(t,e){return O4t(t^e-BigInt(1))}o(k4t,"innerProofSize");function P4t(t){return t.toString(2).split("1").length-1}o(P4t,"onesCount");function O4t(t){return t===0n?0:t.toString(2).length}o(O4t,"bitLength");function Z7(t,e){return eK.crypto.digest("sha256",_4t,t,e)}o(Z7,"hashChildren");function L4t(t){return eK.crypto.digest("sha256",N4t,t)}o(L4t,"hashLeaf")});var tMe=g(rK=>{"use strict";Object.defineProperty(rK,"__esModule",{value:!0});rK.verifyTLogSET=U4t;var eMe=ic(),M4t=Ii(),F4t=YE();function U4t(t,e){if(!(0,F4t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=q4t(t),a=Buffer.from(eMe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return eMe.crypto.verify(a,i.publicKey,c)}))throw new M4t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(U4t,"verifyTLogSET");function q4t(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(q4t,"toVerificationPayload")});var nMe=g(yP=>{"use strict";Object.defineProperty(yP,"__esModule",{value:!0});yP.verifyTLogBody=$4t;yP.verifyTLogInclusion=j4t;var rMe=jLe(),gP=Ii(),nK=WLe(),iK=JLe(),G4t=YLe(),H4t=XLe(),z4t=ZLe(),V4t=tMe();function $4t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new gP.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new gP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==nK.DSSE_API_VERSION_V1)return(0,nK.verifyDSSETLogBody)(i,e);{let s=rMe.Entry.fromJSON(i);return(0,nK.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,G4t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==iK.HASHEDREKORD_API_VERSION_V1)return(0,iK.verifyHashedRekordTLogBody)(i,e);{let s=rMe.Entry.fromJSON(i);return(0,iK.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new gP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o($4t,"verifyTLogBody");function j4t(t,e){let r=!1;if(W4t(t)&&((0,V4t.verifyTLogSET)(t,e),r=!0),J4t(t)){let n=(0,H4t.verifyCheckpoint)(t,e);(0,z4t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new gP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion c
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(W5t,"logUnexpecedPropertyAccessOnce");functionJ5t(){Object.keys(WP).forEach(function(t){deleteWP[t]})}o(J5t,"resetLoggedProperties")});varYP=g(zl=>{"use strict";zl.__esModule=!0;zl.HandlebarsEnvironment=xK;functionVMe(t){returnt&&t.__esModule?t:{default:t}}o(VMe,"_interopRequireDefault");varPA=Xi(),Y5t=po(),SK=VMe(Y5t),K5t=CK(),X5t=qMe(),Z5t=wK(),JP=VMe(Z5t),eHt=IK(),tHt="4.7.9";zl.VERSION=tHt;varrHt=8;zl.COMPILER_REVISION=rHt;varnHt=7;zl.LAST_COMPATIBLE_COMPILER_REVISION=nHt;variHt={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"};zl.REVISION_CHANGES=iHt;varBK="[object Object]";functionxK(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},K5t.registerDefaultHelpers(this),X5t.registerDefaultDecorators(this)}o(xK,"HandlebarsEnvironment");xK.prototype={constructor:xK,logger:JP.default,log:JP.default.log,registerHelper:o(function(e,r){if(PA.toString.call(e)===BK){if(r)thrownewSK.default("Arg not supported with multiple helpers");PA.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(PA.toString.call(e)===BK)PA.extend(this.partials,e);else{if(typeofr>"u")thrownewSK.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(PA.toString.call(e)===BK){if(r)thrownewSK.default("Arg not supported with multiple decorators");PA.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){eHt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};varsHt=JP.default.log;zl.log=sHt;zl.createFrame=PA.createFrame;zl.logger=JP.default});varjMe=g((KP,$Me)=>{"use strict";KP.__esModule=!0;functionvK(t){this.string=t}o(vK,"SafeString");vK.prototype.toString=vK.prototype.toHTML=function(){return""+this.string};KP.default=vK;$Me.exports=KP.default});varWMe=g(NK=>{"use strict";NK.__esModule=!0;NK.wrapHelper=oHt;functionoHt(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(oHt,"wrapHelper")});vareFe=g(Xf=>{"use strict";Xf.__esModule=!0;Xf.checkRevision=fHt;Xf.template=hHt;Xf.wrapProgram=XP;Xf.resolvePartial=pHt;Xf.invokePartial=AHt;Xf.noop=XMe;functionaHt(t){returnt&&t.__esModule?t:{default:t}}o(aHt,"_interopRequireDefault");functioncHt(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(cHt,"_interopRequireWildcard");varlHt=Xi(),uC=cHt(lHt),uHt=po(),cd=aHt(uHt),ld=YP(),JMe=CK(),dHt=WMe(),YMe=IK();functionfHt(t){vare=t&&t[0]||1,r=ld.COMPILER_REVISION;if(!(e>=ld.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ld.COMPILER_REVISION))if(e<ld.LAST_COMPATIBLE_COMPILER_REVISION){varn=ld.REVISION_CHANGES[r],i=ld.REVISION_CHANGES[e];thrownewcd.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}elsethrownewcd.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(fHt,"checkRevision");functionhHt(t,e){if(!e)thrownewcd.default("No environment passed to template");if(!t||!t.main)thrownewcd.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functionn(a,c,l){l.hash&&(c=uC.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
`)}return u}else throw new cd.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new cd.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||YMe.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:uC.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=XP(this,c,p,l,u,d,f):h||(h=this.programs[c]=XP(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=uC.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=mHt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=ZMe(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};KMe(c,e.helpers,i),KMe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=uC.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=YMe.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;JMe.moveHelperToHooks(i,"helperMissing",l),JMe.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new cd.default("must pass block params");if(t.useDepths&&!u)throw new cd.default("must pass parent depths");return XP(i,a,t[a],c,0,l,u)},s}o(hHt,"template");function XP(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=ZMe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(XP,"wrapProgram");function pHt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=ZP(r.partials,t)):r.name==="@partial-block"?t=ZP(r.data,"partial-block"):t=ZP(r.partials,r.name),t}o(pHt,"resolvePartial");function AHt(t,e,r){var n=ZP(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==XMe&&(function(){r.data=ld.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=ld.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=uC.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new cd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(AHt,"invokePartial");function XMe(){return""}o(XMe,"noop");function ZP(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(ZP,"lookupOwnProperty");function mHt(t,e){return(!e||!("root"in e))&&(e=e?ld.createFrame(e):{},e.root=t),e}o(mHt,"initData");function ZMe(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),uC.extend(e,a)}return e}o(ZMe,"executeDecorators");function KMe(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=gHt(i,r)})}o(KMe,"addHelpers");function gHt(t,e){var r=e.lookupProperty;return dHt
`+this.lexer.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ie="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ie,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:se})}}if(N[0]instanceofArray&&N.length>1)thrownewError("Parse Error: multiple actions possible at state: "+F+", token: "+B);switch(N[0]){case1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(N[1]),B=null,k?(B=k,k=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case2:if(j=this.productions_[N[1]][1],G.$=c[c.length-j],G._$={first_line:l[l.length-(j||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(j||1)].first_column,last_column:l[l.length-1].last_column},y&&(G._$.range=[l[l.length-(j||1)].range[0],l[l.length-1].range[1]]),Q=this.performAction.call(G,d,h,f,this.yy,N[1],c,l),typeofQ<"u")returnQ;j&&(a=a.slice(0,-1*j*2),c=c.slice(0,-1*j),l=l.slice(0,-1*j)),a.push(this.productions_[N[1]][0]),c.push(G.$),l.push(G._$),oe=u[a[a.length-2]][a[a.length-1]],a.push(oe);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);elsethrownewError(s)},"parseError"),setInput:o(function(s){returnthis._input=s,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(){vars=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;vara=s.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),s},"input"),unput:o(function(s){vara=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+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(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){vars=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){vars=this.match;returns.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){vars=this.pastInput(),a=newArray(s.length+1).join("-");returns+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vars,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(varf=this._currentRules(),h=0;h<f.length&&(c=this._input.match(this.rules[f[h]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=h,!this.options.flex)));h++);returna?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||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(){vars=this.next();returntypeofs<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"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(s){this.begin(s)},"begin")};returnn.options={},n.performAction=o(function(s,a,c,l){functionu(f,h){returna.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");vard=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;functionr(){this.yy={}}returno(r,"Parser"),r.prototype=t,t.Parser=r,newr})();nO.default=vHt;lFe.exports=nO.default});varaO=g((oO,hFe)=>{"use strict";oO.__esModule=!0;functionNHt(t){returnt&&t.__esModule?t:{default:t}}o(NHt,"_interopRequireDefault");var_Ht=po(),kK=NHt(_Ht);functioniO(){this.parents=[]}o(iO,"Visitor");iO.prototype={constructor:iO,mutating:!1,acceptKey:o(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!iO.prototype[n.type])thrownewkK.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new LA(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 LA?e:(e=HK(e,this,r),new LA(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"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,n=[];Object.keys(e).forEach(function(s){var a=HK(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(HK(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};uO.default=SFe;BFe.exports=uO.default});var TFe=g((dO,RFe)=>{"use strict";dO.__esModule=!0;function _Fe(t){return t&&t.__esModule?t:{default:t}}o(_Fe,"_interopRequireDefault");var vFe=YP(),a8t=po(),VK=_Fe(a8t),c8t=Xi(),l8t=xFe(),NFe=_Fe(l8t);function dC(t){this.value=t}o(dC,"Literal");function fC(){}o(fC,"JavaScriptCompiler");fC.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=vFe.COMPILER_REVISION,r=vFe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return c8t.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["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,n,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=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[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 VK.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(),`;
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(kh,"getBooleanInput");functionF2(t,e){if(process.env.GITHUB_OUTPUT||"")returnFB("OUTPUT",xO(t,e));process.stdout.write(mU.EOL),Wl("set-output",{name:t},jl(e))}o(F2,"setOutput");functionU2(t){process.exitCode=AU.Failure,_a(t)}o(U2,"setFailed");functionPh(){returnprocess.env.RUNNER_DEBUG==="1"}o(Ph,"isDebug");functionv(t){Wl("debug",{},t)}o(v,"debug");function_a(t,e={}){Wl("error",IO(e),tinstanceofError?t.toString():t)}o(_a,"error");functionxe(t,e={}){Wl("warning",IO(e),tinstanceofError?t.toString():t)}o(xe,"warning");functionD(t){process.stdout.write(t+mU.EOL)}o(D,"info");functionwWe(t){BO("group",t)}o(wWe,"startGroup");functionIWe(){BO("endgroup")}o(IWe,"endGroup");functionBr(t,e){returnbWe(this,void0,void0,function*(){wWe(t);letr;try{r=yielde()}finally{IWe()}returnr})}o(Br,"group");functionRa(t,e){if(process.env.GITHUB_STATE||"")returnFB("STATE",xO(t,e));Wl("save-state",{name:t},jl(e))}o(Ra,"saveState");functionDae(t){returnprocess.env[`STATE_${t}`]||""}o(Dae,"getState");varSw=T(require("fs"),1),Tz=T(require("os"),1),Dz=T(require("path"),1);varkae=T(require("os"),1);functionQb(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(Qb,"toCommandValue");functionPae(t,e,r){letn=newgU(t,e,r);process.stdout.write(n.toString()+kae.EOL)}o(Pae,"issueCommand");varQae="::",gU=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=Qae+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){leti=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${BWe(i)}`)}}returne+=`${Qae}${SWe(this.message)}`,e}};functionSWe(t){returnQb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(SWe,"escapeData");functionBWe(t){returnQb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(BWe,"escapeProperty");varFae=T(require("os"),1);varLae=require("os"),kb=require("fs");varyU=function(t,e,r,n){functioni(s){returnsinstanceofr?s:newr(function(a){a(s)})}returno(i,"adopt"),new(r||(r=Promise))(function(s,a){functionc(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");functionu(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:xWe,appendFile:vWe,writeFile:NWe}=kb.promises,Oae="GITHUB_STEP_SUMMARY";varEU=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returnyU(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[Oae];if(!e)thrownewError(`Unable to find environment variable for $${Oae}. Check if your runtime environment supports job summaries.`);try{yieldxWe(e,kb.constants.R_OK|kb.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){leti=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");returnr?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){returnyU(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?NWe:vWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnyU(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(Lae.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(i).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(i=>{lets=i.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let
`,"utf-8")],i=Ant(n);i&&t.headers.set("Content-Length",i),t.body=awaitPhe(n)}o(mnt,"buildRequestBody");varf0="multipartPolicy",gnt=70,ynt=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionEnt(t){if(t.length>gnt)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ynt.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}o(Ent,"assertValidBoundary");functionsN(){return{name:f0,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,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?Ent(r):r=fnt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),awaitmnt(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}o(sN,"multipartPolicy");functionoN(){return_v()}o(oN,"createEmptyPipeline");varOhe=xv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ztr=Ohe.logger;functionNc(t){returnOhe.createClientLogger(t)}o(Nc,"createClientLogger");var_c=Nc("core-rest-pipeline");functionf3(t={}){returnPv({logger:_c.info,...t})}o(f3,"logPolicy");varh3=Ov;functionp3(t={}){returnLv(t)}o(p3,"redirectPolicy");varaN=T(require("node:os"),1),cN=T(require("node:process"),1);functionLhe(){return"User-Agent"}o(Lhe,"getHeaderName");asyncfunctionMhe(t){if(cN.default&&cN.default.versions){lete=`${aN.default.type()}${aN.default.release()}; ${aN.default.arch()}`,r=cN.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(Mhe,"setPlatformSpecificData");varlN="1.22.2";functionvnt(t){lete=[];for(let[r,n]oft){leti=n?`${r}/${n}`:r;e.push(i)}returne.join(" ")}o(vnt,"getUserAgentString");functionFhe(){returnLhe()}o(Fhe,"getUserAgentHeaderName");asyncfunctionuN(t){lete=newMap;e.set("core-rest-pipeline",lN),awaitMhe(e);letr=vnt(e);returnt?`${t}${r}`:r}o(uN,"getUserAgentValue");varUhe=Fhe(),qhe="userAgentPolicy";functionA3(t={}){lete=uN(t.userAgentPrefix);return{name:qhe,asyncsendRequest(r,n){returnr.headers.has(Uhe)||r.headers.set(Uhe,awaite),n(r)}}}o(A3,"userAgentPolicy");varWs=classextendsError{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionm3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};returnnewPromise((s,a)=>{functionc(){a(newWs(i??"The operation was aborted."))}o(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",u)}o(l,"removeListeners");functionu(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)returnc();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(m3,"createAbortablePromise");varDnt="The delay was aborted.";functionh0(t,e){letr,{abortSignal:n,abortErrorMsg:i}=e??{};returnm3(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Dnt})}o(h0,"delay");functionqd(t){if(Hh(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(qd,"getErrorMessage");functionGhe(t){returnHh(t)}o(Ghe,"isError");functiondg(){returnGh()}o(dg,"randomUUID");varQt=$h;varHhe=Symbol("rawContent");functiony3(t){returntypeoft[Hhe]=="function"}o(y3,"hasRawContent");functionzhe(t){returny3(t)?t[Hhe]():t}o(zhe,"getRawContent");vardN=f0;functionE3(){lett=sN();return{name:dN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)y3(n.body)&&(n.body=zhe(n.body));returnt.sendRequest(e,r)},"sendRequest")}}o(E3,"multipartPolicy");varC3=Mv;functionb3(){returnFv()}o(b3,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!rst(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",Hr("InvalidTag",f,Oi(t,s))}let u=Kit(t,s);if(u===!1)return Hr("InvalidAttr","Attributes for '"+l+"' have open quote.",Oi(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=_pe(d,e);if(h===!0)n=!0;else return Hr(h.err.code,h.err.msg,Oi(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Hr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Oi(t,a));if(r.length===0)return Hr("InvalidTag","Closing tag '"+l+"' has not been opened.",Oi(t,a));{let f=r.pop();if(l!==f.tagName){let h=Oi(t,f.tagStartPos);return Hr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Oi(t,a))}r.length==0&&(i=!0)}}else return Hr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Oi(t,s));else{let f=_pe(d,e);if(f!==!0)return Hr(f.err.code,f.err.msg,Oi(t,s-d.length+f.err.line));if(i===!0)return Hr("InvalidXml","Multiple possible root nodes found.",Oi(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Npe(t,s);continue}else if(t[s+1]==="?"){if(s=vpe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=est(t,s);if(f==-1)return Hr("InvalidChar","char '&' is not expected.",Oi(t,s));s=f}else if(i===!0&&!xpe(t[s]))return Hr("InvalidXml","Extra text at the end",Oi(t,s));t[s]==="<"&&s--}}else{if(xpe(t[s]))continue;return Hr("InvalidChar","char '"+t[s]+"' is not expected.",Oi(t,s))}if(n){if(r.length==1)return Hr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Oi(t,r[0].tagStartPos));if(r.length>0)return Hr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Hr("InvalidXml","Start tag expected.",1);return!0}o(SN,"validate");function xpe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(xpe,"isWhiteSpace");function vpe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Hr("InvalidXml","XML declaration allowed only at the start of the document.",Oi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(vpe,"readPI");function Npe(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(Npe,"readCommentAndCDATA");var Jit='"',Yit="'";function Kit(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Jit||t[e]===Yit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(Kit,"readAttributeStr");var Xit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _pe(t,e){let r=wN(t,Xit),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Hr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",B0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Hr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",B0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Hr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",B0(r[i]));let s=r[i][2];if(!tst(s))return Hr("InvalidAttr","Attribute '"+s+"' is an invalid name.",B0(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return Hr("InvalidAttr","Attribute '"+s+"' is repeated.",B0(r[i]))}return!0}o(_pe,"validateAttributeString");function Zit(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(Zit,"validateNumberAmpersand");function est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Zit(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(est,"validateAmpersand");function Hr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Hr,"getErrorObject");function tst(t){return $3(t)}o(tst,"validateAttrName");function rst(t){return $3(t)}o(rst,"validateTagName");function Oi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Oi,"getLineNumberForPosition");function B0(t){return t.startIndex+t[1].length}o(B0,"getPositionFromMatch");var Rpe={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"},Tpe={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 ds("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new N0(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 d=gg(t,">",c,"ClosingTagisnotclosed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=eG(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=tG(t,c,!1,"?>");if(!d)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new ds(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=gg(t,"-->",c+4,"Commentisnotclosed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=gg(t,"]]>",c,"CDATAisnotclosed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=tG(t,c,i.removeNSPrefix);if(!d){let F=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${F}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,m=d.attrExpPresent,A=d.closeIndex;if({tagName:f,tagExp:p}=eG(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),m=f!==p);let C=null,w={},B;B=Bst(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&m&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(w=Sst(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let k=c;if(this.isCurrentNodeStopNode){let F="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let $=this.readStopNodeData(t,h,A+1);if(!$)throw new Error(`Unexpected end of ${h}`);c=$.i,F=$.tagContent}let N=new ds(f);C&&(N[":@"]=C),N.add(i.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,k)}else{if(y){({tagName:f,tagExp:p}=eG(i.transformTagName,f,p,i));let F=new ds(f);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let F=new ds(f);C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let F=new ds(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),C&&(F[":@"]=C),this.addChild(r,F,this.readonlyMatcher,k),r=F}n="",c=A}}}else n+=t[c];return e.child},"parseXml"
${c}:${decodeURIComponent(s[c])}`}returnn}};varvr=classextendsep{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewQ0(e,r,this)}computeHMACSHA256(e){return(0,cAe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varpn=Nc("storage-common");varOo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Oo||(Oo={}));varjd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Oo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},iot=newWs("The operation was aborted."),k0=classextendsQc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=jd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:jd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):jd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:jd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:jd.maxRetryDelayInMs):jd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:jd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:jd.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){leti=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=ON(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=$d(i.url,Cu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(pn.info(`RetryPolicy: =====> Try=${n}${s?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))returna;r=r||!s&&a.status===404}catch(c){if(pn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throwc}returnawaitthis.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)returnpn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;lets=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(letaofs)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)returnpn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){leta=n?n.status:i?i.statusCode:0;if(!e&&a===404)returnpn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnpn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Ge.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')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){leti=0;if(e)switch(this.retryOptions.retryPolicyType){caseOo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseOo.FIXED:i=this.retryOptions.retryDelayInMs;break}elsei=Math.random()*1e3;returnpn.info(`RetryPolicy: Delay for ${i}ms`),FN(i,n,iot)}};varP0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewk0(e,r,this.retryOptions)}};varsot="storageBrowserPolicy";functionlAe(){return{name:sot,asyncsendRequest(t,e){returnQt||((t.method==="GET"||t.method==="HEAD")&&(t.url=$d(t.url,Cu.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Ge.COOKIE),t.headers.delete(Ge.CONTENT_LENGTH)),e(t)}}}o(lAe,"storageBrowserPolicy");varoot="StorageCorrectContentLengthPolicy";functionuAe(){functiont(e){e.body&&(
`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=LN(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=MN(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=`
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:newUa(t.version,s,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(pct,"generateBlobSASQueryParameters20150405");functionAct(t,e){if(t=lp(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(Act,"generateBlobSASQueryParameters20181109");functionmct(t,e){if(t=lp(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(mct,"generateBlobSASQueryParameters20201206");functiongct(t,e){if(t=lp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(gct,"generateBlobSASQueryParametersUDK20181109");functionyct(t,e){if(t=lp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(yct,"generateBlobSASQueryParametersUDK20200210");functionEct(t,e){if(t=lp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(Ect,"generateBlobSASQueryParametersUDK20201206");functionCct(t,e){if(t=lp(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));leti;t.permissions&&(t.blobName?i=Yc.parse(t.permissions.toString()).toString():i=Kc.parse(t.permissions.toString()).toString());lets=[i||"",t.startsOn?kt(t.startsOn,!1):"",t.expiresOn?kt(t.expiresOn,!1):"",cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?kt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?kt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Fa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:newUa(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:s}}o(Cct,"generateBlobSASQueryParametersUDK20250705");functioncp(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}o(cp,"getCanonicalName");functionlp(t){lete=t.version?t.version:HN;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(lp,"SASSignatureValuesSanityCheckAndAutofill");varW0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=dg()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnEe.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>ve(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnEe.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{leti=ve(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.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"}};Tg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var hp=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"}};hp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var iw=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Rlt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},o8=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),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);D(`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 Bge(t,e,r){return Rlt(this,void 0,void 0,function*(){var n;let i=new qa(t),s=i.getBlockBlobClient(),a=new o8((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),v(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new W_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw xe(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(Bge,"uploadCacheArchiveSDK");var vge=T(require("buffer"),1),Xc=T(require("fs"),1),Nge=T(require("stream"),1),_ge=T(require("util"),1);var J_=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Y_(t){return t?t>=200&&t<300:!1}o(Y_,"isSuccessStatusCode");function Tlt(t){return t?t>=500:!0}o(Tlt,"isServerErrorStatusCode");function Dlt(t){return t?[xr.BadGateway,xr.ServiceUnavailable,xr.GatewayTimeout].includes(t):!1}o(Dlt,"isRetryableStatusCode");function Qlt(t){return J_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Qlt,"sleep");function xge(t,e,r){return J_(this,arguments,void 0,function*(n,i,s,a=Ev,c=Cv,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(m){l&&(f=l(m)),p=!0,u=m.message}if(f&&(h=s(f),!Tlt(h)))return f;if(h&&(p=Dlt(h),u=`Cache service responded with ${h}`),v(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){v(`${n} - Error is not retryable`);break}yield Qlt(c),d++}throw Error(`${n} failed: ${u}`)})}o(xge,"retry");function sw(t,e){return J_(this,arguments,void 0,function*(r,n,i=Ev,s=Cv){return yield xge(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof Sc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(sw,"retryTypedResponse");function Dg(t,e){return J_(this,arguments,void 0,function*(r,n,i=Ev,s=Cv){return yield xge(r,n,a=>a.message.statusCode,i,s)})}o(Dg,"retryHttpClientResponse");var qo=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a
Othercacheswithsimilarkey:`);for(let c of s?.artifactCaches||[])v(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(qlt,"printCachesListForDiagnostics");function d8(t,e,r){return As(this,void 0,void 0,function*(){let n=new Gge.URL(t),i=Qge(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Tge(t,e,i):i.concurrentBlobDownloads?yield Rge(t,e,i):yield X_(t,e):yield X_(t,e)})}o(d8,"downloadCache");function zge(t,e,r){return As(this,void 0,void 0,function*(){let n=u8(),i=rg(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield sw("reserveCache",()=>As(this,void 0,void 0,function*(){return n.postJson(aw("caches"),s)}))})}o(zge,"reserveCache");function qge(t,e){return`bytes${t}-${e}/*`}o(qge,"getContentRange");function Glt(t,e,r,n,i){return As(this,void 0,void 0,function*(){v(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${qge(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":qge(n,i)},a=yield Dg(`uploadChunk (start: ${n}, end: ${i})`,()=>As(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!Y_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Glt,"uploadChunk");function Hlt(t,e,r,n){return As(this,void 0,void 0,function*(){let i=Ic(r),s=aw(`caches/${e.toString()}`),a=Qg.openSync(r,"r"),c=a8(n),l=Qq("uploadConcurrency",c.uploadConcurrency),u=Qq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];v("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>As(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,m=f+h-1;f+=u,yield Glt(t,s,()=>Qg.createReadStream(r,{fd:a,start:p,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),p,m)}})))}finally{Qg.closeSync(a)}})}o(Hlt,"uploadFile");function zlt(t,e,r){return As(this,void 0,void 0,function*(){let n={size:r};return yield sw("commitCache",()=>As(this,void 0,void 0,function*(){return t.postJson(aw(`caches/${e.toString()}`),n)}))})}o(zlt,"commitCache");function f8(t,e,r,n){return As(this,void 0,void 0,function*(){if(a8(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bge(r,e,n)}else{let s=u8();v("Upload cache"),yield Hlt(s,t,e,n),v("Commiting cache");let a=Ic(e);D(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield zlt(s,t,a);if(!Y_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);D("Cache saved successfully")}})}o(f8,"saveCache");var Lye=T(nz(),1),$r=T(nt(),1),eo=T(nt(),1),yp=T(nt(),1),Ep=T(nt(),1),Cp=T(nt(),1);var az=T(nt(),1),cz=T(nt(),1),kye=T(nt(),1),Pye=T(nt(),1),Oye=T(nt(),1);var iz=T(nt(),1),sz=T(nt(),1),Tye=T(nt(),1),Dye=T(nt(),1),Qye=T(nt(),1);var oz=class extends Qye.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,Dye.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Tye.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?sz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,iz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,iz.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?sz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},FR=new oz;var lz=class extends Oye.Messa
`));let{commands:n}=yield Uye(r,"create");yield Gye(n,t)})}o(xz,"createTar");var Jg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},za=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bp=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},vz="cache write denied:",HR=class t extends bp{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},zye=bv,zR=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},VR=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Vye(t){if(!t||t.length===0)throw new za("Path Validation Error: At least one directory or file path is required")}o(Vye,"checkPaths");function Nz(t){if(t.length>512)throw new za(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new za(`Key Validation Error: ${t} cannot contain commas.`)}o(Nz,"checkKey");function _z(){return ow()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(_z,"isFeatureAvailable");function $ye(t,e,r,n){return Jg(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=ow();v(`Cache service version: ${u}`),Vye(i);let d=l8();if(!Pge(d)){D(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),v(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield sft(i,s,a,c,l):yield ift(i,s,a,c,l)})}o($ye,"restoreCache");function ift(t,e,r,n){return Jg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new za("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)Nz(p);let f=yield s0(),h="";try{let p;try{p=yield Hge(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(A){let E=(u=A?.message)!==null&&u!==void 0?u:"";throw E.includes(zye)?new zR(E):A}if(!p?.archiveLocation)return;if(c?.lookupOnly)return D("Lookup only - skipping download"),p.cacheKey;h=Iw.join(yield qh(),Md(f)),v(`Archive Path: ${h}`),yield d8(p.archiveLocation,h,c),Ph()&&(yield ww(h,f));let m=Ic(h);return D(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield Bz(h,f),D("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===za.name)throw p;m instanceof Sc&&typeof m.statusCode=="number"&&m.statusCode>=500?_a(`Failed to restore: ${p.message}`):xe(`Failed to restore: ${p.message}`)}finally{try{yield i0(h)}catch(p){v(`Failed to delete archive: ${p}`)}}})}o(ift,"restoreCacheV1");function sft(t,e,r,n){return Jg(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(v("Resolved Keys:"),v(JSON.stringify(d)),d.length>10)throw new za("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)Nz(h);let f="";try{let h=Iz(),p=yield s0(),m={key:s,restoreKeys:a,version:rg(i,p,l)},A;try{A=yield h.GetCacheEntryDownloadURL(m)}catch(C){let w=(u=C?.message)!==null&&u!==void 0?u:"";throw w.includes(zye)?new zR(w):C}if(!A.ok){v(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==A.matchedKey?D(`Cache hit for restore-key: ${A.matchedKey}`):D(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return D("Lookup only - skipping download"),A.matchedKey;f=Iw.join(yield qh(),Md(p)),v(`Archive path: ${f}`),v(`Starting download of archiv
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:m,relax_quotes:A,rtrim:E,skip_empty_lines:y,to:C,to_line:w}=this.options,{comment:B,escape:k,quote:F,record_delimiter:N}=this.options,{bomSkipped:$,delimiterDiscovered:Q,delimiterBufPrevious:G,rawBuffer:z,escapeIsQuote:j}=this.state;if(!Q&&u){let he;if(G===void 0?he=n:G!==void 0&&n===void 0?he=G:he=Buffer.concat([G,n]),n=void 0,i||he.length>u.size)this.options.delimiter=[Buffer.from(lwe(he,this.options.delimiter_auto))],this.state.previousBuf=he,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=he;return}}let{previousBuf:oe}=this.state,se;if(oe===void 0)if(n===void 0){a();return}else se=n;else oe!==void 0&&n===void 0?se=oe:se=Buffer.concat([oe,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(se.length<3){if(i===!1){this.state.previousBuf=se;return}}else{for(let he in hy)if(hy[he].compare(se,0,hy[he].length)===0){let Tt=hy[he].length;this.state.bufBytesStart+=Tt,se=se.slice(Tt);let yt=fy({...this.original_options,encoding:he});for(let or in yt)this.options[or]=yt[or];({comment:B,escape:k,quote:F}=this.options);break}this.state.bomSkipped=!0}let Ie=se.length,J;for(J=0;J<Ie&&!this.__needMoreData(J,Ie,i);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),w!==-1&&this.info.lines>w){this.state.stop=!0,a();return}this.state.quoting===!1&&N.length===0&&this.__autoDiscoverRecordDelimiter(se,J)&&(N=this.options.record_delimiter);let he=se[J];if(m===!0&&z.append(he),(he===Fyt||he===Uyt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(k!==null&&this.state.quoting===!0&&this.__isEscape(se,J,he)&&J+k.length<Ie)if(j){if(this.__isQuote(se,J+k.length)){this.state.escaping=!0,J+=k.length-1;continue}}else{this.state.escaping=!0,J+=k.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(se,J))if(this.state.quoting===!0){let or=se[J+F.length],ar=E&&this.__isCharTrimable(se,J+F.length),Zi=B!==null&&this.__compareBytes(B,se,J+F.length,or),Si=this.__isDelimiter(se,J+F.length,or),ac=N.length===0?this.__autoDiscoverRecordDelimiter(se,J+F.length):this.__isRecordDelimiter(or,se,J+F.length);if(k!==null&&this.__isEscape(se,J,he)&&this.__isQuote(se,J+k.length))J+=k.length-1;else if(!or||Si||ac||Zi||ar){this.state.quoting=!1,this.state.wasQuoting=!0,J+=F.length-1;continue}else if(A===!1){let eh=this.__error(new ct("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(or)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(eh!==void 0)return eh}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(F),J+=F.length-1}else if(this.state.field.length!==0){if(A===!1){let or=this.__infoField(),ar=Object.keys(hy).map(Si=>hy[Si].equals(this.state.field.toString())?Si:!1).filter(Boolean)[0],Zi=this.__error(new ct("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(or.column)} at line ${or.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,ar?`(${ar} bom)`:void 0],this.options,or,{field:this.state.field}));if(Zi!==void 0)return Zi}}else{this.state.quoting=!0,J+=F.length-1;continue}if(this.state.quoting===!1){let or=this.__isRecordDelimiter(he,se,J);if(or!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=or-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=or-1;continue}this.info.bytes=this.state.bufBytesStart+J;let Si=
${i}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var hIe=T(require("crypto"),1);var jT=require("fs"),mwe=require("os");var py=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,jT.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,jT.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${mwe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var c6=T(bwe(),1),wwe=T(Rh(),1);var Zyt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Iwe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Iwe,"getAuthString");function Swe(t){return new c6.HttpClient().getAgent(t)}o(Swe,"getProxyAgent");function eEt(t){return new c6.HttpClient().getAgentDispatcher(t)}o(eEt,"getProxyAgentDispatcher");function Bwe(t){let e=eEt(t);return o((n,i)=>Zyt(this,void 0,void 0,function*(){return(0,wwe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(Bwe,"getProxyFetch");function xwe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(xwe,"getApiBaseUrl");function l6(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(l6,"getUserAgentWithOrchestrationId");function af(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(af,"getUserAgent");function e1(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>e1.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(e1,"register");function vwe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>
`)}o(DEt,"_buildMessageForResponseErrors");var QEt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(DEt(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},kEt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],PEt=["query","method","url"],Zwe=/\/api\/v3\/?$/;function OEt(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(PEt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>kEt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Zwe.test(s)&&(i.url=s.replace(Zwe,"/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 QEt(i,c,a.data)}return a.data.data})}o(OEt,"graphql");function A6(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>OEt(r,i,s),"newApi"),{defaults:A6.bind(null,r),endpoint:r.endpoint})}o(A6,"withDefaults");var ESr=A6(Vw,{headers:{"user-agent":`octokit-graphql.js/${TEt} ${af()}`},method:"POST",url:"/graphql"});function eIe(t){return A6(t,{method:"POST",url:"/graphql"})}o(eIe,"withCustomRequest");var m6="(?:[a-zA-Z0-9_-]+)",tIe="\\.",rIe=new RegExp(`^${m6}${tIe}${m6}${tIe}${m6}$`),LEt=rIe.test.bind(rIe);async function MEt(t){let e=LEt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(MEt,"auth");function FEt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(FEt,"withAuthorizationPrefix");async function UEt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=FEt(t),e(i)}o(UEt,"hook");var nIe=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(MEt.bind(null,e),{hook:UEt.bind(null,e)})},"createTokenAuth2");var g6="7.0.6";var iIe=o(()=>{},"noop"),qEt=console.warn.bind(console),GEt=console.error.bind(console);function HEt(t={}){return typeof t.debug!="function"&&(t.debug=iIe),typeof t.info!="function"&&(t.info=iIe),typeof t.warn!="function"&&(t.warn=qEt),typeof t.error!="function"&&(t.error=GEt),t}o(HEt,"createLogger");var sIe=`octokit-core.js/${g6} ${af()}`,i1=class{static{o(this,"Octokit")}static VERSION=g6;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[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 Dwe.Collection,n={baseUrl:Vw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${sIe}`:sIe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Vw.defaults(n),this.graphql=eIe(this.request).defaults(n),this.log=HEt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(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 s=nIe(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:f,message:h,file:A.path,startLine:p}),m=!0;break}m||v(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var N6=T(require("fs"),1),_6=T(require("path"),1);var u1=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new pt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await Ne.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=_6.default.join(ht.tmpDir(),"export");D(`exporting build record to ${s}`),N6.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await ee.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:ee.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=_6.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await Ne.getExecOutput(u.command,u.args);let d=N6.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ke.context.repo.owner}~${Ke.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var cke=T(require("fs"),1),AJ=T(require("path"),1);var gIe=T(require("os"),1);function Pp(){return 8*1024*1024}o(Pp,"getUploadChunkSize");function d1(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(d1,"getRuntimeToken");function yIe(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}o(yIe,"getResultsServiceUrl");function gy(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),i=e.endsWith(".LOCALHOST");return!r&&!n&&!i}o(gy,"isGhes");function EIe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}o(EIe,"getGitHubWorkspaceDir");function CIe(){let t=gIe.default.cpus().length,e=32;if(t>4){let n=16*t;e=n>300?300:n}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let n=parseInt(r);if(isNaN(n)||n<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return n<e?(D("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),n):(D(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}o(CIe,"getConcurrency");function bIe(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}o(bIe,"getUploadChunkTimeout");function wIe(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}o(wIe,"getMaxArtifactListCount");var nQe=T(require("fs"),1),iQe=T(require("path"),1);var R6=T(nt(),1),T6=T(nt(),1),IIe=T(nt(),1),SIe=T(nt(),1),BIe=T(nt(),1),yy=T(nt(),1),xIe=T(nt(),1);var D6=class extends xIe.MessageType{static{o(this,"Timestamp$Type")}constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=yy.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(yy.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),n=e.getTime();return r.seconds=yy.PbLong.from(Math.floor(n/1e3)).toString(),r.nanos=n%1e3*1e6,r}internalJsonWrite(e,r){let n=yy.PbLong.from(e.seconds).toNumber()*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let i="Z";if(e.nanos>0){let s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?i="."+s.substring(0,3)+"Z":s.substring(6)==="000"?i="."+s.substring(0,6)+"Z":i="."+s+"Z"}return new Date(n).toISOString().replace(".000Z",i)}internalJsonRead(e,r,n){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,BIe.typeofJsonValue)(e)+".
`," Line feed \\n"]]),_Ie=new Map([...d9,["\\"," Backslash \\"],["/"," Forward slash /"]]);function RIe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of _Ie)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);D("Artifact name is valid!")}o(RIe,"validateArtifactName");function f9(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of d9)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}o(f9,"validateFilePath");var Yw=T(require("http"),1),m9=T(require("https"),1);function h9(t){let e=t.protocol==="https:";if(cCt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new h1(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new h1(`http://${r}`)}else return}o(h9,"getProxyUrl");function cCt(t){if(!t.hostname)return!1;let e=t.hostname;if(lCt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(cCt,"checkBypass");function lCt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(lCt,"isLoopbackAddress");var h1=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var lf=T($A(),1),TIe=T(Rh(),1);var Yr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},wn;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(wn||(wn={}));var Hi;(function(t){t.Accept="accept",t.ContentType="content-type"})(Hi||(Hi={}));var Ou;(function(t){t.ApplicationJson="application/json"})(Ou||(Ou={}));var dCt=[wn.MovedPermanently,wn.ResourceMoved,wn.SeeOther,wn.TemporaryRedirect,wn.PermanentRedirect],fCt=[wn.BadGateway,wn.ServiceUnavailable,wn.GatewayTimeout],hCt=["OPTIONS","GET","DELETE","HEAD"],pCt=10,ACt=5,p9=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},A9=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Yr(this,void 0,void 0,function*(){return new Promise(e=>Yr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Yr(this,void 0,void 0,function*(){return new Promise(e=>Yr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var Cy=class{static{o(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Mu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Op=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Op.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var A1=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function pl(){let t=d1(),e=c1(t);if(!e.scp)throw A1;let r=e.scp.split(" ");if(r.length===0)throw A1;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw A1;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return v(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),v(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw A1}o(pl,"getBackendIdsFromToken");function OIe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Us(r),Us(encodeURIComponent(r)))}catch(e){v(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(OIe,"maskSigUrl");function LIe(t){if(typeof t!="object"||t===null){v("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&OIe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&OIe(t.signed_url)}o(LIe,"maskSecretUrls");var m1=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},g9=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=8e3,this.retryMultiplier=1.5,this.retryTimeoutMilliseconds=12e4;let s=d1();this.baseUrl=yIe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new Cy(e,[new p1(s)])}request(e,r,n,i){return m1(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;v(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>m1(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return m1(this,void 0,void 0,function*(){let r=0,n="",i="",s=0;for(;r<this.maxAttempts;){let a=!1,c;try{let u=yield e(),d=u.message.statusCode;d===wn.TooManyRequests&&(c=this.getRetryAfterSeconds(u)),i=yield u.readBody(),v(`[Response] - ${u.message.statusCode}`),v(`Headers: ${JSON.stringify(u.message.headers,null,2)}`);let f=JSON.parse(i);if(LIe(f),v(`Body: ${JSON.stringify(f,null,2)}`),this.isSuccessStatusCode(d))return{response:u,body:f};if(a=this.isRetryableHttpStatusCode(d),n=`Failed request: (${d}) ${u.message.statusMessage}`,f.msg){if(Op.isUsageErrorMessage(f.msg))throw new Op;n=`${n}: ${f.msg}`}}catch(u){if(u instanceof SyntaxError&&v(`Raw Body: ${i}`),u instanceof Op)throw u;if(Mu.isNetworkErrorCode(u?.code))throw new Mu(u?.code);a=!0,n=u.message}if(!a)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let l=c!==void 0?c*1e3:this.getExponentialRetryTimeMilliseconds(r);if(s+l>this.retryTimeoutMilliseconds)throw new Error(`Retry wait of ${l} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${n}`);D(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${l} ms...`),yield this.sleep(l),s+=l,r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[wn.BadGateway,wn.GatewayTimeout,wn.InternalServerError,wn.ServiceUnavailable,wn.TooManyRequests].includes(e):!1}getRetryAfterSeconds(e){var r;let n=e.message.headers["retry-after"],i=(r=Array.isArray(n)?n[0]:n)===null||r===void 0?void 0:r.trim();if(i===void 0||!/^\d+$/.test(i))return;let s=parseInt(i,1
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&xe("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);D(`Redirecting to blob download url: ${zQe(d)}`);try{D(`Starting download of artifact to: ${r}`);let f=yield VQe(d,r,e?.skipDecompress);D("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,v(`Computed digest: ${f.sha256Digest}`),v(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(jQe,"downloadArtifactInternal");function WQe(){return EE(this,arguments,void 0,function*(t=EIe()){return(yield mPt(t))?v(`Artifact destination folder already exists: ${t}`):(v(`Artifact destination folder does not exist, creating: ${t}`),yield fJ.default.mkdir(t,{recursive:!0})),t})}o(WQe,"resolveOrCreateDirectory");var yPt=5,EPt=[400,401,403,404,422];function CE(t,e=yPt,r=EPt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return v(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(CE,"getRetryOptions");var JQe="6.0.0";function fA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(fA,"requestLog");fA.VERSION=JQe;var XQe=T(YQe(),1);var NQ=class extends Error{static{o(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let i=Object.assign({},n.request);n.request.headers.authorization&&(i.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i}};var CPt="0.0.0-development";function bPt(t){return t.request!==void 0}o(bPt,"isRequestError");async function KQe(t,e,r,n){if(!bPt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o(KQe,"errorRequest");async function wPt(t,e,r,n){let i=new XQe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(IPt.bind(null,t,e,r),n)}o(wPt,"wrapRequest");async function IPt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new NQ(i.data.errors[0].message,500,{request:n,response:i});return KQe(t,e,s,n)}return i}o(IPt,"requestWithGraphqlErrorHandling");function hA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",KQe.bind(null,r,n)),t.hook.wrap("request",wPt.bind(null,r,n))),n}o(hA,"retry");hA.VERSION=CPt;var ZQe=function(t,e,r,n)
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],v(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(_Q,"getArtifactPublic");function eke(t){return ZQe(this,void 0,void 0,function*(){var e;let r=Al(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=pl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:on.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new Lu(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?io.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(eke,"getArtifactInternal");var tke=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function rke(t,e,r,n,i){return tke(this,void 0,void 0,function*(){var s;let[a,c]=CE(Qp),l={log:void 0,userAgent:hl(),previews:void 0,retry:a,request:c},u=Xo(i,l,hA,fA),d=yield _Q(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new Wa(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(rke,"deleteArtifactPublic");function nke(t){return tke(this,void 0,void 0,function*(){let e=Al(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:on.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new Lu(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],v(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return D(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(nke,"deleteArtifactInternal");var ike=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},RQ=wIe(),TQ=100,SPt=Math.ceil(RQ/TQ);function ske(t,e,r,n){return ike(this,arguments,void 0,function*(i,s,a,c,l=!1){D(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=CE(Qp),h={log:void 0,userAgent:hl(),previews:void 0,retry:d,request:f},p=Xo(c,h,hA,fA),m=1,{data:A}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:TQ,page:m}),E=Math.ceil(A.total_count/TQ),y=A.total_count;y>RQ&&(xe(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${RQ}. Results will be incomplete as only the first ${RQ} artifacts will be returned`),E=SPt);for(let C of A.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(m++,m;m<=E;m++){v(`Fetching page ${m} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:TQ,page:m});for(let w of C.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return l&&(u=ake(u)),D(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(ske,"listArtifactsPublic");function oke(){return ike(this,arguments,void 0,function*(t=!1){let e=Al(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return ES(this,void 0,void 0,function*(){try{if(gy())throw new uf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=BPt(r,["findBy"]);return $Qe(e,n,i,s,a)}return jQe(e,r)}catch(n){throw xe(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return ES(this,void 0,void 0,function*(){try{if(gy())throw new uf;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:i,token:s}}=e;return ske(r,n,i,s,e?.latest)}return oke(e?.latest)}catch(r){throw xe(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return ES(this,void 0,void 0,function*(){try{if(gy())throw new uf;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:i,repositoryName:s,token:a}}=r;return _Q(e,n,i,s,a)}return eke(e)}catch(n){throw xe(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return ES(this,void 0,void 0,function*(){try{if(gy())throw new uf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,workflowRunId:s,token:a}}=r;return rke(e,s,n,i,a)}return nke(e)}catch(n){throw xe(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var zQr=new bE;var DQ=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ke.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=AJ.default.basename(e.filename),n=new bE;D(`Uploading ${r} as an artifact`);let i=AJ.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new Wa("Cannot upload artifact");let a=s.size??cke.default.statSync(e.filename).size,c=`${Ke.workflowRunURL()}/artifacts/${s.id}`;return D(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var lke=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uke=/[\x01-\x7F]/g,dke=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mJ=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,wE=new Map([[" ","Tab
`)}return n}o(VLt,"present");var $Lt={...kJ,schema:LOt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function jLt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(jLt,"defaultCompareFn");function Yke(t,e={}){let r={...$Lt,...e},n=jOt(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&Bke(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=kf.FLOW),Pke}),r.sortKeys){let i=r.sortKeys===!0?jLt:r.sortKeys;Bke(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),VLt(n,{...vOt(r,Object.keys(kJ)),schema:r.schema})}o(Yke,"dump");var ukr=IE.DOCUMENT,dkr=IE.SEQUENCE,fkr=IE.MAPPING,hkr=IE.SCALAR,pkr=IE.ALIAS,Akr=IE.POP,mkr=rt.PLAIN,gkr=rt.SINGLE_QUOTED,ykr=rt.DOUBLE_QUOTED,Ekr=rt.LITERAL_BLOCK,Ckr=rt.FOLDED_BLOCK,bkr=kf.BLOCK,wkr=kf.FLOW,Ikr=TJ.CLIP,Skr=TJ.STRIP,Bkr=TJ.KEEP;var Kke=T(require("os"),1);var UQ=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?Kke.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=sU.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Ke.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${ee.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${ee.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${ee.stringToUnicodeEntities(f.
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=no(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=no(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=ee.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Us(s),[i,s]}};var OJ=T(require("fs"),1),Xke=T(require("path"),1);var qQ=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new pt,this.metadataFilename=`bake-metadata-${ee.generateRandomString()}.json`}getMetadataFilePath(){return Xke.default.join(ht.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},i=Object.keys(n);if(i.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${i.join(", ")}`);let s=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||s.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);s.add(u),a.push(u)}}}return[...s]}resolveMetadata(){let e=this.getMetadataFilePath();if(!OJ.default.existsSync(e))return;let r=OJ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(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}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!ee.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ne.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${pt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);v(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Ne.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[i]=n.split(`
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))D(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Ns.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Br(`Signing ${a}`,async()=>{let c=s[a],l=ql.default.join(ql.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){xe(`No subjects found in provenance ${a}, skip signing.`);return}let d=ql.default.join(ql.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",hMe,"--bundle",l,...i];D(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await Ne.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Ns.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let A=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`