varyit=Object.create;varPG=Object.defineProperty;varEit=Object.getOwnPropertyDescriptor;varbit=Object.getOwnPropertyNames;varwit=Object.getPrototypeOf,Cit=Object.prototype.hasOwnProperty;varIit=(t,e)=>()=>(t&&(e=t(t=0)),e);varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Gde=(t,e)=>{for(varrine)PG(t,r,{get:e[r],enumerable:!0})},Sit=(t,e,r,i)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofbit(e))!Cit.call(t,n)&&n!==r&&PG(t,n,{get:()=>e[n],enumerable:!(i=Eit(e,n))||i.enumerable});returnt};varz=(t,e,r)=>(r=t!=null?yit(wit(t)):{},Sit(e||!t||!t.__esModule?PG(r,"default",{value:t,enumerable:!0}):r,t));varJde=g(j0=>{"use strict";vareCr=require("net"),Tit=require("tls"),UG=require("http"),Vde=require("https"),Nit=require("events"),tCr=require("assert"),Dit=require("util");j0.httpOverHttp=Oit;j0.httpsOverHttp=Pit;j0.httpOverHttps=kit;j0.httpsOverHttps=Qit;functionOit(t){vare=newhd(t);returne.request=UG.request,e}functionPit(t){vare=newhd(t);returne.request=UG.request,e.createSocket=$de,e.defaultPort=443,e}functionkit(t){vare=newhd(t);returne.request=Vde.request,e}functionQit(t){vare=newhd(t);returne.request=Vde.request,e.createSocket=$de,e.defaultPort=443,e}functionhd(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||UG.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(vara=Wde(n,s,o),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Dit.inherits(hd,Nit.EventEmitter);hd.prototype.addRequest=function(e,r,i,n){vars=this,o=qG({request:e},s.options,Wde(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){s.emit("free",a,o)}functionl(u){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};hd.prototype.createSocket=function(e,r){vari=this,n={};i.sockets.push(n);vars=qG({},i.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")),am("making CONNECT request");varo=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();functiona(h){h.upgrade=!0}functionc(h,f,d){process.nextTick(function(){l(h,f,d)})}functionl(h,f,d){if(o.removeAllListeners(),f.removeAllListeners(),h.statusCode!==200){am("tunneling socket could not be established, statusCode=%d",h.statusCode),f.destroy();varp=newError("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}if(d.length>0){am("got illegal response body from proxy"),f.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}returnam("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=f,r(f)}functionu(h){o.removeAllListeners(),am(`tunneling socket could not be established, cause=%s
`);f.push(A),s+=A.byteLength,p&&(s=null),n=t,i=async function*(){for(let E of f)E.stream?yield*E.stream():yield E},o=`multipart/form-data;boundary=${c}`}else if(rAe(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:eat(t)}if((typeof n=="string"||HB.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!oAe(r)){let f=new Uint8Array(u);f.byteLength&&l.enqueue(f)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function dat(t,e=!1){return t instanceof ReadableStream&&(zH(!HB.isDisturbed(t),"The body has already been consumed."),zH(!t.locked,"The stream is locked.")),lAe(t,e)}function pat(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function mat(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aat(t){return{blob(){return nb(this,r=>{let i=nAe(this);return i===null?i="":i&&(i=uat(i)),new aat([r],{type:i})},t)},arrayBuffer(){return nb(this,r=>new Uint8Array(r).buffer,t)},text(){return nb(this,sAe,t)},json(){return nb(this,yat,t)},formData(){return nb(this,r=>{let i=nAe(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=hat(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new iAe;return s[sb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new iAe;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return nb(this,r=>new Uint8Array(r),t)}}}function gat(t){Object.assign(t.prototype,Aat(t))}async function nb(t,e,r){if(oat.brandCheck(t,r),uAe(t))throw new TypeError("Body is unusable: Body has already been read");mat(t[sb]);let i=iat(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[sb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await nat(t[sb].body,s,n),i.promise)}function uAe(t){let e=t[sb].body;return e!=null&&(e.stream.locked||HB.isDisturbed(e.stream))}function yat(t){return JSON.parse(sAe(t))}function nAe(t){let e=t[sb].headersList,r=sat(e);return r==="failure"?null:r}hAe.exports={extractBody:lAe,safelyExtractBody:dat,cloneBody:pat,mixinBody:gat,streamRegistry:cAe,hasFinalizationRegistry:aAe,bodyUnusable:uAe}});var CAe=g((NCr,wAe)=>{"use strict";var St=require("node:assert"),Pt=rr(),{channels:fAe}=$0(),$H=xH(),{RequestContentLengthMismatchError:Dg,ResponseContentLengthMismatchError:Eat,RequestAbortedError:yAe,HeadersTimeoutError:bat,HeadersOverflowError:wat,SocketError:L2,InformationalError:ab,BodyTimeoutError:Cat,HTTPParserError:Iat,ResponseExceededMaxSizeError:Sat}=xr(),{kUrl:EAe,kReset:Aa,kClient:KH,kParser:Qi,kBlocking:VB,kRunning:Ys,kPending:Bat,kSize:dAe,kWriting:um,kQueue:ru,kNoRef:jB,kKeepAliveDefaultTimeout:vat,kHostHeader:_at,kPendingIdx:xat,kRunningIdx:Vc,kError:$c,kPipelining:k2,kSocket:cb,kKeepAliveTimeoutValue:M2,kMaxHeadersSize:WH,kKeepAliveMaxTimeout:Rat,kKeepAliveTimeoutThreshold:Tat,kHeadersTimeout:Nat,kBodyTimeout:Dat,kStrictContentLength:XH,kMaxRequests:pAe,kCounter:Oat,kMaxResponseSize:Pat,kOnError:kat,kResume:lm,kHTTPContext:bAe}=Ei(),th=cme(),Qat=Buffer.alloc(0),D2=Buffer[Symbol.species],O2=Pt.addListener,Lat=Pt.removeAllListeners,JH;async function Mat(){let t=process.env.JEST_WORKER_ID?NH():void 0,e;try{e=await WebAssembly.compile(hme())}catch{e=await WebAssembly.compile(t||NH())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{St(kn.ptr===r);let s=i-ih+rh.byteOffset;return kn.onStatus(new D2(rh.buffer,s,n))||0},wasm_on_message_begin:r=>(St(kn.ptr===r),kn.onMessageBegin()||0),wasm_on_he
`}return fAe.sendHeaders.hasSubscribers&&fAe.sendHeaders.publish({request:e,headers:A,socket:d}),!c||f===0?AAe(p,null,t,e,d,u,A,h):Pt.isBuffer(c)?AAe(p,c,t,e,d,u,A,h):Pt.isBlobLike(c)?typeof c.stream=="function"?gAe(p,c.stream(),t,e,d,u,A,h):zat(p,c,t,e,d,u,A,h):Pt.isStream(c)?jat(p,c,t,e,d,u,A,h):Pt.isIterable(c)?gAe(p,c,t,e,d,u,A,h):St(!1),!0}function jat(t,e,r,i,n,s,o,a){St(s!==0||r[Ys]===0,"stream body cannot be pipelined");let c=!1,l=new F2({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(A){Pt.destroy(this,A)}},h=function(){c||e.resume&&e.resume()},f=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let p=new yAe;queueMicrotask(()=>d(p))}},d=function(p){if(!c){if(c=!0,St(n.destroyed||n[um]&&r[Ys]<=1),n.off("drain",h).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",f),!p)try{l.end()}catch(A){p=A}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Pt.destroy(e,p):Pt.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",f),e.resume&&e.resume(),n.on("drain",h).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}function AAe(t,e,r,i,n,s,o,a){try{e?Pt.isBuffer(e)&&(St(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length:${s}\r
`,"latin1"):(St(s===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),i.onRequestSent(),r[lm]()}catch(c){t(c)}}async function zat(t,e,r,i,n,s,o,a){St(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Dg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length:${s}\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[Aa]=!0),r[lm]()}catch(c){t(c)}}async function gAe(t,e,r,i,n,s,o,a){St(s!==0||r[Ys]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let f=c;c=null,f()}}let u=()=>new Promise((f,d)=>{St(c===null),n[$c]?d(n[$c]):c=f});n.on("close",l).on("drain",l);let h=new F2({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let f of e){if(n[$c])throw n[$c];h.write(f)||await u()}h.end()}catch(f){h.destroy(f)}finally{n.off("close",l).off("drain",l)}}var F2=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[um]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[$c])throw r[$c];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(s[XH])throw new Dg;process.emitWarning(new Dg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Aa]=!0),n===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&n!==r){if(i[XH])throw new Dg;process.emitWarning(new Dg)}e[Qi].timeout&&e[Qi].timeoutType===lb&&e[Qi].timeout.refresh&&e[Qi].timeout.refresh(),i[lm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[um]=!1,e&&(St(i[Ys]<=1,"pipeline should only contain this request"),n(e))}};wAe.exports=Uat});var TAe=g((DCr,RAe)=>{"use strict";var Wc=require("node:assert"),{pipeline:Vat}=require("node:stream"),lr=rr(),{RequestContentLengthMismatchError:r6,RequestAbortedError:IAe,SocketError:$B,InformationalError:i6}=xr(),{kUrl:U2,kReset:G2,kClient:ub,kRunning:H2,kPending:$at,kQueue:hm,kPendingIdx:n6,kRunningIdx:iu,kError:su,kSocket:Kn,kStrictContentLength:Wat,kOnError:s6,kMaxConcurrentStreams:xAe,kHTTP2Session:nu,kResume:fm,kSize:Jat,kHTTPContext:Yat}=Ei(),gd=Symbol("open streams"),SAe,BAe=!1,q2;try{q2=require("node:http2")}catch{q2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Kat,HTTP2_HEADER_METHOD:Xat,HTTP2_HEADER_PATH:Zat,HTTP2_HEADER_SCHEME:ect,HTTP2_HEADER_CONTENT_LENGTH:tct,HTTP2_HEADER_EXPECT:rct,HTTP2_HEADER_STATUS:ict}}=q2;function nct(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function sct(t,e){t[Kn]=e,BAe||(BAe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=q2.connect(t[U2],{createConnection:()=>e,peerMaxConcurrentStreams:t[xAe]});r[gd]=0,r[ub]=t,r[Kn]=e,lr.addListener(r,"error",act),lr.addListener(r,"frameError",cct),lr.addListener(r,"end",lct),lr.addListener(r,"goaway",uct),lr.addListener(r,"close",function(){let{[ub]:n}=this,{[Kn]:s}=n,o=this[Kn][su]||this[su]||new $B("closed",lr.getSocketInfo(s));if(n[nu]=null,n.destroyed){Wc(n[$at]===0);let a=n[hm].splice(n[iu]);for(let c=0;c<a.length;c++){let l=a[c];lr.errorRequest(n,l,o)}}}),r.unref(),t[nu]=r,e[nu]=r,lr.addListener(e,"error",function(n){Wc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[su]=n,this[ub][s6](n)}),lr.addListener(e,"end",function(){lr.destroy(this,new $B("other side closed",lr.getSocketInfo(this)))}),lr.addListener(e,"close",function(){let n=this[su]||new $B("closed",lr.getSocketInfo(this));t[Kn]=null,this[nu]!=null&&this[nu].destroy(n),t[n6]=t[iu],Wc(t[H2]===0),t.emit("disconnect",t[U2],[t],n),t[fm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return fct(t,...n)},resume(){oct(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function oct(t){let e=t[Kn];e?.destroyed===!1&&(t[Jat]===0&&t[xAe]===0?(e.unref(),t[nu].unref()):(e.ref(),t[nu].ref()))}function act(t){Wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Kn][su]=t,this[ub][s6](t)}function cct(t,e,r){if(r===0){let i=new i6(`HTTP/2:"frameError"received-type${t},code${e}`);this[Kn][su]=i,this[ub][s6](i)}}function lct(){let t=new $B("other side closed",lr.getSocketInfo(this[Kn]));this.destroy(t),lr.destroy(this[Kn],t)}function uct(t){let e=this[su]||new $B(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,lr.getSocketInfo(this)),r=this[ub];if(r[Kn]=null,r[Yat]=null,this[nu]!=null&&(this[nu].destroy(e),this[nu]=null),lr.destroy(this[Kn],e),r[iu]<r[hm].length){let i=r[hm][r[iu]];r[hm][r[iu]++]=null,lr.errorRequest(r,i,e),r[n6]=r[iu]}Wc(r[H2]===0),r.emit("disconnect",r[U2],[r],e),r[fm]()}function hct(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fct(t,e){let r=t[nu],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let I=0;I<l.length;I+=2){let D=l[I+0],M=l[I+1];if(Array.isArray(M))for(let T=0;T<M.length;T++)h[D]?h[D]+=`,${M[T]}`:h[D]=M[T];else h[D]=M}let f,{hostname:d,port:p}=t[U2];h[Kat]=s||`${d}${p?`:${p}`:""}`,h[Xat]=i;let A=I=>{e.aborted||e.completed||(I=I||new IAe,lr.errorRequest(t,e,I),f!=null&&lr.destroy(f,I),lr.destroy(u,I),t[hm][t[iu]++]=null,t[fm]())};try{e.onConnect(A)}catch(I){lr.errorRequest
`;if(i.username||i.password){let f=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(s))a+=`${f}:${s[f]}\r
`)+4,e.outputData[0].data=e._header+i.substring(n),hw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(hw("Creating `tls.Socket`: %o",this.connectOpts),s=WSt.connect(this.connectOpts)):(hw("Creating `net.Socket`: %o",this.connectOpts),s=$St.connect(this.connectOpts)),await(0,YSt.once)(s,"connect"),s}};yP.protocols=["http","https"];ll.HttpProxyAgent=yP;function XSt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var txe=g(DP=>{"use strict";Object.defineProperty(DP,"__esModule",{value:!0});DP.state=void 0;DP.state={instrumenterImplementation:void 0}});var yxe=g(LP=>{"use strict";Object.defineProperty(LP,"__esModule",{value:!0});LP.state=void 0;LP.state={operationRequestMap:new WeakMap}});var YTe=g(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});var yTt=require("os"),ETt=require("util");function bTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var wTt=bTt(ETt);function CTt(t,...e){process.stderr.write(`${wTt.default.format(t,...e)}${yTt.EOL}`)}var UTe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,GTe,jY=[],zY=[],rQ=[];UTe&&VY(UTe);var HTe=Object.assign(t=>jTe(t),{enable:VY,enabled:$Y,disable:ITt,log:CTt});function VY(t){GTe=t,jY=[],zY=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?zY.push(new RegExp(`^${i.substr(1)}$`)):jY.push(new RegExp(`^${i}$`));for(let i of rQ)i.enabled=$Y(i.namespace)}function $Y(t){if(t.endsWith("*"))return!0;for(let e of zY)if(e.test(t))return!1;for(let e of jY)if(e.test(t))return!0;return!1}function ITt(){let t=GTe||"";return VY(""),t}function jTe(t){let e=Object.assign(r,{enabled:$Y(t),destroy:STt,log:HTe.log,namespace:t,extend:BTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t}${i[0]}`),e.log(...i))}return rQ.push(e),e}function STt(){let t=rQ.indexOf(this);return t>=0?(rQ.splice(t,1),!0):!1}function BTt(t){let e=jTe(`${this.namespace}:${t}`);return e.log=this.log,e}var tx=HTe,zTe=new Set,eQ=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,iQ,nQ=tx("azure");nQ.log=(...t)=>{tx.log(...t)};var WY=["verbose","info","warning","error"];eQ&&(JTe(eQ)?VTe(eQ):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${eQ}';loggingisnotenabled.Acceptablevalues:${WY.join(", ")}.`));function VTe(t){if(t&&!JTe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${WY.join(",")}`);iQ=t;let e=[];for(let r of zTe)WTe(r)&&e.push(r.namespace);tx.enable(e.join(","))}function vTt(){return iQ}var qTe={verbose:400,info:300,warning:200,error:100};function _Tt(t){let e=nQ.extend(t);return $Te(nQ,e),{error:tQ(e,"error"),warning:tQ(e,"warning"),info:tQ(e,"info"),verbose:tQ(e,"verbose")}}function $Te(t,e){e.log=(...r)=>{t.log(...r)}}function tQ(t,e){let r=Object.assign(t.extend(e),{level:e});if($Te(t,r),WTe(r)){let i=tx.disable();tx.enable(i+","+r.namespace)}return zTe.add(r),r}function WTe(t){return!!(iQ&&qTe[t.level]<=qTe[iQ])}function JTe(t){return WY.includes(t)}Rw.AzureLogger=nQ;Rw.createClientLogger=_Tt;Rw.getLogLevel=vTt;Rw.setLogLevel=VTe});var KY=g(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var Tw=new WeakMap,sQ=new WeakMap,rx=class t{constructor(){this.onabort=null,Tw.set(this,[]),sQ.set(this,!1)}get aborted(){if(!sQ.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return sQ.get(this)}static get none(){return new t}addEventListener(e,r){if(!Tw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Tw.get(this).push(r)}removeEventListener(e,r){if(!Tw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Tw.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function KTe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Tw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),sQ.set(t,!0)}var JY=class extends Error{constructor(e){super(e),t
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function _Qt(){Object.keys(LL).forEach(function(t){delete LL[t]})}});var FL=g(Xh=>{"use strict";Xh.__esModule=!0;Xh.HandlebarsEnvironment=wX;function POe(t){return t&&t.__esModule?t:{default:t}}var qy=Uo(),xQt=Cc(),EX=POe(xQt),RQt=mX(),TQt=TOe(),NQt=gX(),ML=POe(NQt),DQt=yX(),OQt="4.7.9";Xh.VERSION=OQt;var PQt=8;Xh.COMPILER_REVISION=PQt;var kQt=7;Xh.LAST_COMPATIBLE_COMPILER_REVISION=kQt;var QQt={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"};Xh.REVISION_CHANGES=QQt;var bX="[object Object]";function wX(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},RQt.registerDefaultHelpers(this),TQt.registerDefaultDecorators(this)}wX.prototype={constructor:wX,logger:ML.default,log:ML.default.log,registerHelper:function(e,r){if(qy.toString.call(e)===bX){if(r)throw new EX.default("Arg not supported with multiple helpers");qy.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(qy.toString.call(e)===bX)qy.extend(this.partials,e);else{if(typeof r>"u")throw new EX.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(qy.toString.call(e)===bX){if(r)throw new EX.default("Arg not supported with multiple decorators");qy.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){DQt.resetLoggedProperties()}};var LQt=ML.default.log;Xh.log=LQt;Xh.createFrame=qy.createFrame;Xh.logger=ML.default});var QOe=g((UL,kOe)=>{"use strict";UL.__esModule=!0;function CX(t){this.string=t}CX.prototype.toString=CX.prototype.toHTML=function(){return""+this.string};UL.default=CX;kOe.exports=UL.default});var LOe=g(IX=>{"use strict";IX.__esModule=!0;IX.wrapHelper=MQt;function MQt(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var HOe=g(tA=>{"use strict";tA.__esModule=!0;tA.checkRevision=jQt;tA.template=zQt;tA.wrapProgram=qL;tA.resolvePartial=VQt;tA.invokePartial=$Qt;tA.noop=qOe;function FQt(t){return t&&t.__esModule?t:{default:t}}function UQt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var qQt=Uo(),iC=UQt(qQt),GQt=Cc(),$d=FQt(GQt),Wd=FL(),MOe=mX(),HQt=LOe(),FOe=yX();function jQt(t){var e=t&&t[0]||1,r=Wd.COMPILER_REVISION;if(!(e>=Wd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Wd.COMPILER_REVISION))if(e<Wd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Wd.REVISION_CHANGES[r],n=Wd.REVISION_CHANGES[e];throw new $d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new $d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function zQt(t,e){if(!e)throw new $d.default("No environment passed to template");if(!t||!t.main)throw new $d.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=iC.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),f=0;f<h.length&&(a=this._input.match(this.rules[h[f]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=f,!this.options.flex)));f++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],s=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
globstarwhile`,e,h,r,f,d),this.matchOne(e.slice(h),r.slice(f),i))return this.debug("globstar found match!",h,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,r,f);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
`;super(r),this.name="AggregateError",this.errors=e}};ure.exports={AggregateError:lre,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""}{}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof BHt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:vHt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);VUe(e,"signal"),_Ht(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[wHt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[CHt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:IHt.any||function(e){if(e.length===1)return e[0];let r=new SHt,i=()=>r.abort();return e.forEach(n=>{VUe(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};ure.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var zo=g((iVr,JUe)=>{"usestrict";var{format:xHt,inspect:jF,AggregateError:RHt}=so(),THt=globalThis.AggregateError||RHt,NHt=Symbol("kIsNodeError"),DHt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],OHt=/^([A-Z][a-z0-9]*)+$/,PHt="__node_internal_",zF={};function nE(t,e){if(!t)throw new zF.ERR_INTERNAL_ASSERTION(e)}function $Ue(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function kHt(t,e,r){if(typeof e=="function")return nE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return nE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:xHt(e,...r)}function qs(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(kHt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.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}}),i.prototype.code=t,i.prototype[NHt]=!0,zF[t]=i}function WUe(t){let e=PHt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QHt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new THt([e,t],e.message);return r.code=e.code,r}return t||e}var hre=class extends Error{constructor(e="Theoperationwasaborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new zF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qs("ERR_ASSERTION","%s",Error);qs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{nE(typeof t=="string","'name'mustbeastring"),Array.isArray(e)||(e=[e]);let i="The";t.endsWith("argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="mustbe";let n=[],s=[],o=[];for(let c of e)nE(typeof c=="string","Allexpectedentrieshavetobeoftypestring"),DHt.includes(c)?n.push(c.toLowerCase()):OHt.test(c)?s.push(c):(nE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.
`)),e.linkname&&(r+=qne(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=qne(" "+n+"="+i[n]+`
`);return Sr.from(r)};xI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(Sr.toString(e.subarray(0,i)),10);if(!n)return r;let s=Sr.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};xI.encode=function(e){let r=Sr.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Sr.byteLength(i)!==i.length)return null;for(;Sr.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return Sr.byteLength(i)>100||Sr.byteLength(n)>155||e.linkname&&Sr.byteLength(e.linkname)>100?null:(Sr.write(r,i),Sr.write(r,vA(e.mode&XKt,6),100),Sr.write(r,vA(e.uid,6),108),Sr.write(r,vA(e.gid,6),116),sXt(e.size,r,124),Sr.write(r,vA(e.mtime.getTime()/1e3|0,11),136),r[156]=wq+iXt(e.type),e.linkname&&Sr.write(r,e.linkname,157),Sr.copy(WHe,r,QT),Sr.copy(JKt,r,Gne),e.uname&&Sr.write(r,e.uname,265),e.gname&&Sr.write(r,e.gname,297),Sr.write(r,vA(e.devmajor||0,6),329),Sr.write(r,vA(e.devminor||0,6),337),n&&Sr.write(r,n,345),Sr.write(r,vA(YHe(r),6),148),r)};xI.decode=function(e,r,i){let n=e[156]===0?0:e[156]-wq,s=_I(e,0,100,r),o=BA(e,100,8),a=BA(e,108,8),c=BA(e,116,8),l=BA(e,124,12),u=BA(e,136,12),h=rXt(n),f=e[157]===0?null:_I(e,157,100,r),d=_I(e,265,32),p=_I(e,297,32),A=BA(e,329,8),E=BA(e,337,8),y=YHe(e);if(y===256)return null;if(y!==BA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(ZKt(e))e[345]&&(s=_I(e,345,155,r)+"/"+s);else if(!eXt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:l,mtime:new Date(1e3*u),type:h,linkname:f,uname:d,gname:p,devmajor:A,devminor:E,pax:null}};function ZKt(t){return Sr.equals(WHe,t.subarray(QT,QT+6))}function eXt(t){return Sr.equals(YKt,t.subarray(QT,QT+6))&&Sr.equals(KKt,t.subarray(Gne,Gne+2))}function tXt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function rXt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function iXt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function JHe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function YHe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function vA(t,e){return t=t.toString(8),t.length>e?WKt.slice(0,e)+" ":$Kt.slice(0,e-t.length)+t+" "}function nXt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function sXt(t,e,r){t.toString(8).length>11?nXt(t,e,r):Sr.write(e,vA(t,11),r)}function oXt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function BA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return oXt(t);{for(;e<t.length&&t[e]===32;)e++;let i=tXt(JHe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Sr.toString(t.subarray(e,i)),8)}}function _I(t,e,r,i){return Sr.toString(t.subarray(e,JHe(t,0,e,e+r)),i)}function qne(t){let e=Sr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var t6e=g((I$r,e6e)=>{var{Writable:aXt,Readable:cXt,getStreamError:KHe}=Une(),lXt=Sne(),XHe=bq(),RI=Hne(),uXt=XHe.alloc(0),zne=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lXt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if
${L4(l)}${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return M4(t,c)}Fc.exports.find=hlr;async function hlr(t,e){let r=jN(t,e);try{return(await Q4(r)).reduce((n,s)=>s&&s.key===e?M4(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}Fc.exports.delete=flr;function flr(t,e,r={}){if(!r.removeFully)return r7e(t,e,null,r);let i=jN(t,e);return t7e(i,{recursive:!0,force:!0})}Fc.exports.lsStream=i7e;function i7e(t){let e=sle(t),r=new ilr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(k4(),P4)),n=await ile(e);return await i(n,async s=>{let o=Gf.join(e,s),a=await ile(o);await i(a,async c=>{let l=Gf.join(o,c),u=await ile(l);await i(u,async h=>{let f=Gf.join(l,h);try{let p=(await Q4(f)).reduce((A,E)=>(A.set(E.key,E),A),new Map);for(let A of p.values()){let E=M4(t,A);E&&r.write(E)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:rle})},{concurrency:rle})},{concurrency:rle}),r.end(),r}).catch(i=>r.emit("error",i)),r}Fc.exports.ls=dlr;async function dlr(t){return(await i7e(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}Fc.exports.bucketEntries=Q4;async function Q4(t,e){let r=await elr(t,"utf8");return plr(r,e)}function plr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||L4(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}Fc.exports.bucketDir=sle;function sle(t){return Gf.join(t,`index-v${clr}`)}Fc.exports.bucketPath=jN;function jN(t,e){let r=n7e(e);return Gf.join.apply(Gf,[sle(t)].concat(alr(r)))}Fc.exports.hashKey=n7e;function n7e(t){return s7e(t,"sha256")}Fc.exports.hashEntry=L4;function L4(t){return s7e(t,"sha1")}function s7e(t,e){return Xcr.createHash(e).update(t).digest("hex")}function M4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?olr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function ile(t){return tlr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var VN=g(q4=>{"use strict";Object.defineProperty(q4,"__esModule",{value:!0});q4.LRUCache=void 0;var mlr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a7e=new Set,ole=typeof process=="object"&&process?process:{},c7e=(t,e,r,i)=>{typeof ole.emitWarning=="function"?ole.emitWarning(t,e,r,i):console.error(`[${r}]${e}:${t}`)},U4=globalThis.AbortController,o7e=globalThis.AbortSignal;if(typeof U4>"u"){o7e=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},U4=class{constructor(){e()}signal=new o7e;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let t=ole.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,c7e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Alr=t=>!a7e.has(t),JA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),l7e=t=>JA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?F4:null:null,F4=class extends Array{constructor(t){super(t),this.fill(0)}},glr=class zN{heap;length;static#e=!1;static create(e){let r=l7e(e);if(!r)return[];zN.#e=!0;let i=new zN(e,r);return zN.#e=!1,i}constructor(e,r){if(!zN.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ylr=class u7e{#e;#t;#i;#r;#n;#c;#h;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#l;#d;#f;#s;#A;#w;#m;#E;#v;#y;#I;#_;#p;#C;#S;#x;#o;#T;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,autopurgeTimers:e.#C,sizes:e.#I,keyMap:e.#d,keyList:e.#f,valList:e.#s,next:e.#A,prev:e.#w,get head(){return e.#m},get tail(){return e.#E},free:e.#v,isBackgroundFetch:r=>e.#g(r),backgroundFetch:(r,i,n,s)=>e.#H(r,i,n,s),moveToTail:r=>e.#U(r),indexes:r=>e.#b(r),rindexes:r=>e.#N(r),isStale:r=>e.#B(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#a}get fetchMethod(){return this.#c}get memoMethod(){return this.#h}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:f,noUpdateTTL:d,maxSize:p=0,maxEntrySize:A=0,sizeCalculation:E,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:M,ignoreFetchAbort:T,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() met
globstarwhile`,F,Re,$,at,vt),this.matchOne(F.slice(Re),$.slice(at),J))return this.debug("globstar found match!",Re,G,vt),!0;if(vt==="."||vt===".."||!ae.dot&&vt.charAt(0)==="."){this.debug("dot detected!",F,Re,$,at);break}this.debug("globstar swallow a segment, and continue"),Re++}return!!(J&&(this.debug(`
>>>nomatch,partial?`,F,Re,$,at),Re===G))}let Et;if(typeof be=="string"?(Et=Ne===be,this.debug("string match",be,Ne,Et)):(Et=be.test(Ne),this.debug("pattern match",be,Ne,Et)),!Et)return!1}if(w===G&&R===oe)return!0;if(w===G)return J;if(R===oe)return w===G-1&&F[w]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(F){(0,r.assertValidPattern)(F);let $=this.options;if(F==="**")return t.GLOBSTAR;if(F==="")return"";let J,ae=null;(J=F.match(y))?ae=$.dot?C:b:(J=F.match(a))?ae=($.nocase?$.dot?h:u:$.dot?l:c)(J[1]):(J=F.match(I))?ae=($.nocase?$.dot?M:D:$.dot?T:j)(J):(J=F.match(f))?ae=$.dot?p:d:(J=F.match(A))&&(ae=E);let ye=i.AST.fromGlob(F,this.options).toMMPattern();return ae&&typeof ye=="object"&&Reflect.defineProperty(ye,"test",{value:ae}),ye}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let F=this.set;if(!F.length)return this.regexp=!1,this.regexp;let $=this.options,J=$.noglobstar?ue:$.dot?he:Ce,ae=new Set($.nocase?["i"]:[]),ye=F.map(G=>{let oe=G.map(Ne=>{if(Ne instanceof RegExp)for(let Re of Ne.flags.split(""))ae.add(Re);return typeof Ne=="string"?Ot(Ne):Ne===t.GLOBSTAR?t.GLOBSTAR:Ne._src});oe.forEach((Ne,Re)=>{let at=oe[Re+1],vt=oe[Re-1];Ne!==t.GLOBSTAR||vt===t.GLOBSTAR||(vt===void 0?at!==void 0&&at!==t.GLOBSTAR?oe[Re+1]="(?:\\/|"+J+"\\/)?"+at:oe[Re]=J:at===void 0?oe[Re-1]=vt+"(?:\\/|\\/"+J+")?":at!==t.GLOBSTAR&&(oe[Re-1]=vt+"(?:\\/|\\/"+J+"\\/)"+at,oe[Re+1]=t.GLOBSTAR))});let be=oe.filter(Ne=>Ne!==t.GLOBSTAR);if(this.partial&&be.length>=1){let Ne=[];for(let Re=1;Re<=be.length;Re++)Ne.push(be.slice(0,Re).join("/"));return"(?:"+Ne.join("|")+")"}return be.join("/")}).join("|"),[w,R]=F.length>1?["(?:",")"]:["",""];ye="^"+w+ye+R+"$",this.partial&&(ye="^(?:\\/|"+w+ye.slice(1,-1)+R+")$"),this.negate&&(ye="^(?!"+ye+").+$");try{this.regexp=new RegExp(ye,[...ae].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(F){return this.preserveMultipleSlashes?F.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(F)?["",...F.split(/\/+/)]:F.split(/\/+/)}match(F,$=this.partial){if(this.debug("match",F,this.pattern),this.comment)return!1;if(this.empty)return F==="";if(F==="/"&&$)return!0;let J=this.options;this.isWindows&&(F=F.split("\\").join("/"));let ae=this.slashSplit(F);this.debug(this.pattern,"split",ae);let ye=this.set;this.debug(this.pattern,"set",ye);let w=ae[ae.length-1];if(!w)for(let R=ae.length-2;!w&&R>=0;R--)w=ae[R];for(let R=0;R<ye.length;R++){let G=ye[R],oe=ae;if(J.matchBase&&G.length===1&&(oe=[w]),this.matchOne(oe,G,$))return J.flipNegate?!0:!this.negate}return J.flipNegate?!1:this.negate}static defaults(F){return t.minimatch.defaults(F).Minimatch}};t.Minimatch=xt;var Kt=O7e();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Kt.AST}});var gt=P7e();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return gt.escape}});var Dr=wle();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return Dr.unescape}}),t.minimatch.AST=i.AST,t.minimatch.Minimatch=xt,t.minimatch.escape=n.escape,t.minimatch.unescape=s.unescape}),lur=Vs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,i=typeof process=="object"&&process?process:{},n=(d,p,A,E)=>{typeof i.emitWarning=="function"?i.emitWarning(d,p,A,E):console.error(`[${A}]${p}:${d}`)},s=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof s>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(A,E){this._onabort.push(E)}},s=class{constructor(){p()}signal=new o;abort(A){if(!this.signal.aborted){this.signal.reason=A,this.signal.aborted=!0;for(let E of this.signal._onabort)E(A);this.signal.onabort?.(A)}}};let d=i.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{d&&(d=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing
`;if(i.username||i.password){let f=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(s))a+=`${f}:${s[f]}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",$hr),r.secureEndpoint){s1("Upgrading socket connection to TLS");let f=r.servername||r.host;return kKe.connect({...QKe(r,"host","path","port"),socket:n,servername:n1.isIP(f)?void 0:f})}return n}n.destroy();let h=new n1.Socket({writable:!1});return h.readable=!0,e.once("socket",f=>{s1("Replaying proxy buffer for failed request"),(0,Ghr.default)(f.listenerCount("data")>0),f.push(u),f.push(null)}),h}};s5.protocols=["http","https"];Vl.HttpsProxyAgent=s5;function $hr(t){t.resume()}function QKe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var HKe=g(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var UKe=require("buffer"),h0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Kp.ERRORS=h0;function Whr(t){if(!UKe.Buffer.isEncoding(t))throw new Error(h0.INVALID_ENCODING)}Kp.checkEncoding=Whr;function qKe(t){return typeof t=="number"&&isFinite(t)&&Xhr(t)}Kp.isFiniteInteger=qKe;function GKe(t,e){if(typeof t=="number"){if(!qKe(t)||t<0)throw new Error(e?h0.INVALID_OFFSET:h0.INVALID_LENGTH)}else throw new Error(e?h0.INVALID_OFFSET_NON_NUMBER:h0.INVALID_LENGTH_NON_NUMBER)}function Jhr(t){GKe(t,!1)}Kp.checkLengthValue=Jhr;function Yhr(t){GKe(t,!0)}Kp.checkOffsetValue=Yhr;function Khr(t,e){if(t<0||t>e.length)throw new Error(h0.INVALID_TARGET_OFFSET)}Kp.checkTargetOffset=Khr;function Xhr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Zhr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof UKe.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}Kp.bigIntAndBufferInt64Check=Zhr});var zKe=g(zle=>{"use strict";Object.defineProperty(zle,"__esModule",{value:!0});var Zt=HKe(),jKe=4096,efr="utf8",jle=class t{constructor(e){if(this.length=0,this._encoding=efr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Zt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Zt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Zt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(Zt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(jKe);else{if(typeof e<"u")throw new Error(Zt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(jKe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Bu
`,awr=/\u2014 (\S+) (\S+)\n/g;function cwr(t,e){let r=t.inclusionProof,i=dde.fromString(r.checkpoint.envelope),n=iG.fromString(i.note);if(!lwr(i,e))throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function lwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>Crt.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?Crt.crypto.verify(r,n.publicKey,i.signature):!1})}var dde=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(fde))throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(fde),i=e.slice(0,r+1),s=e.slice(r+fde.length).matchAll(awr),o=Array.from(s,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},iG=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};F1.LogCheckpoint=iG});var Srt=g(gde=>{"use strict";Object.defineProperty(gde,"__esModule",{value:!0});gde.verifyMerkleInclusion=fwr;var Ade=Wu(),pde=Io(),uwr=Buffer.from([0]),hwr=Buffer.from([1]);function fwr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${i}`});let{inner:s,border:o}=dwr(i,n);if(r.hashes.length!==s+o)throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),l=Ewr(t.canonicalizedBody),u=mwr(pwr(l,a,i),c);if(!Ade.crypto.bufferEqual(u,e.logHash))throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function dwr(t,e){let r=Awr(t,e),i=gwr(t>>BigInt(r));return{inner:r,border:i}}function pwr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?mde(n,i):mde(i,n),t)}function mwr(t,e){return e.reduce((r,i)=>mde(i,r),t)}function Awr(t,e){return ywr(t^e-BigInt(1))}function gwr(t){return t.toString(2).split("1").length-1}function ywr(t){return t===0n?0:t.toString(2).length}function mde(t,e){return Ade.crypto.digest("sha256",hwr,t,e)}function Ewr(t){return Ade.crypto.digest("sha256",uwr,t)}});var vrt=g(yde=>{"use strict";Object.defineProperty(yde,"__esModule",{value:!0});yde.verifyTLogSET=Cwr;var Brt=Wu(),bwr=Io(),wwr=dB();function Cwr(t,e){if(!(0,wwr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=Iwr(t),o=Buffer.from(Brt.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Brt.crypto.verify(o,n.publicKey,a)}))throw new bwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Iwr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var xrt=g(nG=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.verifyTLogBody=xwr;nG.verifyTLogInclusion=Rwr;var _rt=Fue(),wde=Io(),Ede=Ert(),bde=brt(),Swr=wrt(),Bwr=Irt(),vwr=Srt(),_wr=vrt();function xwr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new wde.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${i},received:${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==Ede.DSSE_API_VERSION_V1)return(0,Ede.verifyDSSETLogBody)(n,e);{let s=_rt.Entry.fromJSON(n);return(0,Ede.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Swr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==bde.HASHEDREKORD_API_VERSION_V1)return(0,bde.verifyHashedRekordTLogBody)(n,e);{let s=_rt.Entry.fromJSON(n);return(0,bde.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new wde.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}function Rwr(t,e){let r=!1;if(Twr(t)&&((0,_wr.verifyTLogSET)(t,e),r=!0),Nwr(t)){let i=(0,Bwr.verifyCheckpoint)(t,e);(0,vwr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new wde.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Twr(t){return t.inclusionPromise!==void 0}function Nwr(t){return t.inclusionProof!==void 0}});var Ort=g(sG=>{"use strict";Object.defineProperty(sG,"__esModule",{value:!0});sG.Verifier=void 0;var Dwr=require("util"),pB=Io(),Rrt=prt(),Cde=mrt(),Trt=yrt(),Nrt=xrt(),Ide=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionoO(t,e){if(process.env.GITHUB_OUTPUT||"")returns2("OUTPUT",MG(t,e));process.stdout.write(Sz.EOL),ud("set-output",{name:t},ld(e))}functionaO(t){process.exitCode=Iz.Failure,zb(t)}functioney(){returnprocess.env.RUNNER_DEBUG==="1"}functionK(t){ud("debug",{},t)}functionzb(t,e={}){ud("error",kG(e),tinstanceofError?t.toString():t)}functionhr(t,e={}){ud("warning",kG(e),tinstanceofError?t.toString():t)}functionle(t){process.stdout.write(t+Sz.EOL)}functionugt(t){LG("group",t)}functionhgt(){LG("endgroup")}functionLi(t,e){returnlgt(this,void0,void0,function*(){ugt(t);letr;try{r=yielde()}finally{hgt()}returnr})}functionfu(t,e){if(process.env.GITHUB_STATE||"")returns2("STATE",MG(t,e));ud("save-state",{name:t},ld(e))}functionUwe(t){returnprocess.env[`STATE_${t}`]||""}varuL=z(require("fs"),1),QK=z(require("os"),1),LK=z(require("path"),1);varGwe=z(require("os"),1);functionQv(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionHwe(t,e,r){leti=newBz(t,e,r);process.stdout.write(i.toString()+Gwe.EOL)}varqwe="::",Bz=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){lete=qwe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letiinthis.properties)if(this.properties.hasOwnProperty(i)){letn=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${dgt(n)}`)}}returne+=`${qwe}${fgt(this.message)}`,e}};functionfgt(t){returnQv(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functiondgt(t){returnQv(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var$we=z(require("os"),1);varzwe=require("os"),Lv=require("fs"),vz=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},{access:pgt,appendFile:mgt,writeFile:Agt}=Lv.promises,jwe="GITHUB_STEP_SUMMARY";var_z=class{constructor(){this._buffer=""}filePath(){returnvz(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[jwe];if(!e)thrownewError(`Unable to find environment variable for $${jwe}. Check if your runtime environment supports job summaries.`);try{yieldpgt(e,Lv.constants.R_OK|Lv.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,i={}){letn=Object.entries(i).map(([s,o])=>`${s}="${o}"`).join("");returnr?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){returnvz(this,void0,void0,function*(){letr=!!e?.overwrite,i=yieldthis.filePath();returnyield(r?Agt:mgt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnvz(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(zwe.EOL)}addCodeBlock(e,r){leti=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);returnthis.addRaw(n).addEOL()}addList(e,r=!1){leti=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(n=>{lets=n.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,h=a?"th":"td",f=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});returnthis.wrap(h,c,f)}).join("");returnthis.wrap("tr",s)}).join(""),i=this.wrap("table",r);returnthis.addRaw(i).addEOL()}addDetails(e,r){leti=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({}
${xIt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function KO(t){return t instanceof Po?!0:ay(t)&&t.name==="RestError"}function wa(t,e){return Buffer.from(t,e)}var XO=z(require("node:http"),1),ZO=z(require("node:https"),1),XV=z(require("node:zlib"),1),Uve=require("node:stream");var ol=u_("ts-http-runtime");var RIt={};function h_(t){return t&&typeof t.pipe=="function"}function Fve(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function qve(t){return t&&typeof t.byteLength=="number"}var eP=class extends Uve.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},ZV=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new gh("The operation was aborted. Request has already been canceled.");i=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new Au;ol.info(`requestto'${l.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),o=s?.includes("gzip")||s?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=OIt(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,A=new eP(p);A.on("error",E=>{ol.error("Error in upload progress",E)}),h_(a)?a.pipe(A):A.end(a),a=A}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=TIt(l),f={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),f;c=o?NIt(l,u):l;let d=e.onDownloadProgress;if(d){let p=new eP(d);p.on("error",A=>{ol.error("Error in download progress",A)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=c:f.bodyAsText=await DIt(c),f}finally{if(e.abortSignal&&i){let l=Promise.resolve();h_(a)&&(l=Fve(a));let u=Promise.resolve();h_(c)&&(u=Fve(c)),Promise.all([l,u]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(h=>{ol.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let a={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=s?XO.default.request(a,c):ZO.default.request(a,c);u.once("error",h=>{l(new Po(h.message,{code:h.code??Po.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new gh("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),i&&h_(i)?i.pipe(u):i?typeof i=="string"||Buffer.isBuffer(i)?u.end(i):qve(i)?u.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(ol.error("Unrecognized body type",i),l(new Po("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?XO.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new XO.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return ZO.default.globalAgent;let n=e.tlsSettings??RIt,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(ol.info("No cached TLS Agent exist, creating a new Agent"),s=new ZO.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function TIt(t){let e=lc();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(
`;return e}function hBt(t){return t instanceof Uint8Array?t.byteLength:IP(t)?t.size===-1?void 0:t.size:void 0}function fBt(t){let e=0;for(let r of t){let i=hBt(r);if(i===void 0)return;e+=i}return e}async function dBt(t,e,r){let i=[wa(`--${r}`,"utf-8"),...e.flatMap(s=>[wa(`\r
`,"utf-8")],n=fBt(i);n&&t.headers.set("Content-Length",n),t.body=await H_e(i)}var m_="multipartPolicy",pBt=70,mBt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ABt(t){if(t.length>pBt)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!mBt.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function BP(){return{name:m_,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${i}`);let[,s,o]=n;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?ABt(r):r=lBt(),t.headers.set("Content-Type",`${s};boundary=${r}`),await dBt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function vP(){return YO()}var j_e=$O({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),BNr=j_e.logger;function bh(t){return j_e.createClientLogger(t)}var wh=bh("core-rest-pipeline");function E9(t={}){return rP({logger:wh.info,...t})}var b9=iP;function w9(t={}){return nP(t)}var _P=z(require("node:os"),1),xP=z(require("node:process"),1);function z_e(){return"User-Agent"}async function V_e(t){if(xP.default&&xP.default.versions){let e=`${_P.default.type()}${_P.default.release()};${_P.default.arch()}`,r=xP.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})`)}}var RP="1.22.2";function SBt(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function $_e(){return z_e()}async function TP(t){let e=new Map;e.set("core-rest-pipeline",RP),await V_e(e);let r=SBt(e);return t?`${t}${r}`:r}var W_e=$_e(),J_e="userAgentPolicy";function C9(t={}){let e=TP(t.userAgentPrefix);return{name:J_e,async sendRequest(r,i){return r.headers.has(W_e)||r.headers.set(W_e,await e),i(r)}}}var dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};function I9(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new dc(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(i?.aborted)return a();try{t(u=>{c(),s(u)},u=>{c(),o(u)})}catch(u){o(u)}i?.addEventListener("abort",l)})}var RBt="The delay was aborted.";function A_(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return I9(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??RBt})}function Fm(t){if(ay(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}function Y_e(t){return ay(t)}function fw(){return oy()}var kr=uy;var K_e=Symbol("rawContent");function B9(t){return typeof t[K_e]=="function"}function X_e(t){return B9(t)?t[K_e]():t}var NP=m_;function v9(){let t=BP();return{name:NP,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)B9(i.body)&&(i.body=X_e(i.body));return t.sendRequest(e,r)}}}var _9=sP;function x9(){return oP()}function R9(t={}){return lP(t)}function T9(){return uP()}function Um(t){return p9(t)}function N9(t,e){return bP(t,e)}var Z_e="setClientRequestIdPolicy";function D9(t="x-ms-client-request-id"){return{name:Z_e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function O9(t){return wP(t)}function P9(t){return CP(t)}var dw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function exe(t={}){let e=new k9(t.parentContext);return t.span&&(e=e.setValue(dw.span,t.span)),t.namespace&&(e=e.setValue(dw.namespace,t.namespace)),e}var k9=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!Zvt(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",an("InvalidTag",h,ko(t,s))}let l=Wvt(t,s);if(l===!1)return an("InvalidAttr","Attributes for '"+c+"' have open quote.",ko(t,s));let u=l.value;if(s=l.index,u[u.length-1]==="/"){let h=s-u.length;u=u.substring(0,u.length-1);let f=Lxe(u,e);if(f===!0)i=!0;else return an(f.err.code,f.err.msg,ko(t,h+f.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return an("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ko(t,o));if(r.length===0)return an("InvalidTag","Closing tag '"+c+"' has not been opened.",ko(t,o));{let h=r.pop();if(c!==h.tagName){let f=ko(t,h.tagStartPos);return an("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+c+"'.",ko(t,o))}r.length==0&&(n=!0)}}else return an("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ko(t,s));else{let h=Lxe(u,e);if(h!==!0)return an(h.err.code,h.err.msg,ko(t,s-u.length+h.err.line));if(n===!0)return an("InvalidXml","Multiple possible root nodes found.",ko(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Qxe(t,s);continue}else if(t[s+1]==="?"){if(s=kxe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let h=Kvt(t,s);if(h==-1)return an("InvalidChar","char '&' is not expected.",ko(t,s));s=h}else if(n===!0&&!Pxe(t[s]))return an("InvalidXml","Extra text at the end",ko(t,s));t[s]==="<"&&s--}}else{if(Pxe(t[s]))continue;return an("InvalidChar","char '"+t[s]+"' is not expected.",ko(t,s))}if(i){if(r.length==1)return an("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ko(t,r[0].tagStartPos));if(r.length>0)return an("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return an("InvalidXml","Start tag expected.",1);return!0}function Pxe(t){return t===" "||t===" "||t===`
`||t==="\r"}function kxe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return an("InvalidXml","XML declaration allowed only at the start of the document.",ko(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Qxe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Vvt='"',$vt="'";function Wvt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===Vvt||t[e]===$vt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var Jvt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Lxe(t,e){let r=GP(t,Jvt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return an("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",x_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return an("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",x_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return an("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",x_(r[n]));let s=r[n][2];if(!Xvt(s))return an("InvalidAttr","Attribute '"+s+"' is an invalid name.",x_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return an("InvalidAttr","Attribute '"+s+"' is repeated.",x_(r[n]))}return!0}function Yvt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Kvt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Yvt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function an(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Xvt(t){return Z9(t)}function Zvt(t){return Z9(t)}function ko(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function x_(t){return t.startIndex+t[1].length}var Mxe={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"},Fxe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Ba("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new N_(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=yw(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(n.removeNSPrefix){let d=h.indexOf(":");d!==-1&&(h=h.substr(d+1))}h=a$(n.transformTagName,h,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(h&&n.unpairedTagsSet.has(h))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${h}>`);f&&n.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",a=u}else if(l===63){let u=c$(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let f=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),s.setXmlVersion(Number(f)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let f=new Ba(u.tagName);f.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(f[":@"]=h),this.addChild(r,f,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=yw(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let h=t.substring(a+4,u-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=s.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=yw(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let f=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:h}]):r.add(n.textNodeName,f),a=u+2}else{let u=c$(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let h=u.tagName,f=u.rawTagName,d=u.tagExp,p=u.attrExpPresent,A=u.closeIndex;if({tagName:h,tagExp:d}=a$(n.transformTagName,h,d,n),n.strictReservedNames&&(h===n.commentPropName||h===n.cdataPropName||h===n.textNodeName||h===n.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let E=r;E&&n.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),d=h):d=d.substr(0,d.length-1),p=h!==d);let b=null,C={},I;I=C_t(f),h!==e.tagname&&this.matcher.push(h,{},I),h!==d&&p&&(b=this.buildAttributesMap(d,this.matcher,h),b&&(C=w_t(b,n))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=a;if(this.isCurrentNodeStopNode){let M="";if(y)a=u.closeIndex;else if(n.unpairedTagsSet.has(h))a=u.closeIndex;else{let j=this.readStopNodeData(t,f,A+1);if(!j)throw new Error(`Unexpected end of ${f}`);a=j.i,M=j.tagContent}let T=new Ba(h);b&&(T[":@"]=b),T.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,T,this.readonlyMatcher,D)}else{if(y){({tagName:h,tagExp:d}=a$(n.transformTagName,h,d,n));let M=new Ba(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(h)){let M=new Ba(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Ba(h);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),r=M}i="",a=A}}}elsei+=t[a];returne.child};functionx
`}),i}getCanonicalizedResourceString(e){let r=ik(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=nk(e.url),s={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();s[c]=n[a],o.push(c)}o.sort();for(let a of o)i+=`
${a}:${decodeURIComponent(s[a])}`}return i}};var Fi=class extends Ey{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Q_(e,r,this)}computeHMACSHA256(e){return(0,ARe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ln=bh("storage-common");var ul;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ul||(ul={}));var zm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ul.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},txt=new dc("The operation was aborted."),L_=class extends Bh{retryOptions;constructor(e,r,i=zm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:zm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):zm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:zm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:zm.maxRetryDelayInMs):zm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:zm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:zm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=rk(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=jm(n.url,kd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Ln.info(`RetryPolicy:=====>Try=${i}${s?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))return o;r=r||!s&&o.status===404}catch(a){if(Ln.error(`RetryPolicy:Caughterror,message:${a.message},code:${a.code}`),!this.shouldRetry(s,i,o,a))throw a}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return Ln.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return Ln.info(`RetryPolicy:Networkerror${o}found,willretry.`),!0}if(i||n){let o=i?i.status:n?n.statusCode:0;if(!e&&o===404)return Ln.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Ln.info(`RetryPolicy:Willretryforstatuscode${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(Dt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Ln.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ul.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ul.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Ln.info(`RetryPolicy:Delayfor${n}ms`),sk(n,i,txt)}};var M_=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new L_(e,r,this.retryOptions)}};var rxt="storageBrowserPolicy";function gRe(){return{name:rxt,async sendRequest(t,e){return kr||((t.method==="GET"||t.method==="HEAD")&&(t.url=jm(t.url,kd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Dt.COOKIE),t.headers.delete(Dt.CONTENT_LENGTH)),e(t)}}}var ixt="StorageCorrectContentLengthPolicy";function yRe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ixt,async send
`}),a}function n(s){let o=ik(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=nk(s.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let f=h.toLowerCase();l[f]=c[h],u.push(f)}u.sort();for(let h of u)a+=`
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new Cu(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function fTt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function dTt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}function pTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,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}}function mTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,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}}function ATt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,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}}function gTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cu(t.version,o,n,void 0,void 0,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}}function _y(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function xy(t){let e=t.version?t.version:lk;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var K_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=fw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gu||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return it.withSpan("BlobLeaseClient-acquireLease",r,async i=>ht(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gu||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return it.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=ht(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==gu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==gu||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
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"}};Dw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Dy=class extends Error{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"}};Dy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ax=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var _Nt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},d7=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);le(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ONe(t,e,r){return _Nt(this,void 0,void 0,function*(){var i;let n=new Iu(t),s=n.getBlockBlobClient(),o=new d7((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),K(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new pQ(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw hr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var kNe=z(require("buffer"),1),jh=z(require("fs"),1),QNe=z(require("stream"),1),LNe=z(require("util"),1);var mQ=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};function AQ(t){return t?t>=200&&t<300:!1}function xNt(t){return t?t>=500:!0}function RNt(t){return t?[Mi.BadGateway,Mi.ServiceUnavailable,Mi.GatewayTimeout].includes(t):!1}function TNt(t){return mQ(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function PNe(t,e,r){return mQ(this,arguments,void 0,function*(i,n,s,o=qO,a=GO,c=void 0){let l="",u=1;for(;u<=o;){let h,f,d=!1;try{h=yield n()}catch(p){c&&(h=c(p)),d=!0,l=p.message}if(h&&(f=s(h),!xNt(f)))return h;if(f&&(d=RNt(f),l=`Cache service responded with ${f}`),K(`${i} - Attempt ${u} of ${o} failed with error: ${l}`),!d){K(`${i} - Error is not retryable`);break}yield TNt(a),u++}throw Error(`${i} failed: ${l}`)})}function cx(t,e){return mQ(this,arguments,void 0,function*(r,i,n=qO,s=GO){return yield PNe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof Ah)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Ow(t,e){return mQ(this,arguments,void 0,function*(r,i,n=qO,s=GO){return yield PNe(r,i,o=>o.message.statusCode,n,s)})}var ml=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};function NNt(t,e){return ml(this,void 0,void 0,function*(){yield LNe.promisify(QNe.pipeline)(t.message,e)})}var gQ=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Othercacheswithsimilarkey:`);for(let a of s?.artifactCaches||[])K(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function g7(t,e,r){return Ra(this,void 0,void 0,function*(){let i=new $Ne.URL(t),n=qNe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield FNe(t,e,n):n.concurrentBlobDownloads?yield MNe(t,e,n):yield yQ(t,e):yield yQ(t,e)})}function JNe(t,e,r){return Ra(this,void 0,void 0,function*(){let i=A7(),n=iw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield cx("reserveCache",()=>Ra(this,void 0,void 0,function*(){return i.postJson(ux("caches"),s)}))})}function VNe(t,e){return`bytes${t}-${e}/*`}function FNt(t,e,r,i,n){return Ra(this,void 0,void 0,function*(){K(`Uploadingchunkofsize${n-i+1}bytesatoffset${i}withcontentrange:${VNe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":VNe(i,n)},o=yield Ow(`uploadChunk(start:${i},end:${n})`,()=>Ra(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!AQ(o.message.statusCode))throw new Error(`Cacheservicerespondedwith${o.message.statusCode}duringuploadchunk.`)})}function UNt(t,e,r,i){return Ra(this,void 0,void 0,function*(){let n=mh(r),s=ux(`caches/${e.toString()}`),o=Pw.openSync(r,"r"),a=p7(i),c=FV("uploadConcurrency",a.uploadConcurrency),l=FV("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];K("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>Ra(this,void 0,void 0,function*(){for(;h<n;){let f=Math.min(n-h,l),d=h,p=h+f-1;h+=l,yield FNt(t,s,()=>Pw.createReadStream(r,{fd:o,start:d,end:p,autoClose:!1}).on("error",A=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${A.message}`)}),d,p)}})))}finally{Pw.closeSync(o)}})}function qNt(t,e,r){return Ra(this,void 0,void 0,function*(){let i={size:r};return yield cx("commitCache",()=>Ra(this,void 0,void 0,function*(){return t.postJson(ux(`caches/${e.toString()}`),i)}))})}function y7(t,e,r,i){return Ra(this,void 0,void 0,function*(){if(p7(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ONe(r,e,i)}else{let s=A7();K("Upload cache"),yield UNt(s,t,e,i),K("Commiting cache");let o=mh(e);le(`CacheSize:~${Math.round(o/(1024*1024))}MB(${o}B)`);let a=yield qNt(s,t,o);if(!AQ(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);le("Cache saved successfully")}})}var H1e=z(Q1e(),1),hn=z(un(),1),Ec=z(un(),1),Ly=z(un(),1),My=z(un(),1),Fy=z(un(),1);var fK=z(un(),1),dK=z(un(),1),U1e=z(un(),1),q1e=z(un(),1),G1e=z(un(),1);var lK=z(un(),1),uK=z(un(),1),L1e=z(un(),1),M1e=z(un(),1),F1e=z(un(),1),hK=class extends F1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,M1e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,L1e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknownfield${a}(wiretype${c})for${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?uK.UnknownFieldHandler.onRead:l)(this.typeName,s,a,c,u)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,lK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,lK.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?uK.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},sL=new hK;var pK=class extends G1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>sL}])}create(e){let r={repositoryId:"0",scope:[]
`));let i=yield RK(r,"create");yield TK(i,t)})}var Kw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},vu=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yw=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},lL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function $1e(t){if(!t||t.length===0)throw new vu("Path Validation Error: At least one directory or file path is required")}function OK(t){if(t.length>512)throw new vu(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new vu(`KeyValidationError:${t}cannotcontaincommas.`)}function PK(){return lx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function W1e(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){let l=lx();return K(`Cacheserviceversion:${l}`),$1e(n),l==="v2"?yield rDt(n,s,o,a,c):yield tDt(n,s,o,a,c)})}function tDt(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let l=[s,...o];if(K("Resolved Keys:"),K(JSON.stringify(l)),l.length>10)throw new vu("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of l)OK(f);let u=yield a_(),h="";try{let f=yield WNe(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!f?.archiveLocation)return;if(a?.lookupOnly)return le("Lookup only - skipping download"),f.cacheKey;h=vx.join(yield s_(),Qm(u)),K(`ArchivePath:${h}`),yield g7(f.archiveLocation,h,a),ey()&&(yield Bx(h,u));let d=mh(h);return le(`CacheSize:~${Math.round(d/(1024*1024))}MB(${d}B)`),yield NK(h,u),le("Cache restored successfully"),f.cacheKey}catch(f){let d=f;if(d.name===vu.name)throw f;d instanceof Ah&&typeof d.statusCode=="number"&&d.statusCode>=500?zb(`Failedtorestore:${f.message}`):hr(`Failedtorestore:${f.message}`)}finally{try{yield o_(h)}catch(f){K(`Failedtodeletearchive:${f}`)}}})}function rDt(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[s,...o];if(K("Resolved Keys:"),K(JSON.stringify(l)),l.length>10)throw new vu("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)OK(h);let u="";try{let h=xK(),f=yield a_(),d={key:s,restoreKeys:o,version:iw(n,f,c)},p=yield h.GetCacheEntryDownloadURL(d);if(!p.ok){K(`Cachenotfoundforversion${d.version}ofkeys:${l.join(", ")}`);return}if(d.key!==p.matchedKey?le(`Cachehitforrestore-key:${p.matchedKey}`):le(`Cachehitfor:${p.matchedKey}`),a?.lookupOnly)return le("Lookup only - skipping download"),p.matchedKey;u=vx.join(yield s_(),Qm(f)),K(`Archivepath:${u}`),K(`Startingdownloadofarchiveto:${u}`),yield g7(p.signedDownloadUrl,u,a);let E=mh(u);return le(`CacheSize:~${Math.round(E/(1024*1024))}MB(${E}B)`),ey()&&(yield Bx(u,f)),yield NK(u,f),le("Cache restored successfully"),p.matchedKey}catch(h){let f=h;if(f.name===vu.name)throw h;f instanceof Ah&&typeof f.statusCode=="number"&&f.statusCode>=500?zb(`Failedtorestore:${h.message}`):hr(`Failedtorestore:${h.message}`)}finally{try{u&&(yield o_(u))}catch(h){K(`Failedtodeletearchive:${h}`)}}})}function kK(t,e,r){return Kw(this,arguments,void 0,function*(i,n,s,o=!1){let a=lx();return K(`Cacheserviceversion:${a}`),$1e(i),OK(n),a==="v2"?yield nDt(i,n,s,o):yield iDt(i,n,s,o)})}function iDt(t,e,r){return Kw(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,l,u,h;let f=yield a_(),d=-1,p=yield MV(i);if(K("Cache Paths:"),K(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let A=yield s_(),E=vx.join(A,Qm(f));K(`ArchivePath:${E}`)
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return f<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:f,raw:d,relax_quotes:p,rtrim:A,skip_empty_lines:E,to:y,to_line:b}=this.options,{comment:C,escape:I,quote:D,record_delimiter:M}=this.options,{bomSkipped:T,previousBuf:j,rawBuffer:Q,escapeIsQuote:Z}=this.state,U;if(j===void 0)if(i===void 0){o();return}else U=i;else j!==void 0&&i===void 0?U=j:U=Buffer.concat([j,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(U.length<3){if(n===!1){this.state.previousBuf=U;return}}else{for(let ue in fC)if(fC[ue].compare(U,0,fC[ue].length)===0){let he=fC[ue].length;this.state.bufBytesStart+=he,U=U.slice(he);let Ce=sZ({...this.original_options,encoding:ue});for(let ne in Ce)this.options[ne]=Ce[ne];({comment:C,escape:I,quote:D}=this.options);break}this.state.bomSkipped=!0}let W=U.length,X;for(X=0;X<W&&!this.__needMoreData(X,W,n);X++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),b!==-1&&this.info.lines>b){this.state.stop=!0,o();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(U,X)&&(M=this.options.record_delimiter);let ue=U[X];if(d===!0&&Q.append(ue),(ue===xMt||ue===RMt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(U,X,ue)&&X+I.length<W)if(Z){if(this.__isQuote(U,X+I.length)){this.state.escaping=!0,X+=I.length-1;continue}}else{this.state.escaping=!0,X+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,X))if(this.state.quoting===!0){let ne=U[X+D.length],ee=A&&this.__isCharTrimable(U,X+D.length),Be=C!==null&&this.__compareBytes(C,U,X+D.length,ne),Ge=this.__isDelimiter(U,X+D.length,ne),nt=M.length===0?this.__autoDiscoverRecordDelimiter(U,X+D.length):this.__isRecordDelimiter(ne,U,X+D.length);if(I!==null&&this.__isEscape(U,X,ue)&&this.__isQuote(U,X+I.length))X+=I.length-1;else if(!ne||Ge||nt||Be||ee){this.state.quoting=!1,this.state.wasQuoting=!0,X+=D.length-1;continue}else if(p===!1){let He=this.__error(new Ir("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(ne)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(He!==void 0)return He}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),X+=D.length-1}else if(this.state.field.length!==0){if(p===!1){let ne=this.__infoField(),ee=Object.keys(fC).map(Ge=>fC[Ge].equals(this.state.field.toString())?Ge:!1).filter(Boolean)[0],Be=this.__error(new Ir("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(ne.column)}atline${ne.lines},valueis${JSON.stringify(this.state.field.toString(l))}`,ee?`(${ee}bom)`:void 0],this.options,ne,{field:this.state.field}));if(Be!==void 0)return Be}}else{this.state.quoting=!0,X+=D.length-1;continue}if(this.state.quoting===!1){let ne=this.__isRecordDelimiter(ue,U,X);if(ne!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),X+=ne-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,X+=ne-1;continue}this.info.bytes=this.state.bufBytesStart+X;let Ge=this.__onField();if(Ge!==void 0)return Ge;this.info.bytes=this.state.bufBytesStart+X+ne;let nt=this.__onRecord(s);if(nt!==void 0)return nt;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,X+=ne-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,U,X,ue)!==0){this.state.commenting=!0;continue}let ee=this.__isDelimiter(U,X,ue);if(ee
`)}var CFt=class extends Error{constructor(t,e,r){super(wFt(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},IFt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],SFt=["query","method","url"],Hke=/\/api\/v3\/?$/;function BFt(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 o in r)if(SFt.includes(o))return Promise.reject(new Error(`[@octokit/graphql]"${o}"cannotbeusedasvariablename`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>IFt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Hke.test(s)&&(n.url=s.replace(Hke,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new CFt(n,a,o.data)}return o.data.data})}function yZ(t,e){let r=t.defaults(e);return Object.assign((n,s)=>BFt(r,n,s),{defaults:yZ.bind(null,r),endpoint:r.endpoint})}var NGr=yZ(Kx,{headers:{"user-agent":`octokit-graphql.js/${bFt}${iA()}`},method:"POST",url:"/graphql"});function jke(t){return yZ(t,{method:"POST",url:"/graphql"})}var EZ="(?:[a-zA-Z0-9_-]+)",zke="\\.",Vke=new RegExp(`^${EZ}${zke}${EZ}${zke}${EZ}$`),vFt=Vke.test.bind(Vke);async function _Ft(t){let e=vFt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function xFt(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}async function RFt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=xFt(t),e(n)}var $ke=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(_Ft.bind(null,e),{hook:RFt.bind(null,e)})};var bZ="7.0.6";var Wke=()=>{},TFt=console.warn.bind(console),NFt=console.error.bind(console);function DFt(t={}){return typeof t.debug!="function"&&(t.debug=Wke),typeof t.info!="function"&&(t.info=Wke),typeof t.warn!="function"&&(t.warn=TFt),typeof t.error!="function"&&(t.error=NFt),t}var Jke=`octokit-core.js/${bZ}${iA()}`,AC=class{static VERSION=bZ;static defaults(e){return class extends this{constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Cke.Collection,i={baseUrl:Kx.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent}${Jke}`:Jke,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=Kx.defaults(i),this.graphql=jke(this.request).defaults(i),this.log=DFt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=$ke(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var wZ="17.0.0";var OFt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
Moreinfo:${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,p=!1;for(let A of o)if(A.remote||A.path.endsWith(l)&&A.content===u){a.push({title:h,message:f,file:A.path,startLine:d}),p=!0;break}p||K(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${l}:${h}`)}return a}};var TZ=z(require("fs"),1),NZ=z(require("path"),1);var BM=class t{buildx;constructor(e){this.buildx=e?.buildx||new Rr}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 i=await this.getInspectCommand(r);return await pt.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.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="",i="",n=[];for(let h of e.refs){let f=h.split("/");if(f.length!=3)throw new Error(`Invalidbuildref:${h}`);n.push(f[2]),r||(r=f[0]),i||(i=f[1])}if(n.length===0)throw new Error("No build refs provided");let s=NZ.default.join(fr.tmpDir(),"export");le(`exportingbuildrecordto${s}`),TZ.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await ke.sleep(3);let o={};if(!e.noSummaries)for(let h of n)await this.inspect({ref:h,builder:r}).then(f=>{let d="";f.Error&&f.Status!=="canceled"&&(f.Error.Message?d=f.Error.Message:f.Error.Name&&f.Error.Logs&&(d=`=>${f.Error.Name}
`," Line feed \\n"]]),cLe=new Map([...cte,["\\"," Backslash \\"],["/"," Forward slash /"]]);function lLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of cLe)if(t.includes(e))throw new Error(`Theartifactnameisnotvalid:${t}.Containsthefollowingcharacter:${r}
ThesecharactersarenotallowedintheartifactnameduetolimitationswithcertainfilesystemssuchasNTFS.Tomaintainfilesystemagnosticbehavior,thesecharactersareintentionallynotallowedtopreventpotentialproblemswithdownloadsondifferentfilesystems.`);ir("Artifact name is valid!")}function lte(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of cte)if(t.includes(e))throw new Error(`Thepathforoneofthefilesinartifactisnotvalid:${t}.Containsthefollowingcharacter:${r}
`)}var dLe=z(fLe(),1);function lf(){return`@actions/artifact-${dLe.version}`}var kC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`:${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Nu=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},tp=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},cA=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},rp=class extends Error{constructor(e){let r=`Unabletomakerequest:${e}
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"}};rp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};eE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var dF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uf(){let t=_M(),e=SM(t);if(!e.scp)throw dF;let r=e.scp.split(" ");if(r.length===0)throw dF;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw dF;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return jt(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),jt(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw dF}function pLe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vM(r),vM(encodeURIComponent(r)))}catch(e){jt(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function mLe(t){if(typeof t!="object"||t===null){jt("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&pLe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&pLe(t.signed_url)}var pF=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},ute=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=_M();this.baseUrl=hQe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Xc(e,[new xm(s)])}request(e,r,i,n){return pF(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;jt(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>pF(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return pF(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),jt(`[Response] - ${a.message.statusCode}`),jt(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let l=JSON.parse(n);if(mLe(l),jt(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:l};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,l.msg){if(eE.isUsageErrorMessage(l.msg))throw new eE;i=`${i}: ${l.msg}`}}catch(a){if(a instanceof SyntaxError&&jt(`Raw Body: ${n}`),a instanceof eE)throw a;if(rp.isNetworkErrorCode(a?.code))throw new rp(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);ir(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Xn.BadGateway,Xn.GatewayTimeout,Xn.InternalServerError,Xn.ServiceUnavailable,Xn.TooManyRequests].includes(e):!1}sleep(e){return pF(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function hf(t){let e=new ute(lf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new fF(e)}var LC=z(require("fs"),1);var QC=require("path");function ALe(t){if(!LC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not
Areyoutryingtodownloadfromadifferentrun?Tryspecifyingagithub-tokenwith\`actions:read\` scope.`);c.length>1&&Ms("Multiple artifacts found, defaulting to first.");letl={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yieldi.GetSignedArtifactURL(l);ir(`Redirecting to blob download url: ${Tje(u)}`);try{ir(`Starting download of artifact to: ${r}`);leth=yieldNje(u,r,e?.skipDecompress);ir("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==h.sha256Digest&&(n=!0,jt(`Computed digest: ${h.sha256Digest}`),jt(`Expected digest: ${e.expectedHash}`))}catch(h){thrownewError(`Unable to download and extract artifact: ${h.message}`)}return{downloadPath:r,digestMismatch:n}})}functionPje(){returnPI(this,arguments,void0,function*(t=fQe()){return(yieldSZt(t))?jt(`Artifact destination folder already exists: ${t}`):(jt(`Artifact destination folder does not exist, creating: ${t}`),yielduse.default.mkdir(t,{recursive:!0})),t})}varvZt=5,_Zt=[400,401,403,404,422];functionkI(t,e=vZt,r=_Zt){vari;if(e<=0)return[{enabled:!1},t.request];letn={enabled:!0};r.length>0&&(n.doNotRetry=r);lets=Object.assign(Object.assign({},t.request),{retries:e});returnjt(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}varkje="6.0.0";functionNE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);leti=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");returne(r).then(o=>{leta=o.headers["x-github-request-id"];returnt.log.info(`${n.method}${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{leta=o.response?.headers["x-github-request-id"]||"UNKNOWN";throwt.log.error(`${n.method}${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}NE.VERSION=kje;varMje=z(Qje(),1);varxZt="0.0.0-development";functionRZt(t){returnt.request!==void0}asyncfunctionLje(t,e,r,i){if(!RZt(r)||!r?.request.request)throwr;if(r.status>=400&&!t.doNotRetry.includes(r.status)){letn=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throwe.retry.retryRequest(r,n,s)}throwr}asyncfunctionTZt(t,e,r,i){letn=newMje.default;returnn.on("failed",function(s,o){leta=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)returnc*t.retryAfterBaseValue}),n.schedule(NZt.bind(null,t,e,r),i)}asyncfunctionNZt(t,e,r,i){letn=awaitr(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){lets=newKd(n.data.errors[0].message,500,{request:i,response:n});returnLje(t,e,s,i)}returnn}functionDE(t,e){letr=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};returnr.enabled&&(t.hook.error("request",Lje.bind(null,r,i)),t.hook.wrap("request",TZt.bind(null,r,i))),i}DE.VERSION=xZt;varFje=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};functionOq(t,e,r,i,n){returnFje(this,void0,void0,function*(){vars;let[o,a]=kI(xE),c={log:void0,userAgent:lf(),previews:void0,retry:o,request:a},u=yieldRA(n,c,DE,NE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(u.status!==200)thrownewNu(`Invalid response from GitHub API: ${u.status} (${(s=u?.headers)===null||s===void0?void0:s["x-github-request-id"]})`);if(u.data.artifacts.length===0)thrownewtp(`Artifact not found for name: ${t}
Formoreinformation,visittheGitHubArtifactsFAQ:https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let h=u.data.artifacts[0];return u.data.artifacts.length>1&&(h=u.data.artifacts.sort((f,d)=>d.id-f.id)[0],jt(`More than one artifact found for a single name, returning newest (id: ${h.id})`)),{artifact:{name:h.name,id:h.id,size:h.size_in_bytes,createdAt:h.created_at?new Date(h.created_at):void 0,digest:h.digest}}})}function Uje(t){return Fje(this,void 0,void 0,function*(){var e;let r=hf(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=uf(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Rn.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new tp(`Artifact not found for name: ${t}
Formoreinformation,visittheGitHubArtifactsFAQ:https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,l)=>Number(l.databaseId)-Number(c.databaseId))[0],jt(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?vc.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var qje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};function Gje(t,e,r,i,n){return qje(this,void 0,void 0,function*(){var s;let[o,a]=kI(xE),c={log:void 0,userAgent:lf(),previews:void 0,retry:o,request:a},l=RA(n,c,DE,NE),u=yield Oq(t,e,r,i,n),h=yield l.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:u.artifact.id});if(h.status!==204)throw new Nu(`Invalid response from GitHub API: ${h.status} (${(s=h?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:u.artifact.id}})}function Hje(t){return qje(this,void 0,void 0,function*(){let e=hf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Rn.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new tp(`Artifact not found for name: ${t}`);let o=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],jt(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return ir(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var jje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},Pq=mQe(),kq=100,DZt=Math.ceil(Pq/kq);function zje(t,e,r,i){return jje(this,arguments,void 0,function*(n,s,o,a,c=!1){ir(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let l=[],[u,h]=kI(xE),f={log:void 0,userAgent:lf(),previews:void 0,retry:u,request:h},d=RA(a,f,DE,NE),p=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:kq,page:p}),E=Math.ceil(A.total_count/kq),y=A.total_count;y>Pq&&(Ms(`Workflow run ${n} has ${y} artifacts, exceeding the limit of ${Pq}. Results will be incomplete as only the first ${Pq} artifacts will be returned`),E=DZt);for(let b of A.artifacts)l.push({name:b.name,id:b.id,size:b.size_in_bytes,createdAt:b.created_at?new Date(b.created_at):void 0,digest:b.digest});for(p++,p;p<=E;p++){jt(`Fetching page ${p} of artifact list`);let{data:b}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:kq,page:p});for(let C of b.artifacts)l.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})}return c&&(l=$je(l)),ir(`Found ${l.length} artifact(s)`),{artifacts:l}})}function Vje(){return jje(this,arguments,void 0,function*(t=!1){let e=hf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?vc.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=$je(o)),ir(`Found ${o.length} artifact(s)`),{artifacts:o}})}function $je(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set
`}return d.replace(/\n$/,"")}e.exports=s})),Zo=Ai(((t,e)=>{var r=$T(),i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function s(a){let c={};return a!==null&&Object.keys(a).forEach(function(l){a[l].forEach(function(u){c[String(u)]=l})}),c}function o(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(i.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=s(c.styleAliases||null),n.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=o})),Kje=Ai(((t,e)=>{var r=$T(),i=Zo();function n(a,c){let l=[];return a[c].forEach(function(u){let h=l.length;l.forEach(function(f,d){f.tag===u.tag&&f.kind===u.kind&&f.multi===u.multi&&(h=d)}),l[h]=u}),l}function s(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){l.multi?(a.multi[l.kind].push(l),a.multi.fallback.push(l)):a[l.kind][l.tag]=a.fallback[l.tag]=l}for(let l=0,u=arguments.length;l<u;l+=1)arguments[l].forEach(c);return a}function o(a){return this.extend(a)}o.prototype.extend=function(c){let l=[],u=[];if(c instanceof i)u.push(c);else if(Array.isArray(c))u=u.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit)))c.implicit&&(l=l.concat(c.implicit)),c.explicit&&(u=u.concat(c.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(f){if(!(f instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(f){if(!(f instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let h=Object.create(o.prototype);return h.implicit=(this.implicit||[]).concat(l),h.explicit=(this.explicit||[]).concat(u),h.compiledImplicit=n(h,"implicit"),h.compiledExplicit=n(h,"explicit"),h.compiledTypeMap=s(h.compiledImplicit,h.compiledExplicit),h},e.exports=o})),Xje=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),Zje=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),eze=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),tze=Ai(((t,e)=>{e.exports=new(Kje())({explicit:[Xje(),Zje(),eze()]})})),rze=Ai(((t,e)=>{var r=Zo();function i(o){if(o===null)return!0;let a=o.length;return a===1&&o==="~"||a===4&&(o==="null"||o==="Null"||o==="NULL")}function n(){return null}function s(o){return o===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:n,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),ize=Ai(((t,e)=>{var r=Zo();function i(o){if(o===null)return!1;let a=o.length;return a===4&&(o==="true"||o==="True"||o==="TRUE")||a===5&&(o==="false"||o==="False"||o==="FALSE")}function n(o){return o==="true"||o==="True"||o==="TRUE"}function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scal
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function W(m){return m<=65535?String.fromCharCode(m):String.fromCharCode((m-65536>>10)+55296,(m-65536&1023)+56320)}function X(m,N,L){N==="__proto__"?Object.defineProperty(m,N,{configurable:!0,enumerable:!0,writable:!0,value:L}):m[N]=L}var ue=new Array(256),he=new Array(256);for(let m=0;m<256;m++)ue[m]=U(m)?1:0,he[m]=U(m);function Ce(m,N){this.input=m,this.filename=N.filename||null,this.schema=N.schema||s,this.onWarning=N.onWarning||null,this.legacy=N.legacy||!1,this.json=N.json||!1,this.listener=N.listener||null,this.maxDepth=typeof N.maxDepth=="number"?N.maxDepth:100,this.maxMergeSeqLength=typeof N.maxMergeSeqLength=="number"?N.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=m.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function ne(m,N){let L={name:m.filename,buffer:m.input.slice(0,-1),position:m.position,line:m.line,column:m.position-m.lineStart};return L.snippet=n(L),new i(N,L)}function ee(m,N){throw ne(m,N)}function Be(m,N){m.onWarning&&m.onWarning.call(null,ne(m,N))}function Ge(m,N,L){let q=m.anchorMapTransactions;if(q.length!==0){let H=q[q.length-1];o.call(H,N)||(H[N]={existed:o.call(m.anchorMap,N),value:m.anchorMap[N]})}m.anchorMap[N]=L}function nt(m){m.anchorMapTransactions.push(Object.create(null))}function He(m){let N=m.anchorMapTransactions.pop(),L=m.anchorMapTransactions;if(L.length===0)return;let q=L[L.length-1],H=Object.keys(N);for(let ie=0,B=H.length;ie<B;ie+=1){let te=H[ie];o.call(q,te)||(q[te]=N[te])}}function At(m){let N=m.anchorMapTransactions.pop(),L=Object.keys(N);for(let q=L.length-1;q>=0;q-=1){let H=N[L[q]];H.existed?m.anchorMap[L[q]]=H.value:delete m.anchorMap[L[q]]}}function Ot(m){return{position:m.position,line:m.line,lineStart:m.lineStart,lineIndent:m.lineIndent,firstTabInLine:m.firstTabInLine,tag:m.tag,anchor:m.anchor,kind:m.kind,result:m.result}}function xt(m,N){m.position=N.position,m.line=N.line,m.lineStart=N.lineStart,m.lineIndent=N.lineIndent,m.firstTabInLine=N.firstTabInLine,m.tag=N.tag,m.anchor=N.anchor,m.kind=N.kind,m.result=N.result}var Kt={YAML:function(N,L,q){N.version!==null&&ee(N,"duplication of %YAML directive"),q.length!==1&&ee(N,"YAML directive accepts exactly one argument");let H=/^([0-9]+)\.([0-9]+)$/.exec(q[0]);H===null&&ee(N,"ill-formed argument of the YAML directive");let ie=parseInt(H[1],10),B=parseInt(H[2],10);ie!==1&&ee(N,"unacceptable YAML version of the document"),N.version=q[0],N.checkLineBreaks=B<2,B!==1&&B!==2&&Be(N,"unsupported YAML version of the document")},TAG:function(N,L,q){let H;q.length!==2&&ee(N,"TAG directive accepts exactly two arguments");let ie=q[0];H=q[1],y.test(ie)||ee(N,"ill-formed tag handle (first argument) of the TAG directive"),o.call(N.tagMap,ie)&&ee(N,'there is a previously declared suffix for "'+ie+'" tag handle'),b.test(H)||ee(N,"ill-formed tag prefix (second argument) of the TAG directive");try{H=decodeURIComponent(H)}catch{ee(N,"tag prefix is malformed: "+H)}N.tagMap[ie]=H}};function gt(m,N,L,q){if(N<L){let H=m.input.slice(N,L);if(q)for(let ie=0,B=H.length;ie<B;ie+=1){let te=H.charCodeAt(ie);te===9||te>=32&&te<=1114111||ee(m,"expected valid JSON character")}else p.test(H)&&ee(m,"the stream contains non-printable characters");m.result+=H}}function Dr(m,N,L,q){r.isObject(L)||ee(m,"cannot merge mappings; the provided source object is unacceptable");let H=Object.keys(L);for(let ie=0,B=H.length;ie<B;ie+=1){let te=H[ie];o.call(N,te)||(X(N,te,L[te]),q[te]=!0)}}function F(m,N,L,q,H,ie,B,te,de){if(Array.isArray(H)){H=Array.prototype.slice.call(H);for(let pe=0,Ae=H.length;pe<Ae;pe+=1)Array.isArray(H[pe])&&ee(m,"nested arrays are not supported inside keys"),typeof H=="object"&&C(H[pe])==="[object Object]"&&(H[p
`,N-1))}function w(m,N,L){let q,H,ie,B,te,de,pe=m.kind,Ae=m.result,we=m.input.charCodeAt(m.position);if(M(we)||T(we)||we===35||we===38||we===42||we===33||we===124||we===62||we===39||we===34||we===37||we===64||we===96)return!1;if(we===63||we===45){let Ee=m.input.charCodeAt(m.position+1);if(M(Ee)||L&&T(Ee))return!1}for(m.kind="scalar",m.result="",q=H=m.position,ie=!1;we!==0;){if(we===58){let Ee=m.input.charCodeAt(m.position+1);if(M(Ee)||L&&T(Ee))break}else if(we===35){if(M(m.input.charCodeAt(m.position-1)))break}else{if(m.position===m.lineStart&&ae(m)||L&&T(we))break;if(I(we))if(B=m.line,te=m.lineStart,de=m.lineIndent,J(m,!1,-1),m.lineIndent>=N){ie=!0,we=m.input.charCodeAt(m.position);continue}else{m.position=H,m.line=B,m.lineStart=te,m.lineIndent=de;break}}ie&&(gt(m,q,H,!1),ye(m,m.line-B),q=H=m.position,ie=!1),D(we)||(H=m.position+1),we=m.input.charCodeAt(++m.position)}return gt(m,q,H,!1),m.result?!0:(m.kind=pe,m.result=Ae,!1)}function R(m,N){let L,q,H=m.input.charCodeAt(m.position);if(H!==39)return!1;for(m.kind="scalar",m.result="",m.position++,L=q=m.position;(H=m.input.charCodeAt(m.position))!==0;)if(H===39)if(gt(m,L,m.position,!0),H=m.input.charCodeAt(++m.position),H===39)L=m.position,m.position++,q=m.position;else return!0;else I(H)?(gt(m,L,q,!0),ye(m,J(m,!1,N)),L=q=m.position):m.position===m.lineStart&&ae(m)?ee(m,"unexpected end of the document within a single quoted scalar"):(m.position++,D(H)||(q=m.position));ee(m,"unexpected end of the stream within a single quoted scalar")}function G(m,N){let L,q,H,ie=m.input.charCodeAt(m.position);if(ie!==34)return!1;for(m.kind="scalar",m.result="",m.position++,L=q=m.position;(ie=m.input.charCodeAt(m.position))!==0;){if(ie===34)return gt(m,L,m.position,!0),m.position++,!0;if(ie===92){if(gt(m,L,m.position,!0),ie=m.input.charCodeAt(++m.position),I(ie))J(m,!1,N);else if(ie<256&&ue[ie])m.result+=he[ie],m.position++;else if((H=Q(ie))>0){let B=H,te=0;for(;B>0;B--)ie=m.input.charCodeAt(++m.position),(H=j(ie))>=0?te=(te<<4)+H:ee(m,"expected hexadecimal character");m.result+=W(te),m.position++}else ee(m,"unknown escape sequence");L=q=m.position}else I(ie)?(gt(m,L,q,!0),ye(m,J(m,!1,N)),L=q=m.position):m.position===m.lineStart&&ae(m)?ee(m,"unexpected end of the document within a double quoted scalar"):(m.position++,D(ie)||(q=m.position))}ee(m,"unexpected end of the stream within a double quoted scalar")}function oe(m,N){let L=!0,q,H,ie,B=m.tag,te,de=m.anchor,pe,Ae,we,Ee,Ue=Object.create(null),De,rt,ct,er=m.input.charCodeAt(m.position);if(er===91)pe=93,Ee=!1,te=[];else if(er===123)pe=125,Ee=!0,te={};else return!1;for(m.anchor!==null&&Ge(m,m.anchor,te),er=m.input.charCodeAt(++m.position);er!==0;){if(J(m,!0,N),er=m.input.charCodeAt(m.position),er===pe)return m.position++,m.tag=B,m.anchor=de,m.kind=Ee?"mapping":"sequence",m.result=te,!0;L?er===44&&ee(m,"expected the node content, but found ','"):ee(m,"missed comma between flow collection entries"),rt=De=ct=null,Ae=we=!1,er===63&&M(m.input.charCodeAt(m.position+1))&&(Ae=we=!0,m.position++,J(m,!0,N)),q=m.line,H=m.lineStart,ie=m.position,Mt(m,N,a,!1,!0),rt=m.tag,De=m.result,J(m,!0,N),er=m.input.charCodeAt(m.position),(we||m.line===q)&&er===58&&(Ae=!0,er=m.input.charCodeAt(++m.position),J(m,!0,N),Mt(m,N,a,!1,!0),ct=m.result),Ee?F(m,te,Ue,rt,De,ct,q,H,ie):Ae?te.push(F(m,null,Ue,rt,De,ct,q,H,ie)):te.push(De),J(m,!0,N),er=m.input.charCodeAt(m.position),er===44?(L=!0,er=m.input.charCodeAt(++m.position)):L=!1}ee(m,"unexpected end of the stream within a flow collection")}function be(m,N){let L,q=h,H=!1,ie=!1,B=N,te=0,de=!1,pe,Ae=m.input.charCodeAt(m.position);if(Ae===124)L=!1;else if(Ae===62)L=!0;else return!1;for(m.kind="scalar",m.result="";Ae!==0;)if(Ae=m.input.charCodeAt(++m.position),Ae===43||Ae===45)h===q?q=Ae===43?d:f:ee(m,"repeat of a chomping mode identifier");else if((pe=Z(Ae))>=0)pe===0?ee(m,"bad explicit indentation width of a block scalar; it cannot be less than one"):ie?ee(m,"repeat of an indentation width identifier"):(B=N+pe-1,ie=!0);else break;if(D(Ae)){do Ae=m.input.charCodeAt(++m.position);while(D(Ae));if(Ae===35)do Ae=m.input.charCod
`,H?1+te:te),H=!0,ie=!0,te=0;let we=m.position;for(;!I(Ae)&&Ae!==0;)Ae=m.input.charCodeAt(++m.position);gt(m,we,m.position,!1)}return!0}function Ne(m,N){let L=m.tag,q=m.anchor,H=[],ie=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&Ge(m,m.anchor,H);let B=m.input.charCodeAt(m.position);for(;B!==0&&(m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,ee(m,"tab characters must not be used in indentation")),!(B!==45||!M(m.input.charCodeAt(m.position+1))));){if(ie=!0,m.position++,J(m,!0,-1)&&m.lineIndent<=N){H.push(null),B=m.input.charCodeAt(m.position);continue}let te=m.line;if(Mt(m,N,l,!1,!0),H.push(m.result),J(m,!0,-1),B=m.input.charCodeAt(m.position),(m.line===te||m.lineIndent>N)&&B!==0)ee(m,"bad indentation of a sequence entry");else if(m.lineIndent<N)break}return ie?(m.tag=L,m.anchor=q,m.kind="sequence",m.result=H,!0):!1}function Re(m,N,L){let q,H,ie,B,te=m.tag,de=m.anchor,pe={},Ae=Object.create(null),we=null,Ee=null,Ue=null,De=!1,rt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&Ge(m,m.anchor,pe);let ct=m.input.charCodeAt(m.position);for(;ct!==0;){!De&&m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,ee(m,"tab characters must not be used in indentation"));let er=m.input.charCodeAt(m.position+1),Or=m.line;if((ct===63||ct===58)&&M(er))ct===63?(De&&(F(m,pe,Ae,we,Ee,null,H,ie,B),we=Ee=Ue=null),rt=!0,De=!0,q=!0):De?(De=!1,q=!0):ee(m,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),m.position+=1,ct=er;else{if(H=m.line,ie=m.lineStart,B=m.position,!Mt(m,L,c,!1,!0))break;if(m.line===Or){for(ct=m.input.charCodeAt(m.position);D(ct);)ct=m.input.charCodeAt(++m.position);if(ct===58)ct=m.input.charCodeAt(++m.position),M(ct)||ee(m,"a whitespace character is expected after the key-value separator within a block mapping"),De&&(F(m,pe,Ae,we,Ee,null,H,ie,B),we=Ee=Ue=null),rt=!0,De=!1,q=!1,we=m.tag,Ee=m.result;else if(rt)ee(m,"can not read an implicit mapping pair; a colon is missed");else return m.tag=te,m.anchor=de,!0}else if(rt)ee(m,"can not read a block mapping entry; a multiline key may not be an implicit key");else return m.tag=te,m.anchor=de,!0}if((m.line===Or||m.lineIndent>N)&&(De&&(H=m.line,ie=m.lineStart,B=m.position),Mt(m,N,u,!0,q)&&(De?Ee=m.result:Ue=m.result),De||(F(m,pe,Ae,we,Ee,Ue,H,ie,B),we=Ee=Ue=null),J(m,!0,-1),ct=m.input.charCodeAt(m.position)),(m.line===Or||m.lineIndent>N)&&ct!==0)ee(m,"bad indentation of a mapping entry");else if(m.lineIndent<N)break}return De&&F(m,pe,Ae,we,Ee,null,H,ie,B),rt&&(m.tag=te,m.anchor=de,m.kind="mapping",m.result=pe),rt}function at(m){let N=!1,L=!1,q,H,ie=m.input.charCodeAt(m.position);if(ie!==33)return!1;m.tag!==null&&ee(m,"duplication of a tag property"),ie=m.input.charCodeAt(++m.position),ie===60?(N=!0,ie=m.input.charCodeAt(++m.position)):ie===33?(L=!0,q="!!",ie=m.input.charCodeAt(++m.position)):q="!";let B=m.position;if(N){do ie=m.input.charCodeAt(++m.position);while(ie!==0&&ie!==62);m.position<m.length?(H=m.input.slice(B,m.position),ie=m.input.charCodeAt(++m.position)):ee(m,"unexpected end of the stream within a verbatim tag")}else{for(;ie!==0&&!M(ie);)ie===33&&(L?ee(m,"tag suffix cannot contain exclamation marks"):(q=m.input.slice(B-1,m.position+1),y.test(q)||ee(m,"named tag handle cannot contain such characters"),L=!0,B=m.position+1)),ie=m.input.charCodeAt(++m.position);H=m.input.slice(B,m.position),E.test(H)&&ee(m,"tag suffix cannot contain flow indicator characters")}H&&!b.test(H)&&ee(m,"tag name cannot contain such characters: "+H);try{H=decodeURIComponent(H)}catch{ee(m,"tag name is malformed: "+H)}return N?m.tag=H:o.call(m.tagMap,q)?m.tag=m.tagMap[q]+H:q==="!"?m.tag="!"+H:q==="!!"?m.tag="tag:yaml.org,2002:"+H:ee(m,'undeclared tag handle "'+q+'"'),!0}function vt(m){let N=m.input.charCodeAt(m.position);if(N!==38)return!1;m.anchor!==null&&ee(m,"duplication of an anchor property"),N=m.input.charCodeAt(++m.position);let L=m.position;for(;N!==0&&!M(N)&&!T(N);)N=m.input.charCodeAt(++m.position);return m.position===L&&ee(m,"name of an anchor node must contain at least one character"),m.anchor=m.input.slice(L,m.position),
`),m.charCodeAt(0)===65279&&(m=m.slice(1)));let L=new Ce(m,N),q=m.indexOf("\0");for(q!==-1&&(L.position=q,ee(L,"null byte is not allowed in input")),L.input+="\0";L.input.charCodeAt(L.position)===32;)L.lineIndent+=1,L.position+=1;for(;L.position<L.length-1;)tr(L);return L.documents}function ve(m,N,L){N!==null&&typeof N=="object"&&typeof L>"u"&&(L=N,N=null);let q=Br(m,L);if(typeof N!="function")return q;for(let H=0,ie=q.length;H<ie;H+=1)N(q[H])}function re(m,N){let L=Br(m,N);if(L.length!==0){if(L.length===1)return L[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=ve,e.exports.load=re})),HZt=Ai(((t,e)=>{var r=VT(),i=$T(),n=pse(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,u=13,h=32,f=33,d=34,p=35,A=37,E=38,y=39,b=42,C=44,I=45,D=58,M=61,T=62,j=63,Q=64,Z=91,U=93,W=96,X=123,ue=124,he=125,Ce={};Ce[0]="\\0",Ce[7]="\\a",Ce[8]="\\b",Ce[9]="\\t",Ce[10]="\\n",Ce[11]="\\v",Ce[12]="\\f",Ce[13]="\\r",Ce[27]="\\e",Ce[34]='\\"',Ce[92]="\\\\",Ce[133]="\\N",Ce[160]="\\_",Ce[8232]="\\L",Ce[8233]="\\P";var ne=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ee=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Be(B,te){if(te===null)return{};let de={},pe=Object.keys(te);for(let Ae=0,we=pe.length;Ae<we;Ae+=1){let Ee=pe[Ae],Ue=String(te[Ee]);Ee.slice(0,2)==="!!"&&(Ee="tag:yaml.org,2002:"+Ee.slice(2));let De=B.compiledTypeMap.fallback[Ee];De&&o.call(De.styleAliases,Ue)&&(Ue=De.styleAliases[Ue]),de[Ee]=Ue}return de}function Ge(B){let te,de,pe=B.toString(16).toUpperCase();if(B<=255)te="x",de=2;else if(B<=65535)te="u",de=4;else if(B<=4294967295)te="U",de=8;else throw new i("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+te+r.repeat("0",de-pe.length)+pe}var nt=1,He=2;function At(B){this.schema=B.schema||n,this.indent=Math.max(1,B.indent||2),this.noArrayIndent=B.noArrayIndent||!1,this.skipInvalid=B.skipInvalid||!1,this.flowLevel=r.isNothing(B.flowLevel)?-1:B.flowLevel,this.styleMap=Be(this.schema,B.styles||null),this.sortKeys=B.sortKeys||!1,this.lineWidth=B.lineWidth||80,this.noRefs=B.noRefs||!1,this.noCompatMode=B.noCompatMode||!1,this.condenseFlow=B.condenseFlow||!1,this.quotingType=B.quotingType==='"'?He:nt,this.forceQuotes=B.forceQuotes||!1,this.replacer=typeof B.replacer=="function"?B.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ot(B,te){let de=r.repeat(" ",te),pe=0,Ae="",we=B.length;for(;pe<we;){let Ee,Ue=B.indexOf(`
`+B.slice(Ee+1):De+=B.slice(Ae),De.slice(1)}function tr(B){let te="",de=0;for(let pe=0;pe<B.length;de>=65536?pe+=2:pe++){de=ye(B,pe);let Ae=Ce[de];!Ae&&Dr(de)?(te+=B[pe],de>=65536&&(te+=B[pe+1])):te+=Ae||Ge(de)}return te}function Br(B,te,de){let pe="",Ae=B.tag;for(let we=0,Ee=de.length;we<Ee;we+=1){let Ue=de[we];B.replacer&&(Ue=B.replacer.call(de,String(we),Ue)),(L(B,te,Ue,!1,!1)||typeof Ue>"u"&&L(B,te,null,!1,!1))&&(pe!==""&&(pe+=","+(B.condenseFlow?"":" ")),pe+=B.dump)}B.tag=Ae,B.dump="["+pe+"]"}function ve(B,te,de,pe){let Ae="",we=B.tag;for(let Ee=0,Ue=de.length;Ee<Ue;Ee+=1){let De=de[Ee];B.replacer&&(De=B.replacer.call(de,String(Ee),De)),(L(B,te+1,De,!0,!0,!1,!0)||typeof De>"u"&&L(B,te+1,null,!0,!0,!1,!0))&&((!pe||Ae!=="")&&(Ae+=xt(B,te)),B.dump&&l===B.dump.charCodeAt(0)?Ae+="-":Ae+="- ",Ae+=B.dump)}B.tag=we,B.dump=Ae||"[]"}function re(B,te,de){let pe="",Ae=B.tag,we=Object.keys(de);for(let Ee=0,Ue=we.length;Ee<Ue;Ee+=1){let De="";pe!==""&&(De+=", "),B.condenseFlow&&(De+='"');let rt=we[Ee],ct=de[rt];B.replacer&&(ct=B.replacer.call(de,rt,ct)),L(B,te,rt,!1,!1)&&(B.dump.length>1024&&(De+="? "),De+=B.dump+(B.condenseFlow?'"':"")+":"+(B.condenseFlow?"":" "),L(B,te,ct,!1,!1)&&(De+=B.dump,pe+=De))}B.tag=Ae,B.dump="{"+pe+"}"}function m(B,te,de,pe){let Ae="",we=B.tag,Ee=Object.keys(de);if(B.sortKeys===!0)Ee.sort();else if(typeof B.sortKeys=="function")Ee.sort(B.sortKeys);else if(B.sortKeys)throw new i("sortKeys must be a boolean or a function");for(let Ue=0,De=Ee.length;Ue<De;Ue+=1){let rt="";(!pe||Ae!=="")&&(rt+=xt(B,te));let ct=Ee[Ue],er=de[ct];if(B.replacer&&(er=B.replacer.call(de,ct,er)),!L(B,te+1,ct,!0,!0,!0))continue;let Or=B.tag!==null&&B.tag!=="?"||B.dump&&B.dump.length>1024;Or&&(B.dump&&l===B.dump.charCodeAt(0)?rt+="?":rt+="? "),rt+=B.dump,Or&&(rt+=xt(B,te)),L(B,te+1,er,!0,Or)&&(B.dump&&l===B.dump.charCodeAt(0)?rt+=":":rt+=": ",rt+=B.dump,Ae+=rt)}B.tag=we,B.dump=Ae||"{}"}function N(B,te,de){let pe=de?B.explicitTypes:B.implicitTypes;for(let Ae=0,we=pe.length;Ae<we;Ae+=1){let Ee=pe[Ae];if((Ee.instanceOf||Ee.predicate)&&(!Ee.instanceOf||typeof te=="object"&&te instanceof Ee.instanceOf)&&(!Ee.predicate||Ee.predicate(te))){if(de?Ee.multi&&Ee.representName?B.tag=Ee.representName(te):B.tag=Ee.tag:B.tag="?",Ee.represent){let Ue=B.styleMap[Ee.tag]||Ee.defaultStyle,De;if(s.call(Ee.represent)==="[object Function]")De=Ee.represent(te,Ue);else if(o.call(Ee.represent,Ue))De=Ee.represent[Ue](te,Ue);else throw new i("!<"+Ee.tag+'> tag resolver accepts not "'+Ue+'" style');B.dump=De}return!0}}return!1}function L(B,te,de,pe,Ae,we,Ee){B.tag=null,B.dump=de,N(B,de,!1)||N(B,de,!0);let Ue=s.call(B.dump),De=pe;pe&&(pe=B.flowLevel<0||B.flowLevel>te);let rt=Ue==="[object Object]"||Ue==="[object Array]",ct,er;if(rt&&(ct=B.duplicates.indexOf(de),er=ct!==-1),(B.tag!==null&&B.tag!=="?"||er||B.indent!==2&&te>0)&&(Ae=!1),er&&B.usedDuplicates[ct])B.dump="*ref_"+ct;else{if(rt&&er&&!B.usedDuplicates[ct]&&(B.usedDuplicates[ct]=!0),Ue==="[object Object]")pe&&Object.keys(B.dump).length!==0?(m(B,te,B.dump,Ae),er&&(B.dump="&ref_"+ct+B.dump)):(re(B,te,B.dump),er&&(B.dump="&ref_"+ct+" "+B.dump));else if(Ue==="[object Array]")pe&&B.dump.length!==0?(B.noArrayIndent&&!Ee&&te>0?ve(B,te-1,B.dump,Ae):ve(B,te,B.dump,Ae),er&&(B.dump="&ref_"+ct+B.dump)):(Br(B,te,B.dump),er&&(B.dump="&ref_"+ct+" "+B.dump));else if(Ue==="[object String]")B.tag!=="?"&&at(B,B.dump,te,we,De);else{if(Ue==="[object Undefined]")return!1;if(B.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+Ue)}if(B.tag!==null&&B.tag!=="?"){let Or=encodeURI(B.tag[0]==="!"?B.tag.slice(1):B.tag).replace(/!/g,"%21");B.tag[0]==="!"?Or="!"+Or:Or.slice(0,18)==="tag:yaml.org,2002:"?Or="!!"+Or.slice(18):Or="!<"+Or+">",B.dump=Or+" "+B.dump}}return!0}function q(B,te){let de=[],pe=[];H(B,de,pe);let Ae=pe.length;for(let we=0;we<Ae;we+=1)te.duplicates.push(de[pe[we]]);te.usedDuplicates=new Array(Ae)}function H(B,te,de){if(B!==null&&typeof B=="object"){let pe=te.indexOf(B);if(pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(te.push(B),Array.isArray(B))for(let Ae=0,we=B.length;Ae<we;Ae+=1)H(B[Ae],t
`:""}e.exports.dump=ie})),pze=UZt(Ai(((t,e)=>{var r=GZt(),i=HZt();function n(s,o){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}e.exports.Type=Zo(),e.exports.Schema=Kje(),e.exports.FAILSAFE_SCHEMA=tze(),e.exports.JSON_SCHEMA=oze(),e.exports.CORE_SCHEMA=aze(),e.exports.DEFAULT_SCHEMA=pse(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=i.dump,e.exports.YAMLException=$T(),e.exports.types={binary:uze(),float:sze(),map:eze(),null:rze(),pairs:fze(),set:dze(),timestamp:cze(),bool:ize(),int:nze(),merge:lze(),omap:hze(),seq:Zje(),str:Xje()},e.exports.safeLoad=n("safeLoad","load"),e.exports.safeLoadAll=n("safeLoadAll","loadAll"),e.exports.safeDump=n("safeDump","dump")}))(),1),{Type:QJr,Schema:LJr,FAILSAFE_SCHEMA:MJr,JSON_SCHEMA:FJr,CORE_SCHEMA:UJr,DEFAULT_SCHEMA:qJr,load:GJr,loadAll:HJr,dump:mze,YAMLException:jJr,types:zJr,safeLoad:VJr,safeLoadAll:$Jr,safeDump:WJr}=pze.default,JJr=pze.default;var Aze=z(require("os"),1);var Mq=class t{static async writeBuildSummary(e){let r=function(c,l,u=!1){return`<ahref="${l}">${c}</a>`+(u?Aze.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=dz.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){let c=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${Vt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.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>"):a.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>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${ke.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.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(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],l;for(let u in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,u)){let h=e.exportRes.summaries[u];c.push([{data:`<code>${u.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${ke.stringToUnicodeEntities(h.name)}</strong>`},
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=Sc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Sc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=ke.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&lh(s),[n,s]}};var gse=z(require("fs"),1),gze=z(require("path"),1);var Fq=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Rr,this.metadataFilename=`bake-metadata-${ke.generateRandomString()}.json`}getMetadataFilePath(){return gze.default.join(fr.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!gse.default.existsSync(e))return;let r=gse.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 i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["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 i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!ke.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await pt.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Sc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=ke.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Sc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Grt=require("crypto"),rd=z(require("fs"),1),mg=z(require("path"),1);var U1=z(JT(),1),id=z(RZe(),1),Hrt=z(Ife(),1),mB=z(krt(),1);var Sde=z(JT(),1);var Lrt=z(_u(),1);var Qrt="application/vnd.oci.empty.v1+json";var im=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await pt.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(K(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(K(`Cosign.isAvailableerror:${r}`),!1));return K(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await pt.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await pt.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return K("Cosign.versionSatisfies false: undefined version"),!1;let n=Lrt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return K(`Cosign.versionSatisfies${i}statisfies${e}:${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===Sde.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===Qrt&&typeof l.digest=="string"&&(i=l.digest)}if(!n&&c&&c.mediaType===Sde.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var Bde=z(require("fs"),1);var oG=class t{buildx;constructor(e){this.buildx=e?.buildx||new Rr}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let o of r.manifests)o.digest&&s.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=s.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=fr.tmpName({tmpdir:fr.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}s.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of n)r.push("--file",a);for(let a of s)r.push(a);let o=await this.getCreat
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,i){return await pt.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Mrt="application/vnd.in-toto+json";var Frt="https://fulcio.sigstore.dev",Urt="https://rekor.sigstore.dev",qrt="https://timestamp.sigstore.dev",D0="https://search.sigstore.dev";var Qwr="slsaprovenance1",Ag=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new im,this.imageTools=e?.imageTools||new oG}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");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 i=this.signingEndpoints(e.noTransparencyLog);le(`UsingSigstoresigningendpoint:${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await Li("Creating Sigstore protobuf signing config",async()=>{let o=fr.tmpName({template:"signing-config-XXXXXX.json",tmpdir:fr.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await pt.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),le(JSON.stringify(JSON.parse(rd.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await Li(`Signingattestationmanifest${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];le(`[command]${this.cosign.binPath}${[...u,l].join(" ")}`);let h=await pt.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=im.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(A=>`-[${A.code}]${A.message}:${A.detail}`).join(`
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosignverifycommandfailedwith:${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){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 i=this.signingEndpoints(e.noTransparencyLog);le(`UsingSigstoresigningendpoint:${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await Li(`Signing${s}`,async()=>{let o=n[s],a=mg.default.join(mg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){hr(`Nosubjectsfoundinprovenance${s},skipsigning.`);return}let l=await t.signPayload({data:o,type:Mrt},i),u=t.parseBundle(l);le("Provenance blob signed for:");for(let h of c){let[f,d]=Object.entries(h.digest)[0]||[];le(`-${h.name}(${f}:${d})`)}u.tlogID&&le(`AttestationsignatureuploadedtoRekortransparencylog:${D0}?logIndex=${u.tlogID}`),le(`WritingSigstorebundleto:${a}`),rd.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[s]={...u,bundlePath:a,subjects:c}})}catch(i){throw new Error(`SigningBuildKitprovenanceblobsfailed:${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=mg.default.dirname(n);await Li(`Verifyingsignaturebundle${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=mg.default.join(o,a.name);le(`Verifyingsignedartifact${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Qwr];(r.noTransparencyLog||!s.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await pt.getExecOutput(this.cosign.binPath,[...l,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:l}}})}return i}async verifyArtifact(e,r,i){le("Verifying keyless verification bundle signature");let n=JSON.parse(rd.default.readFileSync(r,"utf-8")),s=(0,U1.bundleFromJSON)(n);le("Fetching Sigstore TUF trusted root metadata");let o=await Hrt.getTrustedRoot(),a=(0,mB.toTrustMaterial)(o);try{le("Verifying artifact signature");let c=(0,mB.toSignedEntity)(s,rd.default.readFileSync(e)),l=t.parseCertificate(s),u=s.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(i.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${p}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new mB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return K(`Sigstore.verifyArtifactsigner:${JSON.stringify(d)}`),{payload:n,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failedtoverifyartifactsignature:${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),le(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:Frt,rekorURL:e?void 0:Urt,tsaServerURL:qrt}}static noTransparencyLog(e){return e??Vt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=mg.default.join(e.localExportDir,"provenance.json");if(rd.default.existsSync(r))return{[r]:rd.default.readFileSync(r)};let i=rd.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>rd.default.existsSync(mg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of