varAJe=Object.create;varLW=Object.defineProperty;vardJe=Object.getOwnPropertyDescriptor;varfJe=Object.getOwnPropertyNames;varhJe=Object.getPrototypeOf,bJe=Object.prototype.hasOwnProperty;varMJe=(t,e)=>()=>(t&&(e=t(t=0)),e);varf=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nne=(t,e)=>{for(varrine)LW(t,r,{get:e[r],enumerable:!0})},mJe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnoffJe(e))!bJe.call(t,n)&&n!==r&&LW(t,n,{get:()=>e[n],enumerable:!(s=dJe(e,n))||s.enumerable});returnt};varF=(t,e,r)=>(r=t!=null?AJe(hJe(t)):{},mJe(e||!t||!t.__esModule?LW(r,"default",{value:t,enumerable:!0}):r,t));varLne=f(Eh=>{"use strict";varNut=require("net"),CJe=require("tls"),GW=require("http"),xne=require("https"),BJe=require("events"),vut=require("assert"),DJe=require("util");Eh.httpOverHttp=qJe;Eh.httpsOverHttp=IJe;Eh.httpOverHttps=RJe;Eh.httpsOverHttps=wJe;functionqJe(t){vare=newzu(t);returne.request=GW.request,e}functionIJe(t){vare=newzu(t);returne.request=GW.request,e.createSocket=Wne,e.defaultPort=443,e}functionRJe(t){vare=newzu(t);returne.request=xne.request,e}functionwJe(t){vare=newzu(t);returne.request=xne.request,e.createSocket=Wne,e.defaultPort=443,e}functionzu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||GW.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(vara=_ne(n,i,o),c=0,u=e.requests.length;c<u;++c){varp=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}DJe.inherits(zu,BJe.EventEmitter);zu.prototype.addRequest=function(e,r,s,n){vari=this,o=HW({request:e},i.options,_ne(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);functionc(){i.emit("free",a,o)}functionu(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};zu.prototype.createSocket=function(e,r){vars=this,n={};s.sockets.push(n);vari=HW({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),bl("making CONNECT request");varo=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();functiona(l){l.upgrade=!0}functionc(l,A,h){process.nextTick(function(){u(l,A,h)})}functionu(l,A,h){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){bl("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();varM=newError("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(h.length>0){bl("got illegal response body from proxy"),A.destroy();varM=newError("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}returnbl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=A,r(A)}functionp(l){o.removeAllListeners(),bl(`tunneling socket could not be established, cause=%s
`);A.push(g),i+=g.byteLength,M&&(i=null),n=t,s=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(Voe(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ez.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:je0(t)}if((typeof n=="string"||Ez.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Joe(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function a00(t,e=!1){return t instanceof ReadableStream&&($_(!Ez.isDisturbed(t),"The body has already been consumed."),$_(!t.locked,"The stream is locked.")),eae(t,e)}function c00(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function u00(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function p00(t){return{blob(){return Th(this,r=>{let s=$oe(this);return s===null?s="":s&&(s=n00(s)),new t00([r],{type:s})},t)},arrayBuffer(){return Th(this,r=>new Uint8Array(r).buffer,t)},text(){return Th(this,Yoe,t)},json(){return Th(this,A00,t)},formData(){return Th(this,r=>{let s=$oe(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=i00(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new joe;return i[xh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new joe;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return Th(this,r=>new Uint8Array(r),t)}}}function l00(t){Object.assign(t.prototype,p00(t))}async function Th(t,e,r){if(e00.brandCheck(t,r),tae(t))throw new TypeError("Body is unusable: Body has already been read");u00(t[xh]);let s=Je0(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[xh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Ke0(t[xh].body,i,n),s.promise)}function tae(t){let e=t[xh].body;return e!=null&&(e.stream.locked||Ez.isDisturbed(e.stream))}function A00(t){return JSON.parse(Yoe(t))}function $oe(t){let e=t[xh].headersList,r=Ze0(e);return r==="failure"?null:r}rae.exports={extractBody:eae,safelyExtractBody:a00,cloneBody:c00,mixinBody:l00,streamRegistry:Zoe,hasFinalizationRegistry:Koe,bodyUnusable:tae}});var dae=f((upt,Aae)=>{"use strict";var Ne=require("node:assert"),Ue=i0(),{channels:sae}=Ch(),J_=N_(),{RequestContentLengthMismatchError:md,ResponseContentLengthMismatchError:d00,RequestAbortedError:uae,HeadersTimeoutError:f00,HeadersOverflowError:h00,SocketError:sD,InformationalError:_h,BodyTimeoutError:b00,HTTPParserError:M00,ResponseExceededMaxSizeError:m00}=O0(),{kUrl:pae,kReset:Ps,kClient:tL,kParser:Rt,kBlocking:Bz,kRunning:Er,kPending:g00,kSize:nae,kWriting:gl,kQueue:Do,kNoRef:yz,kKeepAliveDefaultTimeout:z00,kHostHeader:O00,kPendingIdx:E00,kRunningIdx:bi,kError:Mi,kPipelining:tD,kSocket:Lh,kKeepAliveTimeoutValue:nD,kMaxHeadersSize:K_,kKeepAliveMaxTimeout:y00,kKeepAliveTimeoutThreshold:C00,kHeadersTimeout:B00,kBodyTimeout:D00,kStrictContentLength:rL,kMaxRequests:iae,kCounter:q00,kMaxResponseSize:I00,kOnError:R00,kResume:ml,kHTTPContext:lae}=dt(),Ea=Zie(),w00=Buffer.alloc(0),KB=Buffer[Symbol.species],ZB=Ue.addListener,S00=Ue.removeAllListeners,Z_;async function N00(){let t=process.env.JEST_WORKER_ID?T_():void 0,e;try{e=await WebAssembly.compile(roe())}catch{e=await WebAssembly.compile(t||T_())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ne(E1.ptr===r);let i=s-Ca+ya.byteOffset;return E1.onStatus(new KB(ya.buffer,i,n))||0},wasm_on_message_begin:r=>(Ne(E1.ptr===r),E1.onMessageBegin()||0),wasm_on_he
`}return sae.sendHeaders.hasSubscribers&&sae.sendHeaders.publish({request:e,headers:g,socket:h}),!c||A===0?aae(M,null,t,e,h,p,g,l):Ue.isBuffer(c)?aae(M,c,t,e,h,p,g,l):Ue.isBlobLike(c)?typeof c.stream=="function"?cae(M,c.stream(),t,e,h,p,g,l):L00(M,c,t,e,h,p,g,l):Ue.isStream(c)?_00(M,c,t,e,h,p,g,l):Ue.isIterable(c)?cae(M,c,t,e,h,p,g,l):Ne(!1),!0}function _00(t,e,r,s,n,i,o,a){Ne(i!==0||r[Er]===0,"stream body cannot be pipelined");let c=!1,u=new iD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){Ue.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let M=new uae;queueMicrotask(()=>h(M))}},h=function(M){if(!c){if(c=!0,Ne(n.destroyed||n[gl]&&r[Er]<=1),n.off("drain",l).off("error",h),e.removeListener("data",p).removeListener("end",h).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?Ue.destroy(e,M):Ue.destroy(e)}};e.on("data",p).on("end",h).on("error",h).on("close",A),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function aae(t,e,r,s,n,i,o,a){try{e?Ue.isBuffer(e)&&(Ne(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(Ne(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ml]()}catch(c){t(c)}}async function L00(t,e,r,s,n,i,o,a){Ne(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new md;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ps]=!0),r[ml]()}catch(c){t(c)}}async function cae(t,e,r,s,n,i,o,a){Ne(i!==0||r[Er]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,h)=>{Ne(c===null),n[Mi]?h(n[Mi]):c=A});n.on("close",u).on("drain",u);let l=new iD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(n[Mi])throw n[Mi];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{n.off("close",u).off("drain",u)}}var iD=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[gl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Mi])throw r[Mi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(i[rL])throw new md;process.emitWarning(new md)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ps]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),r!==null&&n!==r){if(s[rL])throw new md;process.emitWarning(new md)}e[Rt].timeout&&e[Rt].timeoutType===Qh&&e[Rt].timeout.refresh&&e[Rt].timeout.refresh(),s[ml]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[gl]=!1,e&&(Ne(s[Er]<=1,"pipeline should only contain this request"),n(e))}};Aae.exports=F00});var Oae=f((ppt,zae)=>{"use strict";var mi=require("node:assert"),{pipeline:Q00}=require("node:stream"),u0=i0(),{RequestContentLengthMismatchError:oL,RequestAbortedError:fae,SocketError:Dz,InformationalError:aL}=O0(),{kUrl:oD,kReset:cD,kClient:Ph,kRunning:uD,kPending:P00,kQueue:zl,kPendingIdx:cL,kRunningIdx:qo,kError:Ro,kSocket:v1,kStrictContentLength:k00,kOnError:uL,kMaxConcurrentStreams:gae,kHTTP2Session:Io,kResume:Ol,kSize:U00,kHTTPContext:G00}=dt(),Du=Symbol("open streams"),hae,bae=!1,aD;try{aD=require("node:http2")}catch{aD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:H00,HTTP2_HEADER_METHOD:X00,HTTP2_HEADER_PATH:V00,HTTP2_HEADER_SCHEME:j00,HTTP2_HEADER_CONTENT_LENGTH:$00,HTTP2_HEADER_EXPECT:Y00,HTTP2_HEADER_STATUS:J00}}=aD;function K00(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Z00(t,e){t[v1]=e,bae||(bae=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=aD.connect(t[oD],{createConnection:()=>e,peerMaxConcurrentStreams:t[gae]});r[Du]=0,r[Ph]=t,r[v1]=e,u0.addListener(r,"error",tt0),u0.addListener(r,"frameError",rt0),u0.addListener(r,"end",st0),u0.addListener(r,"goaway",nt0),u0.addListener(r,"close",function(){let{[Ph]:n}=this,{[v1]:i}=n,o=this[v1][Ro]||this[Ro]||new Dz("closed",u0.getSocketInfo(i));if(n[Io]=null,n.destroyed){mi(n[P00]===0);let a=n[zl].splice(n[qo]);for(let c=0;c<a.length;c++){let u=a[c];u0.errorRequest(n,u,o)}}}),r.unref(),t[Io]=r,e[Io]=r,u0.addListener(e,"error",function(n){mi(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ro]=n,this[Ph][uL](n)}),u0.addListener(e,"end",function(){u0.destroy(this,new Dz("other side closed",u0.getSocketInfo(this)))}),u0.addListener(e,"close",function(){let n=this[Ro]||new Dz("closed",u0.getSocketInfo(this));t[v1]=null,this[Io]!=null&&this[Io].destroy(n),t[cL]=t[qo],mi(t[uD]===0),t.emit("disconnect",t[oD],[t],n),t[Ol]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ot0(t,...n)},resume(){et0(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function et0(t){let e=t[v1];e?.destroyed===!1&&(t[U00]===0&&t[gae]===0?(e.unref(),t[Io].unref()):(e.ref(),t[Io].ref()))}function tt0(t){mi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[v1][Ro]=t,this[Ph][uL](t)}function rt0(t,e,r){if(r===0){let s=new aL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[v1][Ro]=s,this[Ph][uL](s)}}function st0(){let t=new Dz("other side closed",u0.getSocketInfo(this[v1]));this.destroy(t),u0.destroy(this[v1],t)}function nt0(t){let e=this[Ro]||new Dz(`HTTP/2: "GOAWAY" frame received with code ${t}`,u0.getSocketInfo(this)),r=this[Ph];if(r[v1]=null,r[G00]=null,this[Io]!=null&&(this[Io].destroy(e),this[Io]=null),u0.destroy(this[v1],e),r[qo]<r[zl].length){let s=r[zl][r[qo]];r[zl][r[qo]++]=null,u0.errorRequest(r,s,e),r[cL]=r[qo]}mi(r[uD]===0),r.emit("disconnect",r[oD],[r],e),r[Ol]()}function it0(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ot0(t,e){let r=t[Io],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return u0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let N=u[R+0],T=u[R+1];if(Array.isArray(T))for(let W=0;W<T.length;W++)l[N]?l[N]+=`,${T[W]}`:l[N]=T[W];else l[N]=T}let A,{hostname:h,port:M}=t[oD];l[H00]=i||`${h}${M?`:${M}`:""}`,l[X00]=s;let g=R=>{e.aborted||e.completed||(R=R||new fae,u0.errorRequest(t,e,R),A!=null&&u0.destroy(A,R),u0.destroy(p,R),t[zl][t[qo]++]=null,t[Ol]())};try{e.onConnect(g)}catch(R){u0.errorRequest
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!s.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Qb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),i=qb0.connect(this.connectOpts)):(Qb("Creating `net.Socket`: %o",this.connectOpts),i=Db0.connect(this.connectOpts)),await(0,Rb0.once)(i,"connect"),i}};xI.protocols=["http","https"];Ni.HttpProxyAgent=xI;function Sb0(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Zme=f(YI=>{"use strict";Object.defineProperty(YI,"__esModule",{value:!0});YI.state=void 0;YI.state={instrumenterImplementation:void 0}});var bge=f(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.state=void 0;tR.state={operationRequestMap:new WeakMap}});var jOe=f(nM=>{"use strict";Object.defineProperty(nM,"__esModule",{value:!0});var JO0=require("os"),KO0=require("util");function ZO0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var e30=ZO0(KO0);function t30(t,...e){process.stderr.write(`${e30.default.format(t,...e)}${JO0.EOL}`)}var _Oe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,QOe,$G=[],YG=[],z5=[];_Oe&&JG(_Oe);var POe=Object.assign(t=>kOe(t),{enable:JG,enabled:KG,disable:r30,log:t30});function JG(t){QOe=t,$G=[],YG=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?YG.push(new RegExp(`^${s.substr(1)}$`)):$G.push(new RegExp(`^${s}$`));for(let s of z5)s.enabled=KG(s.namespace)}function KG(t){if(t.endsWith("*"))return!0;for(let e of YG)if(e.test(t))return!1;for(let e of $G)if(e.test(t))return!0;return!1}function r30(){let t=QOe||"";return JG(""),t}function kOe(t){let e=Object.assign(r,{enabled:KG(t),destroy:s30,log:POe.log,namespace:t,extend:n30});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return z5.push(e),e}function s30(){let t=z5.indexOf(this);return t>=0?(z5.splice(t,1),!0):!1}function n30(t){let e=kOe(`${this.namespace}:${t}`);return e.log=this.log,e}var Q3=POe,UOe=new Set,m5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,O5,E5=Q3("azure");E5.log=(...t)=>{Q3.log(...t)};var ZG=["verbose","info","warning","error"];m5&&(VOe(m5)?GOe(m5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${m5}'; logging is not enabled. Acceptable values: ${ZG.join(", ")}.`));function GOe(t){if(t&&!VOe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${ZG.join(",")}`);O5=t;let e=[];for(let r of UOe)XOe(r)&&e.push(r.namespace);Q3.enable(e.join(","))}function i30(){return O5}var LOe={verbose:400,info:300,warning:200,error:100};function o30(t){let e=E5.extend(t);return HOe(E5,e),{error:g5(e,"error"),warning:g5(e,"warning"),info:g5(e,"info"),verbose:g5(e,"verbose")}}function HOe(t,e){e.log=(...r)=>{t.log(...r)}}function g5(t,e){let r=Object.assign(t.extend(e),{level:e});if(HOe(t,r),XOe(r)){let s=Q3.disable();Q3.enable(s+","+r.namespace)}return UOe.add(r),r}function XOe(t){return!!(O5&&LOe[t.level]<=LOe[O5])}function VOe(t){return ZG.includes(t)}nM.AzureLogger=E5;nM.createClientLogger=o30;nM.getLogLevel=i30;nM.setLogLevel=GOe});var rH=f(k3=>{"use strict";Object.defineProperty(k3,"__esModule",{value:!0});var iM=new WeakMap,y5=new WeakMap,P3=class t{constructor(){this.onabort=null,iM.set(this,[]),y5.set(this,!1)}get aborted(){if(!y5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return y5.get(this)}static get none(){return new t}addEventListener(e,r){if(!iM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");iM.get(this).push(r)}removeEventListener(e,r){if(!iM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=iM.get(this),n=s.indexOf(r);n>-1&&s.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 $Oe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=iM.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),y5.set(t,!0)}var eH=class extends Error{constructor(e){super(e),t
Polling status: ${n3e.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(r3e({state:r,stateProxy:s,isOperationError:a})),status:p}}return{response:u,status:p}}async function c3e(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:h,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:B,status:I}=await x30({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:O,getResourceLocation:o,isOperationError:c,options:n});if(o3e({status:I,response:B,state:r,stateProxy:s,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!n3e.includes(I)){let R=p?.(B);R&&M(R);let N=a?.(B,r);if(N!==void 0){let T=O!==N;r.config.operationLocation=N,u?.(N,T)}else u?.(O,!1)}h?.(r,B)}}function u3e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function p3e(t){return t.headers.location}function l3e(t){return t.headers["operation-location"]}function A3e(t){return t.headers["azure-asyncoperation"]}function W30(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function d3e(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=l3e(e),o=A3e(e),a=u3e({operationLocation:i,azureAsyncOperation:o}),c=p3e(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:W30({requestMethod:u,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function f3e(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 dH(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 m2.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}function _30(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return f3e({status:r,statusCode:t.statusCode})}function L30(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return f3e({status:i,statusCode:t.statusCode})}function dH(t){return t===202?"running":t<300?"succeeded":"failed"}function h3e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Q30(new Date(e)):r*1e3}}function b3e(t){let e=t.flatResponse.error;if(!e){m2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){m2.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 Q30(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function M3e(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return dH(e.rawResponse.statusCode);case"Body":return fH(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function P30(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return a3e({init:async()=>{let o=await n.sendInitialRequest(),a=d3e({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`))}functionDR0(){Object.keys(bS).forEach(function(t){deletebS[t]})}});varmS=f(gc=>{"use strict";gc.__esModule=!0;gc.HandlebarsEnvironment=YV;functionwBe(t){returnt&&t.__esModule?t:{default:t}}varv2=ms(),qR0=Kn(),jV=wBe(qR0),IR0=GV(),RR0=DBe(),wR0=XV(),MS=wBe(wR0),SR0=VV(),NR0="4.7.9";gc.VERSION=NR0;varvR0=8;gc.COMPILER_REVISION=vR0;varFR0=7;gc.LAST_COMPATIBLE_COMPILER_REVISION=FR0;varTR0={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"};gc.REVISION_CHANGES=TR0;var$V="[object Object]";functionYV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},IR0.registerDefaultHelpers(this),RR0.registerDefaultDecorators(this)}YV.prototype={constructor:YV,logger:MS.default,log:MS.default.log,registerHelper:function(e,r){if(v2.toString.call(e)===$V){if(r)thrownewjV.default("Arg not supported with multiple helpers");v2.extend(this.helpers,e)}elsethis.helpers[e]=r},unregisterHelper:function(e){deletethis.helpers[e]},registerPartial:function(e,r){if(v2.toString.call(e)===$V)v2.extend(this.partials,e);else{if(typeofr>"u")thrownewjV.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(v2.toString.call(e)===$V){if(r)thrownewjV.default("Arg not supported with multiple decorators");v2.extend(this.decorators,e)}elsethis.decorators[e]=r},unregisterDecorator:function(e){deletethis.decorators[e]},resetLoggedPropertyAccesses:function(){SR0.resetLoggedProperties()}};varxR0=MS.default.log;gc.log=xR0;gc.createFrame=v2.createFrame;gc.logger=MS.default});varNBe=f((gS,SBe)=>{"use strict";gS.__esModule=!0;functionJV(t){this.string=t}JV.prototype.toString=JV.prototype.toHTML=function(){return""+this.string};gS.default=JV;SBe.exports=gS.default});varvBe=f(KV=>{"use strict";KV.__esModule=!0;KV.wrapHelper=WR0;functionWR0(t,e){if(typeoft!="function")returnt;varr=function(){varn=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(n),t.apply(this,arguments)};returnr}});varLBe=f(cA=>{"use strict";cA.__esModule=!0;cA.checkRevision=UR0;cA.template=GR0;cA.wrapProgram=zS;cA.resolvePartial=HR0;cA.invokePartial=XR0;cA.noop=WBe;function_R0(t){returnt&&t.__esModule?t:{default:t}}functionLR0(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}varQR0=ms(),TM=LR0(QR0),PR0=Kn(),sp=_R0(PR0),np=mS(),FBe=GV(),kR0=vBe(),TBe=VV();functionUR0(t){vare=t&&t[0]||1,r=np.COMPILER_REVISION;if(!(e>=np.LAST_COMPATIBLE_COMPILER_REVISION&&e<=np.COMPILER_REVISION))if(e<np.LAST_COMPATIBLE_COMPILER_REVISION){vars=np.REVISION_CHANGES[r],n=np.REVISION_CHANGES[e];thrownewsp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}elsethrownewsp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}functionGR0(t,e){if(!e)thrownewsp.default("No environment passed to template");if(!t||!t.main)thrownewsp.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functions(o,a,c){c.hash&&(a=TM.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;varu=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(varp=u.split(`
`)}returnu}elsethrownewsp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}varn={strict:function(a,c,u){if(!a||!(cina))thrownewsp.default('"'+c+'" not defined in '+a,{loc:u});returnn.lookupProperty(a,c)},lookupProperty:function(a,c){varu=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||TBe.resultIsAllowed(u,n.protoAccessControl,c))returnu},lookup:function(a,c){for(varu=a.length,p=0;p<u;p++){varl=a[p]&&n.lookupProperty(a[p],c);if(l!=null)returnl}},lambda:function(a,c){returntypeofa=="function"?a.call(c):a},escapeExpression:TM.escapeExpression,invokePartial:s,fn:function(a){varc=t[a];returnc.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,p,l){varA=this.programs[a],h=this.fn(a);returnc||l||p||u?A=zS(this,a,h,c,u,p,l):A||(A=this.programs[a]=zS(this,a,h)),A},data:function(a,c){for(;a&&c--;)a=a._parent;returna},mergeIfNeeded:function(a,c){varu=a||c;returna&&c&&a!==c&&(u=TM.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};functioni(o){vara=arguments.length<=1||arguments[1]===void0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=VR0(o,c));varu=void0,p=t.useBlockParams?[]:void0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);functionl(A){return""+t.main(n,A,n.helpers,n.partials,c,p,u)}returnl=_Be(t.main,l,n,a.depths||[],c,p),l(o,a)}returni.isTop=!0,i._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={};xBe(a,e.helpers,n),xBe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=TM.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=TBe.createProtoAccessControl(o);varc=o.allowCallsToHelperMissing||r;FBe.moveHelperToHooks(n,"helperMissing",c),FBe.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,u){if(t.useBlockParams&&!c)thrownewsp.default("must pass block params");if(t.useDepths&&!u)thrownewsp.default("must pass parent depths");returnzS(n,o,t[o],a,0,c,u)},i}functionzS(t,e,r,s,n,i,o){functiona(c){varu=arguments.length<=1||arguments[1]===void0?{}:arguments[1],p=o;returno&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(p=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),p)}returna=_Be(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}functionHR0(t,e,r){returnt?!t.call&&!r.name&&(r.name=t,t=OS(r.partials,t)):r.name==="@partial-block"?t=OS(r.data,"partial-block"):t=OS(r.partials,r.name),t}functionXR0(t,e,r){vars=OS(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!==WBe&&(function(){r.data=np.createFrame(r.data);vari=r.fn;n=r.data["partial-block"]=function(a){varc=arguments.length<=1||arguments[1]===void0?{}:arguments[1];returnc.data=np.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=TM.extend({},r.partials,i.partials))})(),t===void0&&n&&(t=n),t===void0)thrownewsp.default("The partial "+r.name+" could not be found");if(tinstanceofFunction)returnt(e,r)}functionWBe(){return""}functionOS(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))returnt[e]}functionVR0(t,e){return(!e||!("root"ine))&&(e=e?np.createFrame(e):{},e.root=t),e}function_Be(t,e,r,s,n,i){if(t.decorator){varo={};e=t.decorator(e,o,r,s&&s[0],n,i,s),TM.extend(e,o)}returne}functionxBe(t,e,r){e&&Object.keys(e).forEach(function(s){varn=e[s];t[s]=jR0(n,r)})}functionjR0(t,e){varr=e.lookupProperty;returnkR0.wrapHelper(t,function(s){returns.lookupProperty=r,s})}});varZV=f((ES,QBe)=>{"use strict";ES.__esModule=!0;ES.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 i,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);return o?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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],i=this.performAction.call(this,this.yy,this,l[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
\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"}}});varcRe=f(aRe=>{"use strict";var$Y=Mp().Buffer;aRe._dbcs=gp;vargr=-1,oRe=-2,Zi=-10,Ds=-1e3,um=newArray(256),ay=-1;for(e6=0;e6<256;e6++)um[e6]=gr;vare6;functiongp(t,e){if(this.encodingName=t.encodingName,!t)thrownewError("DBCS codec is called without the data.");if(!t.table)thrownewError("Encoding '"+this.encodingName+"' has no data.");varr=t.table();this.decodeTables=[]
Found: ${t.length}`);throwa.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{leta=newError(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throwa.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}xc.exports.checkStream=tF0;functiontF0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ni(e,r),!e||!Object.keys(e).length)returnPromise.reject(Object.assign(newError("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));lets=EJ(r);returnnewPromise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);leto;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}xc.exports.integrityStream=EJ;functionEJ(t=Object.create(null)){returnnewzJ(t)}xc.exports.create=rF0;functionrF0(t){lete=t?.algorithms||[...OJ],r=hy(t?.options),s=e.map(fy.createHash);return{update:function(n,i){returns.forEach(o=>o.update(n,i)),this},digest:function(){returne.reduce((i,o)=>{leta=s.shift().digest("base64"),c=newCp(`${o}-${a}${r}`,t);returni[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},newrf)}}}functionsF0(t,e){returnA5e.indexOf(t.toLowerCase())>=A5e.indexOf(e.toLowerCase())?t:e}});varCJ=f((BFt,g5e)=>{varh5e=lJ(),b5e=MJ(),nF0=by(),M5e={shared:!1,ignoreCargoCult:!0},iF0={status:200,headers:{}},Am=t=>{lete={method:t.method,url:t.url,headers:{},compress:t.compress};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},m5e=t=>{lete={status:t.status,headers:{}};returnt.headers.forEach((r,s)=>{e.headers[s]=r}),e},yJ=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=Am(r),this.response=m5e(s),this.options=n,this.policy=newh5e(this.request,this.response,M5e),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:newh5e(Am(e),iF0,M5e).storable()}satisfies(e){letr=Am(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;lets=newb5e(this.request),n=newb5e(r);returnJSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?nF0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){returnthis.policy.storable()}getmustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){letr=Am(e);returnr.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){returnthis.policy.responseHeaders()}revalidationHeaders(e){letr=Am(e);returnthis.policy.revalidationHeaders(r)}revalidated(e,r){lets=Am(e),n=m5e(r);return!this.policy.revalidatedPolicy(s,n).modified}};g5e.exports=yJ});varO5e=f((DFt,z5e)=>{varBJ=classextendsError{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};z5e.exports={NotCachedError:BJ}});varS5e=f((qFt,w5e)=>{"use strict";varE5e=typeofprocess=="object"&&process?process:{stdout:null,stderr:null},oF0=require("events"),y5e=require("stream"),C5e=require("string_decoder").StringDecoder,Bp=Symbol("EOF"),Dp=Symbol("maybeEmitEnd"),CA=Symbol("emittedEnd"),d6=Symbol("emittingEnd"),My=Symbol("emittedError"),f6=Symbol("closed"),B5e=Symbol("read"),h6=Symbol("flush"),D5e=Symbol("flushChunk"),un=Symbol("encoding"),qp=Symbol("decoder"),b6=Symbol("flowing"),my=Symbol("paused"),dm=Symbol("resume"),Y1=Symbol("bufferLength"),DJ=Symbol("bufferPush"),qJ=Symbol("bufferShift"),Qr=Symbol("objectMode"),Pr=Symbol("destroyed"),IJ=Symbol("emitData"),q5e=Symbol("emitEnd"),RJ=Symbol("emitEnd2"),Ip=Symbol("async"),gy=t=>Promise.resolve().then(t),I5e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",aF0=I5e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),cF0=I5e&&Symbol.iterator||Symbol("iterator not implemented"),uF0=t=>t==="end"||t==="finish"||t==="prefinish",pF0=t=>tinstanceofArrayBuffer||typeoft=="object"&&t.constructor&&t.constructor.name==="ArrayB
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||k6(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}ai.exports.bucketDir=SK;function SK(t){return Lc.join(t,`index-v${nL0}`)}ai.exports.bucketPath=Ly;function Ly(t,e){let r=XNe(e);return Lc.join.apply(Lc,[SK(t)].concat(sL0(r)))}ai.exports.hashKey=XNe;function XNe(t){return VNe(t,"sha256")}ai.exports.hashEntry=k6;function k6(t){return VNe(t,"sha1")}function VNe(t,e){return j_0.createHash(e).update(t).digest("hex")}function U6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?rL0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function RK(t){return J_0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var Dm=f(H6=>{"use strict";Object.defineProperty(H6,"__esModule",{value:!0});H6.LRUCache=void 0;var lL0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,$Ne=new Set,NK=typeof process=="object"&&process?process:{},YNe=(t,e,r,s)=>{typeof NK.emitWarning=="function"?NK.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},G6=globalThis.AbortController,jNe=globalThis.AbortSignal;if(typeof G6>"u"){jNe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},G6=class{constructor(){e()}signal=new jNe;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=NK.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,YNe("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 AL0=t=>!$Ne.has(t),DA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),JNe=t=>DA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Bm:null:null,Bm=class extends Array{constructor(e){super(e),this.fill(0)}},vK=class t{heap;length;static#e=!1;static create(e){let r=JNe(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},FK=class t{#e;#t;#s;#r;#n;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,s,n,i)=>e.#U(r,s,n,i),moveToTail:r=>e.#W(r),indexes:r=>e.#w(r),rindexes:r=>e.#N(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:h,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:B,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:T,ignoreFetchAbort:W,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#a=j??lL0,r!==
globstar while`,e,A,r,h,M),this.matchOne(e.slice(A),r.slice(h),s))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,h);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(s&&(this.debug(`
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Wk0),r.secureEndpoint){gC("Upgrading socket connection to TLS");let A=r.servername||r.host;return uFe.connect({...pFe(r,"host","path","port"),socket:n,servername:mC.isIP(A)?void 0:A})}return n}n.destroy();let l=new mC.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{gC("Replaying proxy buffer for failed request"),(0,Nk0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};jv.protocols=["http","https"];oo.HttpsProxyAgent=jv;function Wk0(t){t.resume()}function pFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var MFe=f(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var fFe=require("buffer"),Ef={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."};Xp.ERRORS=Ef;function _k0(t){if(!fFe.Buffer.isEncoding(t))throw new Error(Ef.INVALID_ENCODING)}Xp.checkEncoding=_k0;function hFe(t){return typeof t=="number"&&isFinite(t)&&kk0(t)}Xp.isFiniteInteger=hFe;function bFe(t,e){if(typeof t=="number"){if(!hFe(t)||t<0)throw new Error(e?Ef.INVALID_OFFSET:Ef.INVALID_LENGTH)}else throw new Error(e?Ef.INVALID_OFFSET_NON_NUMBER:Ef.INVALID_LENGTH_NON_NUMBER)}function Lk0(t){bFe(t,!1)}Xp.checkLengthValue=Lk0;function Qk0(t){bFe(t,!0)}Xp.checkOffsetValue=Qk0;function Pk0(t,e){if(t<0||t>e.length)throw new Error(Ef.INVALID_TARGET_OFFSET)}Xp.checkTargetOffset=Pk0;function kk0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Uk0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof fFe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Xp.bigIntAndBufferInt64Check=Uk0});var gFe=f(YZ=>{"use strict";Object.defineProperty(YZ,"__esModule",{value:!0});var s0=MFe(),mFe=4096,Gk0="utf8",$Z=class t{constructor(e){if(this.length=0,this._encoding=Gk0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(s0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(s0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(mFe);else{if(typeof e<"u")throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(mFe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
`,$Y0=/\u2014 (\S+) (\S+)\n/g;functionYY0(t,e){letr=t.inclusionProof,s=M1e.fromString(r.checkpoint.envelope),n=VT.fromString(s.note);if(!JY0(s,e))thrownewKC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});returnn}functionJY0(t,e){letr=Buffer.from(t.note,"utf-8");returnt.signatures.some(s=>{letn=e.find(i=>$_e.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));returnn?$_e.crypto.verify(r,n.publicKey,s.signature):!1})}varM1e=classt{note;signatures;constructor(e,r){this.note=e,this.signatures=r}staticfromString(e){if(!e.includes(b1e))thrownewKC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});letr=e.indexOf(b1e),s=e.slice(0,r+1),i=e.slice(r+b1e.length).matchAll($Y0),o=Array.from(i,a=>{let[,c,u]=a,p=Buffer.from(u,"base64");if(p.length<5)thrownewKC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:p.subarray(0,4),signature:p.subarray(4)}});if(o.length===0)thrownewKC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});returnnewt(s,o)}},VT=classt{origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}staticfromString(e){letr=e.trimEnd().split(`
`);if(r.length<3)thrownewKC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});lets=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),o=r.slice(3);returnnewt(s,n,i,o)}};ZC.LogCheckpoint=VT});varJ_e=f(O1e=>{"use strict";Object.defineProperty(O1e,"__esModule",{value:!0});O1e.verifyMerkleInclusion=eJ0;varz1e=ca(),m1e=$r(),KY0=Buffer.from([0]),ZY0=Buffer.from([1]);functioneJ0(t,e){letr=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)thrownewm1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:o}=tJ0(s,n);if(r.hashes.length!==i+o)thrownewm1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});leta=r.hashes.slice(0,i),c=r.hashes.slice(i),u=aJ0(t.canonicalizedBody),p=sJ0(rJ0(u,a,s),c);if(!z1e.crypto.bufferEqual(p,e.logHash))thrownewm1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}functiontJ0(t,e){letr=nJ0(t,e),s=iJ0(t>>BigInt(r));return{inner:r,border:s}}functionrJ0(t,e,r){returne.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?g1e(n,s):g1e(s,n),t)}functionsJ0(t,e){returne.reduce((r,s)=>g1e(s,r),t)}functionnJ0(t,e){returnoJ0(t^e-BigInt(1))}functioniJ0(t){returnt.toString(2).split("1").length-1}functionoJ0(t){returnt===0n?0:t.toString(2).length}functiong1e(t,e){returnz1e.crypto.digest("sha256",ZY0,t,e)}functionaJ0(t){returnz1e.crypto.digest("sha256",KY0,t)}});varZ_e=f(E1e=>{"use strict";Object.defineProperty(E1e,"__esModule",{value:!0});E1e.verifyTLogSET=pJ0;varK_e=ca(),cJ0=$r(),uJ0=qg();functionpJ0(t,e){if(!(0,uJ0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:newDate(Number(t.integratedTime)*1e3)}).some(n=>{leti=lJ0(t),o=Buffer.from(K_e.json.canonicalize(i),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;returnK_e.crypto.verify(o,n.publicKey,a)}))thrownewcJ0.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}functionlJ0(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});vartLe=f(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.verifyTLogBody=bJ0;jT.verifyTLogInclusion=MJ0;vareLe=Gee(),B1e=$r(),y1e=X_e(),C1e=V_e(),AJ0=j_e(),dJ0=Y_e(),fJ0=J_e(),hJ0=Z_e();functionbJ0(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)thrownewB1e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==y1e.DSSE_API_VERSION_V1)return(0,y1e.verifyDSSETLogBody)(n,e);{leti=eLe.Entry.fromJSON(n);return(0,y1e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,AJ0.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==C1e.HASHEDREKORD_API_VERSION_V1)return(0,C1e.verifyHashedRekordTLogBody)(n,e);{leti=eLe.Entry.fromJSON(n);return(0,C1e.verifyHashedRekordTLogBodyV2)(i,e)}default:thrownewB1e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}functionMJ0(t,e){letr=!1;if(mJ0(t)&&((0,hJ0.verifyTLogSET)(t,e),r=!0),gJ0(t)){lets=(0,dJ0.verifyCheckpoint)(t,e);(0,fJ0.verifyMerkleInclusion)(t,s),r=!0}if(!r)thrownewB1e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}functionmJ0(t){returnt.inclusionPromise!==void0}functiongJ0(t){returnt.inclusionProof!==void0}});varaLe=f($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.Verifier=void0;varzJ0=require("util"),Ig=$r(),rLe=Q_e(),sLe=k_e(),nLe=H_e(),iLe=tLe(),D1e=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){lets=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}N4.exports=git,N4.exports.__esModule=!0,N4.exports.default=N4.exports});varqGe=f((IUt,v4)=>{varzit=lUe(),Oit=rGe(),Eit=BGe(),yit=DGe();functionCit(t,e){returnzit(t)||Oit(t,e)||Eit(t,e)||yit()}v4.exports=Cit,v4.exports.__esModule=!0,v4.exports.default=v4.exports});varRGe=f((RUt,IGe)=>{"use strict";varBit=Hx().forEach,Dit=q4(),qit=Dit("forEach");IGe.exports=qit?[].forEach:function(e){returnBit(this,e,arguments.length>1?arguments[1]:void0)}});varSGe=f(()=>{"use strict";varIit=rt(),wGe=RGe();Iit({target:"Array",proto:!0,forced:[].forEach!==wGe},{forEach:wGe})});varvGe=f((NUt,NGe)=>{"use strict";SGe();varRit=ha();NGe.exports=Rit("Array","forEach")});varTGe=f((vUt,FGe)=>{"use strict";varwit=vGe();FGe.exports=wit});varxGe=f(()=>{});var_Ge=f((xUt,WGe)=>{"use strict";varSit=Hg(),Nit=xs(),vit=mn(),Fit=TGe();xGe();varyse=Array.prototype,Tit={DOMTokenList:!0,NodeList:!0};WGe.exports=function(t){vare=t.forEach;returnt===yse||vit(yse,t)&&e===yse.forEach||Nit(Tit,Sit(t))?Fit:e}});varCse=f((WUt,LGe)=>{LGe.exports=_Ge()});varQGe=f(()=>{"use strict";varxit=rt(),Wit=Ix().includes,_it=Gt(),Lit=nre(),Qit=_it(function(){return!Array(1).includes()});xit({target:"Array",proto:!0,forced:Qit},{includes:function(e){returnWit(this,e,arguments.length>1?arguments[1]:void0)}});Lit("includes")});varkGe=f((QUt,PGe)=>{"use strict";QGe();varPit=ha();PGe.exports=Pit("Array","includes")});varGGe=f((PUt,UGe)=>{"use strict";varkit=Ai(),Uit=rl(),Git=l1(),Hit=Git("match");UGe.exports=function(t){vare;returnkit(t)&&((e=t[Hit])!==void0?!!e:Uit(t)==="RegExp")}});varXGe=f((kUt,HGe)=>{"use strict";varXit=GGe(),Vit=TypeError;HGe.exports=function(t){if(Xit(t))thrownewVit("The method doesn't accept regular expressions");returnt}});varjGe=f((UUt,VGe)=>{"use strict";varjit=l1(),$it=jit("match");VGe.exports=function(t){vare=/./;try{"/./"[t](e)}catch{try{returne[$it]=!1,"/./"[t](e)}catch{}}return!1}});varYGe=f(()=>{"use strict";varYit=rt(),Jit=qt(),Kit=XGe(),Zit=Gf(),$Ge=lu(),eot=jGe(),tot=Jit("".indexOf);Yit({target:"String",proto:!0,forced:!eot("includes")},{includes:function(e){return!!~tot($Ge(Zit(this)),$Ge(Kit(e)),arguments.length>1?arguments[1]:void0)}})});varKGe=f((XUt,JGe)=>{"use strict";YGe();varrot=ha();JGe.exports=rot("String","includes")});vartHe=f((VUt,eHe)=>{"use strict";varZGe=mn(),sot=kGe(),not=KGe(),Bse=Array.prototype,Dse=String.prototype;eHe.exports=function(t){vare=t.includes;returnt===Bse||ZGe(Bse,t)&&e===Bse.includes?sot:typeoft=="string"||t===Dse||ZGe(Dse,t)&&e===Dse.includes?not:e}});varsHe=f((jUt,rHe)=>{"use strict";variot=tHe();rHe.exports=iot});varF4=f(($Ut,nHe)=>{nHe.exports=sHe()});varqse=f((YUt,iHe)=>{"use strict";iHe.exports=`
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,rat.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function pat(t,e){var r;if(t){if(typeof t=="string")return zXe(t,e);var s=(0,mo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,oat.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return zXe(t,e)}}function zXe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var lt="xregexp",th={astral:!1,namespacing:!1},Ht={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},Au={},x4={},$g={},vse=[],Yg="default",OXe="class",lat={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},Aat=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,dat=Ht.exec.call(/()??/,"")[1]===void 0,fat=(0,eh.default)(/x/)!==void 0,hat={},DXe=hat.toString;function Tse(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}var qXe=Tse("u"),xse=Tse("y"),IXe={g:!0,i:!0,m:!0,u:qXe,y:xse};function RXe(t,e,r,s,n){var i;if(t[lt]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=ae.prototype;else for(var o in ae.prototype)t[o]=ae.prototype[o];return t[lt].source=r,t[lt].flags=s&&(0,uat.default)(i=s.split("")).call(i).join(""),t}function W4(t){return Ht.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function sh(t,e){var r;if(!ae.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[lt]||{},n=bat(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(n=Ht.replace.call(n,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=W4(n+i)),e.isInternalOnly||(s.source!==void 0&&(a=s.source),(0,eh.default)(s)!=null&&(c=i?W4((0,eh.default)(s)+i):(0,eh.default)(s))),t=RXe(new RegExp(e.source||t.source,n),Mat(t)?(0,mo.default)(r=s.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function wXe(t){return(0,BXe.default)(t,16)}function SXe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||Ht.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||mat(t.input,t.index+t[0].length,r)?"":"(?:)"}function bat(t){return fat?(0,eh.default)(t):Ht.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function Mat(t){return!!(t[lt]&&t[lt].captureNames)}function NXe(t){return(0,BXe.default)(t,10).toString(16)}function mat(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return Ht.test.call((0,rh.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,mo.default)(t).call(t,e))}function Wse(t,e){return DXe.call(t)==="[object ".concat(e,"]")}function vXe(t){for(;t.length<4;)t="0".concat(t);return t}function gat(t,e){if(W4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=Ht.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(Ht.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=W4(e+o),""});var r=_4(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!IXe[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function FXe(t){var e={};return Wse(t,"String")?((0,Fse.default)(ae).call(ae,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function EXe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}vari=!0,o=!1,a;return{s:function(){r=(0,tct.default)(t)},n:function(){varu=r.next();returni=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throwa}}}}functionpct(t,e){varr;if(t){if(typeoft=="string")returnzVe(t,e);vars=(0,oct.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,ict.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))returnzVe(t,e)}}functionzVe(t,e){(e==null||e>t.length)&&(e=t.length);for(varr=0,s=newArray(e);r<e;r++)s[r]=t[r];returns}varlct=function(e){varr={},s=e._dec,n=e._hex,i=e._pad4;functiono(A){returnA.replace(/[- _]+/g,"").toLowerCase()}functiona(A){varh=/^\\[xu](.+)/.exec(A);returnh?s(h[1]):A.charCodeAt(A[0]==="\\"?1:0)}functionc(A){varh="",M=-1;return(0,cct.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){vary=a(g[1]);y>M+1&&(h+="\\u".concat(i(n(M+1))),y>M+2&&(h+="-\\u".concat(i(n(y-1))))),M=a(g[2]||g[1])}),M<65535&&(h+="\\u".concat(i(n(M+1))),M<65534&&(h+="-\\uFFFF")),h}functionu(A){varh="b!";returnr[A][h]||(r[A][h]=c(r[A].bmp))}functionp(A,h){varM=r[A],g="";if(M.bmp&&!M.isBmpLast){vary;g=(0,Pse.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){varO;g+=(0,Pse.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}returnh?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}functionl(A,h){varM=h?"a!":"a=";returnr[A][M]||(r[A][M]=p(A,h))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,h,M){varg="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],N=(0,act.default)(M).call(M,"A"),T=o(A[4]||A[3]),W=r[T];if(A[1]==="P"&&A[2])thrownewSyntaxError(g+A[0]);if(!r.hasOwnProperty(T))thrownewSyntaxError(y+A[0]);if(W.inverseOf){if(T=o(W.inverseOf),!r.hasOwnProperty(T)){varj;thrownewReferenceError((0,Pse.default)(j="".concat(O+A[0]," -> ")).call(j,W.inverseOf))}W=r[T],R=!R}if(!(W.bmp||N))thrownewSyntaxError(B+A[0]);if(N){if(h==="class")thrownewSyntaxError(I);returnl(T,R)}returnh==="class"?R?u(T):W.bmp:"".concat((R?"[^":"[")+W.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){varh="Unicode token requires name",M="Unicode token has no character data ",g=uct(A),y;try{for(g.s();!(y=g.n()).done;){varO=y.value;if(!O.name)thrownewError(h);if(!(O.inverseOf||O.bmp||O.astral))thrownewError(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){varh=o(A);returnr[h]}};G4.default=lct;OVe.exports=G4.default});varCVe=f((QGt,yVe)=>{yVe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionIQ(t,e){if(process.env.GITHUB_OUTPUT||"")returnpz("OUTPUT",CB(t,e));process.stdout.write(qQ.EOL),ma("set-output",{name:t},Ma(e))}functionNde(t){process.exitCode=DQ.Failure,su0(t)}functionvde(){returnprocess.env.RUNNER_DEBUG==="1"}functionQ(t){ma("debug",{},t)}functionsu0(t,e={}){ma("error",QW(e),tinstanceofError?t.toString():t)}functionSt(t,e={}){ma("warning",QW(e),tinstanceofError?t.toString():t)}function_(t){process.stdout.write(t+qQ.EOL)}functionLd(t){kW("group",t)}functionQd(){kW("endgroup")}functiondr(t,e){returnru0(this,void0,void0,function*(){Ld(t);letr;try{r=yielde()}finally{Qd()}returnr})}functionDq(t,e){if(process.env.GITHUB_STATE||"")returnpz("STATE",CB(t,e));ma("save-state",{name:t},Ma(e))}functionFde(t){returnprocess.env[`STATE_${t}`]||""}varIw=F(require("fs"),1),PX=F(require("os"),1),kX=F(require("path"),1);varxde=F(require("os"),1);functionMO(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionWde(t,e,r){lets=newRQ(t,e,r);process.stdout.write(s.toString()+xde.EOL)}varTde="::",RQ=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=Tde+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){letn=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${iu0(n)}`)}}returne+=`${Tde}${nu0(this.message)}`,e}};functionnu0(t){returnMO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functioniu0(t){returnMO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varPde=F(require("os"),1);varLde=require("os"),mO=require("fs"),wQ=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(o){o(i)})}returnnew(r||(r=Promise))(function(i,o){functiona(p){try{u(s.next(p))}catch(l){o(l)}}functionc(p){try{u(s.throw(p))}catch(l){o(l)}}functionu(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},{access:ou0,appendFile:au0,writeFile:cu0}=mO.promises,_de="GITHUB_STEP_SUMMARY";varSQ=class{constructor(){this._buffer=""}filePath(){returnwQ(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[_de];if(!e)thrownewError(`Unable to find environment variable for $${_de}. Check if your runtime environment supports job summaries.`);try{yieldou0(e,mO.constants.R_OK|mO.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,s={}){letn=Object.entries(s).map(([i,o])=>` ${i}="${o}"`).join("");returnr?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){returnwQ(this,void0,void0,function*(){letr=!!e?.overwrite,s=yieldthis.filePath();returnyield(r?cu0:au0)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnwQ(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(Lde.EOL)}addCodeBlock(e,r){lets=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);returnthis.addRaw(n).addEOL()}addList(e,r=!1){lets=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,n);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(n=>{leti=n.map(o=>{if(typeofo=="string")returnthis.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:p}=o,l=a?"th":"td",A=Object.assign(Object.assign({},u&&{colspan:u}),p&&{rowspan:p});returnthis.wrap(l,c,A)}).join("");returnthis.wrap("tr",i)}).join(""),s=this.wrap("table",r);returnthis.addRaw(s).addEOL()}addDetails(e,r){lets=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},o=Object.assign(Object.assign({},
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new TO(i));return s.searchPaths.push(...MP(s.patterns)),s})}static stat(e,r,s){return yP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Rb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Di(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw i}else n=yield Rb.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Rb.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){Di(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${i}'`);return}s.push(i)}return n})}};var td0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function Bhe(t,e){return td0(this,void 0,void 0,function*(){return yield Xq.create(t,e)})}var cI=F(require("crypto"),1),Nb=F(require("fs"),1),Vd=F(require("path"),1),bMe=F(fMe(),1),MMe=F(require("util"),1);var GO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(GO||(GO={}));var cs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(cs||(cs={}));var _n;(function(t){t.GNU="gnu",t.BSD="bsd"})(_n||(_n={}));var oI=2,aI=5e3,UP=5e3,GP=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,hMe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,HO="cache.tar",HP="manifest.txt",$ft=10*Math.pow(1024,3);var Sb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},Kf0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},Zf0="1.0";function XO(){return Sb(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Vd.join(s,"actions","temp")}let r=Vd.join(e,cI.randomUUID());return yield Tu(r),r})}function Wa(t){return Nb.statSync(t).size}function XP(t){return Sb(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Bhe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=Kf0(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){n=l.value,u=!1;let h=Vd.relative(a,n).replace(new RegExp(`\\${Vd.sep}`,"g"),"/");ee(`Matched:${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(s=p.return)&&(yield s.call(p))}finally{if(r)throw r.error}}return o})}function VO(t){return Sb(this,void 0,void 0,function*(){return MMe.promisify(Nb.unlink)(t)})}function mMe(t){return Sb(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),ee(`Checking${e}${r.join(" ")}`);try{yield Tn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){ee(n.message)}return s=s.trim(),ee(s),s})}function jO(){return Sb(this,void 0,void 0,function*(){let t=yield mMe("zstd",["--quiet"]),e=bMe.clean(t);return ee(`zstdversion:${e}`),t===""?cs.Gzip:cs.ZstdWithoutLong})}function kl(t){return t===cs.Gzip?GO.Gzip:GO.Zstd}function gMe(){return Sb(this,void 0,void 0,function*(){return Nb.existsSync(GP)?GP:(yield mMe("tar")).toLowerCase().includes("gnu tar")?Ar("tar"):""})}function VP(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function vb(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Zf0),cI.createHash("sha256").update(s.join("|")).digest("hex")}function zMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var uM=F(require("fs"),1),H3e=require("url");var _a=class extends Error{constructor(e){super(e),this.name="AbortError"}};var OMe=require("node:os"),EMe=F(require("node:util"),1),yMe=F(require("node:process"),1);function CMe(t,...e){yMe.default.stderr.write(`${EMe.default.format(t,...e)}${OMe.EOL}`)}var BMe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,qMe,jP=[],$P=[],pI=[];BMe&&YP(BMe);var IMe=Object.assign(t=>RMe(t),{enable:YP,enabled:JP,disable:eh0,log:CMe});function YP(t){qMe=t,jP=[],$P=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?$P.push(r.substring(1)):jP.push(r);for(let r of pI)r.enabled=JP(r.namespace)}function JP(t){if(t.endsWith("*"))return!0;for(let e of $P)if(DMe(t,e))return!1;for(let e of jP)if(DMe(t,e))return!0;return!1}function DMe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let A=[],h="";for(let M of e)M==="*"&&h==="*"||(h=M,A.push(M));r=A.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let u=s===t.length,p=n===r.length,l=n===r.length-1&&r[n]==="*";return u&&(p||l)}function eh0(){let t=qMe||"";return YP(""),t}function RMe(t){let e=Object.assign(r,{enabled:JP(t),destroy:th0,log:IMe.log,namespace:t,extend:rh0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return pI.push(e),e}function th0(){let t=pI.indexOf(this);return t>=0?(pI.splice(t,1),!0):!1}function rh0(t){let e=RMe(`${this.namespace}:${t}`);return e.log=this.log,e}var Fb=IMe;var KP=["verbose","info","warning","error"],wMe={verbose:400,info:300,warning:200,error:100};function SMe(t,e){e.log=(...r)=>{t.log(...r)}}function NMe(t){return KP.includes(t)}function lI(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Fb(t.namespace);n.log=(...p)=>{Fb.log(...p)};function i(p){if(p&&!NMe(p))throw new Error(`Unknownloglevel'${p}'.Acceptablevalues:${KP.join(",")}`);s=p;let l=[];for(let A of e)o(A)&&l.push(A.namespace);Fb.enable(l.join(","))}r&&(NMe(r)?i(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${KP.join(", ")}.`));function o(p){return!!(s&&wMe[p.level]<=wMe[s])}function a(p,l){let A=Object.assign(p.extend(l),{level:l});if(SMe(p,A),o(A)){let h=Fb.disable();Fb
${ah0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};functionhI(t){returntinstanceofus?!0:$d(t)&&t.name==="RestError"}functionXs(t,e){returnBuffer.from(t,e)}varbI=F(require("node:http"),1),MI=F(require("node:https"),1),sk=F(require("node:zlib"),1),_Me=require("node:stream");varRi=$O("ts-http-runtime");varch0={};functionYO(t){returnt&&typeoft.pipe=="function"}functionWMe(t){returnt.readable===!1?Promise.resolve():newPromise(e=>{letr=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}functionLMe(t){returnt&&typeoft.byteLength=="number"}varmI=classextends_Me.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},nk=class{cachedHttpAgent;cachedHttpsAgents=newWeakMap;asyncsendRequest(e){letr=newAbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)thrownew_a("The operation was aborted. Request has already been canceled.");s=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}letn;e.timeout>0&&(n=setTimeout(()=>{letu=newQo;Ri.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));leti=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeofe.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){letu=Ah0(a);u!==null&&e.headers.set("Content-Length",u)}letc;try{if(a&&e.onUploadProgress){letM=e.onUploadProgress,g=newmI(M);g.on("error",y=>{Ri.error("Error in upload progress",y)}),YO(a)?a.pipe(g):g.end(a),a=g}letu=awaitthis.makeRequest(e,r,a);n!==void0&&clearTimeout(n);letp=uh0(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")returnu.resume(),A;c=o?ph0(u,p):u;leth=e.onDownloadProgress;if(h){letM=newmI(h);M.on("error",g=>{Ri.error("Error in download progress",g)}),c.pipe(M),c=M}returne.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=awaitlh0(c),A}finally{if(e.abortSignal&&s){letu=Promise.resolve();YO(a)&&(u=WMe(a));letp=Promise.resolve();YO(c)&&(p=WMe(c)),Promise.all([u,p]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Ri.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){letn=newURL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)thrownewError(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);leta={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};returnnewPromise((c,u)=>{letp=i?bI.default.request(a,c):MI.default.request(a,c);p.once("error",l=>{u(newus(l.message,{code:l.code??us.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{letl=new_a("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(l),u(l)}),s&&YO(s)?s.pipe(p):s?typeofs=="string"||Buffer.isBuffer(s)?p.end(s):LMe(s)?p.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ri.error("Unrecognized body type",s),u(newus("Unrecognized body type"))):p.end()})}getOrCreateAgent(e,r){lets=e.disableKeepAlive;if(r)returns?bI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=newbI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)returnMI.default.globalAgent;letn=e.tlsSettings??ch0,i=this.cachedHttpsAgents.get(n);returni&&i.options.keepAlive===!s||(Ri.info("No cached TLS Agent exist, creating a new Agent"),i=newMI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};functionuh0(t){lete=Ln();for(letrofObject.keys(t.headers)){lets=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function Gb0(t){return t instanceof Uint8Array?t.byteLength:PI(t)?t.size===-1?void 0:t.size:void 0}function Hb0(t){let e=0;for(let r of t){let s=Gb0(r);if(s===void 0)return;e+=s}return e}async function Xb0(t,e,r){let s=[Xs(`--${r}`,"utf-8"),...e.flatMap(i=>[Xs(`\r
`,"utf-8")],n=Hb0(s);n&&t.headers.set("Content-Length",n),t.body=await Pme(s)}var e3="multipartPolicy",Vb0=70,jb0=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function $b0(t){if(t.length>Vb0)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!jb0.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function UI(){return{name:e3,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?$b0(r):r=kb0(),t.headers.set("Content-Type",`${i};boundary=${r}`),await Xb0(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function GI(){return fI()}var kme=lI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Nmt=kme.logger;function Pa(t){return kme.createClientLogger(t)}var ka=Pa("core-rest-pipeline");function Ck(t={}){return zI({logger:ka.info,...t})}var Bk=OI;function Dk(t={}){return EI(t)}var HI=F(require("node:os"),1),XI=F(require("node:process"),1);function Ume(){return"User-Agent"}async function Gme(t){if(XI.default&&XI.default.versions){let e=`${HI.default.type()}${HI.default.release()};${HI.default.arch()}`,r=XI.default.versions;r.bun?t.set("Bun",`${r.bun}(${e})`):r.deno?t.set("Deno",`${r.deno}(${e})`):r.node&&t.set("Node",`${r.node}(${e})`)}}var VI="1.22.2";function sM0(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Hme(){return Ume()}async function jI(t){let e=new Map;e.set("core-rest-pipeline",VI),await Gme(e);let r=sM0(e);return t?`${t}${r}`:r}var Xme=Hme(),Vme="userAgentPolicy";function qk(t={}){let e=jI(t.userAgentPrefix);return{name:Vme,async sendRequest(r,s){return r.headers.has(Xme)||r.headers.set(Xme,await e),s(r)}}}var Un=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Ik(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Un(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(s?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}s?.addEventListener("abort",u)})}var cM0="The delay was aborted.";function t3(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Ik(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??cM0})}function Gl(t){if($d(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}function jme(t){return $d(t)}function Pb(){return jd()}var I0=Kd;var $me=Symbol("rawContent");function wk(t){return typeof t[$me]=="function"}function Yme(t){return wk(t)?t[$me]():t}var $I=e3;function Sk(){let t=UI();return{name:$I,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)wk(s.body)&&(s.body=Yme(s.body));return t.sendRequest(e,r)}}}var Nk=yI;function vk(){return CI()}function Fk(t={}){return qI(t)}function Tk(){return II()}function Hl(t){return gk(t)}function xk(t,e){return _I(t,e)}var Jme="setClientRequestIdPolicy";function Wk(t="x-ms-client-request-id"){return{name:Jme,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function _k(t){return LI(t)}function Lk(t){return QI(t)}var kb={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Kme(t={}){let e=new Qk(t.parentContext);return t.span&&(e=e.setValue(kb.span,t.span)),t.namespace&&(e=e.setValue(kb.namespace,t.namespace)),e}var Qk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Nm0(c)){letl;returnc.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Kt("InvalidTag",l,ps(t,i))}letu=qm0(t,i);if(u===!1)returnKt("InvalidAttr","Attributes for '"+c+"' have open quote.",ps(t,i));letp=u.value;if(i=u.index,p[p.length-1]==="/"){letl=i-p.length;p=p.substring(0,p.length-1);letA=Tge(p,e);if(A===!0)s=!0;elsereturnKt(A.err.code,A.err.msg,ps(t,l+A.err.line))}elseif(a)if(u.tagClosed){if(p.trim().length>0)returnKt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ps(t,o));if(r.length===0)returnKt("InvalidTag","Closing tag '"+c+"' has not been opened.",ps(t,o));{letl=r.pop();if(c!==l.tagName){letA=ps(t,l.tagStartPos);returnKt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+c+"'.",ps(t,o))}r.length==0&&(n=!0)}}elsereturnKt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ps(t,i));else{letl=Tge(p,e);if(l!==!0)returnKt(l.err.code,l.err.msg,ps(t,i-p.length+l.err.line));if(n===!0)returnKt("InvalidXml","Multiple possible root nodes found.",ps(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Fge(t,i);continue}elseif(t[i+1]==="?"){if(i=vge(t,++i),i.err)returni}elsebreak;elseif(t[i]==="&"){letl=wm0(t,i);if(l==-1)returnKt("InvalidChar","char '&' is not expected.",ps(t,i));i=l}elseif(n===!0&&!Nge(t[i]))returnKt("InvalidXml","Extra text at the end",ps(t,i));t[i]==="<"&&i--}}else{if(Nge(t[i]))continue;returnKt("InvalidChar","char '"+t[i]+"' is not expected.",ps(t,i))}if(s){if(r.length==1)returnKt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ps(t,r[0].tagStartPos));if(r.length>0)returnKt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}elsereturnKt("InvalidXml","Start tag expected.",1);return!0}functionNge(t){returnt===" "||t===" "||t===`
`||t==="\r"}functionvge(t,e){letr=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){lets=t.substr(r,e-r);if(e>5&&s==="xml")returnKt("InvalidXml","XML declaration allowed only at the start of the document.",ps(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}elsecontinue}returne}functionFge(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}elseif(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){letr=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;elseif(t[e]===">"&&(r--,r===0))break}elseif(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}returne}varBm0='"',Dm0="'";functionqm0(t,e){letr="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Bm0||t[e]===Dm0)s===""?s=t[e]:s!==t[e]||(s="");elseif(t[e]===">"&&s===""){n=!0;break}r+=t[e]}returns!==""?!1:{value:r,index:e,tagClosed:n}}varIm0=newRegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");functionTge(t,e){letr=oR(t,Im0),s={};for(letn=0;n<r.length;n++){if(r[n][1].length===0)returnKt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",d3(r[n]));if(r[n][3]!==void0&&r[n][4]===void0)returnKt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",d3(r[n]));if(r[n][3]===void0&&!e.allowBooleanAttributes)returnKt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",d3(r[n]));leti=r[n][2];if(!Sm0(i))returnKt("InvalidAttr","Attribute '"+i+"' is an invalid name.",d3(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;elsereturnKt("InvalidAttr","Attribute '"+i+"' is repeated.",d3(r[n]))}return!0}functionRm0(t,e){letr=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")returne;if(!t[e].match(r))break}return-1}functionwm0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")returne++,Rm0(t,e);letr=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}returne}functionKt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}functionSm0(t){returnn7(t)}functionNm0(t){returnn7(t)}functionps(t,e){letr=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}functiond3(t){returnt.startIndex+t[1].length}varxge={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"},Wge={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 Ys("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new b3(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=Vb(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=A7(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${l}>`);A&&n.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=p}else if(u===63){let p=d7(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(n.ignoreDeclaration&&p.tagName==="?xml"||n.ignorePiTags)){let A=new Ys(p.tagName);A.add(n.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&n.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=Vb(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,p-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=Vb(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,A),a=p+2}else{let p=d7(t,a,n.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,h=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:h}=A7(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),M=l!==h);let B=null,I={},R;R=tg0(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==h&&M&&(B=this.buildAttributesMap(h,this.matcher,l),B&&(I=eg0(B,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(n.unpairedTagsSet.has(l))a=p.closeIndex;else{let j=this.readStopNodeData(t,A,g+1);if(!j)throw new Error(`Unexpected end of ${A}`);a=j.i,T=j.tagContent}let W=new Ys(l);B&&(W[":@"]=B),W.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,W,this.readonlyMatcher,N)}else{if(O){({tagName:l,tagExp:h}=A7(n.transformTagName,l,h,n));let T=new Ys(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let T=new Ys(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new Ys(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),r=T}s="",a=g}}}else s+=t[a];return e.child};function a
${a}:${decodeURIComponent(i[a])}`}returns}};varNt=classextendsa2{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewO3(e,r,this)}computeHMACSHA256(e){return(0,fze.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varC1=Pa("storage-common");varvi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vi||(vi={}));varYl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Fg0=newUn("The operation was aborted."),E3=classextendsXa{retryOptions;constructor(e,r,s=Yl){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yl.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yl.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yl.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yl.maxRetryDelayInMs):Yl.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yl.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yl.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,s){letn=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=zR(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=$l(n.url,ku.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leto;try{if(C1.info(`RetryPolicy: =====> Try=${s}${i?"Primary":"Secondary"}`),o=awaitthis._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))returno;r=r||!i&&o.status===404}catch(a){if(C1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throwa}returnawaitthis.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)returnC1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(letoofi)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)returnC1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){leto=s?s.status:n?n.statusCode:0;if(!e&&o===404)returnC1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)returnC1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){leto=s.headers.get(Qe.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')?(C1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,s){letn=0;if(e)switch(this.retryOptions.retryPolicyType){casevi.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;casevi.FIXED:n=this.retryOptions.retryDelayInMs;break}elsen=Math.random()*1e3;returnC1.info(`RetryPolicy: Delay for ${n}ms`),yR(n,s,Fg0)}};vary3=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewE3(e,r,this.retryOptions)}};varTg0="storageBrowserPolicy";functionhze(){return{name:Tg0,asyncsendRequest(t,e){returnI0||((t.method==="GET"||t.method==="HEAD")&&(t.url=$l(t.url,ku.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Qe.COOKIE),t.headers.delete(Qe.CONTENT_LENGTH)),e(t)}}}varxg0="StorageCorrectContentLengthPolicy";functionbze(){functiont(e){e.body&&(typeofe.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:xg0,asyncsend
`}),a}function n(i){let o=OR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=ER(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:newXo(t.version,i,s,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}}functionHO0(t,e){if(t=b2(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}functionXO0(t,e){if(t=b2(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}functionVO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}functionjO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}function$O0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}functionYO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));letn;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());leti=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:newXo(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:i}}functionh2(t,e,r){lets=[`/blob/${t}/${e}`];returnr&&s.push(`/${r}`),s.join("")}functionb2(t){lete=t.version?t.version:qR;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}varx3=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){lets=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Pb()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Po||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Po||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.");returnOe.withSpan("BlobLeaseClient-acquireLease",r,asyncs=>De(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Po||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Po||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.");returnOe.withSpan("BlobLeaseClient-changeLease",r,asyncs=>{letn=De(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));returnthis._leaseId=e,n})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Po||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Po||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"}};aM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var z2=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};z2.isUsageErrorMessage=t=>t?t.includes("insufficientusage"):!1;var X3=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var oE0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},mH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);h1(`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 S3e(t,e,r){return oE0(this,void 0,void 0,function*(){var s;let n=new Ju(t),i=n.getBlockBlobClient(),o=new mH((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),ee(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new N5(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Wo(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var v3e=F(require("buffer"),1),lc=F(require("fs"),1),F3e=F(require("stream"),1),T3e=F(require("util"),1);var v5=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function F5(t){return t?t>=200&&t<300:!1}function aE0(t){return t?t>=500:!0}function cE0(t){return t?[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout].includes(t):!1}function uE0(t){return v5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function N3e(t,e,r){return v5(this,arguments,void 0,function*(s,n,i,o=oI,a=aI,c=void 0){let u="",p=1;for(;p<=o;){let l,A,h=!1;try{l=yield n()}catch(M){c&&(l=c(M)),h=!0,u=M.message}if(l&&(A=i(l),!aE0(A)))return l;if(A&&(h=cE0(A),u=`Cache service responded with ${A}`),ee(`${s} - Attempt ${p} of ${o} failed with error: ${u}`),!h){ee(`${s} - Error is not retryable`);break}yield uE0(a),p++}throw Error(`${s} failed: ${u}`)})}function V3(t,e){return v5(this,arguments,void 0,function*(r,s,n=oI,i=aI){return yield N3e(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof wa)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function cM(t,e){return v5(this,arguments,void 0,function*(r,s,n=oI,i=aI){return yield N3e(r,s,o=>o.message.statusCode,n,i)})}var _i=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function pE0(t,e){return _i(this,void 0,void 0,function*(){yield T3e.promisify(F3e.pipeline)(t.message,e)})}var T5=class{constructor(e){this.contentLength=e,this.segmentIndex=0,th
Other caches with similar key:`);for(let a of i?.artifactCaches||[])ee(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function EH(t,e,r){return en(this,void 0,void 0,function*(){let s=new H3e.URL(t),n=L3e(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield W3e(t,e,n):n.concurrentBlobDownloads?yield x3e(t,e,n):yield x5(t,e):yield x5(t,e)})}function V3e(t,e,r){return en(this,void 0,void 0,function*(){let s=OH(),n=vb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield V3("reserveCache",()=>en(this,void 0,void 0,function*(){return s.postJson($3("caches"),i)}))})}function G3e(t,e){return`bytes ${t}-${e}/*`}function mE0(t,e,r,s,n){return en(this,void 0,void 0,function*(){ee(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${G3e(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":G3e(s,n)},o=yield cM(`uploadChunk (start: ${s}, end: ${n})`,()=>en(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!F5(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function gE0(t,e,r,s){return en(this,void 0,void 0,function*(){let n=Wa(r),i=$3(`caches/${e.toString()}`),o=uM.openSync(r,"r"),a=gH(s),c=VP("uploadConcurrency",a.uploadConcurrency),u=VP("uploadChunkSize",a.uploadChunkSize),p=[...new Array(c).keys()];ee("Awaitingalluploads");let l=0;try{yield Promise.all(p.map(()=>en(this,void 0,void 0,function*(){for(;l<n;){let A=Math.min(n-l,u),h=l,M=l+A-1;l+=u,yield mE0(t,i,()=>uM.createReadStream(r,{fd:o,start:h,end:M,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,M)}})))}finally{uM.closeSync(o)}})}function zE0(t,e,r){return en(this,void 0,void 0,function*(){let s={size:r};return yield V3("commitCache",()=>en(this,void 0,void 0,function*(){return t.postJson($3(`caches/${e.toString()}`),s)}))})}function yH(t,e,r,s){return en(this,void 0,void 0,function*(){if(gH(s).useAzureSdk){if(!r)throw new Error("AzureStorageSDKcanonlybeusedwhenasignedURLisprovided.");yield S3e(r,e,s)}else{let i=OH();ee("Uploadcache"),yield gE0(i,t,e,s),ee("Commitingcache");let o=Wa(e);h1(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zE0(i,t,o);if(!F5(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);h1("Cachesavedsuccessfully")}})}var PEe=F(FEe(),1),r1=F(t1(),1),$n=F(t1(),1),B2=F(t1(),1),D2=F(t1(),1),q2=F(t1(),1);var MX=F(t1(),1),mX=F(t1(),1),_Ee=F(t1(),1),LEe=F(t1(),1),QEe=F(t1(),1);var fX=F(t1(),1),hX=F(t1(),1),TEe=F(t1(),1),xEe=F(t1(),1),WEe=F(t1(),1),bX=class extends WEe.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,xEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,TEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let p=e.skip(c);u!==!1&&(u===!0?hX.UnknownFieldHandler.onRead:u)(this.typeName,i,a,c,p)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,fX.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fX.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?hX.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},yw=new bX;var gX=class extends QEe.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:()=>yw}])}create(e){let r={repositoryId:"0",sco
`));let s=yield FX(r,"create");yield TX(s,t)})}var DM=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},$o=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},BM=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},qw=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function HEe(t){if(!t||t.length===0)throw new $o("PathValidationError:Atleastonedirectoryorfilepathisrequired")}function _X(t){if(t.length>512)throw new $o(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $o(`Key Validation Error: ${t} cannot contain commas.`)}function LX(){return j3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function XEe(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){let u=j3();return ee(`Cache service version: ${u}`),HEe(n),u==="v2"?yield TC0(n,i,o,a,c):yield FC0(n,i,o,a,c)})}function FC0(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let u=[i,...o];if(ee("ResolvedKeys:"),ee(JSON.stringify(u)),u.length>10)throw new $o("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let A of u)_X(A);let p=yield jO(),l="";try{let A=yield X3e(u,n,{compressionMethod:p,enableCrossOsArchive:c});if(!A?.archiveLocation)return;if(a?.lookupOnly)return h1("Lookuponly-skippingdownload"),A.cacheKey;l=lE.join(yield XO(),kl(p)),ee(`Archive Path: ${l}`),yield EH(A.archiveLocation,l,a),kd()&&(yield pE(l,p));let h=Wa(l);return h1(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield xX(l,p),h1("Cacherestoredsuccessfully"),A.cacheKey}catch(A){let h=A;if(h.name===$o.name)throw A;h instanceof wa&&typeof h.statusCode=="number"&&h.statusCode>=500?RO(`Failed to restore: ${A.message}`):Wo(`Failed to restore: ${A.message}`)}finally{try{yield VO(l)}catch(A){ee(`Failed to delete archive: ${A}`)}}})}function TC0(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(ee("ResolvedKeys:"),ee(JSON.stringify(u)),u.length>10)throw new $o("KeyValidationError:Keysarelimitedtoamaximumof10.");for(let l of u)_X(l);let p="";try{let l=vX(),A=yield jO(),h={key:i,restoreKeys:o,version:vb(n,A,c)},M=yield l.GetCacheEntryDownloadURL(h);if(!M.ok){ee(`Cache not found for version ${h.version} of keys: ${u.join(",")}`);return}if(h.key!==M.matchedKey?h1(`Cache hit for restore-key: ${M.matchedKey}`):h1(`Cache hit for: ${M.matchedKey}`),a?.lookupOnly)return h1("Lookuponly-skippingdownload"),M.matchedKey;p=lE.join(yield XO(),kl(A)),ee(`Archive path: ${p}`),ee(`Starting download of archive to: ${p}`),yield EH(M.signedDownloadUrl,p,a);let y=Wa(p);return h1(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),kd()&&(yield pE(p,A)),yield xX(p,A),h1("Cacherestoredsuccessfully"),M.matchedKey}catch(l){let A=l;if(A.name===$o.name)throw l;A instanceof wa&&typeof A.statusCode=="number"&&A.statusCode>=500?RO(`Failed to restore: ${l.message}`):Wo(`Failed to restore: ${l.message}`)}finally{try{p&&(yield VO(p))}catch(l){ee(`Failed to delete archive: ${l}`)}}})}function QX(t,e,r){return DM(this,arguments,void 0,function*(s,n,i,o=!1){let a=j3();return ee(`Cache service version: ${a}`),HEe(s),_X(n),a==="v2"?yield WC0(s,n,i,o):yield xC0(s,n,i,o)})}function xC0(t,e,r){return DM(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,u,p,l;let A=yield jO(),h=-1,M=yield XP(s);if(ee("CachePaths:"),ee(`${JSON.stringify(M)}`),M.length===0)throw new Error("PathValidationError:Path(s)specifiedintheactionforcachingdo(es)notexist,hencenocacheisbeingsaved.");let g=yield XO(),y=lE.join(g,kl(A));ee(`Archi
Moreinfo:${c.url}`);let h=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:h}),M=!0;break}M||Q(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${l}`)}return a}};var _2=F(require("fs"),1),Wj=F(require("path"),1);var US=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.iidFilename=`build-iidfile-${y0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${y0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([h])=>!r.has(h)),i=y0.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||fs.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&y0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${E0.serverURL}/${fs.repo.owner}/${fs.repo.repo}.git`,c=e?.checksum||s.checksum,u=e?.subdir||s.subdir,p=e?.format;if(!p){if(p="fragment",n.length>0)p="query";else if(y0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(p="query")}catch{}}let l=fs.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(l=typeof fs.payload.pull_request?.head?.sha=="string"?fs.payload.pull_request.head.sha:o);let A=c||l;if(p==="query"){let h=[`ref=${i||c?o:A}`],M=i?A:c;M&&h.push(`checksum=${M}`),u&&u!=="."&&h.push(`subdir=${u}`);for(let[g,y]of n)h.push(`${g}=${y}`);return`${a}?${h.join("&")}`}return`${a}#${A}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return Wj.default.join(m0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(_2.default.existsSync(e))return _2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return Wj.default.join(m0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!_2.default.existsSync(e))return;let r=_2.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!_2.default.existsSync(n))throw new Error(`secretfile${n}notfound`);return[s,n]}let i=m0.tmpName({tmpdir:m0.tmpDir()});return _2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=xn(e);if(!r)return r;try{return Sde(e)?`builder-id=${E0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${E0.workflowRunURL(!0)}`;let r=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${E0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",o=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?n=c[1]:c[0]==="ghtoken"&&(i=c[1])}return s==="gha"&&(n||(e=`${e},repository=${E0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}stat
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letnofs){if(n.length==1&&!n[0].startsWith("type="))returne=="local";for(let[i,o]ofn.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}statichasAttestationType(e,r){lets=m1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letnofs)for(let[i,o]ofn.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}staticresolveAttestationAttrs(e){letr=m1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(letnofr)for(letiofn)try{leto=y0.parseBool(i);s.push(`disabled=${!o}`)}catch{s.push(i)}returns.join(",")}statichasGitAuthTokenSecret(e,r){for(letsofe){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}staticparseSecretKvp(e,r){lets=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)thrownewError(`${e} is not a valid secret`);returnr&&dO(i),[n,i]}};var_j=F(require("fs"),1),sqe=F(require("path"),1);varGS=classt{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||newZ0,this.metadataFilename=`bake-metadata-${y0.generateRandomString()}.json`}getMetadataFilePath(){returnsqe.default.join(m0.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!_j.default.existsSync(e))return;letr=_j.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;letr=newArray;for(letsine)"buildx.build.ref"ine[s]&&r.push(e[s]["buildx.build.ref"]);returnr.length>0?r:void0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}asyncgetDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});lets=["bake"],n,i=[],o=[...e.files||[],e.source];if(o){for(letcofo.map(u=>u?u.trim():""))if(c.length!=0){if(!y0.isValidRef(c)){i.push(c);continue}if(n)thrownewError("Only one remote bake definition can be defined");n=c}}n&&s.push(n);for(letcofi)s.push("--file",c);if(e.overrides)for(letcofe.overrides)s.push("--set",c);if(e.vars)for(letcofe.vars)s.push("--var",c);if(e.allow)for(letcofe.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);leta=awaitthis.buildx.getCommand([...s,"--print",...e.targets||[]]);returnawaitxe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)thrownewError(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);returnt.parseDefinition(c.stdout.trim())})}staticparseDefinition(e){letr=JSON.parse(e);for(letsinr.target){letn=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}returnr}staticparseAttestEntry(e){if(typeofe!="string")returne;letr={type:""},s=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letnofs){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=y0.parseBool(o);break;default:r[i]=o}}returnr}staticparseCacheEntry(e){if(typeofe!="string")returne;letr={type:""},s=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))returnr.type="registry",r.ref=s[0],r;for(letnofs){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/)
`;var nx=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Z0,this.sigstore=e?.sigstore||new JA}async download(e){let r=await t.getDownloadVersion(e.version);Q(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);Q(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);Q(`Install.download vspec: ${n}`);let i=Fg.clean(n)||"";if(!Fg.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let o=new Q1({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:vg.default.join(ua.default.homedir(),".bin"),cacheFile:ua.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return _(`Cosign binary found in ${a}`),a;let c=S1e.format(r.downloadURL,n,this.filename());_(`Downloading ${c}`);let u=await Bi(c,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Fg.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let p=await o.save(u,e.skipState);return _(`Cached to ${p}`),p}async build(e,r,s){let n=await this.vspec(e);Q(`Install.build vspec: ${n}`);let i=new Q1({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:vg.default.join(ua.default.homedir(),".bin"),cacheFile:ua.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await i.find();if(o)return _(`Cosign binary found in ${o}`),o;let a=vg.default.join(m0.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await xe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(gLe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),p=await i.save(u,s);return _(`Cached to ${p}`),p}async install(e,r){r=r||m0.tmpDir();let s=vg.default.join(r,"cosign-bin");t4.default.existsSync(s)||t4.default.mkdirSync(s,{recursive:!0});let n=ua.default.platform()=="win32"?"cosign.exe":"cosign",i=vg.default.join(s,n);return t4.default.copyFileSync(e,i),_("Fixing perms"),t4.default.chmodSync(i,"0755"),va(s),_("Added Cosign to PATH"),_(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Z0({standalone:!0}).isAvailable(),n=await new Z0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)Q("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)Q("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)Q("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)Q("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Z0({standalone:i}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;_(`Downloading keyless verification bundle at ${s}`);let n=await Bi(s,void 0,this.githubToken);Q(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});_(`Cosign binary signature verified! ${i.tlogID?`${Uf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ua.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ua.default.arch();break}}let r=ua.default.platform()=="win32"?"windows":ua.default.platform(),s=ua.default.platform()=="win32"?".exe":"";return S1e.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!y0.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return _(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await op.remoteSha(r,s,process.env.GIT_AU
`,bakeTarget:xn("bake-target")||"docker-metadata-action",githubToken:xn("github-token")}}async function yLe(t,e){switch(t){case"workflow":return await BJ0(e);case"git":return await DJ0();default:throw new Error(`Invalid context source: ${t}`)}}async function BJ0(t){let e=E0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await qJ0(e.sha,t),...e}}async function DJ0(){let t=await op.context();return{commitDate:await op.commitDate(t.sha),...t}}async function qJ0(t,e){let r=E0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:E0.context.repo.owner,repo:E0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return Q(`Failed to get commit date from GitHub API: ${s.message}`),new Date}}var ul=F(Sj(),1),hje=F(require("fs"),1),bje=F(require("path"),1),J4=F(RLe(),1),di=F(pje(),1),Kg=F(Hi(),1);function Aje(t){let e=[];if(t.length==1){let r=!1,s=m1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return lje(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=m1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let o=i.toString().split("=").map(a=>a.trim());if(o.length==1)s.name=o[0];else{let a=o[0].toLowerCase(),c=o[1];switch(a){case"name":{s.name=c;break}case"enable":{if(!["true","false"].includes(c))throw new Error(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(c);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(s)}return lje(e)}function lje(t){Ld("Processing images input");for(let e of t)_(`name=${e.name},enable=${e.enable}`);return Qd(),t}var tne=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(tne||{}),nW=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(nW||{}),iW=(r=>(r.Short="short",r.Long="long",r))(iW||{}),ene=class{type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},gut={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function dje(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(zut(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);Ld("Processing tags input");for(let s of r)_(s.toString());return Qd(),r}function zut(t){let e=m1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new ene;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),o=n[1];switch(i){case"type":{if(!Object.values(tne).includes(o))throw new Error(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing