varTje=Object.create;varpB=Object.defineProperty;varxje=Object.getOwnPropertyDescriptor;var_je=Object.getOwnPropertyNames;varWje=Object.getPrototypeOf,Lje=Object.prototype.hasOwnProperty;varo=(t,e)=>pB(t,"name",{value:e,configurable:!0});varQje=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Vne=(t,e)=>{for(varrine)pB(t,r,{get:e[r],enumerable:!0})},Pje=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsof_je(e))!Lje.call(t,s)&&s!==r&&pB(t,s,{get:()=>e[s],enumerable:!(n=xje(e,s))||n.enumerable});returnt};var_=(t,e,r)=>(r=t!=null?Tje(Wje(t)):{},Pje(e||!t||!t.__esModule?pB(r,"default",{value:t,enumerable:!0}):r,t));varese=b(hh=>{"use strict";varbs0=require("net"),Vje=require("tls"),O_=require("http"),Jne=require("https"),jje=require("events"),Ms0=require("assert"),$je=require("util");hh.httpOverHttp=Yje;hh.httpsOverHttp=Jje;hh.httpOverHttps=Kje;hh.httpsOverHttps=Zje;functionYje(t){vare=newlu(t);returne.request=O_.request,e}o(Yje,"httpOverHttp");functionJje(t){vare=newlu(t);returne.request=O_.request,e.createSocket=Kne,e.defaultPort=443,e}o(Jje,"httpsOverHttp");functionKje(t){vare=newlu(t);returne.request=Jne.request,e}o(Kje,"httpOverHttps");functionZje(t){vare=newlu(t);returne.request=Jne.request,e.createSocket=Kne,e.defaultPort=443,e}o(Zje,"httpsOverHttps");functionlu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||O_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(varc=Zne(s,i,a),u=0,p=e.requests.length;u<p;++u){varl=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(lu,"TunnelingAgent");$je.inherits(lu,jje.EventEmitter);lu.prototype.addRequest=o(function(e,r,n,s){vari=this,a=E_({request:e},i.options,Zne(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){i.emit("free",c,a)}o(u,"onFree");functionp(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");lu.prototype.createSocket=o(function(e,r){varn=this,s={};n.sockets.push(s);vari=E_({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),pl("making CONNECT request");vara=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();functionc(A){A.upgrade=!0}o(c,"onResponse");functionu(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");functionp(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){pl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();varm=newError("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}if(h.length>0){pl("got illegal response body from proxy"),d.destroy();varm=newError("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}returnpl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}o(p,"onConnect");functionl(A){a.removeAllListeners(),pl(`tunneling socket could not be established, cause=%s
`);d.push(z),i+=z.byteLength,m&&(i=null),s=t,n=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data;boundary=${u}`}else if(coe(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:MKe(t)}if((typeof s=="string"||mz.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!Aoe(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(hoe,"extractBody");function wKe(t,e=!1){return t instanceof ReadableStream&&(DW(!mz.isDisturbed(t),"The body has already been consumed."),DW(!t.locked,"The stream is locked.")),hoe(t,e)}o(wKe,"safelyExtractBody");function SKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(SKe,"cloneBody");function NKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(NKe,"throwIfAborted");function vKe(t){return{blob(){return Ih(this,r=>{let n=poe(this);return n===null?n="":n&&(n=qKe(n)),new CKe([r],{type:n})},t)},arrayBuffer(){return Ih(this,r=>new Uint8Array(r).buffer,t)},text(){return Ih(this,loe,t)},json(){return Ih(this,TKe,t)},formData(){return Ih(this,r=>{let n=poe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=IKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new uoe;return i[Rh]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new uoe;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Ih(this,r=>new Uint8Array(r),t)}}}o(vKe,"bodyMixinMethods");function FKe(t){Object.assign(t.prototype,vKe(t))}o(FKe,"mixinBody");async function Ih(t,e,r){if(yKe.brandCheck(t,r),boe(t))throw new TypeError("Body is unusable: Body has already been read");NKe(t[Rh]);let n=zKe(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Rh].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await OKe(t[Rh].body,i,s),n.promise)}o(Ih,"consumeBody");function boe(t){let e=t[Rh].body;return e!=null&&(e.stream.locked||mz.isDisturbed(e.stream))}o(boe,"bodyUnusable");function TKe(t){return JSON.parse(loe(t))}o(TKe,"parseJSONFromBytes");function poe(t){let e=t[Rh].headersList,r=EKe(e);return r==="failure"?null:r}o(poe,"bodyMimeType");Moe.exports={extractBody:hoe,safelyExtractBody:wKe,cloneBody:SKe,mixinBody:FKe,streamRegistry:foe,hasFinalizationRegistry:doe,bodyUnusable:boe}});var Ioe=b((pi0,qoe)=>{"use strict";var ve=require("node:assert"),Ge=it(),{channels:moe}=Mh(),IW=uW(),{RequestContentLengthMismatchError:Ad,ResponseContentLengthMismatchError:xKe,RequestAbortedError:Coe,HeadersTimeoutError:_Ke,HeadersOverflowError:WKe,SocketError:HB,InformationalError:Sh,BodyTimeoutError:LKe,HTTPParserError:QKe,ResponseExceededMaxSizeError:PKe}=Et(),{kUrl:Boe,kReset:Tn,kClient:NW,kParser:R0,kBlocking:Oz,kRunning:mr,kPending:kKe,kSize:goe,kWriting:dl,kQueue:go,kNoRef:gz,kKeepAliveDefaultTimeout:UKe,kHostHeader:GKe,kPendingIdx:HKe,kRunningIdx:Ai,kError:di,kPipelining:UB,kSocket:Nh,kKeepAliveTimeoutValue:XB,kMaxHeadersSize:RW,kKeepAliveMaxTimeout:XKe,kKeepAliveTimeoutThreshold:VKe,kHeadersTimeout:jKe,kBodyTimeout:$Ke,kStrictContentLength:vW,kMaxRequests:zoe,kCounter:YKe,kMaxResponseSize:JKe,kOnError:KKe,kResume:Al,kHTTPContext:Doe}=f0(),fa=fie(),ZKe=Buffer.alloc(0),QB=Buffer[Symbol.species],PB=Ge.addListener,eZe=Ge.removeAllListeners,wW;async function tZe(){let t=process.env.JEST_WORKER_ID?AW():void 0,e;try{e=await WebAssembly.compile(Mie())}catch{e=await WebAssemb
`}return moe.sendHeaders.hasSubscribers&&moe.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?Eoe(m,null,t,e,h,l,z,A):Ge.isBuffer(u)?Eoe(m,u,t,e,h,l,z,A):Ge.isBlobLike(u)?typeof u.stream=="function"?yoe(m,u.stream(),t,e,h,l,z,A):cZe(m,u,t,e,h,l,z,A):Ge.isStream(u)?aZe(m,u,t,e,h,l,z,A):Ge.isIterable(u)?yoe(m,u,t,e,h,l,z,A):ve(!1),!0}o(oZe,"writeH1");function aZe(t,e,r,n,s,i,a,c){ve(i!==0||r[mr]===0,"stream body cannot be pipelined");let u=!1,p=new VB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(m){if(!u)try{!p.write(m)&&this.pause&&this.pause()}catch(z){Ge.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let m=new Coe;queueMicrotask(()=>h(m))}},"onClose"),h=o(function(m){if(!u){if(u=!0,ve(s.destroyed||s[dl]&&r[mr]<=1),s.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!m)try{p.end()}catch(z){m=z}p.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Ge.destroy(e,m):Ge.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(aZe,"writeStream");function Eoe(t,e,r,n,s,i,a,c){try{e?Ge.isBuffer(e)&&(ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"):(ve(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Al]()}catch(u){t(u)}}o(Eoe,"writeBuffer");async function cZe(t,e,r,n,s,i,a,c){ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ad;let u=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"),s.write(u),s.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(s[Tn]=!0),r[Al]()}catch(u){t(u)}}o(cZe,"writeBlob");async function yoe(t,e,r,n,s,i,a,c){ve(i!==0||r[mr]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{ve(u===null),s[di]?h(s[di]):u=d}),"waitForDrain");s.on("close",p).on("drain",p);let A=new VB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(s[di])throw s[di];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{s.off("close",p).off("drain",p)}}o(yoe,"writeIterable");var VB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[di])throw r[di];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(s!==null&&a+p>s){if(i[vW])throw new Ad;process.emitWarning(new Ad)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Tn]=!0),s===null?r.write(`${u}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[vW])throw new Ad;process.emitWarning(new Ad)}e[R0].timeout&&e[R0].timeoutType===vh&&e[R0].timeout.refresh&&e[R0].timeout.refresh(),n[Al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[dl]=!1,e&&(ve(n[mr]<=1,"pipeline should only contain this request"),s(e))}};qoe.exports=nZe});var xoe=b((Ai0,Toe)=>{"use strict";var fi=require("node:assert"),{pipeline:uZe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:_W,RequestAbortedError:Roe,SocketError:Ez,InformationalError:WW}=Et(),{kUrl:jB,kReset:YB,kClient:Fh,kRunning:JB,kPending:pZe,kQueue:fl,kPendingIdx:LW,kRunningIdx:zo,kError:Eo,kSocket:w1,kStrictContentLength:lZe,kOnError:QW,kMaxConcurrentStreams:Foe,kHTTP2Session:Oo,kResume:hl,kSize:AZe,kHTTPContext:dZe}=f0(),Mu=Symbol("open streams"),woe,Soe=!1,$B;try{$B=require("node:http2")}catch{$B={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fZe,HTTP2_HEADER_METHOD:hZe,HTTP2_HEADER_PATH:bZe,HTTP2_HEADER_SCHEME:MZe,HTTP2_HEADER_CONTENT_LENGTH:mZe,HTTP2_HEADER_EXPECT:gZe,HTTP2_HEADER_STATUS:zZe}}=$B;function OZe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(OZe,"parseH2Headers");async function EZe(t,e){t[w1]=e,Soe||(Soe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=$B.connect(t[jB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Foe]});r[Mu]=0,r[Fh]=t,r[w1]=e,lt.addListener(r,"error",CZe),lt.addListener(r,"frameError",BZe),lt.addListener(r,"end",DZe),lt.addListener(r,"goaway",qZe),lt.addListener(r,"close",function(){let{[Fh]:s}=this,{[w1]:i}=s,a=this[w1][Eo]||this[Eo]||new Ez("closed",lt.getSocketInfo(i));if(s[Oo]=null,s.destroyed){fi(s[pZe]===0);let c=s[fl].splice(s[zo]);for(let u=0;u<c.length;u++){let p=c[u];lt.errorRequest(s,p,a)}}}),r.unref(),t[Oo]=r,e[Oo]=r,lt.addListener(e,"error",function(s){fi(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Eo]=s,this[Fh][QW](s)}),lt.addListener(e,"end",function(){lt.destroy(this,new Ez("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let s=this[Eo]||new Ez("closed",lt.getSocketInfo(this));t[w1]=null,this[Oo]!=null&&this[Oo].destroy(s),t[LW]=t[zo],fi(t[JB]===0),t.emit("disconnect",t[jB],[t],s),t[hl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return RZe(t,...s)},resume(){yZe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(EZe,"connectH2");function yZe(t){let e=t[w1];e?.destroyed===!1&&(t[AZe]===0&&t[Foe]===0?(e.unref(),t[Oo].unref()):(e.ref(),t[Oo].ref()))}o(yZe,"resumeH2");function CZe(t){fi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[w1][Eo]=t,this[Fh][QW](t)}o(CZe,"onHttp2SessionError");function BZe(t,e,r){if(r===0){let n=new WW(`HTTP/2:"frameError"received-type${t},code${e}`);this[w1][Eo]=n,this[Fh][QW](n)}}o(BZe,"onHttp2FrameError");function DZe(){let t=new Ez("other side closed",lt.getSocketInfo(this[w1]));this.destroy(t),lt.destroy(this[w1],t)}o(DZe,"onHttp2SessionEnd");function qZe(t){let e=this[Eo]||new Ez(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,lt.getSocketInfo(this)),r=this[Fh];if(r[w1]=null,r[dZe]=null,this[Oo]!=null&&(this[Oo].destroy(e),this[Oo]=null),lt.destroy(this[w1],e),r[zo]<r[fl].length){let n=r[fl][r[zo]];r[fl][r[zo]++]=null,lt.errorRequest(r,n,e),r[LW]=r[zo]}fi(r[JB]===0),r.emit("disconnect",r[jB],[r],e),r[hl]()}o(qZe,"onHTTP2GoAway");function IZe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(IZe,"shouldSendContentLength");function RZe(t,e){let r=t[Oo],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let N=p[w+0],x=p[w+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)A[N]?A[N]+=`,${x[Q]}`:A[N]=x[Q];else A[N]=x}let d,{hostname:h,port:m}=t[jB];A[fZ
globstarwhile`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
`);if(d===-1){EI("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}EI("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(Q2t,"parseProxyResponse");vb.parseProxyResponse=Q2t});var FMe=b(Ii=>{"use strict";var P2t=Ii&&Ii.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),k2t=Ii&&Ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NMe=Ii&&Ii.__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)&&P2t(e,t,r);return k2t(e,t),e},vMe=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.HttpsProxyAgent=void 0;var yI=NMe(require("net")),RMe=NMe(require("tls")),U2t=vMe(require("assert")),G2t=vMe(Xd()),H2t=qMe(),X2t=require("url"),V2t=IMe(),GO=(0,G2t.default)("https-proxy-agent"),wMe=o(t=>t.servername===void 0&&t.host&&!yI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CI=class extends H2t.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new X2t.URL(e):e,this.proxyHeaders=r?.headers??{},GO("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?SMe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(GO("Creating `tls.Socket`: %o",this.connectOpts),s=RMe.connect(wMe(this.connectOpts))):(GO("Creating `net.Socket`: %o",this.connectOpts),s=yI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=yI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}:${i[d]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Fb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Fb("Creating `tls.Socket`: %o",this.connectOpts),i=uft.connect(this.connectOpts)):(Fb("Creating `net.Socket`: %o",this.connectOpts),i=cft.connect(this.connectOpts)),await(0,lft.once)(i,"connect"),i}};BI.protocols=["http","https"];Ri.HttpProxyAgent=BI;function dft(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(dft,"omit")});var pme=b(LI=>{"use strict";Object.defineProperty(LI,"__esModule",{value:!0});LI.state=void 0;LI.state={instrumenterImplementation:void 0}});var qme=b(GI=>{"use strict";Object.defineProperty(GI,"__esModule",{value:!0});GI.state=void 0;GI.state={operationRequestMap:new WeakMap}});var iOe=b(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});var vgt=require("os"),Fgt=require("util");function Tgt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Tgt,"_interopDefaultLegacy");var xgt=Tgt(Fgt);function _gt(t,...e){process.stderr.write(`${xgt.default.format(t,...e)}${vgt.EOL}`)}o(_gt,"log");var $ze=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Jze,DG=[],qG=[],u5=[];$ze&&IG($ze);var Kze=Object.assign(t=>Zze(t),{enable:IG,enabled:RG,disable:Wgt,log:_gt});function IG(t){Jze=t,DG=[],qG=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?qG.push(new RegExp(`^${n.substr(1)}$`)):DG.push(new RegExp(`^${n}$`));for(let n of u5)n.enabled=RG(n.namespace)}o(IG,"enable");function RG(t){if(t.endsWith("*"))return!0;for(let e of qG)if(e.test(t))return!1;for(let e of DG)if(e.test(t))return!0;return!1}o(RG,"enabled");function Wgt(){let t=Jze||"";return IG(""),t}o(Wgt,"disable");function Zze(t){let e=Object.assign(r,{enabled:RG(t),destroy:Lgt,log:Kze.log,namespace:t,extend:Qgt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return o(r,"debug"),u5.push(e),e}o(Zze,"createDebugger");function Lgt(){let t=u5.indexOf(this);return t>=0?(u5.splice(t,1),!0):!1}o(Lgt,"destroy");function Qgt(t){let e=Zze(`${this.namespace}:${t}`);return e.log=this.log,e}o(Qgt,"extend");var N3=Kze,eOe=new Set,a5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,p5,l5=N3("azure");l5.log=(...t)=>{N3.log(...t)};var wG=["verbose","info","warning","error"];a5&&(sOe(a5)?tOe(a5):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${a5}';loggingisnotenabled.Acceptablevalues:${wG.join(", ")}.`));function tOe(t){if(t&&!sOe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${wG.join(",")}`);p5=t;let e=[];for(let r of eOe)nOe(r)&&e.push(r.namespace);N3.enable(e.join(","))}o(tOe,"setLogLevel");function Pgt(){return p5}o(Pgt,"getLogLevel");var Yze={verbose:400,info:300,warning:200,error:100};function kgt(t){let e=l5.extend(t);return rOe(l5,e),{error:c5(e,"error"),warning:c5(e,"warning"),info:c5(e,"info"),verbose:c5(e,"verbose")}}o(kgt,"createClientLogger");function rOe(t,e){e.log=(...r)=>{t.log(...r)}}o(rOe,"patchLogMethod");function c5(t,e){let r=Object.assign(t.extend(e),{level:e});if(rOe(t,r),nOe(r)){let n=N3.disable();N3.enable(n+","+r.namespace)}return eOe.add(r),r}o(c5,"createLogger");function nOe(t){return!!(p5&&Yze[t.level]<=Yze[p5])}o(nOe,"shouldEnable");function sOe(t){return wG.includes(t)}o(sOe,"isAzureLogLevel");Kb.AzureLogger=l5;Kb.createClientLogger=kgt;Kb.getLogLevel=Pgt;Kb.setLogLevel=tOe});var vG=b(F3=>{"use strict";Object.defineProperty(F3,"__esModule",{value:!0});var Zb=new WeakMap,A5=new WeakMap,v3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Zb.set(this,[]),A5.set(this,!1)}get aborted(){if(!A5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return A5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Zb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Zb.get(this).push(r)}removeEventListener(e,r){if(!Zb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Zb.get(this),s=n.indexOf(r);s>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(r4t,"logUnexpecedPropertyAccessOnce");function n4t(){Object.keys(Vw).forEach(function(t){delete Vw[t]})}o(n4t,"resetLoggedProperties")});var $w=b(pc=>{"use strict";pc.__esModule=!0;pc.HandlebarsEnvironment=aV;function Jye(t){return t&&t.__esModule?t:{default:t}}o(Jye,"_interopRequireDefault");var B2=ln(),s4t=Xs(),iV=Jye(s4t),i4t=tV(),o4t=Vye(),a4t=nV(),jw=Jye(a4t),c4t=sV(),u4t="4.7.9";pc.VERSION=u4t;var p4t=8;pc.COMPILER_REVISION=p4t;var l4t=7;pc.LAST_COMPATIBLE_COMPILER_REVISION=l4t;var A4t={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};pc.REVISION_CHANGES=A4t;var oV="[object Object]";function aV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},i4t.registerDefaultHelpers(this),o4t.registerDefaultDecorators(this)}o(aV,"HandlebarsEnvironment");aV.prototype={constructor:aV,logger:jw.default,log:jw.default.log,registerHelper:o(function(e,r){if(B2.toString.call(e)===oV){if(r)throw new iV.default("Arg not supported with multiple helpers");B2.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(B2.toString.call(e)===oV)B2.extend(this.partials,e);else{if(typeof r>"u")throw new iV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(B2.toString.call(e)===oV){if(r)throw new iV.default("Arg not supported with multiple decorators");B2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){c4t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var d4t=jw.default.log;pc.log=d4t;pc.createFrame=B2.createFrame;pc.logger=jw.default});var Zye=b((Yw,Kye)=>{"use strict";Yw.__esModule=!0;function cV(t){this.string=t}o(cV,"SafeString");cV.prototype.toString=cV.prototype.toHTML=function(){return""+this.string};Yw.default=cV;Kye.exports=Yw.default});var eCe=b(uV=>{"use strict";uV.__esModule=!0;uV.wrapHelper=f4t;function f4t(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(f4t,"wrapHelper")});var oCe=b(nA=>{"use strict";nA.__esModule=!0;nA.checkRevision=z4t;nA.template=O4t;nA.wrapProgram=Jw;nA.resolvePartial=E4t;nA.invokePartial=y4t;nA.noop=sCe;function h4t(t){return t&&t.__esModule?t:{default:t}}o(h4t,"_interopRequireDefault");function b4t(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(b4t,"_interopRequireWildcard");var M4t=ln(),qM=b4t(M4t),m4t=Xs(),Ju=h4t(m4t),Ku=$w(),tCe=tV(),g4t=eCe(),rCe=sV();function z4t(t){var e=t&&t[0]||1,r=Ku.COMPILER_REVISION;if(!(e>=Ku.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ku.COMPILER_REVISION))if(e<Ku.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ku.REVISION_CHANGES[r],s=Ku.REVISION_CHANGES[e];throw new Ju.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ju.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(z4t,"checkRevision");function O4t(t,e){if(!e)throw new Ju.default("No environment passed to template");if(!t||!t.main)throw new Ju.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=qM.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,u,p,l;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
${g6(p)}${p}`)}catch(p){if(p.code==="ENOENT")return;throw p}return z6(t,u)}o(lwe,"insert");ri.exports.find=Wvt;async function Wvt(t,e){let r=Dy(t,e);try{return(await m6(r)).reduce((s,i)=>i&&i.key===e?z6(t,i):s,null)}catch(n){if(n.code==="ENOENT")return null;throw n}}o(Wvt,"find");ri.exports.delete=Lvt;function Lvt(t,e,r={}){if(!r.removeFully)return lwe(t,e,null,r);let n=Dy(t,e);return pwe(n,{recursive:!0,force:!0})}o(Lvt,"del");ri.exports.lsStream=Awe;function Awe(t){let e=kJ(t),r=new wvt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:n}=await Promise.resolve().then(()=>(M6(),b6)),s=await QJ(e);return await n(s,async i=>{let a=wc.join(e,i),c=await QJ(a);await n(c,async u=>{let p=wc.join(a,u),l=await QJ(p);await n(l,async A=>{let d=wc.join(p,A);try{let m=(await m6(d)).reduce((z,C)=>(z.set(C.key,C),z),new Map);for(let z of m.values()){let C=z6(t,z);C&&r.write(C)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:LJ})},{concurrency:LJ})},{concurrency:LJ}),r.end(),r}).catch(n=>r.emit("error",n)),r}o(Awe,"lsStream");ri.exports.ls=Qvt;async function Qvt(t){return(await Awe(t).collect()).reduce((r,n)=>(r[n.key]=n,r),{})}o(Qvt,"ls");ri.exports.bucketEntries=m6;async function m6(t,e){let r=await qvt(t,"utf8");return Pvt(r,e)}o(m6,"bucketEntries");function Pvt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let n=r.split(" ");if(!n[1]||g6(n[1])!==n[0])return;let s;try{s=JSON.parse(n[1])}catch{}s&&e.push(s)}),e}o(Pvt,"_bucketEntries");ri.exports.bucketDir=kJ;function kJ(t){return wc.join(t,`index-v${Tvt}`)}o(kJ,"bucketDir");ri.exports.bucketPath=Dy;function Dy(t,e){let r=dwe(e);return wc.join.apply(wc,[kJ(t)].concat(Fvt(r)))}o(Dy,"bucketPath");ri.exports.hashKey=dwe;function dwe(t){return fwe(t,"sha256")}o(dwe,"hashKey");ri.exports.hashEntry=g6;function g6(t){return fwe(t,"sha1")}o(g6,"hashEntry");function fwe(t,e){return Bvt.createHash(e).update(t).digest("hex")}o(fwe,"hash");function z6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?vvt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(z6,"formatEntry");function QJ(t){return Ivt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(QJ,"readdirOrEmpty")});var mm=b(E6=>{"use strict";Object.defineProperty(E6,"__esModule",{value:!0});E6.LRUCache=void 0;var kvt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bwe=new Set,UJ=typeof process=="object"&&process?process:{},Mwe=o((t,e,r,n)=>{typeof UJ.emitWarning=="function"?UJ.emitWarning(t,e,r,n):console.error(`[${r}]${e}:${t}`)},"emitWarning"),O6=globalThis.AbortController,hwe=globalThis.AbortSignal;if(typeof O6>"u"){hwe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},O6=class{static{o(this,"AbortController")}constructor(){e()}signal=new hwe;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=UJ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,Mwe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var Uvt=o(t=>!bwe.has(t),"shouldWarn"),OA=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),mwe=o(t=>OA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Mm:null:null,"getUintArray"),Mm=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},GJ=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=mwe(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},HJ=class t{static{o(this,"LRUCache")}#e;#t;#n;#r;#s;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,n,s,i)=>e.#U(r,n,s,i),"backgroundFetch"),moveToTail:o(r=>e.#_(r),"moveToTail"),indexes:o(r=>e.#w(r),"indexes"),rindexes:o(r=>e.#N(r),"rindexes"),isStale:o(r=>e.#I(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:n,ttlResolution
globstarwhile`,e,d,r,h,m),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,u,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
`);if(d===-1){Cv("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}Cv("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(oWt,"parseProxyResponse");Tm.parseProxyResponse=oWt});var FNe=b(eo=>{"use strict";var aWt=eo&&eo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cWt=eo&&eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NNe=eo&&eo.__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)&&aWt(e,t,r);return cWt(e,t),e},vNe=eo&&eo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eo,"__esModule",{value:!0});eo.HttpsProxyAgent=void 0;var iC=NNe(require("net")),wNe=NNe(require("tls")),uWt=vNe(require("assert")),pWt=vNe(Xd()),lWt=HO(),AWt=require("url"),dWt=RNe(),oC=(0,pWt.default)("https-proxy-agent"),Bv=class extends lWt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new AWt.URL(e):e,this.proxyHeaders=r?.headers??{},oC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?SNe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(n.protocol==="https:"){oC("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;s=wNe.connect({...this.connectOpts,servername:d&&iC.isIP(d)?void 0:d})}else oC("Creating `net.Socket`: %o",this.connectOpts),s=iC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=iC.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}:${i[d]}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",fWt),r.secureEndpoint){oC("Upgrading socket connection to TLS");let d=r.servername||r.host;return wNe.connect({...SNe(r,"host","path","port"),socket:s,servername:iC.isIP(d)?void 0:d})}return s}s.destroy();let A=new iC.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{oC("Replaying proxy buffer for failed request"),(0,uWt.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};Bv.protocols=["http","https"];eo.HttpsProxyAgent=Bv;function fWt(t){t.resume()}o(fWt,"resume");function SNe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(SNe,"omit")});var WNe=b(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var TNe=require("buffer"),ff={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Qp.ERRORS=ff;function hWt(t){if(!TNe.Buffer.isEncoding(t))throw new Error(ff.INVALID_ENCODING)}o(hWt,"checkEncoding");Qp.checkEncoding=hWt;function xNe(t){return typeof t=="number"&&isFinite(t)&&gWt(t)}o(xNe,"isFiniteInteger");Qp.isFiniteInteger=xNe;function _Ne(t,e){if(typeof t=="number"){if(!xNe(t)||t<0)throw new Error(e?ff.INVALID_OFFSET:ff.INVALID_LENGTH)}else throw new Error(e?ff.INVALID_OFFSET_NON_NUMBER:ff.INVALID_LENGTH_NON_NUMBER)}o(_Ne,"checkOffsetOrLengthValue");function bWt(t){_Ne(t,!1)}o(bWt,"checkLengthValue");Qp.checkLengthValue=bWt;function MWt(t){_Ne(t,!0)}o(MWt,"checkOffsetValue");Qp.checkOffsetValue=MWt;function mWt(t,e){if(t<0||t>e.length)throw new Error(ff.INVALID_TARGET_OFFSET)}o(mWt,"checkTargetOffset");Qp.checkTargetOffset=mWt;function gWt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(gWt,"isInteger");function zWt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof TNe.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}o(zWt,"bigIntAndBufferInt64Check");Qp.bigIntAndBufferInt64Check=zWt});var QNe=b(aZ=>{"use strict";Object.defineProperty(aZ,"__esModule",{value:!0});var nt=WNe(),LNe=4096,OWt="utf8",oZ=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=OWt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(nt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(nt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(LNe);else{if(typeof e<"u")throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(LNe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}read
`,IHt=/\u2014 (\S+) (\S+)\n/g;function RHt(t,e){let r=t.inclusionProof,n=R0e.fromString(r.checkpoint.envelope),s=yT.fromString(n.note);if(!wHt(n,e))throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(RHt,"verifyCheckpoint");function wHt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>hxe.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return s?hxe.crypto.verify(r,s.publicKey,n.signature):!1})}o(wHt,"verifySignedNote");var R0e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(I0e))throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(I0e),n=e.slice(0,r+1),i=e.slice(r+I0e.length).matchAll(IHt),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},yT=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};QC.LogCheckpoint=yT});var Mxe=b(v0e=>{"use strict";Object.defineProperty(v0e,"__esModule",{value:!0});v0e.verifyMerkleInclusion=vHt;var N0e=ea(),w0e=Ur(),SHt=Buffer.from([0]),NHt=Buffer.from([1]);function vHt(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),s=BigInt(e.logSize);if(n<0n||n>=s)throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:i,border:a}=FHt(n,s);if(r.hashes.length!==i+a)throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=QHt(t.canonicalizedBody),l=xHt(THt(p,c,n),u);if(!N0e.crypto.bufferEqual(l,e.logHash))throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(vHt,"verifyMerkleInclusion");function FHt(t,e){let r=_Ht(t,e),n=WHt(t>>BigInt(r));return{inner:r,border:n}}o(FHt,"decompInclProof");function THt(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?S0e(s,n):S0e(n,s),t)}o(THt,"chainInner");function xHt(t,e){return e.reduce((r,n)=>S0e(n,r),t)}o(xHt,"chainBorderRight");function _Ht(t,e){return LHt(t^e-BigInt(1))}o(_Ht,"innerProofSize");function WHt(t){return t.toString(2).split("1").length-1}o(WHt,"onesCount");function LHt(t){return t===0n?0:t.toString(2).length}o(LHt,"bitLength");function S0e(t,e){return N0e.crypto.digest("sha256",NHt,t,e)}o(S0e,"hashChildren");function QHt(t){return N0e.crypto.digest("sha256",SHt,t)}o(QHt,"hashLeaf")});var gxe=b(F0e=>{"use strict";Object.defineProperty(F0e,"__esModule",{value:!0});F0e.verifyTLogSET=UHt;var mxe=ea(),PHt=Ur(),kHt=zg();function UHt(t,e){if(!(0,kHt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=GHt(t),a=Buffer.from(mxe.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return mxe.crypto.verify(a,s.publicKey,c)}))throw new PHt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(UHt,"verifyTLogSET");function GHt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(GHt,"toVerificationPayload")});var Oxe=b(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.verifyTLogBody=$Ht;CT.verifyTLogInclusion=YHt;var zxe=tee(),_0e=Ur(),T0e=Axe(),x0e=dxe(),HHt=fxe(),XHt=bxe(),VHt=Mxe(),jHt=gxe();function $Ht(t,e){let{kind:r,version:n}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||n!==s.apiVersion)throw new _0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==T0e.DSSE_API_VERSION_V1)return(0,T0e.verifyDSSETLogBody)(s,e);{let i=zxe.Entry.fromJSON(s);return(0,T0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,HHt.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==x0e.HASHEDREKORD_API_VERSION_V1)return(0,x0e.verifyHashedRekordTLogBody)(s,e);{let i=zxe.Entry.fromJSON(s);return(0,x0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new _0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o($Ht,"verifyTLogBody");function YHt(t,e){let r=!1;if(JHt(t)&&((0,jHt.verifyTLogSET)(t,e),r=!0),KHt(t)){let n=(0,XHt.verifyCheckpoint)(t,e);(0,VHt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new _0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(YHt,"verifyTLogInclusion");function JHt(t){return t.inclusionPromise!==void 0}o(JHt,"isTLogEntryWithInclusionPromise");function KHt(t){return t.inclusionProof!==void 0}o(KHt,"isTLogEntryWithInclusionProof")});var Dxe=b(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.Verifier=
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,v10.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(B4,"_createForOfIteratorHelper");function P10(t,e){var r;if(t){if(typeof t=="string")return LUe(t,e);var n=(0,lo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,_10.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LUe(t,e)}}o(P10,"_unsupportedIterableToArray");function LUe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o(LUe,"_arrayLikeToArray");var A0="xregexp",Vf={astral:!1,namespacing:!1},G0={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},nu={},y4={},kg={},Xre=[],Ug="default",QUe="class",k10={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},U10=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,G10=G0.exec.call(/()??/,"")[1]===void 0,H10=(0,Xf.default)(/x/)!==void 0,X10={},HUe=X10.toString;function jre(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}o(jre,"hasNativeFlag");var XUe=jre("u"),$re=jre("y"),VUe={g:!0,i:!0,m:!0,u:XUe,y:$re};function jUe(t,e,r,n,s){var i;if(t[A0]={captureNames:e},s)return t;if(t.__proto__)t.__proto__=pe.prototype;else for(var a in pe.prototype)t[a]=pe.prototype[a];return t[A0].source=r,t[A0].flags=n&&(0,Q10.default)(i=n.split("")).call(i).join(""),t}o(jUe,"augment");function C4(t){return G0.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(C4,"clipDuplicates");function $f(t,e){var r;if(!pe.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[A0]||{},s=V10(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(s=G0.replace.call(s,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(s=C4(s+i)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Xf.default)(n)!=null&&(u=i?C4((0,Xf.default)(n)+i):(0,Xf.default)(n))),t=jUe(new RegExp(e.source||t.source,s),j10(t)?(0,lo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o($f,"copyRegex");function $Ue(t){return(0,GUe.default)(t,16)}o($Ue,"dec");function YUe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||G0.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||$10(t.input,t.index+t[0].length,r)?"":"(?:)"}o(YUe,"getContextualTokenSeparator");function V10(t){return H10?(0,Xf.default)(t):G0.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o(V10,"getNativeFlags");function j10(t){return!!(t[A0]&&t[A0].captureNames)}o(j10,"hasNamedCapture");function JUe(t){return(0,GUe.default)(t,10).toString(16)}o(JUe,"hex");function $10(t,e,r){var n="\\(\\?#[^)]*\\)",s="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return G0.test.call((0,jf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,lo.default)(t).call(t,e))}o($10,"isQuantifierNext");function Yre(t,e){return HUe.call(t)==="[object ".concat(e,"]")}o(Yre,"isType");function KUe(t){for(;t.length<4;)t="0".concat(t);return t}o(KUe,"pad4");function Y10(t,e){if(C4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=G0.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(G0.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=C4(e
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,Nr0.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(Qr0,"_createForOfIteratorHelper");function Pr0(t,e){var r;if(t){if(typeof t=="string")return LGe(t,e);var n=(0,_r0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,xr0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LGe(t,e)}}o(Pr0,"_unsupportedIterableToArray");function LGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o(LGe,"_arrayLikeToArray");var kr0=o(function(e){var r={},n=e._dec,s=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?n(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",m=-1;return(0,Lr0.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>m+1&&(h+="\\u".concat(i(s(m+1))),C>m+2&&(h+="-\\u".concat(i(s(C-1))))),m=c(z[2]||z[1])}),m<65535&&(h+="\\u".concat(i(s(m+1))),m<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var m=r[d],z="";if(m.bmp&&!m.isBmpLast){var C;z=(0,ene.default)(C="[".concat(m.bmp,"]")).call(C,m.astral?"|":"")}if(m.astral&&(z+=m.astral),m.isBmpLast&&m.bmp){var E;z+=(0,ene.default)(E="".concat(m.astral?"|":"","[")).call(E,m.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var m=h?"a!":"a=";return r[d][m]||(r[d][m]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,m){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],N=(0,Wr0.default)(m).call(m,"A"),x=a(d[4]||d[3]),Q=r[x];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(C+d[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var $;throw new ReferenceError((0,ene.default)($="".concat(E+d[0]," -> ")).call($,Q.inverseOf))}Q=r[x],w=!w}if(!(Q.bmp||N))throw new SyntaxError(B+d[0]);if(N){if(h==="class")throw new SyntaxError(I);return A(x,w)}return h==="class"?w?p(x):Q.bmp:"".concat((w?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",m="Unicode token has no character data ",z=Qr0(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(m+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){z.e(B)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");S4.default=kr0;QGe.exports=S4.default});var UGe=b((B01,kGe)=>{kGe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(VAe,"getBooleanInput");functionoQ(t,e){if(process.env.GITHUB_OUTPUT||"")returniz("OUTPUT",dB(t,e));process.stdout.write(iQ.EOL),pa("set-output",{name:t},ua(e))}o(oQ,"setOutput");functionjAe(t){process.exitCode=sQ.Failure,fb(t)}o(jAe,"setFailed");functionqu(){returnprocess.env.RUNNER_DEBUG==="1"}o(qu,"isDebug");functionT(t){pa("debug",{},t)}o(T,"debug");functionfb(t,e={}){pa("error",M_(e),tinstanceofError?t.toString():t)}o(fb,"error");functionyt(t,e={}){pa("warning",M_(e),tinstanceofError?t.toString():t)}o(yt,"warning");functionW(t){process.stdout.write(t+iQ.EOL)}o(W,"info");functionFd(t){g_("group",t)}o(Fd,"startGroup");functionTd(){g_("endgroup")}o(Td,"endGroup");functionur(t,e){returnDot(this,void0,void0,function*(){Fd(t);letr;try{r=yielde()}finally{Td()}returnr})}o(ur,"group");functionfq(t,e){if(process.env.GITHUB_STATE||"")returniz("STATE",dB(t,e));pa("save-state",{name:t},ua(e))}o(fq,"saveState");function$Ae(t){returnprocess.env[`STATE_${t}`]||""}o($Ae,"getState");varMw=_(require("fs"),1),mX=_(require("os"),1),gX=_(require("path"),1);varJAe=_(require("os"),1);functiondO(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(dO,"toCommandValue");functionKAe(t,e,r){letn=newaQ(t,e,r);process.stdout.write(n.toString()+JAe.EOL)}o(KAe,"issueCommand");varYAe="::",aQ=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=YAe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Iot(s)}`)}}returne+=`${YAe}${qot(this.message)}`,e}};functionqot(t){returndO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(qot,"escapeData");functionIot(t){returndO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Iot,"escapeProperty");varrde=_(require("os"),1);varede=require("os"),fO=require("fs");varcQ=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");functionu(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");functionp(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:Rot,appendFile:wot,writeFile:Sot}=fO.promises,ZAe="GITHUB_STEP_SUMMARY";varuQ=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returncQ(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[ZAe];if(!e)thrownewError(`Unable to find environment variable for $${ZAe}. Check if your runtime environment supports job summaries.`);try{yieldRot(e,fO.constants.R_OK|fO.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){lets=Object.entries(n).map(([i,a])=>`${i}="${a}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returncQ(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?Sot:wot)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returncQ(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(ede.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(s=>{leti=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{he
${Udt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sI(t){return t instanceof nn?!0:Pd(t)&&t.name==="RestError"}o(sI,"isRestError");function Qn(t,e){return Buffer.from(t,e)}o(Qn,"stringToUint8Array");var iI=_(require("node:http"),1),oI=_(require("node:https"),1),FP=_(require("node:zlib"),1),$be=require("node:stream");var Di=PO("ts-http-runtime");var Gdt={};function kO(t){return t&&typeof t.pipe=="function"}o(kO,"isReadableStream");function jbe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(jbe,"isStreamComplete");function Ybe(t){return t&&typeof t.byteLength=="number"}o(Ybe,"isArrayBuffer");var aI=class extends $be.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},TP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new wa("The operation was aborted. Request has already been canceled.");n=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let p=new No;Di.info(`requestto'${p.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=jdt(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,z=new aI(m);z.on("error",C=>{Di.error("Error in upload progress",C)}),kO(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let l=Hdt(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?Xdt(p,l):p;let h=e.onDownloadProgress;if(h){let m=new aI(h);m.on("error",z=>{Di.error("Error in download progress",z)}),u.pipe(m),u=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await Vdt(u),d}finally{if(e.abortSignal&&n){let p=Promise.resolve();kO(c)&&(p=jbe(c));let l=Promise.resolve();kO(u)&&(l=jbe(u)),Promise.all([p,l]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{Di.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let l=i?iI.default.request(c,u):oI.default.request(c,u);l.once("error",A=>{p(new nn(A.message,{code:A.code??nn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new wa("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),n&&kO(n)?n.pipe(l):n?typeof n=="string"||Buffer.isBuffer(n)?l.end(n):Ybe(n)?l.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Di.error("Unrecognized body type",n),p(new nn("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?iI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new iI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oI.default.globalAgent;let s=e.tlsSettings??Gdt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Di.info("No cached TLS Agent exi
`;return e}o(Bft,"encodeHeaders");function Dft(t){return t instanceof Uint8Array?t.byteLength:wI(t)?t.size===-1?void 0:t.size:void 0}o(Dft,"getLength");function qft(t){let e=0;for(let r of t){let n=Dft(r);if(n===void 0)return;e+=n}return e}o(qft,"getTotalLength");async function Ift(t,e,r){let n=[Qn(`--${r}`,"utf-8"),...e.flatMap(i=>[Qn(`\r
`,"utf-8")],s=qft(n);s&&t.headers.set("Content-Length",s),t.body=await KMe(n)}o(Ift,"buildRequestBody");var XO="multipartPolicy",Rft=70,wft=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Sft(t){if(t.length>Rft)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!wft.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}o(Sft,"assertValidBoundary");function NI(){return{name:XO,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,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?Sft(r):r=Cft(),t.headers.set("Content-Type",`${i};boundary=${r}`),await Ift(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(NI,"multipartPolicy");function vI(){return nI()}o(vI,"createEmptyPipeline");var ZMe=eI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),XM0=ZMe.logger;function va(t){return ZMe.createClientLogger(t)}o(va,"createClientLogger");var Fa=va("core-rest-pipeline");function tk(t={}){return uI({logger:Fa.info,...t})}o(tk,"logPolicy");var rk=pI;function nk(t={}){return lI(t)}o(nk,"redirectPolicy");var FI=_(require("node:os"),1),TI=_(require("node:process"),1);function eme(){return"User-Agent"}o(eme,"getHeaderName");async function tme(t){if(TI.default&&TI.default.versions){let e=`${FI.default.type()}${FI.default.release()};${FI.default.arch()}`,r=TI.default.versions;r.bun?t.set("Bun",`${r.bun}(${e})`):r.deno?t.set("Deno",`${r.deno}(${e})`):r.node&&t.set("Node",`${r.node}(${e})`)}}o(tme,"setPlatformSpecificData");var xI="1.22.2";function Lft(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Lft,"getUserAgentString");function rme(){return eme()}o(rme,"getUserAgentHeaderName");async function _I(t){let e=new Map;e.set("core-rest-pipeline",xI),await tme(e);let r=Lft(e);return t?`${t}${r}`:r}o(_I,"getUserAgentValue");var nme=rme(),sme="userAgentPolicy";function sk(t={}){let e=_I(t.userAgentPrefix);return{name:sme,async sendRequest(r,n){return r.headers.has(nme)||r.headers.set(nme,await e),n(r)}}}o(sk,"userAgentPolicy");var _s=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function ik(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new _s(s??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),n?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}n?.addEventListener("abort",p)})}o(ik,"createAbortablePromise");var Gft="The delay was aborted.";function VO(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return ik(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Gft})}o(VO,"delay");function Ql(t){if(Pd(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}o(Ql,"getErrorMessage");function ime(t){return Pd(t)}o(ime,"isError");function Tb(){return Qd()}o(Tb,"randomUUID");var St=Gd;var ome=Symbol("rawContent");function ak(t){return typeof t[ome]=="function"}o(ak,"hasRawContent");function ame(t){return ak(t)?t[ome]():t}o(ame,"getRawContent");var WI=XO;function ck(){let t=NI();return{name:WI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)ak(n.body)&&(n.body=ame(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(ck,"multipartPolicy");var uk=AI;function pk(){return dI()}o(pk,"decompressResponsePolicy");fun
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!fbt(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",J0("InvalidTag",A,sn(t,i))}let p=ubt(t,i);if(p===!1)return J0("InvalidAttr","Attributes for '"+u+"' have open quote.",sn(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=Xme(l,e);if(d===!0)n=!0;else return J0(d.err.code,d.err.msg,sn(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return J0("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",sn(t,a));if(r.length===0)return J0("InvalidTag","Closing tag '"+u+"' has not been opened.",sn(t,a));{let A=r.pop();if(u!==A.tagName){let d=sn(t,A.tagStartPos);return J0("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",sn(t,a))}r.length==0&&(s=!0)}}else return J0("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",sn(t,i));else{let A=Xme(l,e);if(A!==!0)return J0(A.err.code,A.err.msg,sn(t,i-l.length+A.err.line));if(s===!0)return J0("InvalidXml","Multiple possible root nodes found.",sn(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Hme(t,i);continue}else if(t[i+1]==="?"){if(i=Gme(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=Abt(t,i);if(A==-1)return J0("InvalidChar","char '&' is not expected.",sn(t,i));i=A}else if(s===!0&&!Ume(t[i]))return J0("InvalidXml","Extra text at the end",sn(t,i));t[i]==="<"&&i--}}else{if(Ume(t[i]))continue;return J0("InvalidChar","char '"+t[i]+"' is not expected.",sn(t,i))}if(n){if(r.length==1)return J0("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",sn(t,r[0].tagStartPos));if(r.length>0)return J0("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return J0("InvalidXml","Start tag expected.",1);return!0}o(JI,"validate");function Ume(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Ume,"isWhiteSpace");function Gme(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return J0("InvalidXml","XML declaration allowed only at the start of the document.",sn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Gme,"readPI");function Hme(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(Hme,"readCommentAndCDATA");var abt='"',cbt="'";function ubt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===abt||t[e]===cbt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(ubt,"readAttributeStr");var pbt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Xme(t,e){let r=$I(t,pbt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return J0("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",i3(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return J0("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",i3(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return J0("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",i3(r[s]));let i=r[s][2];if(!dbt(i))return J0("InvalidAttr","Attribute '"+i+"' is an invalid name.",i3(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return J0("InvalidAttr","Attribute '"+i+"' is repeated.",i3(r[s]))}return!0}o(Xme,"validateAttributeString");function lbt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(lbt,"validateNumberAmpersand");function Abt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lbt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(Abt,"validateAmpersand");function J0(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(J0,"getErrorObject");function dbt(t){return Tk(t)}o(dbt,"validateAttrName");function fbt(t){return Tk(t)}o(fbt,"validateTagName");function sn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(sn,"getLineNumberForPosition");function i3(t){return t.startIndex+t[1].length}o(i3,"getPositionFromMatch");var Vme={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},jme={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new Gn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new c3(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=Pb(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(s.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=Uk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${A}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=l}else if(p===63){let l=Gk(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&l.tagName==="?xml"||s.ignorePiTags)){let d=new Gn(l.tagName);d.add(s.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=Pb(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,l-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=Pb(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,d),c=l+2}else{let l=Gk(t,c,s.removeNSPrefix);if(!l){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,m=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=Uk(s.transformTagName,A,h,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),m=A!==h);let B=null,I={},w;w=_bt(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&m&&(B=this.buildAttributesMap(h,this.matcher,A),B&&(I=xbt(B,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=l.closeIndex;else if(s.unpairedTagsSet.has(A))c=l.closeIndex;else{let $=this.readStopNodeData(t,d,z+1);if(!$)throw new Error(`Unexpected end of ${d}`);c=$.i,x=$.tagContent}let Q=new Gn(A);B&&(Q[":@"]=B),Q.add(s.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:h}=Uk(s.transformTagName,A,h,s));let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let x=new Gn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),r=x}n="",c=z}}}else n+=t[c];return e.child},"parseXml"
`}),n}getCanonicalizedResourceString(e){let r=pR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=lR(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let u=c.toLowerCase();i[u]=s[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var S0=class extends Zd{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new d3(e,r,this)}computeHMACSHA256(e){return(0,Bge.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var O1=va("storage-common");var wi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(wi||(wi={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bMt=new _s("The operation was aborted."),f3=class extends Wa{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=uR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Hl(s.url,xu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(O1.info(`RetryPolicy:=====>Try=${n}${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(O1.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return O1.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return O1.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return O1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return O1.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ke.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(O1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case wi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case wi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return O1.info(`RetryPolicy:Delayfor${s}ms`),AR(s,n,bMt)}};var h3=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new f3(e,r,this.retryOptions)}};var MMt="storageBrowserPolicy";function Dge(){return{name:MMt,async sendRequest(t,e){return St||((t.method==="GET"||t.method==="HEAD")&&(t.url=Hl(t.url,xu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ke.COOKIE),t.headers.delete(ke.CONTENT_LENGTH)),e(t)}}}o(Dge,"storageBrowserPolicy");var mMt="StorageCorrectContentLengthPolicy";function qge(){function t(e){e.body&&(
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=pR(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=lR(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Wo(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(Dgt,"generateBlobSASQueryParameters20150405");function qgt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(qgt,"generateBlobSASQueryParameters20181109");function Igt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(Igt,"generateBlobSASQueryParameters20201206");function Rgt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(Rgt,"generateBlobSASQueryParametersUDK20181109");function wgt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(wgt,"generateBlobSASQueryParametersUDK20200210");function Sgt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(Sgt,"generateBlobSASQueryParametersUDK20201206");function Ngt(t,e){if(t=c2(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",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(Ngt,"generateBlobSASQueryParametersUDK20250705");function a2(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(a2,"getCanonicalName");function c2(t){let e=t.version?t.version:bR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(c2,"SASSignatureValuesSanityCheckAndAutofill");var I3=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Tb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>Re(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Re(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};tM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var A2=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};A2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var W3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var kzt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},$G=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);W(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function kOe(t,e,r){return kzt(this,void 0,void 0,function*(){var n;let s=new Hu(t),i=s.getBlockBlobClient(),a=new $G((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new O5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw yt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(kOe,"uploadCacheArchiveSDK");var GOe=_(require("buffer"),1),nc=_(require("fs"),1),HOe=_(require("stream"),1),XOe=_(require("util"),1);var E5=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};function y5(t){return t?t>=200&&t<300:!1}o(y5,"isSuccessStatusCode");function Uzt(t){return t?t>=500:!0}o(Uzt,"isServerErrorStatusCode");function Gzt(t){return t?[w0.BadGateway,w0.ServiceUnavailable,w0.GatewayTimeout].includes(t):!1}o(Gzt,"isRetryableStatusCode");function Hzt(t){return E5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Hzt,"sleep");function UOe(t,e,r){return E5(this,arguments,void 0,function*(n,s,i,a=jq,c=$q,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield s()}catch(m){u&&(A=u(m)),h=!0,p=m.message}if(A&&(d=i(A),!Uzt(d)))return A;if(d&&(h=Gzt(d),p=`Cache service responded with ${d}`),T(`${n} - Attempt ${l} of ${a} failed with error: ${p}`),!h){T(`${n} - Error is not retryable`);break}yield Hzt(c),l++}throw Error(`${n} failed: ${p}`)})}o(UOe,"retry");function L3(t,e){return E5(this,arguments,void 0,function*(r,n,s=jq,i=$q){return yield UOe(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Ra)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(L3,"retryTypedResponse");function rM(t,e){return E5(this,arguments,void 0,function*(r,n,s=jq,i=$q){return yield UOe(r,n,a=>a.message.statusCode,s,i)})}o(rM,"retryHttpClientResponse");var Ti=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])T(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(Zzt,"printCachesListForDiagnostics");function ZG(t,e,r){return jn(this,void 0,void 0,function*(){let n=new r3e.URL(t),s=YOe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield jOe(t,e,s):s.concurrentBlobDownloads?yield VOe(t,e,s):yield B5(t,e):yield B5(t,e)})}o(ZG,"downloadCache");function s3e(t,e,r){return jn(this,void 0,void 0,function*(){let n=KG(),s=Db(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield L3("reserveCache",()=>jn(this,void 0,void 0,function*(){return n.postJson(P3("caches"),i)}))})}o(s3e,"reserveCache");function t3e(t,e){return`bytes${t}-${e}/*`}o(t3e,"getContentRange");function eOt(t,e,r,n,s){return jn(this,void 0,void 0,function*(){T(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${t3e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":t3e(n,s)},a=yield rM(`uploadChunk(start:${n},end:${s})`,()=>jn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!y5(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}o(eOt,"uploadChunk");function tOt(t,e,r,n){return jn(this,void 0,void 0,function*(){let s=Ia(r),i=P3(`caches/${e.toString()}`),a=nM.openSync(r,"r"),c=YG(n),u=OP("uploadConcurrency",c.uploadConcurrency),p=OP("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];T("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>jn(this,void 0,void 0,function*(){for(;A<s;){let d=Math.min(s-A,p),h=A,m=A+d-1;A+=p,yield eOt(t,i,()=>nM.createReadStream(r,{fd:a,start:h,end:m,autoClose:!1}).on("error",z=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${z.message}`)}),h,m)}})))}finally{nM.closeSync(a)}})}o(tOt,"uploadFile");function rOt(t,e,r){return jn(this,void 0,void 0,function*(){let n={size:r};return yield L3("commitCache",()=>jn(this,void 0,void 0,function*(){return t.postJson(P3(`caches/${e.toString()}`),n)}))})}o(rOt,"commitCache");function eH(t,e,r,n){return jn(this,void 0,void 0,function*(){if(YG(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kOe(r,e,n)}else{let i=KG();T("Upload cache"),yield tOt(i,t,e,n),T("Commiting cache");let a=Ia(e);W(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield rOt(i,t,a);if(!y5(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);W("Cache saved successfully")}})}o(eH,"saveCache");var K3e=_(H3e(),1),t1=_(e1(),1),Us=_(e1(),1),M2=_(e1(),1),m2=_(e1(),1),g2=_(e1(),1);var jH=_(e1(),1),$H=_(e1(),1),$3e=_(e1(),1),Y3e=_(e1(),1),J3e=_(e1(),1);var HH=_(e1(),1),XH=_(e1(),1),X3e=_(e1(),1),V3e=_(e1(),1),j3e=_(e1(),1);var VH=class extends j3e.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,V3e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,X3e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${u})for${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?XH.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,HH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Aw=new VH;var YH=class extends J3e.Mess
`));let n=yield lX(r,"create");yield AX(n,t)})}o(fX,"createTar");var zM=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},Po=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},gM=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},bw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function rEe(t){if(!t||t.length===0)throw new Po("Path Validation Error: At least one directory or file path is required")}o(rEe,"checkPaths");function hX(t){if(t.length>512)throw new Po(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Po(`KeyValidationError:${t}cannotcontaincommas.`)}o(hX,"checkKey");function bX(){return Q3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(bX,"isFeatureAvailable");function nEe(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){let p=Q3();return T(`Cacheserviceversion:${p}`),rEe(s),p==="v2"?yield MEt(s,i,a,c,u):yield bEt(s,i,a,c,u)})}o(nEe,"restoreCache");function bEt(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)hX(d);let l=yield WO(),A="";try{let d=yield n3e(p,s,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;A=nE.join(yield xO(),_l(l)),T(`ArchivePath:${A}`),yield ZG(d.archiveLocation,A,c),qu()&&(yield rE(A,l));let h=Ia(A);return W(`CacheSize:~${Math.round(h/(1024*1024))}MB(${h}B)`),yield dX(A,l),W("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Po.name)throw d;h instanceof Ra&&typeof h.statusCode=="number"&&h.statusCode>=500?fb(`Failedtorestore:${d.message}`):yt(`Failedtorestore:${d.message}`)}finally{try{yield _O(A)}catch(d){T(`Failedtodeletearchive:${d}`)}}})}o(bEt,"restoreCacheV1");function MEt(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)hX(A);let l="";try{let A=pX(),d=yield WO(),h={key:i,restoreKeys:a,version:Db(s,d,u)},m=yield A.GetCacheEntryDownloadURL(h);if(!m.ok){T(`Cachenotfoundforversion${h.version}ofkeys:${p.join(", ")}`);return}if(h.key!==m.matchedKey?W(`Cachehitforrestore-key:${m.matchedKey}`):W(`Cachehitfor:${m.matchedKey}`),c?.lookupOnly)return W("Lookup only - skipping download"),m.matchedKey;l=nE.join(yield xO(),_l(d)),T(`Archivepath:${l}`),T(`Startingdownloadofarchiveto:${l}`),yield ZG(m.signedDownloadUrl,l,c);let C=Ia(l);return W(`CacheSize:~${Math.round(C/(1024*1024))}MB(${C}B)`),qu()&&(yield rE(l,d)),yield dX(l,d),W("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Po.name)throw A;d instanceof Ra&&typeof d.statusCode=="number"&&d.statusCode>=500?fb(`Failedtorestore:${A.message}`):yt(`Failedtorestore:${A.message}`)}finally{try{l&&(yield _O(l))}catch(A){T(`Failedtodeletearchive:${A}`)}}})}o(MEt,"restoreCacheV2");function MX(t,e,r){return zM(this,arguments,void 0,function*(n,s,i,a=!1){let c=Q3();return T(`Cacheserviceversion:${c}`),rEe(n),hX(s),c==="v2"?yield gEt(n,s,i,a):yield mEt(n,s,i,a)})}o(MX,"saveCache");function mEt(t,e,r){return zM(this,arguments,void 0,fu
`)}o(dyt,"_buildMessageForResponseErrors");var fyt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(dyt(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},hyt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],byt=["query","method","url"],GEe=/\/api\/v3\/?$/;function Myt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(byt.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>hyt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return GEe.test(i)&&(s.url=i.replace(GEe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new fyt(s,c,a.data)}return a.data.data})}o(Myt,"graphql");function wX(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>Myt(r,s,i),"newApi"),{defaults:wX.bind(null,r),endpoint:r.endpoint})}o(wX,"withDefaults");var Cv0=wX(aE,{headers:{"user-agent":`octokit-graphql.js/${Ayt}${tA()}`},method:"POST",url:"/graphql"});function HEe(t){return wX(t,{method:"POST",url:"/graphql"})}o(HEe,"withCustomRequest");var SX="(?:[a-zA-Z0-9_-]+)",XEe="\\.",VEe=new RegExp(`^${SX}${XEe}${SX}${XEe}${SX}$`),myt=VEe.test.bind(VEe);async function gyt(t){let e=myt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(gyt,"auth");function zyt(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}o(zyt,"withAuthorizationPrefix");async function Oyt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=zyt(t),e(s)}o(Oyt,"hook");var jEe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(gyt.bind(null,e),{hook:Oyt.bind(null,e)})},"createTokenAuth2");var NX="7.0.6";var $Ee=o(()=>{},"noop"),Eyt=console.warn.bind(console),yyt=console.error.bind(console);function Cyt(t={}){return typeof t.debug!="function"&&(t.debug=$Ee),typeof t.info!="function"&&(t.info=$Ee),typeof t.warn!="function"&&(t.warn=Eyt),typeof t.error!="function"&&(t.error=yyt),t}o(Cyt,"createLogger");var YEe=`octokit-core.js/${NX}${tA()}`,Rw=class{static{o(this,"Octokit")}static VERSION=NX;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new yEe.Collection,n={baseUrl:aE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent}${YEe}`:YEe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=aE.defaults(n),this.graphql=HEe(this.request).defaults(n),this.log=Cyt(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=jEe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,encoding:p,from_line:l,ltrim:A,max_record_size:d,raw:h,relax_quotes:m,rtrim:z,skip_empty_lines:C,to:E,to_line:B}=this.options,{comment:I,escape:w,quote:N,record_delimiter:x}=this.options,{bomSkipped:Q,previousBuf:$,rawBuffer:me,escapeIsQuote:De}=this.state,Z;if($===void 0)if(n===void 0){a();return}else Z=n;else $!==void 0&&n===void 0?Z=$:Z=Buffer.concat([$,n]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(Z.length<3){if(s===!1){this.state.previousBuf=Z;return}}else{for(let J in xM)if(xM[J].compare(Z,0,xM[J].length)===0){let Ne=xM[J].length;this.state.bufBytesStart+=Ne,Z=Z.slice(Ne);let re=HV({...this.original_options,encoding:J});for(let ze in re)this.options[ze]=re[ze];({comment:I,escape:w,quote:N}=this.options);break}this.state.bomSkipped=!0}let qe=Z.length,Y;for(Y=0;Y<qe&&!this.__needMoreData(Y,qe,s);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,a();return}this.state.quoting===!1&&x.length===0&&this.__autoDiscoverRecordDelimiter(Z,Y)&&(x=this.options.record_delimiter);let J=Z[Y];if(h===!0&&me.append(J),(J===sDt||J===iDt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(w!==null&&this.state.quoting===!0&&this.__isEscape(Z,Y,J)&&Y+w.length<qe)if(De){if(this.__isQuote(Z,Y+w.length)){this.state.escaping=!0,Y+=w.length-1;continue}}else{this.state.escaping=!0,Y+=w.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Z,Y))if(this.state.quoting===!0){let ze=Z[Y+N.length],at=z&&this.__isCharTrimable(Z,Y+N.length),Lt=I!==null&&this.__compareBytes(I,Z,Y+N.length,ze),Qe=this.__isDelimiter(Z,Y+N.length,ze),s0=x.length===0?this.__autoDiscoverRecordDelimiter(Z,Y+N.length):this.__isRecordDelimiter(ze,Z,Y+N.length);if(w!==null&&this.__isEscape(Z,Y,J)&&this.__isQuote(Z,Y+w.length))Y+=w.length-1;else if(!ze||Qe||s0||Lt||at){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(m===!1){let Rt=this.__error(new Ot("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(ze)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Rt!==void 0)return Rt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let ze=this.__infoField(),at=Object.keys(xM).map(Qe=>xM[Qe].equals(this.state.field.toString())?Qe:!1).filter(Boolean)[0],Lt=this.__error(new Ot("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(ze.column)}atline${ze.lines},valueis${JSON.stringify(this.state.field.toString(p))}`,at?`(${at}bom)`:void 0],this.options,ze,{field:this.state.field}));if(Lt!==void 0)return Lt}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(J,Z,Y);if(ze!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=ze-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let Qe=this.__onField();if(Qe!==void 0)return Qe;this.info.bytes=this.state.bufBytesStart+Y+ze;let s0=this.__onRecord(i);if(s0!==void 0)return s0;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=ze-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,Z,Y,J)!==0){this.state.commenting=!0;continue}let at=this.__isDelimite
Moreinfo:${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,m=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),m=!0;break}m||T(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${p}:${A}`)}return c}};var w2=_(require("fs"),1),jV=_(require("path"),1);var zS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.iidFilename=`build-iidfile-${Bt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Bt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([h])=>!r.has(h)),i=Bt.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||un.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Bt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ct.serverURL}/${un.repo.owner}/${un.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,l=e?.format;if(!l){if(l="fragment",s.length>0)l="query";else if(Bt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=un.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof un.payload.pull_request?.head?.sha=="string"?un.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],m=i?d:u;m&&h.push(`checksum=${m}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of s)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return jV.default.join(zt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(w2.default.existsSync(e))return w2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return jV.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!w2.default.existsSync(e))return;let r=w2.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!w2.default.existsSync(s))throw new Error(`secretfile${s}notfound`);return[n,s]}let i=zt.tmpName({tmpdir:zt.tmpDir()});return w2.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Rs(e);if(!r)return r;try{return VAe(e)?`builder-id=${Ct.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ct.workflowRunURL(!0)}`;let r=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ct.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?s=u[1]:u[0]==="ghtoken"&&(i=u[1])}return n==="gha"&&(s||(e=`${e},repository=${Ct.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExp
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=js(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=js(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Bt.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Ea(i),[s,i]}};var $V=_(require("fs"),1),C4e=_(require("path"),1);var OS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.metadataFilename=`bake-metadata-${Bt.generateRandomString()}.json`}getMetadataFilePath(){return C4e.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!$V.default.existsSync(e))return;let r=$V.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!Bt.isValidRef(u)){i.push(u);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=u}}s&&n.push(s);for(let u of i)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await _e.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Bt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().
`).map(i=>i.trim()).filter(i=>i.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Txe=require("crypto"),jc=_(require("fs"),1),HA=_(require("path"),1);var PC=_(qE(),1),$c=_(Cve(),1),xxe=_(Lte(),1),Eg=_(Ixe(),1);var Q0e=_(qE(),1);var wxe=_(Ss(),1);var Rxe="application/vnd.oci.empty.v1+json";var Xp=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await _e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailableerror:${r}`),!1));return T(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await _e.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await _e.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Cosign.versionSatisfies false: undefined version"),!1;let s=wxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`Cosign.versionSatisfies${n}statisfies${e}:${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===Q0e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Rxe&&typeof p.digest=="string"&&(n=p.digest)}if(!s&&u&&u.mediaType===Q0e.BUNDLE_V03_MEDIA_TYPE&&(s=u),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var P0e=_(require("fs"),1);var DT=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new e0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=i.get(c);return u?u.platform?.os===s.os&&u.platform?.architecture===s.architecture&&(u.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=zt.tmpName({tmpdir:zt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&s.push(u);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,n){return await _e.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Sxe="application/vnd.in-toto+json";var Nxe="https://fulcio.sigstore.dev",vxe="https://rekor.sigstore.dev",Fxe="https://timestamp.sigstore.dev",Tf="https://search.sigstore.dev";var nXt="slsaprovenance1",XA=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Xp,this.imageTools=e?.imageTools||new DT}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=this.signingEndpoints(e.noTransparencyLog);W(`UsingSigstoresigningendpoint:${n.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await ur("Creating Sigstore protobuf signing config",async()=>{let a=zt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:zt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];s&&c.push("--no-default-rekor=true"),await _e.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(jc.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),s&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await ur(`Signingattestationmanifest${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];W(`[command]${this.cosign.binPath}${[...l,p].join(" ")}`);let A=await _e.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Xp.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let m=d.errors.map(z=>`-[${z.code}]${z.message}:${z.detail}`).join(`
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosignverifycommandfailedwith:${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}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 n=this.signingEndpoints(e.noTransparencyLog);W(`UsingSigstoresigningendpoint:${n.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let i of Object.keys(s))await ur(`Signing${i}`,async()=>{let a=s[i],c=HA.default.join(HA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){yt(`Nosubjectsfoundinprovenance${i},skipsigning.`);return}let p=await t.signPayload({data:a,type:Sxe},n),l=t.parseBundle(p);W("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];W(`-${A.name}(${d}:${h})`)}l.tlogID&&W(`AttestationsignatureuploadedtoRekortransparencylog:${Tf}?logIndex=${l.tlogID}`),W(`WritingSigstorebundleto:${c}`),jc.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,subjects:u}})}catch(n){throw new Error(`SigningBuildKitprovenanceblobsfailed:${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=HA.default.dirname(s);await ur(`Verifyingsignaturebundle${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=HA.default.join(a,c.name);W(`Verifyingsignedartifact${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??nXt];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await _e.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);n[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){W("Verifying keyless verification bundle signature");let s=JSON.parse(jc.default.readFileSync(r,"utf-8")),i=(0,PC.bundleFromJSON)(s);W("Fetching Sigstore TUF trusted root metadata");let a=await xxe.getTrustedRoot(),c=(0,Eg.toTrustMaterial)(a);try{W("Verifying artifact signature");let u=(0,Eg.toSignedEntity)(i,jc.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let m=p.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(n.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${m}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new Eg.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return T(`Sigstore.verifyArtifactsigner:${JSON.stringify(h)}`),{payload:s,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failedtoverifyartifactsignature:${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:Nxe,rekorURL:e?void 0:vxe,tsaServerURL:Fxe}}static noTransparencyLog(e){return e??Ct.context.payload.repository?.private}static getProvenanceBlobs(e){let r=HA.default.join(e.localExportDir,"provenance.json");if(jc.default.existsSync(r))return{[r]:jc.default.readFileSync(r)};let n=jc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>jc.default.existsSync(HA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=
`,bakeTarget:Rs("bake-target")||"docker-metadata-action",githubToken:Rs("github-token")}}o(Pxe,"getInputs");async function kxe(t,e){switch(t){case"workflow":return await sXt(e);case"git":return await iXt();default:throw new Error(`Invalidcontextsource:${t}`)}}o(kxe,"getContext");async function sXt(t){let e=Ct.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await oXt(e.sha,t),...e}}o(sXt,"getContextFromWorkflow");async function iXt(){let t=await ep.context();return{commitDate:await ep.commitDate(t.sha),...t}}o(iXt,"getContextFromGit");async function oXt(t,e){let r=Ct.context.payload;if(r.commits){let n=r.commits.find(s=>s.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return T(`FailedtogetcommitdatefromGitHubAPI:${n.message}`),new Date}}o(oXt,"getCommitDateFromWorkflow");var nl=_(kV(),1),WHe=_(require("fs"),1),LHe=_(require("path"),1),L4=_(jxe(),1),ci=_(RHe(),1),Vg=_(Ss(),1);var ut=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of s)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var W4=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var Fx=o(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(W4(s)){if(typeof s.name!="string")throw new ut("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property"name"isrequiredatposition${r}`,"when column is an object literal"]);e[r]=s}else throw new ut("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got${JSON.stringify(s)}atposition${r}`])}return e},"normalize_columns_array");var dne=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},fne=dne;var wHe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let i=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&i.length===1&&i[0]===63||n.push(i),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Arra
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:l,from_line:A,ltrim:d,max_record_size:h,raw:m,relax_quotes:z,rtrim:C,skip_empty_lines:E,to:B,to_line:I}=this.options,{comment:w,escape:N,quote:x,record_delimiter:Q}=this.options,{bomSkipped:$,delimiterDiscovered:me,delimiterBufPrevious:De,rawBuffer:Z,escapeIsQuote:qe}=this.state;if(!me&&p){let ze;if(De===void 0?ze=n:De!==void 0&&n===void 0?ze=De:ze=Buffer.concat([De,n]),n=void 0,s||ze.length>p.size)this.options.delimiter=[Buffer.from(NHe(ze,this.options.delimiter_auto))],this.state.previousBuf=ze,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ze;return}}let{previousBuf:Y}=this.state,J;if(Y===void 0)if(n===void 0){a();return}else J=n;else Y!==void 0&&n===void 0?J=Y:J=Buffer.concat([Y,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(J.length<3){if(s===!1){this.state.previousBuf=J;return}}else{for(let ze in Xg)if(Xg[ze].compare(J,0,Xg[ze].length)===0){let at=Xg[ze].length;this.state.bufBytesStart+=at,J=J.slice(at);let Lt=Hg({...this.original_options,encoding:ze});for(let Qe in Lt)this.options[Qe]=Lt[Qe];({comment:w,escape:N,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ne=J.length,re;for(re=0;re<Ne&&!this.__needMoreData(re,Ne,s);re++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(J,re)&&(Q=this.options.record_delimiter);let ze=J[re];if(m===!0&&Z.append(ze),(ze===Yn0||ze===Jn0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(J,re,ze)&&re+N.length<Ne)if(qe){if(this.__isQuote(J,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(J,re))if(this.state.quoting===!0){let Qe=J[re+x.length],s0=C&&this.__isCharTrimable(J,re+x.length),Rt=w!==null&&this.__compareBytes(w,J,re+x.length,Qe),ce=this.__isDelimiter(J,re+x.length,Qe),ui=Q.length===0?this.__autoDiscoverRecordDelimiter(J,re+x.length):this.__isRecordDelimiter(Qe,J,re+x.length);if(N!==null&&this.__isEscape(J,re,ze)&&this.__isQuote(J,re+N.length))re+=N.length-1;else if(!Qe||ce||ui||Rt||s0){this.state.quoting=!1,this.state.wasQuoting=!0,re+=x.length-1;continue}else if(z===!1){let Sn=this.__error(new ut("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(Qe)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Sn!==void 0)return Sn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),re+=x.length-1}else if(this.state.field.length!==0){if(z===!1){let Qe=this.__infoField(),s0=Object.keys(Xg).map(ce=>Xg[ce].equals(this.state.field.toString())?ce:!1).filter(Boolean)[0],Rt=this.__error(new ut("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(Qe.column)}atline${Qe.lines},valueis${JSON.stringify(this.state.field.toString(l))}`,s0?`(${s0}bom)`:void 0],this.options,Qe,{field:this.state.field}));if(Rt!==void 0)return Rt}}else{this.state.quoting=!0,re+=x.length-1;continue}if(this.state.quoting===!1){let Qe=this.__isRecordDelimiter(ze,J,re);if(Qe!==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)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),re+=Qe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=Qe-1;continue}this.info.bytes=this.state.bufBytesStart+r
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[s+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Yf=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=Tx(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");function THe(t){let e=[];if(t.length==1){let r=!1,n=Yf(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let i=s.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return FHe(e)}e=[];for(let r of t){let n={name:"",enable:!0},s=Yf(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(n.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(n)}return FHe(e)}o(THe,"Transform");function FHe(t){Fd("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return Td(),t}o(FHe,"output");var bne=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(bne||{}),xx=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(xx||{}),_x=(r=>(r.Short="short",r.Long="long",r))(_x||{}),hne=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},Zn0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function xHe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(es0(n));let r=e.sort((n,s)=>Number(n.attrs.priority)<Number(s.attrs.priority)?1:Number(n.attrs.priority)>Number(s.attrs.priority)?-1:0);Fd("Processing tags input");for(let n of r)W(n.toString());return Td(),r}o(xHe,"Transform");function es0(t){let e=Yf(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new hne;for(let n of e){let s=n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(s.length==1)r.attrs.value=s[0];else{let i=s[0].toLowerCase(),a=s[1];switch(i){case"type":{if(!Object.values(bne).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missingpatternattributefor${t}`);Object.prototype.hasOwnProp