varyit=Object.create;varPG=Object.defineProperty;varEit=Object.getOwnPropertyDescriptor;varbit=Object.getOwnPropertyNames;varwit=Object.getPrototypeOf,Cit=Object.prototype.hasOwnProperty;varIit=(t,e)=>()=>(t&&(e=t(t=0)),e);varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Gde=(t,e)=>{for(varrine)PG(t,r,{get:e[r],enumerable:!0})},Sit=(t,e,r,i)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofbit(e))!Cit.call(t,n)&&n!==r&&PG(t,n,{get:()=>e[n],enumerable:!(i=Eit(e,n))||i.enumerable});returnt};varz=(t,e,r)=>(r=t!=null?yit(wit(t)):{},Sit(e||!t||!t.__esModule?PG(r,"default",{value:t,enumerable:!0}):r,t));varJde=g(j0=>{"use strict";vareCr=require("net"),Tit=require("tls"),UG=require("http"),Vde=require("https"),Nit=require("events"),tCr=require("assert"),Dit=require("util");j0.httpOverHttp=Oit;j0.httpsOverHttp=Pit;j0.httpOverHttps=kit;j0.httpsOverHttps=Qit;functionOit(t){vare=newhd(t);returne.request=UG.request,e}functionPit(t){vare=newhd(t);returne.request=UG.request,e.createSocket=$de,e.defaultPort=443,e}functionkit(t){vare=newhd(t);returne.request=Vde.request,e}functionQit(t){vare=newhd(t);returne.request=Vde.request,e.createSocket=$de,e.defaultPort=443,e}functionhd(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||UG.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(vara=Wde(n,s,o),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Dit.inherits(hd,Nit.EventEmitter);hd.prototype.addRequest=function(e,r,i,n){vars=this,o=qG({request:e},s.options,Wde(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){s.emit("free",a,o)}functionl(u){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};hd.prototype.createSocket=function(e,r){vari=this,n={};i.sockets.push(n);vars=qG({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+newBuffer(s.proxyAuth).toString("base64")),am("making CONNECT request");varo=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();functiona(h){h.upgrade=!0}functionc(h,f,d){process.nextTick(function(){l(h,f,d)})}functionl(h,f,d){if(o.removeAllListeners(),f.removeAllListeners(),h.statusCode!==200){am("tunneling socket could not be established, statusCode=%d",h.statusCode),f.destroy();varp=newError("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}if(d.length>0){am("got illegal response body from proxy"),f.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),i.removeSocket(n);return}returnam("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=f,r(f)}functionu(h){o.removeAllListeners(),am(`tunneling socket could not be established, cause=%s
`);f.push(A),s+=A.byteLength,p&&(s=null),n=t,i=async function*(){for(let E of f)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(rAe(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(HB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:eat(t)}if((typeof n=="string"||HB.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!oAe(r)){let f=new Uint8Array(u);f.byteLength&&l.enqueue(f)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function dat(t,e=!1){return t instanceof ReadableStream&&(zH(!HB.isDisturbed(t),"The body has already been consumed."),zH(!t.locked,"The stream is locked.")),lAe(t,e)}function pat(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function mat(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Aat(t){return{blob(){return nb(this,r=>{let i=nAe(this);return i===null?i="":i&&(i=uat(i)),new aat([r],{type:i})},t)},arrayBuffer(){return nb(this,r=>new Uint8Array(r).buffer,t)},text(){return nb(this,sAe,t)},json(){return nb(this,yat,t)},formData(){return nb(this,r=>{let i=nAe(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=hat(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new iAe;return s[sb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new iAe;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return nb(this,r=>new Uint8Array(r),t)}}}function gat(t){Object.assign(t.prototype,Aat(t))}async function nb(t,e,r){if(oat.brandCheck(t,r),uAe(t))throw new TypeError("Body is unusable: Body has already been read");mat(t[sb]);let i=iat(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[sb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await nat(t[sb].body,s,n),i.promise)}function uAe(t){let e=t[sb].body;return e!=null&&(e.stream.locked||HB.isDisturbed(e.stream))}function yat(t){return JSON.parse(sAe(t))}function nAe(t){let e=t[sb].headersList,r=sat(e);return r==="failure"?null:r}hAe.exports={extractBody:lAe,safelyExtractBody:dat,cloneBody:pat,mixinBody:gat,streamRegistry:cAe,hasFinalizationRegistry:aAe,bodyUnusable:uAe}});var CAe=g((NCr,wAe)=>{"use strict";var St=require("node:assert"),Pt=rr(),{channels:fAe}=$0(),$H=xH(),{RequestContentLengthMismatchError:Dg,ResponseContentLengthMismatchError:Eat,RequestAbortedError:yAe,HeadersTimeoutError:bat,HeadersOverflowError:wat,SocketError:L2,InformationalError:ab,BodyTimeoutError:Cat,HTTPParserError:Iat,ResponseExceededMaxSizeError:Sat}=xr(),{kUrl:EAe,kReset:Aa,kClient:KH,kParser:Qi,kBlocking:VB,kRunning:Ys,kPending:Bat,kSize:dAe,kWriting:um,kQueue:ru,kNoRef:jB,kKeepAliveDefaultTimeout:vat,kHostHeader:_at,kPendingIdx:xat,kRunningIdx:Vc,kError:$c,kPipelining:k2,kSocket:cb,kKeepAliveTimeoutValue:M2,kMaxHeadersSize:WH,kKeepAliveMaxTimeout:Rat,kKeepAliveTimeoutThreshold:Tat,kHeadersTimeout:Nat,kBodyTimeout:Dat,kStrictContentLength:XH,kMaxRequests:pAe,kCounter:Oat,kMaxResponseSize:Pat,kOnError:kat,kResume:lm,kHTTPContext:bAe}=Ei(),th=cme(),Qat=Buffer.alloc(0),D2=Buffer[Symbol.species],O2=Pt.addListener,Lat=Pt.removeAllListeners,JH;async function Mat(){let t=process.env.JEST_WORKER_ID?NH():void 0,e;try{e=await WebAssembly.compile(hme())}catch{e=await WebAssembly.compile(t||NH())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{St(kn.ptr===r);let s=i-ih+rh.byteOffset;return kn.onStatus(new D2(rh.buffer,s,n))||0},wasm_on_message_begin:r=>(St(kn.ptr===r),kn.onMessageBegin()||0),wasm_on_he
`}return fAe.sendHeaders.hasSubscribers&&fAe.sendHeaders.publish({request:e,headers:A,socket:d}),!c||f===0?AAe(p,null,t,e,d,u,A,h):Pt.isBuffer(c)?AAe(p,c,t,e,d,u,A,h):Pt.isBlobLike(c)?typeof c.stream=="function"?gAe(p,c.stream(),t,e,d,u,A,h):zat(p,c,t,e,d,u,A,h):Pt.isStream(c)?jat(p,c,t,e,d,u,A,h):Pt.isIterable(c)?gAe(p,c,t,e,d,u,A,h):St(!1),!0}function jat(t,e,r,i,n,s,o,a){St(s!==0||r[Ys]===0,"stream body cannot be pipelined");let c=!1,l=new F2({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(A){Pt.destroy(this,A)}},h=function(){c||e.resume&&e.resume()},f=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let p=new yAe;queueMicrotask(()=>d(p))}},d=function(p){if(!c){if(c=!0,St(n.destroyed||n[um]&&r[Ys]<=1),n.off("drain",h).off("error",d),e.removeListener("data",u).removeListener("end",d).removeListener("close",f),!p)try{l.end()}catch(A){p=A}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Pt.destroy(e,p):Pt.destroy(e)}};e.on("data",u).on("end",d).on("error",d).on("close",f),e.resume&&e.resume(),n.on("drain",h).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}function AAe(t,e,r,i,n,s,o,a){try{e?Pt.isBuffer(e)&&(St(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
`,"latin1"):(St(s===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),i.onRequestSent(),r[lm]()}catch(c){t(c)}}async function zat(t,e,r,i,n,s,o,a){St(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Dg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[Aa]=!0),r[lm]()}catch(c){t(c)}}async function gAe(t,e,r,i,n,s,o,a){St(s!==0||r[Ys]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let f=c;c=null,f()}}let u=()=>new Promise((f,d)=>{St(c===null),n[$c]?d(n[$c]):c=f});n.on("close",l).on("drain",l);let h=new F2({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let f of e){if(n[$c])throw n[$c];h.write(f)||await u()}h.end()}catch(f){h.destroy(f)}finally{n.off("close",l).off("drain",l)}}var F2=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[um]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[$c])throw r[$c];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(s[XH])throw new Dg;process.emitWarning(new Dg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Aa]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),r!==null&&n!==r){if(i[XH])throw new Dg;process.emitWarning(new Dg)}e[Qi].timeout&&e[Qi].timeoutType===lb&&e[Qi].timeout.refresh&&e[Qi].timeout.refresh(),i[lm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[um]=!1,e&&(St(i[Ys]<=1,"pipeline should only contain this request"),n(e))}};wAe.exports=Uat});var TAe=g((DCr,RAe)=>{"use strict";var Wc=require("node:assert"),{pipeline:Vat}=require("node:stream"),lr=rr(),{RequestContentLengthMismatchError:r6,RequestAbortedError:IAe,SocketError:$B,InformationalError:i6}=xr(),{kUrl:U2,kReset:G2,kClient:ub,kRunning:H2,kPending:$at,kQueue:hm,kPendingIdx:n6,kRunningIdx:iu,kError:su,kSocket:Kn,kStrictContentLength:Wat,kOnError:s6,kMaxConcurrentStreams:xAe,kHTTP2Session:nu,kResume:fm,kSize:Jat,kHTTPContext:Yat}=Ei(),gd=Symbol("open streams"),SAe,BAe=!1,q2;try{q2=require("node:http2")}catch{q2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Kat,HTTP2_HEADER_METHOD:Xat,HTTP2_HEADER_PATH:Zat,HTTP2_HEADER_SCHEME:ect,HTTP2_HEADER_CONTENT_LENGTH:tct,HTTP2_HEADER_EXPECT:rct,HTTP2_HEADER_STATUS:ict}}=q2;function nct(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function sct(t,e){t[Kn]=e,BAe||(BAe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=q2.connect(t[U2],{createConnection:()=>e,peerMaxConcurrentStreams:t[xAe]});r[gd]=0,r[ub]=t,r[Kn]=e,lr.addListener(r,"error",act),lr.addListener(r,"frameError",cct),lr.addListener(r,"end",lct),lr.addListener(r,"goaway",uct),lr.addListener(r,"close",function(){let{[ub]:n}=this,{[Kn]:s}=n,o=this[Kn][su]||this[su]||new $B("closed",lr.getSocketInfo(s));if(n[nu]=null,n.destroyed){Wc(n[$at]===0);let a=n[hm].splice(n[iu]);for(let c=0;c<a.length;c++){let l=a[c];lr.errorRequest(n,l,o)}}}),r.unref(),t[nu]=r,e[nu]=r,lr.addListener(e,"error",function(n){Wc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[su]=n,this[ub][s6](n)}),lr.addListener(e,"end",function(){lr.destroy(this,new $B("other side closed",lr.getSocketInfo(this)))}),lr.addListener(e,"close",function(){let n=this[su]||new $B("closed",lr.getSocketInfo(this));t[Kn]=null,this[nu]!=null&&this[nu].destroy(n),t[n6]=t[iu],Wc(t[H2]===0),t.emit("disconnect",t[U2],[t],n),t[fm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return fct(t,...n)},resume(){oct(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function oct(t){let e=t[Kn];e?.destroyed===!1&&(t[Jat]===0&&t[xAe]===0?(e.unref(),t[nu].unref()):(e.ref(),t[nu].ref()))}function act(t){Wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Kn][su]=t,this[ub][s6](t)}function cct(t,e,r){if(r===0){let i=new i6(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Kn][su]=i,this[ub][s6](i)}}function lct(){let t=new $B("other side closed",lr.getSocketInfo(this[Kn]));this.destroy(t),lr.destroy(this[Kn],t)}function uct(t){let e=this[su]||new $B(`HTTP/2: "GOAWAY" frame received with code ${t}`,lr.getSocketInfo(this)),r=this[ub];if(r[Kn]=null,r[Yat]=null,this[nu]!=null&&(this[nu].destroy(e),this[nu]=null),lr.destroy(this[Kn],e),r[iu]<r[hm].length){let i=r[hm][r[iu]];r[hm][r[iu]++]=null,lr.errorRequest(r,i,e),r[n6]=r[iu]}Wc(r[H2]===0),r.emit("disconnect",r[U2],[r],e),r[fm]()}function hct(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fct(t,e){let r=t[nu],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lr.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let I=0;I<l.length;I+=2){let D=l[I+0],M=l[I+1];if(Array.isArray(M))for(let T=0;T<M.length;T++)h[D]?h[D]+=`,${M[T]}`:h[D]=M[T];else h[D]=M}let f,{hostname:d,port:p}=t[U2];h[Kat]=s||`${d}${p?`:${p}`:""}`,h[Xat]=i;let A=I=>{e.aborted||e.completed||(I=I||new IAe,lr.errorRequest(t,e,I),f!=null&&lr.destroy(f,I),lr.destroy(u,I),t[hm][t[iu]++]=null,t[fm]())};try{e.onConnect(A)}catch(I){lr.errorRequest
`;if(i.username||i.password){let f=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(s))a+=`${f}: ${s[f]}\r
`)+4,e.outputData[0].data=e._header+i.substring(n),hw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(hw("Creating `tls.Socket`: %o",this.connectOpts),s=WSt.connect(this.connectOpts)):(hw("Creating `net.Socket`: %o",this.connectOpts),s=$St.connect(this.connectOpts)),await(0,YSt.once)(s,"connect"),s}};yP.protocols=["http","https"];ll.HttpProxyAgent=yP;function XSt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var txe=g(DP=>{"use strict";Object.defineProperty(DP,"__esModule",{value:!0});DP.state=void 0;DP.state={instrumenterImplementation:void 0}});var yxe=g(LP=>{"use strict";Object.defineProperty(LP,"__esModule",{value:!0});LP.state=void 0;LP.state={operationRequestMap:new WeakMap}});var YTe=g(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});var yTt=require("os"),ETt=require("util");function bTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var wTt=bTt(ETt);function CTt(t,...e){process.stderr.write(`${wTt.default.format(t,...e)}${yTt.EOL}`)}var UTe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,GTe,jY=[],zY=[],rQ=[];UTe&&VY(UTe);var HTe=Object.assign(t=>jTe(t),{enable:VY,enabled:$Y,disable:ITt,log:CTt});function VY(t){GTe=t,jY=[],zY=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?zY.push(new RegExp(`^${i.substr(1)}$`)):jY.push(new RegExp(`^${i}$`));for(let i of rQ)i.enabled=$Y(i.namespace)}function $Y(t){if(t.endsWith("*"))return!0;for(let e of zY)if(e.test(t))return!1;for(let e of jY)if(e.test(t))return!0;return!1}function ITt(){let t=GTe||"";return VY(""),t}function jTe(t){let e=Object.assign(r,{enabled:$Y(t),destroy:STt,log:HTe.log,namespace:t,extend:BTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return rQ.push(e),e}function STt(){let t=rQ.indexOf(this);return t>=0?(rQ.splice(t,1),!0):!1}function BTt(t){let e=jTe(`${this.namespace}:${t}`);return e.log=this.log,e}var tx=HTe,zTe=new Set,eQ=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,iQ,nQ=tx("azure");nQ.log=(...t)=>{tx.log(...t)};var WY=["verbose","info","warning","error"];eQ&&(JTe(eQ)?VTe(eQ):console.error(`AZURE_LOG_LEVEL set to unknown log level '${eQ}'; logging is not enabled. Acceptable values: ${WY.join(", ")}.`));function VTe(t){if(t&&!JTe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${WY.join(",")}`);iQ=t;let e=[];for(let r of zTe)WTe(r)&&e.push(r.namespace);tx.enable(e.join(","))}function vTt(){return iQ}var qTe={verbose:400,info:300,warning:200,error:100};function _Tt(t){let e=nQ.extend(t);return $Te(nQ,e),{error:tQ(e,"error"),warning:tQ(e,"warning"),info:tQ(e,"info"),verbose:tQ(e,"verbose")}}function $Te(t,e){e.log=(...r)=>{t.log(...r)}}function tQ(t,e){let r=Object.assign(t.extend(e),{level:e});if($Te(t,r),WTe(r)){let i=tx.disable();tx.enable(i+","+r.namespace)}return zTe.add(r),r}function WTe(t){return!!(iQ&&qTe[t.level]<=qTe[iQ])}function JTe(t){return WY.includes(t)}Rw.AzureLogger=nQ;Rw.createClientLogger=_Tt;Rw.getLogLevel=vTt;Rw.setLogLevel=VTe});var KY=g(ix=>{"use strict";Object.defineProperty(ix,"__esModule",{value:!0});var Tw=new WeakMap,sQ=new WeakMap,rx=class t{constructor(){this.onabort=null,Tw.set(this,[]),sQ.set(this,!1)}get aborted(){if(!sQ.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return sQ.get(this)}static get none(){return new t}addEventListener(e,r){if(!Tw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Tw.get(this).push(r)}removeEventListener(e,r){if(!Tw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Tw.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function KTe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Tw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),sQ.set(t,!0)}var JY=class extends Error{constructor(e){super(e),t
Polling status: ${oNe.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let h=o(l,r);if(h!==void 0)return{response:await e(h).catch(nNe({state:r,stateProxy:i,isOperationError:a})),status:u}}return{response:l,status:u}}async function uNe(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:h,getError:f,updateState:d,setDelay:p,isDone:A,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:b,status:C}=await iNt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:y,getResourceLocation:o,isOperationError:c,options:n});if(cNe({status:C,response:b,state:r,stateProxy:i,isDone:A,processResult:h,getError:f,setErrorAsResult:E}),!oNe.includes(C)){let I=u?.(b);I&&p(I);let D=a?.(b,r);if(D!==void 0){let M=y!==D;r.config.operationLocation=D,l?.(D,M)}else l?.(y,!1)}d?.(r,b)}}function hNe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function fNe(t){return t.headers.location}function dNe(t){return t.headers["operation-location"]}function pNe(t){return t.headers["azure-asyncoperation"]}function nNt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function mNe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=dNe(e),o=pNe(e),a=hNe({operationLocation:s,azureAsyncOperation:o}),c=fNe(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:nNt({requestMethod:l,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function ANe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return c7(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ty.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}function sNt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return ANe({status:r,statusCode:t.statusCode})}function oNt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return ANe({status:s,statusCode:t.statusCode})}function c7(t){return t===202?"running":t<300?"succeeded":"failed"}function gNe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?aNt(new Date(e)):r*1e3}}function yNe(t){let e=t.flatResponse.error;if(!e){Ty.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ty.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function aNt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function ENe(t){let{response:e,state:r,operationLocation:i}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return c7(e.rawResponse.statusCode);case"Body":return l7(e,r);default:return"running"}}let s=n();return s==="running"&&i===void 0?"succeeded":s}async function cNt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return lNe({init:async()=>{let o=await n.sendInitialRequest(),a=mNe({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.r
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function_Qt(){Object.keys(LL).forEach(function(t){deleteLL[t]})}});varFL=g(Xh=>{"use strict";Xh.__esModule=!0;Xh.HandlebarsEnvironment=wX;functionPOe(t){returnt&&t.__esModule?t:{default:t}}varqy=Uo(),xQt=Cc(),EX=POe(xQt),RQt=mX(),TQt=TOe(),NQt=gX(),ML=POe(NQt),DQt=yX(),OQt="4.7.9";Xh.VERSION=OQt;varPQt=8;Xh.COMPILER_REVISION=PQt;varkQt=7;Xh.LAST_COMPATIBLE_COMPILER_REVISION=kQt;varQQt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Xh.REVISION_CHANGES=QQt;varbX="[object Object]";functionwX(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},RQt.registerDefaultHelpers(this),TQt.registerDefaultDecorators(this)}wX.prototype={constructor:wX,logger:ML.default,log:ML.default.log,registerHelper:function(e,r){if(qy.toString.call(e)===bX){if(r)thrownewEX.default("Arg not supported with multiple helpers");qy.extend(this.helpers,e)}elsethis.helpers[e]=r},unregisterHelper:function(e){deletethis.helpers[e]},registerPartial:function(e,r){if(qy.toString.call(e)===bX)qy.extend(this.partials,e);else{if(typeofr>"u")thrownewEX.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){deletethis.partials[e]},registerDecorator:function(e,r){if(qy.toString.call(e)===bX){if(r)thrownewEX.default("Arg not supported with multiple decorators");qy.extend(this.decorators,e)}elsethis.decorators[e]=r},unregisterDecorator:function(e){deletethis.decorators[e]},resetLoggedPropertyAccesses:function(){DQt.resetLoggedProperties()}};varLQt=ML.default.log;Xh.log=LQt;Xh.createFrame=qy.createFrame;Xh.logger=ML.default});varQOe=g((UL,kOe)=>{"use strict";UL.__esModule=!0;functionCX(t){this.string=t}CX.prototype.toString=CX.prototype.toHTML=function(){return""+this.string};UL.default=CX;kOe.exports=UL.default});varLOe=g(IX=>{"use strict";IX.__esModule=!0;IX.wrapHelper=MQt;functionMQt(t,e){if(typeoft!="function")returnt;varr=function(){varn=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(n),t.apply(this,arguments)};returnr}});varHOe=g(tA=>{"use strict";tA.__esModule=!0;tA.checkRevision=jQt;tA.template=zQt;tA.wrapProgram=qL;tA.resolvePartial=VQt;tA.invokePartial=$Qt;tA.noop=qOe;functionFQt(t){returnt&&t.__esModule?t:{default:t}}functionUQt(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}varqQt=Uo(),iC=UQt(qQt),GQt=Cc(),$d=FQt(GQt),Wd=FL(),MOe=mX(),HQt=LOe(),FOe=yX();functionjQt(t){vare=t&&t[0]||1,r=Wd.COMPILER_REVISION;if(!(e>=Wd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Wd.COMPILER_REVISION))if(e<Wd.LAST_COMPATIBLE_COMPILER_REVISION){vari=Wd.REVISION_CHANGES[r],n=Wd.REVISION_CHANGES[e];thrownew$d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}elsethrownew$d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}functionzQt(t,e){if(!e)thrownew$d.default("No environment passed to template");if(!t||!t.main)thrownew$d.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functioni(o,a,c){c.hash&&(a=iC.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;varl=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(varu=l.split(`
`)}returnl}elsethrownew$d.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}varn={strict:function(a,c,l){if(!a||!(cina))thrownew$d.default('"'+c+'" not defined in '+a,{loc:l});returnn.lookupProperty(a,c)},lookupProperty:function(a,c){varl=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||FOe.resultIsAllowed(l,n.protoAccessControl,c))returnl},lookup:function(a,c){for(varl=a.length,u=0;u<l;u++){varh=a[u]&&n.lookupProperty(a[u],c);if(h!=null)returnh}},lambda:function(a,c){returntypeofa=="function"?a.call(c):a},escapeExpression:iC.escapeExpression,invokePartial:i,fn:function(a){varc=t[a];returnc.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,h){varf=this.programs[a],d=this.fn(a);returnc||h||u||l?f=qL(this,a,d,c,l,u,h):f||(f=this.programs[a]=qL(this,a,d)),f},data:function(a,c){for(;a&&c--;)a=a._parent;returna},mergeIfNeeded:function(a,c){varl=a||c;returna&&c&&a!==c&&(l=iC.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};functions(o){vara=arguments.length<=1||arguments[1]===void0?{}:arguments[1],c=a.data;s._setup(a),!a.partial&&t.useData&&(c=WQt(o,c));varl=void0,u=t.useBlockParams?[]:void0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);functionh(f){return""+t.main(n,f,n.helpers,n.partials,c,u,l)}returnh=GOe(t.main,h,n,a.depths||[],c,u),h(o,a)}returns.isTop=!0,s._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{vara={};UOe(a,e.helpers,n),UOe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=iC.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=FOe.createProtoAccessControl(o);varc=o.allowCallsToHelperMissing||r;MOe.moveHelperToHooks(n,"helperMissing",c),MOe.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,l){if(t.useBlockParams&&!c)thrownew$d.default("must pass block params");if(t.useDepths&&!l)thrownew$d.default("must pass parent depths");returnqL(n,o,t[o],a,0,c,l)},s}functionqL(t,e,r,i,n,s,o){functiona(c){varl=arguments.length<=1||arguments[1]===void0?{}:arguments[1],u=o;returno&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||i,s&&[l.blockParams].concat(s),u)}returna=GOe(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}functionVQt(t,e,r){returnt?!t.call&&!r.name&&(r.name=t,t=GL(r.partials,t)):r.name==="@partial-block"?t=GL(r.data,"partial-block"):t=GL(r.partials,r.name),t}function$Qt(t,e,r){vari=GL(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);varn=void0;if(r.fn&&r.fn!==qOe&&(function(){r.data=Wd.createFrame(r.data);vars=r.fn;n=r.data["partial-block"]=function(a){varc=arguments.length<=1||arguments[1]===void0?{}:arguments[1];returnc.data=Wd.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=iC.extend({},r.partials,s.partials))})(),t===void0&&n&&(t=n),t===void0)thrownew$d.default("The partial "+r.name+" could not be found");if(tinstanceofFunction)returnt(e,r)}functionqOe(){return""}functionGL(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))returnt[e]}functionWQt(t,e){return(!e||!("root"ine))&&(e=e?Wd.createFrame(e):{},e.root=t),e}functionGOe(t,e,r,i,n,s){if(t.decorator){varo={};e=t.decorator(e,o,r,i&&i[0],n,s,i),iC.extend(e,o)}returne}functionUOe(t,e,r){e&&Object.keys(e).forEach(function(i){varn=e[i];t[i]=JQt(n,r)})}functionJQt(t,e){varr=e.lookupProperty;returnHQt.wrapHelper(t,function(i){returni.lookupProperty=r,i})}});varSX=g((HL,jOe)=>{"use strict";HL.__esModule=!0;HL.default=function(t){(function(){typeofglobalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){returnthis}),__magic__.globalThis=__magic__,deleteObject.prototype.__magic__)})();vare=globalThis.Handlebars;t.noConflict=function(){returnglobalThis
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),f=0;f<h.length&&(a=this._input.match(this.rules[h[f]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=f,!this.options.flex)));f++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],s=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`)}};oF.RpcError=Iee});varBee=g(cF=>{"use strict";Object.defineProperty(cF,"__esModule",{value:!0});cF.mergeRpcOptions=void0;varXQe=hi();functionLqt(t,e){if(!e)returnt;letr={};aF(t,r),aF(e,r);for(letiofObject.keys(e)){letn=e[i];switch(i){case"jsonOptions":r.jsonOptions=XQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=XQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},aF(t.meta,r.meta),aF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}returnr}cF.mergeRpcOptions=Lqt;functionaF(t,e){if(!t)return;letr=e;for(let[i,n]ofObject.entries(t))ninstanceofDate?r[i]=newDate(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var_ee=g(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});Xy.Deferred=Xy.DeferredState=void0;varcf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(cf=Xy.DeferredState||(Xy.DeferredState={}));varvee=class{constructor(e=!0){this._state=cf.PENDING,this._promise=newPromise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==cf.PENDING)thrownewError(`cannot resolve ${cf[this.state].toLowerCase()}`);this._resolve(e),this._state=cf.RESOLVED}reject(e){if(this.state!==cf.PENDING)thrownewError(`cannot reject ${cf[this.state].toLowerCase()}`);this._reject(e),this._state=cf.REJECTED}resolvePending(e){this._state===cf.PENDING&&this.resolve(e)}rejectPending(e){this._state===cf.PENDING&&this.reject(e)}};Xy.Deferred=vee});varRee=g(lF=>{"use strict";Object.defineProperty(lF,"__esModule",{value:!0});lF.RpcOutputStreamController=void0;varZQe=_ee(),Zy=hi(),xee=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{leti=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,i){Zy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Zy.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){Zy.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){Zy.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{lete=this._itState;Zy.assert(e,"bad state"),Zy.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newZQe.Deferred,e.p.promise)}}}pushIt(e){letr=this._itState;if(r)if(r.p){leti=r.p;Zy.assert(i.state==ZQe.DeferredState.PENDING,"iterator contract broken"),"value"ine?i.resolve(e):i.reject(e),deleter.p}elser.q.push(e)}};lF.RpcOutputStreamController=xee});varNee=g(xC=>{"use strict";varMqt=xC&&xC.__awaiter||function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};Object.defineProperty(xC,"__esModule",{value:!0});xC.UnaryCall=void0;varTee=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=
globstarwhile`,e,h,r,f,d),this.matchOne(e.slice(h),r.slice(f),i))return this.debug("globstar found match!",h,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,r,f);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
`,k);k=se===-1?P.length:se}elseif(V!==-1&&P[k]==="/"&&P[k+1]==="*"){letse=P.indexOf("*/",k);se!==-1?(k=se+2,V=P.indexOf("*/",k)):(x+=P[k],k++)}elsex+=P[k],k++;returnx}functionbe(P){letx=oe(P.toString()),k=x.match(ye);if(k||(k=x.match(w)),!k)thrownewError(`could not parse args in autoInject
`+x);let[,V]=k;returnV.replace(/\s/g,"").split(R).map(se=>se.replace(G,"").trim())}functionNe(P,x){vark={};returnObject.keys(P).forEach(V=>{varse=P[V],ce,fe=d(se),me=!fe&&se.length===1||fe&&se.length===0;if(Array.isArray(se))ce=[...se],se=ce.pop(),k[V]=ce.concat(ce.length>0?Ie:se);elseif(me)k[V]=se;else{if(ce=be(se),se.length===0&&!fe&&ce.length===0)thrownewError("autoInject task functions require explicit parameters.");fe||ce.pop(),k[V]=ce.concat(Ie)}functionIe(ot,Ar){varvr=ce.map(yr=>ot[yr]);vr.push(Ar),E(se)(...vr)}}),ae(k,x)}classRe{constructor(){this.head=this.tail=null,this.length=0}removeLink(x){returnx.prev?x.prev.next=x.next:this.head=x.next,x.next?x.next.prev=x.prev:this.tail=x.prev,x.prev=x.next=null,this.length-=1,x}empty(){for(;this.head;)this.shift();returnthis}insertAfter(x,k){k.prev=x,k.next=x.next,x.next?x.next.prev=k:this.tail=k,x.next=k,this.length+=1}insertBefore(x,k){k.prev=x.prev,k.next=x,x.prev?x.prev.next=k:this.head=k,x.prev=k,this.length+=1}unshift(x){this.head?this.insertBefore(this.head,x):at(this,x)}push(x){this.tail?this.insertAfter(this.tail,x):at(this,x)}shift(){returnthis.head&&this.removeLink(this.head)}pop(){returnthis.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(varx=this.head;x;)yieldx.data,x=x.next}remove(x){for(vark=this.head;k;){var{next:V}=k;x(k)&&this.removeLink(k),k=V}returnthis}}functionat(P,x){P.length=1,P.head=P.tail=x}functionvt(P,x,k){if(x==null)x=1;elseif(x===0)thrownewRangeError("Concurrency must not be zero");varV=E(P),se=0,ce=[];letfe={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};functionme(bt,st){fe[bt].push(st)}functionIe(bt,st){letwt=(...Er)=>{ot(bt,wt),st(...Er)};fe[bt].push(wt)}functionot(bt,st){if(!bt)returnObject.keys(fe).forEach(wt=>fe[wt]=[]);if(!st)returnfe[bt]=[];fe[bt]=fe[bt].filter(wt=>wt!==st)}functionAr(bt,...st){fe[bt].forEach(wt=>wt(...st))}varvr=!1;functionyr(bt,st,wt,Er){if(Er!=null&&typeofEr!="function")thrownewError("task callback must be a function");_r.started=!0;varyi,Jn;functionjc(_g,...NB){if(_g)returnwt?Jn(_g):yi();if(NB.length<=1)returnyi(NB[0]);yi(NB)}varH0=_r._createTaskItem(bt,wt?jc:Er||jc);if(st?_r._tasks.unshift(H0):_r._tasks.push(H0),vr||(vr=!0,l(()=>{vr=!1,_r.process()})),wt||!Er)returnnewPromise((_g,NB)=>{yi=_g,Jn=NB})}functionHc(bt){returnfunction(st,...wt){se-=1;for(varEr=0,yi=bt.length;Er<yi;Er++){varJn=bt[Er],jc=ce.indexOf(Jn);jc===0?ce.shift():jc>0&&ce.splice(jc,1),Jn.callback(st,...wt),st!=null&&Ar("error",st,Jn.data)}se<=_r.concurrency-_r.buffer&&Ar("unsaturated"),_r.idle()&&Ar("drain"),_r.process()}}functionG0(bt){returnbt.length===0&&_r.idle()?(l(()=>Ar("drain")),!0):!1}letvg=bt=>st=>{if(!st)returnnewPromise((wt,Er)=>{Ie(bt,(yi,Jn)=>{if(yi)returnEr(yi);wt(Jn)})});ot(bt),me(bt,st)};varTB=!1,_r={_tasks:newRe,_createTaskItem(bt,st){return{data:bt,callback:st}},*[Symbol.iterator](){yield*_r._tasks[Symbol.iterator]()},concurrency:x,payload:k,buffer:x/4,started:!1,paused:!1,push(bt,st){returnArray.isArray(bt)?G0(bt)?void0:bt.map(wt=>yr(wt,!1,!1,st)):yr(bt,!1,!1,st)},pushAsync(bt,st){returnArray.isArray(bt)?G0(bt)?void0:bt.map(wt=>yr(wt,!1,!0,st)):yr(bt,!1,!0,st)},kill(){ot(),_r._tasks.empty()},unshift(bt,st){returnArray.isArray(bt)?G0(bt)?void0:bt.map(wt=>yr(wt,!0,!1,st)):yr(bt,!0,!1,st)},unshiftAsync(bt,st){returnArray.isArray(bt)?G0(bt)?void0:bt.map(wt=>yr(wt,!0,!0,st)):yr(bt,!0,!0,st)},remove(bt){_r._tasks.remove(bt)},process(){if(!TB){for(TB=!0;!_r.paused&&se<_r.concurrency&&_r._tasks.length;){varbt=[],st=[],wt=_r._tasks.length;_r.payload&&(wt=Math.min(wt,_r.payload));for(varEr=0;Er<wt;Er++){varyi=_r._tasks.shift();bt.push(yi),ce.push(yi),st.push(yi.data)}se+=1,_r._tasks.length===0&&Ar("empty"),se===_r.concurrency&&Ar("saturated");varJn=X(Hc(bt));V(st,Jn)}TB=!1}},length(){return_r._tasks.length},running(){returnse},workersList(){returnce},idle(){return_r._tasks.length+se===0},pause(){_r.paused=!0},resume(){_r.paused!==!1&&(_r.paused=!1,l(_r.process))}};returnObject.defineProperties(_r,{saturated:{writable
`;super(r),this.name="AggregateError",this.errors=e}};ure.exports={AggregateError:lre,kEmptyObject:Object.freeze({}),once(t){lete=!1;returnfunction(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){lett,e;return{promise:newPromise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){returnnewPromise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){returnfunction(){}},format(t,...e){returnt.replace(/%([sdifj])/g,function(...[r,i]){letn=e.shift();returni==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeofn=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeoft){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}elsereturn`"${t}"`;return`'${t}'`;case"number":returnisNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":returnString(t);case"object":return"{}"}},types:{isAsyncFunction(t){returntinstanceofBHt},isArrayBufferView(t){returnArrayBuffer.isView(t)}},isBlob:vHt,deprecate(t,e){returnt},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void0)thrownewERR_INVALID_ARG_TYPE("signal","AbortSignal",e);VUe(e,"signal"),_Ht(r,"listener");leti;returne.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[wHt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[CHt](){varn;(n=i)===null||n===void0||n()}}},AbortSignalAny:IHt.any||function(e){if(e.length===1)returne[0];letr=newSHt,i=()=>r.abort();returne.forEach(n=>{VUe(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};ure.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});varzo=g((iVr,JUe)=>{"use strict";var{format:xHt,inspect:jF,AggregateError:RHt}=so(),THt=globalThis.AggregateError||RHt,NHt=Symbol("kIsNodeError"),DHt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],OHt=/^([A-Z][a-z0-9]*)+$/,PHt="__node_internal_",zF={};functionnE(t,e){if(!t)thrownewzF.ERR_INTERNAL_ASSERTION(e)}function$Ue(t){lete="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}functionkHt(t,e,r){if(typeofe=="function")returnnE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);leti=(e.match(/%[dfijoOs]/g)||[]).length;returnnE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:xHt(e,...r)}functionqs(t,e,r){r||(r=Error);classiextendsr{constructor(...s){super(kHt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[NHt]=!0,zF[t]=i}functionWUe(t){lete=PHt+t.name;returnObject.defineProperty(t,"name",{value:e}),t}functionQHt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))returne.errors.push(t),e;letr=newTHt([e,t],e.message);returnr.code=e.code,r}returnt||e}varhre=classextendsError{constructor(e="The operation was aborted",r=void0){if(r!==void0&&typeofr!="object")thrownewzF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qs("ERR_ASSERTION","%s",Error);qs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{nE(typeoft=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);leti="The ";t.endsWith(" argument")?i+=`${t}`:i+=`"${t}" ${t.includes(".")?"property":"argument"}`,i+="must be ";letn=[],s=[],o=[];for(letcofe)nE(typeofc=="string","All expected entries have to be of type string"),DHt.includes(c)?n.push(c.toLowerCase()):OHt.test(c)?s.push(c):(nE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.
`)),e.linkname&&(r+=qne(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=qne(" "+n+"="+i[n]+`
`);return Sr.from(r)};xI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(Sr.toString(e.subarray(0,i)),10);if(!n)return r;let s=Sr.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};xI.encode=function(e){let r=Sr.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Sr.byteLength(i)!==i.length)return null;for(;Sr.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return Sr.byteLength(i)>100||Sr.byteLength(n)>155||e.linkname&&Sr.byteLength(e.linkname)>100?null:(Sr.write(r,i),Sr.write(r,vA(e.mode&XKt,6),100),Sr.write(r,vA(e.uid,6),108),Sr.write(r,vA(e.gid,6),116),sXt(e.size,r,124),Sr.write(r,vA(e.mtime.getTime()/1e3|0,11),136),r[156]=wq+iXt(e.type),e.linkname&&Sr.write(r,e.linkname,157),Sr.copy(WHe,r,QT),Sr.copy(JKt,r,Gne),e.uname&&Sr.write(r,e.uname,265),e.gname&&Sr.write(r,e.gname,297),Sr.write(r,vA(e.devmajor||0,6),329),Sr.write(r,vA(e.devminor||0,6),337),n&&Sr.write(r,n,345),Sr.write(r,vA(YHe(r),6),148),r)};xI.decode=function(e,r,i){let n=e[156]===0?0:e[156]-wq,s=_I(e,0,100,r),o=BA(e,100,8),a=BA(e,108,8),c=BA(e,116,8),l=BA(e,124,12),u=BA(e,136,12),h=rXt(n),f=e[157]===0?null:_I(e,157,100,r),d=_I(e,265,32),p=_I(e,297,32),A=BA(e,329,8),E=BA(e,337,8),y=YHe(e);if(y===256)return null;if(y!==BA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(ZKt(e))e[345]&&(s=_I(e,345,155,r)+"/"+s);else if(!eXt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:l,mtime:new Date(1e3*u),type:h,linkname:f,uname:d,gname:p,devmajor:A,devminor:E,pax:null}};function ZKt(t){return Sr.equals(WHe,t.subarray(QT,QT+6))}function eXt(t){return Sr.equals(YKt,t.subarray(QT,QT+6))&&Sr.equals(KKt,t.subarray(Gne,Gne+2))}function tXt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function rXt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function iXt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function JHe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function YHe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function vA(t,e){return t=t.toString(8),t.length>e?WKt.slice(0,e)+" ":$Kt.slice(0,e-t.length)+t+" "}function nXt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function sXt(t,e,r){t.toString(8).length>11?nXt(t,e,r):Sr.write(e,vA(t,11),r)}function oXt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function BA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return oXt(t);{for(;e<t.length&&t[e]===32;)e++;let i=tXt(JHe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Sr.toString(t.subarray(e,i)),8)}}function _I(t,e,r,i){return Sr.toString(t.subarray(e,JHe(t,0,e,e+r)),i)}function qne(t){let e=Sr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var t6e=g((I$r,e6e)=>{var{Writable:aXt,Readable:cXt,getStreamError:KHe}=Une(),lXt=Sne(),XHe=bq(),RI=Hne(),uXt=XHe.alloc(0),zne=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lXt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});varC9e=g(w9e=>{"use strict";varxae=_p().Buffer;w9e._dbcs=Rp;varzs=-1,b9e=-2,Gl=-10,ca=-1e3,rS=newArray(256),AN=-1;for(J3=0;J3<256;J3++)rS[J3]=zs;varJ3;functionRp(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[
Found: ${t.length}`);throwa.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{leta=newError(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throwa.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}Ff.exports.checkStream=Anr;functionAnr(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Lc(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));leti=tce(r);returnnewPromise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);leto;i.on("verified",a=>{o=a}),i.on("end",()=>n(o)),i.resume()})}Ff.exports.integrityStream=tce;functiontce(t=Object.create(null)){returnnewZae(t)}Ff.exports.create=gnr;functiongnr(t){lete=t?.algorithms||[...ece],r=SN(t?.options),i=e.map(IN.createHash);return{update:function(n,s){returni.forEach(o=>o.update(n,s)),this},digest:function(){returne.reduce((s,o)=>{leta=i.shift().digest("base64"),c=newPp(`${o}-${a}${r}`,t);returns[c.algorithm]||(s[c.algorithm]=[]),s[c.algorithm].push(c),s},newKE)}}}functionynr(t,e){returnv$e.indexOf(t.toLowerCase())>=v$e.indexOf(e.toLowerCase())?t:e}});varice=g((iKr,O$e)=>{varR$e=jae(),T$e=Yae(),Enr=Uf(),N$e={shared:!1,ignoreCargoCult:!0},bnr={status:200,headers:{}},sS=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,i)=>{e.headers[i]=r}),e},D$e=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,i)=>{e.headers[i]=r}),e},rce=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=sS(r),this.response=D$e(i),this.options=n,this.policy=newR$e(this.request,this.response,N$e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}staticstorable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:newR$e(sS(e),bnr,N$e).storable()}satisfies(e){letr=sS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;leti=newT$e(this.request),n=newT$e(r);returnJSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Enr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=sS(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=sS(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){leti=sS(e),n=D$e(r);return!this.policy.revalidatedPolicy(i,n).modified}};O$e.exports=rce});vark$e=g((nKr,P$e)=>{varnce=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};P$e.exports={NotCachedError:nce}});varz$e=g((sKr,j$e)=>{"use strict";varQ$e=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},wnr=require("events"),L$e=require("stream"),M$e=require("string_decoder").StringDecoder,kp=Symbol("EOF"),Qp=Symbol("maybeEmitEnd"),$A=Symbol("emittedEnd"),c4=Symbol("emittingEnd"),BN=Symbol("emittedError"),l4=Symbol("closed"),F$e=Symbol("read"),u4=Symbol("flush"),U$e=Symbol("flushChunk"),Ua=Symbol("encoding"),Lp=Symbol("decoder"),h4=Symbol("flowing"),vN=Symbol("paused"),oS=Symbol("resume"),Is=Symbol("bufferLength"),sce=Symbol("bufferPush"),oce=Symbol("bufferShift"),Ao=Symbol("objectMode"),go=Symbol("destroyed"),ace=Symbol("emitData"),q$e=Symbol("emitEnd"),cce=Symbol("emitEnd2"),Mp=Symbol("async"),_N=t=>Promise.resolve().then(t),G$e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Cnr=G$e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Inr=G$e&&Symbol.iterator||Symbol("iterator not implemented"),Snr=t=>t==="end"||t==="finish"||t==="prefinish",Bnr=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructo
${L4(l)}${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return M4(t,c)}Fc.exports.find=hlr;async function hlr(t,e){let r=jN(t,e);try{return(await Q4(r)).reduce((n,s)=>s&&s.key===e?M4(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}Fc.exports.delete=flr;function flr(t,e,r={}){if(!r.removeFully)return r7e(t,e,null,r);let i=jN(t,e);return t7e(i,{recursive:!0,force:!0})}Fc.exports.lsStream=i7e;function i7e(t){let e=sle(t),r=new ilr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(k4(),P4)),n=await ile(e);return await i(n,async s=>{let o=Gf.join(e,s),a=await ile(o);await i(a,async c=>{let l=Gf.join(o,c),u=await ile(l);await i(u,async h=>{let f=Gf.join(l,h);try{let p=(await Q4(f)).reduce((A,E)=>(A.set(E.key,E),A),new Map);for(let A of p.values()){let E=M4(t,A);E&&r.write(E)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:rle})},{concurrency:rle})},{concurrency:rle}),r.end(),r}).catch(i=>r.emit("error",i)),r}Fc.exports.ls=dlr;async function dlr(t){return(await i7e(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}Fc.exports.bucketEntries=Q4;async function Q4(t,e){let r=await elr(t,"utf8");return plr(r,e)}function plr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||L4(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}Fc.exports.bucketDir=sle;function sle(t){return Gf.join(t,`index-v${clr}`)}Fc.exports.bucketPath=jN;function jN(t,e){let r=n7e(e);return Gf.join.apply(Gf,[sle(t)].concat(alr(r)))}Fc.exports.hashKey=n7e;function n7e(t){return s7e(t,"sha256")}Fc.exports.hashEntry=L4;function L4(t){return s7e(t,"sha1")}function s7e(t,e){return Xcr.createHash(e).update(t).digest("hex")}function M4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?olr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function ile(t){return tlr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var VN=g(q4=>{"use strict";Object.defineProperty(q4,"__esModule",{value:!0});q4.LRUCache=void 0;var mlr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a7e=new Set,ole=typeof process=="object"&&process?process:{},c7e=(t,e,r,i)=>{typeof ole.emitWarning=="function"?ole.emitWarning(t,e,r,i):console.error(`[${r}]${e}:${t}`)},U4=globalThis.AbortController,o7e=globalThis.AbortSignal;if(typeof U4>"u"){o7e=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},U4=class{constructor(){e()}signal=new o7e;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let t=ole.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,c7e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Alr=t=>!a7e.has(t),JA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),l7e=t=>JA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?F4:null:null,F4=class extends Array{constructor(t){super(t),this.fill(0)}},glr=class zN{heap;length;static#e=!1;static create(e){let r=l7e(e);if(!r)return[];zN.#e=!0;let i=new zN(e,r);return zN.#e=!1,i}constructor(e,r){if(!zN.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ylr=class u7e{#e;#t;#i;#r;#n;#c;#h;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#l;#d;#f;#s;#A;#w;#m;#E;#v;#y;#I;#_;#p;#C;#S;#x;#o;#T;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,autopurgeTimers:e.#C,sizes:e.#I,keyMap:e.#d,keyList:e.#f,valList:e.#s,next:e.#A,prev:e.#w,get head(){return e.#m},get tail(){return e.#E},free:e.#v,isBackgroundFetch:r=>e.#g(r),backgroundFetch:(r,i,n,s)=>e.#H(r,i,n,s),moveToTail:r=>e.#U(r),indexes:r=>e.#b(r),rindexes:r=>e.#N(r),isStale:r=>e.#B(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#a}get fetchMethod(){return this.#c}get memoMethod(){return this.#h}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:f,noUpdateTTL:d,maxSize:p=0,maxEntrySize:A=0,sizeCalculation:E,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:M,ignoreFetchAbort:T,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() met
globstarwhile`,F,Re,$,at,vt),this.matchOne(F.slice(Re),$.slice(at),J))return this.debug("globstar found match!",Re,G,vt),!0;if(vt==="."||vt===".."||!ae.dot&&vt.charAt(0)==="."){this.debug("dot detected!",F,Re,$,at);break}this.debug("globstar swallow a segment, and continue"),Re++}return!!(J&&(this.debug(`
>>>nomatch,partial?`,F,Re,$,at),Re===G))}let Et;if(typeof be=="string"?(Et=Ne===be,this.debug("string match",be,Ne,Et)):(Et=be.test(Ne),this.debug("pattern match",be,Ne,Et)),!Et)return!1}if(w===G&&R===oe)return!0;if(w===G)return J;if(R===oe)return w===G-1&&F[w]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(F){(0,r.assertValidPattern)(F);let $=this.options;if(F==="**")return t.GLOBSTAR;if(F==="")return"";let J,ae=null;(J=F.match(y))?ae=$.dot?C:b:(J=F.match(a))?ae=($.nocase?$.dot?h:u:$.dot?l:c)(J[1]):(J=F.match(I))?ae=($.nocase?$.dot?M:D:$.dot?T:j)(J):(J=F.match(f))?ae=$.dot?p:d:(J=F.match(A))&&(ae=E);let ye=i.AST.fromGlob(F,this.options).toMMPattern();return ae&&typeof ye=="object"&&Reflect.defineProperty(ye,"test",{value:ae}),ye}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let F=this.set;if(!F.length)return this.regexp=!1,this.regexp;let $=this.options,J=$.noglobstar?ue:$.dot?he:Ce,ae=new Set($.nocase?["i"]:[]),ye=F.map(G=>{let oe=G.map(Ne=>{if(Ne instanceof RegExp)for(let Re of Ne.flags.split(""))ae.add(Re);return typeof Ne=="string"?Ot(Ne):Ne===t.GLOBSTAR?t.GLOBSTAR:Ne._src});oe.forEach((Ne,Re)=>{let at=oe[Re+1],vt=oe[Re-1];Ne!==t.GLOBSTAR||vt===t.GLOBSTAR||(vt===void 0?at!==void 0&&at!==t.GLOBSTAR?oe[Re+1]="(?:\\/|"+J+"\\/)?"+at:oe[Re]=J:at===void 0?oe[Re-1]=vt+"(?:\\/|\\/"+J+")?":at!==t.GLOBSTAR&&(oe[Re-1]=vt+"(?:\\/|\\/"+J+"\\/)"+at,oe[Re+1]=t.GLOBSTAR))});let be=oe.filter(Ne=>Ne!==t.GLOBSTAR);if(this.partial&&be.length>=1){let Ne=[];for(let Re=1;Re<=be.length;Re++)Ne.push(be.slice(0,Re).join("/"));return"(?:"+Ne.join("|")+")"}return be.join("/")}).join("|"),[w,R]=F.length>1?["(?:",")"]:["",""];ye="^"+w+ye+R+"$",this.partial&&(ye="^(?:\\/|"+w+ye.slice(1,-1)+R+")$"),this.negate&&(ye="^(?!"+ye+").+$");try{this.regexp=new RegExp(ye,[...ae].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(F){return this.preserveMultipleSlashes?F.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(F)?["",...F.split(/\/+/)]:F.split(/\/+/)}match(F,$=this.partial){if(this.debug("match",F,this.pattern),this.comment)return!1;if(this.empty)return F==="";if(F==="/"&&$)return!0;let J=this.options;this.isWindows&&(F=F.split("\\").join("/"));let ae=this.slashSplit(F);this.debug(this.pattern,"split",ae);let ye=this.set;this.debug(this.pattern,"set",ye);let w=ae[ae.length-1];if(!w)for(let R=ae.length-2;!w&&R>=0;R--)w=ae[R];for(let R=0;R<ye.length;R++){let G=ye[R],oe=ae;if(J.matchBase&&G.length===1&&(oe=[w]),this.matchOne(oe,G,$))return J.flipNegate?!0:!this.negate}return J.flipNegate?!1:this.negate}static defaults(F){return t.minimatch.defaults(F).Minimatch}};t.Minimatch=xt;var Kt=O7e();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Kt.AST}});var gt=P7e();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return gt.escape}});var Dr=wle();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return Dr.unescape}}),t.minimatch.AST=i.AST,t.minimatch.Minimatch=xt,t.minimatch.escape=n.escape,t.minimatch.unescape=s.unescape}),lur=Vs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,i=typeof process=="object"&&process?process:{},n=(d,p,A,E)=>{typeof i.emitWarning=="function"?i.emitWarning(d,p,A,E):console.error(`[${A}]${p}:${d}`)},s=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof s>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(A,E){this._onabort.push(E)}},s=class{constructor(){p()}signal=new o;abort(A){if(!this.signal.aborted){this.signal.reason=A,this.signal.aborted=!0;for(let E of this.signal._onabort)E(A);this.signal.onabort?.(A)}}};let d=i.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{d&&(d=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing
`);let{connect:l,buffered:u}=awaitc;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",$hr),r.secureEndpoint){s1("Upgrading socket connection to TLS");letf=r.servername||r.host;returnkKe.connect({...QKe(r,"host","path","port"),socket:n,servername:n1.isIP(f)?void0:f})}returnn}n.destroy();leth=newn1.Socket({writable:!1});returnh.readable=!0,e.once("socket",f=>{s1("Replaying proxy buffer for failed request"),(0,Ghr.default)(f.listenerCount("data")>0),f.push(u),f.push(null)}),h}};s5.protocols=["http","https"];Vl.HttpsProxyAgent=s5;function$hr(t){t.resume()}functionQKe(t,...e){letr={},i;for(iint)e.includes(i)||(r[i]=t[i]);returnr}});varHKe=g(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});varUKe=require("buffer"),h0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Kp.ERRORS=h0;functionWhr(t){if(!UKe.Buffer.isEncoding(t))thrownewError(h0.INVALID_ENCODING)}Kp.checkEncoding=Whr;functionqKe(t){returntypeoft=="number"&&isFinite(t)&&Xhr(t)}Kp.isFiniteInteger=qKe;functionGKe(t,e){if(typeoft=="number"){if(!qKe(t)||t<0)thrownewError(e?h0.INVALID_OFFSET:h0.INVALID_LENGTH)}elsethrownewError(e?h0.INVALID_OFFSET_NON_NUMBER:h0.INVALID_LENGTH_NON_NUMBER)}functionJhr(t){GKe(t,!1)}Kp.checkLengthValue=Jhr;functionYhr(t){GKe(t,!0)}Kp.checkOffsetValue=Yhr;functionKhr(t,e){if(t<0||t>e.length)thrownewError(h0.INVALID_TARGET_OFFSET)}Kp.checkTargetOffset=Khr;functionXhr(t){returntypeoft=="number"&&isFinite(t)&&Math.floor(t)===t}functionZhr(t){if(typeofBigInt>"u")thrownewError("Platform does not support JS BigInt type.");if(typeofUKe.Buffer.prototype[t]>"u")thrownewError(`Platform does not support Buffer.prototype.${t}.`)}Kp.bigIntAndBufferInt64Check=Zhr});varzKe=g(zle=>{"use strict";Object.defineProperty(zle,"__esModule",{value:!0});varZt=HKe(),jKe=4096,efr="utf8",jle=classt{constructor(e){if(this.length=0,this._encoding=efr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Zt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Zt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);elsethrownewError(Zt.ERRORS.INVALID_SMARTBUFFER_SIZE);elseif(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;elsethrownewError(Zt.ERRORS.INVALID_SMARTBUFFER_BUFFER);elsethis._buff=Buffer.allocUnsafe(jKe);else{if(typeofe<"u")thrownewError(Zt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(jKe)}}staticfromSize(e,r){returnnewthis({size:e,encoding:r})}staticfromBuffer(e,r){returnnewthis({buff:e,encoding:r})}staticfromOptions(e){returnnewthis(e)}staticisSmartBufferOptions(e){letr=e;returnr&&(r.encoding!==void0||r.size!==void0||r.buff!==void0)}readInt8(e){returnthis._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){returnthis._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){returnthis._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){returnthis._readNumberValue(Bu
`)}});varj8=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.SHA2_HASH_ALGOS=fg.RSA_SIGNATURE_ALGOS=fg.ECDSA_SIGNATURE_ALGOS=void0;fg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};fg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};fg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varQfe=g(z8=>{"use strict";Object.defineProperty(z8,"__esModule",{value:!0});z8.RFC3161TimestampVerificationError=void0;varkfe=classextendsError{};z8.RFC3161TimestampVerificationError=kfe});varWtt=g(Zf=>{"use strict";varD0r=Zf&&Zf.__createBinding||(Object.create?(function(t,e,r,i){i===void0&&(i=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void0&&(i=r),t[i]=e[r]})),O0r=Zf&&Zf.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P0r=Zf&&Zf.__importStar||(function(){vart=function(e){returnt=Object.getOwnPropertyNames||function(r){vari=[];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);returni},t(e)};returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(vari=t(e),n=0;n<i.length;n++)i[n]!=="default"&&D0r(r,e,i[n]);returnO0r(r,e),r}})();Object.defineProperty(Zf,"__esModule",{value:!0});Zf.TSTInfo=void0;var$tt=P0r(uB()),k0r=j8(),Q0r=Qfe(),Lfe=class{root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnk0r.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=$tt.digest(this.messageImprintHashAlgorithm,e);if(!$tt.bufferEqual(r,this.messageImprintHashedMessage))thrownewQ0r.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};Zf.TSTInfo=Lfe});varYtt=g(ed=>{"use strict";varL0r=ed&&ed.__createBinding||(Object.create?(function(t,e,r,i){i===void0&&(i=r);varn=Object.getOwnPropertyDescriptor(e,r);(!n||("get"inn?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void0&&(i=r),t[i]=e[r]})),M0r=ed&&ed.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F0r=ed&&ed.__importStar||(function(){vart=function(e){returnt=Object.getOwnPropertyNames||function(r){vari=[];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);returni},t(e)};returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(vari=t(e),n=0;n<i.length;n++)i[n]!=="default"&&L0r(r,e,i[n]);returnM0r(r,e),r}})();Object.defineProperty(ed,"__esModule",{value:!0});ed.RFC3161Timestamp=void0;varU0r=q8(),Mfe=F0r(uB()),Jtt=j8(),D1=Qfe(),q0r=Wtt(),G0r="1.2.840.113549.1.7.2",H0r="1.2.840.113549.1.9.16.1.4",j0r="1.2.840.113549.1.9.4",Ffe=classt{root;constructor(e){this.root=e}staticparse(e){letr=U0r.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorithm(){lete=this.signerDigestAlgorithmObj.subs[0].toOID();returnJtt.SHA2_HASH_ALGOS[e]}getsignatureAlgorithm(){lete=this.signatureAlgorithmObj.subs[0].toOID();r
`,awr=/\u2014 (\S+) (\S+)\n/g;function cwr(t,e){let r=t.inclusionProof,i=dde.fromString(r.checkpoint.envelope),n=iG.fromString(i.note);if(!lwr(i,e))throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function lwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>Crt.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?Crt.crypto.verify(r,n.publicKey,i.signature):!1})}var dde=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(fde))throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(fde),i=e.slice(0,r+1),s=e.slice(r+fde.length).matchAll(awr),o=Array.from(s,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},iG=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new M1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};F1.LogCheckpoint=iG});var Srt=g(gde=>{"use strict";Object.defineProperty(gde,"__esModule",{value:!0});gde.verifyMerkleInclusion=fwr;var Ade=Wu(),pde=Io(),uwr=Buffer.from([0]),hwr=Buffer.from([1]);function fwr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${i}`});let{inner:s,border:o}=dwr(i,n);if(r.hashes.length!==s+o)throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),l=Ewr(t.canonicalizedBody),u=mwr(pwr(l,a,i),c);if(!Ade.crypto.bufferEqual(u,e.logHash))throw new pde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function dwr(t,e){let r=Awr(t,e),i=gwr(t>>BigInt(r));return{inner:r,border:i}}function pwr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?mde(n,i):mde(i,n),t)}function mwr(t,e){return e.reduce((r,i)=>mde(i,r),t)}function Awr(t,e){return ywr(t^e-BigInt(1))}function gwr(t){return t.toString(2).split("1").length-1}function ywr(t){return t===0n?0:t.toString(2).length}function mde(t,e){return Ade.crypto.digest("sha256",hwr,t,e)}function Ewr(t){return Ade.crypto.digest("sha256",uwr,t)}});var vrt=g(yde=>{"use strict";Object.defineProperty(yde,"__esModule",{value:!0});yde.verifyTLogSET=Cwr;var Brt=Wu(),bwr=Io(),wwr=dB();function Cwr(t,e){if(!(0,wwr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=Iwr(t),o=Buffer.from(Brt.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Brt.crypto.verify(o,n.publicKey,a)}))throw new bwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Iwr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var xrt=g(nG=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.verifyTLogBody=xwr;nG.verifyTLogInclusion=Rwr;var _rt=Fue(),wde=Io(),Ede=Ert(),bde=brt(),Swr=wrt(),Bwr=Irt(),vwr=Srt(),_wr=vrt();function xwr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new wde.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${i},received:${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==Ede.DSSE_API_VERSION_V1)return(0,Ede.verifyDSSETLogBody)(n,e);{let s=_rt.Entry.fromJSON(n);return(0,Ede.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Swr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==bde.HASHEDREKORD_API_VERSION_V1)return(0,bde.verifyHashedRekordTLogBody)(n,e);{let s=_rt.Entry.fromJSON(n);return(0,bde.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new wde.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}function Rwr(t,e){let r=!1;if(Twr(t)&&((0,_wr.verifyTLogSET)(t,e),r=!0),Nwr(t)){let i=(0,Bwr.verifyCheckpoint)(t,e);(0,vwr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new wde.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Twr(t){return t.inclusionPromise!==void 0}function Nwr(t){return t.inclusionProof!==void 0}});var Ort=g(sG=>{"use strict";Object.defineProperty(sG,"__esModule",{value:!0});sG.Verifier=void 0;var Dwr=require("util"),pB=Io(),Rrt=prt(),Cde=mrt(),Trt=yrt(),Nrt=xrt(),Ide=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}functionoO(t,e){if(process.env.GITHUB_OUTPUT||"")returns2("OUTPUT",MG(t,e));process.stdout.write(Sz.EOL),ud("set-output",{name:t},ld(e))}functionaO(t){process.exitCode=Iz.Failure,zb(t)}functioney(){returnprocess.env.RUNNER_DEBUG==="1"}functionK(t){ud("debug",{},t)}functionzb(t,e={}){ud("error",kG(e),tinstanceofError?t.toString():t)}functionhr(t,e={}){ud("warning",kG(e),tinstanceofError?t.toString():t)}functionle(t){process.stdout.write(t+Sz.EOL)}functionugt(t){LG("group",t)}functionhgt(){LG("endgroup")}functionLi(t,e){returnlgt(this,void0,void0,function*(){ugt(t);letr;try{r=yielde()}finally{hgt()}returnr})}functionfu(t,e){if(process.env.GITHUB_STATE||"")returns2("STATE",MG(t,e));ud("save-state",{name:t},ld(e))}functionUwe(t){returnprocess.env[`STATE_${t}`]||""}varuL=z(require("fs"),1),QK=z(require("os"),1),LK=z(require("path"),1);varGwe=z(require("os"),1);functionQv(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionHwe(t,e,r){leti=newBz(t,e,r);process.stdout.write(i.toString()+Gwe.EOL)}varqwe="::",Bz=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){lete=qwe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letiinthis.properties)if(this.properties.hasOwnProperty(i)){letn=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${dgt(n)}`)}}returne+=`${qwe}${fgt(this.message)}`,e}};functionfgt(t){returnQv(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functiondgt(t){returnQv(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var$we=z(require("os"),1);varzwe=require("os"),Lv=require("fs"),vz=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},{access:pgt,appendFile:mgt,writeFile:Agt}=Lv.promises,jwe="GITHUB_STEP_SUMMARY";var_z=class{constructor(){this._buffer=""}filePath(){returnvz(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[jwe];if(!e)thrownewError(`Unable to find environment variable for $${jwe}. Check if your runtime environment supports job summaries.`);try{yieldpgt(e,Lv.constants.R_OK|Lv.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,i={}){letn=Object.entries(i).map(([s,o])=>`${s}="${o}"`).join("");returnr?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){returnvz(this,void0,void0,function*(){letr=!!e?.overwrite,i=yieldthis.filePath();returnyield(r?Agt:mgt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnvz(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(zwe.EOL)}addCodeBlock(e,r){leti=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);returnthis.addRaw(n).addEOL()}addList(e,r=!1){leti=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(n=>{lets=n.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,h=a?"th":"td",f=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});returnthis.wrap(h,c,f)}).join("");returnthis.wrap("tr",s)}).join(""),i=this.wrap("table",r);returnthis.addRaw(i).addEOL()}addDetails(e,r){leti=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({}
`,"utf-8")],n=fBt(i);n&&t.headers.set("Content-Length",n),t.body=awaitH_e(i)}varm_="multipartPolicy",pBt=70,mBt=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionABt(t){if(t.length>pBt)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!mBt.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}functionBP(){return{name:m_,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)thrownewError(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,o]=n;if(o&&r&&o!==r)thrownewError(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);returnr??=o,r?ABt(r):r=lBt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),awaitdBt(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}functionvP(){returnYO()}varj_e=$O({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),BNr=j_e.logger;functionbh(t){returnj_e.createClientLogger(t)}varwh=bh("core-rest-pipeline");functionE9(t={}){returnrP({logger:wh.info,...t})}varb9=iP;functionw9(t={}){returnnP(t)}var_P=z(require("node:os"),1),xP=z(require("node:process"),1);functionz_e(){return"User-Agent"}asyncfunctionV_e(t){if(xP.default&&xP.default.versions){lete=`${_P.default.type()}${_P.default.release()}; ${_P.default.arch()}`,r=xP.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}varRP="1.22.2";functionSBt(t){lete=[];for(let[r,i]oft){letn=i?`${r}/${i}`:r;e.push(n)}returne.join(" ")}function$_e(){returnz_e()}asyncfunctionTP(t){lete=newMap;e.set("core-rest-pipeline",RP),awaitV_e(e);letr=SBt(e);returnt?`${t}${r}`:r}varW_e=$_e(),J_e="userAgentPolicy";functionC9(t={}){lete=TP(t.userAgentPrefix);return{name:J_e,asyncsendRequest(r,i){returnr.headers.has(W_e)||r.headers.set(W_e,awaite),i(r)}}}vardc=classextendsError{constructor(e){super(e),this.name="AbortError"}};functionI9(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};returnnewPromise((s,o)=>{functiona(){o(newdc(n??"The operation was aborted."))}functionc(){i?.removeEventListener("abort",l)}functionl(){r?.(),c(),a()}if(i?.aborted)returna();try{t(u=>{c(),s(u)},u=>{c(),o(u)})}catch(u){o(u)}i?.addEventListener("abort",l)})}varRBt="The delay was aborted.";functionA_(t,e){letr,{abortSignal:i,abortErrorMsg:n}=e??{};returnI9(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??RBt})}functionFm(t){if(ay(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}functionY_e(t){returnay(t)}functionfw(){returnoy()}varkr=uy;varK_e=Symbol("rawContent");functionB9(t){returntypeoft[K_e]=="function"}functionX_e(t){returnB9(t)?t[K_e]():t}varNP=m_;functionv9(){lett=BP();return{name:NP,sendRequest:async(e,r)=>{if(e.multipartBody)for(letiofe.multipartBody.parts)B9(i.body)&&(i.body=X_e(i.body));returnt.sendRequest(e,r)}}}var_9=sP;functionx9(){returnoP()}functionR9(t={}){returnlP(t)}functionT9(){returnuP()}functionUm(t){returnp9(t)}functionN9(t,e){returnbP(t,e)}varZ_e="setClientRequestIdPolicy";functionD9(t="x-ms-client-request-id"){return{name:Z_e,asyncsendRequest(e,r){returne.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}functionO9(t){returnwP(t)}functionP9(t){returnCP(t)}vardw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};functionexe(t={}){lete=newk9(t.parentContext);returnt.span&&(e=e.setValue(dw.span,t.span)),t.namespace&&(e=e.setValue(dw.namespace,t.namespace)),e}vark9=classt{_contextMap;constructor(e){this._contextMap=einstanceoft
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!Zvt(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",an("InvalidTag",h,ko(t,s))}let l=Wvt(t,s);if(l===!1)return an("InvalidAttr","Attributes for '"+c+"' have open quote.",ko(t,s));let u=l.value;if(s=l.index,u[u.length-1]==="/"){let h=s-u.length;u=u.substring(0,u.length-1);let f=Lxe(u,e);if(f===!0)i=!0;else return an(f.err.code,f.err.msg,ko(t,h+f.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return an("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ko(t,o));if(r.length===0)return an("InvalidTag","Closing tag '"+c+"' has not been opened.",ko(t,o));{let h=r.pop();if(c!==h.tagName){let f=ko(t,h.tagStartPos);return an("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+c+"'.",ko(t,o))}r.length==0&&(n=!0)}}else return an("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ko(t,s));else{let h=Lxe(u,e);if(h!==!0)return an(h.err.code,h.err.msg,ko(t,s-u.length+h.err.line));if(n===!0)return an("InvalidXml","Multiple possible root nodes found.",ko(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Qxe(t,s);continue}else if(t[s+1]==="?"){if(s=kxe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let h=Kvt(t,s);if(h==-1)return an("InvalidChar","char '&' is not expected.",ko(t,s));s=h}else if(n===!0&&!Pxe(t[s]))return an("InvalidXml","Extra text at the end",ko(t,s));t[s]==="<"&&s--}}else{if(Pxe(t[s]))continue;return an("InvalidChar","char '"+t[s]+"' is not expected.",ko(t,s))}if(i){if(r.length==1)return an("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ko(t,r[0].tagStartPos));if(r.length>0)return an("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return an("InvalidXml","Start tag expected.",1);return!0}function Pxe(t){return t===" "||t===" "||t===`
`||t==="\r"}function kxe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return an("InvalidXml","XML declaration allowed only at the start of the document.",ko(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Qxe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Vvt='"',$vt="'";function Wvt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===Vvt||t[e]===$vt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var Jvt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Lxe(t,e){let r=GP(t,Jvt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return an("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",x_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return an("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",x_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return an("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",x_(r[n]));let s=r[n][2];if(!Xvt(s))return an("InvalidAttr","Attribute '"+s+"' is an invalid name.",x_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return an("InvalidAttr","Attribute '"+s+"' is repeated.",x_(r[n]))}return!0}function Yvt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Kvt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Yvt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function an(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Xvt(t){return Z9(t)}function Zvt(t){return Z9(t)}function ko(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function x_(t){return t.startIndex+t[1].length}var Mxe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Fxe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Ba("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new N_(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=yw(t,">",a,"ClosingTagisnotclosed."),h=t.substring(a+2,u).trim();if(n.removeNSPrefix){let d=h.indexOf(":");d!==-1&&(h=h.substr(d+1))}h=a$(n.transformTagName,h,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(h&&n.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);f&&n.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",a=u}else if(l===63){let u=c$(t,a,!1,"?>");if(!u)throw new Error("PiTagisnotclosed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let f=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),s.setXmlVersion(Number(f)||1)}if(!(n.ignoreDeclaration&&u.tagName==="?xml"||n.ignorePiTags)){let f=new Ba(u.tagName);f.add(n.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&n.ignoreAttributes!==!0&&(f[":@"]=h),this.addChild(r,f,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=yw(t,"-->",a+4,"Commentisnotclosed.");if(n.commentPropName){let h=t.substring(a+4,u-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=s.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=yw(t,"]]>",a,"CDATAisnotclosed.")-2,h=t.substring(a+9,u);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let f=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:h}]):r.add(n.textNodeName,f),a=u+2}else{let u=c$(t,a,n.removeNSPrefix);if(!u){let M=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${M}"`)}let h=u.tagName,f=u.rawTagName,d=u.tagExp,p=u.attrExpPresent,A=u.closeIndex;if({tagName:h,tagExp:d}=a$(n.transformTagName,h,d,n),n.strictReservedNames&&(h===n.commentPropName||h===n.cdataPropName||h===n.textNodeName||h===n.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let E=r;E&&n.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),d=h):d=d.substr(0,d.length-1),p=h!==d);let b=null,C={},I;I=C_t(f),h!==e.tagname&&this.matcher.push(h,{},I),h!==d&&p&&(b=this.buildAttributesMap(d,this.matcher,h),b&&(C=w_t(b,n))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let D=a;if(this.isCurrentNodeStopNode){let M="";if(y)a=u.closeIndex;else if(n.unpairedTagsSet.has(h))a=u.closeIndex;else{let j=this.readStopNodeData(t,f,A+1);if(!j)throw new Error(`Unexpected end of ${f}`);a=j.i,M=j.tagContent}let T=new Ba(h);b&&(T[":@"]=b),T.add(n.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,T,this.readonlyMatcher,D)}else{if(y){({tagName:h,tagExp:d}=a$(n.transformTagName,h,d,n));let M=new Ba(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(h)){let M=new Ba(h);b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let M=new Ba(h);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),b&&(M[":@"]=b),this.addChild(r,M,this.readonlyMatcher,D),r=M}i="",a=A}}}else i+=t[a];return e.child};function x
${a}:${decodeURIComponent(s[a])}`}returni}};varFi=classextendsEy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewQ_(e,r,this)}computeHMACSHA256(e){return(0,ARe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varLn=bh("storage-common");varul;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ul||(ul={}));varzm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ul.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},txt=newdc("The operation was aborted."),L_=classextendsBh{retryOptions;constructor(e,r,i=zm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:zm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):zm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:zm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:zm.maxRetryDelayInMs):zm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:zm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:zm.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,i){letn=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=rk(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=jm(n.url,kd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(Ln.info(`RetryPolicy: =====> Try=${i}${s?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))returno;r=r||!s&&o.status===404}catch(a){if(Ln.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,i,o,a))throwa}returnawaitthis.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)returnLn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;lets=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(letoofs)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)returnLn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||n){leto=i?i.status:n?n.statusCode:0;if(!e&&o===404)returnLn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returnLn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){leto=i.headers.get(Dt.X_MS_CopySourceErrorCode);if(o!==void0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returnn?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Ln.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,i){letn=0;if(e)switch(this.retryOptions.retryPolicyType){caseul.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseul.FIXED:n=this.retryOptions.retryDelayInMs;break}elsen=Math.random()*1e3;returnLn.info(`RetryPolicy: Delay for ${n}ms`),sk(n,i,txt)}};varM_=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewL_(e,r,this.retryOptions)}};varrxt="storageBrowserPolicy";functiongRe(){return{name:rxt,asyncsendRequest(t,e){returnkr||((t.method==="GET"||t.method==="HEAD")&&(t.url=jm(t.url,kd.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Dt.COOKIE),t.headers.delete(Dt.CONTENT_LENGTH)),e(t)}}}varixt="StorageCorrectContentLengthPolicy";functionyRe(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Dt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ixt,asyncsend
`}),a}function n(s){let o=ik(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=nk(s.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let f=h.toLowerCase();l[f]=c[h],u.push(f)}u.sort();for(let h of u)a+=`
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:newCu(t.version,s,i,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}functionfTt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}functiondTt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:s}}functionpTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}functionmTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}functionATt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}functiongTt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));letn;t.permissions&&(t.blobName?n=Gh.parse(t.permissions.toString()).toString():n=Hh.parse(t.permissions.toString()).toString());lets=[n||"",t.startsOn?Qr(t.startsOn,!1):"",t.expiresOn?Qr(t.expiresOn,!1):"",_y(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?wu(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newCu(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}function_y(t,e,r){leti=[`/blob/${t}/${e}`];returnr&&i.push(`/${r}`),i.join("")}functionxy(t){lete=t.version?t.version:lk;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}varK_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){leti=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=fw()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gu||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnit.withSpan("BlobLeaseClient-acquireLease",r,asynci=>ht(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==gu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==gu||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnit.withSpan("BlobLeaseClient-changeLease",r,asynci=>{letn=ht(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));returnthis._leaseId=e,n})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==gu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==gu||e.conditions?.tagConditions))thrownewRangeError("The IfMatch,
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Dw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Dy=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Dy.isUsageErrorMessage=t=>t?t.includes("insufficientusage"):!1;var ax=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var _Nt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},d7=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);le(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ONe(t,e,r){return _Nt(this,void 0,void 0,function*(){var i;let n=new Iu(t),s=n.getBlockBlobClient(),o=new d7((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),K(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new pQ(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw hr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var kNe=z(require("buffer"),1),jh=z(require("fs"),1),QNe=z(require("stream"),1),LNe=z(require("util"),1);var mQ=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};function AQ(t){return t?t>=200&&t<300:!1}function xNt(t){return t?t>=500:!0}function RNt(t){return t?[Mi.BadGateway,Mi.ServiceUnavailable,Mi.GatewayTimeout].includes(t):!1}function TNt(t){return mQ(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function PNe(t,e,r){return mQ(this,arguments,void 0,function*(i,n,s,o=qO,a=GO,c=void 0){let l="",u=1;for(;u<=o;){let h,f,d=!1;try{h=yield n()}catch(p){c&&(h=c(p)),d=!0,l=p.message}if(h&&(f=s(h),!xNt(f)))return h;if(f&&(d=RNt(f),l=`Cache service responded with ${f}`),K(`${i} - Attempt ${u} of ${o} failed with error: ${l}`),!d){K(`${i} - Error is not retryable`);break}yield TNt(a),u++}throw Error(`${i} failed: ${l}`)})}function cx(t,e){return mQ(this,arguments,void 0,function*(r,i,n=qO,s=GO){return yield PNe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof Ah)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Ow(t,e){return mQ(this,arguments,void 0,function*(r,i,n=qO,s=GO){return yield PNe(r,i,o=>o.message.statusCode,n,s)})}var ml=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};function NNt(t,e){return ml(this,void 0,void 0,function*(){yield LNe.promisify(QNe.pipeline)(t.message,e)})}var gQ=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Other caches with similar key:`);for(let a of s?.artifactCaches||[])K(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function g7(t,e,r){return Ra(this,void 0,void 0,function*(){let i=new $Ne.URL(t),n=qNe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield FNe(t,e,n):n.concurrentBlobDownloads?yield MNe(t,e,n):yield yQ(t,e):yield yQ(t,e)})}function JNe(t,e,r){return Ra(this,void 0,void 0,function*(){let i=A7(),n=iw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield cx("reserveCache",()=>Ra(this,void 0,void 0,function*(){return i.postJson(ux("caches"),s)}))})}function VNe(t,e){return`bytes ${t}-${e}/*`}function FNt(t,e,r,i,n){return Ra(this,void 0,void 0,function*(){K(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${VNe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":VNe(i,n)},o=yield Ow(`uploadChunk (start: ${i}, end: ${n})`,()=>Ra(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!AQ(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function UNt(t,e,r,i){return Ra(this,void 0,void 0,function*(){let n=mh(r),s=ux(`caches/${e.toString()}`),o=Pw.openSync(r,"r"),a=p7(i),c=FV("uploadConcurrency",a.uploadConcurrency),l=FV("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];K("Awaitingalluploads");let h=0;try{yield Promise.all(u.map(()=>Ra(this,void 0,void 0,function*(){for(;h<n;){let f=Math.min(n-h,l),d=h,p=h+f-1;h+=l,yield FNt(t,s,()=>Pw.createReadStream(r,{fd:o,start:d,end:p,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,p)}})))}finally{Pw.closeSync(o)}})}function qNt(t,e,r){return Ra(this,void 0,void 0,function*(){let i={size:r};return yield cx("commitCache",()=>Ra(this,void 0,void 0,function*(){return t.postJson(ux(`caches/${e.toString()}`),i)}))})}function y7(t,e,r,i){return Ra(this,void 0,void 0,function*(){if(p7(i).useAzureSdk){if(!r)throw new Error("AzureStorageSDKcanonlybeusedwhenasignedURLisprovided.");yield ONe(r,e,i)}else{let s=A7();K("Uploadcache"),yield UNt(s,t,e,i),K("Commitingcache");let o=mh(e);le(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield qNt(s,t,o);if(!AQ(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);le("Cachesavedsuccessfully")}})}var H1e=z(Q1e(),1),hn=z(un(),1),Ec=z(un(),1),Ly=z(un(),1),My=z(un(),1),Fy=z(un(),1);var fK=z(un(),1),dK=z(un(),1),U1e=z(un(),1),q1e=z(un(),1),G1e=z(un(),1);var lK=z(un(),1),uK=z(un(),1),L1e=z(un(),1),M1e=z(un(),1),F1e=z(un(),1),hK=class extends F1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,M1e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,L1e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?uK.UnknownFieldHandler.onRead:l)(this.typeName,s,a,c,u)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,lK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,lK.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?uK.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},sL=new hK;var pK=class extends G1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>sL}])}create(e){let r={repositoryId:"0",scope:[]
`));let i=yield RK(r,"create");yield TK(i,t)})}var Kw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},vu=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yw=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},lL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function $1e(t){if(!t||t.length===0)throw new vu("PathValidationError:Atleastonedirectoryorfilepathisrequired")}function OK(t){if(t.length>512)throw new vu(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new vu(`Key Validation Error: ${t} cannot contain commas.`)}function PK(){return lx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function W1e(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){let l=lx();return K(`Cache service version: ${l}`),$1e(n),l==="v2"?yield rDt(n,s,o,a,c):yield tDt(n,s,o,a,c)})}function tDt(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let l=[s,...o];if(K("ResolvedKeys:"),K(JSON.stringify(l)),l.length>10)throw new vu("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let f of l)OK(f);let u=yield a_(),h="";try{let f=yield WNe(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!f?.archiveLocation)return;if(a?.lookupOnly)return le("Lookuponly-skippingdownload"),f.cacheKey;h=vx.join(yield s_(),Qm(u)),K(`Archive Path: ${h}`),yield g7(f.archiveLocation,h,a),ey()&&(yield Bx(h,u));let d=mh(h);return le(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield NK(h,u),le("Cacherestoredsuccessfully"),f.cacheKey}catch(f){let d=f;if(d.name===vu.name)throw f;d instanceof Ah&&typeof d.statusCode=="number"&&d.statusCode>=500?zb(`Failed to restore: ${f.message}`):hr(`Failed to restore: ${f.message}`)}finally{try{yield o_(h)}catch(f){K(`Failed to delete archive: ${f}`)}}})}function rDt(t,e,r,i){return Kw(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[s,...o];if(K("ResolvedKeys:"),K(JSON.stringify(l)),l.length>10)throw new vu("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let h of l)OK(h);let u="";try{let h=xK(),f=yield a_(),d={key:s,restoreKeys:o,version:iw(n,f,c)},p=yield h.GetCacheEntryDownloadURL(d);if(!p.ok){K(`Cache not found for version ${d.version} of keys: ${l.join(",")}`);return}if(d.key!==p.matchedKey?le(`Cache hit for restore-key: ${p.matchedKey}`):le(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return le("Lookuponly-skippingdownload"),p.matchedKey;u=vx.join(yield s_(),Qm(f)),K(`Archive path: ${u}`),K(`Starting download of archive to: ${u}`),yield g7(p.signedDownloadUrl,u,a);let E=mh(u);return le(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),ey()&&(yield Bx(u,f)),yield NK(u,f),le("Cacherestoredsuccessfully"),p.matchedKey}catch(h){let f=h;if(f.name===vu.name)throw h;f instanceof Ah&&typeof f.statusCode=="number"&&f.statusCode>=500?zb(`Failed to restore: ${h.message}`):hr(`Failed to restore: ${h.message}`)}finally{try{u&&(yield o_(u))}catch(h){K(`Failed to delete archive: ${h}`)}}})}function kK(t,e,r){return Kw(this,arguments,void 0,function*(i,n,s,o=!1){let a=lx();return K(`Cache service version: ${a}`),$1e(i),OK(n),a==="v2"?yield nDt(i,n,s,o):yield iDt(i,n,s,o)})}function iDt(t,e,r){return Kw(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,l,u,h;let f=yield a_(),d=-1,p=yield MV(i);if(K("CachePaths:"),K(`${JSON.stringify(p)}`),p.length===0)throw new Error("PathValidationError:Path(s)specifiedintheactionforcachingdo(es)notexist,hencenocacheisbeingsaved.");let A=yield s_(),E=vx.join(A,Qm(f));K(`Archive Path: ${E}`)
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return f<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:f,raw:d,relax_quotes:p,rtrim:A,skip_empty_lines:E,to:y,to_line:b}=this.options,{comment:C,escape:I,quote:D,record_delimiter:M}=this.options,{bomSkipped:T,previousBuf:j,rawBuffer:Q,escapeIsQuote:Z}=this.state,U;if(j===void 0)if(i===void 0){o();return}else U=i;else j!==void 0&&i===void 0?U=j:U=Buffer.concat([j,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(U.length<3){if(n===!1){this.state.previousBuf=U;return}}else{for(let ue in fC)if(fC[ue].compare(U,0,fC[ue].length)===0){let he=fC[ue].length;this.state.bufBytesStart+=he,U=U.slice(he);let Ce=sZ({...this.original_options,encoding:ue});for(let ne in Ce)this.options[ne]=Ce[ne];({comment:C,escape:I,quote:D}=this.options);break}this.state.bomSkipped=!0}let W=U.length,X;for(X=0;X<W&&!this.__needMoreData(X,W,n);X++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),b!==-1&&this.info.lines>b){this.state.stop=!0,o();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(U,X)&&(M=this.options.record_delimiter);let ue=U[X];if(d===!0&&Q.append(ue),(ue===xMt||ue===RMt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(U,X,ue)&&X+I.length<W)if(Z){if(this.__isQuote(U,X+I.length)){this.state.escaping=!0,X+=I.length-1;continue}}else{this.state.escaping=!0,X+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,X))if(this.state.quoting===!0){let ne=U[X+D.length],ee=A&&this.__isCharTrimable(U,X+D.length),Be=C!==null&&this.__compareBytes(C,U,X+D.length,ne),Ge=this.__isDelimiter(U,X+D.length,ne),nt=M.length===0?this.__autoDiscoverRecordDelimiter(U,X+D.length):this.__isRecordDelimiter(ne,U,X+D.length);if(I!==null&&this.__isEscape(U,X,ue)&&this.__isQuote(U,X+I.length))X+=I.length-1;else if(!ne||Ge||nt||Be||ee){this.state.quoting=!1,this.state.wasQuoting=!0,X+=D.length-1;continue}else if(p===!1){let He=this.__error(new Ir("CSV_INVALID_CLOSING_QUOTE",["InvalidClosingQuote:",`got "${String.fromCharCode(ne)}"`,`at line ${this.info.lines}`,"insteadofdelimiter,recorddelimiter,trimablecharacter","(ifactivated)orcomment"],this.options,this.__infoField()));if(He!==void 0)return He}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),X+=D.length-1}else if(this.state.field.length!==0){if(p===!1){let ne=this.__infoField(),ee=Object.keys(fC).map(Ge=>fC[Ge].equals(this.state.field.toString())?Ge:!1).filter(Boolean)[0],Be=this.__error(new Ir("INVALID_OPENING_QUOTE",["InvalidOpeningQuote:",`a quote is found on field ${JSON.stringify(ne.column)} at line ${ne.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ee?`(${ee} bom)`:void 0],this.options,ne,{field:this.state.field}));if(Be!==void 0)return Be}}else{this.state.quoting=!0,X+=D.length-1;continue}if(this.state.quoting===!1){let ne=this.__isRecordDelimiter(ue,U,X);if(ne!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),X+=ne-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,X+=ne-1;continue}this.info.bytes=this.state.bufBytesStart+X;let Ge=this.__onField();if(Ge!==void 0)return Ge;this.info.bytes=this.state.bufBytesStart+X+ne;let nt=this.__onRecord(s);if(nt!==void 0)return nt;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,X+=ne-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,U,X,ue)!==0){this.state.commenting=!0;continue}let ee=this.__isDelimiter(U,X,ue);if(ee
`)}var CFt=class extends Error{constructor(t,e,r){super(wFt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},IFt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],SFt=["query","method","url"],Hke=/\/api\/v3\/?$/;function BFt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(SFt.includes(o))return Promise.reject(new Error(`[@octokit/graphql]"${o}"cannotbeusedasvariablename`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>IFt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Hke.test(s)&&(n.url=s.replace(Hke,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new CFt(n,a,o.data)}return o.data.data})}function yZ(t,e){let r=t.defaults(e);return Object.assign((n,s)=>BFt(r,n,s),{defaults:yZ.bind(null,r),endpoint:r.endpoint})}var NGr=yZ(Kx,{headers:{"user-agent":`octokit-graphql.js/${bFt}${iA()}`},method:"POST",url:"/graphql"});function jke(t){return yZ(t,{method:"POST",url:"/graphql"})}var EZ="(?:[a-zA-Z0-9_-]+)",zke="\\.",Vke=new RegExp(`^${EZ}${zke}${EZ}${zke}${EZ}$`),vFt=Vke.test.bind(Vke);async function _Ft(t){let e=vFt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function xFt(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}async function RFt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=xFt(t),e(n)}var $ke=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(_Ft.bind(null,e),{hook:RFt.bind(null,e)})};var bZ="7.0.6";var Wke=()=>{},TFt=console.warn.bind(console),NFt=console.error.bind(console);function DFt(t={}){return typeof t.debug!="function"&&(t.debug=Wke),typeof t.info!="function"&&(t.info=Wke),typeof t.warn!="function"&&(t.warn=TFt),typeof t.error!="function"&&(t.error=NFt),t}var Jke=`octokit-core.js/${bZ}${iA()}`,AC=class{static VERSION=bZ;static defaults(e){return class extends this{constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Cke.Collection,i={baseUrl:Kx.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent}${Jke}`:Jke,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=Kx.defaults(i),this.graphql=jke(this.request).defaults(i),this.log=DFt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=$ke(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var wZ="17.0.0";var OFt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
More info: ${c.url}`);letd=c.range&&c.range.length>0?c.range[0]?.start.line:void0,p=!1;for(letAofo)if(A.remote||A.path.endsWith(l)&&A.content===u){a.push({title:h,message:f,file:A.path,startLine:d}),p=!0;break}p||K(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}returna}};varTZ=z(require("fs"),1),NZ=z(require("path"),1);varBM=classt{buildx;constructor(e){this.buildx=e?.buildx||newRr}asyncgetCommand(e){returnawaitthis.buildx.getCommand(["history",...e])}asyncgetInspectCommand(e){returnawaitthis.getCommand(["inspect",...e])}asyncgetExportCommand(e){returnawaitthis.getCommand(["export",...e])}asyncinspect(e){letr=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);leti=awaitthis.getInspectCommand(r);returnawaitpt.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)thrownewError(n.stderr.trim());returnJSON.parse(n.stdout)})}asyncexport(e){if(!awaitthis.buildx.versionSatisfies(">=0.23.0"))thrownewError("Buildx >= 0.23.0 is required to export a build record");letr="",i="",n=[];for(lethofe.refs){letf=h.split("/");if(f.length!=3)thrownewError(`Invalid build ref: ${h}`);n.push(f[2]),r||(r=f[0]),i||(i=f[1])}if(n.length===0)thrownewError("No build refs provided");lets=NZ.default.join(fr.tmpDir(),"export");le(`exporting build record to ${s}`),TZ.default.mkdirSync(s,{recursive:!0}),awaitthis.buildx.versionSatisfies("<0.24.0")&&awaitke.sleep(3);leto={};if(!e.noSummaries)for(lethofn)awaitthis.inspect({ref:h,builder:r}).then(f=>{letd="";f.Error&&f.Status!=="canceled"&&(f.Error.Message?d=f.Error.Message:f.Error.Name&&f.Error.Logs&&(d=`=> ${f.Error.Name}
${f.Error.Logs}`)),o[h]={name:f.Name,status:f.Status,duration:ke.formatDuration(f.Duration),numCachedSteps:f.NumCachedSteps,numTotalSteps:f.NumTotalSteps,numCompletedSteps:f.NumCompletedSteps,defaultPlatform:f.Platform?.[0],error:d}});leta=NZ.default.join(s,`${t.exportFilename(n)}.dockerbuild`),c=["--builder",r,"--output",a,...n];awaitthis.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");letl=awaitthis.getExportCommand(c);awaitpt.getExecOutput(l.command,l.args);letu=TZ.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:u.size,builderName:r,nodeName:i,refs:n,summaries:o}}staticexportFilename(e){letr=`${Vt.context.repo.owner}~${Vt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;returne.length>1&&(r+=`+${e.length-1}`),r}};varWje=z(require("fs"),1),dse=z(require("path"),1);varsQe=z(require("os"),1);functionrR(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionDZ(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}functioniR(t,e,r){leti=newOZ(t,e,r);process.stdout.write(i.toString()+sQe.EOL)}varnQe="::",OZ=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){lete=nQe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letiinthis.properties)if(this.properties.hasOwnProperty(i)){letn=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${KFt(n)}`)}}returne+=`${nQe}${YFt(this.message)}`,e}};functionYFt(t){returnrR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionKFt(t){returnrR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varlQe=z(require("os"),1);varaQe=require("os"),nR=require("fs"),PZ=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},{access:XFt,appendFile:ZFt,writeFile:eUt}=nR.promises,oQe="GITHUB_STEP_SUMMARY";varkZ=class{constructor(){this._buffer=""}filePath(){returnPZ(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[oQe];if(!e)thrownewError(`Unable to find environment variable for $${oQe}. Check if your runtime environment supports job summaries.`);try{yieldXFt(e,nR.constants.R_OK|nR.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,i={}){letn=Object.entries(i).map(([s,o])=>`${s}="${o}"`).join("");returnr?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){returnPZ(this,void0,void0,function*(){letr=!!e?.overwrite,i=yieldthis.filePath();returnyield(r?eUt:ZFt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnPZ(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(aQe.EOL)}addCodeBlock(e,r){leti=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);returnthis.addRaw(n).addEOL()}addList(e,r=!1){leti=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(n=>{lets=n.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:l,rowspan:u}=o,h=a?"th":"td",f=Object.assign(Object.assign({},l&&{colspan:l}),u&&{rowspan:u});returnthis.wrap(h,c,f)}).join("");returnthis.wrap("tr",s)}).join(""),i=this.wrap("table",r);returnthis.addRaw(i).addEOL()}addDetails(e,r){leti=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Objec
`," Line feed \\n"]]),cLe=new Map([...cte,["\\"," Backslash \\"],["/"," Forward slash /"]]);function lLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of cLe)if(t.includes(e))throw new Error(`Theartifactnameisnotvalid:${t}.Containsthefollowingcharacter:${r}
ThesecharactersarenotallowedintheartifactnameduetolimitationswithcertainfilesystemssuchasNTFS.Tomaintainfilesystemagnosticbehavior,thesecharactersareintentionallynotallowedtopreventpotentialproblemswithdownloadsondifferentfilesystems.`);ir("Artifact name is valid!")}function lte(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of cte)if(t.includes(e))throw new Error(`Thepathforoneofthefilesinartifactisnotvalid:${t}.Containsthefollowingcharacter:${r}
`)}var dLe=z(fLe(),1);function lf(){return`@actions/artifact-${dLe.version}`}var kC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`:${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Nu=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},tp=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},cA=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},rp=class extends Error{constructor(e){let r=`Unabletomakerequest:${e}
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};rp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};eE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var dF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uf(){let t=_M(),e=SM(t);if(!e.scp)throw dF;let r=e.scp.split(" ");if(r.length===0)throw dF;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw dF;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return jt(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),jt(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw dF}function pLe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vM(r),vM(encodeURIComponent(r)))}catch(e){jt(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function mLe(t){if(typeof t!="object"||t===null){jt("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&pLe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&pLe(t.signed_url)}var pF=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},ute=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=_M();this.baseUrl=hQe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Xc(e,[new xm(s)])}request(e,r,i,n){return pF(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;jt(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>pF(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return pF(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),jt(`[Response] - ${a.message.statusCode}`),jt(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let l=JSON.parse(n);if(mLe(l),jt(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:l};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,l.msg){if(eE.isUsageErrorMessage(l.msg))throw new eE;i=`${i}: ${l.msg}`}}catch(a){if(a instanceof SyntaxError&&jt(`Raw Body: ${n}`),a instanceof eE)throw a;if(rp.isNetworkErrorCode(a?.code))throw new rp(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);ir(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Xn.BadGateway,Xn.GatewayTimeout,Xn.InternalServerError,Xn.ServiceUnavailable,Xn.TooManyRequests].includes(e):!1}sleep(e){return pF(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function hf(t){let e=new ute(lf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new fF(e)}var LC=z(require("fs"),1);var QC=require("path");function ALe(t){if(!LC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not
Areyoutryingtodownloadfromadifferentrun?Tryspecifyingagithub-tokenwith\`actions:read\` scope.`);c.length>1&&Ms("Multiple artifacts found, defaulting to first.");letl={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yieldi.GetSignedArtifactURL(l);ir(`Redirecting to blob download url: ${Tje(u)}`);try{ir(`Starting download of artifact to: ${r}`);leth=yieldNje(u,r,e?.skipDecompress);ir("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==h.sha256Digest&&(n=!0,jt(`Computed digest: ${h.sha256Digest}`),jt(`Expected digest: ${e.expectedHash}`))}catch(h){thrownewError(`Unable to download and extract artifact: ${h.message}`)}return{downloadPath:r,digestMismatch:n}})}functionPje(){returnPI(this,arguments,void0,function*(t=fQe()){return(yieldSZt(t))?jt(`Artifact destination folder already exists: ${t}`):(jt(`Artifact destination folder does not exist, creating: ${t}`),yielduse.default.mkdir(t,{recursive:!0})),t})}varvZt=5,_Zt=[400,401,403,404,422];functionkI(t,e=vZt,r=_Zt){vari;if(e<=0)return[{enabled:!1},t.request];letn={enabled:!0};r.length>0&&(n.doNotRetry=r);lets=Object.assign(Object.assign({},t.request),{retries:e});returnjt(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}varkje="6.0.0";functionNE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);leti=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");returne(r).then(o=>{leta=o.headers["x-github-request-id"];returnt.log.info(`${n.method}${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{leta=o.response?.headers["x-github-request-id"]||"UNKNOWN";throwt.log.error(`${n.method}${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}NE.VERSION=kje;varMje=z(Qje(),1);varxZt="0.0.0-development";functionRZt(t){returnt.request!==void0}asyncfunctionLje(t,e,r,i){if(!RZt(r)||!r?.request.request)throwr;if(r.status>=400&&!t.doNotRetry.includes(r.status)){letn=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throwe.retry.retryRequest(r,n,s)}throwr}asyncfunctionTZt(t,e,r,i){letn=newMje.default;returnn.on("failed",function(s,o){leta=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)returnc*t.retryAfterBaseValue}),n.schedule(NZt.bind(null,t,e,r),i)}asyncfunctionNZt(t,e,r,i){letn=awaitr(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){lets=newKd(n.data.errors[0].message,500,{request:i,response:n});returnLje(t,e,s,i)}returnn}functionDE(t,e){letr=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};returnr.enabled&&(t.hook.error("request",Lje.bind(null,r,i)),t.hook.wrap("request",TZt.bind(null,r,i))),i}DE.VERSION=xZt;varFje=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};functionOq(t,e,r,i,n){returnFje(this,void0,void0,function*(){vars;let[o,a]=kI(xE),c={log:void0,userAgent:lf(),previews:void0,retry:o,request:a},u=yieldRA(n,c,DE,NE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(u.status!==200)thrownewNu(`Invalid response from GitHub API: ${u.status} (${(s=u?.headers)===null||s===void0?void0:s["x-github-request-id"]})`);if(u.data.artifacts.length===0)thrownewtp(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);leth=u.data.artifacts[0];returnu.data.artifacts.length>1&&(h=u.data.artifacts.sort((f,d)=>d.id-f.id)[0],jt(`More than one artifact found for a single name, returning newest (id: ${h.id})`)),{artifact:{name:h.name,id:h.id,size:h.size_in_bytes,createdAt:h.created_at?newDate(h.created_at):void0,digest:h.digest}}})}functionUje(t){returnFje(this,void0,void0,function*(){vare;letr=hf(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=uf(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Rn.create({value:t})},o=yieldr.ListArtifacts(s);if(o.artifacts.length===0)thrownewtp(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);leta=o.artifacts[0];returno.artifacts.length>1&&(a=o.artifacts.sort((c,l)=>Number(l.databaseId)-Number(c.databaseId))[0],jt(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?vc.toDate(a.createdAt):void0,digest:(e=a.digest)===null||e===void0?void0:e.value}}})}varqje=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})};functionGje(t,e,r,i,n){returnqje(this,void0,void0,function*(){vars;let[o,a]=kI(xE),c={log:void0,userAgent:lf(),previews:void0,retry:o,request:a},l=RA(n,c,DE,NE),u=yieldOq(t,e,r,i,n),h=yieldl.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:u.artifact.id});if(h.status!==204)thrownewNu(`Invalid response from GitHub API: ${h.status} (${(s=h?.headers)===null||s===void0?void0:s["x-github-request-id"]})`);return{id:u.artifact.id}})}functionHje(t){returnqje(this,void0,void0,function*(){lete=hf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Rn.create({value:t})},s=yielde.ListArtifacts(n);if(s.artifacts.length===0)thrownewtp(`Artifact not found for name: ${t}`);leto=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],jt(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));leta={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yielde.DeleteArtifact(a);returnir(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}varjje=function(t,e,r,i){functionn(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(u){try{l(i.next(u))}catch(h){o(h)}}functionc(u){try{l(i.throw(u))}catch(h){o(h)}}functionl(u){u.done?s(u.value):n(u.value).then(a,c)}l((i=i.apply(t,e||[])).next())})},Pq=mQe(),kq=100,DZt=Math.ceil(Pq/kq);functionzje(t,e,r,i){returnjje(this,arguments,void0,function*(n,s,o,a,c=!1){ir(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);letl=[],[u,h]=kI(xE),f={log:void0,userAgent:lf(),previews:void0,retry:u,request:h},d=RA(a,f,DE,NE),p=1,{data:A}=yieldd.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:kq,page:p}),E=Math.ceil(A.total_count/kq),y=A.total_count;y>Pq&&(Ms(`Workflow run ${n} has ${y} artifacts, exceeding the limit of ${Pq}. Results will be incomplete as only the first ${Pq} artifacts will be returned`),E=DZt);for(letbofA.artifacts)l.push({name:b.name,id:b.id,size:b.size_in_bytes,createdAt:b.created_at?newDate(b.created_at):void0,digest:b.digest});for(p++,p;p<=E;p++){jt(`Fetching page ${p} of artifact list`);let{data:b}=yieldd.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:kq,page:p});for(letCofb.artifacts)l.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?newDate(C.created_at):void0,digest:C.digest})}returnc&&(l=$je(l)),ir(`Found ${l.length} artifact(s)`),{artifacts:l}})}functionVje(){returnjje(this,arguments,void0,function*(t=!1){lete=hf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yielde.ListArtifacts(n)).artifacts.map(a=>{varc;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?vc.toDate(a.createdAt):void0,digest:(c=a.digest)===null||c===void0?void0:c.value}});returnt&&(o=$je(o)),ir(`Found ${o.length} artifact(s)`),{artifacts:o}})}function$je(t){t.sort((i,n)=>n.id-i.id);lete=[],r=newSet
`}return d.replace(/\n$/,"")}e.exports=s})),Zo=Ai(((t,e)=>{var r=$T(),i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function s(a){let c={};return a!==null&&Object.keys(a).forEach(function(l){a[l].forEach(function(u){c[String(u)]=l})}),c}function o(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(i.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=s(c.styleAliases||null),n.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=o})),Kje=Ai(((t,e)=>{var r=$T(),i=Zo();function n(a,c){let l=[];return a[c].forEach(function(u){let h=l.length;l.forEach(function(f,d){f.tag===u.tag&&f.kind===u.kind&&f.multi===u.multi&&(h=d)}),l[h]=u}),l}function s(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){l.multi?(a.multi[l.kind].push(l),a.multi.fallback.push(l)):a[l.kind][l.tag]=a.fallback[l.tag]=l}for(let l=0,u=arguments.length;l<u;l+=1)arguments[l].forEach(c);return a}function o(a){return this.extend(a)}o.prototype.extend=function(c){let l=[],u=[];if(c instanceof i)u.push(c);else if(Array.isArray(c))u=u.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit)))c.implicit&&(l=l.concat(c.implicit)),c.explicit&&(u=u.concat(c.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(f){if(!(f instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(f){if(!(f instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let h=Object.create(o.prototype);return h.implicit=(this.implicit||[]).concat(l),h.explicit=(this.explicit||[]).concat(u),h.compiledImplicit=n(h,"implicit"),h.compiledExplicit=n(h,"explicit"),h.compiledTypeMap=s(h.compiledImplicit,h.compiledExplicit),h},e.exports=o})),Xje=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),Zje=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),eze=Ai(((t,e)=>{e.exports=new(Zo())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),tze=Ai(((t,e)=>{e.exports=new(Kje())({explicit:[Xje(),Zje(),eze()]})})),rze=Ai(((t,e)=>{var r=Zo();function i(o){if(o===null)return!0;let a=o.length;return a===1&&o==="~"||a===4&&(o==="null"||o==="Null"||o==="NULL")}function n(){return null}function s(o){return o===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:n,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),ize=Ai(((t,e)=>{var r=Zo();function i(o){if(o===null)return!1;let a=o.length;return a===4&&(o==="true"||o==="True"||o==="TRUE")||a===5&&(o==="false"||o==="False"||o==="FALSE")}function n(o){return o==="true"||o==="True"||o==="TRUE"}function s(o){return Object.prototype.toString.call(o)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scal
`;case118:return"\v";case102:return"\f";case114:return"\r";case101:return"\x1B";case32:return" ";case34:return'"';case47:return"/";case92:return"\\";case78:return"\x85";case95:return"\xA0";case76:return"\u2028";case80:return"\u2029";default:return""}}functionW(m){returnm<=65535?String.fromCharCode(m):String.fromCharCode((m-65536>>10)+55296,(m-65536&1023)+56320)}functionX(m,N,L){N==="__proto__"?Object.defineProperty(m,N,{configurable:!0,enumerable:!0,writable:!0,value:L}):m[N]=L}varue=newArray(256),he=newArray(256);for(letm=0;m<256;m++)ue[m]=U(m)?1:0,he[m]=U(m);functionCe(m,N){this.input=m,this.filename=N.filename||null,this.schema=N.schema||s,this.onWarning=N.onWarning||null,this.legacy=N.legacy||!1,this.json=N.json||!1,this.listener=N.listener||null,this.maxDepth=typeofN.maxDepth=="number"?N.maxDepth:100,this.maxMergeSeqLength=typeofN.maxMergeSeqLength=="number"?N.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=m.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}functionne(m,N){letL={name:m.filename,buffer:m.input.slice(0,-1),position:m.position,line:m.line,column:m.position-m.lineStart};returnL.snippet=n(L),newi(N,L)}functionee(m,N){throwne(m,N)}functionBe(m,N){m.onWarning&&m.onWarning.call(null,ne(m,N))}functionGe(m,N,L){letq=m.anchorMapTransactions;if(q.length!==0){letH=q[q.length-1];o.call(H,N)||(H[N]={existed:o.call(m.anchorMap,N),value:m.anchorMap[N]})}m.anchorMap[N]=L}functionnt(m){m.anchorMapTransactions.push(Object.create(null))}functionHe(m){letN=m.anchorMapTransactions.pop(),L=m.anchorMapTransactions;if(L.length===0)return;letq=L[L.length-1],H=Object.keys(N);for(letie=0,B=H.length;ie<B;ie+=1){lette=H[ie];o.call(q,te)||(q[te]=N[te])}}functionAt(m){letN=m.anchorMapTransactions.pop(),L=Object.keys(N);for(letq=L.length-1;q>=0;q-=1){letH=N[L[q]];H.existed?m.anchorMap[L[q]]=H.value:deletem.anchorMap[L[q]]}}functionOt(m){return{position:m.position,line:m.line,lineStart:m.lineStart,lineIndent:m.lineIndent,firstTabInLine:m.firstTabInLine,tag:m.tag,anchor:m.anchor,kind:m.kind,result:m.result}}functionxt(m,N){m.position=N.position,m.line=N.line,m.lineStart=N.lineStart,m.lineIndent=N.lineIndent,m.firstTabInLine=N.firstTabInLine,m.tag=N.tag,m.anchor=N.anchor,m.kind=N.kind,m.result=N.result}varKt={YAML:function(N,L,q){N.version!==null&&ee(N,"duplication of %YAML directive"),q.length!==1&&ee(N,"YAML directive accepts exactly one argument");letH=/^([0-9]+)\.([0-9]+)$/.exec(q[0]);H===null&&ee(N,"ill-formed argument of the YAML directive");letie=parseInt(H[1],10),B=parseInt(H[2],10);ie!==1&&ee(N,"unacceptable YAML version of the document"),N.version=q[0],N.checkLineBreaks=B<2,B!==1&&B!==2&&Be(N,"unsupported YAML version of the document")},TAG:function(N,L,q){letH;q.length!==2&&ee(N,"TAG directive accepts exactly two arguments");letie=q[0];H=q[1],y.test(ie)||ee(N,"ill-formed tag handle (first argument) of the TAG directive"),o.call(N.tagMap,ie)&&ee(N,'there is a previously declared suffix for "'+ie+'" tag handle'),b.test(H)||ee(N,"ill-formed tag prefix (second argument) of the TAG directive");try{H=decodeURIComponent(H)}catch{ee(N,"tag prefix is malformed: "+H)}N.tagMap[ie]=H}};functiongt(m,N,L,q){if(N<L){letH=m.input.slice(N,L);if(q)for(letie=0,B=H.length;ie<B;ie+=1){lette=H.charCodeAt(ie);te===9||te>=32&&te<=1114111||ee(m,"expected valid JSON character")}elsep.test(H)&&ee(m,"the stream contains non-printable characters");m.result+=H}}functionDr(m,N,L,q){r.isObject(L)||ee(m,"cannot merge mappings; the provided source object is unacceptable");letH=Object.keys(L);for(letie=0,B=H.length;ie<B;ie+=1){lette=H[ie];o.call(N,te)||(X(N,te,L[te]),q[te]=!0)}}functionF(m,N,L,q,H,ie,B,te,de){if(Array.isArray(H)){H=Array.prototype.slice.call(H);for(letpe=0,Ae=H.length;pe<Ae;pe+=1)Array.isArray(H[pe])&&ee(m,"nested arrays are not supported inside keys"),typeofH=="object"&&C(H[pe])==="[object Object]"&&(H[p
`,N-1))}function w(m,N,L){let q,H,ie,B,te,de,pe=m.kind,Ae=m.result,we=m.input.charCodeAt(m.position);if(M(we)||T(we)||we===35||we===38||we===42||we===33||we===124||we===62||we===39||we===34||we===37||we===64||we===96)return!1;if(we===63||we===45){let Ee=m.input.charCodeAt(m.position+1);if(M(Ee)||L&&T(Ee))return!1}for(m.kind="scalar",m.result="",q=H=m.position,ie=!1;we!==0;){if(we===58){let Ee=m.input.charCodeAt(m.position+1);if(M(Ee)||L&&T(Ee))break}else if(we===35){if(M(m.input.charCodeAt(m.position-1)))break}else{if(m.position===m.lineStart&&ae(m)||L&&T(we))break;if(I(we))if(B=m.line,te=m.lineStart,de=m.lineIndent,J(m,!1,-1),m.lineIndent>=N){ie=!0,we=m.input.charCodeAt(m.position);continue}else{m.position=H,m.line=B,m.lineStart=te,m.lineIndent=de;break}}ie&&(gt(m,q,H,!1),ye(m,m.line-B),q=H=m.position,ie=!1),D(we)||(H=m.position+1),we=m.input.charCodeAt(++m.position)}return gt(m,q,H,!1),m.result?!0:(m.kind=pe,m.result=Ae,!1)}function R(m,N){let L,q,H=m.input.charCodeAt(m.position);if(H!==39)return!1;for(m.kind="scalar",m.result="",m.position++,L=q=m.position;(H=m.input.charCodeAt(m.position))!==0;)if(H===39)if(gt(m,L,m.position,!0),H=m.input.charCodeAt(++m.position),H===39)L=m.position,m.position++,q=m.position;else return!0;else I(H)?(gt(m,L,q,!0),ye(m,J(m,!1,N)),L=q=m.position):m.position===m.lineStart&&ae(m)?ee(m,"unexpected end of the document within a single quoted scalar"):(m.position++,D(H)||(q=m.position));ee(m,"unexpected end of the stream within a single quoted scalar")}function G(m,N){let L,q,H,ie=m.input.charCodeAt(m.position);if(ie!==34)return!1;for(m.kind="scalar",m.result="",m.position++,L=q=m.position;(ie=m.input.charCodeAt(m.position))!==0;){if(ie===34)return gt(m,L,m.position,!0),m.position++,!0;if(ie===92){if(gt(m,L,m.position,!0),ie=m.input.charCodeAt(++m.position),I(ie))J(m,!1,N);else if(ie<256&&ue[ie])m.result+=he[ie],m.position++;else if((H=Q(ie))>0){let B=H,te=0;for(;B>0;B--)ie=m.input.charCodeAt(++m.position),(H=j(ie))>=0?te=(te<<4)+H:ee(m,"expected hexadecimal character");m.result+=W(te),m.position++}else ee(m,"unknown escape sequence");L=q=m.position}else I(ie)?(gt(m,L,q,!0),ye(m,J(m,!1,N)),L=q=m.position):m.position===m.lineStart&&ae(m)?ee(m,"unexpected end of the document within a double quoted scalar"):(m.position++,D(ie)||(q=m.position))}ee(m,"unexpected end of the stream within a double quoted scalar")}function oe(m,N){let L=!0,q,H,ie,B=m.tag,te,de=m.anchor,pe,Ae,we,Ee,Ue=Object.create(null),De,rt,ct,er=m.input.charCodeAt(m.position);if(er===91)pe=93,Ee=!1,te=[];else if(er===123)pe=125,Ee=!0,te={};else return!1;for(m.anchor!==null&&Ge(m,m.anchor,te),er=m.input.charCodeAt(++m.position);er!==0;){if(J(m,!0,N),er=m.input.charCodeAt(m.position),er===pe)return m.position++,m.tag=B,m.anchor=de,m.kind=Ee?"mapping":"sequence",m.result=te,!0;L?er===44&&ee(m,"expected the node content, but found ','"):ee(m,"missed comma between flow collection entries"),rt=De=ct=null,Ae=we=!1,er===63&&M(m.input.charCodeAt(m.position+1))&&(Ae=we=!0,m.position++,J(m,!0,N)),q=m.line,H=m.lineStart,ie=m.position,Mt(m,N,a,!1,!0),rt=m.tag,De=m.result,J(m,!0,N),er=m.input.charCodeAt(m.position),(we||m.line===q)&&er===58&&(Ae=!0,er=m.input.charCodeAt(++m.position),J(m,!0,N),Mt(m,N,a,!1,!0),ct=m.result),Ee?F(m,te,Ue,rt,De,ct,q,H,ie):Ae?te.push(F(m,null,Ue,rt,De,ct,q,H,ie)):te.push(De),J(m,!0,N),er=m.input.charCodeAt(m.position),er===44?(L=!0,er=m.input.charCodeAt(++m.position)):L=!1}ee(m,"unexpected end of the stream within a flow collection")}function be(m,N){let L,q=h,H=!1,ie=!1,B=N,te=0,de=!1,pe,Ae=m.input.charCodeAt(m.position);if(Ae===124)L=!1;else if(Ae===62)L=!0;else return!1;for(m.kind="scalar",m.result="";Ae!==0;)if(Ae=m.input.charCodeAt(++m.position),Ae===43||Ae===45)h===q?q=Ae===43?d:f:ee(m,"repeat of a chomping mode identifier");else if((pe=Z(Ae))>=0)pe===0?ee(m,"bad explicit indentation width of a block scalar; it cannot be less than one"):ie?ee(m,"repeat of an indentation width identifier"):(B=N+pe-1,ie=!0);else break;if(D(Ae)){do Ae=m.input.charCodeAt(++m.position);while(D(Ae));if(Ae===35)do Ae=m.input.charCod
`,H?1+te:te),H=!0,ie=!0,te=0;letwe=m.position;for(;!I(Ae)&&Ae!==0;)Ae=m.input.charCodeAt(++m.position);gt(m,we,m.position,!1)}return!0}functionNe(m,N){letL=m.tag,q=m.anchor,H=[],ie=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&Ge(m,m.anchor,H);letB=m.input.charCodeAt(m.position);for(;B!==0&&(m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,ee(m,"tab characters must not be used in indentation")),!(B!==45||!M(m.input.charCodeAt(m.position+1))));){if(ie=!0,m.position++,J(m,!0,-1)&&m.lineIndent<=N){H.push(null),B=m.input.charCodeAt(m.position);continue}lette=m.line;if(Mt(m,N,l,!1,!0),H.push(m.result),J(m,!0,-1),B=m.input.charCodeAt(m.position),(m.line===te||m.lineIndent>N)&&B!==0)ee(m,"bad indentation of a sequence entry");elseif(m.lineIndent<N)break}returnie?(m.tag=L,m.anchor=q,m.kind="sequence",m.result=H,!0):!1}functionRe(m,N,L){letq,H,ie,B,te=m.tag,de=m.anchor,pe={},Ae=Object.create(null),we=null,Ee=null,Ue=null,De=!1,rt=!1;if(m.firstTabInLine!==-1)return!1;m.anchor!==null&&Ge(m,m.anchor,pe);letct=m.input.charCodeAt(m.position);for(;ct!==0;){!De&&m.firstTabInLine!==-1&&(m.position=m.firstTabInLine,ee(m,"tab characters must not be used in indentation"));leter=m.input.charCodeAt(m.position+1),Or=m.line;if((ct===63||ct===58)&&M(er))ct===63?(De&&(F(m,pe,Ae,we,Ee,null,H,ie,B),we=Ee=Ue=null),rt=!0,De=!0,q=!0):De?(De=!1,q=!0):ee(m,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),m.position+=1,ct=er;else{if(H=m.line,ie=m.lineStart,B=m.position,!Mt(m,L,c,!1,!0))break;if(m.line===Or){for(ct=m.input.charCodeAt(m.position);D(ct);)ct=m.input.charCodeAt(++m.position);if(ct===58)ct=m.input.charCodeAt(++m.position),M(ct)||ee(m,"a whitespace character is expected after the key-value separator within a block mapping"),De&&(F(m,pe,Ae,we,Ee,null,H,ie,B),we=Ee=Ue=null),rt=!0,De=!1,q=!1,we=m.tag,Ee=m.result;elseif(rt)ee(m,"can not read an implicit mapping pair; a colon is missed");elsereturnm.tag=te,m.anchor=de,!0}elseif(rt)ee(m,"can not read a block mapping entry; a multiline key may not be an implicit key");elsereturnm.tag=te,m.anchor=de,!0}if((m.line===Or||m.lineIndent>N)&&(De&&(H=m.line,ie=m.lineStart,B=m.position),Mt(m,N,u,!0,q)&&(De?Ee=m.result:Ue=m.result),De||(F(m,pe,Ae,we,Ee,Ue,H,ie,B),we=Ee=Ue=null),J(m,!0,-1),ct=m.input.charCodeAt(m.position)),(m.line===Or||m.lineIndent>N)&&ct!==0)ee(m,"bad indentation of a mapping entry");elseif(m.lineIndent<N)break}returnDe&&F(m,pe,Ae,we,Ee,null,H,ie,B),rt&&(m.tag=te,m.anchor=de,m.kind="mapping",m.result=pe),rt}functionat(m){letN=!1,L=!1,q,H,ie=m.input.charCodeAt(m.position);if(ie!==33)return!1;m.tag!==null&&ee(m,"duplication of a tag property"),ie=m.input.charCodeAt(++m.position),ie===60?(N=!0,ie=m.input.charCodeAt(++m.position)):ie===33?(L=!0,q="!!",ie=m.input.charCodeAt(++m.position)):q="!";letB=m.position;if(N){doie=m.input.charCodeAt(++m.position);while(ie!==0&&ie!==62);m.position<m.length?(H=m.input.slice(B,m.position),ie=m.input.charCodeAt(++m.position)):ee(m,"unexpected end of the stream within a verbatim tag")}else{for(;ie!==0&&!M(ie);)ie===33&&(L?ee(m,"tag suffix cannot contain exclamation marks"):(q=m.input.slice(B-1,m.position+1),y.test(q)||ee(m,"named tag handle cannot contain such characters"),L=!0,B=m.position+1)),ie=m.input.charCodeAt(++m.position);H=m.input.slice(B,m.position),E.test(H)&&ee(m,"tag suffix cannot contain flow indicator characters")}H&&!b.test(H)&&ee(m,"tag name cannot contain such characters: "+H);try{H=decodeURIComponent(H)}catch{ee(m,"tag name is malformed: "+H)}returnN?m.tag=H:o.call(m.tagMap,q)?m.tag=m.tagMap[q]+H:q==="!"?m.tag="!"+H:q==="!!"?m.tag="tag:yaml.org,2002:"+H:ee(m,'undeclared tag handle "'+q+'"'),!0}functionvt(m){letN=m.input.charCodeAt(m.position);if(N!==38)return!1;m.anchor!==null&&ee(m,"duplication of an anchor property"),N=m.input.charCodeAt(++m.position);letL=m.position;for(;N!==0&&!M(N)&&!T(N);)N=m.input.charCodeAt(++m.position);returnm.position===L&&ee(m,"name of an anchor node must contain at least one character"),m.anchor=m.input.slice(L,m.position),
`),m.charCodeAt(0)===65279&&(m=m.slice(1)));let L=new Ce(m,N),q=m.indexOf("\0");for(q!==-1&&(L.position=q,ee(L,"null byte is not allowed in input")),L.input+="\0";L.input.charCodeAt(L.position)===32;)L.lineIndent+=1,L.position+=1;for(;L.position<L.length-1;)tr(L);return L.documents}function ve(m,N,L){N!==null&&typeof N=="object"&&typeof L>"u"&&(L=N,N=null);let q=Br(m,L);if(typeof N!="function")return q;for(let H=0,ie=q.length;H<ie;H+=1)N(q[H])}function re(m,N){let L=Br(m,N);if(L.length!==0){if(L.length===1)return L[0];throw new i("expected a single document in the stream, but found more")}}e.exports.loadAll=ve,e.exports.load=re})),HZt=Ai(((t,e)=>{var r=VT(),i=$T(),n=pse(),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,u=13,h=32,f=33,d=34,p=35,A=37,E=38,y=39,b=42,C=44,I=45,D=58,M=61,T=62,j=63,Q=64,Z=91,U=93,W=96,X=123,ue=124,he=125,Ce={};Ce[0]="\\0",Ce[7]="\\a",Ce[8]="\\b",Ce[9]="\\t",Ce[10]="\\n",Ce[11]="\\v",Ce[12]="\\f",Ce[13]="\\r",Ce[27]="\\e",Ce[34]='\\"',Ce[92]="\\\\",Ce[133]="\\N",Ce[160]="\\_",Ce[8232]="\\L",Ce[8233]="\\P";var ne=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ee=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Be(B,te){if(te===null)return{};let de={},pe=Object.keys(te);for(let Ae=0,we=pe.length;Ae<we;Ae+=1){let Ee=pe[Ae],Ue=String(te[Ee]);Ee.slice(0,2)==="!!"&&(Ee="tag:yaml.org,2002:"+Ee.slice(2));let De=B.compiledTypeMap.fallback[Ee];De&&o.call(De.styleAliases,Ue)&&(Ue=De.styleAliases[Ue]),de[Ee]=Ue}return de}function Ge(B){let te,de,pe=B.toString(16).toUpperCase();if(B<=255)te="x",de=2;else if(B<=65535)te="u",de=4;else if(B<=4294967295)te="U",de=8;else throw new i("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+te+r.repeat("0",de-pe.length)+pe}var nt=1,He=2;function At(B){this.schema=B.schema||n,this.indent=Math.max(1,B.indent||2),this.noArrayIndent=B.noArrayIndent||!1,this.skipInvalid=B.skipInvalid||!1,this.flowLevel=r.isNothing(B.flowLevel)?-1:B.flowLevel,this.styleMap=Be(this.schema,B.styles||null),this.sortKeys=B.sortKeys||!1,this.lineWidth=B.lineWidth||80,this.noRefs=B.noRefs||!1,this.noCompatMode=B.noCompatMode||!1,this.condenseFlow=B.condenseFlow||!1,this.quotingType=B.quotingType==='"'?He:nt,this.forceQuotes=B.forceQuotes||!1,this.replacer=typeof B.replacer=="function"?B.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ot(B,te){let de=r.repeat(" ",te),pe=0,Ae="",we=B.length;for(;pe<we;){let Ee,Ue=B.indexOf(`
`+B.slice(Ee+1):De+=B.slice(Ae),De.slice(1)}function tr(B){let te="",de=0;for(let pe=0;pe<B.length;de>=65536?pe+=2:pe++){de=ye(B,pe);let Ae=Ce[de];!Ae&&Dr(de)?(te+=B[pe],de>=65536&&(te+=B[pe+1])):te+=Ae||Ge(de)}return te}function Br(B,te,de){let pe="",Ae=B.tag;for(let we=0,Ee=de.length;we<Ee;we+=1){let Ue=de[we];B.replacer&&(Ue=B.replacer.call(de,String(we),Ue)),(L(B,te,Ue,!1,!1)||typeof Ue>"u"&&L(B,te,null,!1,!1))&&(pe!==""&&(pe+=","+(B.condenseFlow?"":" ")),pe+=B.dump)}B.tag=Ae,B.dump="["+pe+"]"}function ve(B,te,de,pe){let Ae="",we=B.tag;for(let Ee=0,Ue=de.length;Ee<Ue;Ee+=1){let De=de[Ee];B.replacer&&(De=B.replacer.call(de,String(Ee),De)),(L(B,te+1,De,!0,!0,!1,!0)||typeof De>"u"&&L(B,te+1,null,!0,!0,!1,!0))&&((!pe||Ae!=="")&&(Ae+=xt(B,te)),B.dump&&l===B.dump.charCodeAt(0)?Ae+="-":Ae+="- ",Ae+=B.dump)}B.tag=we,B.dump=Ae||"[]"}function re(B,te,de){let pe="",Ae=B.tag,we=Object.keys(de);for(let Ee=0,Ue=we.length;Ee<Ue;Ee+=1){let De="";pe!==""&&(De+=", "),B.condenseFlow&&(De+='"');let rt=we[Ee],ct=de[rt];B.replacer&&(ct=B.replacer.call(de,rt,ct)),L(B,te,rt,!1,!1)&&(B.dump.length>1024&&(De+="? "),De+=B.dump+(B.condenseFlow?'"':"")+":"+(B.condenseFlow?"":" "),L(B,te,ct,!1,!1)&&(De+=B.dump,pe+=De))}B.tag=Ae,B.dump="{"+pe+"}"}function m(B,te,de,pe){let Ae="",we=B.tag,Ee=Object.keys(de);if(B.sortKeys===!0)Ee.sort();else if(typeof B.sortKeys=="function")Ee.sort(B.sortKeys);else if(B.sortKeys)throw new i("sortKeys must be a boolean or a function");for(let Ue=0,De=Ee.length;Ue<De;Ue+=1){let rt="";(!pe||Ae!=="")&&(rt+=xt(B,te));let ct=Ee[Ue],er=de[ct];if(B.replacer&&(er=B.replacer.call(de,ct,er)),!L(B,te+1,ct,!0,!0,!0))continue;let Or=B.tag!==null&&B.tag!=="?"||B.dump&&B.dump.length>1024;Or&&(B.dump&&l===B.dump.charCodeAt(0)?rt+="?":rt+="? "),rt+=B.dump,Or&&(rt+=xt(B,te)),L(B,te+1,er,!0,Or)&&(B.dump&&l===B.dump.charCodeAt(0)?rt+=":":rt+=": ",rt+=B.dump,Ae+=rt)}B.tag=we,B.dump=Ae||"{}"}function N(B,te,de){let pe=de?B.explicitTypes:B.implicitTypes;for(let Ae=0,we=pe.length;Ae<we;Ae+=1){let Ee=pe[Ae];if((Ee.instanceOf||Ee.predicate)&&(!Ee.instanceOf||typeof te=="object"&&te instanceof Ee.instanceOf)&&(!Ee.predicate||Ee.predicate(te))){if(de?Ee.multi&&Ee.representName?B.tag=Ee.representName(te):B.tag=Ee.tag:B.tag="?",Ee.represent){let Ue=B.styleMap[Ee.tag]||Ee.defaultStyle,De;if(s.call(Ee.represent)==="[object Function]")De=Ee.represent(te,Ue);else if(o.call(Ee.represent,Ue))De=Ee.represent[Ue](te,Ue);else throw new i("!<"+Ee.tag+'> tag resolver accepts not "'+Ue+'" style');B.dump=De}return!0}}return!1}function L(B,te,de,pe,Ae,we,Ee){B.tag=null,B.dump=de,N(B,de,!1)||N(B,de,!0);let Ue=s.call(B.dump),De=pe;pe&&(pe=B.flowLevel<0||B.flowLevel>te);let rt=Ue==="[object Object]"||Ue==="[object Array]",ct,er;if(rt&&(ct=B.duplicates.indexOf(de),er=ct!==-1),(B.tag!==null&&B.tag!=="?"||er||B.indent!==2&&te>0)&&(Ae=!1),er&&B.usedDuplicates[ct])B.dump="*ref_"+ct;else{if(rt&&er&&!B.usedDuplicates[ct]&&(B.usedDuplicates[ct]=!0),Ue==="[object Object]")pe&&Object.keys(B.dump).length!==0?(m(B,te,B.dump,Ae),er&&(B.dump="&ref_"+ct+B.dump)):(re(B,te,B.dump),er&&(B.dump="&ref_"+ct+" "+B.dump));else if(Ue==="[object Array]")pe&&B.dump.length!==0?(B.noArrayIndent&&!Ee&&te>0?ve(B,te-1,B.dump,Ae):ve(B,te,B.dump,Ae),er&&(B.dump="&ref_"+ct+B.dump)):(Br(B,te,B.dump),er&&(B.dump="&ref_"+ct+" "+B.dump));else if(Ue==="[object String]")B.tag!=="?"&&at(B,B.dump,te,we,De);else{if(Ue==="[object Undefined]")return!1;if(B.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+Ue)}if(B.tag!==null&&B.tag!=="?"){let Or=encodeURI(B.tag[0]==="!"?B.tag.slice(1):B.tag).replace(/!/g,"%21");B.tag[0]==="!"?Or="!"+Or:Or.slice(0,18)==="tag:yaml.org,2002:"?Or="!!"+Or.slice(18):Or="!<"+Or+">",B.dump=Or+" "+B.dump}}return!0}function q(B,te){let de=[],pe=[];H(B,de,pe);let Ae=pe.length;for(let we=0;we<Ae;we+=1)te.duplicates.push(de[pe[we]]);te.usedDuplicates=new Array(Ae)}function H(B,te,de){if(B!==null&&typeof B=="object"){let pe=te.indexOf(B);if(pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(te.push(B),Array.isArray(B))for(let Ae=0,we=B.length;Ae<we;Ae+=1)H(B[Ae],t
`:""}e.exports.dump=ie})),pze=UZt(Ai(((t,e)=>{varr=GZt(),i=HZt();functionn(s,o){returnfunction(){thrownewError("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+o+" instead, which is now safe by default.")}}e.exports.Type=Zo(),e.exports.Schema=Kje(),e.exports.FAILSAFE_SCHEMA=tze(),e.exports.JSON_SCHEMA=oze(),e.exports.CORE_SCHEMA=aze(),e.exports.DEFAULT_SCHEMA=pse(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=i.dump,e.exports.YAMLException=$T(),e.exports.types={binary:uze(),float:sze(),map:eze(),null:rze(),pairs:fze(),set:dze(),timestamp:cze(),bool:ize(),int:nze(),merge:lze(),omap:hze(),seq:Zje(),str:Xje()},e.exports.safeLoad=n("safeLoad","load"),e.exports.safeLoadAll=n("safeLoadAll","loadAll"),e.exports.safeDump=n("safeDump","dump")}))(),1),{Type:QJr,Schema:LJr,FAILSAFE_SCHEMA:MJr,JSON_SCHEMA:FJr,CORE_SCHEMA:UJr,DEFAULT_SCHEMA:qJr,load:GJr,loadAll:HJr,dump:mze,YAMLException:jJr,types:zJr,safeLoad:VJr,safeLoadAll:$Jr,safeDump:WJr}=pze.default,JJr=pze.default;varAze=z(require("os"),1);varMq=classt{staticasyncwriteBuildSummary(e){letr=function(c,l,u=!1){return`<a href="${l}">${c}</a>`+(u?Aze.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void0,s=n?e.exportRes.summaries?.[n]:void0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void0,a=dz.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){letc=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){letc=`./${Vt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${ke.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}elsee.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");letc=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],l;for(letuine.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,u)){leth=e.exportRes.summaries[u];c.push([{data:`<code>${u.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${ke.stringToUnicodeEntities(h.name)}</strong>`},
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=Sc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Sc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=ke.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&lh(s),[n,s]}};var gse=z(require("fs"),1),gze=z(require("path"),1);var Fq=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Rr,this.metadataFilename=`bake-metadata-${ke.generateRandomString()}.json`}getMetadataFilePath(){return gze.default.join(fr.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!gse.default.existsSync(e))return;let r=gse.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!ke.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await pt.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Sc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=ke.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Sc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)
`)[0])}staticasyncisHeadDetached(){returnawaitt.exec(["branch","--show-current"]).then(e=>e.length==0)}staticasyncgetDetachedRef(){lete=awaitt.exec(["show","-s","--pretty=%D"]);K(`detached HEAD ref: ${e}`);letr=e.replace(/^grafted, /,"").trim();if(r==="HEAD")returnawaitt.inferRefFromHead();leti=r.match(/^HEAD, (.*)$/);if(!i||!i[1])thrownewError(`Cannot find detached HEAD ref in "${e}"`);letn=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;leto=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;leta=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;thrownewError(`Unsupported detached HEAD ref in "${e}"`)}staticasyncexec(e=[]){returnawaitpt.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)thrownewError(r.stderr);returnr.stdout.trim()})}staticasyncinferRefFromHead(){lete=awaitt.findContainingRef("refs/heads/");if(e)returne;letr=awaitt.findContainingRef("refs/remotes/");if(r){lets=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);returns?`refs/heads/${s[1]}`:r}leti=awaitt.exec(["tag","--contains","HEAD"]),[n]=i.split(`
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,i){return await pt.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Mrt="application/vnd.in-toto+json";var Frt="https://fulcio.sigstore.dev",Urt="https://rekor.sigstore.dev",qrt="https://timestamp.sigstore.dev",D0="https://search.sigstore.dev";var Qwr="slsaprovenance1",Ag=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new im,this.imageTools=e?.imageTools||new oG}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);le(`UsingSigstoresigningendpoint:${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await Li("Creating Sigstore protobuf signing config",async()=>{let o=fr.tmpName({template:"signing-config-XXXXXX.json",tmpdir:fr.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await pt.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),le(JSON.stringify(JSON.parse(rd.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await Li(`Signingattestationmanifest${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];le(`[command]${this.cosign.binPath}${[...u,l].join(" ")}`);let h=await pt.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=im.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(A=>`-[${A.code}]${A.message}:${A.detail}`).join(`
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosignverifycommandfailedwith:${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);le(`UsingSigstoresigningendpoint:${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await Li(`Signing${s}`,async()=>{let o=n[s],a=mg.default.join(mg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){hr(`Nosubjectsfoundinprovenance${s},skipsigning.`);return}let l=await t.signPayload({data:o,type:Mrt},i),u=t.parseBundle(l);le("Provenance blob signed for:");for(let h of c){let[f,d]=Object.entries(h.digest)[0]||[];le(`-${h.name}(${f}:${d})`)}u.tlogID&&le(`AttestationsignatureuploadedtoRekortransparencylog:${D0}?logIndex=${u.tlogID}`),le(`WritingSigstorebundleto:${a}`),rd.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[s]={...u,bundlePath:a,subjects:c}})}catch(i){throw new Error(`SigningBuildKitprovenanceblobsfailed:${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=mg.default.dirname(n);await Li(`Verifyingsignaturebundle${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=mg.default.join(o,a.name);le(`Verifyingsignedartifact${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Qwr];(r.noTransparencyLog||!s.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await pt.getExecOutput(this.cosign.binPath,[...l,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:l}}})}return i}async verifyArtifact(e,r,i){le("Verifying keyless verification bundle signature");let n=JSON.parse(rd.default.readFileSync(r,"utf-8")),s=(0,U1.bundleFromJSON)(n);le("Fetching Sigstore TUF trusted root metadata");let o=await Hrt.getTrustedRoot(),a=(0,mB.toTrustMaterial)(o);try{le("Verifying artifact signature");let c=(0,mB.toSignedEntity)(s,rd.default.readFileSync(e)),l=t.parseCertificate(s),u=s.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(i.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${p}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new mB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return K(`Sigstore.verifyArtifactsigner:${JSON.stringify(d)}`),{payload:n,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failedtoverifyartifactsignature:${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),le(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:Frt,rekorURL:e?void 0:Urt,tsaServerURL:qrt}}static noTransparencyLog(e){return e??Vt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=mg.default.join(e.localExportDir,"provenance.json");if(rd.default.existsSync(r))return{[r]:rd.default.readFileSync(r)};let i=rd.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>rd.default.existsSync(mg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of