varANe=Object.create;varq1=Object.defineProperty;varpNe=Object.getOwnPropertyDescriptor;varmNe=Object.getOwnPropertyNames;vargNe=Object.getPrototypeOf,yNe=Object.prototype.hasOwnProperty;varENe=(t,e)=>()=>(t&&(e=t(t=0)),e);varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),J5=(t,e)=>{for(varrine)q1(t,r,{get:e[r],enumerable:!0})},CNe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofmNe(e))!yNe.call(t,i)&&i!==r&&q1(t,i,{get:()=>e[i],enumerable:!(s=pNe(e,i))||s.enumerable});returnt};vark=(t,e,r)=>(r=t!=null?ANe(gNe(t)):{},CNe(e||!t||!t.__esModule?q1(r,"default",{value:t,enumerable:!0}):r,t));varHY=m(zA=>{"use strict";varU0t=require("net"),YTe=require("tls"),oP=require("http"),UY=require("https"),WTe=require("events"),q0t=require("assert"),KTe=require("util");zA.httpOverHttp=XTe;zA.httpsOverHttp=ZTe;zA.httpOverHttps=eve;zA.httpsOverHttps=tve;functionXTe(t){vare=newwl(t);returne.request=oP.request,e}functionZTe(t){vare=newwl(t);returne.request=oP.request,e.createSocket=qY,e.defaultPort=443,e}functioneve(t){vare=newwl(t);returne.request=UY.request,e}functiontve(t){vare=newwl(t);returne.request=UY.request,e.createSocket=qY,e.defaultPort=443,e}functionwl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||oP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(vara=GY(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)})}KTe.inherits(wl,WTe.EventEmitter);wl.prototype.addRequest=function(e,r,s,i){varn=this,o=aP({request:e},n.options,GY(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)}})};wl.prototype.createSocket=function(e,r){vars=this,i={};s.sockets.push(i);varn=aP({},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")),Wu("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(d){d.upgrade=!0}functionc(d,h,f){process.nextTick(function(){l(d,h,f)})}functionl(d,h,f){if(o.removeAllListeners(),h.removeAllListeners(),d.statusCode!==200){Wu("tunneling socket could not be established, statusCode=%d",d.statusCode),h.destroy();varA=newError("tunneling socket could not be established, statusCode="+d.statusCode);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}if(f.length>0){Wu("got illegal response body from proxy"),h.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}returnWu("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=h,r(h)}functionu(d){o.removeAllListeners(),Wu(`tunneling socket could not be established, cause=%s
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}functionrp(t,e,r){lets=r.position;for(;s<e.length&&t(e[s]);)++s;returne.subarray(r.position,r.position=s)}functionlO(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)}functionhw(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}J6.exports={multipartFormDataParser:g1e,validateBoundary:m1e}});varnp=m((mbt,nW)=>{"use strict";varVy=rt(),{ReadableStreamFrom:E1e,isBlobLike:W6,isReadableStreamLike:C1e,readableStreamClose:I1e,createDeferredPromise:b1e,fullyReadBody:w1e,extractMimeType:B1e,utf8DecodeBytes:Z6}=En(),{FormData:K6}=zy(),{kState:ip}=Ku(),{webidl:S1e}=Qs(),{Blob:x1e}=require("node:buffer"),uO=require("node:assert"),{isErrored:eW,isDisturbed:N1e}=require("node:stream"),{isArrayBuffer:R1e}=require("node:util/types"),{serializeAMimeType:T1e}=qi(),{multipartFormDataParser:v1e}=Y6(),dO;try{lett=require("node:crypto");dO=e=>t.randomInt(0,e)}catch{dO=t=>Math.floor(Math.random(t))}varfw=newTextEncoder;functionQ1e(){}vartW=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,rW;tW&&(rW=newFinalizationRegistry(t=>{lete=t.deref();e&&!e.locked&&!N1e(e)&&!eW(e)&&e.cancel("Response object has been garbage collected").catch(Q1e)}));functionsW(t,e=!1){letr=null;tinstanceofReadableStream?r=t:W6(t)?r=t.stream():r=newReadableStream({asyncpull(c){letl=typeofi=="string"?fw.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>I1e(c))},start(){},type:"bytes"}),uO(C1e(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(R1e(t))i=newUint8Array(t.slice());elseif(ArrayBuffer.isView(t))i=newUint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));elseif(Vy.isFormDataLike(t)){letc=`----formdata-undici-0${`${dO(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
`);h.push(p),n+=p.byteLength,A&&(n=null),i=t,s=asyncfunction*(){for(letEofh)E.stream?yield*E.stream():yieldE},o=`multipart/form-data; boundary=${c}`}elseif(W6(t))i=t,n=t.size,t.type&&(o=t.type);elseif(typeoft[Symbol.asyncIterator]=="function"){if(e)thrownewTypeError("keepalive");if(Vy.isDisturbed(t)||t.locked)thrownewTypeError("Response body object should not be disturbed or locked");r=tinstanceofReadableStream?t:E1e(t)}if((typeofi=="string"||Vy.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){letc;r=newReadableStream({asyncstart(){c=s(t)[Symbol.asyncIterator]()},asyncpull(l){let{value:u,done:d}=awaitc.next();if(d)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});elseif(!eW(r)){leth=newUint8Array(u);h.byteLength&&l.enqueue(h)}returnl.desiredSize>0},asynccancel(l){awaitc.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function_1e(t,e=!1){returntinstanceofReadableStream&&(uO(!Vy.isDisturbed(t),"The body has already been consumed."),uO(!t.locked,"The stream is locked.")),sW(t,e)}functionP1e(t,e){let[r,s]=e.stream.tee();returne.stream=r,{stream:s,length:e.length,source:e.source}}functionO1e(t){if(t.aborted)thrownewDOMException("The operation was aborted.","AbortError")}functionD1e(t){return{blob(){returnsp(this,r=>{lets=X6(this);returns===null?s="":s&&(s=T1e(s)),newx1e([r],{type:s})},t)},arrayBuffer(){returnsp(this,r=>newUint8Array(r).buffer,t)},text(){returnsp(this,Z6,t)},json(){returnsp(this,M1e,t)},formData(){returnsp(this,r=>{lets=X6(this);if(s!==null)switch(s.essence){case"multipart/form-data":{leti=v1e(r,s);if(i==="failure")thrownewTypeError("Failed to parse body as FormData.");letn=newK6;returnn[ip]=i,n}case"application/x-www-form-urlencoded":{leti=newURLSearchParams(r.toString()),n=newK6;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(){returnsp(this,r=>newUint8Array(r),t)}}}functionk1e(t){Object.assign(t.prototype,D1e(t))}asyncfunctionsp(t,e,r){if(S1e.brandCheck(t,r),iW(t))thrownewTypeError("Body is unusable: Body has already been read");O1e(t[ip]);lets=b1e(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};returnt[ip].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(awaitw1e(t[ip].body,n,i),s.promise)}functioniW(t){lete=t[ip].body;returne!=null&&(e.stream.locked||Vy.isDisturbed(e.stream))}functionM1e(t){returnJSON.parse(Z6(t))}functionX6(t){lete=t[ip].headersList,r=B1e(e);returnr==="failure"?null:r}nW.exports={extractBody:sW,safelyExtractBody:_1e,cloneBody:P1e,mixinBody:k1e,streamRegistry:rW,hasFinalizationRegistry:tW,bodyUnusable:iW}});varmW=m((gbt,pW)=>{"use strict";varve=require("node:assert"),Fe=rt(),{channels:oW}=$A(),hO=jP(),{RequestContentLengthMismatchError:Th,ResponseContentLengthMismatchError:L1e,RequestAbortedError:hW,HeadersTimeoutError:F1e,HeadersOverflowError:U1e,SocketError:Ew,InformationalError:op,BodyTimeoutError:q1e,HTTPParserError:G1e,ResponseExceededMaxSizeError:H1e}=Ct(),{kUrl:fW,kReset:Gi,kClient:mO,kParser:Ar,kBlocking:Jy,kRunning:Fs,kPending:z1e,kSize:aW,kWriting:Zu,kQueue:oa,kNoRef:$y,kKeepAliveDefaultTimeout:V1e,kHostHeader:$1e,kPendingIdx:j1e,kRunningIdx:ao,kError:co,kPipelining:gw,kSocket:ap,kKeepAliveTimeoutValue:Cw,kMaxHeadersSize:fO,kKeepAliveMaxTimeout:J1e,kKeepAliveTimeoutThreshold:Y1e,kHeadersTimeout:W1e,kBodyTimeout:K1e,kStrictContentLength:gO,kMaxRequests:cW,kCounter:X1e,kMaxResponseSize:Z1e,kOnError:ePe,kResume:Xu,kHTTPContext:AW}=er(),za=r6(),tPe=Buffer.alloc(0),Aw=Buffer[Symbol.species],pw=Fe.addListener,rPe=Fe.removeAllListeners,AO;asyncfunctionsPe(){lett=process.env.JEST_WORKER_ID?WP():void0,e;try{e=awaitWebAssembly.compile(n6())}catch{e=awaitWebAssembly.compile(t||WP())}returnawaitWebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{ve(Wr.ptr===r);letn=s-$a+Va.byteOffset;returnWr.onStatus(newAw(Va.buffer,n,i))||0},wasm_on_message_begin:r=>(ve(Wr.ptr===r),Wr.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{ve(Wr.
`}return oW.sendHeaders.hasSubscribers&&oW.sendHeaders.publish({request:e,headers:p,socket:f}),!c||h===0?uW(A,null,t,e,f,u,p,d):Fe.isBuffer(c)?uW(A,c,t,e,f,u,p,d):Fe.isBlobLike(c)?typeof c.stream=="function"?dW(A,c.stream(),t,e,f,u,p,d):uPe(A,c,t,e,f,u,p,d):Fe.isStream(c)?lPe(A,c,t,e,f,u,p,d):Fe.isIterable(c)?dW(A,c,t,e,f,u,p,d):ve(!1),!0}function lPe(t,e,r,s,i,n,o,a){ve(n!==0||r[Fs]===0,"stream body cannot be pipelined");let c=!1,l=new Iw({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(A){if(!c)try{!l.write(A)&&this.pause&&this.pause()}catch(p){Fe.destroy(this,p)}},d=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let A=new hW;queueMicrotask(()=>f(A))}},f=function(A){if(!c){if(c=!0,ve(i.destroyed||i[Zu]&&r[Fs]<=1),i.off("drain",d).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",h),!A)try{l.end()}catch(p){A=p}l.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Fe.destroy(e,A):Fe.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",h),e.resume&&e.resume(),i.on("drain",d).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function uW(t,e,r,s,i,n,o,a){try{e?Fe.isBuffer(e)&&(ve(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"):(ve(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Xu]()}catch(c){t(c)}}async function uPe(t,e,r,s,i,n,o,a){ve(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Th;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length:${n}\r
\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[Gi]=!0),r[Xu]()}catch(c){t(c)}}async function dW(t,e,r,s,i,n,o,a){ve(n!==0||r[Fs]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let h=c;c=null,h()}}let u=()=>new Promise((h,f)=>{ve(c===null),i[co]?f(i[co]):c=h});i.on("close",l).on("drain",l);let d=new Iw({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(i[co])throw i[co];d.write(h)||await u()}d.end()}catch(h){d.destroy(h)}finally{i.off("close",l).off("drain",l)}}var Iw=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[Zu]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[co])throw r[co];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[gO])throw new Th;process.emitWarning(new Th)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Gi]=!0),i===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(s[gO])throw new Th;process.emitWarning(new Th)}e[Ar].timeout&&e[Ar].timeoutType===cp&&e[Ar].timeout.refresh&&e[Ar].timeout.refresh(),s[Xu]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Zu]=!1,e&&(ve(s[Fs]<=1,"pipeline should only contain this request"),i(e))}};pW.exports=nPe});var BW=m((ybt,wW)=>{"use strict";var lo=require("node:assert"),{pipeline:dPe}=require("node:stream"),at=rt(),{RequestContentLengthMismatchError:IO,RequestAbortedError:gW,SocketError:Yy,InformationalError:bO}=Ct(),{kUrl:bw,kReset:Bw,kClient:lp,kRunning:Sw,kPending:hPe,kQueue:ed,kPendingIdx:wO,kRunningIdx:aa,kError:la,kSocket:as,kStrictContentLength:fPe,kOnError:BO,kMaxConcurrentStreams:bW,kHTTP2Session:ca,kResume:td,kSize:APe,kHTTPContext:pPe}=er(),Tl=Symbol("open streams"),yW,EW=!1,ww;try{ww=require("node:http2")}catch{ww={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:mPe,HTTP2_HEADER_METHOD:gPe,HTTP2_HEADER_PATH:yPe,HTTP2_HEADER_SCHEME:EPe,HTTP2_HEADER_CONTENT_LENGTH:CPe,HTTP2_HEADER_EXPECT:IPe,HTTP2_HEADER_STATUS:bPe}}=ww;function wPe(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 BPe(t,e){t[as]=e,EW||(EW=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=ww.connect(t[bw],{createConnection:()=>e,peerMaxConcurrentStreams:t[bW]});r[Tl]=0,r[lp]=t,r[as]=e,at.addListener(r,"error",xPe),at.addListener(r,"frameError",NPe),at.addListener(r,"end",RPe),at.addListener(r,"goaway",TPe),at.addListener(r,"close",function(){let{[lp]:i}=this,{[as]:n}=i,o=this[as][la]||this[la]||new Yy("closed",at.getSocketInfo(n));if(i[ca]=null,i.destroyed){lo(i[hPe]===0);let a=i[ed].splice(i[aa]);for(let c=0;c<a.length;c++){let l=a[c];at.errorRequest(i,l,o)}}}),r.unref(),t[ca]=r,e[ca]=r,at.addListener(e,"error",function(i){lo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[la]=i,this[lp][BO](i)}),at.addListener(e,"end",function(){at.destroy(this,new Yy("other side closed",at.getSocketInfo(this)))}),at.addListener(e,"close",function(){let i=this[la]||new Yy("closed",at.getSocketInfo(this));t[as]=null,this[ca]!=null&&this[ca].destroy(i),t[wO]=t[aa],lo(t[Sw]===0),t.emit("disconnect",t[bw],[t],i),t[td]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return QPe(t,...i)},resume(){SPe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function SPe(t){let e=t[as];e?.destroyed===!1&&(t[APe]===0&&t[bW]===0?(e.unref(),t[ca].unref()):(e.ref(),t[ca].ref()))}function xPe(t){lo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[as][la]=t,this[lp][BO](t)}function NPe(t,e,r){if(r===0){let s=new bO(`HTTP/2:"frameError"received-type${t},code${e}`);this[as][la]=s,this[lp][BO](s)}}function RPe(){let t=new Yy("other side closed",at.getSocketInfo(this[as]));this.destroy(t),at.destroy(this[as],t)}function TPe(t){let e=this[la]||new Yy(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,at.getSocketInfo(this)),r=this[lp];if(r[as]=null,r[pPe]=null,this[ca]!=null&&(this[ca].destroy(e),this[ca]=null),at.destroy(this[as],e),r[aa]<r[ed].length){let s=r[ed][r[aa]];r[ed][r[aa]++]=null,at.errorRequest(r,s,e),r[wO]=r[aa]}lo(r[Sw]===0),r.emit("disconnect",r[bw],[r],e),r[td]()}function vPe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function QPe(t,e){let r=t[ca],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return at.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<l.length;x+=2){let N=l[x+0],D=l[x+1];if(Array.isArray(D))for(let P=0;P<D.length;P++)d[N]?d[N]+=`,${D[P]}`:d[N]=D[P];else d[N]=D}let h,{hostname:f,port:A}=t[bw];d[mPe]=n||`${f}${A?`:${A}`:""}`,d[gPe]=s;let p=x=>{e.aborted||e.completed||(x=x||new gW,at.errorRequest(t,e,x),h!=null&&at.destroy(h,x),at.destroy(u,x),t[ed][t[aa]++]=null,t[td]())};try{e.onConnect(p)}catch(x){at.errorRequest(t,e,x)}if(e
`).map(e=>e.trim()).join(" ")};Gne.O=function(t){return this.inspectOpts.colors=this.useColors,JS.inspect(t,this.inspectOpts)}});var df=m((HNt,fL)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fL.exports=Mne():fL.exports=Hne()});var $ne=m(Wi=>{"use strict";var Xje=Wi&&Wi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Zje=Wi&&Wi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zne=Wi&&Wi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xje(e,t,r);return Zje(e,t),e};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.req=Wi.json=Wi.toBuffer=void 0;var e8e=zne(require("http")),t8e=zne(require("https"));async function Vne(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Wi.toBuffer=Vne;async function r8e(t){let r=(await Vne(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=`(input:${r})`,i}}Wi.json=r8e;function s8e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?t8e:e8e).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}Wi.req=s8e});var Wne=m(Pn=>{"use strict";var Jne=Pn&&Pn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),i8e=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yne=Pn&&Pn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Jne(e,t,r);return i8e(e,t),e},n8e=Pn&&Pn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Jne(e,t,r)};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.Agent=void 0;var o8e=Yne(require("net")),jne=Yne(require("http")),a8e=require("https");n8e($ne(),Pn);var ac=Symbol("AgentBaseInternalState"),AL=class extends jne.Agent{constructor(e){super(e),this[ac]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new o8e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?a8e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof jne.Agent)try{return a.addRequest(e,i)}catch(c){return s(c)}this[ac].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[ac].currentSocket;if(this[ac].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ac].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ac]&&(this[ac].defaultPort=e)}get protocol(){return this[ac].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ac]&&(this[ac].protocol=e)}};Pn.Agent=AL});var Kne=m(nm=>{"use strict";var c8e=nm&&nm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nm,"__esModule",{value:!0});nm.parseProxyResponse=void 0;var l8e=c8e(df()),WS=(0,l8e.default)("https-proxy-agent:parse-proxy-response");function u8e(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let u=t.read();u?l(u):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),WS("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),WS("onerror %o",u),r(u)}function l(u){i.push(u),s+=u.length;let d=Buffer.concat(i,s),h=d.indexOf(`\r
\r
`);if(h===-1){WS("have not received end of HTTP headers yet..."),n();return}let f=d.slice(0,h).toString("ascii").split(`\r
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=A.split(" "),E=+p[1],y=p.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${w}"`));let N=w.slice(0,x).toLowerCase(),D=w.slice(x+1).trimStart(),P=C[N];typeof P=="string"?C[N]=[P,D]:Array.isArray(P)?P.push(D):C[N]=D}WS("got proxy server response: %o %o",A,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:d})}t.on("error",c),t.on("end",a),n()})}nm.parseProxyResponse=u8e});var soe=m(Bo=>{"use strict";var d8e=Bo&&Bo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),h8e=Bo&&Bo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),toe=Bo&&Bo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&d8e(e,t,r);return h8e(e,t),e},roe=Bo&&Bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.HttpsProxyAgent=void 0;var KS=toe(require("net")),Xne=toe(require("tls")),f8e=roe(require("assert")),A8e=roe(df()),p8e=Wne(),m8e=require("url"),g8e=Kne(),dC=(0,A8e.default)("https-proxy-agent"),Zne=t=>t.servername===void 0&&t.host&&!KS.isIP(t.host)?{...t,servername:t.host}:t,XS=class extends p8e.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new m8e.URL(e):e,this.proxyHeaders=r?.headers??{},dC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?eoe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?(dC("Creating `tls.Socket`: %o",this.connectOpts),i=Xne.connect(Zne(this.connectOpts))):(dC("Creating `net.Socket`: %o",this.connectOpts),i=KS.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=KS.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT${o}:${r.port}HTTP/1.1\r
`;if(s.username||s.password){let h=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}:${n[h]}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",y8e),r.secureEndpoint?(dC("Upgrading socket connection to TLS"),Xne.connect({...eoe(Zne(r),"host","path","port"),socket:i})):i;i.destroy();let d=new KS.Socket({writable:!1});return d.readable=!0,e.once("socket",h=>{dC("Replaying proxy buffer for failed request"),(0,f8e.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),d}};XS.protocols=["http","https"];Bo.HttpsProxyAgent=XS;function y8e(t){t.resume()}function eoe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var ooe=m(Ki=>{"use strict";var E8e=Ki&&Ki.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),C8e=Ki&&Ki.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ioe=Ki&&Ki.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&E8e(e,t,r);return C8e(e,t),e};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.req=Ki.json=Ki.toBuffer=void 0;var I8e=ioe(require("http")),b8e=ioe(require("https"));async function noe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Ki.toBuffer=noe;async function w8e(t){let r=(await noe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=`(input:${r})`,i}}Ki.json=w8e;function B8e(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?b8e:I8e).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}Ki.req=B8e});var hC=m(On=>{"use strict";var coe=On&&On.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),S8e=On&&On.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),loe=On&&On.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&coe(e,t,r);return S8e(e,t),e},x8e=On&&On.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&coe(e,t,r)};Object.defineProperty(On,"__esModule",{value:!0});On.Agent=void 0;var N8e=loe(require("net")),aoe=loe(require("http")),R8e=require("https");x8e(ooe(),On);var cc=Symbol("AgentBaseInternalState"),pL=class extends aoe.Agent{constructor(e){super(e),this[cc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new N8e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?R8e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof aoe.Agent)return a.addRequest(e,i);this[cc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[cc].currentSocket;if(this[cc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[cc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[cc]&&(this[cc].defaultPort=e)}get protocol(){return this[cc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[cc]&&(this[cc].protocol=e)}};On.Agent=pL});var mL=m(So=>{"use strict";var T8e=So&&So.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),v8e=So&&So.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),doe=So&&So.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&T8e(e,t,r);return v8e(e,t),e},Q8e=So&&So.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(So,"__esModule",{value:!0});So.HttpProxyAgent=void 0;var _8e=doe(require("net")),P8e=doe(require("tls")),O8e=Q8e(df()),D8e=require("events"),k8e=hC(),uoe=require("url"),om=(0,O8e.default)("http-proxy-agent"),ZS=class extends k8e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new uoe.URL(e):e,this.proxyHeaders=r?.headers??{},om("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?M8e(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${i}//${n}`,a=new uoe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;om("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(om("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(i),om("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(om("Creating `tls.Socket`: %o",this.connectOpts),n=P8e.connect(this.connectOpts)):(om("Creating `net.Socket`: %o",this.connectOpts),n=_8e.connect(this.connectOpts)),await(0,D8e.once)(n,"connect"),n}};ZS.protocols=["http","https"];So.HttpProxyAgent=ZS;function M8e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Poe=m(fx=>{"use strict";Object.defineProperty(fx,"__esModule",{value:!0});fx.state=void 0;fx.state={instrumenterImplementation:void 0}});var Woe=m(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var lle=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var L6e=require("os"),F6e=require("util");function U6e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var q6e=U6e(F6e);function G6e(t,...e){process.stderr.write(`${q6e.default.format(t,...e)}${L6e.EOL}`)}var Zce=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,tle,Fq=[],Uq=[],_N=[];Zce&&qq(Zce);var rle=Object.assign(t=>sle(t),{enable:qq,enabled:Gq,disable:H6e,log:G6e});function qq(t){tle=t,Fq=[],Uq=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?Uq.push(new RegExp(`^${s.substr(1)}$`)):Fq.push(new RegExp(`^${s}$`));for(let s of _N)s.enabled=Gq(s.namespace)}function Gq(t){if(t.endsWith("*"))return!0;for(let e of Uq)if(e.test(t))return!1;for(let e of Fq)if(e.test(t))return!0;return!1}function H6e(){let t=tle||"";return qq(""),t}function sle(t){let e=Object.assign(r,{enabled:Gq(t),destroy:z6e,log:rle.log,namespace:t,extend:V6e});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return _N.push(e),e}function z6e(){let t=_N.indexOf(this);return t>=0?(_N.splice(t,1),!0):!1}function V6e(t){let e=sle(`${this.namespace}:${t}`);return e.log=this.log,e}var KC=rle,ile=new Set,vN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,PN,ON=KC("azure");ON.log=(...t)=>{KC.log(...t)};var Hq=["verbose","info","warning","error"];vN&&(cle(vN)?nle(vN):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${vN}';loggingisnotenabled.Acceptablevalues:${Hq.join(", ")}.`));function nle(t){if(t&&!cle(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${Hq.join(",")}`);PN=t;let e=[];for(let r of ile)ale(r)&&e.push(r.namespace);KC.enable(e.join(","))}function $6e(){return PN}var ele={verbose:400,info:300,warning:200,error:100};function j6e(t){let e=ON.extend(t);return ole(ON,e),{error:QN(e,"error"),warning:QN(e,"warning"),info:QN(e,"info"),verbose:QN(e,"verbose")}}function ole(t,e){e.log=(...r)=>{t.log(...r)}}function QN(t,e){let r=Object.assign(t.extend(e),{level:e});if(ole(t,r),ale(r)){let s=KC.disable();KC.enable(s+","+r.namespace)}return ile.add(r),r}function ale(t){return!!(PN&&ele[t.level]<=ele[PN])}function cle(t){return Hq.includes(t)}bm.AzureLogger=ON;bm.createClientLogger=j6e;bm.getLogLevel=$6e;bm.setLogLevel=nle});var $q=m(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});var wm=new WeakMap,DN=new WeakMap,XC=class t{constructor(){this.onabort=null,wm.set(this,[]),DN.set(this,!1)}get aborted(){if(!DN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return DN.get(this)}static get none(){return new t}addEventListener(e,r){if(!wm.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");wm.get(this).push(r)}removeEventListener(e,r){if(!wm.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=wm.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 ule(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=wm.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),DN.set(t,!0)}var zq=class extends Error{constructor(e){super(e),t
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${Ele.includes(u)?"Stopped":"Running"}`),u==="succeeded"){letd=o(l,r);if(d!==void0)return{response:awaite(d).catch(gle({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}asyncfunctionwle(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:d,getError:h,updateState:f,setDelay:A,isDone:p,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void0){let{response:C,status:w}=awaituWe({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(Ile({status:w,response:C,state:r,stateProxy:s,isDone:p,processResult:d,getError:h,setErrorAsResult:E}),!Ele.includes(w)){letx=u?.(C);x&&A(x);letN=a?.(C,r);if(N!==void0){letD=y!==N;r.config.operationLocation=N,l?.(N,D)}elsel?.(y,!1)}f?.(r,C)}}functionBle(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}functionSle(t){returnt.headers.location}functionxle(t){returnt.headers["operation-location"]}functionNle(t){returnt.headers["azure-asyncoperation"]}functiondWe(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}}}functionRle(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=xle(e),o=Nle(e),a=Ble({operationLocation:n,azureAsyncOperation:o}),c=Sle(e),l=r?.toLocaleUpperCase();returna!==void0?{mode:"OperationLocation",operationLocation:a,resourceLocation:dWe({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void0}functionTle(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:returneG(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:returnRf.verbose(`LRO: unrecognized operation status: ${e}`),e}}functionhWe(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};returnTle({status:r,statusCode:t.statusCode})}functionfWe(t){vare,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void0?e:{},n=(r=s?.provisioningState)!==null&&r!==void0?r:i;returnTle({status:n,statusCode:t.statusCode})}functioneG(t){returnt===202?"running":t<300?"succeeded":"failed"}functionvle({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?AWe(newDate(e)):r*1e3}}functionQle(t){lete=t.flatResponse.error;if(!e){Rf.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Rf.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}functionAWe(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}function_le(t){let{response:e,state:r,operationLocation:s}=t;functioni(){varo;switch((o=r.config.metadata)===null||o===void0?void0:o.mode){casevoid0:returneG(e.rawResponse.statusCode);case"Body":returntG(e,r);default:return"running"}}letn=i();returnn==="running"&&s===void0?"succeeded":n}asyncfunctionpWe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;returnble({init:async()=>{leto=awaiti.sendInitialRequest(),a=Rle({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});returnObject.assign({response:o,operat
`)}};TR.RpcError=LG});varUG=m(QR=>{"use strict";Object.defineProperty(QR,"__esModule",{value:!0});QR.mergeRpcOptions=void0;varGue=_r();functionQKe(t,e){if(!e)returnt;letr={};vR(t,r),vR(e,r);for(letsofObject.keys(e)){leti=e[s];switch(s){case"jsonOptions":r.jsonOptions=Gue.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Gue.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},vR(t.meta,r.meta),vR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}returnr}QR.mergeRpcOptions=QKe;functionvR(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}});varGG=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.Deferred=Pf.DeferredState=void0;varMc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Mc=Pf.DeferredState||(Pf.DeferredState={}));varqG=class{constructor(e=!0){this._state=Mc.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!==Mc.PENDING)thrownewError(`cannot resolve ${Mc[this.state].toLowerCase()}`);this._resolve(e),this._state=Mc.RESOLVED}reject(e){if(this.state!==Mc.PENDING)thrownewError(`cannot reject ${Mc[this.state].toLowerCase()}`);this._reject(e),this._state=Mc.REJECTED}resolvePending(e){this._state===Mc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Mc.PENDING&&this.reject(e)}};Pf.Deferred=qG});varzG=m(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.RpcOutputStreamController=void0;varHue=GG(),Of=_r(),HG=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){Of.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){Of.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){Of.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(){Of.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;Of.assert(e,"bad state"),Of.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newHue.Deferred,e.p.promise)}}}pushIt(e){letr=this._itState;if(r.p){lets=r.p;Of.assert(s.state==Hue.DeferredState.PENDING,"iterator contract broken"),"value"ine?s.resolve(e):s.reject(e),deleter.p}elser.q.push(e)}};_R.RpcOutputStreamController=HG});var$G=m(km=>{"use strict";var_Ke=km&&km.__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(d){o(d)}}functionc(u){try{l(s.throw(u))}catch(d){o(d)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(km,"__esModule",{value:!0});km.UnaryCall=void0;varVG=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,
\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"}}});varBme=m(wme=>{"use strict";varO$=pu().Buffer;wme._dbcs=gu;varDs=-1,bme=-2,Ho=-10,Pi=-1e3,mg=newArray(256),n0=-1;for(Nv=0;Nv<256;Nv++)mg[Nv]=Ds;varNv;functiongu(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=[]
Wanted:${this.expectedSize}
Found:${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri}integritychecksumfailedwhenusing${this.algorithm}:wanted${this.digests}butgot${e}.(${this.size}bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Iu=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?fot:hot);if(!i||s&&!r4.includes(i[1])||!_ge.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=Kn(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(o=>o.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(r4.includes(this.algorithm)&&this.digest.match(dot)&&this.options.every(r=>r.match(Aot)))?"":`${this.algorithm}-${this.digest}${A0(this.options)}`}};function Qge(t,e,r,s){let i=t!=="",n=!1,o="",a=s.length-1;for(let l=0;l<a;l++){let u=Iu.prototype.toString.call(s[l],r);u&&(n=!0,o+=u,o+=e)}let c=Iu.prototype.toString.call(s[a],r);return c&&(n=!0,o+=c),i&&n?t+e+o:t+o}var oA=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of r4)this[i]&&(s=Qge(s,r,e,this[i]))}else for(let i of Object.keys(this))s=Qge(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:h0(e,r);return Kn(`${this.toString(r)}${s}`,r)}hexDigest(){return Kn(this,{single:!0}).hexDigest()}merge(e,r){let s=Kn(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=Kn(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||Iot,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,o)=>s(n,o)||n):null}};rl.exports.parse=Kn;function Kn(t,e){if(!t)return null;if(typeof t=="string")return t4(t,e);if(t.algorithm&&t.digest){let r=new oA;return r[t.algorithm]=[t],t4(h0(r,e),e)}else return t4(h0(t,e),e)}function t4(t,e){if(e?.single)return new Iu(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new Iu(i,e);if(n.algorithm&&n.digest){let o=n.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(n)}return s},new oA);return r.isEmpty()?null:r}rl.exports.stringify=h0;function h0(t,e){return t.algorithm&&t.digest?Iu.prototype.toString.call(t,e):typeof t=="string"?h0(Kn(t,e),e):oA.prototype.toString.call(t,e)}rl.exports.fromHex=pot;function pot(t,e,r){let s=A0(r?.options);return Kn(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}rl.exports.fromData=mot;function mot(t,e){let r=e?.algorithms||[...i4],s=A0(e?.options);return r.reduce((i,n)=>{let o=f0.createHash(n).update(t).digest("base64"),a=new Iu(`${n}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;i[c]||(i[c]=[]),i[c].push(a)}return i},new oA)}rl.exports.fromStream=got;function got(t,e){let r=n4(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>s(n)),r.resume()})}rl.exports.checkData=yot;function yot(t,e,r){if(e=Kn(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),i=f0.createHash(s).update(t).digest("base64"),n=Kn({algorithm:s,digest:i}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=
Wanted: ${r.size}
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}}rl.exports.checkStream=Eot;functionEot(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Kn(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=n4(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()})}rl.exports.integrityStream=n4;functionn4(t=Object.create(null)){returnnews4(t)}rl.exports.create=Cot;functionCot(t){lete=t?.algorithms||[...i4],r=A0(t?.options),s=e.map(f0.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=newIu(`${o}-${a}${r}`,t);returnn[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},newoA)}}}functionIot(t,e){returnvge.indexOf(t.toLowerCase())>=vge.indexOf(e.toLowerCase())?t:e}});vara4=m((X$t,Mge)=>{varPge=lge(),Oge=Tge(),bot=th(),Dge={shared:!1,ignoreCargoCult:!0},wot={status:200,headers:{}},Eg=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},kge=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},o4=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Eg(r),this.response=kge(s),this.options=i,this.policy=newPge(this.request,this.response,Dge),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:newPge(Eg(e),wot,Dge).storable()}satisfies(e){letr=Eg(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newOge(this.request),i=newOge(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?bot.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=Eg(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=Eg(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=Eg(e),i=kge(r);return!this.policy.revalidatedPolicy(s,i).modified}};Mge.exports=o4});varFge=m((Z$t,Lge)=>{varc4=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Lge.exports={NotCachedError:c4}});varYge=m((e4t,Jge)=>{"use strict";varUge=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},Bot=require("events"),qge=require("stream"),Gge=require("string_decoder").StringDecoder,bu=Symbol("EOF"),wu=Symbol("maybeEmitEnd"),rh=Symbol("emittedEnd"),Uv=Symbol("emittingEnd"),p0=Symbol("emittedError"),qv=Symbol("closed"),Hge=Symbol("read"),Gv=Symbol("flush"),zge=Symbol("flushChunk"),cn=Symbol("encoding"),Bu=Symbol("decoder"),Hv=Symbol("flowing"),m0=Symbol("paused"),Cg=Symbol("resume"),Bs=Symbol("bufferLength"),l4=Symbol("bufferPush"),u4=Symbol("bufferShift"),ri=Symbol("objectMode"),si=Symbol("destroyed"),d4=Symbol("emitData"),Vge=Symbol("emitEnd"),h4=Symbol("emitEnd2"),Su=Symbol("async"),g0=t=>Promise.resolve().then(t),$ge=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Sot=$ge&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),xot=$ge&&Symbol.iterator||Symbol("iterator not implemented"),Not=t=>t==="end"||t==="finish"||t==="prefinish",Rot=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructor.name==="Arra
globstar while`,v,ee,_,Pe,it),this.matchOne(v.slice(ee),_.slice(Pe),O))returnthis.debug("globstar found match!",ee,R,it),!0;if(it==="."||it===".."||!U.dot&&it.charAt(0)==="."){this.debug("dot detected!",v,ee,_,Pe);break}this.debug("globstar swallow a segment, and continue"),ee++}return!!(O&&(this.debug(`
>>> no match, partial?`,v,ee,_,Pe),ee===R))}lettt;if(typeof$=="string"?(tt=me===$,this.debug("string match",$,me,tt)):(tt=$.test(me),this.debug("pattern match",$,me,tt)),!tt)return!1}if(g===R&&B===L)return!0;if(g===R)returnO;if(B===L)returng===R-1&&v[g]==="";thrownewError("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(v){(0,r.assertValidPattern)(v);let_=this.options;if(v==="**")returnt.GLOBSTAR;if(v==="")return"";letO,U=null;(O=v.match(y))?U=_.dot?w:C:(O=v.match(a))?U=(_.nocase?_.dot?d:u:_.dot?l:c)(O[1]):(O=v.match(x))?U=(_.nocase?_.dot?D:N:_.dot?P:M)(O):(O=v.match(h))?U=_.dot?A:f:(O=v.match(p))&&(U=E);letY=s.AST.fromGlob(v,this.options).toMMPattern();returnU&&typeofY=="object"&&Reflect.defineProperty(Y,"test",{value:U}),Y}makeRe(){if(this.regexp||this.regexp===!1)returnthis.regexp;letv=this.set;if(!v.length)returnthis.regexp=!1,this.regexp;let_=this.options,O=_.noglobstar?J:_.dot?ae:Ke,U=newSet(_.nocase?["i"]:[]),Y=v.map(R=>{letL=R.map(me=>{if(meinstanceofRegExp)for(leteeofme.flags.split(""))U.add(ee);returntypeofme=="string"?qt(me):me===t.GLOBSTAR?t.GLOBSTAR:me._src});L.forEach((me,ee)=>{letPe=L[ee+1],it=L[ee-1];me!==t.GLOBSTAR||it===t.GLOBSTAR||(it===void0?Pe!==void0&&Pe!==t.GLOBSTAR?L[ee+1]="(?:\\/|"+O+"\\/)?"+Pe:L[ee]=O:Pe===void0?L[ee-1]=it+"(?:\\/|\\/"+O+")?":Pe!==t.GLOBSTAR&&(L[ee-1]=it+"(?:\\/|\\/"+O+"\\/)"+Pe,L[ee+1]=t.GLOBSTAR))});let$=L.filter(me=>me!==t.GLOBSTAR);if(this.partial&&$.length>=1){letme=[];for(letee=1;ee<=$.length;ee++)me.push($.slice(0,ee).join("/"));return"(?:"+me.join("|")+")"}return$.join("/")}).join("|"),[g,B]=v.length>1?["(?:",")"]:["",""];Y="^"+g+Y+B+"$",this.partial&&(Y="^(?:\\/|"+g+Y.slice(1,-1)+B+")$"),this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=newRegExp(Y,[...U].join(""))}catch{this.regexp=!1}returnthis.regexp}slashSplit(v){returnthis.preserveMultipleSlashes?v.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(v)?["",...v.split(/\/+/)]:v.split(/\/+/)}match(v,_=this.partial){if(this.debug("match",v,this.pattern),this.comment)return!1;if(this.empty)returnv==="";if(v==="/"&&_)return!0;letO=this.options;this.isWindows&&(v=v.split("\\").join("/"));letU=this.slashSplit(v);this.debug(this.pattern,"split",U);letY=this.set;this.debug(this.pattern,"set",Y);letg=U[U.length-1];if(!g)for(letB=U.length-2;!g&&B>=0;B--)g=U[B];for(letB=0;B<Y.length;B++){letR=Y[B],L=U;if(O.matchBase&&R.length===1&&(L=[g]),this.matchOne(L,R,_))returnO.flipNegate?!0:!this.negate}returnO.flipNegate?!1:this.negate}staticdefaults(v){returnt.minimatch.defaults(v).Minimatch}};t.Minimatch=Jr;varmn=MIe();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){returnmn.AST}});varBt=LIe();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){returnBt.escape}});varro=Sj();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){returnro.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=Jr,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),uht=ks(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,A,p,E)=>{typeofs.emitWarning=="function"?s.emitWarning(f,A,p,E):console.error(`[${p}] ${A}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeofn>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,E){this._onabort.push(E)}},n=class{constructor(){A()}signal=newo;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(letEofthis.signal._onabort)E(p);this.signal.onabort?.(p)}}};letf=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=()=>{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
`),A=f.shift();if(!A)return t.destroy(),r(new Error("NoheaderreceivedfromproxyCONNECTresponse"));let p=A.split(""),E=+p[1],y=p.slice(2).join(""),C={};for(let w of f){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,x).toLowerCase(),D=w.slice(x+1).trimStart(),P=C[N];typeof P=="string"?C[N]=[P,D]:Array.isArray(P)?P.push(D):C[N]=D}OQ("gotproxyserverresponse:%o%o",A,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:d})}t.on("error",c),t.on("end",a),n()})}qg.parseProxyResponse=gft});var O0e=m(jo=>{"usestrict";var yft=jo&&jo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Eft=jo&&jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_0e=jo&&jo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yft(e,t,r);return Eft(e,t),e},P0e=jo&&jo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jo,"__esModule",{value:!0});jo.HttpsProxyAgent=void 0;var j0=_0e(require("net")),v0e=_0e(require("tls")),Cft=P0e(require("assert")),Ift=P0e(df()),bft=hC(),wft=require("url"),Bft=T0e(),J0=(0,Ift.default)("https-proxy-agent"),DQ=class extends bft.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wft.URL(e):e,this.proxyHeaders=r?.headers??{},J0("CreatingnewHttpsProxyAgentinstance:%o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Q0e(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){J0("Creating`tls.Socket`:%o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=v0e.connect({...this.connectOpts,servername:h&&j0.isIP(h)?void 0:h})}else J0("Creating`net.Socket`:%o",this.connectOpts),i=j0.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=j0.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let h=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
`,KIt=/\u2014 (\S+) (\S+)\n/g;function XIt(t,e){let r=t.inclusionProof,s=B5.fromString(r.checkpoint.envelope),i=m1.fromString(s.note);if(!ZIt(s,e))throw new bb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function ZIt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>xSe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?xSe.crypto.verify(r,i.publicKey,s.signature):!1})}var B5=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(w5))throw new bb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(w5),s=e.slice(0,r+1),n=e.slice(r+w5.length).matchAll(KIt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new bb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new bb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},m1=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new bb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};wb.LogCheckpoint=m1});var RSe=m(R5=>{"use strict";Object.defineProperty(R5,"__esModule",{value:!0});R5.verifyMerkleInclusion=r0t;var N5=$n(),S5=ci(),e0t=Buffer.from([0]),t0t=Buffer.from([1]);function r0t(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new S5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${s}`});let{inner:n,border:o}=s0t(s,i);if(r.hashes.length!==n+o)throw new S5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=l0t(t.canonicalizedBody),u=n0t(i0t(l,a,s),c);if(!N5.crypto.bufferEqual(u,e.logHash))throw new S5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function s0t(t,e){let r=o0t(t,e),s=a0t(t>>BigInt(r));return{inner:r,border:s}}function i0t(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?x5(i,s):x5(s,i),t)}function n0t(t,e){return e.reduce((r,s)=>x5(s,r),t)}function o0t(t,e){return c0t(t^e-BigInt(1))}function a0t(t){return t.toString(2).split("1").length-1}function c0t(t){return t===0n?0:t.toString(2).length}function x5(t,e){return N5.crypto.digest("sha256",t0t,t,e)}function l0t(t){return N5.crypto.digest("sha256",e0t,t)}});var vSe=m(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});T5.verifyTLogSET=h0t;var TSe=$n(),u0t=ci(),d0t=Cy();function h0t(t,e){if(!(0,d0t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=f0t(t),o=Buffer.from(TSe.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return TSe.crypto.verify(o,i.publicKey,a)}))throw new u0t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function f0t(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var _Se=m(g1=>{"use strict";Object.defineProperty(g1,"__esModule",{value:!0});g1.verifyTLogBody=y0t;g1.verifyTLogInclusion=E0t;var QSe=k8(),_5=ci(),v5=wSe(),Q5=BSe(),A0t=SSe(),p0t=NSe(),m0t=RSe(),g0t=vSe();function y0t(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new _5.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${s},received:${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==v5.DSSE_API_VERSION_V1)return(0,v5.verifyDSSETLogBody)(i,e);{let n=QSe.Entry.fromJSON(i);return(0,v5.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,A0t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==Q5.HASHEDREKORD_API_VERSION_V1)return(0,Q5.verifyHashedRekordTLogBody)(i,e);{let n=QSe.Entry.fromJSON(i);return(0,Q5.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new _5.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}function E0t(t,e){let r=!1;if(C0t(t)&&((0,g0t.verifyTLogSET)(t,e),r=!0),I0t(t)){let s=(0,p0t.verifyCheckpoint)(t,e);(0,m0t.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new _5.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function C0t(t){return t.inclusionPromise!==void 0}function I0t(t){return t.inclusionProof!==void 0}});var LSe=m(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0});y1.Verifier=void 0;var b0t=require("util"),Iy=ci(),PSe=gSe(),OSe=ESe(),DSe=bSe(),kSe=_Se(),P5=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifyS
`;returna.replace(/\n$/,"")}varPNe=_Ne,ONe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],DNe=["scalar","sequence","mapping"];functionkNe(t){vare={};returnt!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}functionMNe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(ONe.indexOf(r)===-1)thrownewFi('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){returnr},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=kNe(e.styleAliases||null),DNe.indexOf(this.kind)===-1)thrownewFi('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}varMs=MNe;functionY5(t,e){varr=[];returnt[e].forEach(function(s){vari=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}functionLNe(){vart={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;functions(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);returnt}functionV1(t){returnthis.extend(t)}V1.prototype.extend=function(e){varr=[],s=[];if(einstanceofMs)s.push(e);elseif(Array.isArray(e))s=s.concat(e);elseif(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));elsethrownewFi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(ninstanceofMs))thrownewFi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")thrownewFi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)thrownewFi("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(!(ninstanceofMs))thrownewFi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});vari=Object.create(V1.prototype);returni.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=Y5(i,"implicit"),i.compiledExplicit=Y5(i,"explicit"),i.compiledTypeMap=LNe(i.compiledImplicit,i.compiledExplicit),i};varFNe=V1,UNe=newMs("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){returnt!==null?t:""}}),qNe=newMs("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){returnt!==null?t:[]}}),GNe=newMs("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){returnt!==null?t:{}}}),HNe=newFNe({explicit:[UNe,qNe,GNe]});functionzNe(t){if(t===null)return!0;vare=t.length;returne===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}functionVNe(){returnnull}function$Ne(t){returnt===null}varjNe=newMs("tag:yaml.org,2002:null",{kind:"scalar",resolve:zNe,construct:VNe,predicate:$Ne,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});functionJNe(t){if(t===null)return!1;vare=t.length;returne===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}functionYNe(t){returnt==="true"||t==="True"||t==="TRUE"}functionWNe(t){returnObject.prototype.toString.call(t)==="[object Boolean]"}varKNe=newMs("tag:yaml.org,2002:bool",{kind:"scalar",resolve:JNe,construct:YNe,predicate:WNe,represent:{lowercase:function(t){returnt?"true":"false"},uppercase:function(t){returnt?"TRUE":"FALSE"},camelcase:function(t){returnt?"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 VRe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function EY(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var CY=new Array(256),IY=new Array(256);for(wh=0;wh<256;wh++)CY[wh]=X5(wh)?1:0,IY[wh]=X5(wh);var wh;function $Re(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||AY,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 bY(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=PNe(r),new Fi(e,r)}function we(t,e){throw bY(t,e)}function Db(t,e){t.onWarning&&t.onWarning.call(null,bY(t,e))}var Z5={YAML:function(e,r,s){var i,n,o;e.version!==null&&we(e,"duplication of %YAML directive"),s.length!==1&&we(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),i===null&&we(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),o=parseInt(i[2],10),n!==1&&we(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Db(e,"unsupported YAML version of the document")},TAG:function(e,r,s){var i,n;s.length!==2&&we(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],gY.test(i)||we(e,"ill-formed tag handle (first argument) of the TAG directive"),Yu.call(e.tagMap,i)&&we(e,'there is a previously declared suffix for "'+i+'" tag handle'),yY.test(n)||we(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{we(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function Ju(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||we(t,"expected valid JSON character");else FRe.test(a)&&we(t,"the stream contains non-printable characters");t.result+=a}}function eY(t,e,r,s){var i,n,o,a;for(Yr.isObject(r)||we(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],Yu.call(e,n)||(EY(e,n,r[n]),s[n]=!0)}function GA(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])&&we(t,"nested arrays are not supported inside keys"),typeof i=="object"&&K5(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&K5(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)eY(t,e,n[l],r);else eY(t,e,n,r);else!t.json&&!Yu.call(r,i)&&Yu.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,we(t,"duplicated mapping key")),EY(e,i,n),delete r[i];return e}function K1(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++):we(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ur(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Bh(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(Ua(i))for(K1(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&&Db(t,"deficient indentation"),s}function Lb(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||Ui(r)))}functio
`,e-1))}functionjRe(t,e,r){vars,i,n,o,a,c,l,u,d=t.kind,h=t.result,f;if(f=t.input.charCodeAt(t.position),Ui(f)||qA(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),Ui(i)||r&&qA(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),Ui(i)||r&&qA(i))break}elseif(f===35){if(s=t.input.charCodeAt(t.position-1),Ui(s))break}else{if(t.position===t.lineStart&&Lb(t)||r&&qA(f))break;if(Ua(f))if(c=t.line,l=t.lineStart,u=t.lineIndent,Ur(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&&(Ju(t,n,o,!1),X1(t,t.line-c),n=o=t.position,a=!1),Bh(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}returnJu(t,n,o,!1),t.result?!0:(t.kind=d,t.result=h,!1)}functionJRe(t,e){varr,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(Ju(t,s,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)s=t.position,t.position++,i=t.position;elsereturn!0;elseUa(r)?(Ju(t,s,i,!0),X1(t,Ur(t,!1,e)),s=i=t.position):t.position===t.lineStart&&Lb(t)?we(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);we(t,"unexpected end of the stream within a single quoted scalar")}functionYRe(t,e){varr,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)returnJu(t,r,t.position,!0),t.position++,!0;if(a===92){if(Ju(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ua(a))Ur(t,!1,e);elseif(a<256&&CY[a])t.result+=IY[a],t.position++;elseif((o=HRe(a))>0){for(i=o,n=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=GRe(a))>=0?n=(n<<4)+o:we(t,"expected hexadecimal character");t.result+=VRe(n),t.position++}elsewe(t,"unknown escape sequence");r=s=t.position}elseUa(a)?(Ju(t,r,s,!0),X1(t,Ur(t,!1,e)),r=s=t.position):t.position===t.lineStart&&Lb(t)?we(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}we(t,"unexpected end of the stream within a double quoted scalar")}functionWRe(t,e){varr=!0,s,i,n,o=t.tag,a,c=t.anchor,l,u,d,h,f,A=Object.create(null),p,E,y,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,f=!1,a=[];elseif(C===123)u=125,f=!0,a={};elsereturn!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Ur(t,!0,e),C=t.input.charCodeAt(t.position),C===u)returnt.position++,t.tag=o,t.anchor=c,t.kind=f?"mapping":"sequence",t.result=a,!0;r?C===44&&we(t,"expected the node content, but found ','"):we(t,"missed comma between flow collection entries"),E=p=y=null,d=h=!1,C===63&&(l=t.input.charCodeAt(t.position+1),Ui(l)&&(d=h=!0,t.position++,Ur(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,HA(t,e,Pb,!1,!0),E=t.tag,p=t.result,Ur(t,!0,e),C=t.input.charCodeAt(t.position),(h||t.line===s)&&C===58&&(d=!0,C=t.input.charCodeAt(++t.position),Ur(t,!0,e),HA(t,e,Pb,!1,!0),y=t.result),f?GA(t,a,A,E,p,y,s,i,n):d?a.push(GA(t,null,A,E,p,y,s,i,n)):a.push(p),Ur(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}we(t,"unexpected end of the stream within a flow collection")}functionKRe(t,e){varr,s,i=z1,n=!1,o=!1,a=e,c=0,l=!1,u,d;if(d=t.input.charCodeAt(t.position),d===124)s=!1;elseif(d===62)s=!0;elsereturn!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)z1===i?i=d===43?W5:LRe:we(t,"repeat of a chomping mode identifier");elseif((u=zRe(d))>=0)u===0?we(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?we(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);elsebreak;if(Bh(d)){dod=t.input.charCodeAt(++t.position);while(Bh(d));if(d===35)dod=t.input.charCodeAt(++t.position);while(!Ua(d)&&d!==0)}for(;d!==0;){for(K1(t),t.lineIndent=0,d=t.input.charCodeAt(t.p
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!Ua(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Ju(t,r,t.position,!1)}return!0}function tY(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,we(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!Ui(o))));){if(a=!0,t.position++,Ur(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,HA(t,e,mY,!1,!0),n.push(t.result),Ur(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)we(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 XRe(t,e,r){var s,i,n,o,a,c,l=t.tag,u=t.anchor,d={},h=Object.create(null),f=null,A=null,p=null,E=!1,y=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),C=t.input.charCodeAt(t.position);C!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,we(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),n=t.line,(C===63||C===58)&&Ui(s))C===63?(E&&(GA(t,d,h,f,A,null,o,a,c),f=A=p=null),y=!0,E=!0,i=!0):E?(E=!1,i=!0):we(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,!HA(t,r,pY,!1,!0))break;if(t.line===n){for(C=t.input.charCodeAt(t.position);Bh(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),Ui(C)||we(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(GA(t,d,h,f,A,null,o,a,c),f=A=p=null),y=!0,E=!1,i=!1,f=t.tag,A=t.result;else if(y)we(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(y)we(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),HA(t,e,Ob,!0,i)&&(E?A=t.result:p=t.result),E||(GA(t,d,h,f,A,p,o,a,c),f=A=p=null),Ur(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)we(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&GA(t,d,h,f,A,null,o,a,c),y&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=d),y}function ZRe(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&&we(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)):we(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ui(o);)o===33&&(s?we(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),gY.test(i)||we(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),qRe.test(n)&&we(t,"tag suffix cannot contain flow indicator characters")}n&&!yY.test(n)&&we(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{we(t,"tag name is malformed: "+n)}return r?t.tag=n:Yu.call(t.tagMap,i)?t.tag=t.tagMap[i]+n:i==="!"?t.tag="!"+n:i==="!!"?t.tag="tag:yaml.org,2002:"+n:we(t,'undeclared tag handle "'+i+'"'),!0}function eTe(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&we(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ui(r)&&!qA(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&we(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function tTe(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)));varr=new$Re(t,e),s=t.indexOf("\0");for(s!==-1&&(r.position=s,we(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;)rTe(r);returnr.documents}functionsTe(t,e,r){e!==null&&typeofe=="object"&&typeofr>"u"&&(r=e,e=null);vars=wY(t,r);if(typeofe!="function")returns;for(vari=0,n=s.length;i<n;i+=1)e(s[i])}functioniTe(t,e){varr=wY(t,e);if(r.length!==0){if(r.length===1)returnr[0];thrownewFi("expected a single document in the stream, but found more")}}varnTe=sTe,oTe=iTe,BY={loadAll:nTe,load:oTe},SY=Object.prototype.toString,xY=Object.prototype.hasOwnProperty,Z1=65279,aTe=9,Qy=10,cTe=13,lTe=32,uTe=33,dTe=34,$1=35,hTe=37,fTe=38,ATe=39,pTe=42,NY=44,mTe=45,kb=58,gTe=61,yTe=62,ETe=63,CTe=64,RY=91,TY=93,ITe=96,vY=123,bTe=124,QY=125,Ls={};Ls[0]="\\0";Ls[7]="\\a";Ls[8]="\\b";Ls[9]="\\t";Ls[10]="\\n";Ls[11]="\\v";Ls[12]="\\f";Ls[13]="\\r";Ls[27]="\\e";Ls[34]='\\"';Ls[92]="\\\\";Ls[133]="\\N";Ls[160]="\\_";Ls[8232]="\\L";Ls[8233]="\\P";varwTe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],BTe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;functionSTe(t,e){varr,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&&xY.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;returnr}functionxTe(t){vare,r,s;if(e=t.toString(16).toUpperCase(),t<=255)r="x",s=2;elseif(t<=65535)r="u",s=4;elseif(t<=4294967295)r="U",s=8;elsethrownewFi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Yr.repeat("0",s-e.length)+e}varNTe=1,_y=2;functionRTe(t){this.schema=t.schema||AY,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Yr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=STe(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==='"'?_y:NTe,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeoft.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}functionrY(t,e){for(varr=Yr.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)}functionDTe(t){for(vare="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=Ty(t,i),s=Ls[r],!s&&Py(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||xTe(r);returne}functionkTe(t,e,r){vars="",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)),(Cl(t,e,a,!1,!1)||typeofa>"u"&&Cl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}functioncY(t,e,r,s){vari="",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)),(Cl(t,e+1,c,!0,!0,!1,!0)||typeofc>"u"&&Cl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=j1(t,e)),t.dump&&Qy===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}functionMTe(t,e,r){vars="",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)),Cl(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Cl(t,e,l,!1,!1)&&(u+=t.dump,s+=u));t.tag=i,t.dump="{"+s+"}"}functionLTe(t,e,r,s){vari="",n=t.tag,o=Object.keys(r),a,c,l,u,d,h;if(t.sortKeys===!0)o.sort();elseif(typeoft.sortKeys=="function")o.sort(t.sortKeys);elseif(t.sortKeys)thrownewFi("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!s||i!=="")&&(h+=j1(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Cl(t,e+1,l,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&Qy===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,d&&(h+=j1(t,e)),Cl(t,e+1,u,!0,d)&&(t.dump&&Qy===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,i+=h));t.tag=n,t.dump=i||"{}"}functionlY(t,e,r){vars,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||typeofe=="object"&&einstanceofa.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,SY.call(a.represent)==="[object Function]")s=a.represent(e,c);elseif(xY.call(a.represent,c))s=a.represent[c](e,c);elsethrownewFi("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=s}return!0}return!1}functionCl(t,e,r,s,i,n,o){t.tag=null,t.dump=r,lY(t,r,!1)||lY(t,r,!0);vara=SY.call(t.dump),c=s,l;s&&(s=t.flowLevel<0||t.flowLevel>e);varu=a==="[object Object]"||a==="[object Array]",d,h;if(u&&(d=t.duplicates.indexOf(r),h=d!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(i=!1),h&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(u&&h&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),a==="[object Object]")s&&Object.keys(t.dump).length!==0?(LTe(t,e,t.dump,i),h&&(t.dump="&ref_"+d+t.dump)):(MTe(t,e,t.dump),h&&(t.dump="&ref_"+d+" "+t.dump));elseif(a==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?cY(t,e-1,t.dump,i):cY(t,e,t.dump,i),h&&(t.dump="&ref_"+d+t.dump)):(kTe(t,e,t.dump),h&&(t.dump="&ref_"+d+" "+t.dump));elseif(a==="[object String]")t.tag!=="?"&&PTe(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;thrownewFi("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}functionFTe(t,e){varr=[],s=[],i,n;for(Y1(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=newArray(n)}functionY1(t,e,r){vars,i,n;if(t!==null&&typeoft=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);elseif(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)Y1(t[i],e,r);elsefor(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)Y1(t[s[i]],e,r)}functionUTe(t,e){e=e||{};varr=newRTe(e);r.noRefs||FTe(t,r);vars=t;returnr.replacer&&(s=r.replacer.call({"":s},"",s)),Cl(r,0,s,!0,!0)?r.dump+`
`:""}varqTe=UTe,GTe={dump:qTe};functioneP(t,e){returnfunction(){thrownewError("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}varkY=BY.load,v0t=BY.loadAll,Q0t=GTe.dump;var_0t=eP("safeLoad","load"),P0t=eP("safeLoadAll","loadAll"),O0t=eP("safeDump","dump");varLY=k(require("os"),1);functionIl(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functiontP(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}functionbl(t,e,r){lets=newrP(t,e,r);process.stdout.write(s.toString()+LY.EOL)}functionsP(t,e=""){bl(t,{},e)}varMY="::",rP=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=MY+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){leti=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${VTe(i)}`)}}returne+=`${MY}${zTe(this.message)}`,e}};functionzTe(t){returnIl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionVTe(t){returnIl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varFY=k(require("crypto"),1),Ub=k(require("fs"),1),Fb=k(require("os"),1);functionqb(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!Ub.existsSync(r))thrownewError(`Missing file at path: ${r}`);Ub.appendFileSync(r,`${Il(e)}${Fb.EOL}`,{encoding:"utf8"})}functioniP(t,e){letr=`ghadelimiter_${FY.randomUUID()}`,s=Il(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))thrownewError(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Fb.EOL}${s}${Fb.EOL}${r}`}varzk=k(require("os"),1),_ee=k(require("path"),1);varPE=k(require("http"),1),Rk=k(require("https"),1);functionnP(t){lete=t.protocol==="https:";if($Te(t))return;letr=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{returnnewGb(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))returnnewGb(`http://${r}`)}elsereturn}function$Te(t){if(!t.hostname)return!1;lete=t.hostname;if(jTe(e))return!0;letr=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;lets;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);leti=[t.hostname.toUpperCase()];typeofs=="number"&&i.push(`${i[0]}:${s}`);for(letnofr.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}functionjTe(t){lete=t.toLowerCase();returne==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}varGb=classextendsURL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}getusername(){returnthis._decodedUsername}getpassword(){returnthis._decodedPassword}};varpd=k(cP(),1),hee=k(LB(),1),Rr=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(d){o(d)}}functionc(u){try{l(s.throw(u))}catch(d){o(d)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},rr;(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 JE(n));return s.searchPaths.push(...gM(s.patterns)),s})}static stat(e,r,s){return bM(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Yp.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){T(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw n}else i=yield Yp.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield Yp.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){T(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${n}'`);return}s.push(n)}return i})}};var aVe=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function nse(t,e){return aVe(this,void 0,void 0,function*(){return yield lS.create(t,e)})}var SS=k(require("crypto"),1),Xp=k(require("fs"),1),sf=k(require("path"),1),Wie=k(Jie(),1),Kie=k(require("util"),1);var sC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(sC||(sC={}));var gi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(gi||(gi={}));var vn;(function(t){t.GNU="gnu",t.BSD="bsd"})(vn||(vn={}));var wS=2,BS=5e3,GM=5e3,HM=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Yie=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,iC="cache.tar",zM="manifest.txt",mxt=10*Math.pow(1024,3);var Kp=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},ije=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)}},nje="1.0";function nC(){return Kp(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=sf.join(s,"actions","temp")}let r=sf.join(e,SS.randomUUID());return yield Ll(r),r})}function nc(t){return Xp.statSync(t).size}function VM(t){return Kp(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 nse(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=ije(c.globGenerator()),d;d=yield u.next(),e=d.done,!e;l=!0){i=d.value,l=!1;let f=sf.relative(a,i).replace(new RegExp(`\\${sf.sep}`,"g"),"/");T(`Matched:${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(h){r={error:h}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function oC(t){return Kp(this,void 0,void 0,function*(){return Kie.promisify(Xp.unlink)(t)})}function Xie(t){return Kp(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),T(`Checking${e}${r.join(" ")}`);try{yield Rn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){T(i.message)}return s=s.trim(),T(s),s})}function aC(){return Kp(this,void 0,void 0,function*(){let t=yield Xie("zstd",["--quiet"]),e=Wie.clean(t);return T(`zstdversion:${e}`),t===""?gi.Gzip:gi.ZstdWithoutLong})}function bd(t){return t===gi.Gzip?sC.Gzip:sC.Zstd}function Zie(){return Kp(this,void 0,void 0,function*(){return Xp.existsSync(HM)?HM:(yield Xie("tar")).toLowerCase().includes("gnu tar")?_s("tar"):""})}function $M(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function Zp(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(nje),SS.createHash("sha256").update(s.join("|")).digest("hex")}function ene(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Nm=k(require("fs"),1),oue=require("url");var oc=class extends Error{constructor(e){super(e),this.name="AbortError"}};var tne=require("node:os"),rne=k(require("node:util"),1),sne=k(require("node:process"),1);function ine(t,...e){sne.default.stderr.write(`${rne.default.format(t,...e)}${tne.EOL}`)}var nne=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,ane,jM=[],JM=[],NS=[];nne&&YM(nne);var cne=Object.assign(t=>lne(t),{enable:YM,enabled:WM,disable:oje,log:ine});function YM(t){ane=t,jM=[],JM=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?JM.push(r.substring(1)):jM.push(r);for(let r of NS)r.enabled=WM(r.namespace)}function WM(t){if(t.endsWith("*"))return!0;for(let e of JM)if(one(t,e))return!1;for(let e of jM)if(one(t,e))return!0;return!1}function one(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],f="";for(let A of e)A==="*"&&f==="*"||(f=A,h.push(A));r=h.join("")}let s=0,i=0,n=r.length,o=t.length,a=-1,c=-1;for(;s<o&&i<n;)if(r[i]==="*"){if(a=i,i++,i===n)return!0;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else if(r[i]===t[s])i++,s++;else if(a>=0){if(i=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else return!1;let l=s===t.length,u=i===r.length,d=i===r.length-1&&r[i]==="*";return l&&(u||d)}function oje(){let t=ane||"";return YM(""),t}function lne(t){let e=Object.assign(r,{enabled:WM(t),destroy:aje,log:cne.log,namespace:t,extend:cje});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return NS.push(e),e}function aje(){let t=NS.indexOf(this);return t>=0?(NS.splice(t,1),!0):!1}function cje(t){let e=lne(`${this.namespace}:${t}`);return e.log=this.log,e}var em=cne;var KM=["verbose","info","warning","error"],une={verbose:400,info:300,warning:200,error:100};function dne(t,e){e.log=(...r)=>{t.log(...r)}}function hne(t){return KM.includes(t)}function RS(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,i=em(t.namespace);i.log=(...u)=>{em.log(...u)};function n(u){if(u&&!hne(u))throw new Error(`Unknownloglevel'${u}'.Acceptablevalues:${KM.join(",")}`);s=u;let d=[];for(let h of e)o(h)&&d.push(h.namespace);em.enable(d.join(","))}r&&(hne(r)?n(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${KM.join(", ")}.`));function o(u){return!!(s&&une[u.level]<=une[s])}function a(u,d){let h=Object.assign(u.extend(d),{level:d});if(dne(u,h),o(h)){let f=em.disable();em.enab
${fje.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function_S(t){returntinstanceofyi?!0:of(t)&&t.name==="RestError"}functionYi(t,e){returnBuffer.from(t,e)}varPS=k(require("node:http"),1),OS=k(require("node:https"),1),rL=k(require("node:zlib"),1),yne=require("node:stream");varbo=cC("ts-http-runtime");varAje={};functionlC(t){returnt&&typeoft.pipe=="function"}functiongne(t){returnt.readable===!1?Promise.resolve():newPromise(e=>{letr=()=>{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)})}functionEne(t){returnt&&typeoft.byteLength=="number"}varDS=classextendsyne.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}},sL=class{cachedHttpAgent;cachedHttpsAgents=newWeakMap;asyncsendRequest(e){letr=newAbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)thrownewoc("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}leti;e.timeout>0&&(i=setTimeout(()=>{letl=newEa;bo.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));letn=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeofe.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){letl=yje(a);l!==null&&e.headers.set("Content-Length",l)}letc;try{if(a&&e.onUploadProgress){letA=e.onUploadProgress,p=newDS(A);p.on("error",E=>{bo.error("Error in upload progress",E)}),lC(a)?a.pipe(p):p.end(a),a=p}letl=awaitthis.makeRequest(e,r,a);i!==void0&&clearTimeout(i);letu=pje(l),h={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")returnl.resume(),h;c=o?mje(l,u):l;letf=e.onDownloadProgress;if(f){letA=newDS(f);A.on("error",p=>{bo.error("Error in download progress",p)}),c.pipe(A),c=A}returne.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=awaitgje(c),h}finally{if(e.abortSignal&&s){letl=Promise.resolve();lC(a)&&(l=gne(a));letu=Promise.resolve();lC(c)&&(u=gne(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{bo.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){leti=newURL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)thrownewError(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);leta={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};returnnewPromise((c,l)=>{letu=n?PS.default.request(a,c):OS.default.request(a,c);u.once("error",d=>{l(newyi(d.message,{code:d.code??yi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{letd=newoc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),l(d)}),s&&lC(s)?s.pipe(u):s?typeofs=="string"||Buffer.isBuffer(s)?u.end(s):Ene(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(bo.error("Unrecognized body type",s),l(newyi("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){lets=e.disableKeepAlive;if(r)returns?PS.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=newPS.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)returnOS.default.globalAgent;leti=e.tlsSettings??Aje,n=this.cachedHttpsAgents.get(i);returnn&&n.options.keepAlive===!s||(bo.info("No cached TLS Agent exist, creating a new Agent"),n=newOS.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};functionpje(t){lete=Qn();for(letrofObject.keys(t.headers)){lets=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function W8e(t){return t instanceof Uint8Array?t.byteLength:ix(t)?t.size===-1?void 0:t.size:void 0}function K8e(t){let e=0;for(let r of t){let s=W8e(r);if(s===void 0)return;e+=s}return e}async function X8e(t,e,r){let s=[Yi(`--${r}`,"utf-8"),...e.flatMap(n=>[Yi(`\r
`,"utf-8"),Yi(Y8e(n.headers),"utf-8"),Yi(`\r
`,"utf-8"),n.body,Yi(`\r
--${r}`,"utf-8")]),Yi(`--\r
\r
`,"utf-8")],i=K8e(s);i&&t.headers.set("Content-Length",i),t.body=await Ioe(s)}var fC="multipartPolicy",Z8e=70,eJe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function tJe(t){if(t.length>Z8e)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!eJe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function ox(){return{name:fC,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?tJe(r):r=J8e(),t.headers.set("Content-Type",`${n};boundary=${r}`),await X8e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function ax(){return QS()}var boe=RS({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ZTt=boe.logger;function lc(t){return boe.createClientLogger(t)}var uc=lc("core-rest-pipeline");function wL(t={}){return MS({logger:uc.info,...t})}var BL=LS;function SL(t={}){return FS(t)}var cx=k(require("node:os"),1),lx=k(require("node:process"),1);function woe(){return"User-Agent"}async function Boe(t){if(lx.default&&lx.default.versions){let e=`${cx.default.type()}${cx.default.release()};${cx.default.arch()}`,r=lx.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 ux="1.22.2";function lJe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function Soe(){return woe()}async function dx(t){let e=new Map;e.set("core-rest-pipeline",ux),await Boe(e);let r=lJe(e);return t?`${t}${r}`:r}var xoe=Soe(),Noe="userAgentPolicy";function xL(t={}){let e=dx(t.userAgentPrefix);return{name:Noe,async sendRequest(r,s){return r.headers.has(xoe)||r.headers.set(xoe,await e),s(r)}}}var Dn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function NL(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Dn(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 AJe="The delay was aborted.";function AC(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return NL(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??AJe})}function Bd(t){if(of(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}function Roe(t){return of(t)}function am(){return nf()}var bt=lf;var Toe=Symbol("rawContent");function TL(t){return typeof t[Toe]=="function"}function voe(t){return TL(t)?t[Toe]():t}var hx=fC;function vL(){let t=ox();return{name:hx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)TL(s.body)&&(s.body=voe(s.body));return t.sendRequest(e,r)}}}var QL=US;function _L(){return qS()}function PL(t={}){return zS(t)}function OL(){return VS()}function Sd(t){return yL(t)}function DL(t,e){return tx(t,e)}var Qoe="setClientRequestIdPolicy";function kL(t="x-ms-client-request-id"){return{name:Qoe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function ML(t){return rx(t)}function LL(t){return sx(t)}var cm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function _oe(t={}){let e=new FL(t.parentContext);return t.span&&(e=e.setValue(cm.span,t.span)),t.namespace&&(e=e.setValue(cm.namespace,t.namespace)),e}var FL=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--),!L5e(c)){letd;returnc.trim().length===0?d="Invalid space after '<'.":d="Tag '"+c+"' is an invalid name.",Tr("InvalidTag",d,Ei(t,n))}letl=P5e(t,n);if(l===!1)returnTr("InvalidAttr","Attributes for '"+c+"' have open quote.",Ei(t,n));letu=l.value;if(n=l.index,u[u.length-1]==="/"){letd=n-u.length;u=u.substring(0,u.length-1);leth=pae(u,e);if(h===!0)s=!0;elsereturnTr(h.err.code,h.err.msg,Ei(t,d+h.err.line))}elseif(a)if(l.tagClosed){if(u.trim().length>0)returnTr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Ei(t,o));if(r.length===0)returnTr("InvalidTag","Closing tag '"+c+"' has not been opened.",Ei(t,o));{letd=r.pop();if(c!==d.tagName){leth=Ei(t,d.tagStartPos);returnTr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",Ei(t,o))}r.length==0&&(i=!0)}}elsereturnTr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Ei(t,n));else{letd=pae(u,e);if(d!==!0)returnTr(d.err.code,d.err.msg,Ei(t,n-u.length+d.err.line));if(i===!0)returnTr("InvalidXml","Multiple possible root nodes found.",Ei(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=Aae(t,n);continue}elseif(t[n+1]==="?"){if(n=fae(t,++n),n.err)returnn}elsebreak;elseif(t[n]==="&"){letd=k5e(t,n);if(d==-1)returnTr("InvalidChar","char '&' is not expected.",Ei(t,n));n=d}elseif(i===!0&&!hae(t[n]))returnTr("InvalidXml","Extra text at the end",Ei(t,n));t[n]==="<"&&n--}}else{if(hae(t[n]))continue;returnTr("InvalidChar","char '"+t[n]+"' is not expected.",Ei(t,n))}if(s){if(r.length==1)returnTr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ei(t,r[0].tagStartPos));if(r.length>0)returnTr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}elsereturnTr("InvalidXml","Start tag expected.",1);return!0}functionhae(t){returnt===" "||t===" "||t===`
`||t==="\r"}functionfae(t,e){letr=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){lets=t.substr(r,e-r);if(e>5&&s==="xml")returnTr("InvalidXml","XML declaration allowed only at the start of the document.",Ei(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}elsecontinue}returne}functionAae(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}}elseif(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"){letr=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;elseif(t[e]===">"&&(r--,r===0))break}elseif(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}}returne}varQ5e='"',_5e="'";functionP5e(t,e){letr="",s="",i=!1;for(;e<t.length;e++){if(t[e]===Q5e||t[e]===_5e)s===""?s=t[e]:s!==t[e]||(s="");elseif(t[e]===">"&&s===""){i=!0;break}r+=t[e]}returns!==""?!1:{value:r,index:e,tagClosed:i}}varO5e=newRegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");functionpae(t,e){letr=wx(t,O5e),s={};for(leti=0;i<r.length;i++){if(r[i][1].length===0)returnTr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",SC(r[i]));if(r[i][3]!==void0&&r[i][4]===void0)returnTr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",SC(r[i]));if(r[i][3]===void0&&!e.allowBooleanAttributes)returnTr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",SC(r[i]));letn=r[i][2];if(!M5e(n))returnTr("InvalidAttr","Attribute '"+n+"' is an invalid name.",SC(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;elsereturnTr("InvalidAttr","Attribute '"+n+"' is repeated.",SC(r[i]))}return!0}functionD5e(t,e){letr=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")returne;if(!t[e].match(r))break}return-1}functionk5e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")returne++,D5e(t,e);letr=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}returne}functionTr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}functionM5e(t){returndm(t)}functionL5e(t){returndm(t)}functionEi(t,e){letr=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}functionSC(t){returnt.startIndex+t[1].length}varF5e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){returne},attributeValueProcessor:function(t,e){returne},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){returnt},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0};functionmae(t){returntypeoft=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeoft=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:t.maxEntitySize??1e4,maxExpansionDepth:t.maxExpansionDepth??10,maxTotalExpansions:t.maxTotalExpansions??1e3,maxExpandedLength:t.maxExpandedLength??1e5,maxEntityCount:t.maxEntityCount??100,allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:mae(!0)}vargae=function(t){lete=Object.assign({},F5e,t);returne.processEntities=mae(e.processEntities),e};varSx;typeofSymbol!="function"?Sx="@@xmlMetadata":Sx=Symbol("XML Node Metadata");varXi=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.
`);let e=new Xi("!xml"),r=e,s="",i="";this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new NC(this.options.processEntities);for(let o=0;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="/"){let c=pf(t,">",o,"Closing Tag is not closed."),l=t.substring(o+2,c).trim();if(this.options.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(s=this.saveTextToParentTag(s,r,i));let u=i.substring(i.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${l}>`);let d=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(d=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=i.lastIndexOf("."),i=i.substring(0,d),r=this.tagsNodeStack.pop(),s="",o=c}else if(t[o+1]==="?"){let c=nF(t,o,!1,"?>");if(!c)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,i),!(this.options.ignoreDeclaration&&c.tagName==="?xml"||this.options.ignorePiTags)){let l=new Xi(c.tagName);l.add(this.options.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&(l[":@"]=this.buildAttributesMap(c.tagExp,i,c.tagName)),this.addChild(r,l,i,o)}o=c.closeIndex+1}else if(t.substr(o+1,3)==="!--"){let c=pf(t,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let l=t.substring(o+4,c-2);s=this.saveTextToParentTag(s,r,i),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}o=c}else if(t.substr(o+1,2)==="!D"){let c=n.readDocType(t,o);this.docTypeEntities=c.entities,o=c.i}else if(t.substr(o+1,2)==="!["){let c=pf(t,"]]>",o,"CDATA is not closed.")-2,l=t.substring(o+9,c);s=this.saveTextToParentTag(s,r,i);let u=this.parseTextData(l,r.tagname,i,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,u),o=c+2}else{let c=nF(t,o,this.options.removeNSPrefix),l=c.tagName,u=c.rawTagName,d=c.tagExp,h=c.attrExpPresent,f=c.closeIndex;if(this.options.transformTagName){let E=this.options.transformTagName(l);d===l&&(d=E),l=E}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,i,!1));let A=r;A&&this.options.unpairedTags.indexOf(A.tagname)!==-1&&(r=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),l!==e.tagname&&(i+=i?"."+l:l);let p=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,l)){let E="";if(d.length>0&&d.lastIndexOf("/")===d.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),d=l):d=d.substr(0,d.length-1),o=c.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)o=c.closeIndex;else{let C=this.readStopNodeData(t,u,f+1);if(!C)throw new Error(`Unexpected end of ${u}`);o=C.i,E=C.tagContent}let y=new Xi(l);l!==d&&h&&(y[":@"]=this.buildAttributesMap(d,i,l)),E&&(E=this.parseTextData(E,l,i,!0,h,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),y.add(this.options.textNodeName,E),this.addChild(r,y,i,p)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),d=l):d=d.substr(0,d.length-1),this.options.transformTagName){let y=this.options.transformTagName(l);d===l&&(d=y),l=y}let E=new Xi(l);l!==d&&h&&(E[":@"]=this.buildAttributesMap(d,i,l)),this.addChild(r,E,i,p),i=i.substr(0,i.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(l)!==-1){let E=new Xi(l);l!==d&&h&&(E[":@"]=this.buildAttributesMap(d,i)),this.addChild(r,E,i,p),i=i.substr(0,i.lastIndexOf(".")),o=c.closeIndex;continue}else{let E=new Xi(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),l!==d&&h&&(E[":@"]=this.buildAttributesMap(d,i,l)),this.addChild(r,E,i,p),r=E}s="",o=f}}else s+=t[o];return e.child};function eYe(t,e,r,s){this.options.captureMetaData||(s=void 0);let i=this.options.updateTag(e.tagname,r,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.
`),Iae(t,e,"",r)}function Iae(t,e,r,s){let i="",n=!1;if(!Array.isArray(t)){if(t!=null){let o=t.toString();return o=lF(o,e),o}return""}for(let o=0;o<t.length;o++){let a=t[o],c=lYe(a);if(c===void 0)continue;let l="";if(r.length===0?l=c:l=`${r}.${c}`,c===e.textNodeName){let A=a[c];uYe(l,e)||(A=e.tagValueProcessor(c,A),A=lF(A,e)),n&&(i+=s),i+=A,n=!1;continue}else if(c===e.cdataPropName){n&&(i+=s),i+=`<![CDATA[${a[c][0][e.textNodeName]}]]>`,n=!1;continue}else if(c===e.commentPropName){i+=s+`<!--${a[c][0][e.textNodeName]}-->`,n=!0;continue}else if(c[0]==="?"){let A=Cae(a[":@"],e),p=c==="?xml"?"":s,E=a[c][0][e.textNodeName];E=E.length!==0?""+E:"",i+=p+`<${c}${E}${A}?>`,n=!0;continue}let u=s;u!==""&&(u+=e.indentBy);let d=Cae(a[":@"],e),h=s+`<${c}${d}`,f=Iae(a[c],e,l,u);e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=h+">":i+=h+"/>":(!f||f.length===0)&&e.suppressEmptyNode?i+=h+"/>":f&&f.endsWith(">")?i+=h+`>${f}${s}</${c}>`:(i+=h+">",f&&s!==""&&(f.includes("/>")||f.includes("</"))?i+=s+e.indentBy+f+s:i+=f,i+=`</${c}>`),n=!0}return i}function lYe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Cae(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=e.attributeValueProcessor(s,t[s]);i=lF(i,e),i===!0&&e.suppressBooleanAttributes?r+=`${s.substr(e.attributeNamePrefix.length)}`:r+=`${s.substr(e.attributeNamePrefix.length)}="${i}"`}return r}function uYe(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+r)return!0;return!1}function lF(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function dF(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var dYe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function fc(t){this.options=Object.assign({},dYe,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=dF(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=AYe),this.processTextOrObjNode=hYe,this.options.format?(this.indentate=fYe,this.tagEndChar=`>
`}),s}getCanonicalizedResourceString(e){let r=Px(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=Ox(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 pr=class extends gf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new _C(e,r,this)}computeHMACSHA256(e){return(0,Tae.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xr=lc("storage-common");var xo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(xo||(xo={}));var Td={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},IYe=new Dn("Theoperationwasaborted."),PC=class extends Ac{retryOptions;constructor(e,r,s=Td){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Td.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Td.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Td.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Td.maxRetryDelayInMs):Td.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Td.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Td.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=_x(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Rd(i.url,Vl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Xr.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(Xr.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 Xr.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 Xr.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 Xr.info("RetryPolicy:Secondaryaccesswith404,willretry."),!0;if(o===503||o===500)return Xr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Le.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:Unclosedroottag')?(Xr.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 xo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case xo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return Xr.info(`RetryPolicy: Delay for ${i}ms`),Dx(i,s,IYe)}};var OC=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new PC(e,r,this.retryOptions)}};var bYe="storageBrowserPolicy";function vae(){return{name:bYe,async sendRequest(t,e){return bt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Rd(t.url,Vl.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Le.COOKIE),t.headers.delete(Le.CONTENT_LENGTH)),e(t)}}}var wYe="StorageCorrectContentLengthPolicy";function Qae(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Le.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:wYe,async send
`}),a}function i(n){let o=Px(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Ox(n.url),l={};if(c){let u=[];for(let d in c)if(Object.prototype.hasOwnProperty.call(c,d)){let h=d.toLowerCase();l[h]=c[d],u.push(h)}u.sort();for(let d of u)a+=`
${d}:${decodeURIComponent(l[d])}`}return a}return{name:NYe,async sendRequest(n,o){return e(n),o(n)}}}var RYe="storageRequestFailureDetailsParserPolicy";function Oae(){return{name:RYe,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 Sa(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 _6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ba(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 Sa(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 P6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ba(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 Sa(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 O6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ba(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 Sa(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 D6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ba(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 Sa(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 k6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ba(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 Sa(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 M6e(t,e){if(t=xf(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=Qc.parse(t.permissions.toString()).toString():i=_c.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?wt(t.startsOn,!1):"",t.expiresOn?wt(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ba(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 Sa(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 Sf(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function xf(t){let e=t.version?t.version:Fx;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 jC=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=am()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ca||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ca||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return be.withSpan("BlobLeaseClient-acquireLease",r,async s=>xe(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!==Ca||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ca||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=xe(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!==Ca||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ca||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"}};Sm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var vf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};vf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var sI=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var OWe=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},nG=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);q(`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 $le(t,e,r){return OWe(this,void 0,void 0,function*(){var s;let i=new eu(t),n=i.getBlockBlobClient(),o=new nG((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(),T(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new zN(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Pt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var Jle=k(require("buffer"),1),Pc=k(require("fs"),1),Yle=k(require("stream"),1),Wle=k(require("util"),1);var VN=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function $N(t){return t?t>=200&&t<300:!1}function DWe(t){return t?t>=500:!0}function kWe(t){return t?[rr.BadGateway,rr.ServiceUnavailable,rr.GatewayTimeout].includes(t):!1}function MWe(t){return VN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function jle(t,e,r){return VN(this,arguments,void 0,function*(s,i,n,o=wS,a=BS,c=void 0){let l="",u=1;for(;u<=o;){let d,h,f=!1;try{d=yield i()}catch(A){c&&(d=c(A)),f=!0,l=A.message}if(d&&(h=n(d),!DWe(h)))return d;if(h&&(f=kWe(h),l=`Cache service responded with ${h}`),T(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){T(`${s} - Error is not retryable`);break}yield MWe(a),u++}throw Error(`${s} failed: ${l}`)})}function iI(t,e){return VN(this,arguments,void 0,function*(r,s,i=wS,n=BS){return yield jle(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof Xa)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function xm(t,e){return VN(this,arguments,void 0,function*(r,s,i=wS,n=BS){return yield jle(r,s,o=>o.message.statusCode,i,n)})}var Qo=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function LWe(t,e){return Qo(this,void 0,void 0,function*(){yield Wle.promisify(Yle.pipeline)(t.message,e)})}var jN=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Other caches with similar key:`);for(let a of n?.artifactCaches||[])T(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function lG(t,e,r){return tn(this,void 0,void 0,function*(){let s=new oue.URL(t),i=eue(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Xle(t,e,i):i.concurrentBlobDownloads?yield Kle(t,e,i):yield JN(t,e):yield JN(t,e)})}function cue(t,e,r){return tn(this,void 0,void 0,function*(){let s=cG(),i=Zp(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield iI("reserveCache",()=>tn(this,void 0,void 0,function*(){return s.postJson(oI("caches"),n)}))})}function nue(t,e){return`bytes ${t}-${e}/*`}function $We(t,e,r,s,i){return tn(this,void 0,void 0,function*(){T(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${nue(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":nue(s,i)},o=yield xm(`uploadChunk (start: ${s}, end: ${i})`,()=>tn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!$N(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function jWe(t,e,r,s){return tn(this,void 0,void 0,function*(){let i=nc(r),n=oI(`caches/${e.toString()}`),o=Nm.openSync(r,"r"),a=oG(s),c=$M("uploadConcurrency",a.uploadConcurrency),l=$M("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];T("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>tn(this,void 0,void 0,function*(){for(;d<i;){let h=Math.min(i-d,l),f=d,A=d+h-1;d+=l,yield $We(t,n,()=>Nm.createReadStream(r,{fd:o,start:f,end:A,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),f,A)}})))}finally{Nm.closeSync(o)}})}function JWe(t,e,r){return tn(this,void 0,void 0,function*(){let s={size:r};return yield iI("commitCache",()=>tn(this,void 0,void 0,function*(){return t.postJson(oI(`caches/${e.toString()}`),s)}))})}function uG(t,e,r,s){return tn(this,void 0,void 0,function*(){if(oG(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $le(r,e,s)}else{let n=cG();T("Upload cache"),yield jWe(n,t,e,s),T("Commiting cache");let o=nc(e);q(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JWe(n,t,o);if(!$N(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);q("Cache saved successfully")}})}var rde=k(Yue(),1),Pr=k(_r(),1),Un=k(_r(),1),Df=k(_r(),1),kf=k(_r(),1),Mf=k(_r(),1);var iH=k(_r(),1),nH=k(_r(),1),Zue=k(_r(),1),ede=k(_r(),1),tde=k(_r(),1);var tH=k(_r(),1),rH=k(_r(),1),Wue=k(_r(),1),Kue=k(_r(),1),Xue=k(_r(),1),sH=class extends Xue.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,Kue.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Wue.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?rH.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,tH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tH.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?rH.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},DR=new sH;var oH=class extends tde.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:()=>DR}])}create(e){let r={repositoryId:"0",scope:[]};
`));let s=yield IH(r,"create");yield bH(s,t)})}var zm=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(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Ra=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Hm=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},FR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ode(t){if(!t||t.length===0)throw new Ra("Path Validation Error: At least one directory or file path is required")}function SH(t){if(t.length>512)throw new Ra(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ra(`Key Validation Error: ${t} cannot contain commas.`)}function xH(){return nI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function ade(t,e,r,s){return zm(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=nI();return T(`Cache service version: ${l}`),ode(i),l==="v2"?yield lXe(i,n,o,a,c):yield cXe(i,n,o,a,c)})}function cXe(t,e,r,s){return zm(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(l)),l.length>10)throw new Ra("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)SH(h);let u=yield aC(),d="";try{let h=yield aue(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return q("Lookup only - skipping download"),h.cacheKey;d=bI.join(yield nC(),bd(u)),T(`Archive Path: ${d}`),yield lG(h.archiveLocation,d,a),po()&&(yield II(d,u));let f=nc(d);return q(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield wH(d,u),q("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ra.name)throw h;f instanceof Xa&&typeof f.statusCode=="number"&&f.statusCode>=500?Gp(`Failed to restore: ${h.message}`):Pt(`Failed to restore: ${h.message}`)}finally{try{yield oC(d)}catch(h){T(`Failed to delete archive: ${h}`)}}})}function lXe(t,e,r,s){return zm(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(T("Resolved Keys:"),T(JSON.stringify(l)),l.length>10)throw new Ra("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)SH(d);let u="";try{let d=CH(),h=yield aC(),f={key:n,restoreKeys:o,version:Zp(i,h,c)},A=yield d.GetCacheEntryDownloadURL(f);if(!A.ok){T(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==A.matchedKey?q(`Cache hit for restore-key: ${A.matchedKey}`):q(`Cache hit for: ${A.matchedKey}`),a?.lookupOnly)return q("Lookup only - skipping download"),A.matchedKey;u=bI.join(yield nC(),bd(h)),T(`Archive path: ${u}`),T(`Starting download of archive to: ${u}`),yield lG(A.signedDownloadUrl,u,a);let E=nc(u);return q(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),po()&&(yield II(u,h)),yield wH(u,h),q("Cache restored successfully"),A.matchedKey}catch(d){let h=d;if(h.name===Ra.name)throw d;h instanceof Xa&&typeof h.statusCode=="number"&&h.statusCode>=500?Gp(`Failed to restore: ${d.message}`):Pt(`Failed to restore: ${d.message}`)}finally{try{u&&(yield oC(u))}catch(d){T(`Failed to delete archive: ${d}`)}}})}function NH(t,e,r){return zm(this,arguments,void 0,function*(s,i,n,o=!1){let a=nI();return T(`Cache service version: ${a}`),ode(s),SH(i),a==="v2"?yield dXe(s,i,n,o):yield uXe(s,i,n,o)})}function uXe(t,e,r){return zm(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,d;let h=yield aC(),f=-1,A=yield VM(s);if(T("Cache Paths:"),T(`${JSON.stringify(A)}`),A.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 p=yield nC(),E=bI.join(p,bd(h));T(`Archive Path: ${E}`);try{yie
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var wtt=class extends Error{constructor(t,e,r){super(btt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Btt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Stt=["query","method","url"],eAe=/\/api\/v3\/?$/;function xtt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql]"query"cannotbeusedasvariablename'));for(let o in r)if(Stt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((o,a)=>Btt.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return eAe.test(n)&&(i.url=n.replace(eAe,"/api/graphql")),t(i).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new wtt(i,a,o.data)}return o.data.data})}function cz(t,e){let r=t.defaults(e);return Object.assign((i,n)=>xtt(r,i,n),{defaults:cz.bind(null,r),endpoint:r.endpoint})}var DHt=cz(PI,{headers:{"user-agent":`octokit-graphql.js/${Itt} ${Ld()}`},method:"POST",url:"/graphql"});function tAe(t){return cz(t,{method:"POST",url:"/graphql"})}var lz="(?:[a-zA-Z0-9_-]+)",rAe="\\.",sAe=new RegExp(`^${lz}${rAe}${lz}${rAe}${lz}$`),Ntt=sAe.test.bind(sAe);async function Rtt(t){let e=Ntt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function Ttt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vtt(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=Ttt(t),e(i)}var iAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Rtt.bind(null,e),{hook:vtt.bind(null,e)})};var uz="7.0.6";var nAe=()=>{},Qtt=console.warn.bind(console),_tt=console.error.bind(console);function Ptt(t={}){return typeof t.debug!="function"&&(t.debug=nAe),typeof t.info!="function"&&(t.info=nAe),typeof t.warn!="function"&&(t.warn=Qtt),typeof t.error!="function"&&(t.error=_tt),t}var oAe=`octokit-core.js/${uz} ${Ld()}`,fT=class{static VERSION=uz;static defaults(e){return class extends this{constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Pfe.Collection,s={baseUrl:PI.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${oAe}`:oAe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=PI.defaults(s),this.graphql=tAe(this.request).defaults(s),this.log=Ptt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=iAe(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)Object.assign(this,i.plugins[n](this,e))}request;graphql;log;hook;auth};var dz="17.0.0";var Ott={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
`,o).length:d,l?(a===null?0:a.length)+c.length:0,l?c.length+d:0);return h<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:d,max_record_size:h,raw:f,relax_quotes:A,rtrim:p,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:x,quote:N,record_delimiter:D}=this.options,{bomSkipped:P,previousBuf:M,rawBuffer:z,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 J in Km)if(Km[J].compare(F,0,Km[J].length)===0){let ae=Km[J].length;this.state.bufBytesStart+=ae,F=F.slice(ae);let Ke=Iz({...this.original_options,encoding:J});for(let Ie in Ke)this.options[Ie]=Ke[Ie];({comment:w,escape:x,quote:N}=this.options);break}this.state.bomSkipped=!0}let H=F.length,G;for(G=0;G<H&&!this.__needMoreData(G,H,i);G++){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&&D.length===0&&this.__autoDiscoverRecordDelimiter(F,G)&&(D=this.options.record_delimiter);let J=F[G];if(f===!0&&z.append(J),(J===Jtt||J===Ytt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(F,G,J)&&G+x.length<H)if(Z){if(this.__isQuote(F,G+x.length)){this.state.escaping=!0,G+=x.length-1;continue}}else{this.state.escaping=!0,G+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,G))if(this.state.quoting===!0){let Ie=F[G+N.length],ce=p&&this.__isCharTrimable(F,G+N.length),ot=w!==null&&this.__compareBytes(w,F,G+N.length,Ie),Xe=this.__isDelimiter(F,G+N.length,Ie),yt=D.length===0?this.__autoDiscoverRecordDelimiter(F,G+N.length):this.__isRecordDelimiter(Ie,F,G+N.length);if(x!==null&&this.__isEscape(F,G,J)&&this.__isQuote(F,G+x.length))G+=x.length-1;else if(!Ie||Xe||yt||ot||ce){this.state.quoting=!1,this.state.wasQuoting=!0,G+=N.length-1;continue}else if(A===!1){let _e=this.__error(new mt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Ie)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(_e!==void 0)return _e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),G+=N.length-1}else if(this.state.field.length!==0){if(A===!1){let Ie=this.__infoField(),ce=Object.keys(Km).map(Xe=>Km[Xe].equals(this.state.field.toString())?Xe:!1).filter(Boolean)[0],ot=this.__error(new mt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Ie.column)} at line ${Ie.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ce?`(${ce} bom)`:void 0],this.options,Ie,{field:this.state.field}));if(ot!==void 0)return ot}}else{this.state.quoting=!0,G+=N.length-1;continue}if(this.state.quoting===!1){let Ie=this.__isRecordDelimiter(J,F,G);if(Ie!==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(),G+=Ie-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,G+=Ie-1;continue}this.info.bytes=this.state.bufBytesStart+G;let Xe=this.__onField();if(Xe!==void 0)return Xe;this.info.bytes=this.state.bufBytesStart+G+Ie;let yt=this.__onRecord(n);if(yt!==void 0)return yt;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,G+=Ie-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,G,J)!==0){this.state.commenting=!0;continue}let ce=this.__isDelimiter(F,G,J);if(ce!==0){this.inf
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=zn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=zn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=vt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Za(n),[i,n]}};var Sz=k(require("fs"),1),BAe=k(require("path"),1);var gT=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new gt,this.metadataFilename=`bake-metadata-${vt.generateRandomString()}.json`}getMetadataFilePath(){return BAe.default.join(Tt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Sz.default.existsSync(e))return;let r=Sz.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!vt.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.allow)for(let c of e.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);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Ne.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=zn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=vt.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=zn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}ret
`)[0])}staticasyncisHeadDetached(){returnawaitt.exec(["branch","--show-current"]).then(e=>e.length==0)}staticasyncgetDetachedRef(){lete=awaitt.exec(["show","-s","--pretty=%D"]);T(`detached HEAD ref: ${e}`);letr=e.replace(/^grafted, /,"").trim();if(r==="HEAD")returnawaitt.inferRefFromHead();lets=r.match(/^HEAD, (.*)$/);if(!s||!s[1])thrownewError(`Cannot find detached HEAD ref in "${e}"`);leti=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;leto=i.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;leta=i.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;thrownewError(`Unsupported detached HEAD ref in "${e}"`)}staticasyncexec(e=[]){returnawaitNe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)thrownewError(r.stderr);returnr.stdout.trim()})}staticasyncinferRefFromHead(){lete=awaitt.findContainingRef("refs/heads/");if(e)returne;letr=awaitt.findContainingRef("refs/remotes/");if(r){letn=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);returnn?`refs/heads/${n[1]}`:r}lets=awaitt.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);if(i)return`refs/tags/${i}`;thrownewError("Cannot infer ref from detached HEAD")}staticasyncfindContainingRef(e){letr=awaitt.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosignverifycommandfailedwith:${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);q(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Jt(`Signing${n}`,async()=>{let o=i[n],a=Eh.default.join(Eh.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Pt(`Nosubjectsfoundinprovenance${n},skipsigning.`);return}let l=await t.signPayload({data:o,type:HSe},s),u=t.parseBundle(l);q("Provenance blob signed for:");for(let d of c){let[h,f]=Object.entries(d.digest)[0]||[];q(`-${d.name}(${h}:${f})`)}u.tlogID&&q(`AttestationsignatureuploadedtoRekortransparencylog:${MA}?logIndex=${u.tlogID}`),q(`WritingSigstorebundleto:${a}`),pl.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`SigningBuildKitprovenanceblobsfailed:${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=Eh.default.dirname(i);await Jt(`Verifyingsignaturebundle${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=Eh.default.join(o,a.name);q(`Verifyingsignedartifact${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await Ne.getExecOutput("cosign",[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){q("Verifying keyless verification bundle signature");let i=JSON.parse(pl.default.readFileSync(r,"utf-8")),n=(0,Bb.bundleFromJSON)(i);q("Fetching Sigstore TUF trusted root metadata");let o=await JSe.getTrustedRoot(),a=(0,by.toTrustMaterial)(o);try{q("Verifying artifact signature");let c=(0,by.toSignedEntity)(n,pl.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,d=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let A=l.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(s.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${A}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new by.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return T(`Sigstore.verifyArtifactsigner:${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:d}}catch(c){throw new Error(`Failedtoverifyartifactsignature:${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),q(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:zSe,rekorURL:e?void 0:VSe,tsaServerURL:$Se}}static noTransparencyLog(e){return e??Rt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Eh.default.join(e.localExportDir,"provenance.json");if(pl.default.existsSync(r))return{[r]:pl.default.readFileSync(r)};let s=pl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>pl.default.existsSync(Eh.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=Eh.default.join(e.localExportDir,o.name,"
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
`;varN1=classt{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||newgt,this.sigstore=e?.sigstore||newCh}asyncdownload(e){letr=awaitt.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);lets=awaitt.getRelease(r,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);leti=awaitthis.vspec(s.tag_name);T(`Install.download vspec: ${i}`);letn=xy.clean(i)||"";if(!xy.valid(n))thrownewError(`Invalid Cosign version "${i}".`);leto=newAs({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:Sy.default.join(La.default.homedir(),".bin"),cacheFile:La.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=awaito.find();if(a)returnq(`Cosign binary found in ${a}`),a;letc=M5.format(r.downloadURL,i,this.filename());q(`Downloading ${c}`);letl=awaitEo(c,void0,this.githubToken);T(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&xy.satisfies(i,">=3.0.1")&&awaitthis.verifySignature(l,c);letu=awaito.save(l,e.skipState);returnq(`Cached to ${u}`),u}asyncbuild(e,r,s){leti=awaitthis.vspec(e);T(`Install.build vspec: ${i}`);letn=newAs({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:Sy.default.join(La.default.homedir(),".bin"),cacheFile:La.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=awaitn.find();if(o)returnq(`Cosign binary found in ${o}`),o;leta=Sy.default.join(Tt.tmpDir(),"cosign-build-cache"),c=awaitthis.buildCommand(e,a),l=awaitNe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(WSe)}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)thrownewError(`build failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),u=awaitn.save(l,s);returnq(`Cached to ${u}`),u}asyncinstall(e,r){r=r||Tt.tmpDir();lets=Sy.default.join(r,"cosign-bin");Sb.default.existsSync(s)||Sb.default.mkdirSync(s,{recursive:!0});leti=La.default.platform()=="win32"?"cosign.exe":"cosign",n=Sy.default.join(s,i);returnSb.default.copyFileSync(e,n),q("Fixing perms"),Sb.default.chmodSync(n,"0755"),tc(s),q("Added Cosign to PATH"),q(`Binary path: ${n}`),n}asyncbuildCommand(e,r){lets=awaitnewgt({standalone:!0}).isAvailable(),i=awaitnewgt({standalone:!1}).isAvailable(),n=!1;if(awaitthis.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx standalone found, build with it"),n=!0;elseif(!awaitthis.buildx.isStandalone()&&i)T("Install.buildCommand: Buildx plugin found, build with it"),n=!1;elseif(s)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;elseif(i)T("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;elsethrownewError(`Neither buildx standalone or plugin have been found to build from ref ${e}`);leto=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];returnprocess.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),awaitnewgt({standalone:n}).getCommand(o)}asyncverifySignature(e,r){lets=`${r}.sigstore.json`;q(`Downloading keyless verification bundle at ${s}`);leti=awaitEo(s,void0,this.githubToken);T(`Install.verifySignature bundlePath: ${i}`);letn=awaitthis.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});q(`Cosign binary signature verified! ${n.tlogID?`${MA}?logIndex=${n.tlogID}`:""}`)}filename(){lete;switch(La.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=La.default.arch();break}}letr=La.default.platform()=="win32"?"windows":La.default.platform(),s=La.default.platform()=="win32"?".exe":"";returnM5.format("cosign-%s-%s%s",r,e,s)}asyncvspec(e){if(!vt.isValidRef(e)){letl=e.replace(/^v+|v+$/g,"");returnq(`Use ${l} version spec cache key for ${e}`),l}let[r,s]=e.split("#");s.length==0&&(s="master");leti;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=awaitXm.remoteSha(r,s,process.env.GIT_AUTH
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)