varxDe=Object.create;varXD=Object.defineProperty;varNDe=Object.getOwnPropertyDescriptor;varvDe=Object.getOwnPropertyNames;varRDe=Object.getPrototypeOf,TDe=Object.prototype.hasOwnProperty;var_De=(t,e)=>()=>(t&&(e=t(t=0)),e);varA=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),NK=(t,e)=>{for(varrine)XD(t,r,{get:e[r],enumerable:!0})},QDe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofvDe(e))!TDe.call(t,i)&&i!==r&&XD(t,i,{get:()=>e[i],enumerable:!(s=NDe(e,i))||s.enumerable});returnt};varD=(t,e,r)=>(r=t!=null?xDe(RDe(t)):{},QDe(e||!t||!t.__esModule?XD(r,"default",{value:t,enumerable:!0}):r,t));varbX=A(YA=>{"use strict";varEkt=require("net"),aLe=require("tls"),gk=require("http"),EX=require("https"),cLe=require("events"),Ckt=require("assert"),lLe=require("util");YA.httpOverHttp=uLe;YA.httpsOverHttp=hLe;YA.httpOverHttps=dLe;YA.httpsOverHttps=fLe;functionuLe(t){vare=newZl(t);returne.request=gk.request,e}functionhLe(t){vare=newZl(t);returne.request=gk.request,e.createSocket=CX,e.defaultPort=443,e}functiondLe(t){vare=newZl(t);returne.request=EX.request,e}functionfLe(t){vare=newZl(t);returne.request=EX.request,e.createSocket=CX,e.defaultPort=443,e}functionZl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||gk.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(vara=IX(i,n,o),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}lLe.inherits(Zl,cLe.EventEmitter);Zl.prototype.addRequest=function(e,r,s,i){varn=this,o=yk({request:e},n.options,IX(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){n.emit("free",a,o)}functionl(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Zl.prototype.createSocket=function(e,r){vars=this,i={};s.sockets.push(i);varn=yk({},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")),Dh("making CONNECT request");varo=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();functiona(h){h.upgrade=!0}functionc(h,d,f){process.nextTick(function(){l(h,d,f)})}functionl(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Dh("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){Dh("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}returnDh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}functionu(h){o.removeAllListeners(),Dh(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}functionam(t,e,r){lets=r.position;for(;s<e.length&&t(e[s]);)++s;returne.subarray(r.position,r.position=s)}functionIM(t,e,r,s){leti=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;returni===0&&n===t.length-1?t:t.subarray(i,n+1)}functionAB(t,e,r){if(t.length<e.length)return!1;for(lets=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}v7.exports={multipartFormDataParser:RUe,validateBoundary:vUe}});varum=A((Ykt,F7)=>{"use strict";varIC=st(),{ReadableStreamFrom:_Ue,isBlobLike:T7,isReadableStreamLike:QUe,readableStreamClose:PUe,createDeferredPromise:OUe,fullyReadBody:DUe,extractMimeType:kUe,utf8DecodeBytes:P7}=Fn(),{FormData:_7}=CC(),{kState:lm}=kh(),{webidl:MUe}=Us(),{Blob:LUe}=require("node:buffer"),bM=require("node:assert"),{isErrored:O7,isDisturbed:FUe}=require("node:stream"),{isArrayBuffer:UUe}=require("node:util/types"),{serializeAMimeType:qUe}=nn(),{multipartFormDataParser:GUe}=R7(),wM;try{lett=require("node:crypto");wM=e=>t.randomInt(0,e)}catch{wM=t=>Math.floor(Math.random(t))}varmB=newTextEncoder;functionHUe(){}varD7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,k7;D7&&(k7=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!FUe(e)&&!O7(e)&&e.cancel("Response object has been garbage collected").catch(HUe)}));functionM7(t,e=!1){letr=null;tinstanceofReadableStream?r=t:T7(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofi=="string"?mB.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>PUe(c))},start(){},type:"bytes"}),bM(QUe(r));lets=null,i=null,n=null,o=null;if(typeoft=="string")i=t,o="text/plain;charset=UTF-8";elseif(tinstanceofURLSearchParams)i=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";elseif(UUe(t))i=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))i=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(IC.isFormDataLike(t)){letc=`----formdata-undici-0${`${wM(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);d.push(m),n+=m.byteLength,p&&(n=null),i=t,s=asyncfunction*(){for(letEofd)E.stream?yield*E.stream():yieldE},o=`multipart/form-data; boundary=${c}`}elseif(T7(t))i=t,n=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(IC.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:_Ue(t)}if((typeofi=="string"||IC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){letc;r=newReadableStream({asyncstart(){c=s(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:u,done:h}=awaitc.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!O7(r)){letd=newUint8Array(u);d.byteLength&&l.enqueue(d)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}functionVUe(t,e=!1){returntinstanceofReadableStream&&(bM(!IC.isDisturbed(t),"The body has already been consumed."),bM(!t.locked,"The stream is locked.")),M7(t,e)}functionzUe(t,e){let[r,s]=e.stream.tee();returne.stream=r,{stream:s,length:e.length,source:e.source}}function$Ue(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionjUe(t){return{blob(){returncm(this,r=>{lets=Q7(this);returns===null?s="":s&&(s=qUe(s)),newLUe([r],{type:s})},t)},arrayBuffer(){returncm(this,r=>newUint8Array(r).buffer,t)},text(){returncm(this,P7,t)},json(){returncm(this,YUe,t)},formData(){returncm(this,r=>{lets=Q7(this);if(s!==null)switch(s.essence){case"multipart/form-data":{leti=GUe(r,s);if(i==="failure")thrownewTypeError("Failed to parse body as FormData.");letn=new_7;returnn[lm]=i,n}case"application/x-www-form-urlencoded":{leti=newURLSearchParams(r.toString()),n=new_7;for(let[o,a]ofi)n.append(o,a);returnn}}thrownewTypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){returncm(this,r=>newUint8Array(r),t)}}}functionJUe(t){Object.assign(t.prototype,jUe(t))}asyncfunctioncm(t,e,r){if(MUe.brandCheck(t,r),L7(t))thrownewTypeError("Body is unusable: Body has already been read");$Ue(t[lm]);lets=OUe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};returnt[lm].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(awaitDUe(t[lm].body,n,i),s.promise)}functionL7(t){lete=t[lm].body;returne!=null&&(e.stream.locked||IC.isDisturbed(e.stream))}functionYUe(t){returnJSON.parse(P7(t))}functionQ7(t){lete=t[lm].headersList,r=kUe(e);returnr==="failure"?null:r}F7.exports={extractBody:M7,safelyExtractBody:VUe,cloneBody:zUe,mixinBody:JUe,streamRegistry:k7,hasFinalizationRegistry:D7,bodyUnusable:L7}});varW7=A((Wkt,Y7)=>{"use strict";varQe=require("node:assert"),qe=st(),{channels:U7}=KA(),SM=nM(),{RequestContentLengthMismatchError:Bf,ResponseContentLengthMismatchError:WUe,RequestAbortedError:$7,HeadersTimeoutError:KUe,HeadersOverflowError:XUe,SocketError:bB,InformationalError:hm,BodyTimeoutError:ZUe,HTTPParserError:eqe,ResponseExceededMaxSizeError:tqe}=gt(),{kUrl:j7,kReset:on,kClient:vM,kParser:gr,kBlocking:SC,kRunning:Xs,kPending:rqe,kSize:q7,kWriting:Lh,kQueue:va,kNoRef:bC,kKeepAliveDefaultTimeout:sqe,kHostHeader:iqe,kPendingIdx:nqe,kRunningIdx:Ro,kError:To,kPipelining:CB,kSocket:dm,kKeepAliveTimeoutValue:wB,kMaxHeadersSize:BM,kKeepAliveMaxTimeout:oqe,kKeepAliveTimeoutThreshold:aqe,kHeadersTimeout:cqe,kBodyTimeout:lqe,kStrictContentLength:RM,kMaxRequests:G7,kCounter:uqe,kMaxResponseSize:hqe,kOnError:dqe,kResume:Mh,kHTTPContext:J7}=nr(),pc=kZ(),fqe=Buffer.alloc(0),gB=Buffer[Symbol.species],yB=qe.addListener,pqe=qe.removeAllListeners,xM;asyncfunctionAqe(){lett=process.env.JEST_WORKER_ID?cM():void0,e;try{e=awaitWebAssembly.compile(FZ())}catch{e=awaitWebAssembly.compile(t||cM())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Qe(is.ptr===r);letn=s-mc+Ac.byteOffset;returnis.onStatus(newgB(Ac.buffer,n,i))||0},wasm_on_message_begin:r=>(Qe(is.ptr===r),is.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Qe(is.
`}return U7.sendHeaders.hasSubscribers&&U7.sendHeaders.publish({request:e,headers:m,socket:f}),!c||d===0?V7(p,null,t,e,f,u,m,h):qe.isBuffer(c)?V7(p,c,t,e,f,u,m,h):qe.isBlobLike(c)?typeof c.stream=="function"?z7(p,c.stream(),t,e,f,u,m,h):bqe(p,c,t,e,f,u,m,h):qe.isStream(c)?Iqe(p,c,t,e,f,u,m,h):qe.isIterable(c)?z7(p,c,t,e,f,u,m,h):Qe(!1),!0}function Iqe(t,e,r,s,i,n,o,a){Qe(n!==0||r[Xs]===0,"stream body cannot be pipelined");let c=!1,l=new SB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(m){qe.destroy(this,m)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new $7;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Qe(i.destroyed||i[Lh]&&r[Xs]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(m){p=m}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?qe.destroy(e,p):qe.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function V7(t,e,r,s,i,n,o,a){try{e?qe.isBuffer(e)&&(Qe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"):(Qe(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Mh]()}catch(c){t(c)}}async function bqe(t,e,r,s,i,n,o,a){Qe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Bf;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[on]=!0),r[Mh]()}catch(c){t(c)}}async function z7(t,e,r,s,i,n,o,a){Qe(n!==0||r[Xs]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Qe(c===null),i[To]?f(i[To]):c=d});i.on("close",l).on("drain",l);let h=new SB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[To])throw i[To];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var SB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Lh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[To])throw r[To];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[RM])throw new Bf;process.emitWarning(new Bf)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[on]=!0),i===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(s[RM])throw new Bf;process.emitWarning(new Bf)}e[gr].timeout&&e[gr].timeoutType===fm&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),s[Mh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Lh]=!1,e&&(Qe(s[Xs]<=1,"pipeline should only contain this request"),i(e))}};Y7.exports=gqe});var iee=A((Kkt,see)=>{"use strict";var _o=require("node:assert"),{pipeline:wqe}=require("node:stream"),ct=st(),{RequestContentLengthMismatchError:PM,RequestAbortedError:K7,SocketError:BC,InformationalError:OM}=gt(),{kUrl:BB,kReset:NB,kClient:pm,kRunning:vB,kPending:Sqe,kQueue:Fh,kPendingIdx:DM,kRunningIdx:Ra,kError:_a,kSocket:ms,kStrictContentLength:Bqe,kOnError:kM,kMaxConcurrentStreams:ree,kHTTP2Session:Ta,kResume:Uh,kSize:xqe,kHTTPContext:Nqe}=nr(),nu=Symbol("open streams"),X7,Z7=!1,xB;try{xB=require("node:http2")}catch{xB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vqe,HTTP2_HEADER_METHOD:Rqe,HTTP2_HEADER_PATH:Tqe,HTTP2_HEADER_SCHEME:_qe,HTTP2_HEADER_CONTENT_LENGTH:Qqe,HTTP2_HEADER_EXPECT:Pqe,HTTP2_HEADER_STATUS:Oqe}}=xB;function Dqe(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}async function kqe(t,e){t[ms]=e,Z7||(Z7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=xB.connect(t[BB],{createConnection:()=>e,peerMaxConcurrentStreams:t[ree]});r[nu]=0,r[pm]=t,r[ms]=e,ct.addListener(r,"error",Lqe),ct.addListener(r,"frameError",Fqe),ct.addListener(r,"end",Uqe),ct.addListener(r,"goaway",qqe),ct.addListener(r,"close",function(){let{[pm]:i}=this,{[ms]:n}=i,o=this[ms][_a]||this[_a]||new BC("closed",ct.getSocketInfo(n));if(i[Ta]=null,i.destroyed){_o(i[Sqe]===0);let a=i[Fh].splice(i[Ra]);for(let c=0;c<a.length;c++){let l=a[c];ct.errorRequest(i,l,o)}}}),r.unref(),t[Ta]=r,e[Ta]=r,ct.addListener(e,"error",function(i){_o(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=i,this[pm][kM](i)}),ct.addListener(e,"end",function(){ct.destroy(this,new BC("other side closed",ct.getSocketInfo(this)))}),ct.addListener(e,"close",function(){let i=this[_a]||new BC("closed",ct.getSocketInfo(this));t[ms]=null,this[Ta]!=null&&this[Ta].destroy(i),t[DM]=t[Ra],_o(t[vB]===0),t.emit("disconnect",t[BB],[t],i),t[Uh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return Hqe(t,...i)},resume(){Mqe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function Mqe(t){let e=t[ms];e?.destroyed===!1&&(t[xqe]===0&&t[ree]===0?(e.unref(),t[Ta].unref()):(e.ref(),t[Ta].ref()))}function Lqe(t){_o(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ms][_a]=t,this[pm][kM](t)}function Fqe(t,e,r){if(r===0){let s=new OM(`HTTP/2:"frameError"received-type${t},code${e}`);this[ms][_a]=s,this[pm][kM](s)}}function Uqe(){let t=new BC("other side closed",ct.getSocketInfo(this[ms]));this.destroy(t),ct.destroy(this[ms],t)}function qqe(t){let e=this[_a]||new BC(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,ct.getSocketInfo(this)),r=this[pm];if(r[ms]=null,r[Nqe]=null,this[Ta]!=null&&(this[Ta].destroy(e),this[Ta]=null),ct.destroy(this[ms],e),r[Ra]<r[Fh].length){let s=r[Fh][r[Ra]];r[Fh][r[Ra]++]=null,ct.errorRequest(r,s,e),r[DM]=r[Ra]}_o(r[vB]===0),r.emit("disconnect",r[BB],[r],e),r[Uh]()}function Gqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Hqe(t,e){let r=t[Ta],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return ct.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let B=0;B<l.length;B+=2){let N=l[B+0],O=l[B+1];if(Array.isArray(O))for(let P=0;P<O.length;P++)h[N]?h[N]+=`,${O[P]}`:h[N]=O[P];else h[N]=O}let d,{hostname:f,port:p}=t[BB];h[vqe]=n||`${f}${p?`:${p}`:""}`,h[Rqe]=s;let m=B=>{e.aborted||e.completed||(B=B||new K7,ct.errorRequest(t,e,B),d!=null&&ct.destroy(d,B),ct.destroy(u,B),t[Fh][t[Ra]++]=null,t[Uh]())};try{e.onConnect(m)}catch(B){ct.errorRequest(t,e,B)
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}:${n[d]}\r
`)+4,e.outputData[0].data=e._header+s.substring(i),pg("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(pg("Creating `tls.Socket`: %o",this.connectOpts),n=wZe.connect(this.connectOpts)):(pg("Creating `net.Socket`: %o",this.connectOpts),n=bZe.connect(this.connectOpts)),await(0,BZe.once)(n,"connect"),n}};tv.protocols=["http","https"];$o.HttpProxyAgent=tv;function NZe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var _de=A(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.state=void 0;Av.state={instrumenterImplementation:void 0}});var Jde=A(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.state=void 0;Cv.state={operationRequestMap:new WeakMap}});var xAe=A(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});var Yst=require("os"),Wst=require("util");function Kst(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Xst=Kst(Wst);function Zst(t,...e){process.stderr.write(`${Xst.default.format(t,...e)}${Yst.EOL}`)}var mAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,yAe,C8=[],I8=[],FR=[];mAe&&b8(mAe);var EAe=Object.assign(t=>CAe(t),{enable:b8,enabled:w8,disable:eit,log:Zst});function b8(t){yAe=t,C8=[],I8=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?I8.push(new RegExp(`^${s.substr(1)}$`)):C8.push(new RegExp(`^${s}$`));for(let s of FR)s.enabled=w8(s.namespace)}function w8(t){if(t.endsWith("*"))return!0;for(let e of I8)if(e.test(t))return!1;for(let e of C8)if(e.test(t))return!0;return!1}function eit(){let t=yAe||"";return b8(""),t}function CAe(t){let e=Object.assign(r,{enabled:w8(t),destroy:tit,log:EAe.log,namespace:t,extend:rit});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return FR.push(e),e}function tit(){let t=FR.indexOf(this);return t>=0?(FR.splice(t,1),!0):!1}function rit(t){let e=CAe(`${this.namespace}:${t}`);return e.log=this.log,e}var k0=EAe,IAe=new Set,MR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,UR,qR=k0("azure");qR.log=(...t)=>{k0.log(...t)};var S8=["verbose","info","warning","error"];MR&&(BAe(MR)?bAe(MR):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${MR}';loggingisnotenabled.Acceptablevalues:${S8.join(", ")}.`));function bAe(t){if(t&&!BAe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${S8.join(",")}`);UR=t;let e=[];for(let r of IAe)SAe(r)&&e.push(r.namespace);k0.enable(e.join(","))}function sit(){return UR}var gAe={verbose:400,info:300,warning:200,error:100};function iit(t){let e=qR.extend(t);return wAe(qR,e),{error:LR(e,"error"),warning:LR(e,"warning"),info:LR(e,"info"),verbose:LR(e,"verbose")}}function wAe(t,e){e.log=(...r)=>{t.log(...r)}}function LR(t,e){let r=Object.assign(t.extend(e),{level:e});if(wAe(t,r),SAe(r)){let s=k0.disable();k0.enable(s+","+r.namespace)}return IAe.add(r),r}function SAe(t){return!!(UR&&gAe[t.level]<=gAe[UR])}function BAe(t){return S8.includes(t)}Qg.AzureLogger=qR;Qg.createClientLogger=iit;Qg.getLogLevel=sit;Qg.setLogLevel=bAe});var N8=A(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});var Pg=new WeakMap,GR=new WeakMap,M0=class t{constructor(){this.onabort=null,Pg.set(this,[]),GR.set(this,!1)}get aborted(){if(!GR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return GR.get(this)}static get none(){return new t}addEventListener(e,r){if(!Pg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Pg.get(this).push(r)}removeEventListener(e,r){if(!Pg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Pg.get(this),i=s.indexOf(r);i>-1&&s.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function NAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Pg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),GR.set(t,!0)}var B8=class extends Error{constructor(e){super(e),t
Polling status: ${kAe.includes(u)?"Stopped":"Running"}`),u==="succeeded"){leth=o(l,r);if(h!==void0)return{response:awaite(h).catch(OAe({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}asyncfunctionUAe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:h,getError:d,updateState:f,setDelay:p,isDone:m,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void0){let{response:C,status:w}=awaitIit({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(LAe({status:w,response:C,state:r,stateProxy:s,isDone:m,processResult:h,getError:d,setErrorAsResult:E}),!kAe.includes(w)){letB=u?.(C);B&&p(B);letN=a?.(C,r);if(N!==void0){letO=y!==N;r.config.operationLocation=N,l?.(N,O)}elsel?.(y,!1)}f?.(r,C)}}functionqAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}functionGAe(t){returnt.headers.location}functionHAe(t){returnt.headers["operation-location"]}functionVAe(t){returnt.headers["azure-asyncoperation"]}functionbit(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":returns;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":returns;default:returne}}}functionzAe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=HAe(e),o=VAe(e),a=qAe({operationLocation:n,azureAsyncOperation:o}),c=GAe(e),l=r?.toLocaleUpperCase();returna!==void0?{mode:"OperationLocation",operationLocation:a,resourceLocation:bit({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void0}function$Ae(t){let{status:e,statusCode:r}=t;if(typeofe!="string"&&e!==void0)thrownewError(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){casevoid0:returnD8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:returnwp.verbose(`LRO: unrecognized operation status: ${e}`),e}}functionwit(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};return$Ae({status:r,statusCode:t.statusCode})}functionSit(t){vare,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void0?e:{},n=(r=s?.provisioningState)!==null&&r!==void0?r:i;return$Ae({status:n,statusCode:t.statusCode})}functionD8(t){returnt===202?"running":t<300?"succeeded":"failed"}functionjAe({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?Bit(newDate(e)):r*1e3}}functionJAe(t){lete=t.flatResponse.error;if(!e){wp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){wp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}functionBit(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}functionYAe(t){let{response:e,state:r,operationLocation:s}=t;functioni(){varo;switch((o=r.config.metadata)===null||o===void0?void0:o.mode){casevoid0:returnD8(e.rawResponse.statusCode);case"Body":returnk8(e,r);default:return"running"}}letn=i();returnn==="running"&&s===void0?"succeeded":n}asyncfunctionxit(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;returnFAe({init:async()=>{leto=awaiti.sendInitialRequest(),a=zAe({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});returnObject.assign({response:o,operat
`)}};kT.RpcError=EV});varIV=A(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.mergeRpcOptions=void0;varnge=Lr();functionGot(t,e){if(!e)returnt;letr={};MT(t,r),MT(e,r);for(letsofObject.keys(e)){leti=e[s];switch(s){case"jsonOptions":r.jsonOptions=nge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=nge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},MT(t.meta,r.meta),MT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}returnr}LT.mergeRpcOptions=Got;functionMT(t,e){if(!t)return;letr=e;for(let[s,i]ofObject.entries(t))iinstanceofDate?r[s]=newDate(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}});varwV=A(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.Deferred=vp.DeferredState=void0;varal;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(al=vp.DeferredState||(vp.DeferredState={}));varbV=class{constructor(e=!0){this._state=al.PENDING,this._promise=newPromise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==al.PENDING)thrownewError(`cannot resolve ${al[this.state].toLowerCase()}`);this._resolve(e),this._state=al.RESOLVED}reject(e){if(this.state!==al.PENDING)thrownewError(`cannot reject ${al[this.state].toLowerCase()}`);this._reject(e),this._state=al.REJECTED}resolvePending(e){this._state===al.PENDING&&this.resolve(e)}rejectPending(e){this._state===al.PENDING&&this.reject(e)}};vp.Deferred=bV});varBV=A(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.RpcOutputStreamController=void0;varoge=wV(),Rp=Lr(),SV=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{lets=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,s){Rp.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Rp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){Rp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){Rp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{lete=this._itState;Rp.assert(e,"bad state"),Rp.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newoge.Deferred,e.p.promise)}}}pushIt(e){letr=this._itState;if(r.p){lets=r.p;Rp.assert(s.state==oge.DeferredState.PENDING,"iterator contract broken"),"value"ine?s.resolve(e):s.reject(e),deleter.p}elser.q.push(e)}};FT.RpcOutputStreamController=SV});varNV=A($g=>{"use strict";varHot=$g&&$g.__awaiter||function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(o){o(n)})}returnnew(r||(r=Promise))(function(n,o){functiona(u){try{l(s.next(u))}catch(h){o(h)}}functionc(u){try{l(s.throw(u))}catch(h){o(h)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty($g,"__esModule",{value:!0});$g.UnaryCall=void0;varxV=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function zht(){Object.keys(C_).forEach(function(t){delete C_[t]})}});var b_=A(hl=>{"use strict";hl.__esModule=!0;hl.HandlebarsEnvironment=Jz;function uCe(t){return t&&t.__esModule?t:{default:t}}var Op=Li(),$ht=uo(),$z=uCe($ht),jht=Gz(),Jht=oCe(),Yht=Vz(),I_=uCe(Yht),Wht=zz(),Kht="4.7.9";hl.VERSION=Kht;var Xht=8;hl.COMPILER_REVISION=Xht;var Zht=7;hl.LAST_COMPATIBLE_COMPILER_REVISION=Zht;var edt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};hl.REVISION_CHANGES=edt;var jz="[object Object]";function Jz(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},jht.registerDefaultHelpers(this),Jht.registerDefaultDecorators(this)}Jz.prototype={constructor:Jz,logger:I_.default,log:I_.default.log,registerHelper:function(e,r){if(Op.toString.call(e)===jz){if(r)throw new $z.default("Arg not supported with multiple helpers");Op.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Op.toString.call(e)===jz)Op.extend(this.partials,e);else{if(typeof r>"u")throw new $z.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Op.toString.call(e)===jz){if(r)throw new $z.default("Arg not supported with multiple decorators");Op.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Wht.resetLoggedProperties()}};var tdt=I_.default.log;hl.log=tdt;hl.createFrame=Op.createFrame;hl.logger=I_.default});var dCe=A((w_,hCe)=>{"use strict";w_.__esModule=!0;function Yz(t){this.string=t}Yz.prototype.toString=Yz.prototype.toHTML=function(){return""+this.string};w_.default=Yz;hCe.exports=w_.default});var fCe=A(Wz=>{"use strict";Wz.__esModule=!0;Wz.wrapHelper=rdt;function rdt(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var ECe=A(Nd=>{"use strict";Nd.__esModule=!0;Nd.checkRevision=cdt;Nd.template=ldt;Nd.wrapProgram=S_;Nd.resolvePartial=udt;Nd.invokePartial=hdt;Nd.noop=gCe;function sdt(t){return t&&t.__esModule?t:{default:t}}function idt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var ndt=Li(),oy=idt(ndt),odt=uo(),Mu=sdt(odt),Lu=b_(),pCe=Gz(),adt=fCe(),ACe=zz();function cdt(t){var e=t&&t[0]||1,r=Lu.COMPILER_REVISION;if(!(e>=Lu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Lu.COMPILER_REVISION))if(e<Lu.LAST_COMPATIBLE_COMPILER_REVISION){var s=Lu.REVISION_CHANGES[r],i=Lu.REVISION_CHANGES[e];throw new Mu.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 Mu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function ldt(t,e){if(!e)throw new Mu.default("No environment passed to template");if(!t||!t.main)throw new Mu.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(o,a,c){c.hash&&(a=oy.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
Expecting `+$.join(", ")+", got '"+(this.terminals_[B]||B)+"'":re="Parse error on line "+(h+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(re,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:$})}}if(P[0]instanceofArray&&P.length>1)thrownewError("Parse Error: multiple actions possible at state: "+O+", token: "+B);switch(P[0]){case1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(P[1]),B=null,N?(B=N,N=null):(d=this.lexer.yyleng,u=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case2:if(U=this.productions_[P[1]][1],Z.$=a[a.length-U],Z._$={first_line:c[c.length-(U||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(U||1)].first_column,last_column:c[c.length-1].last_column},y&&(Z._$.range=[c[c.length-(U||1)].range[0],c[c.length-1].range[1]]),V=this.performAction.call(Z,u,d,h,this.yy,P[1],a,c),typeofV<"u")returnV;U&&(o=o.slice(0,-1*U*2),a=a.slice(0,-1*U),c=c.slice(0,-1*U)),o.push(this.productions_[P[1]][0]),a.push(Z.$),c.push(Z._$),H=l[o[o.length-2]][o[o.length-1]],o.push(H);break;case3:return!0}}return!0}},e=(function(){vars={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);elsethrownewError(n)},setInput:function(n){returnthis._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){varn=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;varo=n.match(/(?:\r\n?|\n).*/g);returno?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){varo=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;varc=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);varl=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){returnthis._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){varn=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){varn=this.match;returnn.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){varn=this.pastInput(),o=newArray(n.length+1).join("-");returnn+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);varn,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(varh=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);returno?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){varn=this.next();returntypeofn<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){returnthis.conditionStack.pop()},_currentRules:function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){returnthis.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};returns.options={},s.performAction=function(n,o,a,c){functionl(h,d){returno.yytext=o.yytext.substring(h,o.yyleng-d+h)}varu=c;switch(a){case0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(o.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returno.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case32:returno.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returno.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;functionr(){this.yy={}}returnr.prototype=t,t.Parser=r,newr})();R_.default=wdt;vCe.exports=R_.default});varP_=A((Q_,QCe)=>{"use strict";Q_.__esModule=!0;functionSdt(t){returnt&&t.__esModule?t:{default:t}}varBdt=uo(),r3=Sdt(Bdt);functionT_(){this.parents=[]}T_.prototype={constructor:T_,mutating:!1,acceptKey:function(e,r){vars=this.accept(e[r]);if(this.mutating){if(s&&!T_.prototype[s.type])thrownewr3.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])thrownewr3.default(e.type+" requires "+r)},acceptArray:function(e){for(varr=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Lp(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Lp?e:(e=S3(e,this,r),new Lp(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var o=S3(e[n],r);o!=="undefined"&&s.push([r.quotedString(n),":",o])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(S3(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};q_.default=fIe;pIe.exports=q_.default});var CIe=A((G_,EIe)=>{"use strict";G_.__esModule=!0;function yIe(t){return t&&t.__esModule?t:{default:t}}var mIe=b_(),bft=uo(),x3=yIe(bft),wft=Li(),Sft=AIe(),gIe=yIe(Sft);function dy(t){this.value=t}function fy(){}fy.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=mIe.COMPILER_REVISION,r=mIe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return wft.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new x3.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});varqwe=A(Uwe=>{"use strict";varmj=Xu().Buffer;Uwe._dbcs=eh;varJs=-1,Fwe=-2,da=-10,Wi=-1e3,Ly=newArray(256),sw=-1;for(E1=0;E1<256;E1++)Ly[E1]=Js;varE1;functioneh(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[]
Found: ${t.length}`);throwa.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{leta=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throwa.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=s,a.sri=e,a}}vl.exports.checkStream=UEt;functionUEt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=yo(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=Hj(r);returnnewPromise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);leto;s.on("verified",a=>{o=a}),s.on("end",()=>i(o)),s.resume()})}vl.exports.integrityStream=Hj;functionHj(t=Object.create(null)){returnnewqj(t)}vl.exports.create=qEt;functionqEt(t){lete=t?.algorithms||[...Gj],r=hw(t?.options),s=e.map(uw.createHash);return{update:function(i,n){returns.forEach(o=>o.update(i,n)),this},digest:function(){returne.reduce((n,o)=>{leta=s.shift().digest("base64"),c=newnh(`${o}-${a}${r}`,t);returnn[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},newaA)}}}functionGEt(t,e){returnzSe.indexOf(t.toLowerCase())>=zSe.indexOf(e.toLowerCase())?t:e}});varzj=A((Gsr,XSe)=>{varJSe=Qj(),YSe=Lj(),HEt=Rl(),WSe={shared:!1,ignoreCargoCult:!0},VEt={status:200,headers:{}},qy=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},KSe=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},Vj=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=qy(r),this.response=KSe(s),this.options=i,this.policy=newJSe(this.request,this.response,WSe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}staticstorable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:newJSe(qy(e),VEt,WSe).storable()}satisfies(e){letr=qy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newYSe(this.request),i=newYSe(r);returnJSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?HEt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=qy(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=qy(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=qy(e),i=KSe(r);return!this.policy.revalidatedPolicy(s,i).modified}};XSe.exports=Vj});vareBe=A((Hsr,ZSe)=>{var$j=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};ZSe.exports={NotCachedError:$j}});varuBe=A((Vsr,lBe)=>{"use strict";vartBe=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},zEt=require("events"),rBe=require("stream"),sBe=require("string_decoder").StringDecoder,oh=Symbol("EOF"),ah=Symbol("maybeEmitEnd"),$d=Symbol("emittedEnd"),Q1=Symbol("emittingEnd"),dw=Symbol("emittedError"),P1=Symbol("closed"),iBe=Symbol("read"),O1=Symbol("flush"),nBe=Symbol("flushChunk"),vn=Symbol("encoding"),ch=Symbol("decoder"),D1=Symbol("flowing"),fw=Symbol("paused"),Gy=Symbol("resume"),Ps=Symbol("bufferLength"),jj=Symbol("bufferPush"),Jj=Symbol("bufferShift"),fi=Symbol("objectMode"),pi=Symbol("destroyed"),Yj=Symbol("emitData"),oBe=Symbol("emitEnd"),Wj=Symbol("emitEnd2"),lh=Symbol("async"),pw=t=>Promise.resolve().then(t),aBe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",$Et=aBe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),jEt=aBe&&Symbol.iterator||Symbol("iterator not implemented"),JEt=t=>t==="end"||t==="finish"||t==="prefinish",YEt=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructor.name==="ArrayB
globstar while`,R,ee,Q,De,nt),this.matchOne(R.slice(ee),Q.slice(De),k))returnthis.debug("globstar found match!",ee,v,nt),!0;if(nt==="."||nt===".."||!q.dot&&nt.charAt(0)==="."){this.debug("dot detected!",R,ee,Q,De);break}this.debug("globstar swallow a segment, and continue"),ee++}return!!(k&&(this.debug(`
>>> no match, partial?`,R,ee,Q,De),ee===v))}letrt;if(typeofj=="string"?(rt=me===j,this.debug("string match",j,me,rt)):(rt=j.test(me),this.debug("pattern match",j,me,rt)),!rt)return!1}if(g===v&&S===L)return!0;if(g===v)returnk;if(S===L)returng===v-1&&R[g]==="";thrownewError("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(R){(0,r.assertValidPattern)(R);letQ=this.options;if(R==="**")returnt.GLOBSTAR;if(R==="")return"";letk,q=null;(k=R.match(y))?q=Q.dot?w:C:(k=R.match(a))?q=(Q.nocase?Q.dot?h:u:Q.dot?l:c)(k[1]):(k=R.match(B))?q=(Q.nocase?Q.dot?O:N:Q.dot?P:M)(k):(k=R.match(d))?q=Q.dot?p:f:(k=R.match(m))&&(q=E);letY=s.AST.fromGlob(R,this.options).toMMPattern();returnq&&typeofY=="object"&&Reflect.defineProperty(Y,"test",{value:q}),Y}makeRe(){if(this.regexp||this.regexp===!1)returnthis.regexp;letR=this.set;if(!R.length)returnthis.regexp=!1,this.regexp;letQ=this.options,k=Q.noglobstar?$:Q.dot?re:_e,q=newSet(Q.nocase?["i"]:[]),Y=R.map(v=>{letL=v.map(me=>{if(meinstanceofRegExp)for(leteeofme.flags.split(""))q.add(ee);returntypeofme=="string"?Ht(me):me===t.GLOBSTAR?t.GLOBSTAR:me._src});L.forEach((me,ee)=>{letDe=L[ee+1],nt=L[ee-1];me!==t.GLOBSTAR||nt===t.GLOBSTAR||(nt===void0?De!==void0&&De!==t.GLOBSTAR?L[ee+1]="(?:\\/|"+k+"\\/)?"+De:L[ee]=k:De===void0?L[ee-1]=nt+"(?:\\/|\\/"+k+")?":De!==t.GLOBSTAR&&(L[ee-1]=nt+"(?:\\/|\\/"+k+"\\/)"+De,L[ee+1]=t.GLOBSTAR))});letj=L.filter(me=>me!==t.GLOBSTAR);if(this.partial&&j.length>=1){letme=[];for(letee=1;ee<=j.length;ee++)me.push(j.slice(0,ee).join("/"));return"(?:"+me.join("|")+")"}returnj.join("/")}).join("|"),[g,S]=R.length>1?["(?:",")"]:["",""];Y="^"+g+Y+S+"$",this.partial&&(Y="^(?:\\/|"+g+Y.slice(1,-1)+S+")$"),this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=newRegExp(Y,[...q].join(""))}catch{this.regexp=!1}returnthis.regexp}slashSplit(R){returnthis.preserveMultipleSlashes?R.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(R)?["",...R.split(/\/+/)]:R.split(/\/+/)}match(R,Q=this.partial){if(this.debug("match",R,this.pattern),this.comment)return!1;if(this.empty)returnR==="";if(R==="/"&&Q)return!0;letk=this.options;this.isWindows&&(R=R.split("\\").join("/"));letq=this.slashSplit(R);this.debug(this.pattern,"split",q);letY=this.set;this.debug(this.pattern,"set",Y);letg=q[q.length-1];if(!g)for(letS=q.length-2;!g&&S>=0;S--)g=q[S];for(letS=0;S<Y.length;S++){letv=Y[S],L=q;if(k.matchBase&&v.length===1&&(L=[g]),this.matchOne(L,v,Q))returnk.flipNegate?!0:!this.negate}returnk.flipNegate?!1:this.negate}staticdefaults(R){returnt.minimatch.defaults(R).Minimatch}};t.Minimatch=rs;varkn=Xve();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){returnkn.AST}});varNt=Zve();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){returnNt.escape}});varSo=lJ();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){returnSo.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=rs,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),_St=Ys(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void0;vare=typeofperformance=="object"&&performance&&typeofperformance.now=="function"?performance:Date,r=newSet,s=typeofprocess=="object"&&process?process:{},i=(f,p,m,E)=>{typeofs.emitWarning=="function"?s.emitWarning(f,p,m,E):console.error(`[${m}] ${p}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeofn>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(m,E){this._onabort.push(E)}},n=class{constructor(){p()}signal=newo;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(letEofthis.signal._onabort)E(m);this.signal.onabort?.(m)}}};letf=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!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 contexts (eg, passing it to other APIs that use AbortController/AbortSignal might
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;return a.replace(/\n$/,"")}var zDe=VDe,$De=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],jDe=["scalar","sequence","mapping"];function JDe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}function YDe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if($De.indexOf(r)===-1)throw new rn('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=JDe(e.styleAliases||null),jDe.indexOf(this.kind)===-1)throw new rn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ws=YDe;function vK(t,e){var r=[];return t[e].forEach(function(s){var i=r.length;r.forEach(function(n,o){n.tag===s.tag&&n.kind===s.kind&&n.multi===s.multi&&(i=o)}),r[i]=s}),r}function WDe(){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(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(s);return t}function rk(t){return this.extend(t)}rk.prototype.extend=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 rn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Ws))throw new rn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new rn("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 rn("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 rn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(rk.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=vK(i,"implicit"),i.compiledExplicit=vK(i,"explicit"),i.compiledTypeMap=WDe(i.compiledImplicit,i.compiledExplicit),i};var KDe=rk,XDe=new Ws("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ZDe=new Ws("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),eke=new Ws("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),tke=new KDe({explicit:[XDe,ZDe,eke]});function rke(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function ske(){return null}function ike(t){return t===null}var nke=new Ws("tag:yaml.org,2002:null",{kind:"scalar",resolve:rke,construct:ske,predicate:ike,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function oke(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")}function ake(t){return t==="true"||t==="True"||t==="TRUE"}function cke(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var lke=new Ws("tag:yaml.org,2002:bool",{kind:"scalar",resolve:oke,construct:ake,predicate:cke,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}}
`: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":""}function sMe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function XK(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var ZK=new Array(256),eX=new Array(256);for(Ef=0;Ef<256;Ef++)ZK[Ef]=_K(Ef)?1:0,eX[Ef]=_K(Ef);var Ef;function iMe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||jK,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=[]}function tX(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=zDe(r),new rn(e,r)}function Se(t,e){throw tX(t,e)}function LS(t,e){t.onWarning&&t.onWarning.call(null,tX(t,e))}var QK={YAML:function(e,r,s){var i,n,o;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),o=parseInt(i[2],10),n!==1&&Se(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&LS(e,"unsupported YAML version of the document")},TAG:function(e,r,s){var i,n;s.length!==2&&Se(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],WK.test(i)||Se(e,"ill-formed tag handle (first argument) of the TAG directive"),Oh.call(e.tagMap,i)&&Se(e,'there is a previously declared suffix for "'+i+'" tag handle'),KK.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}};function Ph(t,e,r,s){var i,n,o,a;if(e<r){if(a=t.input.slice(e,r),s)for(i=0,n=a.length;i<n;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Se(t,"expected valid JSON character");else Kke.test(a)&&Se(t,"the stream contains non-printable characters");t.result+=a}}function PK(t,e,r,s){var i,n,o,a;for(ss.isObject(r)||Se(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)n=i[o],Oh.call(e,n)||(XK(e,n,r[n]),s[n]=!0)}function jA(t,e,r,s,i,n,o,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&Se(t,"nested arrays are not supported inside keys"),typeof i=="object"&&TK(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&TK(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(l=0,u=n.length;l<u;l+=1)PK(t,e,n[l],r);else PK(t,e,n,r);else!t.json&&!Oh.call(r,i)&&Oh.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Se(t,"duplicated mapping key")),XK(e,i,n),delete r[i];return e}function ck(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}function jr(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Cf(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(uc(i))for(ck(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&s!==0&&t.lineIndent<r&&LS(t,"deficient indentation"),s}function qS(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||sn(r)))}functio
`,e-1))}function nMe(t,e,r){var s,i,n,o,a,c,l,u,h=t.kind,d=t.result,f;if(f=t.input.charCodeAt(t.position),sn(f)||$A(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=t.input.charCodeAt(t.position+1),sn(i)||r&&$A(i)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;f!==0;){if(f===58){if(i=t.input.charCodeAt(t.position+1),sn(i)||r&&$A(i))break}else if(f===35){if(s=t.input.charCodeAt(t.position-1),sn(s))break}else{if(t.position===t.lineStart&&qS(t)||r&&$A(f))break;if(uc(f))if(c=t.line,l=t.lineStart,u=t.lineIndent,jr(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(Ph(t,n,o,!1),lk(t,t.line-c),n=o=t.position,a=!1),Cf(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return Ph(t,n,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function oMe(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(Ph(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 uc(r)?(Ph(t,s,i,!0),lk(t,jr(t,!1,e)),s=i=t.position):t.position===t.lineStart&&qS(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")}function aMe(t,e){var r,s,i,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Ph(t,r,t.position,!0),t.position++,!0;if(a===92){if(Ph(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),uc(a))jr(t,!1,e);else if(a<256&&ZK[a])t.result+=eX[a],t.position++;else if((o=tMe(a))>0){for(i=o,n=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=eMe(a))>=0?n=(n<<4)+o:Se(t,"expected hexadecimal character");t.result+=sMe(n),t.position++}else Se(t,"unknown escape sequence");r=s=t.position}else uc(a)?(Ph(t,r,s,!0),lk(t,jr(t,!1,e)),r=s=t.position):t.position===t.lineStart&&qS(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")}function cMe(t,e){var r=!0,s,i,n,o=t.tag,a,c=t.anchor,l,u,h,d,f,p=Object.create(null),m,E,y,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,f=!1,a=[];else if(C===123)u=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(jr(t,!0,e),C=t.input.charCodeAt(t.position),C===u)return t.position++,t.tag=o,t.anchor=c,t.kind=f?"mapping":"sequence",t.result=a,!0;r?C===44&&Se(t,"expected the node content, but found ','"):Se(t,"missed comma between flow collection entries"),E=m=y=null,h=d=!1,C===63&&(l=t.input.charCodeAt(t.position+1),sn(l)&&(h=d=!0,t.position++,jr(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,JA(t,e,kS,!1,!0),E=t.tag,m=t.result,jr(t,!0,e),C=t.input.charCodeAt(t.position),(d||t.line===s)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),jr(t,!0,e),JA(t,e,kS,!1,!0),y=t.result),f?jA(t,a,p,E,m,y,s,i,n):h?a.push(jA(t,null,p,E,m,y,s,i,n)):a.push(m),jr(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}Se(t,"unexpected end of the stream within a flow collection")}function lMe(t,e){var r,s,i=tk,n=!1,o=!1,a=e,c=0,l=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)s=!1;else if(h===62)s=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)tk===i?i=h===43?RK:Wke:Se(t,"repeat of a chomping mode identifier");else if((u=rMe(h))>=0)u===0?Se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Se(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Cf(h)){do h=t.input.charCodeAt(++t.position);while(Cf(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!uc(h)&&h!==0)}for(;h!==0;){for(ck(t),t.lineIndent=0,h=t.input.charCodeAt(t.p
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!uc(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Ph(t,r,t.position,!1)}return!0}function OK(t,e){var r,s=t.tag,i=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Se(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!sn(o))));){if(a=!0,t.position++,jr(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,JA(t,e,YK,!1,!0),n.push(t.result),jr(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Se(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=n,!0):!1}function uMe(t,e,r){var s,i,n,o,a,c,l=t.tag,u=t.anchor,h={},d=Object.create(null),f=null,p=null,m=null,E=!1,y=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!E&&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,(C===63||C===58)&&sn(s))C===63?(E&&(jA(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!0,i=!0):E?(E=!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,C=s;else{if(o=t.line,a=t.lineStart,c=t.position,!JA(t,r,JK,!1,!0))break;if(t.line===n){for(C=t.input.charCodeAt(t.position);Cf(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),sn(C)||Se(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(jA(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!1,i=!1,f=t.tag,p=t.result;else if(y)Se(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(y)Se(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===n||t.lineIndent>e)&&(E&&(o=t.line,a=t.lineStart,c=t.position),JA(t,e,MS,!0,i)&&(E?p=t.result:m=t.result),E||(jA(t,h,d,f,p,m,o,a,c),f=p=m=null),jr(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)Se(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&jA(t,h,d,f,p,null,o,a,c),y&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),y}function hMe(t){var e,r=!1,s=!1,i,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Se(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(s=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Se(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!sn(o);)o===33&&(s?Se(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),WK.test(i)||Se(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),Zke.test(n)&&Se(t,"tag suffix cannot contain flow indicator characters")}n&&!KK.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:Oh.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}function dMe(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&&!sn(r)&&!$A(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(e,t.position),!0}function fMe(t){var e,r,s;if(s=t.input.charCodeAt(t.position),s!==42)return!1;for(s=
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new iMe(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;)pMe(r);return r.documents}function AMe(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var s=rX(t,r);if(typeof e!="function")return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}function mMe(t,e){var r=rX(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new rn("expected a single document in the stream, but found more")}}var gMe=AMe,yMe=mMe,sX={loadAll:gMe,load:yMe},iX=Object.prototype.toString,nX=Object.prototype.hasOwnProperty,uk=65279,EMe=9,oC=10,CMe=13,IMe=32,bMe=33,wMe=34,sk=35,SMe=37,BMe=38,xMe=39,NMe=42,oX=44,vMe=45,FS=58,RMe=61,TMe=62,_Me=63,QMe=64,aX=91,cX=93,PMe=96,lX=123,OMe=124,uX=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 DMe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kMe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function MMe(t,e){var r,s,i,n,o,a,c;if(e===null)return{};for(r={},s=Object.keys(e),i=0,n=s.length;i<n;i+=1)o=s[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&nX.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function LMe(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 rn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ss.repeat("0",s-e.length)+e}var FMe=1,aC=2;function UMe(t){this.schema=t.schema||jK,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=MMe(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==='"'?aC:FMe,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}function DK(t,e){for(var r=ss.repeat(" ",e),s=0,i=-1,n="",o,a=t.length;s<a;)i=t.indexOf(`
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function jMe(t){for(var e="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=iC(t,i),s=Ks[r],!s&&cC(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||LMe(r);return e}function JMe(t,e,r){var s="",i=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Wl(t,e,a,!1,!1)||typeof a>"u"&&Wl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}function qK(t,e,r,s){var i="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Wl(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Wl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=ik(t,e)),t.dump&&oC===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}function YMe(t,e,r){var s="",i=t.tag,n=Object.keys(r),o,a,c,l,u;for(o=0,a=n.length;o<a;o+=1)u="",s!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=n[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Wl(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Wl(t,e,l,!1,!1)&&(u+=t.dump,s+=u));t.tag=i,t.dump="{"+s+"}"}function WMe(t,e,r,s){var i="",n=t.tag,o=Object.keys(r),a,c,l,u,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new rn("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!s||i!=="")&&(d+=ik(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Wl(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&oC===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=ik(t,e)),Wl(t,e+1,u,!0,h)&&(t.dump&&oC===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=n,t.dump=i||"{}"}function GK(t,e,r){var s,i,n,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,n=0,o=i.length;n<o;n+=1)if(a=i[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,iX.call(a.represent)==="[object Function]")s=a.represent(e,c);else if(nX.call(a.represent,c))s=a.represent[c](e,c);else throw new rn("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=s}return!0}return!1}function Wl(t,e,r,s,i,n,o){t.tag=null,t.dump=r,GK(t,r,!1)||GK(t,r,!0);var a=iX.call(t.dump),c=s,l;s&&(s=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,d;if(u&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")s&&Object.keys(t.dump).length!==0?(WMe(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(YMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?qK(t,e-1,t.dump,i):qK(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(JMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&zMe(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new rn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function KMe(t,e){var r=[],s=[],i,n;for(ok(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n)}function ok(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)ok(t[i],e,r);else for(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)ok(t[s[i]],e,r)}function XMe(t,e){e=e||{};var r=new UMe(e);r.noRefs||KMe(t,r);var s=t;return r.replacer&&(s=r.replacer.call({"":s},"",s)),Wl(r,0,s,!0,!0)?r.dump+`
`:""}var ZMe=XMe,eLe={dump:ZMe};function hk(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.")}}var AX=sX.load,lkt=sX.loadAll,ukt=eLe.dump;var hkt=hk("safeLoad","load"),dkt=hk("safeLoadAll","loadAll"),fkt=hk("safeDump","dump");var gX=D(require("os"),1);function Kl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function dk(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Xl(t,e,r){let s=new fk(t,e,r);process.stdout.write(s.toString()+gX.EOL)}function pk(t,e=""){Xl(t,{},e)}var mX="::",fk=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=mX+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}=${sLe(i)}`)}}return e+=`${mX}${rLe(this.message)}`,e}};function rLe(t){return Kl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function sLe(t){return Kl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var yX=D(require("crypto"),1),HS=D(require("fs"),1),GS=D(require("os"),1);function VS(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!HS.existsSync(r))throw new Error(`Missing file at path: ${r}`);HS.appendFileSync(r,`${Kl(e)}${GS.EOL}`,{encoding:"utf8"})}function Ak(t,e){let r=`ghadelimiter_${yX.randomUUID()}`,s=Kl(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${GS.EOL}${s}${GS.EOL}${r}`}var tF=D(require("os"),1),foe=D(require("path"),1);var uI=D(require("http"),1),G2=D(require("https"),1);function mk(t){let e=t.protocol==="https:";if(iLe(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 zS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new zS(`http://${r}`)}else return}function iLe(t){if(!t.hostname)return!1;let e=t.hostname;if(nLe(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(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function nLe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var zS=class extends URL{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 ed=D(lC(),1),$ne=D(zm(),1),Pr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Do;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new _I(n));return s.searchPaths.push(...FF(s.patterns)),s})}static stat(e,r,s){return VF(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield tg.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Uo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield tg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield tg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){Uo(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var QYe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function ele(t,e){return QYe(this,void 0,void 0,function*(){return yield uN.create(t,e)})}var xN=D(require("crypto"),1),ng=D(require("fs"),1),Xf=D(require("path"),1),jue=D(zue(),1),Jue=D(require("util"),1);var LI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(LI||(LI={}));var Ri;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ri||(Ri={}));var Wn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wn||(Wn={}));var SN=2,BN=5e3,hU=5e3,dU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,$ue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,FI="cache.tar",fU="manifest.txt",aqt=10*Math.pow(1024,3);var ig=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},FKe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},UKe="1.0";function UI(){return ig(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Xf.join(s,"actions","temp")}let r=Xf.join(e,xN.randomUUID());return yield pu(r),r})}function vc(t){return ng.statSync(t).size}function pU(t){return ig(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield ele(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=FKe(c.globGenerator()),h;h=yield u.next(),e=h.done,!e;l=!0){i=h.value,l=!1;let f=Xf.relative(a,i).replace(new RegExp(`\\${Xf.sep}`,"g"),"/");_(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function qI(t){return ig(this,void 0,void 0,function*(){return Jue.promisify(ng.unlink)(t)})}function Yue(t){return ig(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),_(`Checking ${e} ${r.join(" ")}`);try{yield Jn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){_(i.message)}return s=s.trim(),_(s),s})}function GI(){return ig(this,void 0,void 0,function*(){let t=yield Yue("zstd",["--quiet"]),e=jue.clean(t);return _(`zstd version: ${e}`),t===""?Ri.Gzip:Ri.ZstdWithoutLong})}function cd(t){return t===Ri.Gzip?LI.Gzip:LI.Zstd}function Wue(){return ig(this,void 0,void 0,function*(){return ng.existsSync(dU)?dU:(yield Yue("tar")).toLowerCase().includes("gnu tar")?qs("tar"):""})}function AU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function og(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(UKe),xN.createHash("sha256").update(s.join("|")).digest("hex")}function Kue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var VI=D(require("http"),1),yU=D(require("https"),1);function mU(t){let e=t.protocol==="https:";if(qKe(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 vN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new vN(`http://${r}`)}else return}function qKe(t){if(!t.hostname)return!1;let e=t.hostname;if(GKe(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(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function GKe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var vN=class extends URL{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 ld=D(lC(),1),Xue=D(zm(),1),Or=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},yr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="
${sXe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function ON(t){return t instanceof _i?!0:ep(t)&&t.name==="RestError"}function dn(t,e){return Buffer.from(t,e)}var DN=D(require("node:http"),1),kN=D(require("node:https"),1),vU=D(require("node:zlib"),1),mhe=require("node:stream");var Ho=zI("ts-http-runtime");var iXe={};function $I(t){return t&&typeof t.pipe=="function"}function Ahe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function ghe(t){return t&&typeof t.byteLength=="number"}var MN=class extends mhe.Transform{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}},RU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Tc("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new qa;Ho.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=cXe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,m=new MN(p);m.on("error",E=>{Ho.error("Error in upload progress",E)}),$I(a)?a.pipe(m):m.end(a),a=m}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=nXe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?oXe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new MN(f);p.on("error",m=>{Ho.error("Error in download progress",m)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await aXe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();$I(a)&&(l=Ahe(a));let u=Promise.resolve();$I(c)&&(u=Ahe(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Ho.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={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((c,l)=>{let u=n?DN.default.request(a,c):kN.default.request(a,c);u.once("error",h=>{l(new _i(h.message,{code:h.code??_i.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new Tc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&$I(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):ghe(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ho.error("Unrecognized body type",s),l(new _i("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?DN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new DN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return kN.default.globalAgent;let i=e.tlsSettings??iXe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Ho.info("No cached TLS Agent exist, creating a new Agent"),n=new kN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function nXe(t){let e=Kn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function UZe(t){return t instanceof Uint8Array?t.byteLength:ov(t)?t.size===-1?void 0:t.size:void 0}function qZe(t){let e=0;for(let r of t){let s=UZe(r);if(s===void 0)return;e+=s}return e}async function GZe(t,e,r){let s=[dn(`--${r}`,"utf-8"),...e.flatMap(n=>[dn(`\r
`,"utf-8")],i=qZe(s);i&&t.headers.set("Content-Length",i),t.body=await Ede(s)}var WI="multipartPolicy",HZe=70,VZe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zZe(t){if(t.length>HZe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!VZe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function cv(){return{name:WI,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(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?zZe(r):r=LZe(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await GZe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function lv(){return PN()}var Cde=TN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),$4t=Cde.logger;function Pc(t){return Cde.createClientLogger(t)}var Oc=Pc("core-rest-pipeline");function YU(t={}){return FN({logger:Oc.info,...t})}var WU=UN;function KU(t={}){return qN(t)}var uv=D(require("node:os"),1),hv=D(require("node:process"),1);function Ide(){return"User-Agent"}async function bde(t){if(hv.default&&hv.default.versions){let e=`${uv.default.type()} ${uv.default.release()}; ${uv.default.arch()}`,r=hv.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var dv="1.22.2";function ZZe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function wde(){return Ide()}async function fv(t){let e=new Map;e.set("core-rest-pipeline",dv),await bde(e);let r=ZZe(e);return t?`${t} ${r}`:r}var Sde=wde(),Bde="userAgentPolicy";function XU(t={}){let e=fv(t.userAgentPrefix);return{name:Bde,async sendRequest(r,s){return r.headers.has(Sde)||r.headers.set(Sde,await e),s(r)}}}var to=class extends Error{constructor(e){super(e),this.name="AbortError"}};function ZU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new to(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var i7e="The delay was aborted.";function KI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return ZU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??i7e})}function hd(t){if(ep(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`Unknown error ${e}`}}function xde(t){return ep(t)}function Ag(){return Zf()}var Bt=sp;var Nde=Symbol("rawContent");function tq(t){return typeof t[Nde]=="function"}function vde(t){return tq(t)?t[Nde]():t}var pv=WI;function rq(){let t=cv();return{name:pv,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)tq(s.body)&&(s.body=vde(s.body));return t.sendRequest(e,r)}}}var sq=GN;function iq(){return HN()}function nq(t={}){return $N(t)}function oq(){return jN()}function dd(t){return VU(t)}function aq(t,e){return sv(t,e)}var Rde="setClientRequestIdPolicy";function cq(t="x-ms-client-request-id"){return{name:Rde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function lq(t){return iv(t)}function uq(t){return nv(t)}var mg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Tde(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue(mg.span,t.span)),t.namespace&&(e=e.setValue(mg.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!Tet(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",Dr("InvalidTag",h,Qi(t,n))}let l=Bet(t,n);if(l===!1)return Dr("InvalidAttr","Attributes for '"+c+"' have open quote.",Qi(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=ffe(u,e);if(d===!0)s=!0;else return Dr(d.err.code,d.err.msg,Qi(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Dr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Qi(t,o));if(r.length===0)return Dr("InvalidTag","Closing tag '"+c+"' has not been opened.",Qi(t,o));{let h=r.pop();if(c!==h.tagName){let d=Qi(t,h.tagStartPos);return Dr("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Qi(t,o))}r.length==0&&(i=!0)}}else return Dr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Qi(t,n));else{let h=ffe(u,e);if(h!==!0)return Dr(h.err.code,h.err.msg,Qi(t,n-u.length+h.err.line));if(i===!0)return Dr("InvalidXml","Multiple possible root nodes found.",Qi(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=dfe(t,n);continue}else if(t[n+1]==="?"){if(n=hfe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=vet(t,n);if(h==-1)return Dr("InvalidChar","char '&' is not expected.",Qi(t,n));n=h}else if(i===!0&&!ufe(t[n]))return Dr("InvalidXml","Extra text at the end",Qi(t,n));t[n]==="<"&&n--}}else{if(ufe(t[n]))continue;return Dr("InvalidChar","char '"+t[n]+"' is not expected.",Qi(t,n))}if(s){if(r.length==1)return Dr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Qi(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}function ufe(t){return t===" "||t===" "||t===`
`||t==="\r"}function hfe(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.",Qi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dfe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var bet='"',wet="'";function Bet(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===bet||t[e]===wet)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}}var xet=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ffe(t,e){let r=Bv(t,xet),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.",l0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Dr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",l0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Dr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",l0(r[i]));let n=r[i][2];if(!Ret(n))return Dr("InvalidAttr","Attribute '"+n+"' is an invalid name.",l0(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Dr("InvalidAttr","Attribute '"+n+"' is repeated.",l0(r[i]))}return!0}function Net(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function vet(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Net(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Dr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Ret(t){return Rq(t)}function Tet(t){return Rq(t)}function Qi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function l0(t){return t.startIndex+t[1].length}var pfe={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"},Afe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new mn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new d0(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=Ig(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=Mq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=Lq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new mn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Ig(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=Ig(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=Lq(t,a,i.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,m=u.closeIndex;if({tagName:h,tagExp:f}=Mq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let C=null,w={},B;B=Zet(d),h!==e.tagname&&this.matcher.push(h,{},B),h!==f&&p&&(C=this.buildAttributesMap(f,this.matcher,h),C&&(w=Xet(C,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let O="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let M=this.readStopNodeData(t,d,m+1);if(!M)throw new Error(`Unexpected end of ${d}`);a=M.i,O=M.tagContent}let P=new mn(h);C&&(P[":@"]=C),P.add(i.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,P,this.readonlyMatcher,N)}else{if(y){({tagName:h,tagExp:f}=Mq(i.transformTagName,h,f,i));let O=new mn(h);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let O=new mn(h);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new mn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,N),r=O}s="",a=m}}}else s+=t[a];return e.child};function n
`}),s}getCanonicalizedResourceString(e){let r=Uv(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=qv(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var Er=class extends dp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new g0(e,r,this)}computeHMACSHA256(e){return(0,$fe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var os=Pc("storage-common");var jo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(jo||(jo={}));var gd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:jo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Qtt=new to("The operation was aborted."),y0=class extends Lc{retryOptions;constructor(e,r,s=gd){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:gd.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):gd.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:gd.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:gd.maxRetryDelayInMs):gd.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:gd.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:gd.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=Fv(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=md(i.url,Su.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(os.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(os.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,s,o,a))throw a}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}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return os.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return os.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return os.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Ue.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){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 jo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case jo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return os.info(`RetryPolicy: Delay for ${i}ms`),Gv(i,s,Qtt)}};var E0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new y0(e,r,this.retryOptions)}};var Ptt="storageBrowserPolicy";function jfe(){return{name:Ptt,async sendRequest(t,e){return Bt||((t.method==="GET"||t.method==="HEAD")&&(t.url=md(t.url,Su.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ue.COOKIE),t.headers.delete(Ue.CONTENT_LENGTH)),e(t)}}}var Ott="StorageCorrectContentLengthPolicy";function Jfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ue.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Ott,async send
`}),a}function i(n){let o=Uv(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=qv(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
${h}:${decodeURIComponent(l[h])}`}return a}return{name:Ltt,async sendRequest(n,o){return e(n),o(n)}}}var Ftt="storageRequestFailureDetailsParserPolicy";function Kfe(){return{name:Ftt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(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}}function Hst(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function Vst(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,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}}function zst(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,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}}function $st(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,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}}function jst(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,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}}function Jst(t,e){if(t=Ip(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=tl.parse(t.permissions.toString()).toString():i=rl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?xt(t.startsOn,!1):"",t.expiresOn?xt(t.expiresOn,!1):"",Cp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,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}}function Cp(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Ip(t){let e=t.version?t.version:$v;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Q0=class{_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=Ag()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||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 we.withSpan("BlobLeaseClient-acquireLease",r,async s=>Ne(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!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||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 we.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=Ne(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?.ifMatch&&e.conditions?.ifMatch!==Ga||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ga||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Dg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bp=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var G0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var zit=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},U8=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);G(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function lme(t,e,r){return zit(this,void 0,void 0,function*(){var s;let i=new Pu(t),n=i.getBlockBlobClient(),o=new U8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),_(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new KR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ot(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var hme=D(require("buffer"),1),sl=D(require("fs"),1),dme=D(require("stream"),1),fme=D(require("util"),1);var XR=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function ZR(t){return t?t>=200&&t<300:!1}function $it(t){return t?t>=500:!0}function jit(t){return t?[yr.BadGateway,yr.ServiceUnavailable,yr.GatewayTimeout].includes(t):!1}function Jit(t){return XR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ume(t,e,r){return XR(this,arguments,void 0,function*(s,i,n,o=SN,a=BN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!$it(d)))return h;if(d&&(f=jit(d),l=`Cache service responded with ${d}`),_(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){_(`${s} - Error is not retryable`);break}yield Jit(a),u++}throw Error(`${s} failed: ${l}`)})}function H0(t,e){return XR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield ume(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof Rc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function kg(t,e){return XR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield ume(r,s,o=>o.message.statusCode,i,n)})}var Xo=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Yit(t,e){return Xo(this,void 0,void 0,function*(){yield fme.promisify(dme.pipeline)(t.message,e)})}var eT=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Other caches with similar key:`);for(let a of n?.artifactCaches||[])_(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function V8(t,e,r){return Cn(this,void 0,void 0,function*(){let s=new wme.URL(t),i=gme(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Ame(t,e,i):i.concurrentBlobDownloads?yield pme(t,e,i):yield tT(t,e):yield tT(t,e)})}function Bme(t,e,r){return Cn(this,void 0,void 0,function*(){let s=H8(),i=og(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield H0("reserveCache",()=>Cn(this,void 0,void 0,function*(){return s.postJson(z0("caches"),n)}))})}function bme(t,e){return`bytes ${t}-${e}/*`}function snt(t,e,r,s,i){return Cn(this,void 0,void 0,function*(){_(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${bme(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":bme(s,i)},o=yield kg(`uploadChunk (start: ${s}, end: ${i})`,()=>Cn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!ZR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function int(t,e,r,s){return Cn(this,void 0,void 0,function*(){let i=vc(r),n=z0(`caches/${e.toString()}`),o=Mg.openSync(r,"r"),a=q8(s),c=AU("uploadConcurrency",a.uploadConcurrency),l=AU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];_("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>Cn(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield snt(t,n,()=>Mg.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,p)}})))}finally{Mg.closeSync(o)}})}function nnt(t,e,r){return Cn(this,void 0,void 0,function*(){let s={size:r};return yield H0("commitCache",()=>Cn(this,void 0,void 0,function*(){return t.postJson(z0(`caches/${e.toString()}`),s)}))})}function z8(t,e,r,s){return Cn(this,void 0,void 0,function*(){if(q8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield lme(r,e,s)}else{let n=H8();_("Upload cache"),yield int(n,t,e,s),_("Commiting cache");let o=vc(e);G(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield nnt(n,t,o);if(!ZR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);G("Cache saved successfully")}})}var Ege=D(dge(),1),Fr=D(Lr(),1),ao=D(Lr(),1),Tp=D(Lr(),1),_p=D(Lr(),1),Qp=D(Lr(),1);var FV=D(Lr(),1),UV=D(Lr(),1),mge=D(Lr(),1),gge=D(Lr(),1),yge=D(Lr(),1);var kV=D(Lr(),1),MV=D(Lr(),1),fge=D(Lr(),1),pge=D(Lr(),1),Age=D(Lr(),1),LV=class extends Age.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,pge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,fge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?MV.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,kV.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,kV.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?MV.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},GT=new LV;var qV=class extends yge.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>GT}])}create(e){let r={repositoryId:"0",scope:[]};
`));let s=yield rz(r,"create");yield sz(s,t)})}var ey=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Wa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Zg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},$T=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function wge(t){if(!t||t.length===0)throw new Wa("Path Validation Error: At least one directory or file path is required")}function oz(t){if(t.length>512)throw new Wa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Wa(`Key Validation Error: ${t} cannot contain commas.`)}function az(){return V0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Sge(t,e,r,s){return ey(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=V0();return _(`Cache service version: ${l}`),wge(i),l==="v2"?yield Cat(i,n,o,a,c):yield Eat(i,n,o,a,c)})}function Eat(t,e,r,s){return ey(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(_("Resolved Keys:"),_(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)oz(d);let u=yield GI(),h="";try{let d=yield Sme(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return G("Lookup only - skipping download"),d.cacheKey;h=ab.join(yield UI(),cd(u)),_(`Archive Path: ${h}`),yield V8(d.archiveLocation,h,a),Au()&&(yield ob(h,u));let f=vc(h);return G(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield iz(h,u),G("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===Wa.name)throw d;f instanceof Rc&&typeof f.statusCode=="number"&&f.statusCode>=500?Jm(`Failed to restore: ${d.message}`):Ot(`Failed to restore: ${d.message}`)}finally{try{yield qI(h)}catch(d){_(`Failed to delete archive: ${d}`)}}})}function Cat(t,e,r,s){return ey(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(_("Resolved Keys:"),_(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)oz(h);let u="";try{let h=tz(),d=yield GI(),f={key:n,restoreKeys:o,version:og(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){_(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==p.matchedKey?G(`Cache hit for restore-key: ${p.matchedKey}`):G(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return G("Lookup only - skipping download"),p.matchedKey;u=ab.join(yield UI(),cd(d)),_(`Archive path: ${u}`),_(`Starting download of archive to: ${u}`),yield V8(p.signedDownloadUrl,u,a);let E=vc(u);return G(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Au()&&(yield ob(u,d)),yield iz(u,d),G("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===Wa.name)throw h;d instanceof Rc&&typeof d.statusCode=="number"&&d.statusCode>=500?Jm(`Failed to restore: ${h.message}`):Ot(`Failed to restore: ${h.message}`)}finally{try{u&&(yield qI(u))}catch(h){_(`Failed to delete archive: ${h}`)}}})}function cz(t,e,r){return ey(this,arguments,void 0,function*(s,i,n,o=!1){let a=V0();return _(`Cache service version: ${a}`),wge(s),oz(i),a==="v2"?yield bat(s,i,n,o):yield Iat(s,i,n,o)})}function Iat(t,e,r){return ey(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield GI(),f=-1,p=yield pU(s);if(_("Cache Paths:"),_(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield UI(),E=ab.join(m,cd(d));_(`Archive Path: ${E}`);try{yie
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:m,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:B,quote:N,record_delimiter:O}=this.options,{bomSkipped:P,previousBuf:M,rawBuffer:V,escapeIsQuote:Z}=this.state,F;if(M===void 0)if(s===void 0){o();return}else F=s;else M!==void 0&&s===void 0?F=M:F=Buffer.concat([M,s]);if(P===!1)if(a===!1)this.state.bomSkipped=!0;else if(F.length<3){if(i===!1){this.state.previousBuf=F;return}}else{for(let $ in Ay)if(Ay[$].compare(F,0,Ay[$].length)===0){let re=Ay[$].length;this.state.bufBytesStart+=re,F=F.slice(re);let _e=_3({...this.original_options,encoding:$});for(let be in _e)this.options[be]=_e[be];({comment:w,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let U=F.length,H;for(H=0;H<U&&!this.__needMoreData(H,U,i);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&O.length===0&&this.__autoDiscoverRecordDelimiter(F,H)&&(O=this.options.record_delimiter);let $=F[H];if(f===!0&&V.append($),($===$ft||$===jft)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(F,H,$)&&H+B.length<U)if(Z){if(this.__isQuote(F,H+B.length)){this.state.escaping=!0,H+=B.length-1;continue}}else{this.state.escaping=!0,H+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,H))if(this.state.quoting===!0){let be=F[H+N.length],ce=m&&this.__isCharTrimable(F,H+N.length),at=w!==null&&this.__compareBytes(w,F,H+N.length,be),Ze=this.__isDelimiter(F,H+N.length,be),Et=O.length===0?this.__autoDiscoverRecordDelimiter(F,H+N.length):this.__isRecordDelimiter(be,F,H+N.length);if(B!==null&&this.__isEscape(F,H,$)&&this.__isQuote(F,H+B.length))H+=B.length-1;else if(!be||Ze||Et||at||ce){this.state.quoting=!1,this.state.wasQuoting=!0,H+=N.length-1;continue}else if(p===!1){let Oe=this.__error(new mt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(be)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Oe!==void 0)return Oe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),H+=N.length-1}else if(this.state.field.length!==0){if(p===!1){let be=this.__infoField(),ce=Object.keys(Ay).map(Ze=>Ay[Ze].equals(this.state.field.toString())?Ze:!1).filter(Boolean)[0],at=this.__error(new mt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(be.column)} at line ${be.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ce?`(${ce} bom)`:void 0],this.options,be,{field:this.state.field}));if(at!==void 0)return at}}else{this.state.quoting=!0,H+=N.length-1;continue}if(this.state.quoting===!1){let be=this.__isRecordDelimiter($,F,H);if(be!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=be-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=be-1;continue}this.info.bytes=this.state.bufBytesStart+H;let Ze=this.__onField();if(Ze!==void 0)return Ze;this.info.bytes=this.state.bufBytesStart+H+be;let Et=this.__onRecord(n);if(Et!==void 0)return Et;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,H+=be-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,F,H,$)!==0){this.state.commenting=!0;continue}let ce=this.__isDelimiter(F,H,$);if(ce!==0){this.inf
`),i.files[a]+=c.replace(/^\s>\s?/,""));break}}}}returno&&i.devices&&i.devices.push(o),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};varHp=D(require("fs"),1),i5=D(require("path"),1);varcQ=classt{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||newyt,this.iidFilename=`build-iidfile-${bt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${bt.generateRandomString()}.json`}asyncgitContext(e){letr=newSet(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([f])=>!r.has(f)),n=bt.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||Ui.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&bt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;leta=`${kt.serverURL}/${Ui.repo.owner}/${Ui.repo.repo}.git`,c=e?.checksum||s.checksum,l=e?.subdir||s.subdir,u=e?.format;if(!u){if(u="fragment",i.length>0)u="query";elseif(bt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{awaitthis.buildx.versionSatisfies(">=0.29.0")&&(u="query")}catch{}}leth=Ui.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(h=typeofUi.payload.pull_request?.head?.sha=="string"?Ui.payload.pull_request.head.sha:o);letd=c||h;if(u==="query"){letf=[`ref=${n||c?o:d}`],p=n?d:c;p&&f.push(`checksum=${p}`),l&&l!=="."&&f.push(`subdir=${l}`);for(let[m,E]ofi)f.push(`${m}=${E}`);return`${a}?${f.join("&")}`}return`${a}#${d}${l&&l!=="."?`:${l}`:""}`}getImageIDFilePath(){returni5.default.join(It.tmpDir(),this.iidFilename)}resolveImageID(){lete=this.getImageIDFilePath();if(Hp.default.existsSync(e))returnHp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){returni5.default.join(It.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!Hp.default.existsSync(e))return;letr=Hp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"ine)returne["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"ine)returne["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"ine)returne["containerimage.digest"]}staticresolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}staticresolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}staticresolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}staticresolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Hp.default.existsSync(i))thrownewError(`secret file ${i} not found`);return[s,i]}letn=It.tmpName({tmpdir:It.tmpDir()});returnHp.default.writeFileSync(n,i),[s,n]}staticgetProvenanceInput(e){letr=ri(e);if(!r)returnr;try{returnjf(e)?`builder-id=${kt.workflowRunURL(!0)}`:"false"}catch{returnt.resolveProvenanceAttrs(r)}}staticresolveProvenanceAttrs(e){if(!e)return`builder-id=${kt.workflowRunURL(!0)}`;letr=fo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letsofr)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")returne;return`${e},builder-id=${kt.workflowRunURL(!0)}`}staticresolveCacheToAttrs(e,r){if(!e)returne;lets="registry",i="",n="",o=fo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letaofo){letc=a.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?i=c[1]:c[0]==="ghtoken"&&(n=c[1])}returns==="gha"&&(i||(e=`${e},repository=${kt.repository}`),!n&&r&&(e=`${e},ghtoken=${r}`)),e}statichasLocalExporter(e){returnt.hasExporterType("local",e)}statichasTarExporter(e){returnt.hasExporterType("tar",e)}statichasDockerExporter(e,r){returnr||t.hasExporterType("docker",e)}statichasExporterType(e,r){lets=fo(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letiofs){if(i.length==1&&!i[0].startsWith("type="))returne=="local";for(let[n,o]ofi.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}statichasAttestationType(e,r){lets=fo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letiofs)for(let[n,o]ofi.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}staticresolveAttestationAttrs(e){letr=fo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(letiofr)for(letnofi)try{leto=bt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}returns.join(",")}statichasGitAuthTokenSecret(e,r){for(letsofe){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}staticparseSecretKvp(e,r){lets=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)thrownewError(`${e} is not a valid secret`);returnr&&bc(n),[i,n]}};varn5=D(require("fs"),1),k0e=D(require("path"),1);varlQ=classt{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||newyt,this.metadataFilename=`bake-metadata-${bt.generateRandomString()}.json`}getMetadataFilePath(){returnk0e.default.join(It.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!n5.default.existsSync(e))return;letr=n5.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;letr=newArray;for(letsine)"buildx.build.ref"ine[s]&&r.push(e[s]["buildx.build.ref"]);returnr.length>0?r:void0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}asyncgetDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});lets=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(letcofo.map(l=>l?l.trim():""))if(c.length!=0){if(!bt.isValidRef(c)){n.push(c);continue}if(i)thrownewError("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(letcofn)s.push("--file",c);if(e.overrides)for(letcofe.overrides)s.push("--set",c);if(e.vars)for(letcofe.vars)s.push("--var",c);if(e.allow)for(letcofe.allow)s.push("--allow",c);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);leta=awaitthis.buildx.getCommand([...s,"--print",...e.targets||[]]);returnawaitve.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)thrownewError(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);returnt.parseDefinition(c.stdout.trim())})}staticparseDefinition(e){letr=JSON.parse(e);for(letsinr.target){leti=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}returnr}staticparseAttestEntry(e){if(typeofe!="string")returne;letr={type:""},s=fo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letiofs){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=bt.parseBool(o);break;default:r[n]=o}}returnr}staticparseCacheEntry(e){if(typeofe!="string")returne;letr={type:""},s=fo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))returnr.type="registry",r.ref=s[0],r;for(letiofs){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/)