var$Pe=Object.create;varmB=Object.defineProperty;varjPe=Object.getOwnPropertyDescriptor;varJPe=Object.getOwnPropertyNames;varYPe=Object.getPrototypeOf,WPe=Object.prototype.hasOwnProperty;varo=(t,e)=>mB(t,"name",{value:e,configurable:!0});varKPe=(t,e)=>()=>(t&&(e=t(t=0)),e);varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),CW=(t,e)=>{for(varrine)mB(t,r,{get:e[r],enumerable:!0})},XPe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofJPe(e))!WPe.call(t,i)&&i!==r&&mB(t,i,{get:()=>e[i],enumerable:!(s=jPe(e,i))||s.enumerable});returnt};vark=(t,e,r)=>(r=t!=null?$Pe(YPe(t)):{},XPe(e||!t||!t.__esModule?mB(r,"default",{value:t,enumerable:!0}):r,t));varAK=g(kA=>{"use strict";varFPt=require("net"),Nke=require("tls"),LD=require("http"),dK=require("https"),Rke=require("events"),UPt=require("assert"),vke=require("util");kA.httpOverHttp=Tke;kA.httpsOverHttp=_ke;kA.httpOverHttps=Qke;kA.httpsOverHttps=Pke;functionTke(t){vare=newJl(t);returne.request=LD.request,e}o(Tke,"httpOverHttp");function_ke(t){vare=newJl(t);returne.request=LD.request,e.createSocket=fK,e.defaultPort=443,e}o(_ke,"httpsOverHttp");functionQke(t){vare=newJl(t);returne.request=dK.request,e}o(Qke,"httpOverHttps");functionPke(t){vare=newJl(t);returne.request=dK.request,e.createSocket=fK,e.defaultPort=443,e}o(Pke,"httpsOverHttps");functionJl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||LD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,i,n,a){for(varc=pK(i,n,a),l=0,u=e.requests.length;l<u;++l){varh=e.requests[l];if(h.host===c.host&&h.port===c.port){e.requests.splice(l,1),h.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Jl,"TunnelingAgent");vke.inherits(Jl,Rke.EventEmitter);Jl.prototype.addRequest=o(function(e,r,s,i){varn=this,a=FD({request:e},n.options,pK(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(a);return}n.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){n.emit("free",c,a)}o(l,"onFree");functionu(h){n.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Jl.prototype.createSocket=o(function(e,r){vars=this,i={};s.sockets.push(i);varn=FD({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+newBuffer(n.proxyAuth).toString("base64")),vh("making CONNECT request");vara=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",h),a.end();functionc(d){d.upgrade=!0}o(c,"onResponse");functionl(d,f,p){process.nextTick(function(){u(d,f,p)})}o(l,"onUpgrade");functionu(d,f,p){if(a.removeAllListeners(),f.removeAllListeners(),d.statusCode!==200){vh("tunneling socket could not be established, statusCode=%d",d.statusCode),f.destroy();varA=newError("tunneling socket could not be established, statusCode="+d.statusCode);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}if(p.length>0){vh("got illegal response body from proxy"),f.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}returnvh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=f,r(f)}o(u,"onConnect");functionh(d){a.removeAllListeners(),vh(`tunneling socket could not be established, cause=%s
`);f.push(m),n+=m.byteLength,A&&(n=null),i=t,s=o(async function*(){for(let C of f)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data;boundary=${l}`}else if(wZ(t))i=t,n=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:K2e(t)}if((typeof i=="string"||iC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:h,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!NZ(r)){let f=new Uint8Array(h);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:n},a]}o(TZ,"extractBody");function uFe(t,e=!1){return t instanceof ReadableStream&&(Hk(!iC.isDisturbed(t),"The body has already been consumed."),Hk(!t.locked,"The stream is locked.")),TZ(t,e)}o(uFe,"safelyExtractBody");function hFe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(hFe,"cloneBody");function dFe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(dFe,"throwIfAborted");function fFe(t){return{blob(){return YA(this,r=>{let s=SZ(this);return s===null?s="":s&&(s=aFe(s)),new iFe([r],{type:s})},t)},arrayBuffer(){return YA(this,r=>new Uint8Array(r).buffer,t)},text(){return YA(this,xZ,t)},json(){return YA(this,AFe,t)},formData(){return YA(this,r=>{let s=SZ(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=cFe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new BZ;return n[WA]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new BZ;for(let[a,c]of i)n.append(a,c);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return YA(this,r=>new Uint8Array(r),t)}}}o(fFe,"bodyMixinMethods");function pFe(t){Object.assign(t.prototype,fFe(t))}o(pFe,"mixinBody");async function YA(t,e,r){if(sFe.brandCheck(t,r),_Z(t))throw new TypeError("Body is unusable: Body has already been read");dFe(t[WA]);let s=eFe(),i=o(a=>s.reject(a),"errorSteps"),n=o(a=>{try{s.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[WA].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await tFe(t[WA].body,n,i),s.promise)}o(YA,"consumeBody");function _Z(t){let e=t[WA].body;return e!=null&&(e.stream.locked||iC.isDisturbed(e.stream))}o(_Z,"bodyUnusable");function AFe(t){return JSON.parse(xZ(t))}o(AFe,"parseJSONFromBytes");function SZ(t){let e=t[WA].headersList,r=rFe(e);return r==="failure"?null:r}o(SZ,"bodyMimeType");QZ.exports={extractBody:TZ,safelyExtractBody:uFe,cloneBody:hFe,mixinBody:pFe,streamRegistry:vZ,hasFinalizationRegistry:RZ,bodyUnusable:_Z}});var HZ=g((POt,GZ)=>{"use strict";var Pe=require("node:assert"),Ge=it(),{channels:PZ}=LA(),Vk=xk(),{RequestContentLengthMismatchError:Af,ResponseContentLengthMismatchError:mFe,RequestAbortedError:FZ,HeadersTimeoutError:gFe,HeadersOverflowError:yFe,SocketError:sS,InformationalError:XA,BodyTimeoutError:EFe,HTTPParserError:CFe,ResponseExceededMaxSizeError:IFe}=yt(),{kUrl:UZ,kReset:nn,kClient:Yk,kParser:gr,kBlocking:aC,kRunning:Xs,kPending:bFe,kSize:OZ,kWriting:Qh,kQueue:Na,kNoRef:nC,kKeepAliveDefaultTimeout:wFe,kHostHeader:BFe,kPendingIdx:SFe,kRunningIdx:Ro,kError:vo,kPipelining:tS,kSocket:ZA,kKeepAliveTimeoutValue:iS,kMaxHeadersSize:$k,kKeepAliveMaxTimeout:xFe,kKeepAliveTimeoutThreshold:NFe,kHeadersTimeout:RFe,kBodyTimeout:vFe,kStrictContentLength:Wk,kMaxRequests:DZ,kCounter:TFe,kMaxResponseSize:_Fe,kOnError:QFe,kResume:_h,kHTTPContext:qZ}=nr(),dc=vX(),PFe=Buffer.alloc(0),XB=Buffer[Symbol.species],ZB=Ge.addListener,OFe=Ge.removeAllListeners,jk;async function DFe(){let t=process.env.JEST_WORKER_ID?vk():void 0,e;try{e=await WebAssembly.compile(QX())}catch{e=await WebAssembly.compile(t||vk())}return awa
`}return PZ.sendHeaders.hasSubscribers&&PZ.sendHeaders.publish({request:e,headers:m,socket:p}),!l||f===0?MZ(A,null,t,e,p,h,m,d):Ge.isBuffer(l)?MZ(A,l,t,e,p,h,m,d):Ge.isBlobLike(l)?typeof l.stream=="function"?LZ(A,l.stream(),t,e,p,h,m,d):GFe(A,l,t,e,p,h,m,d):Ge.isStream(l)?qFe(A,l,t,e,p,h,m,d):Ge.isIterable(l)?LZ(A,l,t,e,p,h,m,d):Pe(!1),!0}o(UFe,"writeH1");function qFe(t,e,r,s,i,n,a,c){Pe(n!==0||r[Xs]===0,"stream body cannot be pipelined");let l=!1,u=new nS({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a}),h=o(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(m){Ge.destroy(this,m)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),f=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let A=new FZ;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!l){if(l=!0,Pe(i.destroyed||i[Qh]&&r[Xs]<=1),i.off("drain",d).off("error",p),e.removeListener("data",h).removeListener("end",p).removeListener("close",f),!A)try{u.end()}catch(m){A=m}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Ge.destroy(e,A):Ge.destroy(e)}},"onFinished");e.on("data",h).on("end",p).on("error",p).on("close",f),e.resume&&e.resume(),i.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}o(qFe,"writeStream");function MZ(t,e,r,s,i,n,a,c){try{e?Ge.isBuffer(e)&&(Pe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length:${n}\r
`,"latin1")),s.onRequestSent(),r[_h]()}catch(l){t(l)}}o(MZ,"writeBuffer");async function GFe(t,e,r,s,i,n,a,c){Pe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Af;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length:${n}\r
`,"latin1"),i.write(l),i.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(i[nn]=!0),r[_h]()}catch(l){t(l)}}o(GFe,"writeBlob");async function LZ(t,e,r,s,i,n,a,c){Pe(n!==0||r[Xs]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let h=o(()=>new Promise((f,p)=>{Pe(l===null),i[vo]?p(i[vo]):l=f}),"waitForDrain");i.on("close",u).on("drain",u);let d=new nS({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(i[vo])throw i[vo];d.write(f)||await h()}d.end()}catch(f){d.destroy(f)}finally{i.off("close",u).off("drain",u)}}o(LZ,"writeIterable");var nS=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Qh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[vo])throw r[vo];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(n[Wk])throw new Af;process.emitWarning(new Af)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[nn]=!0),i===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(s[Wk])throw new Af;process.emitWarning(new Af)}e[gr].timeout&&e[gr].timeoutType===em&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),s[_h]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Qh]=!1,e&&(Pe(s[Xs]<=1,"pipeline should only contain this request"),i(e))}};GZ.exports=MFe});var KZ=g((DOt,WZ)=>{"use strict";var To=require("node:assert"),{pipeline:HFe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:eM,RequestAbortedError:zZ,SocketError:cC,InformationalError:tM}=yt(),{kUrl:oS,kReset:cS,kClient:tm,kRunning:lS,kPending:zFe,kQueue:Ph,kPendingIdx:rM,kRunningIdx:Ra,kError:Ta,kSocket:ms,kStrictContentLength:VFe,kOnError:sM,kMaxConcurrentStreams:YZ,kHTTP2Session:va,kResume:Oh,kSize:$Fe,kHTTPContext:jFe}=nr(),eu=Symbol("open streams"),VZ,$Z=!1,aS;try{aS=require("node:http2")}catch{aS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:JFe,HTTP2_HEADER_METHOD:YFe,HTTP2_HEADER_PATH:WFe,HTTP2_HEADER_SCHEME:KFe,HTTP2_HEADER_CONTENT_LENGTH:XFe,HTTP2_HEADER_EXPECT:ZFe,HTTP2_HEADER_STATUS:eUe}}=aS;function tUe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}o(tUe,"parseH2Headers");async function rUe(t,e){t[ms]=e,$Z||($Z=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=aS.connect(t[oS],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[YZ]});r[eu]=0,r[tm]=t,r[ms]=e,lt.addListener(r,"error",iUe),lt.addListener(r,"frameError",nUe),lt.addListener(r,"end",oUe),lt.addListener(r,"goaway",aUe),lt.addListener(r,"close",function(){let{[tm]:i}=this,{[ms]:n}=i,a=this[ms][Ta]||this[Ta]||new cC("closed",lt.getSocketInfo(n));if(i[va]=null,i.destroyed){To(i[zFe]===0);let c=i[Ph].splice(i[Ra]);for(let l=0;l<c.length;l++){let u=c[l];lt.errorRequest(i,u,a)}}}),r.unref(),t[va]=r,e[va]=r,lt.addListener(e,"error",function(i){To(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=i,this[tm][sM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new cC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[Ta]||new cC("closed",lt.getSocketInfo(this));t[ms]=null,this[va]!=null&&this[va].destroy(i),t[rM]=t[Ra],To(t[lS]===0),t.emit("disconnect",t[oS],[t],i),t[Oh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return lUe(t,...i)},resume(){sUe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}o(rUe,"connectH2");function sUe(t){let e=t[ms];e?.destroyed===!1&&(t[$Fe]===0&&t[YZ]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}o(sUe,"resumeH2");function iUe(t){To(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ms][Ta]=t,this[tm][sM](t)}o(iUe,"onHttp2SessionError");function nUe(t,e,r){if(r===0){let s=new tM(`HTTP/2:"frameError"received-type${t},code${e}`);this[ms][Ta]=s,this[tm][sM](s)}}o(nUe,"onHttp2FrameError");function oUe(){let t=new cC("other side closed",lt.getSocketInfo(this[ms]));this.destroy(t),lt.destroy(this[ms],t)}o(oUe,"onHttp2SessionEnd");function aUe(t){let e=this[Ta]||new cC(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,lt.getSocketInfo(this)),r=this[tm];if(r[ms]=null,r[jFe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),lt.destroy(this[ms],e),r[Ra]<r[Ph].length){let s=r[Ph][r[Ra]];r[Ph][r[Ra]++]=null,lt.errorRequest(r,s,e),r[rM]=r[Ra]}To(r[lS]===0),r.emit("disconnect",r[oS],[r],e),r[Oh]()}o(aUe,"onHTTP2GoAway");function cUe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(cUe,"shouldSendContentLength");function lUe(t,e){let r=t[va],{method:s,path:i,host:n,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:h}=e;if(a)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<u.length;x+=2){let R=u[x+0],D=u[x+1];if(Array.isArray(D))for(let O=0;O<D.length;O++)d[R]?d[R]+=`,${D[O]}`:d[R]=D[O];else d[R]=D}let f,{hostname:p,port:A}=t[oS];d[JFe]=n||`${p}
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}:${n[f]}\r
`)+4,e.outputData[0].data=e._header+s.substring(i),tg("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(tg("Creating `tls.Socket`: %o",this.connectOpts),n=HKe.connect(this.connectOpts)):(tg("Creating `net.Socket`: %o",this.connectOpts),n=GKe.connect(this.connectOpts)),await(0,VKe.once)(n,"connect"),n}};kN.protocols=["http","https"];Vo.HttpProxyAgent=kN;function jKe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(jKe,"omit")});var Bhe=g(WN=>{"use strict";Object.defineProperty(WN,"__esModule",{value:!0});WN.state=void 0;WN.state={instrumenterImplementation:void 0}});var qhe=g(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.state=void 0;tR.state={operationRequestMap:new WeakMap}});var Epe=g(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});var Art=require("os"),mrt=require("util");function grt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(grt,"_interopDefaultLegacy");var yrt=grt(mrt);function Ert(t,...e){process.stderr.write(`${yrt.default.format(t,...e)}${Art.EOL}`)}o(Ert,"log");var lpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,hpe,q4=[],G4=[],Cv=[];lpe&&H4(lpe);var dpe=Object.assign(t=>fpe(t),{enable:H4,enabled:z4,disable:Crt,log:Ert});function H4(t){hpe=t,q4=[],G4=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?G4.push(new RegExp(`^${s.substr(1)}$`)):q4.push(new RegExp(`^${s}$`));for(let s of Cv)s.enabled=z4(s.namespace)}o(H4,"enable");function z4(t){if(t.endsWith("*"))return!0;for(let e of G4)if(e.test(t))return!1;for(let e of q4)if(e.test(t))return!0;return!1}o(z4,"enabled");function Crt(){let t=hpe||"";return H4(""),t}o(Crt,"disable");function fpe(t){let e=Object.assign(r,{enabled:z4(t),destroy:Irt,log:dpe.log,namespace:t,extend:brt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return o(r,"debug"),Cv.push(e),e}o(fpe,"createDebugger");function Irt(){let t=Cv.indexOf(this);return t>=0?(Cv.splice(t,1),!0):!1}o(Irt,"destroy");function brt(t){let e=fpe(`${this.namespace}:${t}`);return e.log=this.log,e}o(brt,"extend");var E0=dpe,ppe=new Set,yv=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Iv,bv=E0("azure");bv.log=(...t)=>{E0.log(...t)};var V4=["verbose","info","warning","error"];yv&&(ype(yv)?Ape(yv):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${yv}';loggingisnotenabled.Acceptablevalues:${V4.join(", ")}.`));function Ape(t){if(t&&!ype(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${V4.join(",")}`);Iv=t;let e=[];for(let r of ppe)gpe(r)&&e.push(r.namespace);E0.enable(e.join(","))}o(Ape,"setLogLevel");function wrt(){return Iv}o(wrt,"getLogLevel");var upe={verbose:400,info:300,warning:200,error:100};function Brt(t){let e=bv.extend(t);return mpe(bv,e),{error:Ev(e,"error"),warning:Ev(e,"warning"),info:Ev(e,"info"),verbose:Ev(e,"verbose")}}o(Brt,"createClientLogger");function mpe(t,e){e.log=(...r)=>{t.log(...r)}}o(mpe,"patchLogMethod");function Ev(t,e){let r=Object.assign(t.extend(e),{level:e});if(mpe(t,r),gpe(r)){let s=E0.disable();E0.enable(s+","+r.namespace)}return ppe.add(r),r}o(Ev,"createLogger");function gpe(t){return!!(Iv&&upe[t.level]<=upe[Iv])}o(gpe,"shouldEnable");function ype(t){return V4.includes(t)}o(ype,"isAzureLogLevel");Eg.AzureLogger=bv;Eg.createClientLogger=Brt;Eg.getLogLevel=wrt;Eg.setLogLevel=Ape});var J4=g(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var Cg=new WeakMap,wv=new WeakMap,C0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Cg.set(this,[]),wv.set(this,!1)}get aborted(){if(!wv.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return wv.get(this)}static get none(){return new t}addEventListener(e,r){if(!Cg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Cg.get(this).push(r)}removeEventListener(e,r){if(!Cg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Cg.get(this),i=s.indexOf(r);i>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(uut,"logUnexpecedPropertyAccessOnce");function hut(){Object.keys(t_).forEach(function(t){delete t_[t]})}o(hut,"resetLoggedProperties")});var s_=g(ll=>{"use strict";ll.__esModule=!0;ll.HandlebarsEnvironment=AV;function sEe(t){return t&&t.__esModule?t:{default:t}}o(sEe,"_interopRequireDefault");var Bp=Mi(),dut=lo(),fV=sEe(dut),fut=lV(),put=Zye(),Aut=hV(),r_=sEe(Aut),mut=dV(),gut="4.7.9";ll.VERSION=gut;var yut=8;ll.COMPILER_REVISION=yut;var Eut=7;ll.LAST_COMPATIBLE_COMPILER_REVISION=Eut;var Cut={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"};ll.REVISION_CHANGES=Cut;var pV="[object Object]";function AV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},fut.registerDefaultHelpers(this),put.registerDefaultDecorators(this)}o(AV,"HandlebarsEnvironment");AV.prototype={constructor:AV,logger:r_.default,log:r_.default.log,registerHelper:o(function(e,r){if(Bp.toString.call(e)===pV){if(r)throw new fV.default("Arg not supported with multiple helpers");Bp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Bp.toString.call(e)===pV)Bp.extend(this.partials,e);else{if(typeof r>"u")throw new fV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Bp.toString.call(e)===pV){if(r)throw new fV.default("Arg not supported with multiple decorators");Bp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){mut.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Iut=r_.default.log;ll.log=Iut;ll.createFrame=Bp.createFrame;ll.logger=r_.default});var nEe=g((i_,iEe)=>{"use strict";i_.__esModule=!0;function mV(t){this.string=t}o(mV,"SafeString");mV.prototype.toString=mV.prototype.toHTML=function(){return""+this.string};i_.default=mV;iEe.exports=i_.default});var oEe=g(gV=>{"use strict";gV.__esModule=!0;gV.wrapHelper=but;function but(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(but,"wrapHelper")});var dEe=g(Id=>{"use strict";Id.__esModule=!0;Id.checkRevision=Rut;Id.template=vut;Id.wrapProgram=n_;Id.resolvePartial=Tut;Id.invokePartial=_ut;Id.noop=uEe;function wut(t){return t&&t.__esModule?t:{default:t}}o(wut,"_interopRequireDefault");function But(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(But,"_interopRequireWildcard");var Sut=Mi(),jg=But(Sut),xut=lo(),Qu=wut(xut),Pu=s_(),aEe=lV(),Nut=oEe(),cEe=dV();function Rut(t){var e=t&&t[0]||1,r=Pu.COMPILER_REVISION;if(!(e>=Pu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Pu.COMPILER_REVISION))if(e<Pu.LAST_COMPATIBLE_COMPILER_REVISION){var s=Pu.REVISION_CHANGES[r],i=Pu.REVISION_CHANGES[e];throw new Qu.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new Qu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Rut,"checkRevision");function vut(t,e){if(!e)throw new Qu.default("No environment passed to template");if(!t||!t.main)throw new Qu.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 s(a,c,l){l.hash&&(c=jg.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,c,l,u,h;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),f=0;f<d.length&&(c=this._input.match(this.rules[d[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(h=a[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],n=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
${G1(u)}${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return H1(t,l)}o(pNe,"insert");Co.exports.find=Z0t;async function Z0t(t,e){let r=pw(t,e);try{return(await q1(r)).reduce((i,n)=>n&&n.key===e?H1(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(Z0t,"find");Co.exports.delete=ebt;function ebt(t,e,r={}){if(!r.removeFully)return pNe(t,e,null,r);let s=pw(t,e);return fNe(s,{recursive:!0,force:!0})}o(ebt,"del");Co.exports.lsStream=ANe;function ANe(t){let e=fj(t),r=new V0t({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(U1(),F1)),i=await hj(e);return await s(i,async n=>{let a=vl.join(e,n),c=await hj(a);await s(c,async l=>{let u=vl.join(a,l),h=await hj(u);await s(h,async d=>{let f=vl.join(u,d);try{let A=(await q1(f)).reduce((m,C)=>(m.set(C.key,C),m),new Map);for(let m of A.values()){let C=H1(t,m);C&&r.write(C)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:uj})},{concurrency:uj})},{concurrency:uj}),r.end(),r}).catch(s=>r.emit("error",s)),r}o(ANe,"lsStream");Co.exports.ls=tbt;async function tbt(t){return(await ANe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(tbt,"ls");Co.exports.bucketEntries=q1;async function q1(t,e){let r=await G0t(t,"utf8");return rbt(r,e)}o(q1,"bucketEntries");function rbt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||G1(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}o(rbt,"_bucketEntries");Co.exports.bucketDir=fj;function fj(t){return vl.join(t,`index-v${W0t}`)}o(fj,"bucketDir");Co.exports.bucketPath=pw;function pw(t,e){let r=mNe(e);return vl.join.apply(vl,[fj(t)].concat(Y0t(r)))}o(pw,"bucketPath");Co.exports.hashKey=mNe;function mNe(t){return gNe(t,"sha256")}o(mNe,"hashKey");Co.exports.hashEntry=G1;function G1(t){return gNe(t,"sha1")}o(G1,"hashEntry");function gNe(t,e){return U0t.createHash(e).update(t).digest("hex")}o(gNe,"hash");function H1(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?J0t(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(H1,"formatEntry");function hj(t){return H0t(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(hj,"readdirOrEmpty")});var mw=g($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});$1.LRUCache=void 0;var sbt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ENe=new Set,pj=typeof process=="object"&&process?process:{},CNe=o((t,e,r,s)=>{typeof pj.emitWarning=="function"?pj.emitWarning(t,e,r,s):console.error(`[${r}]${e}:${t}`)},"I"),V1=globalThis.AbortController,yNe=globalThis.AbortSignal;if(typeof V1>"u"){yNe=class{static{o(this,"L")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},V1=class{static{o(this,"C")}constructor(){e()}signal=new yNe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=pj.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,CNe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"t")}var ibt=o(t=>!ENe.has(t),"G"),Gd=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"y"),INe=o(t=>Gd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?z1:null:null,"M"),z1=class extends Array{static{o(this,"z")}constructor(t){super(t),this.fill(0)}},nbt=class Aw{static{o(this,"a")}heap;length;static#e=!1;static create(e){let r=INe(e);if(!r)return[];Aw.#e=!0;let s=new Aw(e,r);return Aw.#e=!1,s}constructor(e,r){if(!Aw.#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]}},obt=class bNe{static{o(this,"a")}#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#B;#S;#E;#C;#b;#R;#c;#O;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#B,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:o(r=>e.#d(r),"isBackgroundFetch"),backgroundFetch:o((r,s,i,n)=>e.#G(r,s,i,n),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#v(r),"indexes"),rindexes:o(r=>e.#T(r),"rindexes"),isStale:o(r=>e.#w(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:c,allowS
globstarwhile`,T,te,P,ke,ot),this.matchOne(T.slice(te),P.slice(ke),M))return this.debug("globstar found match!",te,v,ot),!0;if(ot==="."||ot===".."||!G.dot&&ot.charAt(0)==="."){this.debug("dot detected!",T,te,P,ke);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(M&&(this.debug(`
>>>nomatch,partial?`,T,te,P,ke),te===v))}let st;if(typeof J=="string"?(st=ge===J,this.debug("string match",J,ge,st)):(st=J.test(ge),this.debug("pattern match",J,ge,st)),!st)return!1}if(y===v&&S===F)return!0;if(y===v)return M;if(S===F)return y===v-1&&T[y]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(T){(0,r.assertValidPattern)(T);let P=this.options;if(T==="**")return t.GLOBSTAR;if(T==="")return"";let M,G=null;(M=T.match(E))?G=P.dot?B:I:(M=T.match(c))?G=(P.nocase?P.dot?d:h:P.dot?u:l)(M[1]):(M=T.match(x))?G=(P.nocase?P.dot?D:R:P.dot?O:L)(M):(M=T.match(f))?G=P.dot?A:p:(M=T.match(m))&&(G=C);let W=s.AST.fromGlob(T,this.options).toMMPattern();return G&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:G}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let T=this.set;if(!T.length)return this.regexp=!1,this.regexp;let P=this.options,M=P.noglobstar?j:P.dot?se:Qe,G=new Set(P.nocase?["i"]:[]),W=T.map(v=>{let F=v.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))G.add(te);return typeof ge=="string"?Ht(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});F.forEach((ge,te)=>{let ke=F[te+1],ot=F[te-1];ge!==t.GLOBSTAR||ot===t.GLOBSTAR||(ot===void 0?ke!==void 0&&ke!==t.GLOBSTAR?F[te+1]="(?:\\/|"+M+"\\/)?"+ke:F[te]=M:ke===void 0?F[te-1]=ot+"(?:\\/|\\/"+M+")?":ke!==t.GLOBSTAR&&(F[te-1]=ot+"(?:\\/|\\/"+M+"\\/)"+ke,F[te+1]=t.GLOBSTAR))});let J=F.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&J.length>=1){let ge=[];for(let te=1;te<=J.length;te++)ge.push(J.slice(0,te).join("/"));return"(?:"+ge.join("|")+")"}return J.join("/")}).join("|"),[y,S]=T.length>1?["(?:",")"]:["",""];W="^"+y+W+S+"$",this.partial&&(W="^(?:\\/|"+y+W.slice(1,-1)+S+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...G].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(T){return this.preserveMultipleSlashes?T.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(T)?["",...T.split(/\/+/)]:T.split(/\/+/)}match(T,P=this.partial){if(this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&P)return!0;let M=this.options;this.isWindows&&(T=T.split("\\").join("/"));let G=this.slashSplit(T);this.debug(this.pattern,"split",G);let W=this.set;this.debug(this.pattern,"set",W);let y=G[G.length-1];if(!y)for(let S=G.length-2;!y&&S>=0;S--)y=G[S];for(let S=0;S<W.length;S++){let v=W[S],F=G;if(M.matchBase&&v.length===1&&(F=[y]),this.matchOne(F,v,P))return M.flipNegate?!0:!this.negate}return M.flipNegate?!1:this.negate}static defaults(T){return t.minimatch.defaults(T).Minimatch}};t.Minimatch=rs;var Dn=VNe();Object.defineProperty(t,"AST",{enumerable:!0,get:o(function(){return Dn.AST},"get")});var Rt=$Ne();Object.defineProperty(t,"escape",{enumerable:!0,get:o(function(){return Rt.escape},"get")});var wo=vj();Object.defineProperty(t,"unescape",{enumerable:!0,get:o(function(){return wo.unescape},"get")}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=rs,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),Kbt=Ys(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=o((p,A,m,C)=>{typeof s.emitWarning=="function"?s.emitWarning(p,A,m,C):console.error(`[${m}]${A}:${p}`)},"ls"),n=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof n>"u"){a=class{static{o(this,"os")}onabort;_onabort=[];reason;aborted=!1;addEventListener(m,C){this._onabort.push(C)}},n=class{static{o(this,"Lt")}constructor(){A()}signal=new a;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let C of this.signal._onabort)C(m);this.signal.onabort?.(m)}}};let p=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=o(()=>{p&&(p=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other conte
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}:${n[f]}\r
`);let{connect:u,buffered:h}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",DBt),r.secureEndpoint){vw("Upgrading socket connection to TLS");let f=r.servername||r.host;return jRe.connect({...JRe(r,"host","path","port"),socket:i,servername:Rw.isIP(f)?void 0:f})}return i}i.destroy();let d=new Rw.Socket({writable:!1});return d.readable=!0,e.once("socket",f=>{vw("Replaying proxy buffer for failed request"),(0,TBt.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};uP.protocols=["http","https"];Aa.HttpsProxyAgent=uP;function DBt(t){t.resume()}o(DBt,"resume");function JRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(JRe,"omit")});var tve=g(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var XRe=require("buffer"),hA={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."};gh.ERRORS=hA;function kBt(t){if(!XRe.Buffer.isEncoding(t))throw new Error(hA.INVALID_ENCODING)}o(kBt,"checkEncoding");gh.checkEncoding=kBt;function ZRe(t){return typeof t=="number"&&isFinite(t)&&UBt(t)}o(ZRe,"isFiniteInteger");gh.isFiniteInteger=ZRe;function eve(t,e){if(typeof t=="number"){if(!ZRe(t)||t<0)throw new Error(e?hA.INVALID_OFFSET:hA.INVALID_LENGTH)}else throw new Error(e?hA.INVALID_OFFSET_NON_NUMBER:hA.INVALID_LENGTH_NON_NUMBER)}o(eve,"checkOffsetOrLengthValue");function MBt(t){eve(t,!1)}o(MBt,"checkLengthValue");gh.checkLengthValue=MBt;function LBt(t){eve(t,!0)}o(LBt,"checkOffsetValue");gh.checkOffsetValue=LBt;function FBt(t,e){if(t<0||t>e.length)throw new Error(hA.INVALID_TARGET_OFFSET)}o(FBt,"checkTargetOffset");gh.checkTargetOffset=FBt;function UBt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(UBt,"isInteger");function qBt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof XRe.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}o(qBt,"bigIntAndBufferInt64Check");gh.bigIntAndBufferInt64Check=qBt});var sve=g(Zj=>{"use strict";Object.defineProperty(Zj,"__esModule",{value:!0});var rt=tve(),rve=4096,GBt="utf8",Xj=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=GBt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(rt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(rt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(rt.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(rt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(rve);else{if(typeof e<"u")throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(rve)}}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)}read
`,z1t=/\u2014 (\S+) (\S+)\n/g;function V1t(t,e){let r=t.inclusionProof,s=J9.fromString(r.checkpoint.envelope),i=YO.fromString(s.note);if(!$1t(s,e))throw new nB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(V1t,"verifyCheckpoint");function $1t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>n1e.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?n1e.crypto.verify(r,i.publicKey,s.signature):!1})}o($1t,"verifySignedNote");var J9=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(j9))throw new nB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(j9),s=e.slice(0,r+1),n=e.slice(r+j9.length).matchAll(z1t),a=Array.from(n,c=>{let[,l,u]=c,h=Buffer.from(u,"base64");if(h.length<5)throw new nB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:h.subarray(0,4),signature:h.subarray(4)}});if(a.length===0)throw new nB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},YO=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new nB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,i,n,a)}};oB.LogCheckpoint=YO});var a1e=g(X9=>{"use strict";Object.defineProperty(X9,"__esModule",{value:!0});X9.verifyMerkleInclusion=Y1t;var K9=po(),Y9=Ei(),j1t=Buffer.from([0]),J1t=Buffer.from([1]);function Y1t(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new Y9.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${s}`});let{inner:n,border:a}=W1t(s,i);if(r.hashes.length!==n+a)throw new Y9.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,n),l=r.hashes.slice(n),u=rPt(t.canonicalizedBody),h=X1t(K1t(u,c,s),l);if(!K9.crypto.bufferEqual(h,e.logHash))throw new Y9.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(Y1t,"verifyMerkleInclusion");function W1t(t,e){let r=Z1t(t,e),s=ePt(t>>BigInt(r));return{inner:r,border:s}}o(W1t,"decompInclProof");function K1t(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?W9(i,s):W9(s,i),t)}o(K1t,"chainInner");function X1t(t,e){return e.reduce((r,s)=>W9(s,r),t)}o(X1t,"chainBorderRight");function Z1t(t,e){return tPt(t^e-BigInt(1))}o(Z1t,"innerProofSize");function ePt(t){return t.toString(2).split("1").length-1}o(ePt,"onesCount");function tPt(t){return t===0n?0:t.toString(2).length}o(tPt,"bitLength");function W9(t,e){return K9.crypto.digest("sha256",J1t,t,e)}o(W9,"hashChildren");function rPt(t){return K9.crypto.digest("sha256",j1t,t)}o(rPt,"hashLeaf")});var l1e=g(Z9=>{"use strict";Object.defineProperty(Z9,"__esModule",{value:!0});Z9.verifyTLogSET=nPt;var c1e=po(),sPt=Ei(),iPt=QE();function nPt(t,e){if(!(0,iPt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=oPt(t),a=Buffer.from(c1e.json.canonicalize(n),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return c1e.crypto.verify(a,i.publicKey,c)}))throw new sPt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(nPt,"verifyTLogSET");function oPt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(oPt,"toVerificationPayload")});var h1e=g(WO=>{"use strict";Object.defineProperty(WO,"__esModule",{value:!0});WO.verifyTLogBody=hPt;WO.verifyTLogInclusion=dPt;var u1e=jJ(),rW=Ei(),eW=r1e(),tW=s1e(),aPt=i1e(),cPt=o1e(),lPt=a1e(),uPt=l1e();function hPt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new rW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${s},received:${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==eW.DSSE_API_VERSION_V1)return(0,eW.verifyDSSETLogBody)(i,e);{let n=u1e.Entry.fromJSON(i);return(0,eW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,aPt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==tW.HASHEDREKORD_API_VERSION_V1)return(0,tW.verifyHashedRekordTLogBody)(i,e);{let n=u1e.Entry.fromJSON(i);return(0,tW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new rW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o(hPt,"verifyTLogBody");function dPt(t,e){let r=!1;if(fPt(t)&&((0,uPt.verifyTLogSET)(t,e),r=!0),pPt(t)){let s=(0,cPt.verifyCheckpoint)(t,e);(0,lPt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new rW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(dPt,"verifyTLogInclusion");function fPt(t){return t.inclusionPromise!==void 0}o(fPt,"isTLogEntryWithInclusionPromise");function pPt(t){return t.inclusionProof!==void 0}o(pPt,"isTLogEntryWithInclusionProof")});var m1e=g(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0});KO.Verifier=void 0;var APt=require("util"),P
`;return c.replace(/\n$/,"")}o(uOe,"makeSnippet");var hOe=uOe,dOe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fOe=["scalar","sequence","mapping"];function pOe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}o(pOe,"compileStyleAliases");function AOe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(dOe.indexOf(r)===-1)throw new tn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=pOe(e.styleAliases||null),fOe.indexOf(this.kind)===-1)throw new tn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}o(AOe,"Type$1");var Ws=AOe;function IW(t,e){var r=[];return t[e].forEach(function(s){var i=r.length;r.forEach(function(n,a){n.tag===s.tag&&n.kind===s.kind&&n.multi===s.multi&&(i=a)}),r[i]=s}),r}o(IW,"compileList");function mOe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function s(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(o(s,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(s);return t}o(mOe,"compileMap");function wD(t){return this.extend(t)}o(wD,"Schema$1");wD.prototype.extend=o(function(e){var r=[],s=[];if(e instanceof Ws)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new tn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Ws))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new tn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new tn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(n){if(!(n instanceof Ws))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(wD.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=IW(i,"implicit"),i.compiledExplicit=IW(i,"explicit"),i.compiledTypeMap=mOe(i.compiledImplicit,i.compiledExplicit),i},"extend");var gOe=wD,yOe=new Ws("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),EOe=new Ws("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),COe=new Ws("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),IOe=new gOe({explicit:[yOe,EOe,COe]});function bOe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}o(bOe,"resolveYamlNull");function wOe(){return null}o(wOe,"constructYamlNull");function BOe(t){return t===null}o(BOe,"isNull");var SOe=new Ws("tag:yaml.org,2002:null",{kind:"scalar",resolve:bOe,construct:wOe,predicate:BOe,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});function xOe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}o(xOe,"resolveYamlBoolean");function NOe(t){r
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}o(BW,"simpleEscapeSequence");function wDe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(wDe,"charFromCodepoint");function VW(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}o(VW,"setProperty");var $W=new Array(256),jW=new Array(256);for(lf=0;lf<256;lf++)$W[lf]=BW(lf)?1:0,jW[lf]=BW(lf);var lf;function BDe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||UW,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}o(BDe,"State$1");function JW(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=hOe(r),new tn(e,r)}o(JW,"generateError");function Se(t,e){throw JW(t,e)}o(Se,"throwError");function EB(t,e){t.onWarning&&t.onWarning.call(null,JW(t,e))}o(EB,"throwWarning");var SW={YAML:o(function(e,r,s){var i,n,a;e.version!==null&&Se(e,"duplication of %YAML directive"),s.length!==1&&Se(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),i===null&&Se(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),a=parseInt(i[2],10),n!==1&&Se(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&EB(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,s){var i,n;s.length!==2&&Se(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],HW.test(i)||Se(e,"ill-formed tag handle (first argument) of the TAG directive"),Rh.call(e.tagMap,i)&&Se(e,'there is a previously declared suffix for "'+i+'" tag handle'),zW.test(n)||Se(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Se(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n},"handleTagDirective")};function Nh(t,e,r,s){var i,n,a,c;if(e<r){if(c=t.input.slice(e,r),s)for(i=0,n=c.length;i<n;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||Se(t,"expected valid JSON character");else gDe.test(c)&&Se(t,"the stream contains non-printable characters");t.result+=c}}o(Nh,"captureSegment");function xW(t,e,r,s){var i,n,a,c;for(ss.isObject(r)||Se(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)n=i[a],Rh.call(e,n)||(VW(e,n,r[n]),s[n]=!0)}o(xW,"mergeMappings");function OA(t,e,r,s,i,n,a,c,l){var u,h;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,h=i.length;u<h;u+=1)Array.isArray(i[u])&&Se(t,"nested arrays are not supported inside keys"),typeof i=="object"&&wW(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&wW(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(u=0,h=n.length;u<h;u+=1)xW(t,e,n[u],r);else xW(t,e,n,r);else!t.json&&!Rh.call(r,i)&&Rh.call(e,i)&&(t.line=a||t.line,t.lineStart=c||t.lineStart,t.position=l||t.position,Se(t,"duplicated mapping key")),VW(e,i,n),delete r[i];return e}o(OA,"storeMappingPair");function vD(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Se(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}o(vD,"readLineBreak");function jr(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;uf(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(cc(i))for(vD(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCo
`,e-1))}o(TD,"writeFoldedLines");function SDe(t,e,r){var s,i,n,a,c,l,u,h,d=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),rn(p)||PA(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),rn(i)||r&&PA(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,c=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),rn(i)||r&&PA(i))break}else if(p===35){if(s=t.input.charCodeAt(t.position-1),rn(s))break}else{if(t.position===t.lineStart&&bB(t)||r&&PA(p))break;if(cc(p))if(l=t.line,u=t.lineStart,h=t.lineIndent,jr(t,!1,-1),t.lineIndent>=e){c=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=h;break}}c&&(Nh(t,n,a,!1),TD(t,t.line-l),n=a=t.position,c=!1),uf(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return Nh(t,n,a,!1),t.result?!0:(t.kind=d,t.result=f,!1)}o(SDe,"readPlainScalar");function xDe(t,e){var r,s,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,s=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Nh(t,s,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)s=t.position,t.position++,i=t.position;else return!0;else cc(r)?(Nh(t,s,i,!0),TD(t,jr(t,!1,e)),s=i=t.position):t.position===t.lineStart&&bB(t)?Se(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Se(t,"unexpected end of the stream within a single quoted scalar")}o(xDe,"readSingleQuotedScalar");function NDe(t,e){var r,s,i,n,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return Nh(t,r,t.position,!0),t.position++,!0;if(c===92){if(Nh(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),cc(c))jr(t,!1,e);else if(c<256&&$W[c])t.result+=jW[c],t.position++;else if((a=IDe(c))>0){for(i=a,n=0;i>0;i--)c=t.input.charCodeAt(++t.position),(a=CDe(c))>=0?n=(n<<4)+a:Se(t,"expected hexadecimal character");t.result+=wDe(n),t.position++}else Se(t,"unknown escape sequence");r=s=t.position}else cc(c)?(Nh(t,r,s,!0),TD(t,jr(t,!1,e)),r=s=t.position):t.position===t.lineStart&&bB(t)?Se(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}Se(t,"unexpected end of the stream within a double quoted scalar")}o(NDe,"readDoubleQuotedScalar");function RDe(t,e){var r=!0,s,i,n,a=t.tag,c,l=t.anchor,u,h,d,f,p,A=Object.create(null),m,C,E,I;if(I=t.input.charCodeAt(t.position),I===91)h=93,p=!1,c=[];else if(I===123)h=125,p=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),I=t.input.charCodeAt(++t.position);I!==0;){if(jr(t,!0,e),I=t.input.charCodeAt(t.position),I===h)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=c,!0;r?I===44&&Se(t,"expected the node content, but found ','"):Se(t,"missed comma between flow collection entries"),C=m=E=null,d=f=!1,I===63&&(u=t.input.charCodeAt(t.position+1),rn(u)&&(d=f=!0,t.position++,jr(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,DA(t,e,gB,!1,!0),C=t.tag,m=t.result,jr(t,!0,e),I=t.input.charCodeAt(t.position),(f||t.line===s)&&I===58&&(d=!0,I=t.input.charCodeAt(++t.position),jr(t,!0,e),DA(t,e,gB,!1,!0),E=t.result),p?OA(t,c,A,C,m,E,s,i,n):d?c.push(OA(t,null,A,C,m,E,s,i,n)):c.push(m),jr(t,!0,e),I=t.input.charCodeAt(t.position),I===44?(r=!0,I=t.input.charCodeAt(++t.position)):r=!1}Se(t,"unexpected end of the stream within a flow collection")}o(RDe,"readFlowCollection");function vDe(t,e){var r,s,i=bD,n=!1,a=!1,c=e,l=0,u=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)s=!1;else if(d===62)s=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)bD===i?i=d===43?bW:mDe:Se(t,"repeat of a chomping mode identifier");else if((h=bDe(d))>=0)h===0?Se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Se(t,"repeat of an indentation width identifier"):(c=e+h-1,a=!0);else break;if(uf(d)){do d=t.input.charCodeAt(++t.position);wh
`,n?1+l:l),n=!0,a=!0,l=0,r=t.position;!cc(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Nh(t,r,t.position,!1)}return!0}o(vDe,"readBlockScalar");function NW(t,e){var r,s=t.tag,i=t.anchor,n=[],a,c=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Se(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!rn(a))));){if(c=!0,t.position++,jr(t,!0,-1)&&t.lineIndent<=e){n.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,DA(t,e,GW,!1,!0),n.push(t.result),jr(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Se(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=n,!0):!1}o(NW,"readBlockSequence");function TDe(t,e,r){var s,i,n,a,c,l,u=t.tag,h=t.anchor,d={},f=Object.create(null),p=null,A=null,m=null,C=!1,E=!1,I;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),I=t.input.charCodeAt(t.position);I!==0;){if(!C&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Se(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),n=t.line,(I===63||I===58)&&rn(s))I===63?(C&&(OA(t,d,f,p,A,null,a,c,l),p=A=m=null),E=!0,C=!0,i=!0):C?(C=!1,i=!0):Se(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,I=s;else{if(a=t.line,c=t.lineStart,l=t.position,!DA(t,r,qW,!1,!0))break;if(t.line===n){for(I=t.input.charCodeAt(t.position);uf(I);)I=t.input.charCodeAt(++t.position);if(I===58)I=t.input.charCodeAt(++t.position),rn(I)||Se(t,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(OA(t,d,f,p,A,null,a,c,l),p=A=m=null),E=!0,C=!1,i=!1,p=t.tag,A=t.result;else if(E)Se(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=h,!0}else if(E)Se(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=h,!0}if((t.line===n||t.lineIndent>e)&&(C&&(a=t.line,c=t.lineStart,l=t.position),DA(t,e,yB,!0,i)&&(C?A=t.result:m=t.result),C||(OA(t,d,f,p,A,m,a,c,l),p=A=m=null),jr(t,!0,-1),I=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&I!==0)Se(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return C&&OA(t,d,f,p,A,null,a,c,l),E&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),E}o(TDe,"readBlockMapping");function _De(t){var e,r=!1,s=!1,i,n,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&Se(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(s=!0,i="!!",a=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):Se(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!rn(a);)a===33&&(s?Se(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),HW.test(i)||Se(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),EDe.test(n)&&Se(t,"tag suffix cannot contain flow indicator characters")}n&&!zW.test(n)&&Se(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Se(t,"tag name is malformed: "+n)}return r?t.tag=n:Rh.call(t.tagMap,i)?t.tag=t.tagMap[i]+n:i==="!"?t.tag="!"+n:i==="!!"?t.tag="tag:yaml.org,2002:"+n:Se(t,'undeclared tag handle "'+i+'"'),!0}o(_De,"readTagProperty");function QDe(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Se(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!rn(r)&&!PA(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Se(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new BDe(t,e),s=t.indexOf("\0");for(s!==-1&&(r.position=s,Se(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ODe(r);return r.documents}o(YW,"loadDocuments");function DDe(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var s=YW(t,r);if(typeof e!="function")return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}o(DDe,"loadAll$1");function kDe(t,e){var r=YW(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new tn("expected a single document in the stream, but found more")}}o(kDe,"load$1");var MDe=DDe,LDe=kDe,WW={loadAll:MDe,load:LDe},KW=Object.prototype.toString,XW=Object.prototype.hasOwnProperty,_D=65279,FDe=9,HE=10,UDe=13,qDe=32,GDe=33,HDe=34,BD=35,zDe=37,VDe=38,$De=39,jDe=42,ZW=44,JDe=45,CB=58,YDe=61,WDe=62,KDe=63,XDe=64,eK=91,tK=93,ZDe=96,rK=123,eke=124,sK=125,Ks={};Ks[0]="\\0";Ks[7]="\\a";Ks[8]="\\b";Ks[9]="\\t";Ks[10]="\\n";Ks[11]="\\v";Ks[12]="\\f";Ks[13]="\\r";Ks[27]="\\e";Ks[34]='\\"';Ks[92]="\\\\";Ks[133]="\\N";Ks[160]="\\_";Ks[8232]="\\L";Ks[8233]="\\P";var tke=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],rke=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ske(t,e){var r,s,i,n,a,c,l;if(e===null)return{};for(r={},s=Object.keys(e),i=0,n=s.length;i<n;i+=1)a=s[i],c=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=t.compiledTypeMap.fallback[a],l&&XW.call(l.styleAliases,c)&&(c=l.styleAliases[c]),r[a]=c;return r}o(ske,"compileStyleMap");function ike(t){var e,r,s;if(e=t.toString(16).toUpperCase(),t<=255)r="x",s=2;else if(t<=65535)r="u",s=4;else if(t<=4294967295)r="U",s=8;else throw new tn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ss.repeat("0",s-e.length)+e}o(ike,"encodeHex");var nke=1,zE=2;function oke(t){this.schema=t.schema||UW,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ss.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=ske(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?zE:nke,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(oke,"State");function RW(t,e){for(var r=ss.repeat(" ",e),s=0,i=-1,n="",a,c=t.length;s<c;)i=t.indexOf(`
`+t.slice(a+1):l+=t.slice(i),l.slice(1)}o(PW,"foldLine");function fke(t){for(var e="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=qE(t,i),s=Ks[r],!s&&VE(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||ike(r);return e}o(fke,"escapeString");function pke(t,e,r){var s="",i=t.tag,n,a,c;for(n=0,a=r.length;n<a;n+=1)c=r[n],t.replacer&&(c=t.replacer.call(r,String(n),c)),(Vl(t,e,c,!1,!1)||typeof c>"u"&&Vl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}o(pke,"writeFlowSequence");function OW(t,e,r,s){var i="",n=t.tag,a,c,l;for(a=0,c=r.length;a<c;a+=1)l=r[a],t.replacer&&(l=t.replacer.call(r,String(a),l)),(Vl(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Vl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=SD(t,e)),t.dump&&HE===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}o(OW,"writeBlockSequence");function Ake(t,e,r){var s="",i=t.tag,n=Object.keys(r),a,c,l,u,h;for(a=0,c=n.length;a<c;a+=1)h="",s!==""&&(h+=", "),t.condenseFlow&&(h+='"'),l=n[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Vl(t,e,l,!1,!1)&&(t.dump.length>1024&&(h+="? "),h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Vl(t,e,u,!1,!1)&&(h+=t.dump,s+=h));t.tag=i,t.dump="{"+s+"}"}o(Ake,"writeFlowMapping");function mke(t,e,r,s){var i="",n=t.tag,a=Object.keys(r),c,l,u,h,d,f;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new tn("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)f="",(!s||i!=="")&&(f+=SD(t,e)),u=a[c],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)),Vl(t,e+1,u,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&HE===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=SD(t,e)),Vl(t,e+1,h,!0,d)&&(t.dump&&HE===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=n,t.dump=i||"{}"}o(mke,"writeBlockMapping");function DW(t,e,r){var s,i,n,a,c,l;for(i=r?t.explicitTypes:t.implicitTypes,n=0,a=i.length;n<a;n+=1)if(c=i[n],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(r?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(l=t.styleMap[c.tag]||c.defaultStyle,KW.call(c.represent)==="[object Function]")s=c.represent(e,l);else if(XW.call(c.represent,l))s=c.represent[l](e,l);else throw new tn("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');t.dump=s}return!0}return!1}o(DW,"detectType");function Vl(t,e,r,s,i,n,a){t.tag=null,t.dump=r,DW(t,r,!1)||DW(t,r,!0);var c=KW.call(t.dump),l=s,u;s&&(s=t.flowLevel<0||t.flowLevel>e);var h=c==="[object Object]"||c==="[object Array]",d,f;if(h&&(d=t.duplicates.indexOf(r),f=d!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(h&&f&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),c==="[object Object]")s&&Object.keys(t.dump).length!==0?(mke(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(Ake(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(c==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?OW(t,e-1,t.dump,i):OW(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(pke(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&hke(t,t.dump,e,n,l);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new tn("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}o(Vl,"writeNode");function gke(t,e){var r=[],s=[],i,n;for(ND(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n)}o(gke,"getDuplicateReferences");function ND(t,e,r){var s,i,n;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)ND(t[i],e,r);else for(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)ND(t[s[i]],e,r)}o(ND,"inspectNode");function yke(t,e){e=e||
`:""}o(yke,"dump$1");var Eke=yke,Cke={dump:Eke};function QD(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}o(QD,"renamed");var cK=WW.load,BPt=WW.loadAll,SPt=Cke.dump;var xPt=QD("safeLoad","load"),NPt=QD("safeLoadAll","loadAll"),RPt=QD("safeDump","dump");var uK=k(require("os"),1);function $l(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o($l,"toCommandValue");function PD(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(PD,"toCommandProperties");function jl(t,e,r){let s=new OD(t,e,r);process.stdout.write(s.toString()+uK.EOL)}o(jl,"issueCommand");function DD(t,e=""){jl(t,{},e)}o(DD,"issue");var lK="::",OD=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=lK+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${wke(i)}`)}}return e+=`${lK}${bke(this.message)}`,e}};function bke(t){return $l(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(bke,"escapeData");function wke(t){return $l(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(wke,"escapeProperty");var hK=k(require("crypto"),1),BB=k(require("fs"),1),wB=k(require("os"),1);function SB(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unabletofindenvironmentvariableforfilecommand${t}`);if(!BB.existsSync(r))throw new Error(`Missingfileatpath:${r}`);BB.appendFileSync(r,`${$l(e)}${wB.EOL}`,{encoding:"utf8"})}o(SB,"issueFileCommand");function kD(t,e){let r=`ghadelimiter_${hK.randomUUID()}`,s=$l(e);if(t.includes(r))throw new Error(`Unexpectedinput:nameshouldnotcontainthedelimiter"${r}"`);if(s.includes(r))throw new Error(`Unexpectedinput:valueshouldnotcontainthedelimiter"${r}"`);return`${t}<<${r}${wB.EOL}${s}${wB.EOL}${r}`}o(kD,"prepareKeyValueMessage");var b2=k(require("os"),1),one=k(require("path"),1);var jC=k(require("http"),1),l2=k(require("https"),1);function MD(t){let e=t.protocol==="https:";if(Bke(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new xB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xB(`http://${r}`)}else return}o(MD,"getProxyUrl");function Bke(t){if(!t.hostname)return!1;let e=t.hostname;if(Ske(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(Bke,"checkBypass");function Ske(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Ske,"isLoopbackAddress");var xB=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Jh=k($E(),1),Fie=k(Qm(),1);var Pr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Oo;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(Mf,"getBooleanInput");functionZC(t,e){if(process.env.GITHUB_OUTPUT||"")returnSB("OUTPUT",kD(t,e));process.stdout.write(b2.EOL),jl("set-output",{name:t},$l(e))}o(ZC,"setOutput");functionane(t){process.exitCode=I2.Failure,Dm(t)}o(ane,"setFailed");functionuu(){returnprocess.env.RUNNER_DEBUG==="1"}o(uu,"isDebug");functionQ(t){jl("debug",{},t)}o(Q,"debug");functionDm(t,e={}){jl("error",PD(e),tinstanceofError?t.toString():t)}o(Dm,"error");functionOt(t,e={}){jl("warning",PD(e),tinstanceofError?t.toString():t)}o(Ot,"warning");functionH(t){process.stdout.write(t+b2.EOL)}o(H,"info");functionn5e(t){DD("group",t)}o(n5e,"startGroup");functiono5e(){DD("endgroup")}o(o5e,"endGroup");functionXt(t,e){returni5e(this,void0,void0,function*(){n5e(t);letr;try{r=yielde()}finally{o5e()}returnr})}o(Xt,"group");functionun(t,e){if(process.env.GITHUB_STATE||"")returnSB("STATE",kD(t,e));jl("save-state",{name:t},$l(e))}o(un,"saveState");functioncne(t){returnprocess.env[`STATE_${t}`]||""}o(cne,"getState");varRT=k(require("fs"),1),Tz=k(require("os"),1),_z=k(require("path"),1);varune=k(require("os"),1);functioneI(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(eI,"toCommandValue");functionhne(t,e,r){lets=neww2(t,e,r);process.stdout.write(s.toString()+une.EOL)}o(hne,"issueCommand");varlne="::",w2=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=lne+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){leti=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${c5e(i)}`)}}returne+=`${lne}${a5e(this.message)}`,e}};functiona5e(t){returneI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(a5e,"escapeData");functionc5e(t){returneI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(c5e,"escapeProperty");varAne=k(require("os"),1);varfne=require("os"),tI=require("fs");varB2=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(a){a(n)})}returno(i,"adopt"),new(r||(r=Promise))(function(n,a){functionc(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");functionl(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");functionu(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:l5e,appendFile:u5e,writeFile:h5e}=tI.promises,dne="GITHUB_STEP_SUMMARY";varS2=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returnB2(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[dne];if(!e)thrownewError(`Unable to find environment variable for $${dne}. Check if your runtime environment supports job summaries.`);try{yieldl5e(e,tI.constants.R_OK|tI.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,s={}){leti=Object.entries(s).map(([n,a])=>`${n}="${a}"`).join("");returnr?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){returnB2(this,void0,void0,function*(){letr=!!e?.overwrite,s=yieldthis.filePath();returnyield(r?h5e:u5e)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnB2(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(fne.EOL)}addCodeBlock(e,r){lets=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),s);returnthis.addRaw(i).addEOL()}addList(e,r=!1){lets=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),n=this.wrap(s,i);returnthis.addRaw(n).addEOL()}addTable(e){letr=e.map(i=>{letn=i.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);l
${wWe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function AN(t){return t instanceof Ti?!0:zf(t)&&t.name==="RestError"}o(AN,"isRestError");function hn(t,e){return Buffer.from(t,e)}o(hn,"stringToUint8Array");var mN=k(require("node:http"),1),gN=k(require("node:https"),1),YF=k(require("node:zlib"),1),lue=require("node:stream");var Go=RI("ts-http-runtime");var BWe={};function vI(t){return t&&typeof t.pipe=="function"}o(vI,"isReadableStream");function cue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(cue,"isStreamComplete");function uue(t){return t&&typeof t.byteLength=="number"}o(uue,"isArrayBuffer");var yN=class extends lue.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},WF=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Rc("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Ua;Go.info(`requestto'${u.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),a=n?.includes("gzip")||n?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=RWe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,m=new yN(A);m.on("error",C=>{Go.error("Error in upload progress",C)}),vI(c)?c.pipe(m):m.end(c),c=m}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let h=SWe(u),f={status:u.statusCode??0,headers:h,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?xWe(u,h):u;let p=e.onDownloadProgress;if(p){let A=new yN(p);A.on("error",m=>{Go.error("Error in download progress",m)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await NWe(l),f}finally{if(e.abortSignal&&s){let u=Promise.resolve();vI(c)&&(u=cue(c));let h=Promise.resolve();vI(l)&&(h=cue(l)),Promise.all([u,h]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Go.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let h=n?mN.default.request(c,l):gN.default.request(c,l);h.once("error",d=>{u(new Ti(d.message,{code:d.code??Ti.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Rc("The operation was aborted. Rejecting from abort signal callback while making request.");h.destroy(d),u(d)}),s&&vI(s)?s.pipe(h):s?typeof s=="string"||Buffer.isBuffer(s)?h.end(s):uue(s)?h.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Go.error("Unrecognized body type",s),u(new Ti("Unrecognized body type"))):h.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?mN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new mN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return gN.default.globalAgent;let i=e.tlsSettings??BWe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Go.info("No cached TLS Agent exi
`;return e}o(nXe,"encodeHeaders");function oXe(t){return t instanceof Uint8Array?t.byteLength:qN(t)?t.size===-1?void 0:t.size:void 0}o(oXe,"getLength");function aXe(t){let e=0;for(let r of t){let s=oXe(r);if(s===void 0)return;e+=s}return e}o(aXe,"getTotalLength");async function cXe(t,e,r){let s=[hn(`--${r}`,"utf-8"),...e.flatMap(n=>[hn(`\r
`,"utf-8")],i=aXe(s);i&&t.headers.set("Content-Length",i),t.body=await dhe(s)}o(cXe,"buildRequestBody");var PI="multipartPolicy",lXe=70,uXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hXe(t){if(t.length>lXe)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!uXe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}o(hXe,"assertValidBoundary");function HN(){return{name:PI,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,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,n,a]=i;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?hXe(r):r=iXe(),t.headers.set("Content-Type",`${n};boundary=${r}`),await cXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(HN,"multipartPolicy");function zN(){return pN()}o(zN,"createEmptyPipeline");var fhe=hN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),AVt=fhe.logger;function _c(t){return fhe.createClientLogger(t)}o(_c,"createClientLogger");var Qc=_c("core-rest-pipeline");function mU(t={}){return CN({logger:Qc.info,...t})}o(mU,"logPolicy");var gU=IN;function yU(t={}){return bN(t)}o(yU,"redirectPolicy");var VN=k(require("node:os"),1),$N=k(require("node:process"),1);function phe(){return"User-Agent"}o(phe,"getHeaderName");async function Ahe(t){if($N.default&&$N.default.versions){let e=`${VN.default.type()}${VN.default.release()};${VN.default.arch()}`,r=$N.default.versions;r.bun?t.set("Bun",`${r.bun}(${e})`):r.deno?t.set("Deno",`${r.deno}(${e})`):r.node&&t.set("Node",`${r.node}(${e})`)}}o(Ahe,"setPlatformSpecificData");var jN="1.22.2";function EXe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}o(EXe,"getUserAgentString");function mhe(){return phe()}o(mhe,"getUserAgentHeaderName");async function JN(t){let e=new Map;e.set("core-rest-pipeline",jN),await Ahe(e);let r=EXe(e);return t?`${t}${r}`:r}o(JN,"getUserAgentValue");var ghe=mhe(),yhe="userAgentPolicy";function EU(t={}){let e=JN(t.userAgentPrefix);return{name:yhe,async sendRequest(r,s){return r.headers.has(ghe)||r.headers.set(ghe,await e),s(r)}}}o(EU,"userAgentPolicy");var eo=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function CU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,a)=>{function c(){a(new eo(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(h=>{l(),n(h)},h=>{l(),a(h)})}catch(h){a(h)}s?.addEventListener("abort",u)})}o(CU,"createAbortablePromise");var BXe="The delay was aborted.";function OI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return CU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:i??BXe})}o(OI,"delay");function nd(t){if(zf(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}`}}o(nd,"getErrorMessage");function Ehe(t){return zf(t)}o(Ehe,"isError");function rg(){return Hf()}o(rg,"randomUUID");var xt=jf;var Che=Symbol("rawContent");function bU(t){return typeof t[Che]=="function"}o(bU,"hasRawContent");function Ihe(t){return bU(t)?t[Che]():t}o(Ihe,"getRawContent");var YN=PI;function wU(){let t=HN();return{name:YN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)bU(s.body)&&(s.body=Ihe(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(wU,"multipartPolicy");var BU=wN;function SU(){return BN()}o(SU,"decompressResponsePolicy");fun
`&&t[n]!=="\r";n++)l+=t[n];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),n--),!JZe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",Dr("InvalidTag",d,_i(t,n))}let u=HZe(t,n);if(u===!1)return Dr("InvalidAttr","Attributes for '"+l+"' have open quote.",_i(t,n));let h=u.value;if(n=u.index,h[h.length-1]==="/"){let d=n-h.length;h=h.substring(0,h.length-1);let f=ode(h,e);if(f===!0)s=!0;else return Dr(f.err.code,f.err.msg,_i(t,d+f.err.line))}else if(c)if(u.tagClosed){if(h.trim().length>0)return Dr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",_i(t,a));if(r.length===0)return Dr("InvalidTag","Closing tag '"+l+"' has not been opened.",_i(t,a));{let d=r.pop();if(l!==d.tagName){let f=_i(t,d.tagStartPos);return Dr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",_i(t,a))}r.length==0&&(i=!0)}}else return Dr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",_i(t,n));else{let d=ode(h,e);if(d!==!0)return Dr(d.err.code,d.err.msg,_i(t,n-h.length+d.err.line));if(i===!0)return Dr("InvalidXml","Multiple possible root nodes found.",_i(t,n));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=nde(t,n);continue}else if(t[n+1]==="?"){if(n=ide(t,++n),n.err)return n}else break;else if(t[n]==="&"){let d=$Ze(t,n);if(d==-1)return Dr("InvalidChar","char '&' is not expected.",_i(t,n));n=d}else if(i===!0&&!sde(t[n]))return Dr("InvalidXml","Extra text at the end",_i(t,n));t[n]==="<"&&n--}}else{if(sde(t[n]))continue;return Dr("InvalidChar","char '"+t[n]+"' is not expected.",_i(t,n))}if(s){if(r.length==1)return Dr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_i(t,r[0].tagStartPos));if(r.length>0)return Dr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Dr("InvalidXml","Start tag expected.",1);return!0}o(cR,"validate");function sde(t){return t===" "||t===" "||t===`
`||t==="\r"}o(sde,"isWhiteSpace");function ide(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Dr("InvalidXml","XML declaration allowed only at the start of the document.",_i(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(ide,"readPI");function nde(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(nde,"readCommentAndCDATA");var qZe='"',GZe="'";function HZe(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===qZe||t[e]===GZe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}o(HZe,"readAttributeStr");var zZe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ode(t,e){let r=oR(t,zZe),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Dr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",$I(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Dr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",$I(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Dr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",$I(r[i]));let n=r[i][2];if(!jZe(n))return Dr("InvalidAttr","Attribute '"+n+"' is an invalid name.",$I(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Dr("InvalidAttr","Attribute '"+n+"' is repeated.",$I(r[i]))}return!0}o(ode,"validateAttributeString");function VZe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(VZe,"validateNumberAmpersand");function $Ze(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,VZe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o($Ze,"validateAmpersand");function Dr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Dr,"getErrorObject");function jZe(t){return WU(t)}o(jZe,"validateAttrName");function JZe(t){return WU(t)}o(JZe,"validateTagName");function _i(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(_i,"getLineNumberForPosition");function $I(t){return t.startIndex+t[1].length}o($I,"getPositionFromMatch");var ade={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"},cde={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new An("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new YI(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let h=cg(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,h).trim();if(i.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=iq(i.transformTagName,d,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${d}>`);f&&i.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=h}else if(u===63){let h=nq(t,c,!1,"?>");if(!h)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(h.tagExp,this.matcher,h.tagName,!0);if(d){let f=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),n.setXmlVersion(Number(f)||1)}if(!(i.ignoreDeclaration&&h.tagName==="?xml"||i.ignorePiTags)){let f=new An(h.tagName);f.add(i.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&i.ignoreAttributes!==!0&&(f[":@"]=d),this.addChild(r,f,this.readonlyMatcher,c)}c=h.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let h=cg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let d=t.substring(c+4,h-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:d}])}c=h}else if(u===33&&t.charCodeAt(c+2)===68){let h=n.readDocType(t,c);this.entityDecoder.addInputEntities(h.entities),c=h.i}else if(u===33&&t.charCodeAt(c+2)===91){let h=cg(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,h);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let f=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:d}]):r.add(i.textNodeName,f),c=h+2}else{let h=nq(t,c,i.removeNSPrefix);if(!h){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=h.tagName,f=h.rawTagName,p=h.tagExp,A=h.attrExpPresent,m=h.closeIndex;if({tagName:d,tagExp:p}=iq(i.transformTagName,d,p,i),i.strictReservedNames&&(d===i.commentPropName||d===i.cdataPropName||d===i.textNodeName||d===i.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&i.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),A=d!==p);let I=null,B={},x;x=g7e(f),d!==e.tagname&&this.matcher.push(d,{},x),d!==p&&A&&(I=this.buildAttributesMap(p,this.matcher,d),I&&(B=m7e(I,i))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=h.closeIndex;else if(i.unpairedTagsSet.has(d))c=h.closeIndex;else{let L=this.readStopNodeData(t,f,m+1);if(!L)throw new Error(`Unexpected end of ${f}`);c=L.i,D=L.tagContent}let O=new An(d);I&&(O[":@"]=I),O.add(i.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,O,this.readonlyMatcher,R)}else{if(E){({tagName:d,tagExp:p}=iq(i.transformTagName,d,p,i));let D=new An(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(d)){let D=new An(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=h.closeIndex;continue}else{let D=new An(d);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),r=D}s="",c=m}}}else s+=t[c];return e.child},"parseXml"
`}),s}getCanonicalizedResourceString(e){let r=IR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=bR(e.url),n={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();n[l]=i[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(n[c])}`}return s}};var Er=class extends rp{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new e0(e,r,this)}computeHMACSHA256(e){return(0,Fde.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var os=_c("storage-common");var $o;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})($o||($o={}));var hd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$o.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},W7e=new eo("The operation was aborted."),t0=class extends kc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=hd){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:hd.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):hd.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:hd.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:hd.maxRetryDelayInMs):hd.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:hd.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:hd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=CR(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=ud(i.url,Eu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(os.info(`RetryPolicy:=====>Try=${s}${n?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,a))return a;r=r||!n&&a.status===404}catch(c){if(os.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(n,s,a,c))throw c}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return os.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of n)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return os.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(s||i){let a=s?s.status:i?i.statusCode:0;if(!e&&a===404)return os.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return os.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(os.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case $o.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case $o.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return os.info(`RetryPolicy:Delayfor${i}ms`),wR(i,s,W7e)}};var r0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new t0(e,r,this.retryOptions)}};var K7e="storageBrowserPolicy";function Ude(){return{name:K7e,async sendRequest(t,e){return xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ud(t.url,Eu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(Ude,"storageBrowserPolicy");var X7e="StorageCorrectContentLengthPolicy";function qde(){function t(e){e.body&&(
`}),c}o(s,"getCanonicalizedHeadersString");function i(n){let a=IR(n.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=bR(n.url),u={};if(l){let h=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let f=d.toLowerCase();u[f]=l[d],h.push(f)}h.sort();for(let d of h)c+=`
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new $a(t.version,n,s,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:i}}o(crt,"generateBlobSASQueryParameters20150405");function lrt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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}}o(lrt,"generateBlobSASQueryParameters20181109");function urt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}o(urt,"generateBlobSASQueryParameters20201206");function hrt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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,e.userDelegationKey),stringToSign:n}}o(hrt,"generateBlobSASQueryParametersUDK20181109");function drt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}o(drt,"generateBlobSASQueryParametersUDK20200210");function frt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}o(frt,"generateBlobSASQueryParametersUDK20201206");function prt(t,e){if(t=hp(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Zc.parse(t.permissions.toString()).toString():i=el.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",up(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Va(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new $a(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}o(prt,"generateBlobSASQueryParametersUDK20250705");function up(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(up,"getCanonicalName");function hp(t){let e=t.version?t.version:NR;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}o(hp,"SASSignatureValuesSanityCheckAndAutofill");var A0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=rg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qa||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async s=>Re(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==qa||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 Be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=Re(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};bg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ap=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ap.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var S0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var hst=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},a8=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);H(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function rAe(t,e,r){return hst(this,void 0,void 0,function*(){var s;let i=new Ru(t),n=i.getBlockBlobClient(),a=new a8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),Q(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield n.uploadFile(e,c);if(l._response.status>=400)throw new Qv(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ot(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(rAe,"uploadCacheArchiveSDK");var iAe=k(require("buffer"),1),tl=k(require("fs"),1),nAe=k(require("stream"),1),oAe=k(require("util"),1);var Pv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Ov(t){return t?t>=200&&t<300:!1}o(Ov,"isSuccessStatusCode");function dst(t){return t?t>=500:!0}o(dst,"isServerErrorStatusCode");function fst(t){return t?[yr.BadGateway,yr.ServiceUnavailable,yr.GatewayTimeout].includes(t):!1}o(fst,"isRetryableStatusCode");function pst(t){return Pv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(pst,"sleep");function sAe(t,e,r){return Pv(this,arguments,void 0,function*(s,i,n,a=nN,c=oN,l=void 0){let u="",h=1;for(;h<=a;){let d,f,p=!1;try{d=yield i()}catch(A){l&&(d=l(A)),p=!0,u=A.message}if(d&&(f=n(d),!dst(f)))return d;if(f&&(p=fst(f),u=`Cache service responded with ${f}`),Q(`${s} - Attempt ${h} of ${a} failed with error: ${u}`),!p){Q(`${s} - Error is not retryable`);break}yield pst(c),h++}throw Error(`${s} failed: ${u}`)})}o(sAe,"retry");function x0(t,e){return Pv(this,arguments,void 0,function*(r,s,i=nN,n=oN){return yield sAe(r,s,a=>a.statusCode,i,n,a=>{if(a instanceof Nc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(x0,"retryTypedResponse");function wg(t,e){return Pv(this,arguments,void 0,function*(r,s,i=nN,n=oN){return yield sAe(r,s,a=>a.message.statusCode,i,n)})}o(wg,"retryHttpClientResponse");var Ko=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a
Othercacheswithsimilarkey:`);for(let c of n?.artifactCaches||[])Q(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(bst,"printCachesListForDiagnostics");function h8(t,e,r){return En(this,void 0,void 0,function*(){let s=new mAe.URL(t),i=uAe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield cAe(t,e,i):i.concurrentBlobDownloads?yield aAe(t,e,i):yield kv(t,e):yield kv(t,e)})}o(h8,"downloadCache");function yAe(t,e,r){return En(this,void 0,void 0,function*(){let s=u8(),i=jm(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield x0("reserveCache",()=>En(this,void 0,void 0,function*(){return s.postJson(R0("caches"),n)}))})}o(yAe,"reserveCache");function AAe(t,e){return`bytes${t}-${e}/*`}o(AAe,"getContentRange");function wst(t,e,r,s,i){return En(this,void 0,void 0,function*(){Q(`Uploadingchunkofsize${i-s+1}bytesatoffset${s}withcontentrange:${AAe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":AAe(s,i)},a=yield wg(`uploadChunk(start:${s},end:${i})`,()=>En(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Ov(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}o(wst,"uploadChunk");function Bst(t,e,r,s){return En(this,void 0,void 0,function*(){let i=xc(r),n=R0(`caches/${e.toString()}`),a=Bg.openSync(r,"r"),c=c8(s),l=kF("uploadConcurrency",c.uploadConcurrency),u=kF("uploadChunkSize",c.uploadChunkSize),h=[...new Array(l).keys()];Q("Awaiting all uploads");let d=0;try{yield Promise.all(h.map(()=>En(this,void 0,void 0,function*(){for(;d<i;){let f=Math.min(i-d,u),p=d,A=d+f-1;d+=u,yield wst(t,n,()=>Bg.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",m=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${m.message}`)}),p,A)}})))}finally{Bg.closeSync(a)}})}o(Bst,"uploadFile");function Sst(t,e,r){return En(this,void 0,void 0,function*(){let s={size:r};return yield x0("commitCache",()=>En(this,void 0,void 0,function*(){return t.postJson(R0(`caches/${e.toString()}`),s)}))})}o(Sst,"commitCache");function d8(t,e,r,s){return En(this,void 0,void 0,function*(){if(c8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rAe(r,e,s)}else{let n=u8();Q("Upload cache"),yield Bst(n,t,e,s),Q("Commiting cache");let a=xc(e);H(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield Sst(n,t,a);if(!Ov(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);H("Cache saved successfully")}})}o(d8,"saveCache");var dme=k(nme(),1),Fr=k(Lr(),1),oo=k(Lr(),1),Cp=k(Lr(),1),Ip=k(Lr(),1),bp=k(Lr(),1);var oz=k(Lr(),1),az=k(Lr(),1),lme=k(Lr(),1),ume=k(Lr(),1),hme=k(Lr(),1);var sz=k(Lr(),1),iz=k(Lr(),1),ome=k(Lr(),1),ame=k(Lr(),1),cme=k(Lr(),1);var nz=class extends cme.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,ame.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ome.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${l})for${this.typeName}`);let h=e.skip(l);u!==!1&&(u===!0?iz.UnknownFieldHandler.onRead:u)(this.typeName,n,c,l,h)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,sz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,sz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?iz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},wT=new nz;var cz=class extends hme.Mess
`));let s=yield wz(r,"create");yield Bz(s,t)})}o(xz,"createTar");var qg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Ya=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ug=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function mme(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}o(mme,"checkPaths");function Nz(t){if(t.length>512)throw new Ya(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`KeyValidationError:${t}cannotcontaincommas.`)}o(Nz,"checkKey");function Rz(){return N0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Rz,"isFeatureAvailable");function gme(t,e,r,s){return qg(this,arguments,void 0,function*(i,n,a,c,l=!1){let u=N0();return Q(`Cacheserviceversion:${u}`),mme(i),u==="v2"?yield Unt(i,n,a,c,l):yield Fnt(i,n,a,c,l)})}o(gme,"restoreCache");function Fnt(t,e,r,s){return qg(this,arguments,void 0,function*(i,n,a,c,l=!1){a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)Nz(f);let h=yield SI(),d="";try{let f=yield gAe(u,i,{compressionMethod:h,enableCrossOsArchive:l});if(!f?.archiveLocation)return;if(c?.lookupOnly)return H("Lookup only - skipping download"),f.cacheKey;d=z0.join(yield wI(),rd(h)),Q(`ArchivePath:${d}`),yield h8(f.archiveLocation,d,c),uu()&&(yield H0(d,h));let p=xc(d);return H(`CacheSize:~${Math.round(p/(1024*1024))}MB(${p}B)`),yield Sz(d,h),H("Cache restored successfully"),f.cacheKey}catch(f){let p=f;if(p.name===Ya.name)throw f;p instanceof Nc&&typeof p.statusCode=="number"&&p.statusCode>=500?Dm(`Failedtorestore:${f.message}`):Ot(`Failedtorestore:${f.message}`)}finally{try{yield BI(d)}catch(f){Q(`Failedtodeletearchive:${f}`)}}})}o(Fnt,"restoreCacheV1");function Unt(t,e,r,s){return qg(this,arguments,void 0,function*(i,n,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)Nz(d);let h="";try{let d=bz(),f=yield SI(),p={key:n,restoreKeys:a,version:jm(i,f,l)},A=yield d.GetCacheEntryDownloadURL(p);if(!A.ok){Q(`Cachenotfoundforversion${p.version}ofkeys:${u.join(", ")}`);return}if(p.key!==A.matchedKey?H(`Cachehitforrestore-key:${A.matchedKey}`):H(`Cachehitfor:${A.matchedKey}`),c?.lookupOnly)return H("Lookup only - skipping download"),A.matchedKey;h=z0.join(yield wI(),rd(f)),Q(`Archivepath:${h}`),Q(`Startingdownloadofarchiveto:${h}`),yield h8(A.signedDownloadUrl,h,c);let C=xc(h);return H(`CacheSize:~${Math.round(C/(1024*1024))}MB(${C}B)`),uu()&&(yield H0(h,f)),yield Sz(h,f),H("Cache restored successfully"),A.matchedKey}catch(d){let f=d;if(f.name===Ya.name)throw d;f instanceof Nc&&typeof f.statusCode=="number"&&f.statusCode>=500?Dm(`Failedtorestore:${d.message}`):Ot(`Failedtorestore:${d.message}`)}finally{try{h&&(yield BI(h))}catch(d){Q(`Failedtodeletearchive:${d}`)}}})}o(Unt,"restoreCacheV2");function vz(t,e,r){return qg(this,arguments,void 0,function*(s,i,n,a=!1){let c=N0();return Q(`Cacheserviceversion:${c}`),mme(s),Nz(i),c==="v2"?yield Gnt(s,i,n,a):yield qnt(s,i,n,a)})}o(vz,"saveCache");function qnt(t,e,r){return qg(this,arguments,void 0,fu
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return f<p},"__needMoreData"),parse:o(function(s,i,n,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:h,ltrim:d,max_record_size:f,raw:p,relax_quotes:A,rtrim:m,skip_empty_lines:C,to:E,to_line:I}=this.options,{comment:B,escape:x,quote:R,record_delimiter:D}=this.options,{bomSkipped:O,previousBuf:L,rawBuffer:V,escapeIsQuote:ee}=this.state,U;if(L===void 0)if(s===void 0){a();return}else U=s;else L!==void 0&&s===void 0?U=L:U=Buffer.concat([L,s]);if(O===!1)if(c===!1)this.state.bomSkipped=!0;else if(U.length<3){if(i===!1){this.state.previousBuf=U;return}}else{for(let j in ry)if(ry[j].compare(U,0,ry[j].length)===0){let se=ry[j].length;this.state.bufBytesStart+=se,U=U.slice(se);let Qe=XV({...this.original_options,encoding:j});for(let we in Qe)this.options[we]=Qe[we];({comment:B,escape:x,quote:R}=this.options);break}this.state.bomSkipped=!0}let q=U.length,z;for(z=0;z<q&&!this.__needMoreData(z,q,i);z++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(U,z)&&(D=this.options.record_delimiter);let j=U[z];if(p===!0&&V.append(j),(j===ddt||j===fdt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(U,z,j)&&z+x.length<q)if(ee){if(this.__isQuote(U,z+x.length)){this.state.escaping=!0,z+=x.length-1;continue}}else{this.state.escaping=!0,z+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,z))if(this.state.quoting===!0){let we=U[z+R.length],le=m&&this.__isCharTrimable(U,z+R.length),ct=B!==null&&this.__compareBytes(B,U,z+R.length,we),et=this.__isDelimiter(U,z+R.length,we),Ct=D.length===0?this.__autoDiscoverRecordDelimiter(U,z+R.length):this.__isRecordDelimiter(we,U,z+R.length);if(x!==null&&this.__isEscape(U,z,j)&&this.__isQuote(U,z+x.length))z+=x.length-1;else if(!we||et||Ct||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,z+=R.length-1;continue}else if(A===!1){let De=this.__error(new gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(we)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(De!==void 0)return De}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),z+=R.length-1}else if(this.state.field.length!==0){if(A===!1){let we=this.__infoField(),le=Object.keys(ry).map(et=>ry[et].equals(this.state.field.toString())?et:!1).filter(Boolean)[0],ct=this.__error(new gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(we.column)}atline${we.lines},valueis${JSON.stringify(this.state.field.toString(u))}`,le?`(${le}bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,z+=R.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(j,U,z);if(we!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=h){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),z+=we-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=we-1;continue}this.info.bytes=this.state.bufBytesStart+z;let et=this.__onField();if(et!==void 0)return et;this.info.bytes=this.state.bufBytesStart+z+we;let Ct=this.__onRecord(n);if(Ct!==void 0)return Ct;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=we-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,U,z,j)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(U,z,
`)}o(nft,"_buildMessageForResponseErrors");var oft=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(nft(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},aft=["method","baseUrl","url","headers","request","query","mediaType","operationName"],cft=["query","method","url"],fIe=/\/api\/v3\/?$/;function lft(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(cft.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((a,c)=>aft.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return fIe.test(n)&&(i.url=n.replace(fIe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new oft(i,c,a.data)}return a.data.data})}o(lft,"graphql");function h3(t,e){let r=t.defaults(e);return Object.assign(o((i,n)=>lft(r,i,n),"newApi"),{defaults:h3.bind(null,r),endpoint:r.endpoint})}o(h3,"withDefaults");var xlr=h3(Ab,{headers:{"user-agent":`octokit-graphql.js/${ift}${wd()}`},method:"POST",url:"/graphql"});function pIe(t){return h3(t,{method:"POST",url:"/graphql"})}o(pIe,"withCustomRequest");var d3="(?:[a-zA-Z0-9_-]+)",AIe="\\.",mIe=new RegExp(`^${d3}${AIe}${d3}${AIe}${d3}$`),uft=mIe.test.bind(mIe);async function hft(t){let e=uft(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(hft,"auth");function dft(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}o(dft,"withAuthorizationPrefix");async function fft(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=dft(t),e(i)}o(fft,"hook");var gIe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(hft.bind(null,e),{hook:fft.bind(null,e)})},"createTokenAuth2");var f3="7.0.6";var yIe=o(()=>{},"noop"),pft=console.warn.bind(console),Aft=console.error.bind(console);function mft(t={}){return typeof t.debug!="function"&&(t.debug=yIe),typeof t.info!="function"&&(t.info=yIe),typeof t.warn!="function"&&(t.warn=pft),typeof t.error!="function"&&(t.error=Aft),t}o(mft,"createLogger");var EIe=`octokit-core.js/${f3}${wd()}`,F_=class{static{o(this,"Octokit")}static VERSION=f3;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new $Ce.Collection,s={baseUrl:Ab.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent}${EIe}`:EIe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Ab.defaults(s),this.graphql=pIe(this.request).defaults(s),this.log=mft(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...a}=e,c=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=gIe(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)
Moreinfo:${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let m of a)if(m.remote||m.path.endsWith(u)&&m.content===h){c.push({title:d,message:f,file:m.path,startLine:p}),A=!0;break}A||Q(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${d}`)}return c}};var Sd=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Et}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),s=await ve.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(Q(`Builder.existscmderr:${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(Q(`Builder.existserror:${i}`),!1));return Q(`Builder.exists:${s}`),s}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),s=["inspect"];e&&s.push(e);let i=await this.buildx.getCommand(s);return await ve.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return t.parseInspect(n.stdout)})}static parseInspect(e){let r={nodes:[]},s,i={},n,a,c;for(let l of e.trim().split(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=ho(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=ho(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let a=wt.parseBool(n);s.push(`disabled=${!a}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Cc(n),[i,n]}};var x3=k(require("fs"),1),vIe=k(require("path"),1);var z_=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Et,this.metadataFilename=`bake-metadata-${wt.generateRandomString()}.json`}getMetadataFilePath(){return vIe.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!x3.default.existsSync(e))return;let r=x3.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],i,n=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!wt.isValidRef(l)){n.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&s.push(i);for(let l of n)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await ve.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=ho(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(n){case"type":r.type=a;break;case"disabled":r.disabled=wt.parseBool(a);break;default:r[n]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=ho(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,a]=i.toString().
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var S1e=require("crypto"),Ul=k(require("fs"),1),nf=k(require("path"),1);var aB=k(Eb(),1),ql=k(qTe(),1),x1e=k(_9(),1),OE=k(y1e(),1);var nW=k(Eb(),1);var C1e=k(Wa(),1);var E1e="application/vnd.oci.empty.v1+json";var bh=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ve.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(Q(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(Q(`Cosign.isAvailableerror:${r}`),!1));return Q(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ve.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 ve.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return Q("Cosign.versionSatisfies false: undefined version"),!1;let i=C1e.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return Q(`Cosign.versionSatisfies${s}statisfies${e}:${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(n=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===nW.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===E1e&&typeof u.digest=="string"&&(s=u.digest)}if(!i&&l&&l.mediaType===nW.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var oW=k(require("fs"),1);var XO=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Et}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 s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let a of r.manifests)a.digest&&n.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=n.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=bt.tmpName({tmpdir:bt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}n.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of i)r.push("--file",c);for
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,s){return await ve.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var I1e="application/vnd.in-toto+json";var b1e="https://fulcio.sigstore.dev",w1e="https://rekor.sigstore.dev",B1e="https://timestamp.sigstore.dev",vA="https://search.sigstore.dev";var EPt="slsaprovenance1",of=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new bh,this.imageTools=e?.imageTools||new XO}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 s=this.signingEndpoints(e.noTransparencyLog);H(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Xt("Creating Sigstore protobuf signing config",async()=>{let a=bt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:bt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];i&&c.push("--no-default-rekor=true"),await ve.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),H(JSON.stringify(JSON.parse(Ul.default.readFileSync(a,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${a}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let l of c){let u=`${a}@${l}`;await Xt(`Signingattestationmanifest${u}`,async()=>{let h=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];H(`[command]${this.cosign.binPath}${[...h,u].join(" ")}`);let d=await ve.getExecOutput(this.cosign.binPath,["--verbose",...h,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=bh.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let A=f.errors.map(m=>`-[${m.code}]${m.message}:${m.detail}`).join(`
${u}`),await new Promise(h=>setTimeout(h,Math.pow(2,a)*100));else throw n}else throw new Error(`Cosignverifycommandfailedwith:${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw n}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 s=this.signingEndpoints(e.noTransparencyLog);H(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Xt(`Signing${n}`,async()=>{let a=i[n],c=nf.default.join(nf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){Ot(`Nosubjectsfoundinprovenance${n},skipsigning.`);return}let u=await t.signPayload({data:a,type:I1e},s),h=t.parseBundle(u);H("Provenance blob signed for:");for(let d of l){let[f,p]=Object.entries(d.digest)[0]||[];H(`-${d.name}(${f}:${p})`)}h.tlogID&&H(`AttestationsignatureuploadedtoRekortransparencylog:${vA}?logIndex=${h.tlogID}`),H(`WritingSigstorebundleto:${c}`),Ul.default.writeFileSync(c,JSON.stringify(h.payload,null,2),{encoding:"utf-8"}),r[n]={...h,bundlePath:c,subjects:l}})}catch(s){throw new Error(`SigningBuildKitprovenanceblobsfailed:${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let a=nf.default.dirname(i);await Xt(`Verifyingsignaturebundle${n.bundlePath}`,async()=>{for(let c of n.subjects){let l=nf.default.join(a,c.name);H(`Verifyingsignedartifact${l}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??EPt];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let h=await ve.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,l],{ignoreReturnCode:!0});if(h.stderr.length>0&&h.exitCode!=0)throw new Error(h.stderr);s[l]={bundlePath:n.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){H("Verifying keyless verification bundle signature");let i=JSON.parse(Ul.default.readFileSync(r,"utf-8")),n=(0,aB.bundleFromJSON)(i);H("Fetching Sigstore TUF trusted root metadata");let a=await x1e.getTrustedRoot(),c=(0,OE.toTrustMaterial)(a);try{H("Verifying artifact signature");let l=(0,OE.toSignedEntity)(n,Ul.default.readFileSync(e)),u=t.parseCertificate(n),h=n.verificationMaterial.tlogEntries,d=h.length>0?h[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let A=u.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(s.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${A}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let p=new OE.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return Q(`Sigstore.verifyArtifactsigner:${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:d}}catch(l){throw new Error(`Failedtoverifyartifactsignature:${l}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),H(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:b1e,rekorURL:e?void 0:w1e,tsaServerURL:B1e}}static noTransparencyLog(e){return e??kt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=nf.default.join(e.localExportDir,"provenance.json");if(Ul.default.existsSync(r))return{[r]:Ul.default.readFileSync(r)};let s=Ul.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>Ul.default.existsSync(nf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let a of i){let c=